:root { --c-page-bg: linear-gradient(#262a32, #14161b); --c-panel: rgba(27, 30, 36, .94); }
.c-home .c-title { color: #f2f2f2; }
.c-home .c-title span { color: #ffd23f; }
html, body { margin: 0; height: 100%; background: #1b1e24; color: #f2f2f2; overflow: hidden;
  font: 16px/1.35 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: none; }
#field { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
.screen { position: fixed; inset: 0; z-index: 100; display: flex; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent;
  box-sizing: border-box; padding: calc(var(--band-h, 52px) + 8px) 14px 14px; background: rgba(20, 22, 27, .86);
  overflow-y: auto; touch-action: pan-y; }
.screen.clear { background: none; pointer-events: none; }
.col { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 560px; margin: auto;
  zoom: var(--ui, 1); text-align: center; }
#end .col { gap: 10px; }
.card { padding: 18px 16px; border-radius: 18px; background: #262a32; border: 1px solid rgba(255, 255, 255, .12);
  box-sizing: border-box; }
h2 { margin: 0; font-size: 24px; font-weight: 800; }
.c-btn.big { min-width: 180px; min-height: 52px; font-size: 18px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#introPic { width: 100%; max-width: min(420px, calc(50vh / var(--ui, 1))); height: auto; border-radius: 12px; background: #2b2f36; }
.line { margin: 0; font-size: 19px; font-weight: 700; min-height: 2.7em; display: flex; align-items: center; }
.c-btn.hold { min-height: 56px; min-width: 240px; border-style: dashed; }
.role { margin: 0; font-size: 20px; font-weight: 800; min-height: 1.4em; }
.role.bad { color: #ff8f7a; }
.role.good { color: #8fe39a; }
.dots { display: flex; gap: 8px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.dots i.on { background: #ffd23f; }
.screen.clear { align-items: center; justify-content: center; }
.countNum { font-size: 120px; font-weight: 900; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .7); zoom: var(--ui, 1); }
.scoreRow { display: flex; align-items: center; justify-content: center; gap: 22px; font-size: 54px; font-weight: 900; }
.scoreRow .red, .t-red { color: #ff6b6f; }
.scoreRow .blue, .t-blue { color: #6aa5ff; }
.scoreRow small { font-size: 22px; opacity: .6; }
.sub { margin: 6px 0 0; font-size: 17px; font-weight: 600; opacity: .9; }
.cooks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; margin-top: 10px; }
.cookBtn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 8px;
  min-height: 84px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05);
  color: inherit; font: inherit; }
button.cookBtn { cursor: pointer; }
button.cookBtn:disabled { opacity: .45; cursor: default; }
.cookBtn.picked { border-color: #ffd23f; background: rgba(255, 210, 63, .14); }
.cookBtn.accused { border-color: #ff6b6f; background: rgba(229, 72, 77, .2); }
.cookBtn canvas { width: 48px; height: 48px; }
.cookBtn .tag { font-size: 13px; font-weight: 800; min-height: 17px; }
.cookBtn .tag.sab { color: #ff8f7a; }
.cookBtn .votes { font-size: 13px; letter-spacing: 2px; min-height: 17px; color: #ffd23f; }
.verdict { margin: 10px 0 0; font-size: 22px; font-weight: 900; }
.timer { height: 6px; width: 100%; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-top: 10px; }
.timer i { display: block; height: 100%; background: #ffd23f; }
.result { margin: 4px 0 0; font-size: 26px; font-weight: 900; }
.result.win { color: #8fe39a; }
.result.lose { color: #ff8f7a; }
.clip { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(10, 12, 16, .88);
  border: 1px solid rgba(255, 255, 255, .2); font-size: 17px; font-weight: 700; zoom: var(--ui, 1); white-space: nowrap; }
.clip .kind { padding: 3px 10px; border-radius: 999px; background: #ffd23f; color: #1b1e24; font-weight: 900; letter-spacing: 1px; }
.clip .kind.sab { background: #e5484d; color: #fff; }
.scr-compact.scr-sideways .col { gap: 8px; max-width: 720px; }
.scr-compact.scr-sideways .card { padding: 10px 14px; }
.scr-compact.scr-sideways #introPic { max-width: 300px; }
.scr-compact.scr-sideways .scoreRow { font-size: 40px; }
.scr-compact.scr-sideways .cooks { grid-template-columns: repeat(8, 1fr); }
.scr-compact.scr-sideways .cooks.four { grid-template-columns: repeat(4, 1fr); max-width: 420px; }
.scr-compact.scr-sideways .cookBtn { min-height: 80px; }
.scr-compact.scr-sideways .line { min-height: 0; font-size: 17px; }
.scr-compact.scr-sideways #intro .card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-items: center; justify-items: center; }
.scr-compact.scr-sideways #introPic { grid-column: 1; grid-row: 1 / span 5; max-width: 100%; }
.scr-compact.scr-sideways #intro .card > :not(#introPic) { grid-column: 2; }
.hint { margin: 0; font-size: 15px; opacity: .85; min-height: 0; }
.hint:empty { display: none; }
.cookBtn .third { font-size: 12px; opacity: .75; }
.cookBtn .third:empty { display: none; }
.cookBtn .who { text-decoration: none; }
#wait.screen.clear { padding: 0; align-items: stretch; justify-content: stretch; }
#waitPanel { width: 100%; height: 100%; }
#waitPanel .docs a { color: var(--c-accent); }
#cookBot { width: min(70vw, 260px); }
#cookBot[hidden] { display: none !important; }
body.tv #introNext, body.tv #roleHold, body.tv #cookBot, body.tv #c-stick { display: none !important; }
