/* Site feedback (inc/feedback.php, assets/js/feedback.js): corner tab + panel, and one-line questions. */

/* ---------- the tab ---------- */
.tnt-fbk__pill { position: fixed; right: 24px; bottom: 24px; z-index: 84; height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 13px; border: 0; border-radius: 20px; cursor: pointer; background: rgba(22, 22, 26, .92); color: var(--tnt-gold-2); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tnt-gold) 45%, transparent), 0 10px 24px rgba(0, 0, 0, .5); font-family: var(--tnt-font-ui); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: right .25s var(--tnt-ease), bottom .25s var(--tnt-ease), background .2s, color .2s, transform .25s var(--tnt-ease), opacity .25s; }
.tnt-fbk__pill:hover, .tnt-fbk.is-open .tnt-fbk__pill { background: var(--tnt-gold); color: var(--tnt-gold-ink); }
.tnt-fbk__pill svg { flex: none; }
.tnt-fbk.is-waiting .tnt-fbk__pill { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s var(--tnt-ease), visibility 0s .25s; }
.tnt-fbk.is-thanked .tnt-fbk__pill { color: var(--tnt-mana-g); box-shadow: 0 0 0 1px rgba(147, 180, 131, .6), 0 10px 24px rgba(0, 0, 0, .5); }
/* Sit beside "Top" when it shows. */
body:has(.tnt-totop:not([hidden])) .tnt-fbk__pill { right: 88px; bottom: 32px; }
.tnt-fbk__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the panel ---------- */
.tnt-fbk__panel { position: fixed; right: 24px; bottom: 80px; z-index: 86; width: 380px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; background: #141417; color: var(--tnt-text); border-top: 3px solid var(--tnt-gold); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 26px 60px rgba(0, 0, 0, .7); font-family: var(--tnt-font-body); font-size: 14px; line-height: 1.5; transform-origin: bottom right; animation: tntFbkIn .26s var(--tnt-ease) both; }
.tnt-fbk__panel[hidden] { display: none; }
body:has(.tnt-totop:not([hidden])) .tnt-fbk__panel { bottom: 86px; }
.tnt-fbk__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px 4px; }
.tnt-fbk__h { margin: 0; font-family: var(--tnt-font-display); font-weight: 400; font-size: 24px; line-height: 1; text-transform: uppercase; color: var(--tnt-white); }
.tnt-fbk__head p { margin: 5px 0 0; font-size: 13px; color: var(--tnt-dim); }
.tnt-fbk__x { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 0; cursor: pointer; background: #1e1e22; color: var(--tnt-dim); font-size: 15px; line-height: 1; }
.tnt-fbk__x:hover { color: var(--tnt-white); }
.tnt-fbk__body { display: flex; flex-direction: column; gap: 14px; padding: 12px 18px 18px; }
.tnt-fbk__moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tnt-fbk__mood { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 9px; border: 0; cursor: pointer; background: #1c1c20; color: var(--tnt-muted); font-family: var(--tnt-font-ui); font-weight: 700; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .05); transition: background .15s, color .15s, box-shadow .15s; }
.tnt-fbk__mood:hover { background: #232328; color: var(--tnt-white); }
.tnt-fbk__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #101010; font-family: var(--tnt-font-body); font-size: 14px; font-weight: 900; line-height: 1; opacity: .75; transition: opacity .15s, transform .15s; }
.tnt-fbk__mood[aria-pressed="true"] { background: #24242a; color: var(--tnt-white); box-shadow: inset 0 -3px 0 var(--c); }
.tnt-fbk__mood[aria-pressed="true"] .tnt-fbk__dot { opacity: 1; transform: scale(1.1); }
.tnt-fbk__more { display: flex; flex-direction: column; gap: 12px; animation: tntFbkFade .22s ease both; }
.tnt-fbk__chips, .tnt-fbq__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tnt-fbk__chip { min-height: 30px; padding: 0 12px; border: 0; cursor: pointer; background: #1c1c20; color: var(--tnt-muted); font-family: var(--tnt-font-body); font-size: 12.5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background .15s, color .15s; }
.tnt-fbk__chip:hover { color: var(--tnt-white); }
.tnt-fbk__chip[aria-pressed="true"] { background: color-mix(in srgb, var(--tnt-gold) 16%, transparent); color: #f0d79a; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tnt-gold) 70%, transparent); }
.tnt-fbk__fld { width: 100%; margin: 0; background: #0e0e10; border: 0; border-radius: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: var(--tnt-text); font-family: var(--tnt-font-body); font-size: 14px; padding: 10px 12px; resize: none; }
.tnt-fbk__fld::placeholder { color: #80868f; }
.tnt-fbk__fld:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--tnt-gold); }
.tnt-fbk__cnt { align-self: flex-end; margin-top: -9px; font-size: 11px; color: #80868f; min-height: 0; }
.tnt-fbk__cnt:empty { display: none; }
.tnt-fbk__ctx { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--tnt-dim); cursor: pointer; }
.tnt-fbk__ctx input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--tnt-gold); }
.tnt-fbk__ctx b { font-weight: 400; color: var(--tnt-muted); }
.tnt-fbk__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tnt-fbk__foot a { font-size: 12.5px; color: var(--tnt-dim); }
.tnt-fbk__foot a:hover { color: var(--tnt-gold-2); }
.tnt-fbk__send { height: 42px; padding: 0 22px; border: 0; cursor: pointer; background: linear-gradient(180deg, #d6b46c, var(--tnt-gold)); color: var(--tnt-gold-ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); font-family: var(--tnt-font-ui); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; transition: filter .2s, opacity .2s; }
.tnt-fbk__send:hover { filter: brightness(1.08); }
.tnt-fbk__send[aria-disabled="true"] { opacity: .35; cursor: default; filter: none; }
.tnt-fbk__err { margin: 0; padding: 8px 10px; background: rgba(219, 107, 90, .12); box-shadow: inset 3px 0 0 #db6b5a; color: #f0b4a9; font-size: 13px; }
.tnt-fbk__err[hidden] { display: none; }
.tnt-fbk__done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 22px 28px; text-align: center; animation: tntFbkFade .3s ease both; }
.tnt-fbk__done p { margin: 0; max-width: 280px; color: var(--tnt-dim); }
.tnt-fbk__tick { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(147, 180, 131, .16); box-shadow: inset 0 0 0 2px var(--tnt-mana-g); color: var(--tnt-mana-g); font-size: 26px; font-weight: 900; animation: tntFbkPop .45s var(--tnt-ease) both; }
.tnt-fbk__again { margin-top: 6px; height: 40px; padding: 0 18px; border: 0; cursor: pointer; background: #1b1b1b; color: var(--tnt-gold-2); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--tnt-gold) 40%, transparent); font-family: var(--tnt-font-ui); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.tnt-fbk__dim { position: fixed; inset: 0; z-index: 85; background: rgba(0, 0, 0, .45); animation: tntFade .2s ease both; }
.tnt-fbk__dim[hidden] { display: none; }

/* ---------- one-line questions ---------- */
.tnt-fbq { margin: 18px 0 0; background: #111114; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 2px 0 color-mix(in srgb, var(--tnt-gold) 45%, transparent); color: var(--tnt-muted); font-family: var(--tnt-font-body); font-size: 14px; line-height: 1.5; animation: tntFbkFade .3s ease both; transition: opacity .2s, transform .2s; }
.tnt-fbq.is-leaving { opacity: 0; transform: translateY(-4px); }
.tnt-fbq__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 60px; padding: 12px 18px 12px 22px; }
.tnt-fbq__q { margin-right: auto; color: var(--tnt-text); }
.tnt-fbq__said { margin-left: 8px; color: var(--tnt-dim); font-size: 13px; }
.tnt-fbq__yn { height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border: 0; cursor: pointer; background: #1c1c20; color: var(--tnt-muted); font-family: var(--tnt-font-body); font-size: 13px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); transition: color .15s, box-shadow .15s; }
.tnt-fbq__yn:hover { color: var(--tnt-white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tnt-gold) 60%, transparent); }
.tnt-fbq__x { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; color: #80868f; font-size: 13px; }
.tnt-fbq__x:hover { color: var(--tnt-muted); }
.tnt-fbq__open { display: flex; flex-direction: column; gap: 10px; padding: 16px 22px 18px; animation: tntFbkFade .22s ease both; }
.tnt-fbq__ask { font-family: var(--tnt-font-ui); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--tnt-gold-2); }
.tnt-fbq__send { display: flex; gap: 8px; }
.tnt-fbq__send .tnt-fbk__fld { height: 40px; }
.tnt-fbq__send .tnt-fbk__send { height: 40px; flex: none; }
.tnt-fbq__thx { color: var(--tnt-mana-g); }
.tnt-fbq__thx b { font-weight: 700; }
/* Bracket Calculator and Pack Simulator: line up with the tool's own width. */
.tnt-fbq[data-kind="bracket"], .tnt-fbq[data-kind="packs"] { max-width: 1180px; margin: 18px auto 0; }

@keyframes tntFbkIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes tntFbkFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tntFbkPop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- phones: icon tab above the tab bar, bottom-sheet panel ---------- */
@media (max-width: 760px) {
	.tnt-fbk__pill, body:has(.tnt-totop:not([hidden])) .tnt-fbk__pill { right: 14px; bottom: calc(var(--tnt-bottom-clearance) + 14px); width: 44px; height: 44px; padding: 0; justify-content: center; }
	body:has(.tnt-totop:not([hidden])) .tnt-fbk__pill { bottom: calc(var(--tnt-bottom-clearance) + 72px); }
	.tnt-fbk__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.tnt-fbk__pill svg { width: 19px; height: 19px; }
	.tnt-fbk.is-tucked .tnt-fbk__pill { opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .25s, transform .25s var(--tnt-ease), visibility 0s .25s; }
	.tnt-fbk__panel, body:has(.tnt-totop:not([hidden])) .tnt-fbk__panel { left: 0; right: 0; bottom: var(--tnt-bottom-clearance); width: auto; max-width: none; max-height: calc(100dvh - var(--tnt-bottom-clearance) - var(--tnt-bar-h) - 16px); border-radius: 16px 16px 0 0; transform-origin: bottom center; animation-name: tntFbkSheet; }
	.tnt-fbk__panel::before { content: ""; display: block; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: #3a3a40; }
	.tnt-fbk__mood { font-size: 9.5px; padding: 9px 2px 8px; }
	.tnt-fbk__send { width: auto; }
	/* iPhone Safari zooms the page into any field under 16px. */
	.tnt-fbk__fld { font-size: 16px; }
	.tnt-fbq__row { padding: 12px 14px; }
	.tnt-fbq__q { width: 100%; }
	.tnt-fbq__open { padding: 14px; }
	.tnt-fbq__send { flex-direction: column; }
	@keyframes tntFbkSheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
	.tnt-fbk__panel, .tnt-fbk__more, .tnt-fbk__done, .tnt-fbk__tick, .tnt-fbq, .tnt-fbq__open { animation: none; }
	.tnt-fbk__pill { transition: none; }
}
@media print { .tnt-fbk, .tnt-fbq { display: none; } }
