/* Apagão (Vyxel e Zovy, 12 anos): esconde-esconde no escuro num prédio abandonado. */
:root {
  --bg: #0B0B10; --card: #16161F; --deep: #0F0F17; --line: #2A2A3A; --tx: #F2F2F7; --mut: #9A9AAB;
  --lime: #C6FF3D; --pink: #FF2E88; --violet: #7C3AED; --gold: #FFB800; --cyan: #2EE6FF; --red: #FF3B5C; --wine: #3A0F24;
  --ink: #07070C; --disp: "Unbounded", "Inter", system-ui, sans-serif; --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --type: "Special Elite", "Courier New", monospace;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; overflow: hidden; color: var(--tx); background: var(--bg); font: 500 15px/1.4 var(--ui); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
input { font: 600 16px/1.2 var(--ui); }
#app { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(120% 70% at 50% 0%, #10302E 0%, #0A1414 45%, #06080A 80%); }
.screen { position: absolute; inset: 0; display: none; padding: calc(10px + var(--sat)) calc(12px + var(--sar)) calc(10px + var(--sab)) calc(12px + var(--sal)); overflow: auto; }
.screen.on { display: block; }
#play.on { padding: 0; overflow: hidden; }


/* ---------- peças comuns ---------- */
.card { padding: 14px 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
.card h2, .card h3 { margin: 0; font: 800 15px/1.2 var(--disp); letter-spacing: .01em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-head small { color: var(--mut); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; color: var(--tx); background: #1E1E2A; border: 1.5px solid var(--line); border-radius: 14px; font: 800 15px/1.1 var(--ui); letter-spacing: .01em; transition: transform .12s, background .2s, border-color .2s, box-shadow .2s; }
.btn:hover:not(:disabled) { border-color: #4A4A60; transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; }
.btn.lime { color: var(--ink); background: var(--lime); border-color: var(--lime); box-shadow: 0 0 24px rgb(198 255 61 / .25); }
.btn.pink { color: #fff; background: var(--pink); border-color: var(--pink); box-shadow: 0 0 24px rgb(255 46 136 / .3); }
.btn.violet { color: #fff; background: #5B2A9E; border-color: #7C4DFF; }
.btn.red { color: #fff; background: #B3123E; border-color: var(--red); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 12px; }
.btn.big { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; justify-items: start; align-items: center; padding: 12px 16px; text-align: left; border-radius: 18px; }
.btn.big .ico { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; background: rgb(255 255 255 / .08); border-radius: 12px; }
.btn.big.lime .ico { background: rgb(0 0 0 / .12); }
.btn.big .ico .zi { width: 24px; height: 24px; }
.btn.big .t { font: 800 17px/1.1 var(--disp); }
.btn.big small { color: inherit; opacity: .75; font: 600 12.5px/1.25 var(--ui); }
.btn .zi { width: 18px; height: 18px; }
.icon-btn, .mini-btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 9px; color: var(--tx); background: #1A1A25; border: 1.5px solid var(--line); border-radius: 12px; }
.icon-btn .zi { width: 20px; height: 20px; }
.mini-btn { display: inline-flex; align-items: center; gap: 6px; min-width: 0; height: 32px; padding: 0 10px; font: 700 12.5px/1 var(--ui); border-radius: 10px; }
.mini-btn .zi { width: 15px; height: 15px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; color: var(--tx); background: #232332; border: 1px solid var(--line); border-radius: 99px; font: 700 12px/1.3 var(--ui); white-space: nowrap; }
.pill.violet { background: #3B1D6E; border-color: #5B2A9E; } .pill.gold { color: var(--ink); background: var(--gold); border-color: var(--gold); } .pill.lime { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.pill .zi { width: 13px; height: 13px; }
input[type=text], input:not([type]) { width: 100%; padding: 11px 13px; color: var(--tx); background: var(--deep); border: 1.5px solid var(--line); border-radius: 12px; outline: 0; }
input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgb(198 255 61 / .2); }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--deep); border: 1.5px solid var(--line); border-radius: 12px; }
.seg button { flex: 1; padding: 8px 6px; color: var(--tx); background: none; border: 0; border-radius: 9px; font: 700 13px/1.1 var(--ui); white-space: nowrap; }
.seg button.on { color: var(--ink); background: var(--lime); }
.set-block { display: grid; gap: 6px; margin-top: 10px; }
.set-block > small { color: var(--mut); font: 800 11px/1 var(--ui); letter-spacing: .1em; }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; } .dots i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; animation: dot 1s infinite; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .2; transform: translateY(-3px); } }
.wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 0; padding: 12px; color: var(--mut); font-weight: 700; text-align: center; }

/* ---------- menu ---------- */
#menu { padding-top: calc(8px + var(--sat)); }
.menu-art { position: absolute; inset: 0 0 auto; height: min(62vh, 640px); overflow: hidden; pointer-events: none; }
.menu-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .85; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); animation: artIn 1.4s ease-out both; }
@keyframes artIn { from { opacity: 0; transform: scale(1.06); } }
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 1080px; margin: 0 auto; }
.logo { height: 30px; width: auto; }
.top-btns { display: flex; gap: 6px; }
.menu-body { position: relative; z-index: 1; display: grid; gap: 16px; max-width: 1080px; margin: 0 auto; padding: min(19vh, 170px) 0 18px; }
.hero { text-align: center; }
.kicker { margin: 0 0 8px; }
.tape { display: inline-block; padding: 4px 14px; color: var(--ink); background: var(--gold); font: 400 14px/1 var(--type); letter-spacing: .12em; transform: rotate(-2deg); box-shadow: 0 6px 18px rgb(0 0 0 / .5); }
.title { display: grid; gap: 2px; margin: 0; font: 900 clamp(38px, 10vw, 76px)/.92 var(--disp); letter-spacing: -.01em; }
.title .t1 { color: var(--tx); font-size: .52em; letter-spacing: .32em; text-shadow: 0 0 18px rgb(255 46 136 / .6), 0 3px 0 #000; }
.title .t2 { color: var(--lime); text-shadow: 0 0 28px rgb(198 255 61 / .55), 0 0 2px #000, 0 6px 0 #000; animation: flick 6s infinite; }
@keyframes flick { 0%, 46%, 50%, 54%, 100% { opacity: 1; } 48%, 52% { opacity: .55; } }
.tag { max-width: 560px; margin: 12px auto 0; color: #C9C9D6; font-size: 15.5px; text-shadow: 0 2px 8px #000; }
.tag b { color: var(--lime); }
.menu-actions { display: grid; gap: 10px; width: min(100%, 460px); margin: 0 auto; }
.menu-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-two .btn.big { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 4px; padding: 12px 8px; }
.menu-two .btn.big .ico { grid-row: auto; }
.menu-two .btn.big .t { font-size: 14px; }
.me-card { display: flex; align-items: center; gap: 12px; padding: 12px; }
.av-big { position: relative; flex: none; width: 64px; height: 64px; padding: 0; background: var(--deep); border: 1.5px solid var(--line); border-radius: 50%; }
.av-big img { width: 100%; height: 100%; border-radius: 50%; }
.av-big .dice { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 24px; height: 24px; color: var(--ink); background: var(--lime); border-radius: 50%; }
.av-big .dice .zi { width: 14px; height: 14px; }
.av-big.roll { animation: roll .5s; } @keyframes roll { 50% { transform: rotate(-12deg) scale(1.08); } }
.me-fields { display: grid; gap: 5px; flex: 1; min-width: 0; }
.me-fields label, .join label { color: var(--mut); font: 800 11px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; }
.me-fields small { color: var(--mut); font-size: 12px; } .me-fields small a { color: var(--lime); }
.join { display: grid; gap: 6px; padding: 12px; }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.join input { font: 800 20px/1 var(--disp); letter-spacing: .3em; text-transform: uppercase; }
.menu-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.menu-row .btn { padding: 9px 3px; font-size: 12px; gap: 4px; }
@media (min-width: 900px) and (min-height: 600px) {
  .menu-body { grid-template-columns: 1fr 440px; align-items: end; gap: 34px; padding-top: min(10vh, 110px); }
  .hero { text-align: left; padding-bottom: 40px; } .tag { margin-left: 0; }
  .menu-art { height: 100%; } .menu-art img { -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 85%); mask-image: linear-gradient(90deg, #000 30%, transparent 85%); object-position: 30% 30%; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .menu-body { grid-template-columns: 1fr minmax(320px, 400px); align-items: center; gap: 18px; padding-top: 6px; }
  .menu-art { height: 100%; } .hero { text-align: left; } .tag { font-size: 13.5px; margin-left: 0; }
  .title { font-size: clamp(30px, 7vw, 54px); }
  .menu-actions { gap: 7px; } .me-card { padding: 8px 10px; } .av-big { width: 48px; height: 48px; }
  .btn.big { padding: 8px 12px; } .btn.big .ico { width: 34px; height: 34px; } .btn.big small { display: none; } .menu-two .btn.big small { display: block; font-size: 11px; }
  .join { padding: 8px 10px; } .join label, #meHint { display: none; }
}

/* salas abertas (public-rooms.js) */
.pub.card { display: grid; gap: 8px; padding: 12px 14px; }
.pub-head label { color: var(--mut); }
.pub-live { color: var(--mut); } .pub-live i { background: #3A3A50; border-color: var(--line); }
.pub-row .btn.cyan { color: var(--ink); background: var(--cyan); border-color: var(--cyan); font: 800 15px/1.1 var(--disp); }
.pub-badge { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.pub-switch { margin-top: 12px; background: rgb(46 230 255 / .07); border: 1.5px dashed var(--line); }
.pub-switch b { color: var(--tx); } .pub-switch small { color: var(--mut); }
.pub-switch span { background: #2A2A3A; border-color: var(--line); } .pub-switch span::after { background: var(--tx); border-color: var(--line); }
.rooms-tip { color: var(--mut); } .rooms li { color: var(--tx); background: var(--deep); border-color: var(--line); } .rooms img { background: var(--card); border-color: var(--line); }
.rooms small, .rep-l { color: var(--mut); } .rooms-empty { color: var(--mut); background: var(--deep); border-color: var(--line); }
.rep-who button, .rep-why button { color: var(--tx); background: var(--deep); border-color: var(--line); } .rep-who img { background: var(--card); border-color: var(--line); }
.rep-who button.on, .rep-why button.on { color: #fff; background: var(--pink); box-shadow: none; }
.btn.rep { color: #FF8FB2; }

/* ---------- sala de espera ---------- */
.bar { display: flex; align-items: center; gap: 10px; max-width: 1080px; margin: 0 auto 12px; }
.bar-title { flex: 1; display: grid; } .bar-title small { color: var(--mut); font: 800 11px/1 var(--ui); letter-spacing: .14em; } .bar-title b { font: 800 18px/1.2 var(--disp); }
.lobby-grid { display: grid; gap: 12px; max-width: 1080px; margin: 0 auto; }
.lobby-grid .col { display: grid; gap: 12px; align-content: start; }
@media (min-width: 820px) { .lobby-grid { grid-template-columns: 1fr 1fr; } }
.code-head { display: flex; align-items: center; gap: 8px; } .code-head small { color: var(--mut); font: 800 11px/1 var(--ui); letter-spacing: .12em; } .code-head .mini-btn { margin-left: auto; }
.code-tiles { display: flex; justify-content: center; gap: 8px; margin: 12px 0; }
.code-tiles span { display: grid; place-items: center; width: 56px; height: 64px; color: var(--bulb); background: var(--deep); border: 1.5px solid var(--line); border-radius: 12px; font: 900 32px/1 var(--disp); text-shadow: 0 0 14px rgb(198 255 61 / .5); }
.code-tiles.hide span { color: transparent; text-shadow: none; } .code-tiles.hide span::after { content: "•"; color: var(--mut); }
.code-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.invite { margin: 10px 0 0; color: var(--mut); font-size: 13px; text-align: center; word-break: break-all; } .invite.hide { filter: blur(6px); }
.players { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.players li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; background: var(--deep); border: 1.5px solid var(--line); border-radius: 14px; }
.players li.me { border-color: var(--lime); }
.players li img { width: 34px; height: 34px; border-radius: 50%; background: var(--card); }
.players .face { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c, var(--line)); background: var(--card) center/cover; }
.players li b { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; } .players li b small { display: block; color: var(--mut); font-size: 11.5px; font-weight: 700; }
.players li.bot { color: var(--mut); }
.players li.bot .ico { display: grid; place-items: center; width: 34px; height: 34px; background: var(--card); border-radius: 50%; }
.watchers { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; color: var(--mut); font-size: 13px; } .watchers img { width: 24px; height: 24px; border-radius: 50%; }
.sus-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sus-pick button { position: relative; display: grid; gap: 4px; justify-items: center; padding: 6px 2px 5px; background: var(--deep); border: 1.5px solid var(--line); border-radius: 12px; font: 700 11px/1.1 var(--ui); }
.sus-pick button img { width: 100%; max-width: 54px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--c); }
.sus-pick button.on { border-color: var(--c); box-shadow: 0 0 0 2px var(--c), 0 0 18px color-mix(in srgb, var(--c) 50%, transparent); }
.sus-pick button.taken { opacity: .38; }
.sus-pick button span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.rules-view { display: flex; flex-wrap: wrap; gap: 6px; }
.btn.start { width: 100%; }

/* ---------- fim ---------- */
.final-wrap { display: grid; gap: 14px; max-width: 960px; margin: 0 auto; }
.final-head { display: grid; justify-items: center; gap: 8px; padding-top: 10px; text-align: center; }
.culprit { position: relative; display: grid; justify-items: center; }
.culprit .stamp { position: absolute; bottom: 12%; padding: 4px 16px; color: #fff; background: var(--red); border: 2px solid #fff; border-radius: 8px; font: 900 clamp(18px, 5vw, 26px)/1 var(--disp); letter-spacing: .08em; transform: rotate(-8deg); box-shadow: 0 6px 20px rgb(0 0 0 / .6); animation: stamp .5s .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.final-head .portrait { width: min(42vw, 200px); filter: drop-shadow(0 10px 30px rgb(0 0 0 / .7)); }
.final-head .big { font: 900 clamp(26px, 7vw, 44px)/1.05 var(--disp); }
.final-head .big.win { color: var(--lime); text-shadow: 0 0 26px rgb(198 255 61 / .5); } .final-head .big.lose { color: var(--tx); }
.final-head p { margin: 0; color: #C9C9D6; }
.final-head p b { color: var(--lime); }
.final-cols { display: grid; gap: 12px; }
@media (min-width: 820px) { .final-cols { grid-template-columns: 1.2fr 1fr; } }
.sol-row { display: flex; justify-content: center; gap: 8px; margin: 12px 0; } .sol-row .cc { --cw: min(25vw, 110px); }
.flist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.flist li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 6px 10px; background: var(--deep); border: 1.5px solid var(--line); border-radius: 12px; }
.flist li.me { border-color: var(--lime); } .flist li .face { width: 32px; height: 32px; border: 2px solid var(--c); border-radius: 50%; background: var(--card) center/cover; }
.flist li small { display: block; color: var(--mut); font-size: 12px; } .flist li em { font-style: normal; font-weight: 800; color: var(--mut); } .flist li em.w { color: var(--lime); } .flist li em.o { color: var(--red); }
.reward { display: grid; gap: 6px; margin: 10px 0; } .reward p { margin: 0; } .reward .soft { color: var(--mut); font-size: 13.5px; }
.xp-big { color: var(--lime); font: 900 40px/1 var(--disp); text-shadow: 0 0 20px rgb(198 255 61 / .5); } .xp-big small { font-size: 16px; }
.row-chips { display: flex; flex-wrap: wrap; gap: 6px; } .gold { color: var(--gold); font-weight: 800; }
.btn-mini { display: inline-flex; padding: 7px 12px; color: var(--ink); background: var(--lime); border-radius: 10px; font: 800 13px/1 var(--ui); text-decoration: none; } .btn-mini.ghost { color: var(--tx); background: #232332; }
.final-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .final-actions .btn { flex: 1 1 130px; }

/* modal, avisos, carregando */
.modal { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgb(5 5 9 / .7); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(100%, 560px); max-height: calc(100% - 20px); overflow: auto; padding: 20px; background: #13131B; border: 1.5px solid var(--line); border-radius: 22px; box-shadow: 0 20px 60px rgb(0 0 0 / .7); }
.modal-card .x { position: absolute; top: 12px; right: 12px; }
.modal-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 40px 12px 0; font: 800 19px/1.2 var(--disp); } .modal-card h2 .zi { color: var(--lime); }
.modal-card ol, .modal-card ul { padding-left: 20px; } .modal-card li { margin-bottom: 8px; color: #D9D9E6; } .modal-card li b { color: var(--tx); }
.modal-card p { color: #C9C9D6; }
.setup { display: grid; gap: 4px; } .setup .btn.big { margin-top: 12px; width: 100%; }
.loc-list { display: grid; gap: 8px; margin: 6px 0; }
.loc-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.loc-row .face { width: 40px; height: 40px; padding: 0; border: 2px solid var(--c); border-radius: 50%; background: var(--card) center/cover; }
.loc-row .rm { width: 36px; height: 36px; padding: 0; color: var(--mut); background: var(--deep); border: 1.5px solid var(--line); border-radius: 10px; }
.top-list { display: grid; gap: 6px; padding: 0 !important; list-style: none; }
.top-list li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 6px 10px; background: var(--deep); border-radius: 12px; }
.top-list img { width: 32px; height: 32px; border-radius: 50%; }
.how-sus { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 8px 0 14px; } .how-sus img { width: 100%; border-radius: 50%; border: 2px solid var(--c); }
.qr { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 16px; } .qr svg { width: min(70vw, 260px); height: auto; }
.toasts { position: absolute; left: 50%; top: calc(10px + var(--sat)); z-index: 90; display: grid; gap: 6px; width: min(92vw, 420px); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: var(--tx); background: #1A1A26; border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / .6); font-weight: 700; animation: feedIn .3s; }
.toast img { width: 28px; height: 28px; border-radius: 50%; } .toast .t-ic .zi { width: 20px; height: 20px; color: var(--lime); }
.toast.out { opacity: 0; transition: opacity .3s; }
#confetti { position: absolute; inset: 0; z-index: 95; width: 100%; height: 100%; pointer-events: none; }
.boot { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .4s; }
.boot.gone { opacity: 0; pointer-events: none; }
.boot-in { display: grid; justify-items: center; gap: 10px; color: var(--lime); font: 900 20px/1 var(--disp); letter-spacing: .1em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .rain { display: none; } }

/* ======================================================================
   Apagão: tema (luz fluorescente doente, verde-azulado, preto)
   ====================================================================== */
:root { --bulb: #FFE58A; --bulb2: #F7F1C9; --teal: #47D6C4; --blood: #FF3B5C; }
.grain { position: absolute; inset: -50%; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(3%, -6%); } 60% { transform: translate(-7%, -2%); } 80% { transform: translate(6%, 5%); } 100% { transform: translate(0, 0); } }
.age { display: inline-grid; place-items: center; height: 40px; padding: 0 10px; color: var(--ink); background: var(--bulb); border-radius: 12px; font: 900 14px/1 var(--disp); }
.tape { color: #111; background: repeating-linear-gradient(-45deg, #FFD43B 0 14px, #111 14px 28px); padding: 6px 14px; color: #FFF; text-shadow: 0 1px 2px #000, 0 0 4px #000; font-weight: 400; }
.title .t2 { position: relative; color: var(--bulb2); letter-spacing: .04em; text-shadow: 0 0 6px #fff, 0 0 26px rgb(255 229 138 / .75), 0 0 60px rgb(255 229 138 / .35), 0 6px 0 #000; animation: tube 7s infinite; }
.title .t2::after { content: attr(data-text); position: absolute; inset: 0; color: var(--teal); opacity: 0; mix-blend-mode: screen; transform: translate(3px, 0); animation: ghost 7s infinite; }
@keyframes tube { 0%, 18%, 22%, 62%, 64%, 66%, 100% { opacity: 1; } 20%, 63%, 65% { opacity: .15; text-shadow: none; } }
@keyframes ghost { 0%, 62%, 67%, 100% { opacity: 0; } 63%, 66% { opacity: .6; } }
.tag b { color: var(--bulb); }
.menu-art img { opacity: .9; filter: saturate(.85) contrast(1.05); animation: artIn 1.4s ease-out both, artFlick 9s 2s infinite; }
@keyframes artFlick { 0%, 40%, 43%, 46%, 100% { filter: saturate(.85) contrast(1.05) brightness(1); } 41%, 45% { filter: saturate(.6) brightness(.35); } }
.btn.lime { color: #0B0B0B; background: var(--bulb); border-color: var(--bulb); box-shadow: 0 0 26px rgb(255 229 138 / .3); }
.seg button.on { color: #0B0B0B; background: var(--bulb); }
input:focus { border-color: var(--bulb); box-shadow: 0 0 0 3px rgb(255 229 138 / .2); }
.code-tiles span { color: var(--bulb); text-shadow: 0 0 14px rgb(255 229 138 / .5); }
.players li.me, .flist li.me { border-color: var(--bulb); }
.menu-actions > .btn.big { width: 100%; }

/* escolha do personagem */
.char-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.char-pick button { position: relative; display: grid; gap: 4px; justify-items: center; padding: 5px 2px 6px; background: var(--deep); border: 1.5px solid var(--line); border-radius: 12px; font: 700 11.5px/1.1 var(--ui); }
.char-pick button img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 9px; filter: grayscale(.55) brightness(.8); transition: filter .2s, transform .2s; }
.char-pick button.on { border-color: var(--c); box-shadow: 0 0 0 2px var(--c), 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.char-pick button.on img, .char-pick button:hover img { filter: none; }
.char-pick button.taken { opacity: .35; }
.char-pick button span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.char-line { margin: 8px 2px 0; color: var(--mut); font-size: 13px; font-style: italic; min-height: 1.4em; }
.players .face, .flist .face, .rs .face, .res-list .face, .vig-card .who .face, .toast .face { display: inline-block; flex: none; width: 34px; height: 34px; border: 2px solid var(--c, var(--line)); border-radius: 50%; background: var(--card) center/cover; }

/* ---------- partida ---------- */
#play { background: #000; touch-action: none; -webkit-user-select: none; user-select: none; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: calc(8px + var(--sat)) calc(10px + var(--sar)) 0 calc(10px + var(--sal)); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud .icon-btn { background: rgb(10 12 14 / .7); border-color: rgb(255 255 255 / .12); backdrop-filter: blur(4px); }
.hud-btns { display: flex; gap: 6px; }
.hud-mid { display: grid; justify-items: center; gap: 4px; }
.timer { padding: 4px 14px; color: var(--bulb2); background: rgb(10 12 14 / .72); border: 1.5px solid rgb(255 255 255 / .12); border-radius: 12px; font: 800 20px/1.1 var(--disp); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.timer.low { color: var(--blood); border-color: var(--blood); animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgb(255 59 92 / .25); } }
.round { color: #C9C9D6; font: 800 11px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 3px #000; }
.side-l { position: absolute; z-index: 9; left: calc(10px + var(--sal)); top: calc(62px + var(--sat)); display: grid; gap: 5px; pointer-events: none; }
.rs { position: relative; display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; background: rgb(10 12 14 / .6); border-radius: 99px; font: 700 12px/1 var(--ui); color: #E6E6EE; width: max-content; max-width: 150px; }
.rs .face { width: 26px; height: 26px; border-width: 2px; }
.rs b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
.rs.st1, .rs.st3 { opacity: .55; } .rs.st1 .face, .rs.st3 .face { filter: grayscale(1); }
.rs.st1::after, .rs.st3::after { content: ""; position: absolute; left: 3px; top: 15px; width: 26px; height: 2.5px; background: var(--blood); transform: rotate(-30deg); border-radius: 2px; }
.rs.st2 { color: var(--bulb); } .rs.st2 .face { box-shadow: 0 0 10px var(--teal); }
.rs.vig { color: var(--bulb); } .rs.vig .face { border-color: var(--bulb); }
.rs .tg { margin-left: 2px; color: var(--mut); font-size: 10px; letter-spacing: .06em; }
.rs.me { background: rgb(198 255 61 / .16); box-shadow: inset 0 0 0 2px #C6FF3D; max-width: 190px; }
.rs.me .face { border-color: #C6FF3D; }
.rs .you { flex: none; padding: 2px 5px; border-radius: 99px; background: #C6FF3D; color: #10140a; font: 900 9px/1 var(--ui); letter-spacing: .05em; }
.bat { position: absolute; z-index: 9; top: calc(64px + var(--sat)); left: 50%; display: flex; align-items: center; gap: 7px; padding: 5px 10px; background: rgb(10 12 14 / .62); border-radius: 99px; transform: translateX(-50%); pointer-events: none; }
.bat-ic { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, var(--bulb) 45%, #8a6a00); box-shadow: 0 0 10px var(--bulb); }
.bat.off .bat-ic { background: #444; box-shadow: none; }
.bat-bar { position: relative; width: min(30vw, 150px); height: 8px; overflow: hidden; background: #222; border-radius: 99px; }
.bat-bar i { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, #C9A300, var(--bulb)); border-radius: 99px; transition: width .12s linear; }
.bat.low .bat-bar i { background: var(--blood); }
.bat small { color: #B9B9C6; font: 700 10.5px/1 var(--ui); letter-spacing: .04em; white-space: nowrap; }
.status { position: absolute; z-index: 9; left: 50%; top: calc(98px + var(--sat)); max-width: 88vw; color: #fff; font: 800 15px/1.25 var(--ui); text-align: center; text-shadow: 0 2px 6px #000, 0 0 2px #000; transform: translateX(-50%); pointer-events: none; }
.status.warn { color: var(--blood); font: 900 22px/1.1 var(--disp); letter-spacing: .04em; animation: shake .25s infinite; }
@keyframes shake { 25% { transform: translate(calc(-50% - 2px), 1px); } 75% { transform: translate(calc(-50% + 2px), -1px); } }
.vhs { position: absolute; z-index: 8; left: calc(14px + var(--sal)); bottom: calc(14px + var(--sab)); display: none; gap: 14px; color: #E9F5EF; font: 400 15px/1 var(--type); letter-spacing: .1em; text-shadow: 0 0 6px rgb(120 255 220 / .6); pointer-events: none; }
.watching .vhs { display: flex; }
.vhs .rec { color: var(--blood); } .vhs .rec::before { content: "●"; margin-right: 6px; animation: dot 1s steps(2) infinite; }

/* controles do fugitivo */
.pad { position: absolute; z-index: 7; inset: 0 45% 0 0; display: none; }
.runner .pad { display: block; }
.stick { position: absolute; width: 124px; height: 124px; margin: -62px 0 0 -62px; border: 2px solid rgb(255 255 255 / .18); border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / .05), rgb(255 255 255 / .02) 60%, transparent 70%); opacity: 0; transition: opacity .15s; pointer-events: none; }
.stick::before { content: ""; position: absolute; inset: 22%; border: 1.5px dashed rgb(255 229 138 / .35); border-radius: 50%; }
.stick i { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; background: radial-gradient(circle at 40% 35%, #fff, #cfcfd8 60%, #8f8f9c); border-radius: 50%; box-shadow: 0 6px 18px rgb(0 0 0 / .5); }
.stick.on { opacity: 1; }
.stick.idle { opacity: .55; }
.run-ctl, .watch-ctl { position: absolute; z-index: 9; right: calc(14px + var(--sar)); bottom: calc(16px + var(--sab)); display: none; justify-items: end; gap: 8px; }
.runner .run-ctl, .watcher .watch-ctl { display: grid; }
.sneak { display: grid; justify-items: center; gap: 2px; width: 104px; padding: 12px 6px 10px; color: #E6E6EE; background: rgb(10 12 14 / .7); border: 2px solid rgb(255 255 255 / .16); border-radius: 22px; backdrop-filter: blur(4px); }
.sneak b { font: 900 12.5px/1 var(--disp); letter-spacing: .03em; } .sneak small { color: var(--mut); font: 700 10.5px/1 var(--ui); }
.sneak .ft { width: 30px; height: 30px; background: currentColor; -webkit-mask: var(--feet) center/contain no-repeat; mask: var(--feet) center/contain no-repeat;
  --feet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2c1.7 0 3 1.9 3 4.5S9.8 12 8 12 5 9.1 5 6.5 6.3 2 8 2zm8 6c1.7 0 3 1.9 3 4.5S17.8 18 16 18s-3-2.9-3-5.5S14.3 8 16 8zM6 14h4v2a2 2 0 0 1-4 0zm8 6h4v.5a2 2 0 0 1-4 0z'/%3E%3C/svg%3E"); }
.sneak[aria-pressed=true] { color: #0B0B0B; background: var(--teal); border-color: var(--teal); box-shadow: 0 0 22px rgb(71 214 196 / .45); }
.sneak[aria-pressed=true] small { color: rgb(0 0 0 / .65); }
.mode { padding: 4px 10px; color: #C9C9D6; background: rgb(10 12 14 / .6); border-radius: 99px; font: 800 11px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.mode.run { color: #0B0B0B; background: #FF9F43; } .mode.quiet { color: #0B0B0B; background: var(--teal); } .mode.stop { color: #fff; background: #333; }
.light-btn { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; width: 132px; height: 132px; color: #F7F1C9; background: radial-gradient(circle at 50% 38%, #3a3420, #15140e 70%); border: 3px solid #5c5236; border-radius: 50%; box-shadow: 0 10px 30px rgb(0 0 0 / .6), inset 0 0 0 6px rgb(0 0 0 / .35); touch-action: none; }
.light-btn b { font: 900 20px/1 var(--disp); letter-spacing: .08em; } .light-btn small { color: #B8AE8A; font: 700 11px/1 var(--ui); }
.light-btn .bulb { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #8a8060, #3a3420); }
.light-btn.on { color: #0B0B0B; background: radial-gradient(circle at 50% 38%, #FFFBE0, var(--bulb) 55%, #C9A300); border-color: #fff3b0; box-shadow: 0 0 60px rgb(255 229 138 / .8), 0 0 0 10px rgb(255 229 138 / .15); }
.light-btn.on small { color: rgb(0 0 0 / .6); }
.light-btn.on .bulb { background: radial-gradient(circle, #fff, #fff6c8); box-shadow: 0 0 20px #fff; }
.light-btn:disabled { opacity: .45; }
.watch-hint { color: #C9C9D6; font: 700 11.5px/1.2 var(--ui); text-align: right; text-shadow: 0 1px 3px #000; max-width: 190px; }

/* faixas e camadas da partida */
.banner { position: absolute; z-index: 20; left: 50%; top: 42%; display: grid; justify-items: center; gap: 6px; width: min(92vw, 560px); padding: 16px 20px; text-align: center; background: rgb(6 8 10 / .82); border: 1.5px solid rgb(255 255 255 / .12); border-radius: 20px; box-shadow: 0 20px 60px rgb(0 0 0 / .7); transform: translate(-50%, -50%); animation: bIn .35s cubic-bezier(.2, 1.4, .4, 1) both; pointer-events: none; }
.banner b { font: 900 clamp(22px, 6vw, 34px)/1.05 var(--disp); color: var(--c, var(--bulb2)); text-shadow: 0 0 20px color-mix(in srgb, var(--c, #FFE58A) 50%, transparent); }
.banner small { color: #C9C9D6; font-size: 14px; }
.banner.out { animation: bOut .3s both; }
@keyframes bIn { from { opacity: 0; transform: translate(-50%, -40%) scale(.92); } }
@keyframes bOut { to { opacity: 0; transform: translate(-50%, -60%); } }
.caught { position: absolute; z-index: 30; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgb(80 0 10 / .35), rgb(0 0 0 / .85)); animation: cIn .2s both; pointer-events: none; }
.caught-in { display: grid; justify-items: center; gap: 10px; text-align: center; }
.caught img { width: min(70vw, 340px); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 46%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 46%, #000 55%, transparent 100%); filter: drop-shadow(0 0 40px rgb(0 0 0 / .9)); animation: zoomIn .55s cubic-bezier(.1, 1.3, .3, 1) both; }
.caught .stamp { padding: 6px 22px; color: #fff; background: var(--blood); border: 3px solid #fff; border-radius: 10px; font: 900 clamp(30px, 9vw, 54px)/1 var(--disp); letter-spacing: .08em; transform: rotate(-6deg); box-shadow: 0 10px 30px rgb(0 0 0 / .7); animation: stamp .45s .25s cubic-bezier(.2, 1.6, .4, 1) both; }
.caught p { margin: 0; color: #E6E6EE; font-weight: 700; text-shadow: 0 2px 6px #000; }
.caught.calm img { animation: none; }
@keyframes cIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(1.8); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(2.2); } }
.intro, .res { position: absolute; z-index: 25; inset: 0; display: grid; place-items: center; padding: calc(14px + var(--sat)) 14px calc(14px + var(--sab)); background: rgb(4 6 7 / .86); backdrop-filter: blur(3px); overflow: auto; }
.intro-in { display: grid; justify-items: center; gap: 10px; width: min(100%, 620px); text-align: center; animation: bIn .4s both; }
.intro .kick, .res .kick { color: var(--mut); font: 800 12px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; }
.intro h2 { margin: 0; font: 900 clamp(24px, 6.5vw, 40px)/1.05 var(--disp); color: var(--bulb2); text-shadow: 0 0 22px rgb(255 229 138 / .4); }
.intro .map-sub { margin: -4px 0 4px; color: #B9B9C6; font: 400 15px/1.2 var(--type); }
.vig-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; text-align: left; background: #0E1212; border: 1.5px solid #3a3320; border-radius: 18px; box-shadow: 0 0 40px rgb(255 229 138 / .08); }
.vig-card img.v { width: 84px; height: 112px; object-fit: cover; border-radius: 12px; }
.vig-card b { display: block; font: 900 18px/1.15 var(--disp); color: var(--bulb); }
.vig-card small { color: #C9C9D6; font-size: 13.5px; }
.vig-card .who { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 800; }
.vig-card .who img, .vig-card .who .face { width: 28px; height: 28px; border-radius: 50%; }
.toast .face { width: 28px; height: 28px; }
.role-tip { display: grid; gap: 6px; max-width: 520px; color: #D9D9E6; font-size: 14.5px; }
.role-tip b { color: var(--bulb); }
.count { font: 900 64px/1 var(--disp); color: #fff; text-shadow: 0 0 30px rgb(255 229 138 / .6); min-height: 64px; }
.count.go { color: var(--blood); }
.res-in { display: grid; gap: 12px; width: min(100%, 560px); animation: bIn .4s both; }
.res h2 { margin: 0; text-align: center; font: 900 clamp(22px, 6vw, 34px)/1.1 var(--disp); }
.res-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.res-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 7px 12px; background: #101414; border: 1.5px solid var(--line); border-radius: 14px; }
.res-list li.me { border-color: var(--bulb); }
.res-list li small { display: block; color: var(--mut); font-size: 12px; }
.res-list li em { font-style: normal; font: 900 16px/1 var(--disp); color: var(--bulb); }
.res-list li.vig { background: #17150c; }
.res .next { color: var(--mut); text-align: center; font-weight: 700; }
.badge { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 99px; font: 800 10px/1.3 var(--ui); letter-spacing: .05em; vertical-align: 2px; }
.badge.ok { color: #0B0B0B; background: var(--teal); } .badge.no { color: #fff; background: var(--blood); } .badge.lk { color: #fff; background: #555; } .badge.vg { color: #0B0B0B; background: var(--bulb); }
.final-head .portrait { width: min(36vw, 170px); border-radius: 18px; }
.how-chars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 8px 0 14px; } .how-chars img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; border: 2px solid var(--c); }
.key { display: inline-block; padding: 1px 7px; background: #232332; border: 1px solid var(--line); border-radius: 6px; font: 800 12px/1.4 var(--ui); }

@media (max-height: 560px) and (orientation: landscape) {
  .side-l { top: calc(52px + var(--sat)); gap: 3px; } .rs { padding: 2px 8px 2px 2px; font-size: 11px; } .rs .face { width: 22px; height: 22px; }
  .bat { top: calc(8px + var(--sat)); left: auto; right: calc(110px + var(--sar)); transform: none; } .bat-bar { width: 90px; } .bat small { display: none; }
  .hud-mid { flex-direction: row; } .status { top: calc(56px + var(--sat)); }
  .light-btn { width: 112px; height: 112px; } .sneak { width: 92px; padding: 9px 4px 8px; }
  .intro-in { gap: 6px; } .vig-card img.v { width: 60px; height: 80px; } .count { font-size: 44px; min-height: 44px; } .role-tip { font-size: 13px; }
}
@media (max-width: 560px) { .char-pick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) and (orientation: portrait) {
  .round .mapn { display: none; } .rs b, .rs .tg { display: none; } .rs { padding: 3px; } .rs.vig::before { content: "VIGIA"; position: absolute; left: 100%; margin-left: 4px; color: var(--bulb); font: 800 9px/1 var(--ui); letter-spacing: .06em; } .side-l { top: calc(102px + var(--sat)); } .status { top: calc(104px + var(--sat)); left: auto; right: calc(12px + var(--sar)); max-width: 52vw; text-align: right; transform: none; }
  .rs.me { max-width: none; } .rs .you { position: absolute; left: 15px; bottom: -7px; transform: translateX(-50%); padding: 1px 3px; font-size: 7px; }
  .status.warn { animation: none; font-size: 18px; } .bat small { display: none; } .bat-bar { width: 46vw; }
}
@media (prefers-reduced-motion: reduce) { .grain { display: none; } }

/* ---------- sustos, aparição e trailer (v1.234.0) ---------- */
.scare-btn { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 10px; color: #fff; background: rgb(196 18 48 / .9); border: 2px solid rgb(255 255 255 / .2); border-radius: 12px; font: 900 11.5px/1 var(--ui); letter-spacing: .08em; cursor: pointer; }
.scare-btn svg { width: 16px; height: 16px; }
.scare-btn[aria-pressed="false"] { color: var(--mut); background: rgb(30 32 36 / .85); }
.scare-btn[aria-pressed="false"] b { text-decoration: line-through; }
@media (max-width: 380px) { .scare-btn b { display: none; } }

/* o susto: o Vigia pula na tela */
.caught.scare { background: #000; animation: none; }
.caught.scare .sc-img { position: absolute; inset: 0; background: center 28% / cover no-repeat; animation: scIn 2.6s cubic-bezier(.05, .9, .2, 1) both, scBlink 2.6s steps(1) both; }
@keyframes scIn { 0% { transform: scale(1.9) rotate(-3deg); filter: brightness(2.4) contrast(1.5); } 9% { transform: scale(1.06) rotate(1deg); filter: brightness(1.35) contrast(1.2); } 14% { transform: scale(1.08) translate(-1%, 1%); } 19% { transform: scale(1.05) translate(1%, -1%); } 100% { transform: scale(1); filter: brightness(.42) saturate(.7); } }
@keyframes scBlink { 0%, 21%, 25%, 40%, 43%, 100% { opacity: 1; } 22%, 41% { opacity: .1; } }
.caught.scare .sc-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, rgb(255 255 255 / .95), rgb(255 0 40 / .55) 60%, rgb(80 0 0 / .4)); mix-blend-mode: screen; animation: scFlash .55s ease-out both; pointer-events: none; }
@keyframes scFlash { from { opacity: 1; } to { opacity: 0; } }
.caught.scare .sc-lines { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgb(0 0 0 / .28) 0 2px, transparent 2px 4px); mix-blend-mode: multiply; pointer-events: none; }
.caught.scare .caught-in.late { position: relative; align-self: end; margin-bottom: calc(14vh + var(--sab)); animation: cIn .25s 1.15s both; }
.caught.scare .stamp { animation-delay: 1.15s; }
#app.shake { animation: appShake .6s; }
@keyframes appShake { 10% { transform: translate(-9px, 5px); } 20% { transform: translate(8px, -6px); } 30% { transform: translate(-7px, -4px); } 40% { transform: translate(6px, 5px); } 55% { transform: translate(-4px, 2px); } 70% { transform: translate(3px, -2px); } 85% { transform: translate(-1px, 1px); } }

/* aparição: o Vigia num canto, por um instante */
.appar { position: absolute; z-index: 8; bottom: 4%; height: 72%; width: auto; opacity: 0; pointer-events: none; filter: brightness(.75) contrast(1.35) saturate(.7); -webkit-mask-image: radial-gradient(ellipse 48% 52% at 50% 40%, #000 40%, transparent 78%); mask-image: radial-gradient(ellipse 48% 52% at 50% 40%, #000 40%, transparent 78%); }
.appar.l { left: -6%; } .appar.r { right: -6%; transform: scaleX(-1); }
.appar.on { animation: appar 1.5s steps(1) both; }
@keyframes appar { 0% { opacity: 0; } 6% { opacity: .9; } 11% { opacity: 0; } 18% { opacity: .75; } 24% { opacity: .95; } 62% { opacity: .95; } 63%, 100% { opacity: 0; } }

/* trailer */
.trailer { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: #000; }
.trailer video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.trailer .btn { position: absolute; right: calc(14px + var(--sar)); bottom: calc(14px + var(--sab)); background: rgb(20 22 26 / .8); }
.trailer .btn svg { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) { #app.shake { animation: none; } }
/* arte do lugar atrás da apresentação da rodada */
.intro { isolation: isolate; }
.intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--art, none) center / cover no-repeat; opacity: .28; filter: saturate(.8); animation: artIn 1.4s ease-out both; pointer-events: none; }
/* vídeos (v1.235.0): fundo do menu em laço e o susto em vídeo */
.menu-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity .8s; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); filter: saturate(.85) contrast(1.05); }
.menu-art.vid video { opacity: .9; }
@media (min-width: 900px) and (min-height: 600px), (max-height: 560px) and (orientation: landscape) { .menu-art video { -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 85%); mask-image: linear-gradient(90deg, #000 30%, transparent 85%); object-position: 30% 30%; } }
.caught.scare .sc-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: scVid 1.6s cubic-bezier(.05, .9, .2, 1) both; }
@keyframes scVid { 0% { transform: scale(1.25); filter: brightness(1.9) contrast(1.3); } 12% { transform: scale(1.03) translate(-1%, 1%); filter: brightness(1.2); } 20% { transform: scale(1.05) translate(1%, -1%); } 100% { transform: scale(1); filter: brightness(1); } }

/* ---------- perseguidor, chave e esconderijos (v1.236.0) ---------- */
.run-ctl { grid-template-columns: auto auto; align-items: end; }
.run-ctl .mode { grid-column: 1 / -1; justify-self: end; }
.hide-btn { display: grid; justify-items: center; gap: 2px; width: 104px; padding: 12px 6px 10px; color: #8d8d9c; background: rgb(10 12 14 / .55); border: 2px dashed rgb(255 255 255 / .14); border-radius: 22px; backdrop-filter: blur(4px); transition: color .15s, background .15s, border-color .15s; }
.hide-btn b { font: 900 12.5px/1 var(--disp); letter-spacing: .03em; } .hide-btn small { color: var(--mut); font: 700 10px/1.1 var(--ui); text-align: center; }
.hide-btn .hd { width: 30px; height: 30px; background: currentColor; -webkit-mask: var(--door) center/contain no-repeat; mask: var(--door) center/contain no-repeat;
  --door: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2h14v20H5zm2 2v16h10V4zm7 7a1.2 1.2 0 1 1 0 2.4 1.2 1.2 0 0 1 0-2.4z'/%3E%3C/svg%3E"); }
.hide-btn.near { color: #E6E6EE; border-style: solid; border-color: rgb(71 214 196 / .55); animation: hidePulse 1.4s ease-in-out infinite; }
.hide-btn[aria-pressed=true] { color: #0B0B0B; background: var(--teal); border-color: var(--teal); animation: none; }
.hide-btn[aria-pressed=true] small { color: rgb(0 0 0 / .65); }
@keyframes hidePulse { 50% { box-shadow: 0 0 18px rgb(71 214 196 / .4); } }
.mode.hid { color: #0B0B0B; background: var(--teal); }
.key-chip { position: absolute; z-index: 9; left: 50%; top: calc(132px + var(--sat)); display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; color: #FFD84A; background: rgb(40 10 14 / .78); border: 1.5px solid rgb(255 59 92 / .55); border-radius: 99px; font: 900 11px/1 var(--ui); letter-spacing: .07em; transform: translateX(-50%); pointer-events: none; white-space: nowrap; }
.key-chip .ki { width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--k) center/contain no-repeat; mask: var(--k) center/contain no-repeat;
  --k: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 8a5 5 0 1 1 4.6 7H13v2h-2v2H9v2H5v-3.4l4.1-4.1A5 5 0 0 1 7 8zm3 0a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0z'/%3E%3C/svg%3E"); }
.key-chip.open { color: #0B0B0B; background: #39ff8f; border-color: #39ff8f; animation: keyOpen .6s ease-out; }
@keyframes keyOpen { 0% { transform: translateX(-50%) scale(1.35); } 100% { transform: translateX(-50%) scale(1); } }
.chaser-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; max-width: 560px; padding: 10px 14px; text-align: left; background: rgb(60 8 16 / .55); border: 1.5px solid rgb(255 59 92 / .45); border-radius: 16px; }
.chaser-card img { width: 64px; height: 84px; object-fit: cover; border-radius: 10px; border: 2px solid #9b1b2c; }
.chaser-card b { display: block; color: #FF6b81; font: 900 15px/1.2 var(--disp); }
.chaser-card small { color: #d8c9cc; font: 600 12.5px/1.35 var(--ui); }
.badge.key { color: #0B0B0B; background: #FFD84A; }
.pill.red { color: #fff; background: rgb(196 18 48 / .85); }
.caught[data-who=c] .sc-img { background-position: center 22%; }
@media (max-height: 560px) and (orientation: landscape) {
  .hide-btn { width: 92px; padding: 9px 4px 8px; } .hide-btn small { display: none; }
  .key-chip { top: calc(42px + var(--sat)); }
  .chaser-card { padding: 6px 10px; } .chaser-card img { width: 42px; height: 56px; } .chaser-card small { font-size: 11.5px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .key-chip { top: calc(146px + var(--sat)); left: calc(54px + var(--sal)); font-size: 10px; transform: none; animation: none !important; }
  .key-chip .kx { display: none; }
  .hide-btn, .sneak { width: 88px; } .hide-btn b, .sneak b { font-size: 11px; }
  .chaser-card small { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) { .hide-btn.near, .key-chip.open { animation: none; } }
.key-chip[hidden] { display: none; }
@media (max-height: 420px) and (orientation: landscape) { .chaser-card small { display: none; } .chaser-card img { width: 34px; height: 44px; } }


/* ---------- ferramentas, clima e lugares novos (v1.276.0) ---------- */
.tools { display: flex; gap: 7px; justify-content: flex-end; }
.run-ctl .tools { grid-column: 1 / -1; }
.tool { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; width: 66px; height: 66px; padding: 0; color: #E6E6EE; background: rgb(10 12 14 / .72); border: 2px solid rgb(255 255 255 / .16); border-radius: 18px; backdrop-filter: blur(4px); touch-action: none; transition: transform .1s, background .15s, opacity .15s; }
.tool b { font: 900 8.5px/1 var(--ui); letter-spacing: .05em; }
.tool .ti { width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.tool .tc { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; color: #0B0B0B; background: var(--bulb); border-radius: 99px; font: 900 11px/20px var(--ui); text-align: center; }
.tool .tc:empty { display: none; }
.tool:active:not(:disabled) { transform: scale(.94); }
.tool:disabled { opacity: .38; }
.tool.on { color: #0B0B0B; background: var(--bulb); border-color: var(--bulb); box-shadow: 0 0 22px rgb(255 229 138 / .5); }
.tool.on .tc { color: var(--bulb); background: #0B0B0B; }
#btnRush.on { background: #FF7A45; border-color: #FF7A45; box-shadow: 0 0 22px rgb(255 122 69 / .55); }
#btnAlarm.on, #btnLock.on { color: #fff; background: var(--blood); border-color: var(--blood); box-shadow: 0 0 22px rgb(255 59 92 / .55); }
#btnCam.on { background: #FF8A3D; border-color: #FF8A3D; }
.ti.stone { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9.5 9.5 5h6L20 9l1 5.5-4 4.5H8l-5-3.5z'/%3E%3C/svg%3E"); }
.ti.rush { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E"); }
.ti.lamp { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h6l5-4v14l-5-4H3zm13 .5 5-2v1.6l-5 2zm0 3.5h5v1.6h-5zm0 2.4 5 2v1.6l-5-2z'/%3E%3C/svg%3E"); }
.ti.cam { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 7h13v10H2zm14 3 6-3v10l-6-3zM6 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.ti.alarm { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18v-6a5 5 0 0 1 10 0v6h2v3H5v-3zM11 1h2v3h-2zM3.5 4.9l1.4-1.4 2.1 2.1-1.4 1.4zM17 5.6l2.1-2.1 1.4 1.4-2.1 2.1z'/%3E%3C/svg%3E"); }
.ti.lock { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h2v12H5V10zm2 0h6V7a3 3 0 0 0-6 0zm3 4a1.5 1.5 0 0 0-1 2.6V19h2v-2.4a1.5 1.5 0 0 0-1-2.6z'/%3E%3C/svg%3E"); }
.watch-ctl .tools { justify-content: flex-end; }
.status.gold { color: #FFD84A; font: 900 18px/1.15 var(--disp); letter-spacing: .03em; }
.mode.rush { color: #0B0B0B; background: #FF7A45; }
@media (max-height: 500px) and (orientation: landscape) {
  .tool { width: 54px; height: 54px; border-radius: 15px; } .tool .ti { width: 21px; height: 21px; } .tool b { font-size: 7.5px; }
  .tools { gap: 5px; }
}
@media (max-width: 380px) { .tool { width: 58px; height: 58px; } .tool b { font-size: 7.5px; } }

/* Janela "Contra robôs" no celular (v1.276.2): com 6 lugares a fileira passava da tela e alargava a janela. */
.setup, .set-block, .set-block > * { min-width: 0; }
.seg { flex-wrap: wrap; }
.seg button { flex: 1 0 auto; }
