@font-face{font-family:DM;src:url('/fonts/DMSans-Regular.ttf')}@font-face{font-family:DM;src:url('/fonts/DMSans-ExtraBold.ttf');font-weight:800}@font-face{font-family:Barlow;src:url('/fonts/BarlowCondensed-BlackItalic.ttf');font-weight:900;font-style:italic}
:root{color-scheme:light;--ice:#cde8ff;--ink:#080b2c;--blue:#0800f5;--lime:#dfff00;--scale:1}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--ice);color:var(--ink);font-family:DM,sans-serif}button,input{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:wait}button:focus-visible,a:focus-visible{outline:4px solid #246aff;outline-offset:-4px}#app{width:min(100%,500px);margin:0 auto;position:relative;min-height:100svh}.canvas{width:500px;height:966px;position:absolute;top:0;left:0;transform:scale(var(--scale));transform-origin:top left;overflow:hidden;background:linear-gradient(130deg,#d9efff,#c4e4ff)}.canvas.dark{background:linear-gradient(130deg,#d9efff,#c4e4ff)}.nav{position:absolute;top:867px;left:0;width:500px;height:99px;display:flex;z-index:2}.nav button{width:125px;padding:0;border:0;background:none}.back{left:15px;top:0;width:56px;height:57px}.help{right:16px;top:0;width:56px;height:57px}.close-role{right:16px;top:0;width:56px;height:57px}.plain{border:0;background:transparent;text-decoration:none;position:absolute;font-size:23px;font-style:italic;color:#52577c}.dark .plain{color:#52577c}.roster{position:absolute;left:15px;top:316px;width:470px;height:379px;border-radius:42px;background:#e1f3ffb0;padding:17px 14px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px 7px;align-content:start;overflow:auto}.person{text-align:center;min-width:0}.avatar{width:124px;height:124px;object-fit:cover;border-radius:50%;display:block;margin:auto;border:2px solid #fff}.initial{display:grid;place-items:center;background:linear-gradient(120deg,#c4c9f0,#8b94bd);font-weight:800;font-size:49px;color:#fff}.person strong{font-size:24px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.host-tag{font-size:17px;background:var(--lime);padding:0 15px;border-radius:20px;display:inline-block}.count{position:absolute;left:324px;top:235px;width:158px;height:40px;text-align:center;font-size:24px;font-weight:800;font-style:italic;border:1px solid #68adff;border-radius:30px;background:#b6ddff}.counter{position:absolute;left:40px;top:585px;display:flex;width:423px;height:52px;border:1px solid #619cff;border-radius:30px;background:#dfF4ff;overflow:hidden;align-items:center;font-size:23px;font-weight:800;font-style:italic}.counter strong{background:var(--blue);color:white;border-radius:30px;padding:10px 28px;white-space:nowrap}.counter span{flex:1;text-align:center}.live-copy{position:absolute;left:30px;top:646px;width:440px;text-align:center;font-size:29px;line-height:1.05}.list{position:absolute;left:30px;width:440px;display:grid;gap:7px}.list-row{display:flex;gap:16px;align-items:center;min-height:55px;border-radius:20px;padding:5px 17px;background:#edf7ffd9;border:1px solid #fff}.list-row strong{font-size:27px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.list-row .avatar{width:58px;height:48px;border-radius:16px;margin:0}.badge{border-radius:24px;background:white;padding:2px 17px;font-size:22px;font-style:italic;white-space:nowrap}.badge.em{background:var(--lime)}.result-title{position:absolute;left:30px;top:413px;width:440px;border-radius:40px;background:var(--lime);font:900 italic 35px/1.2 Barlow;text-align:center;padding:8px}.name-input{position:absolute;left:30px;top:676px;width:440px;height:64px;border:2px solid var(--ink);background:#eff8ffcc;border-radius:36px;padding:0 26px;font-weight:800;font-size:34px}.name-label{position:absolute;left:45px;top:643px;font-size:23px;font-weight:800}.room-name{position:absolute;top:577px;left:65px;width:370px;background:var(--lime);border-radius:35px;text-align:center;padding:7px 12px;font-size:32px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.suspects{position:absolute;left:20px;top:365px;width:460px;max-height:364px;display:grid;gap:8px;overflow:auto}.suspect{display:flex;align-items:center;gap:28px;border:2px solid var(--ink);border-radius:50px;background:#eff8ff;min-height:64px;padding:5px 28px;font-size:32px;font-weight:800;text-align:left}.suspect[aria-pressed=true]{background:var(--lime)}.suspect .circle{border:2px solid var(--ink);width:31px;height:31px;border-radius:50%;margin-left:auto}.suspect[aria-pressed=true] .circle{border:0}.suspect[aria-pressed=true] .circle:after{content:'✓'}.primary,.secondary{border:0;border-radius:45px;font-weight:800;padding:12px 28px;background:var(--lime);font-size:28px}.secondary{background:transparent;border:2px solid var(--ink)}.arrest-button{position:absolute;top:747px;left:16px;width:468px;height:74px;background:var(--blue);color:#fff;border:0;border-radius:45px;font:900 italic 44px Barlow}.arrest-back{position:absolute;top:836px;left:25px;width:452px;height:53px}.arrest-note{position:absolute;top:901px;left:20px;width:460px;text-align:center;font-size:20px;font-style:italic}.empty{position:absolute;left:30px;width:440px;text-align:center;font-size:24px}.profile-stats{position:absolute;left:15px;top:426px;width:470px;height:132px;display:flex;border-radius:30px;background:#e8f6ffe8;align-items:center}.profile-stats div{width:33.333%;text-align:center;font-size:19px}.profile-stats strong{display:block;font:900 italic 76px Barlow}.profile-identity{position:absolute;left:15px;top:294px;display:flex;gap:20px;align-items:center}.profile-identity strong{font-size:34px}.profile-identity .avatar{width:100px;height:100px}.tabs{position:absolute;top:477px;left:47px;width:406px;height:49px;display:flex;border-radius:40px;border:2px solid var(--ink);overflow:hidden}.tabs button{flex:1;border:0;background:transparent;font-size:25px;font-weight:800}.tabs .selected{background:var(--lime);border-radius:40px}.top20{position:absolute;top:536px;left:23px;font-size:33px;font-weight:800;font-style:italic}.rank-list{position:absolute;top:577px;left:20px;width:460px;max-height:208px;overflow:auto;display:grid;gap:8px}.small-action{border:0;background:var(--lime);border-radius:28px;padding:5px 18px;font-size:23px;font-weight:800}.unwired{position:absolute;left:30px;width:440px;text-align:center;font-size:22px}.error-banner{position:absolute;left:20px;top:55px;width:460px;background:var(--lime);color:var(--ink);border-radius:18px;padding:10px 17px;font-size:22px;z-index:5}#toast{position:fixed;z-index:20;top:20px;left:50%;transform:translateX(-50%);width:min(92%,460px);padding:15px 22px;border-radius:18px;background:var(--lime);color:var(--ink);font-weight:800;box-shadow:0 2px 12px #080b2c22}dialog{border:0;border-radius:28px;padding:27px;background:#dff2ff;width:min(92%,440px);color:var(--ink)}dialog::backdrop{background:#080b2c77}dialog h2{font:900 italic 34px Barlow;margin:10px 0}dialog p{font-size:18px}dialog label{display:block;font-weight:800;margin-bottom:8px}dialog input{width:100%;height:52px;border-radius:28px;border:2px solid var(--ink);padding:0 18px;background:#f7fbff;font-size:22px}dialog .primary{width:100%;font-size:23px}dialog .close{position:absolute;right:16px;top:7px;background:none;border:0;font-size:32px}#dialog-error{color:#9a173a;min-height:20px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}[hidden]{display:none!important}

.friend-code{position:absolute;left:18px;top:465px;width:464px;height:70px;background:#e5f5ffbb;border:1px solid white;border-radius:26px;display:flex;align-items:center;justify-content:space-around;font-size:23px}.friend-code strong{font-size:30px;font-weight:800}.profile-identity{max-width:260px}.profile-identity strong{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.canvas[aria-label=result] .list{gap:4px}.canvas[aria-label=result] .list-row{height:50px;min-height:50px;padding:0 16px}.canvas[aria-label=result] .list-row .avatar{width:94px!important;height:45px!important}.live-copy{white-space:pre-line}

.profile-identity{gap:12px;align-items:center}.profile-identity .initial{font-family:DM;font-weight:800;font-style:italic;font-size:47px;background:linear-gradient(130deg,#7a83a7,#535a7d);border:5px solid white}.photo-link{display:block;border:0;background:none;color:#52577c;font-size:18px;font-style:italic;text-decoration:underline;padding:0;margin-top:0}.arrest-button{font-family:DM;font-weight:800;font-size:43px;font-style:italic}.result-title{font-family:DM;font-weight:800;font-size:31px;font-style:italic}

/* Geometry measured in the approved 500 × 966 Cobalt reference. */
.roster {
  left: 15px;
  width: 470px;
  height: 381px;
  padding: 20px 14px 13px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 174px;
  gap: 12px 0;
  background: #e2f2ffc9;
}
.person .avatar { width: 128px !important; height: 128px !important; border: 0; }
.person strong { margin-top: 2px; font-size: 23px; line-height: 26px; }
.host-tag { display: table; margin: 0 auto; font-size: 16px; line-height: 21px; }
.count { display: grid; place-items: center; font-size: 24px; }
.counter { left: 39px; width: 428px; background: #d6ecff; }
.counter strong { width: 200px; text-align: center; background: #0f00c9; }
.suspects { top: 362px; max-height: 354px; gap: 8px; }
.suspect { gap: 20px; font-size: 30px; }
.suspect-initial {
  display: grid;
  flex: 0 0 45px;
  height: 45px;
  place-items: center;
  border-radius: 50%;
  background: #bac7ef;
  font-size: 27px;
}
.suspect-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suspect .circle { flex: 0 0 31px; }
.arrest-button { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 22px; }
.canvas[aria-label="result"] .list { gap: 4px; }
.canvas[aria-label="result"] .list-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 115px) 10px 1fr;
  column-gap: 11px;
}
.canvas[aria-label="result"] .list-row strong { min-width: 0; font-size: 24px; }
.canvas[aria-label="result"] .list-row .badge { justify-self: start; font-size: 21px; font-weight: 800; }
.result-dot { color: var(--ink); }
.room-name { height: 56px; font-size: 34px; }
.name-label { left: 43px; top: 642px; }
.profile-identity { left: 15px; top: 296px; }
.profile-identity strong { display: block; }
.profile-stats { top: 425px; align-items: center; background: #edf7ffdc; }
.profile-stats div { color: #4e507d; font-size: 20px; line-height: 25px; }
.profile-stats div + div { border-left: 1px solid #9daacc; }
.profile-stats strong { color: var(--ink); font: 900 italic 74px/1 Barlow, sans-serif; }
.tabs { top: 477px; left: 47px; width: 406px; height: 49px; }
.top20 { top: 532px; }
.rank-list { top: 573px; max-height: 197px; gap: 7px; }
.rank-list .list-row { padding-inline: 12px; min-height: 61px; }
.rank-list .list-row .avatar { width: 59px; height: 59px; border-radius: 50%; }
.rank-list .wins { flex: 0 0 auto; color: #4e507d; font-size: 22px; font-style: italic; }

.person { border: 0; padding: 0; background: transparent; align-self: start; }
.friend-code { top: 464px; font-size: 23px; }
.code-copy, .friend-name { border: 0; background: none; font-weight: 800; }
.code-copy { font-size: 24px; min-height: 48px; }
.friends-list { position: absolute; inset: 618px 18px auto; height: 204px; overflow: auto; }
.friends-list > p, .rank-list > p { text-align: center; font-size: 23px; padding: 12px; }
.friend-row { display: flex; align-items: center; min-height: 62px; gap: 10px; padding: 4px 10px; margin-bottom: 5px; border: 1px solid #fff; border-radius: 20px; background: #edf7ffe0; }
.friend-row .avatar { flex: 0 0 51px; margin: 0; font-size: 26px; border: 0; }
.friend-row strong, .friend-name { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 25px; }
.friend-name { min-height: 49px; }
.friend-action { min-width: 90px; min-height: 48px; padding: 4px 14px; font-size: 21px; font-weight: 800; background: var(--lime); border: 1px solid transparent; border-radius: 25px; }
.friend-action.outline { background: transparent; border-color: var(--ink); }
.pending-friend { font-size: 20px; color: #4e507d; }
.options-dialog { max-height: calc(100dvh - 28px); overflow: auto; }
.dialog-actions { display: grid; gap: 9px; }
.dialog-actions .secondary { font-size: 18px; min-height: 44px; padding: 8px 16px; }

/* Keep the Cobalt illustrations behind live text and vector controls. */
.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  z-index: 1;
}
.masthead.has-back { justify-content: center; }
.brand { display: inline-flex; gap: 3px; align-items: center; color: #1006d9; font: 900 italic 46px/1 Barlow, sans-serif; }
.brand svg { width: .68em; height: .68em; fill: var(--lime); }
.tool-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  position: absolute;
  z-index: 2;
  font-weight: 800;
}
.tool-button svg, .action svg, .nav svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-button.help { top: 4px; right: 16px; }
.tool-button.help span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eff8ff;
  color: var(--ink);
  font-size: 25px;
}
.display-title {
  margin: 0;
  font: 900 italic 64px/.93 Barlow, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.012em;
}
.display-title span { display: block; }
.art-window { position: relative; width: 100%; overflow: hidden; pointer-events: none; }
.art-window img { position: absolute; width: 100%; height: auto; left: 0; display: block; }
.page-note { margin: 0; color: #41496d; font-style: italic; text-align: center; font-size: 16px; }
.action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 8px 20px;
  min-height: 48px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}
.action.outline { background: transparent; border-color: currentColor; }
.action.cobalt { background: #1304e2; color: white; }
.action.placed { position: absolute; inset-inline: 23px; font-size: 29px; border-width: 2px; }
.placed-note { position: absolute; inset-inline: 22px; font-size: 22px; }
.plain { min-height: 44px; }
.nav {
  top: auto;
  bottom: 0;
  height: 86px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  background: #f3f8fe;
  border-top: 1px solid #c4d8ef;
}
.nav button {
  width: auto;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  position: relative;
  padding: 0 4px 6px;
}
.nav-icon { display: grid; place-items: center; width: 40px; height: 30px; border-radius: 999px; }
.nav button[aria-current="page"] .nav-icon { background: var(--lime); }
.nav button[aria-current="page"]::after {
  content: '';
  position: absolute;
  width: 38px;
  height: 3px;
  bottom: 6px;
  border-radius: 999px;
  background: #b9da00;
}

/* The four tabs use document flow and leave space for the fixed dock. */
.canvas.flow {
  --dock-height: calc(65px + env(safe-area-inset-bottom, 0px));
  position: relative;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  width: 100%;
  height: auto;
  min-height: 100svh;
  padding-bottom: var(--dock-height);
  transform: none;
  overflow: visible;
}
.flow .nav {
  position: fixed;
  width: min(100%, 500px);
  height: var(--dock-height);
  left: 0;
  right: 0;
  margin-inline: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 4;
}
.flow .nav button { font-size: 13px; }
.flow .nav svg { width: 22px; height: 22px; }
.flow .nav-icon { width: 34px; height: 27px; }
.flow .nav button[aria-current="page"]::after { bottom: 4px; width: 28px; }
.flow .error-banner {
  inset-inline: 16px;
  width: auto;
  font-size: clamp(16px, 4.2cqw, 20px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.flow .masthead { height: 54px; padding-inline: 20px; }
.flow .brand { font-size: 38px; }
.flow .tool-button { width: 44px; height: 44px; }
.flow .tool-button.help { right: 12px; }
.flow .tool-button.help span { width: 31px; height: 31px; font-size: 21px; }
.flow .display-title { font-size: clamp(36px, 12.4cqw, 62px); padding: 0 22px 5px; }
.home-banner { color: white; background: linear-gradient(104deg,#0015cc,#0122e8 45%,#0112bc); }
.home-banner .brand, .canvas[aria-label="live"] .brand, .canvas[aria-label="join"] .brand, .canvas[aria-label="result"] .brand { color: white; }
.flow .home-title { font-size: clamp(50px, 16.5cqw, 83px); padding: 3px 22px 0; }
.home-title .accent { color: var(--lime); font-size: .59em; line-height: 1.06; }
.home-tagline { margin: 7px 22px 5px; font-size: clamp(14px, 4.5cqw, 23px); }
.home-scene { mask-image: linear-gradient(transparent,#000 2%); }
.tab-content { display: grid; gap: 11px; padding: 4px 16px 18px; }
.flow .action { font-size: clamp(17px, 4.6cqw, 22px); }
.home-actions { padding-inline: 24px; }
.pro-card {
  display: grid;
  gap: 8px;
  margin: auto 16px 18px;
  padding: 14px;
  border: 1px solid #293dea;
  border-radius: 22px;
  color: white;
  background: linear-gradient(145deg,#1424df,#1204b8);
}
.flow[aria-label="home"] .pro-card { margin-inline: 24px; }
.pro-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pro-card h2 { margin: 0; font: 900 italic clamp(30px, 8cqw, 40px)/1 Barlow, sans-serif; text-transform: uppercase; }
.pro-card p { margin: 0; font-size: 15px; line-height: 1.35; }
.pro-card .pro-card-tagline { margin-top: 4px; font-size: 17px; font-weight: 800; }
.pro-card .pro-card-price { color: var(--ice); font-weight: 800; }
.pro-card-mark {
  display: grid;
  flex: 0 0 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--lime);
  color: var(--ink);
}
.pro-card-mark svg { width: 24px; height: 25px; fill: currentColor; }
.pro-card .action { margin-top: 2px; }
.flow[aria-label="friends"] .tab-content, .flow[aria-label="ranks"] .tab-content { flex: 1; }
.flow[aria-label="friends"] .tab-content { grid-template-rows: auto auto minmax(50px,1fr) auto; }
.flow[aria-label="ranks"] .tab-content { grid-template-rows: auto auto minmax(48px,1fr) auto auto; }
.friends-banner { background: linear-gradient(105deg,#d1e7fd,#c7e3fc); }
.ranks-banner { background: radial-gradient(ellipse at 49% 55%,#e1f0fe,#d0e7fc 72%,#cde6fd); }
.friends-scene { margin-top: -8px; }
.ranks-scene { margin-top: -3px; clip-path: polygon(0 2%,30% 2%,36% 0,59% 0,64% 2%,100% 2%,100% 100%,0 100%); }
.flow .friend-code, .flow .friends-list, .flow .tabs, .flow .top20, .flow .rank-list, .flow .profile-identity, .flow .profile-stats {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}
.flow .friend-code { min-height: 49px; font-size: 16px; padding-inline: 10px; gap: 6px; }
.flow .code-copy { font-size: 16px; min-height: 44px; padding-inline: 7px; }
.flow .friends-list, .flow .rank-list { max-height: 180px; min-height: 44px; overflow-y: auto; }
.flow .friends-list:has(> p:only-child), .flow .rank-list:has(> p:only-child) { display: grid; place-items: center; }
.flow .friends-list > p, .flow .rank-list > p { margin: 0; font-size: 16px; padding: 12px 5px; }
.flow .friend-row { min-height: 50px; padding: 4px 8px; gap: 6px; }
.flow .friend-row .avatar { width: 36px !important; height: 36px !important; flex-basis: 36px; font-size: 18px; }
.flow .friend-row strong, .flow .friend-name, .flow .pending-friend { font-size: 16px; }
.flow .friend-name { min-height: 44px; }
.flow .friend-action { min-width: 58px; min-height: 44px; font-size: 14px; padding: 4px 9px; }
.flow .tabs { min-height: 44px; margin-inline: auto; width: min(90%, 380px); }
.flow .tabs button { min-height: 44px; font-size: 16px; }
.flow .top20 { font-size: 22px; line-height: 1.15; }
.flow .rank-list .list-row { min-height: 45px; padding: 4px 8px; gap: 8px; }
.flow .rank-list .list-row .avatar { width: 38px !important; height: 38px !important; }
.flow .rank-list .list-row strong, .flow .rank-list .badge, .flow .rank-list .wins { font-size: 16px; }
.flow .rank-list .badge { padding-inline: 9px; }
.profile-banner { position: relative; height: clamp(166px, 58cqw, 278px); display: flex; align-items: center; }
.canvas.flow[aria-label="you"] { background: linear-gradient(125deg,#d2e8fd,#c6e2fa); }
.flow .profile-banner .display-title { width: 55%; font-size: clamp(37px, 13cqw, 65px); position: relative; z-index: 1; }
.profile-scene {
  position: absolute;
  display: block;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  clip-path: polygon(23% 5%,43% 5%,50% 8%,55% 1%,64% 0,75% 1%,82% 4%,100% 12%,100% 100%,12% 100%,15% 96%,18% 91%,20% 87%,22% 83%,24% 78%,24% 66%,2% 67%,12% 50%,25% 45%,25% 21%,22% 20%);
}
.flow .profile-identity { padding-inline: 4px; gap: 12px; }
.flow .profile-identity .avatar { width: 64px; height: 64px; flex: 0 0 64px; margin: 0; }
.flow .profile-identity .initial { font-size: 34px; border-width: 3px; }
.flow .profile-identity > div:last-child { min-width: 0; }
.flow .profile-identity strong { font-size: 22px; max-width: none; white-space: normal; overflow-wrap: anywhere; }
.flow .photo-link { min-height: 44px; font-size: 16px; margin-top: -6px; }
.flow .profile-stats { min-height: 91px; border-radius: 20px; }
.flow .profile-stats div { font-size: 13px; line-height: 1.25; padding: 0 3px; }
.flow .profile-stats strong { font-size: clamp(36px, 10cqw, 50px); margin-top: 4px; }
.alibi-card { display: grid; gap: 7px; border-radius: 22px; padding: 14px; background: linear-gradient(153deg,#1424df,#1204b8); color: white; }
.alibi-card h2 { margin: 0; font: 900 italic clamp(31px, 9cqw, 45px)/1 Barlow, sans-serif; text-transform: uppercase; }
.alibi-card p { margin: 0 0 3px; font-size: 16px; line-height: 1.3; }

/* Keep game-state geometry, with readable headings and independent controls. */
.fixed-scene { position: absolute; left: 0; }
.fixed-title { position: absolute; inset: 67px 23px auto; }
.canvas[aria-label="live"], .canvas[aria-label="join"], .canvas[aria-label="result"] {
  background: linear-gradient(#0614ce 0 23%,#d2eaff 40%,#c6e4ff 100%);
}
.canvas[aria-label="live"] .back { color: white; }
.join-title, .live-title, .result-heading { color: white; }
.join-title .accent, .live-title .accent, .result-heading .accent { color: var(--lime); }
.join-title { top: 55px; font-size: 59px; }
.live-title { top: 65px; text-align: center; font-size: 74px; }
.lobby-title { top: 97px; left: 209px; font-size: 59px; }
.lobby-scene { clip-path: polygon(0 0,40% 0,40% 72%,70% 100%,0 100%); }
.eyebrow { position: absolute; top: 45px; left: 50%; transform: translateX(-50%); margin: 0; padding: 5px 21px; border-radius: 999px; background: var(--lime); font-weight: 800; font-size: 21px; text-transform: uppercase; white-space: nowrap; }
.private-title { top: 634px; font-size: 79px; text-align: center; }
.private-copy { font-style: normal; color: var(--ink); font-size: 26px; }
.out-title { top: 66px; font-size: 78px; }
.out-title .accent { display: table; margin-top: 8px; padding: 0 10px 4px; border-radius: 13px; background: var(--lime); font-size: .78em; }
.arrest-title { top: 94px; font-size: 62px; }
.arrest-scene { clip-path: polygon(63% 0,100% 0,100% 100%,56% 100%,60% 75%); }
.result-heading { top: 51px; font-size: 54px; white-space: nowrap; }
.result-heading span { display: inline; }
.result-heading .accent { margin-left: .14em; }
.result-scene { clip-path: polygon(0 2%,14% 2%,17% 0,22% 0,26% 2%,100% 2%,100% 100%,0 100%); }
.result-title { margin: 0; }
.rules-title { text-align: center; top: 71px; font-size: 73px; }
.rule-card {
  position: absolute;
  inset-inline: 12px;
  overflow: hidden;
  padding: 16px 12px;
  border: 1px solid #f6fbff;
  border-radius: 25px;
  background: #dceeff;
}
.rule-card h2, .rule-card p { position: relative; margin: 0; }
.rule-card h2 { display: table; padding: 4px 9px; border-radius: 16px; background: var(--lime); font: 900 italic 27px/1.1 Barlow, sans-serif; }
.rule-card p { margin-top: 8px; max-width: 160px; font-size: 19px; line-height: 1.15; }
.rule-scene { position: absolute; width: 500px; right: -12px; top: 0; clip-path: inset(0 0 0 35%); }
.rule-0 .rule-scene { clip-path: polygon(57% 0,100% 0,100% 100%,25% 100%); }
.rule-1 .rule-scene, .rule-2 .rule-scene { clip-path: polygon(50% 0,100% 0,100% 100%,42% 100%,42% 38%,50% 36%); }
dialog { max-height: calc(100dvh - 24px); overflow-y: auto; }
dialog .primary { min-height: 48px; font-size: 18px; padding: 9px 18px; }
#dialog .close { min-width: 44px; min-height: 44px; top: 8px; right: 10px; }
#dialog-error:empty { min-height: 0; margin: 0; }
#dialog-submit { margin-top: 14px; }
