/* Świąteczne FBI 0.2.0 – everything is scoped to #wr-fbi so the WordPress theme stays untouched. */
#wr-fbi {
	--fbi-gold: #f2cd83;
	--fbi-gold-deep: #c4974c;
	--fbi-red: #b02c37;
	--fbi-red-deep: #7c1820;
	--fbi-ink: #fff6e6;
	--fbi-muted: #c7beaf;
	--fbi-line: rgba(255, 255, 255, .14);
	--fbi-panel: rgba(9, 25, 28, .72);
	--fbi-paper: #f6ecd6;
	--fbi-paper-ink: #2d2418;
	position: relative;
	max-width: 760px;
	margin: 18px auto;
	color: var(--fbi-ink);
	background:
		radial-gradient(ellipse at 20% -10%, rgba(242, 205, 131, .16), transparent 55%),
		radial-gradient(ellipse at 110% 30%, rgba(176, 44, 55, .22), transparent 50%),
		linear-gradient(180deg, #1c4038 0%, #12292a 45%, #0d1c21 100%);
	border: 1px solid rgba(242, 205, 131, .28);
	border-radius: 26px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
	font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	overflow: hidden;
	isolation: isolate;
	-webkit-font-smoothing: antialiased;
}
#wr-fbi *, #wr-fbi *::before, #wr-fbi *::after { box-sizing: border-box; }
#wr-fbi h1, #wr-fbi h2, #wr-fbi h3, #wr-fbi p { color: inherit; margin: 0 0 12px; line-height: 1.25; font-family: inherit; }
#wr-fbi h1 { font-size: clamp(30px, 7vw, 48px); font-weight: 850; letter-spacing: -.04em; }
#wr-fbi h2 { font-size: clamp(21px, 5vw, 28px); font-weight: 800; letter-spacing: -.02em; }
#wr-fbi h3 { font-size: 18px; font-weight: 750; margin-top: 20px; }
#wr-fbi p { line-height: 1.55; }
#wr-fbi a { color: var(--fbi-gold); }
#wr-fbi ul, #wr-fbi ol { margin: 0; padding: 0; list-style: none; }

/* Header and footer */
#wr-fbi .fbi-hero { text-align: center; padding: 28px 16px 20px; border-bottom: 1px solid var(--fbi-line); background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 14px, transparent 14px 28px); }
#wr-fbi .fbi-badge, #wr-fbi .fbi-kicker { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--fbi-gold); text-transform: uppercase; }
#wr-fbi .fbi-badge { display: inline-block; border: 1px dashed rgba(242, 205, 131, .55); border-radius: 6px; padding: 5px 11px; transform: rotate(-1.5deg); }
#wr-fbi .fbi-emblem { font-size: 52px; margin: 8px 0 0; filter: drop-shadow(0 6px 9px rgba(0,0,0,.4)); }
#wr-fbi .fbi-hero p { color: var(--fbi-gold); margin: 0; font-weight: 600; }
#wr-fbi .fbi-footer { color: var(--fbi-muted); border-top: 1px solid var(--fbi-line); font-size: 11.5px; text-align: center; padding: 14px 18px; }
#wr-fbi .fbi-body { padding: 18px clamp(12px, 4vw, 28px) 24px; min-height: 220px; }
#wr-fbi .fbi-loading { text-align: center; color: var(--fbi-muted); padding: 40px 0; }

/* Panels and parts */
#wr-fbi .fbi-panel { background: var(--fbi-panel); border: 1px solid var(--fbi-line); padding: clamp(16px, 4vw, 26px); border-radius: 20px; margin: 0 0 14px; position: relative; }
#wr-fbi .fbi-panel > .fbi-kicker { margin-bottom: 12px; }
#wr-fbi .fbi-part { padding: 13px 15px; background: rgba(255,255,255,.05); border: 1px solid var(--fbi-line); border-left: 3px solid var(--fbi-gold-deep); border-radius: 12px; margin: 10px 0; overflow-wrap: anywhere; animation: fbi-appear .7s cubic-bezier(.2,.8,.2,1) both; }
#wr-fbi .fbi-part.no-anim { animation: none; }
#wr-fbi .fbi-part > .fbi-kicker { font-size: 10.5px; margin-bottom: 3px; }
#wr-fbi .fbi-answer { font-size: 18px; font-weight: 700; white-space: pre-wrap; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#wr-fbi .fbi-clue { font-weight: 600; font-style: italic; display: block; }
#wr-fbi .fbi-part.is-author { border-left-color: var(--fbi-red); }
#wr-fbi .fbi-part.is-suspect { border-left-color: var(--fbi-red); background: linear-gradient(120deg, rgba(176,44,55,.28), rgba(255,255,255,.04)); }
#wr-fbi .fbi-part.is-suspect .fbi-answer { font-size: 24px; }
#wr-fbi .fbi-part.is-drum .fbi-answer { animation: fbi-shake .25s linear infinite; }
#wr-fbi .is-stamp { animation: fbi-stamp .55s cubic-bezier(.2,1.6,.4,1) both; }
#wr-fbi .fbi-meter { height: 8px; background: rgba(255,255,255,.12); border-radius: 8px; overflow: hidden; margin-top: 9px; }
#wr-fbi .fbi-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--fbi-gold), #ff9d66); border-radius: 8px; animation: fbi-grow 1.1s ease-out both; }
#wr-fbi .fbi-meter.is-dishes i { background: repeating-linear-gradient(90deg, #ff9d66 0 10px, var(--fbi-red) 10px 20px); }
#wr-fbi .fbi-pairs li { padding: 6px 0; border-bottom: 1px dashed var(--fbi-line); font-weight: 650; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
#wr-fbi .fbi-pairs li:last-child { border-bottom: 0; }
#wr-fbi .fbi-pairs b { color: var(--fbi-gold); }
#wr-fbi .fbi-mark { font-size: 15px; }
#wr-fbi .fbi-muted { color: var(--fbi-muted); font-size: 13.5px; }
#wr-fbi .fbi-center { text-align: center; }
#wr-fbi .fbi-big { font-size: 50px; text-align: center; margin: 4px 0 10px; line-height: 1.1; }

/* Forms */
#wr-fbi .fbi-field { display: block; margin: 16px 0; color: var(--fbi-ink); }
#wr-fbi .fbi-label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
#wr-fbi .fbi-input { width: 100%; min-width: 0; background: var(--fbi-paper); color: var(--fbi-paper-ink); border: 1px solid #cdb994; border-radius: 10px; padding: 11px 12px; min-height: 46px; font: inherit; font-size: 16px; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
#wr-fbi select.fbi-input option:disabled { color: #a99d88; }
#wr-fbi textarea.fbi-input { resize: vertical; min-height: 84px; }
#wr-fbi .fbi-counter { display: block; text-align: right; margin-top: 4px; }
#wr-fbi button { font: inherit; font-weight: 750; cursor: pointer; min-height: 44px; text-transform: none; letter-spacing: normal; line-height: 1.2; box-shadow: none; text-shadow: none; }
#wr-fbi button:focus-visible, #wr-fbi .fbi-input:focus-visible, #wr-fbi summary:focus-visible, #wr-fbi a:focus-visible { outline: 3px solid #ffdc88; outline-offset: 3px; }
#wr-fbi button:disabled { opacity: .5; cursor: not-allowed; }
#wr-fbi .fbi-button { display: block; background: linear-gradient(140deg, #f4d38f, var(--fbi-gold-deep)); border: 0; border-radius: 13px; width: 100%; color: #2a1f15; padding: 14px 14px; margin-top: 18px; font-size: 16px; transition: transform .15s, filter .15s; }
#wr-fbi .fbi-button:not(:disabled):hover { filter: brightness(1.06); }
#wr-fbi .fbi-button:not(:disabled):active { transform: scale(.985); }
#wr-fbi .fbi-secondary, #wr-fbi .fbi-quiet, #wr-fbi .fbi-remove { border: 1px solid var(--fbi-line); color: var(--fbi-gold); background: rgba(255,255,255,.06); border-radius: 10px; padding: 10px 13px; text-decoration: none; }
#wr-fbi .fbi-secondary { width: 100%; margin-top: 8px; }
#wr-fbi .fbi-cancel { width: 100%; margin-top: 10px; }
#wr-fbi .fbi-remove { color: #ffb7b7; padding: 8px; min-width: 40px; }
#wr-fbi .fbi-pair { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto; align-items: center; gap: 6px; margin-bottom: 9px; }
#wr-fbi .fbi-pair .fbi-input { padding: 8px 6px; font-size: 15px; min-height: 44px; }
#wr-fbi .fbi-arrow { color: var(--fbi-gold); font-weight: 800; }

/* Top bar and progress */
#wr-fbi .fbi-top-row, #wr-fbi .fbi-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
#wr-fbi .fbi-top { margin-bottom: 14px; }
#wr-fbi .fbi-top:empty { display: none; }
#wr-fbi .fbi-top > .fbi-top-row { width: 100%; }
#wr-fbi .fbi-agent { font-weight: 800; overflow-wrap: anywhere; }
#wr-fbi .fbi-phase { font-size: 12px; color: var(--fbi-gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#wr-fbi .fbi-progress { margin: 10px 0 2px; width: 100%; }
#wr-fbi .fbi-progress-label { font-size: 13px; color: var(--fbi-muted); margin-bottom: 7px; }
#wr-fbi .fbi-track { height: 6px; background: rgba(255,255,255,.1); border-radius: 8px; overflow: hidden; }
#wr-fbi .fbi-fill { height: 100%; background: var(--fbi-gold); transition: width .5s; }

/* Notices */
#wr-fbi .fbi-error, #wr-fbi .fbi-notice { padding: 12px 14px; border-radius: 12px; font-size: 14px; overflow-wrap: anywhere; margin-bottom: 12px; }
#wr-fbi .fbi-error { background: #6a242b; border: 1px solid #ffb5b5; }
#wr-fbi .fbi-error[hidden] { display: none; }
#wr-fbi .fbi-notice { background: rgba(242,205,131,.12); border: 1px solid rgba(242,205,131,.35); }

/* Envelope */
#wr-fbi .fbi-env-holder { display: flex; justify-content: center; margin: 14px 0 22px; }
#wr-fbi .fbi-reveal .fbi-env-holder { padding-top: 46px; margin-top: 4px; }
#wr-fbi .fbi-reveal.is-compact .fbi-env-holder { display: none; }
#wr-fbi .fbi-reveal .fbi-kicker { position: relative; z-index: 6; }
#wr-fbi .fbi-envelope { position: relative; width: 168px; height: 108px; perspective: 600px; animation: fbi-hover 2s ease-in-out infinite; }
#wr-fbi .fbi-env-back, #wr-fbi .fbi-env-front, #wr-fbi .fbi-env-flap { position: absolute; inset: 0; border-radius: 8px; }
#wr-fbi .fbi-env-back { background: linear-gradient(160deg, #d9bd84, #a57c45); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
#wr-fbi .fbi-env-front { background: linear-gradient(160deg, #ecd5a3, #c09358); clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); z-index: 3; }
#wr-fbi .fbi-env-flap { background: linear-gradient(180deg, #f6e1b4, #d6b475); clip-path: polygon(0 0, 100% 0, 50% 62%); transform-origin: top center; z-index: 4; transition: transform 1s cubic-bezier(.3,.7,.3,1); }
#wr-fbi .fbi-env-letter { position: absolute; left: 10px; right: 10px; top: 8px; height: 88px; background: repeating-linear-gradient(180deg, var(--fbi-paper) 0 13px, #e8dbbf 13px 14px); border-radius: 4px; z-index: 2; display: grid; place-items: start center; padding-top: 10px; color: var(--fbi-red-deep); font-weight: 900; font-size: 11px; letter-spacing: .3em; transition: transform 1s .35s cubic-bezier(.3,.7,.3,1); }
#wr-fbi .fbi-seal { position: absolute; top: 48px; left: 50%; z-index: 5; transform: translate(-50%, 0) rotate(-9deg); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 900; letter-spacing: .05em; color: #ffe0c4; background: radial-gradient(circle at 35% 30%, #d4454f, var(--fbi-red) 45%, var(--fbi-red-deep)); box-shadow: 0 0 0 3px rgba(124,24,32,.55), 0 3px 8px rgba(0,0,0,.45); transition: opacity .6s, transform .6s; }
#wr-fbi .fbi-envelope.is-open { animation: none; }
#wr-fbi .fbi-envelope.is-open .fbi-env-flap { transform: rotateX(180deg); z-index: 1; }
#wr-fbi .fbi-envelope.is-open .fbi-env-letter { transform: translateY(-42px); }
#wr-fbi .fbi-envelope.is-open .fbi-seal { opacity: 0; transform: translate(-50%, 18px) rotate(40deg) scale(.6); }
#wr-fbi .fbi-envelope.is-opening .fbi-env-flap { animation: fbi-flap 1.2s .3s cubic-bezier(.3,.7,.3,1) both; }
#wr-fbi .fbi-envelope.is-opening .fbi-env-letter { animation: fbi-letter 1.2s .9s cubic-bezier(.3,.7,.3,1) both; }
#wr-fbi .fbi-envelope.is-opening .fbi-seal { animation: fbi-seal-break .8s ease-in both; }

/* Reveal */
#wr-fbi .fbi-reveal-title { text-align: center; color: var(--fbi-gold); margin-bottom: 16px; }
#wr-fbi .fbi-suspense { text-align: center; font-size: 13px; letter-spacing: .08em; color: var(--fbi-gold); margin: 16px 0 0; animation: fbi-pulse 1.4s ease-in-out infinite; }
#wr-fbi .fbi-suspense.is-done { animation: none; color: #cfeec0; }
#wr-fbi .fbi-archive { background: rgba(255,255,255,.04); padding: 10px 14px; border: 1px solid var(--fbi-line); border-radius: 14px; margin: 12px 0; }
#wr-fbi summary { font-weight: 700; cursor: pointer; padding: 6px 2px; color: var(--fbi-gold); }
#wr-fbi .fbi-card { border-top: 1px dashed var(--fbi-line); padding-top: 6px; margin-top: 12px; }
#wr-fbi .fbi-card .fbi-part { animation: none; }
#wr-fbi .fbi-card h3 { margin: 6px 0 4px; }

/* Sealing */
#wr-fbi .fbi-sealed { overflow: hidden; }
#wr-fbi .fbi-sealed.is-sealing .fbi-envelope { animation: fbi-drop .9s cubic-bezier(.2,1.4,.4,1) both; }
#wr-fbi .fbi-sealed.is-sealing .fbi-seal { animation: fbi-stamp .5s .55s cubic-bezier(.2,1.6,.4,1) both; }
#wr-fbi .fbi-stamp { position: absolute; top: 34px; right: 14px; padding: 6px 12px; border: 3px solid var(--fbi-red); color: #ff8f8f; font-weight: 900; letter-spacing: .14em; font-size: 13px; border-radius: 6px; transform: rotate(12deg); animation: fbi-stamp .5s 1s cubic-bezier(.2,1.6,.4,1) both; background: rgba(124,24,32,.18); }
#wr-fbi .fbi-own { text-align: left; margin: 14px 0 6px; background: rgba(255,255,255,.04); border: 1px solid var(--fbi-line); border-radius: 12px; padding: 6px 12px; }
#wr-fbi .fbi-sealed-summary .fbi-part { animation: none; }

/* Gala and ranking */
#wr-fbi .fbi-award { text-align: center; }
#wr-fbi .fbi-award-icon { font-size: 70px; line-height: 1; margin: 6px 0 10px; animation: fbi-appear .8s both, fbi-hover 2.4s 1s ease-in-out infinite; }
#wr-fbi .fbi-award-title { color: var(--fbi-gold); font-size: clamp(26px, 6vw, 36px); }
#wr-fbi .fbi-award-desc { color: var(--fbi-muted); }
#wr-fbi .fbi-award-slot { min-height: 80px; margin-top: 10px; }
#wr-fbi .fbi-drumline { font-size: 30px; animation: fbi-shake .25s linear infinite; }
#wr-fbi .fbi-winners li { padding: 12px; margin: 8px auto; max-width: 420px; border-radius: 14px; background: linear-gradient(120deg, rgba(242,205,131,.22), rgba(255,255,255,.05)); border: 1px solid rgba(242,205,131,.45); }
#wr-fbi .fbi-winners strong { display: block; font-size: 24px; }
#wr-fbi .fbi-winners small { color: var(--fbi-muted); }
#wr-fbi .fbi-award-empty { font-size: 17px; font-weight: 650; }
#wr-fbi .fbi-award-row { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--fbi-line); }
#wr-fbi .fbi-award-row:last-child { border-bottom: 0; }
#wr-fbi .fbi-award-row-icon { font-size: 26px; text-align: center; }
#wr-fbi .fbi-award-row small { display: block; color: var(--fbi-muted); }
#wr-fbi .fbi-rank { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; border-top: 1px solid var(--fbi-line); padding: 12px 4px; overflow-wrap: anywhere; }
#wr-fbi .fbi-rank.is-me { background: rgba(242,205,131,.1); border-radius: 12px; }
#wr-fbi .fbi-rank-number { font-size: 24px; text-align: center; color: var(--fbi-gold); font-weight: 850; }
#wr-fbi .fbi-rank-who small { display: block; color: var(--fbi-muted); font-size: 12.5px; }
#wr-fbi .fbi-rank-titles { color: var(--fbi-gold) !important; }
#wr-fbi .fbi-score { color: var(--fbi-gold); font-size: 19px; font-weight: 850; white-space: nowrap; }
#wr-fbi .fbi-mine h2 { color: var(--fbi-gold); }

/* Host: roster, remote, screen controls */
#wr-fbi .fbi-roster { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 6px; }
#wr-fbi .fbi-roster li { padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--fbi-line); color: var(--fbi-muted); }
#wr-fbi .fbi-roster li.is-in { color: var(--fbi-ink); border-color: rgba(242,205,131,.5); background: rgba(242,205,131,.12); }
#wr-fbi .fbi-remote { background: var(--fbi-panel); border: 1px solid rgba(242,205,131,.4); border-radius: 20px; padding: 18px; margin-bottom: 14px; text-align: center; }
#wr-fbi .fbi-remote .fbi-ctl-status { display: block; font-size: 18px; font-weight: 750; margin-top: 6px; }
#wr-fbi .fbi-remote .fbi-go { min-height: 120px; font-size: 22px; border-radius: 20px; }
#wr-fbi .fbi-go.is-armed { background: linear-gradient(140deg, #ff8f8f, var(--fbi-red)); color: #fff; }
#wr-fbi .fbi-link { display: inline-block; margin-top: 6px; font-size: 14px; }

/* TV screen: full window, large type, control bar that hides while idle */
html.fbi-screen-lock, html.fbi-screen-lock body { overflow: hidden !important; }
#wr-fbi.wr-fbi-ekran { position: fixed; inset: 0; z-index: 2147483000; max-width: none; margin: 0; border-radius: 0; border: 0; display: flex; flex-direction: column; font-size: clamp(18px, 1.6vw, 30px); }
#wr-fbi.wr-fbi-ekran .fbi-hero { padding: 1.2vh 2vw; display: flex; align-items: center; justify-content: center; gap: 1.4vw; }
#wr-fbi.wr-fbi-ekran .fbi-hero h1 { font-size: clamp(26px, 3vw, 54px); margin: 0; }
#wr-fbi.wr-fbi-ekran .fbi-hero .fbi-emblem { font-size: clamp(30px, 3.4vw, 60px); margin: 0; }
#wr-fbi.wr-fbi-ekran .fbi-hero p { display: none; }
#wr-fbi.wr-fbi-ekran .fbi-body { flex: 1; overflow: auto; padding: 2vh 4vw 13vh; display: flex; flex-direction: column; }
#wr-fbi.wr-fbi-ekran .fbi-main { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 1200px; width: 100%; margin: 0 auto; }
#wr-fbi.wr-fbi-ekran .fbi-top { display: none; }
#wr-fbi.wr-fbi-ekran .fbi-footer { display: none; }
#wr-fbi .is-big { border-radius: 28px; padding: clamp(20px, 3vw, 48px); }
#wr-fbi .is-big h2, #wr-fbi .is-big .fbi-reveal-title { font-size: clamp(32px, 3.8vw, 70px); }
#wr-fbi .is-big .fbi-kicker { font-size: clamp(13px, 1vw, 20px); }
#wr-fbi .is-big .fbi-big { font-size: clamp(60px, 7vw, 130px); }
#wr-fbi .is-big .fbi-answer { font-size: clamp(24px, 2.6vw, 50px); }
#wr-fbi .is-big .fbi-part.is-suspect .fbi-answer { font-size: clamp(34px, 4.2vw, 80px); }
#wr-fbi .is-big .fbi-part { padding: 1.4vh 1.6vw; margin: 1.2vh 0; }
#wr-fbi .is-big .fbi-part > .fbi-kicker { font-size: clamp(12px, .95vw, 18px); }
#wr-fbi .is-big .fbi-pairs li { font-size: clamp(22px, 2.1vw, 40px); }
#wr-fbi .is-big .fbi-envelope { transform: scale(1.6); margin: 4vh 0; }
#wr-fbi .is-big.fbi-reveal .fbi-env-holder { padding-top: 120px; margin: 2vh 0 6vh; }
#wr-fbi .is-big.fbi-reveal.is-compact .fbi-reveal-title { font-size: clamp(26px, 2.8vw, 52px); margin-bottom: 1.6vh; }
#wr-fbi .is-big .fbi-parts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.6vw; }
#wr-fbi .is-big .fbi-parts > .fbi-part { grid-column: 1 / -1; }
#wr-fbi .is-big .fbi-parts > .fbi-part.is-author, #wr-fbi .is-big .fbi-parts > .fbi-part.is-conf { grid-column: auto; }
#wr-fbi .is-big .fbi-part.is-clue .fbi-answer { font-size: clamp(20px, 2vw, 40px); }
#wr-fbi .is-big .fbi-parts { align-items: start; }
#wr-fbi .is-big.is-compact { padding-top: clamp(14px, 2vh, 30px); padding-bottom: clamp(14px, 2vh, 30px); }
#wr-fbi .is-big.is-compact .fbi-part { padding: 1vh 1.4vw; margin: .9vh 0; }
#wr-fbi .is-big.is-compact .fbi-part.is-conf .fbi-answer { font-size: clamp(18px, 1.7vw, 34px); }
#wr-fbi .is-big.is-compact .fbi-part.is-suspect .fbi-answer { font-size: clamp(30px, 3.4vw, 66px); }
#wr-fbi .is-big.is-compact .fbi-suspense { margin-top: 1vh; }
#wr-fbi .is-big .fbi-part.is-pairs .fbi-pairs { display: flex; flex-wrap: wrap; gap: .3em 2.2em; }
#wr-fbi .is-big .fbi-part.is-pairs .fbi-pairs li { border: 0; padding: 2px 0; }
#wr-fbi .is-big .fbi-ranking ~ .fbi-muted { font-size: clamp(13px, 1vw, 18px); }
#wr-fbi .is-big h2.fbi-center { font-size: clamp(28px, 3vw, 56px); }
#wr-fbi .is-big .fbi-award-icon { font-size: clamp(90px, 10vw, 180px); }
#wr-fbi .is-big .fbi-award-title { font-size: clamp(40px, 5vw, 90px); }
#wr-fbi .is-big .fbi-award-desc { font-size: clamp(20px, 2vw, 36px); }
#wr-fbi .is-big .fbi-winners li { max-width: 900px; }
#wr-fbi .is-big .fbi-winners strong { font-size: clamp(34px, 4vw, 72px); }
#wr-fbi .is-big .fbi-winners small, #wr-fbi .is-big .fbi-award-empty { font-size: clamp(18px, 1.8vw, 32px); }
#wr-fbi .is-big .fbi-roster li { font-size: clamp(18px, 1.6vw, 30px); padding: .5em 1em; }
#wr-fbi .fbi-ranking.is-big .fbi-rank { grid-template-columns: 4vw 1fr auto; padding: 1.4vh 1vw; }
#wr-fbi .fbi-ranking.is-big .fbi-rank-number { font-size: clamp(28px, 2.8vw, 54px); }
#wr-fbi .fbi-ranking.is-big strong { font-size: clamp(22px, 2.2vw, 42px); }
#wr-fbi .fbi-ranking.is-big small { font-size: clamp(14px, 1.1vw, 22px); }
#wr-fbi .fbi-ranking.is-big .fbi-score { font-size: clamp(24px, 2.4vw, 46px); }
#wr-fbi .fbi-controls { position: fixed; left: 50%; bottom: 2vh; transform: translateX(-50%); z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: rgba(6, 17, 20, .86); border: 1px solid rgba(242,205,131,.35); box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: opacity .4s; max-width: 96vw; flex-wrap: wrap; justify-content: center; font-size: 15px; }
#wr-fbi .fbi-controls .fbi-go { width: auto; margin: 0; padding: 12px 22px; font-size: 17px; }
#wr-fbi .fbi-controls .fbi-ctl-status { color: var(--fbi-muted); font-size: 14px; padding: 0 6px; }
#wr-fbi.is-idle .fbi-controls { opacity: .12; }
#wr-fbi.is-idle { cursor: none; }

/* Confetti */
#wr-fbi .fbi-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
#wr-fbi .fbi-confetti span { position: absolute; top: -40px; animation: fbi-fall 2.6s ease-in both; }

/* Motion */
@keyframes fbi-appear { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fbi-pulse { 50% { opacity: .35; } }
@keyframes fbi-hover { 50% { transform: translateY(-6px) rotate(-2deg); } }
@keyframes fbi-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px) rotate(-1deg); } 75% { transform: translateX(3px) rotate(1deg); } }
@keyframes fbi-stamp { 0% { opacity: 0; transform: scale(2.4) rotate(-14deg); } 100% { opacity: 1; } }
@keyframes fbi-grow { from { width: 0; } }
@keyframes fbi-flap { from { transform: rotateX(0); z-index: 4; } 49% { z-index: 4; } 50% { z-index: 1; } to { transform: rotateX(180deg); z-index: 1; } }
@keyframes fbi-letter { from { transform: translateY(0); } to { transform: translateY(-42px); } }
@keyframes fbi-seal-break { 0% { opacity: 1; transform: translate(-50%, 0) rotate(-9deg); } 40% { transform: translate(-50%, 0) rotate(8deg) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, 18px) rotate(40deg) scale(.6); } }
@keyframes fbi-drop { from { opacity: 0; transform: translateY(-50px) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes fbi-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(110vh) rotate(540deg); opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
	#wr-fbi *, #wr-fbi *::before, #wr-fbi *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 400px) {
	#wr-fbi .fbi-pair { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; }
	#wr-fbi .fbi-arrow { display: none; }
	#wr-fbi .fbi-rank { grid-template-columns: 38px 1fr auto; gap: 8px; }
}

/* Phone remote: compact header so the big button is visible without scrolling */
#wr-fbi.wr-fbi-pilot .fbi-hero { padding: 12px 14px; display: flex; align-items: center; justify-content: center; gap: 10px; }
#wr-fbi.wr-fbi-pilot .fbi-hero .fbi-badge, #wr-fbi.wr-fbi-pilot .fbi-hero p { display: none; }
#wr-fbi.wr-fbi-pilot .fbi-hero .fbi-emblem { font-size: 30px; margin: 0; }
#wr-fbi.wr-fbi-pilot .fbi-hero h1 { font-size: 24px; margin: 0; }
#wr-fbi.wr-fbi-pilot .fbi-body { padding-top: 12px; }

/* Solution: who was whose Santa */
#wr-fbi .fbi-truth-question { color: var(--fbi-gold); }
#wr-fbi .fbi-truth-tip { color: var(--fbi-muted); }
#wr-fbi .fbi-truth-slot { min-height: 110px; margin-top: 10px; }
#wr-fbi .fbi-truth-answer { padding: 16px; border-radius: 16px; background: linear-gradient(120deg, rgba(176,44,55,.3), rgba(242,205,131,.12)); border: 1px solid rgba(242,205,131,.45); }
#wr-fbi .fbi-truth-santa { font-size: clamp(30px, 8vw, 44px); font-weight: 850; line-height: 1.15; margin: 4px 0 10px; }
#wr-fbi .fbi-truth-verdict { font-weight: 750; margin-bottom: 6px; }
#wr-fbi .fbi-truth-verdict.is-hit { color: #cfeec0; }
#wr-fbi .fbi-truth-verdict.is-miss { color: #ffc2b3; }
#wr-fbi .fbi-truth-guessed { color: var(--fbi-muted); margin: 0; }
#wr-fbi .fbi-solution-row { padding: 10px 0; border-bottom: 1px dashed var(--fbi-line); }
#wr-fbi .fbi-solution-row:last-child { border-bottom: 0; }
#wr-fbi .fbi-solution-pair { font-size: 17px; font-weight: 750; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
#wr-fbi .fbi-solution-pair b { color: var(--fbi-gold); }
#wr-fbi .fbi-solution-row small { display: block; color: var(--fbi-muted); margin-top: 3px; font-size: 13px; }
#wr-fbi .is-big.fbi-truth .fbi-truth-question { font-size: clamp(34px, 4vw, 76px); }
#wr-fbi .is-big.fbi-truth .fbi-truth-tip { font-size: clamp(18px, 1.7vw, 32px); }
#wr-fbi .is-big.fbi-truth .fbi-big { font-size: clamp(50px, 5vw, 96px); margin: 0; }
#wr-fbi .is-big.fbi-truth .fbi-truth-answer { max-width: 1000px; margin: 0 auto; padding: 2.4vh 2vw; }
#wr-fbi .is-big.fbi-truth .fbi-truth-santa { font-size: clamp(44px, 5.4vw, 104px); }
#wr-fbi .is-big.fbi-truth .fbi-truth-verdict, #wr-fbi .is-big.fbi-truth .fbi-truth-guessed { font-size: clamp(18px, 1.7vw, 32px); }
#wr-fbi .is-big.fbi-truth .fbi-kicker { font-size: clamp(13px, 1vw, 20px); }

/* Gift opening (0.3.0) */
#wr-fbi .fbi-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px 0 4px; }
#wr-fbi .fbi-choice { border: 1px solid rgba(242,205,131,.55); background: rgba(242,205,131,.12); color: var(--fbi-ink); border-radius: 14px; padding: 12px 18px; min-width: 120px; font-size: 17px; }
#wr-fbi .fbi-choice:not(:disabled):hover { background: rgba(242,205,131,.25); }
#wr-fbi .fbi-choices.is-big .fbi-choice, #wr-fbi .is-big .fbi-choice { font-size: clamp(20px, 1.9vw, 36px); padding: .55em 1.1em; border-radius: 18px; }
#wr-fbi .fbi-pilot-gifts .fbi-choices { display: grid; grid-template-columns: 1fr 1fr; }
#wr-fbi .fbi-pilot-gifts .fbi-choice { min-height: 64px; font-size: 19px; }
#wr-fbi .fbi-pilot-gifts .fbi-quiet { margin-top: 10px; }
#wr-fbi .fbi-truth-slot.is-question { border-left-color: var(--fbi-red); text-align: center; }
#wr-fbi .fbi-gift .fbi-truth-slot { min-height: 0; }
#wr-fbi .fbi-gift .fbi-truth-answer { text-align: center; }
#wr-fbi .fbi-undo { margin-top: 8px; font-size: 13px; min-height: 36px; padding: 6px 12px; opacity: .7; }
#wr-fbi .fbi-card-more { margin-top: 6px; }
#wr-fbi .fbi-card-more summary { font-size: 13px; padding: 2px 0; }
#wr-fbi .fbi-card-more .fbi-part { animation: none; padding: 8px 10px; margin: 6px 0; }
#wr-fbi .fbi-card-more .fbi-answer { font-size: 15px; }
#wr-fbi .is-big.fbi-gift .fbi-truth-santa { font-size: clamp(40px, 4.6vw, 90px); }
#wr-fbi .is-big.fbi-gift .fbi-truth-verdict, #wr-fbi .is-big.fbi-gift .fbi-truth-guessed { font-size: clamp(18px, 1.6vw, 30px); margin-bottom: .3em; }
#wr-fbi .is-big.fbi-gift .fbi-truth-answer { padding: 1.2vh 1vw; background: none; border: 0; }
#wr-fbi .is-big .fbi-parts > .fbi-part.is-author { grid-column: auto; }
/* TV: at "who gave it?" and the verdict, the guess and the truth stand side by side */
#wr-fbi .is-big.fbi-gift.is-verdict .fbi-part.is-conf, #wr-fbi .is-big.fbi-gift.is-verdict .fbi-part.is-clue { display: none; }
#wr-fbi .is-big.fbi-gift.is-verdict .fbi-parts > .fbi-part.is-author { grid-column: 1 / -1; }
#wr-fbi .is-big.fbi-gift.is-verdict .fbi-parts > .fbi-part.is-suspect, #wr-fbi .is-big.fbi-gift.is-verdict .fbi-parts > .fbi-truth-slot { grid-column: auto; align-self: stretch; display: flex; flex-direction: column; justify-content: center; text-align: center; }
#wr-fbi .is-big.fbi-gift.is-verdict .fbi-part.is-suspect .fbi-answer { justify-content: center; font-size: clamp(36px, 4.2vw, 80px); }
#wr-fbi .is-big.fbi-gift.is-verdict .fbi-truth-slot { border-left-color: #6fbf73; }
/* Phone remote during the gifts: keep the name buttons on the first screen */
#wr-fbi .fbi-remote.is-gifts { padding: 12px 14px; }
#wr-fbi .fbi-remote.is-gifts .fbi-muted, #wr-fbi .fbi-remote.is-gifts .fbi-link { display: none; }
#wr-fbi .fbi-remote.is-gifts .fbi-go { min-height: 78px; margin-top: 10px; font-size: 20px; }
#wr-fbi.wr-fbi-pilot .fbi-top { display: none; }
#wr-fbi .fbi-pilot-gifts { padding: 14px; }
#wr-fbi .fbi-pilot-gifts h2 { margin-bottom: 6px; }
/* Phone verdict: one frame, not two */
#wr-fbi .fbi-gift:not(.is-big) .fbi-truth-slot:not(.is-question) { padding: 0; border: 0; background: none; }

/* Lottery: who opens the next gift (0.3.1) */
#wr-fbi .fbi-roulette-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 6px; }
#wr-fbi .fbi-roulette-chip { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--fbi-line); background: rgba(255,255,255,.05); color: var(--fbi-muted); font-weight: 650; transition: transform .12s, background .12s, color .12s, box-shadow .12s; }
#wr-fbi .fbi-roulette-chip.is-on { color: #2a1f15; background: var(--fbi-gold); border-color: var(--fbi-gold); transform: scale(1.12); box-shadow: 0 0 22px rgba(242,205,131,.6); }
#wr-fbi .fbi-roulette-chips.is-waiting .fbi-roulette-chip { color: var(--fbi-ink); }
#wr-fbi .fbi-roulette { text-align: center; padding: 6px 0 10px; }
#wr-fbi .fbi-roulette-window { margin: 14px auto 6px; max-width: 520px; padding: 18px 12px; border-radius: 18px; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(255,255,255,.04) 50%, rgba(0,0,0,.35)); border: 2px solid rgba(242,205,131,.55); box-shadow: inset 0 0 30px rgba(0,0,0,.5), 0 0 0 6px rgba(176,44,55,.25); overflow: hidden; }
#wr-fbi .fbi-roulette-name { font-size: clamp(30px, 8vw, 46px); font-weight: 850; line-height: 1.15; min-height: 1.2em; }
#wr-fbi .fbi-roulette-name.is-flip { animation: fbi-flip .16s ease-out; }
#wr-fbi .fbi-roulette.is-done .fbi-roulette-window { border-color: var(--fbi-gold); box-shadow: inset 0 0 30px rgba(0,0,0,.4), 0 0 0 6px rgba(242,205,131,.35), 0 0 40px rgba(242,205,131,.45); }
#wr-fbi .fbi-roulette.is-done .fbi-roulette-name { color: var(--fbi-gold); }
#wr-fbi .fbi-roulette.is-done .fbi-roulette-chip.is-on { background: var(--fbi-red); color: #fff; border-color: #ff8f8f; box-shadow: 0 0 26px rgba(176,44,55,.8); }
#wr-fbi .fbi-gift.is-rolling > :not(.fbi-roulette-holder) { display: none; }
#wr-fbi .fbi-roulette.is-big .fbi-roulette-window { max-width: 1000px; padding: 4vh 2vw; }
#wr-fbi .fbi-roulette.is-big .fbi-roulette-name { font-size: clamp(54px, 7vw, 140px); }
#wr-fbi .fbi-roulette.is-big .fbi-kicker { font-size: clamp(14px, 1.2vw, 24px); }
#wr-fbi .fbi-roulette.is-big .fbi-roulette-chip, #wr-fbi .is-big .fbi-roulette-chips .fbi-roulette-chip { font-size: clamp(18px, 1.6vw, 32px); padding: .35em .9em; }
#wr-fbi .fbi-draw { max-width: 520px; margin: 18px auto 6px; font-size: 20px; }
#wr-fbi .is-big .fbi-draw { font-size: clamp(22px, 2vw, 38px); padding: .6em 1em; max-width: 760px; }
#wr-fbi .fbi-manual { margin-top: 10px; }
#wr-fbi .fbi-manual summary { font-size: 13px; color: var(--fbi-muted); }
#wr-fbi .is-big .fbi-manual summary { font-size: clamp(13px, 1vw, 18px); }
@keyframes fbi-flip { from { transform: translateY(-40%); opacity: .2; } to { transform: none; opacity: 1; } }
