/* brovbro cinema scenes (public/cinema.js). Everything is scoped under .cin. */

.cin {
  --ink: #05040A;
  --chroma: 0;
  --sweep: -60%;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #0B0A14;
  color: #fff;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  container-type: size;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  contain: layout paint;
}
.cin.cin-tall { height: 100vh; height: 100dvh; }
.cin *, .cin *::before, .cin *::after { box-sizing: border-box; }
.cin [hidden] { display: none !important; }
.cin-shake, .cin-3d, .cin-ui, .cin-fxl, .cin-flash { position: absolute; inset: 0; }
.cin-shake { will-change: transform; }
.cin-3d { display: flex; z-index: 0; inset: -24px; }
.cin-3d > .bb3d { border-radius: 0; }
.cin-ui {
  z-index: 2;
  pointer-events: none;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.cin-ui > * { position: absolute; }
.cin-fxl { z-index: 3; pointer-events: none; overflow: hidden; }
.cin-flash { z-index: 4; pointer-events: none; opacity: 0; visibility: hidden; mix-blend-mode: screen; }

/* focus lines: thin rays from the middle, masked clear in the center */
.cin-speed {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180vmax;
  height: 180vmax;
  margin: -90vmax 0 0 -90vmax;
  opacity: 0;
  visibility: hidden;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.85) 0deg 0.7deg, transparent 0.7deg 5.3deg, rgba(255, 255, 255, 0.5) 5.3deg 5.7deg, transparent 5.7deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 0 17%, #000 34%);
  mask: radial-gradient(circle, transparent 0 17%, #000 34%);
  will-change: transform, opacity;
}

/* fallback layers only show while there is no 3D */
.cin.has-3d .cin-fb { display: none; }

/* ---- big display words ---------------------------------------------------------------- */
.cin-word {
  position: relative;
  display: inline-block;
  font-family: "Anton", "Impact", "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: #fff;
  -webkit-text-stroke: 0.075em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--ink);
  white-space: nowrap;
}
.cin-word.cin-chroma, .cin-chroma {
  text-shadow: calc(var(--chroma) * -1px) 0 0 rgba(255, 59, 78, 0.85), calc(var(--chroma) * 1px) 0 0 rgba(47, 123, 255, 0.85), 0 0.08em 0 var(--ink);
}
.cin-word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 0;
  text-shadow: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.95) 47%, rgba(255, 255, 255, 0.95) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: var(--sweep) 0;
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
}

/* ---- chips (rounded rects, never capsules) -------------------------------------------- */
.cin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.25);
  font: 800 13px/1 "Inter Tight", system-ui, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: #262242;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cin-chip.s0 { background: linear-gradient(180deg, #4b8fff, #2F7BFF 60%, #1d5fd6); }
.cin-chip.s1, .cin-chip.red { background: linear-gradient(180deg, #ff5d6d, #FF3B4E 60%, #d42236); }
.cin-chip.violet { background: linear-gradient(180deg, #9361f4, #7C3AED 60%, #5b21c4); }
.cin-chip.gold { background: linear-gradient(180deg, #ffe08a, #FFC93C 55%, #e0a51c); color: #2a1a00; text-shadow: none; }
.cin-chip.mint { background: linear-gradient(180deg, #7ff3c9, #2EE6A8 55%, #14b582); color: #032a1d; }

/* ---- seat name plates ------------------------------------------------------------------- */
.cin-plate { max-width: 92%; will-change: transform, opacity; }
.cin-plate-in {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 22px 12px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45), inset 0 3px 0 rgba(255, 255, 255, 0.28);
  transform: skewX(-11deg);
  overflow: hidden;
  position: relative;
}
.cin-plate.s0 .cin-plate-in { background: linear-gradient(100deg, #123A8C, #2F7BFF 58%, #5a98ff); }
.cin-plate.s1 .cin-plate-in { background: linear-gradient(260deg, #8C1222, #FF3B4E 58%, #ff6b79); }
.cin-plate-in::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0 6px, transparent 6px 18px);
  pointer-events: none;
}
.cin-plate-tag, .cin-plate-name { transform: skewX(11deg); position: relative; }
.cin-plate-tag {
  font: 800 12px/1 "Inter Tight", system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.cin-plate.is-me .cin-plate-tag { color: #FFC93C; }
.cin-plate-name {
  font: 400 clamp(30px, 12.5cqw, 74px)/0.98 "Anton", Impact, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  -webkit-text-stroke: 0.06em var(--ink);
  paint-order: stroke fill;
}
.cin-plate.s1 .cin-plate-tag, .cin-plate.s1 .cin-plate-name { text-align: right; }
.cin-plate.is-me .cin-plate-in { box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45), inset 0 3px 0 rgba(255, 255, 255, 0.28), 0 0 0 3px #FFC93C; }

/* ---- boot ---------------------------------------------------------------------------------- */
.cin-boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: auto;
  height: auto;
  background: rgba(11, 10, 20, var(--bg, 1));
  pointer-events: auto;
}
.cin-boot .cin-ui > * { pointer-events: none; }
.cin-boot-slab { top: -10%; bottom: -10%; width: 70%; border-right: 4px solid var(--ink); border-left: 4px solid var(--ink); }
.cin-boot-slab.a { left: -18%; background: linear-gradient(90deg, #0a1a44, #123A8C 60%, #2F7BFF); transform-origin: 0 50%; clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%); }
.cin-boot-slab.b { right: -18%; background: linear-gradient(270deg, #3d0711, #8C1222 60%, #FF3B4E); clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); }
.cin-boot-lines {
  inset: -10% -20%;
  background: repeating-linear-gradient(118deg, transparent 0 34px, rgba(255, 255, 255, 0.16) 34px 37px, transparent 37px 90px);
}
.cin-boot-mark {
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5cqw;
  will-change: transform;
}
.cin-boot-bro { font-size: clamp(54px, 19cqw, 200px); will-change: transform, opacity; }
.cin-boot-bro.s0 { color: #8AB8FF; }
.cin-boot-bro.s1 { color: #FF95A0; }
.cin-boot-bro.s0 { -webkit-text-fill-color: currentColor; }
.cin-boot-v { position: relative; width: clamp(64px, 19cqw, 180px); height: clamp(64px, 19cqw, 180px); display: grid; place-items: center; flex: none; will-change: transform, opacity; }
.cin-boot-burst { position: absolute; inset: -8%; width: 116%; height: 116%; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.5)); }
.cin-boot-vw { position: relative; font-size: clamp(44px, 13cqw, 130px); color: #fff; }
.cin-boot-tag {
  left: 16px;
  right: 16px;
  top: calc(50% + clamp(64px, 18cqw, 160px));
  text-align: center;
  font: 800 clamp(14px, 3.6cqw, 22px)/1.25 "Inter Tight", system-ui, sans-serif;
  color: #fff;
  text-shadow: 0 2px 0 var(--ink);
}
.cin-boot-tag span { display: inline-block; padding: 8px 14px; background: rgba(5, 4, 10, 0.55); border: 2px solid rgba(255, 255, 255, 0.12); border-radius: 10px; }
.cin-boot-skip {
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  font: 800 12px/1 "Inter Tight", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ---- versus ------------------------------------------------------------------------------- */
.cin-fb-vs { inset: 0; }
.cin-fb-half { position: absolute; inset: 0; }
.cin-fb-half.s0 { background: linear-gradient(120deg, #0a1a44, #123A8C 45%, #2F7BFF 70%); clip-path: polygon(0 0, 78% 0, 22% 100%, 0 100%); }
.cin-fb-half.s1 { background: linear-gradient(300deg, #3d0711, #8C1222 45%, #FF3B4E 70%); clip-path: polygon(78% 0, 100% 0, 100% 100%, 22% 100%); }
.cin-slash {
  inset: 0;
  background: linear-gradient(118deg, transparent calc(50% - 3px), rgba(255, 255, 255, 0.95) calc(50% - 2px), rgba(255, 255, 255, 0.95) calc(50% + 2px), transparent calc(50% + 3px));
  opacity: 0;
  mix-blend-mode: screen;
}
.cin.has-3d .cin-slash { display: none; }
.cin-versus .cin-plate.s0 { left: 0; top: calc(6cqh + env(safe-area-inset-top, 0px)); padding-left: 12px; }
.cin-versus .cin-plate.s1 { right: 0; bottom: calc(5cqh + env(safe-area-inset-bottom, 0px)); padding-right: 12px; }
.cin-versus .cin-plate.s0 .cin-plate-in { padding-left: 26px; margin-left: -18px; }
.cin-versus .cin-plate.s1 .cin-plate-in { padding-right: 26px; margin-right: -18px; }
.cin-vs {
  left: 50%;
  top: 50%;
  width: clamp(120px, 40cqw, 260px);
  height: clamp(120px, 40cqw, 260px);
  margin: calc(clamp(120px, 40cqw, 260px) / -2) 0 0 calc(clamp(120px, 40cqw, 260px) / -2);
  display: grid;
  place-items: center;
  will-change: transform, opacity;
}
.cin-versus.is-landscape .cin-vs { top: 44%; }
.cin-vs-burst { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.5)); }
.cin-vs-word { position: relative; font-size: clamp(64px, 21cqw, 150px); color: #FFC93C; letter-spacing: -0.02em; }
.cin-vs-icon {
  left: 50%;
  top: 17cqh;
  width: min(54cqw, 34cqh);
  height: min(54cqw, 34cqh);
  margin-left: calc(min(54cqw, 34cqh) / -2);
  opacity: 0;
}
.cin.has-3d .cin-vs-icon { display: none; }
.cin-fb-icon { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.45)); }
.cin-versus.is-landscape .cin-vs-icon { left: 25%; top: 50%; width: min(36cqw, 52cqh); height: min(36cqw, 52cqh); margin: calc(min(36cqw, 52cqh) / -2) 0 0 calc(min(36cqw, 52cqh) / -2); }

.cin-card {
  left: 12px;
  right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(38, 34, 66, 0.94), rgba(22, 19, 40, 0.94));
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45), inset 0 3px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(167, 139, 250, 0.18);
  opacity: 0;
  will-change: transform, opacity;
}
.cin-versus.is-landscape .cin-card { left: auto; right: 6cqw; width: min(46cqw, 560px); top: 0; bottom: 0; margin: auto 0; height: fit-content; padding: 22px 26px 24px; gap: 12px; }
.cin-chips { display: flex; flex-wrap: wrap; gap: 8px; transform-origin: 0 50%; }
.cin-card-title { font-size: clamp(38px, 13cqw, 84px); align-self: flex-start; max-width: 100%; white-space: normal; line-height: 0.95; transform-origin: 0 60%; }
.cin-versus.is-landscape .cin-card-title { font-size: clamp(44px, 6.4cqw, 92px); }
.cin-card-tagline { font: 800 clamp(16px, 4.6cqw, 22px)/1.2 "Inter Tight", system-ui, sans-serif; color: #FFC93C; position: relative; }
.cin-card-how { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 2px solid rgba(255, 255, 255, 0.08); position: relative; }
.cin-card-label { font: 800 11px/1 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #A6A3C2; }
.cin-card-howto { margin: 0; font: 600 clamp(15px, 4.1cqw, 19px)/1.38 "Inter Tight", system-ui, sans-serif; color: #fff; }
.cin-versus.is-sudden .cin-card { box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45), inset 0 3px 0 rgba(255, 255, 255, 0.1), 0 0 0 3px #FF3B4E, 0 0 28px rgba(255, 59, 78, 0.45); }

.cin-count {
  left: 0;
  right: 0;
  top: 15cqh;
  text-align: center;
  opacity: 0;
  will-change: transform, opacity;
}
.cin-versus.is-landscape .cin-count { right: 50%; top: 34cqh; }
.cin-count-word { font-size: clamp(110px, 40cqw, 230px); color: #fff; }
.cin-count.is-go .cin-count-word { color: #2EE6A8; }

/* ---- reduced motion: no blur trails, the timeline already skips the shakes and flashes -- */
.cin-rm .cin-speed { display: none; }

/* ---- shared headline ---------------------------------------------------------------------- */
.cin-head {
  left: 12px;
  right: 12px;
  top: calc(4cqh + env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  will-change: transform, opacity;
}
.cin-head-word { font-size: clamp(40px, 13cqw, 92px); }
.cin-head-sub {
  font: 800 clamp(13px, 3.6cqw, 17px)/1.2 "Inter Tight", system-ui, sans-serif;
  color: #fff;
  padding: 6px 12px;
  background: rgba(5, 4, 10, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.cin-word.s0 { color: #8AB8FF; }
.cin-word.s1 { color: #FF95A0; }

/* ---- coin ------------------------------------------------------------------------------------ */
.cin-coin-sides {
  left: 12px;
  right: 12px;
  top: calc(4cqh + clamp(40px, 13cqw, 92px) + 58px + env(safe-area-inset-top, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.cin-coin.is-landscape .cin-coin-sides { left: 50%; right: auto; width: min(560px, 70cqw); margin-left: calc(min(560px, 70cqw) / -2); }
.cin-coin-side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px 6px 6px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.2s, transform 0.25s cubic-bezier(.34, 1.56, .64, 1);
}
.cin-coin-side.s0 { background: linear-gradient(180deg, #2a4f9e, #16357a); }
.cin-coin-side.s1 { background: linear-gradient(180deg, #a3253a, #6e1020); flex-direction: row-reverse; padding: 6px 6px 6px 10px; }
.cin-coin-side.is-win { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), 0 0 0 3px #FFC93C, 0 0 22px rgba(255, 201, 60, 0.5); transform: translateY(-3px); }
.cin-coin-dot {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  font: 400 18px/1 "Anton", Impact, sans-serif;
  color: #fff;
  -webkit-text-stroke: 1px var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.cin-coin-dot.s0 { background: radial-gradient(circle at 35% 30%, #8AB8FF, #2F7BFF 55%, #123A8C); }
.cin-coin-dot.s1 { background: radial-gradient(circle at 35% 30%, #FF95A0, #FF3B4E 55%, #8C1222); }
.cin-coin-name { font: 800 15px/1.1 "Inter Tight", system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cin-coin-side.s1 .cin-coin-name { text-align: right; }
.cin-coin-win {
  left: 12px;
  right: 12px;
  bottom: calc(7cqh + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.cin-coin-eyebrow, .cin-res-eyebrow, .cin-fin-eyebrow {
  font: 800 13px/1 "Inter Tight", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 10px;
  background: rgba(5, 4, 10, 0.6);
  border-radius: 8px;
}
.cin-coin-winname { font-size: clamp(48px, 17cqw, 120px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cin-coin-picks { height: 36px; font-size: 16px; }
.cin-fb-coin {
  left: 50%;
  top: 46%;
  width: min(42cqw, 30cqh);
  height: min(42cqw, 30cqh);
  margin: calc(min(42cqw, 30cqh) / -2) 0 0 calc(min(42cqw, 30cqh) / -2);
  perspective: 600px;
}
.cin-fb-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5px solid #e8eaf6;
  box-shadow: 0 0 0 4px var(--ink), 0 10px 0 rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  transform: rotateX(var(--flip, 0deg));
  font: 400 clamp(48px, 18cqw, 110px)/1 "Anton", Impact, sans-serif;
  color: #fff;
  -webkit-text-stroke: 0.06em var(--ink);
  paint-order: stroke fill;
}
.cin-fb-face.s0 { background: radial-gradient(circle at 35% 30%, #8AB8FF, #2F7BFF 50%, #123A8C); }
.cin-fb-face.s1 { background: radial-gradient(circle at 35% 30%, #FF95A0, #FF3B4E 50%, #8C1222); transform: rotateX(calc(var(--flip, 0deg) + 180deg)); }

/* ---- roulette ---------------------------------------------------------------------------------- */
.cin-tape {
  left: -10%;
  right: -10%;
  top: calc(2cqh + env(safe-area-inset-top, 0px));
  height: 34px;
  overflow: hidden;
  rotate: -3deg;
  background: repeating-linear-gradient(-45deg, #FF3B4E 0 18px, #1a0308 18px 36px);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  display: flex;
  align-items: center;
}
.cin-tape > span {
  white-space: nowrap;
  font: 400 20px/1 "Anton", Impact, sans-serif;
  letter-spacing: 0.08em;
  color: #fff;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  padding-left: 20px;
}
.cin-roulette.is-sudden .cin-head { top: calc(4cqh + 40px + env(safe-area-inset-top, 0px)); }
.cin-roulette.is-sudden .cin-head-word { color: #FF95A0; }
.cin-rl-res {
  left: 12px;
  right: 12px;
  bottom: calc(5cqh + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.cin-rl-name { font-size: clamp(42px, 14cqw, 104px); max-width: 100%; white-space: normal; color: #FFC93C; }
.cin-roulette.is-sudden .cin-rl-name { color: #fff; }
.cin-rl-res .cin-chip { height: 36px; font-size: 15px; }
.cin-fb-reel {
  left: 50%;
  top: 50%;
  width: min(78cqw, 340px);
  height: 168px;
  margin: -84px 0 0 calc(min(78cqw, 340px) / -2);
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: #12101F;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45), 0 0 0 4px #7C3AED;
}
.cin-fb-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.cin-fb-row { height: 56px; display: grid; place-items: center; font: 400 26px/1 "Anton", Impact, sans-serif; text-transform: uppercase; color: #fff; border-bottom: 2px solid rgba(255, 255, 255, 0.06); }
.cin-fb-mark { position: absolute; left: 0; right: 0; top: 56px; height: 56px; border-top: 3px solid #FFC93C; border-bottom: 3px solid #FFC93C; background: rgba(255, 201, 60, 0.08); }

/* ---- neutrals ---------------------------------------------------------------------------------- */
.cin-nt-labels { inset: -24px; }
.cin:not(.has-3d) .cin-nt-labels { display: none; }
.cin-nt-label {
  opacity: var(--o, 0);
  margin-top: 4px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 8px;
  font: 800 13px/1.1 "Inter Tight", system-ui, sans-serif;
  color: #fff;
  background: rgba(5, 4, 10, 0.78);
  border: 2px solid rgba(167, 139, 250, 0.45);
  border-radius: 8px;
}
.cin-fb-cards {
  left: 12px;
  right: 12px;
  top: 22cqh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.cin-fb-card {
  width: min(28cqw, 150px);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #2E2952, #1C1930);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45);
  font: 800 13px/1.1 "Inter Tight", system-ui, sans-serif;
  text-align: center;
}
.cin-fb-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.cin-picks {
  left: 10px;
  right: 10px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cin-neutrals.is-landscape .cin-picks { left: 50%; right: auto; width: min(820px, 92cqw); margin-left: calc(min(820px, 92cqw) / -2); flex-direction: row; }
.cin-neutrals.is-landscape .cin-pick-row { flex: 1; min-width: 0; }
.cin-pick-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.14);
  will-change: transform, opacity;
}
.cin-pick-row.s0 { background: linear-gradient(100deg, #1d3f8f, #142a5e 70%); }
.cin-pick-row.s1 { background: linear-gradient(260deg, #8f1d2e, #5e1420 70%); }
.cin-pick-row.is-me { box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 0 0 3px #FFC93C; }
.cin-pick-who { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.cin-pick-name { font: 400 22px/1 "Anton", Impact, sans-serif; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.cin-pick-tag { font: 800 11px/1 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
.cin-pick-icons { display: flex; gap: 6px; flex-wrap: nowrap; }
.cin-pick-icon {
  width: min(46px, calc((100cqw - 70px) / 6));
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(5, 4, 10, 0.35);
  border: 2px solid rgba(5, 4, 10, 0.6);
  object-fit: contain;
  will-change: transform;
}
.cin-neutrals.is-landscape .cin-pick-icon { width: min(52px, calc((46cqw - 70px) / 6)); }

/* ---- result ------------------------------------------------------------------------------------ */
.cin-board {
  left: 10px;
  right: 10px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.cin-result.is-landscape .cin-board { left: 50%; right: auto; width: min(620px, 80cqw); margin-left: calc(min(620px, 80cqw) / -2); }
.cin-score {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px 12px 6px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45), inset 0 3px 0 rgba(255, 255, 255, 0.22);
  transition: box-shadow 0.3s;
}
.cin-score.s0 { background: linear-gradient(180deg, #4b8fff, #2F7BFF 45%, #123A8C); }
.cin-score.s1 { background: linear-gradient(180deg, #ff6b79, #FF3B4E 45%, #8C1222); text-align: right; }
.cin-score.is-up { box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45), inset 0 3px 0 rgba(255, 255, 255, 0.22), 0 0 0 3px #FFC93C, 0 0 26px rgba(255, 201, 60, 0.6); }
.cin-score.is-me .cin-score-name::after { content: " (you)"; color: #FFC93C; }
.cin-score-name { font: 800 13px/1.1 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cin-score-num {
  display: inline-block;
  font: 800 clamp(28px, 9cqw, 44px)/1 "JetBrains Mono", ui-monospace, monospace;
  color: #fff;
  text-shadow: 0 3px 0 var(--ink);
  font-variant-numeric: tabular-nums;
  transform-origin: 0 60%;
}
.cin-score.s1 .cin-score-num { transform-origin: 100% 60%; align-self: flex-end; }
.cin-res-wordbox {
  left: 50%;
  top: 44%;
  width: clamp(200px, 74cqw, 480px);
  height: clamp(200px, 74cqw, 480px);
  margin: calc(clamp(200px, 74cqw, 480px) / -2) 0 0 calc(clamp(200px, 74cqw, 480px) / -2);
  display: grid;
  place-items: center;
}
.cin-res-burst { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.5)); }
.cin-res-word { position: relative; font-size: clamp(76px, 26cqw, 190px); color: #fff; }
.cin-res-ban {
  left: 12px;
  right: 12px;
  bottom: calc(6cqh + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.cin-res-name { font-size: clamp(48px, 16cqw, 116px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cin-res-sub { font: 800 clamp(14px, 3.8cqw, 18px)/1.25 "Inter Tight", system-ui, sans-serif; padding: 6px 12px; background: rgba(5, 4, 10, 0.6); border-radius: 10px; }
.cin-res-reason { height: 32px; font-size: 14px; }
.cin-res-next { display: inline-flex; align-items: center; gap: 8px; font: 800 clamp(12px, 3.4cqw, 15px)/1 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #FFC93C; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7); padding: 6px 12px; background: rgba(5, 4, 10, 0.62); border-radius: 8px; }
.cin-res-next::before, .cin-res-next::after { content: ""; width: 18px; height: 3px; border-radius: 2px; background: currentColor; opacity: 0.7; }
.cin-res-ptsbox { left: 0; right: 0; top: 34%; text-align: center; will-change: transform, opacity; }
.cin-res-pts { font-size: clamp(64px, 22cqw, 150px); color: #FFC93C; }

/* ---- final ---------------------------------------------------------------------------------------- */
.cin-fin-top {
  left: 12px;
  right: 12px;
  top: calc(4cqh + env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.cin-fin-name { font-size: clamp(54px, 18cqw, 130px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cin-fin-mid {
  left: 12px;
  right: 12px;
  top: calc(4cqh + clamp(54px, 18cqw, 130px) + 50px + env(safe-area-inset-top, 0px));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.cin-fin-score {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(5, 4, 10, 0.65);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
  font: 800 clamp(22px, 6.4cqw, 32px)/1 "JetBrains Mono", ui-monospace, monospace;
}
.cin-fin-pts.s0 { color: #8AB8FF; }
.cin-fin-pts.s1 { color: #FF95A0; }
.cin-fin-dash { color: #A6A3C2; }
.cin-fin-why { height: 32px; }
.cin-fin-gg {
  left: 12px;
  right: 12px;
  bottom: calc(22cqh + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
}
.cin-fin-gg::before { content: none; }
.cin-fin-gg {
  font: 800 clamp(15px, 4cqw, 19px)/1.2 "Inter Tight", system-ui, sans-serif;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 0 var(--ink), 0 0 12px rgba(5, 4, 10, 0.9);
}
.cin-fb-trophy { left: 50%; top: 38%; width: min(56cqw, 34cqh); height: auto; margin-left: calc(min(56cqw, 34cqh) / -2); filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.45)); }

/* boot on a tall screen: the wordmark stacks on the diagonal so it can be huge */
.cin-boot.is-portrait .cin-boot-mark { flex-direction: column; gap: 0; height: auto; top: 50%; margin-top: calc(-1 * clamp(150px, 46cqw, 330px)); }
.cin-boot.is-portrait .cin-boot-bro { font-size: clamp(84px, 34cqw, 220px); line-height: 0.86; }
.cin-boot.is-portrait .cin-boot-bro.s0 { margin-right: 22cqw; }
.cin-boot.is-portrait .cin-boot-bro.s1 { margin-left: 22cqw; }
.cin-boot.is-portrait .cin-boot-v { width: clamp(84px, 30cqw, 200px); height: clamp(84px, 30cqw, 200px); margin: -3cqw 0; z-index: 1; }
.cin-boot.is-portrait .cin-boot-vw { font-size: clamp(60px, 21cqw, 140px); }
.cin-boot.is-portrait .cin-boot-tag { top: auto; bottom: calc(14cqh + env(safe-area-inset-bottom, 0px)); }

/* final in a short box (a hero above the match table): smaller type, the good game line at the bottom */
.cin-final .cin-fin-name { font-size: clamp(44px, min(18cqw, 16cqh), 130px); }
.cin-final .cin-fin-mid { top: calc(4cqh + clamp(44px, min(18cqw, 16cqh), 130px) + 50px + env(safe-area-inset-top, 0px)); }
.cin-final.is-compact .cin-fin-gg { bottom: 3cqh; }
.cin-final.is-landscape:not(.is-compact) .cin-fin-gg { bottom: 7cqh; }

/* boot with the 3D stage: the wordmark is in the scene, the tagline sits low */
.cin-boot.has-3d .cin-boot-slab, .cin-boot.has-3d .cin-boot-lines, .cin-boot.has-3d .cin-boot-mark { display: none; }
.cin-boot.has-3d .cin-boot-tag { top: auto; bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
.cin-boot.has-3d.is-landscape .cin-boot-tag { bottom: calc(7cqh + env(safe-area-inset-bottom, 0px)); }

/* versus with 3D: the countdown sits under the icon's ring (--cy is measured from the scene) */
.cin-versus.has-3d .cin-count { top: var(--cy, 52cqh); transform-origin: 50% 30%; }
.cin-versus.has-3d .cin-count-word { font-size: clamp(84px, min(30cqw, 14cqh), 150px); }

/* reasons are a plain line of text, not a chip (a chip reads like a button) */
.cin-res-reason, .cin-fin-why {
  display: inline-block;
  height: auto;
  padding: 4px 10px;
  font: 700 clamp(13px, 3.6cqw, 16px)/1.2 "Inter Tight", system-ui, sans-serif;
  color: #C9C6E4;
  background: rgba(5, 4, 10, 0.55);
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
}
.cin-final.is-compact .cin-fin-name { font-size: clamp(40px, min(16cqw, 13cqh), 110px); }
.cin-final.is-compact .cin-fin-mid { top: calc(3cqh + clamp(40px, min(16cqw, 13cqh), 110px) + 46px + env(safe-area-inset-top, 0px)); }
/* the good game line sits on a dark plate so it reads over anything */
.cin-fin-gg { left: 50%; right: auto; transform-origin: 50% 50%; }
.cin-fin-gg { translate: -50% 0; padding: 7px 14px; background: rgba(5, 4, 10, 0.72); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 10px; white-space: nowrap; text-shadow: none; }
/* the result's points start just under the board (top set from the scene) */
.cin-result.no-board .cin-res-ptsbox { top: 6cqh; }
.cin-final.is-compact .cin-fin-top { top: calc(3cqh + env(safe-area-inset-top, 0px)); gap: 4px; }
