/* PATRIOTETRIS — azul-noite de plantão, cores de bandeira, carimbos de cartório. */
:root {
  --night: #081128;
  --night-2: #0D1A3A;
  --panel: #12224A;
  --panel-2: #1A2D5C;
  --rim: #24396E;
  --paper: #F4F6FB;
  --mute: #9FB0D6;
  --green: #00A85A;
  --gold: #FFD21F;
  --anil: #2E5BFF;
  --siren: #FF3D2E;
  --stamp: #E0302A;
  --radius-s: 8px;
  --radius-m: 14px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
body[data-theme='plantao'] { --night: #1A0610; --night-2: #2A0B18; --panel: #3A1020; --panel-2: #4C1529; --rim: #6E2238; --mute: #E5A9B8; }
body[data-theme='noturna'] { --night: #050608; --night-2: #0C0F14; --panel: #141922; --panel-2: #1C2330; --rim: #2B3445; --mute: #9AA6BA; }
body[data-theme='jornal'] { --night: #1E1C18; --night-2: #2A2721; --panel: #36322A; --panel-2: #433E34; --rim: #5D5647; --mute: #CFC6B2; --paper: #F7F1E3; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--night);
  color: var(--paper);
  font-family: var(--font);
  font-stretch: 100%;
  font-size: 16px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
svg { width: 22px; height: 22px; fill: currentColor; }
.touch svg, .icon-btn svg path[fill='none'] { fill: none; }
kbd { display: inline-block; min-width: 1.6em; padding: 0 .35em; border-radius: 5px; border: 1px solid var(--rim); border-bottom-width: 3px; background: var(--night-2); font: 700 .8em/1.6 var(--font); text-align: center; color: var(--paper); }

#bgfx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- botões ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.2em;
  border: 2px solid var(--rim); border-radius: var(--radius-s);
  background: var(--panel); color: var(--paper);
  font-weight: 700; font-stretch: 110%; letter-spacing: .01em;
  box-shadow: 0 4px 0 var(--night-2);
  transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { background: var(--panel-2); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--night-2); }
.btn.primary { background: var(--green); border-color: #4BE39A; color: #03200F; box-shadow: 0 4px 0 #00633A; }
.btn.primary:hover { background: #12BC6B; }
.btn.big { font-size: 1.25rem; min-height: 60px; font-stretch: 125%; font-weight: 900; }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--mute); }
.btn.ghost:hover { color: var(--paper); background: var(--panel); }
.btn:disabled { opacity: .4; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--rim); background: var(--panel); }
.icon-btn.off { opacity: .45; }
.icon-btn.off .wave { display: none; }

/* ---------- telas ---------- */
.screen { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-start; justify-content: center; padding: 20px 16px calc(20px + var(--safe-b)); overflow-y: auto; }
.screen.dim { background: rgb(4 8 20 / .78); backdrop-filter: blur(6px); z-index: 30; }
.sheet { width: min(560px, 100%); display: flex; flex-direction: column; gap: 14px; overflow-y: auto; margin: auto 0; background: var(--night-2); border: 2px solid var(--rim); border-radius: var(--radius-m); padding: 28px 24px; max-height: 100%; }
.sheet.narrow { width: min(420px, 100%); }
.sheet > * { flex-shrink: 0; }
.sheet.wide { width: min(880px, 100%); }
.sheet.scroll { overflow-y: auto; }
.sheet-title { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; font-stretch: 125%; line-height: 1.05; }
.sheet-sub { margin: 0; color: var(--mute); max-width: 70ch; }
.fineprint { color: var(--mute); font-size: .85rem; }

/* ---------- carregamento (plantão) ---------- */
.loading { flex-direction: column; align-items: center; justify-content: flex-start; padding: 0; background: var(--night); }
.plantao-bar { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--siren); color: #fff; font-weight: 900; font-stretch: 125%; }
.plantao-tag { font-size: 1.1rem; letter-spacing: .02em; animation: blink 1.2s steps(2) infinite; }
.plantao-clock { font-variant-numeric: tabular-nums; font-stretch: 100%; }
@keyframes blink { 50% { opacity: .35; } }
.loading-body { width: min(760px, 100%); padding: 32px 20px; display: flex; flex-direction: column; gap: 14px; }
.loading-title { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; font-stretch: 112%; line-height: 1.02; max-width: 18ch; }
.loading-sub { margin: 0; color: var(--mute); }
.load-bar { height: 8px; border-radius: 4px; background: var(--panel); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .3s; }
.load-feed { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow: hidden; }
.load-feed li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-s); background: var(--panel); animation: drop-in .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.load-feed .chip { width: 34px; height: 34px; border-radius: 6px; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .25), inset 0 3px 0 rgb(255 255 255 / .25); }
.load-feed .h { font-weight: 700; line-height: 1.2; }
.load-feed .src { color: var(--mute); font-size: .85rem; }
@keyframes drop-in { from { transform: translateY(-24px) scale(.96); opacity: 0; } }
#loadSkip { align-self: flex-start; }

/* ---------- carimbo de situação jurídica ---------- */
.stamp {
  display: inline-block; transform: rotate(-4deg);
  padding: .1em .55em; border: 3px solid currentColor; border-radius: 6px;
  color: var(--stamp); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: .78rem; letter-spacing: .04em;
  mix-blend-mode: normal; background: rgb(255 255 255 / .04);
}
.stamp.s1 { color: #8FA3C9; }
.stamp.s2 { color: var(--gold); }
.stamp.s3 { color: #FF8A3D; }
.stamp.s4 { color: var(--siren); }
.stamp.auto::after { content: '?'; margin-left: .3em; opacity: .7; }

/* ---------- perfil ---------- */
.profile-list { display: flex; flex-direction: column; gap: 8px; }
.profile-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-s); border: 2px solid var(--rim); background: var(--panel); text-align: left; }
.profile-row.on { border-color: var(--green); }
.profile-row .meta { flex: 1; }
.profile-row small { display: block; color: var(--mute); }
.profile-row .del { color: var(--mute); background: none; border: 0; padding: 6px; }
.avatar { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-stretch: 125%; color: #fff; text-shadow: 0 1px 0 rgb(0 0 0 / .4); box-shadow: inset 0 -4px 0 rgb(0 0 0 / .25), inset 0 3px 0 rgb(255 255 255 / .25); flex: none; }
.profile-form { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; border-top: 2px solid var(--rim); }
.profile-form label { font-weight: 700; }
.profile-form input { font: inherit; font-size: 1.1rem; padding: .7em .8em; border-radius: var(--radius-s); border: 2px solid var(--rim); background: var(--night); color: var(--paper); user-select: text; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-error { margin: 0; padding: 8px 12px; border-radius: var(--radius-s); background: color-mix(in srgb, var(--siren) 22%, transparent); color: #FFB4AC; font-weight: 700; font-size: .9rem; }
.carry { font-weight: 500 !important; font-size: .9rem; color: var(--mute); }
.carry input { accent-color: var(--green); width: 16px; height: 16px; vertical-align: -3px; }
.account-box { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--radius-s); border: 2px solid var(--green); background: var(--panel); }
.account-box .who { display: flex; align-items: center; gap: 12px; }
.account-box small { display: block; color: var(--mute); }
.guest { border-top: 2px solid var(--rim); padding-top: 10px; }
.guest summary { cursor: pointer; color: var(--mute); font-weight: 700; padding: 4px 0; }
.guest[open] summary { margin-bottom: 10px; }
.guest-form { border-top: 0; margin-top: 10px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 36px; height: 36px; border-radius: 9px; border: 3px solid transparent; }
.swatches button[aria-checked='true'] { border-color: var(--paper); }

/* ---------- menu ---------- */
.menu { flex-direction: column; align-items: center; justify-content: space-between; gap: 18px; padding-top: max(16px, env(safe-area-inset-top)); }
.menu-top { width: min(980px, 100%); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.menu-toggles { display: flex; gap: 8px; }
.profile-chip { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 14px; border: 2px solid var(--rim); background: var(--panel); text-align: left; max-width: 70vw; }
.profile-chip .meta { min-width: 0; }
.profile-chip b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-chip small { color: var(--mute); display: block; font-size: .78rem; white-space: nowrap; }
.xpbar { height: 5px; border-radius: 3px; background: var(--night); margin-top: 4px; width: 150px; max-width: 100%; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: var(--gold); }
.menu-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.logo { width: min(1120px, 94vw); height: auto; image-rendering: pixelated; }
.slogan { margin: 0; font-size: clamp(1.1rem, 2.8vw, 1.6rem); font-weight: 800; font-stretch: 112%; text-align: center; }
.fresh { margin: 0; min-height: 1.4em; color: var(--gold); font-weight: 700; text-align: center; }
.menu-actions { width: min(520px, 100%); display: flex; flex-direction: column; gap: 10px; }
.mode-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn.mode { flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: .8em 1em; }
.btn.mode b { font-stretch: 115%; }
.btn.mode small { font-weight: 500; color: var(--mute); font-stretch: 100%; line-height: 1.25; }
.btn.mode[data-mode='tempo'] { border-color: var(--gold); }
.btn.mode[data-mode='infinito'] { border-color: var(--anil); }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.menu-grid .btn { min-height: 42px; padding: .4em; font-size: .9rem; white-space: nowrap; }
.menu-ticker { width: 100%; display: flex; align-items: stretch; border-top: 2px solid var(--rim); background: var(--night-2); margin: 0 -16px -20px; width: calc(100% + 32px); }
.tick-label { flex: none; padding: 10px 14px; background: var(--siren); color: #fff; font-weight: 900; font-stretch: 125%; }
.tick-track { flex: 1; overflow: hidden; position: relative; }
.tick-run { position: absolute; white-space: nowrap; top: 50%; transform: translateY(-50%); animation: ticker 90s linear infinite; padding-left: 100%; }
.tick-run span { margin-right: 2.5em; }
.tick-run b { color: var(--gold); margin-right: .4em; }
@keyframes ticker { to { transform: translate(-100%, -50%); } }

/* ---------- dificuldade / fases ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.diff-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; padding: 16px; border-radius: var(--radius-s); border: 2px solid var(--rim); background: var(--panel); }
.diff-card:hover, .diff-card.on { border-color: var(--gold); }
.diff-card b { font-size: 1.3rem; font-weight: 900; font-stretch: 125%; }
.diff-card small { color: var(--mute); }
.bars { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.bars i { width: 8px; border-radius: 2px; background: var(--rim); }
.bars i:nth-child(1) { height: 30%; } .bars i:nth-child(2) { height: 55%; } .bars i:nth-child(3) { height: 80%; } .bars i:nth-child(4) { height: 100%; }
.bars.l1 i:nth-child(-n+1), .bars.l2 i:nth-child(-n+2), .bars.l3 i:nth-child(-n+3), .bars.l4 i:nth-child(-n+4) { background: var(--c, var(--gold)); }
.phase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.phase-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; min-height: 108px; text-align: left; border-radius: var(--radius-s); border: 2px solid var(--rim); background: var(--panel); }
.phase-card .n { font-size: 2rem; font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--gold); }
.phase-card b { font-stretch: 110%; }
.phase-card small { color: var(--mute); font-size: .8rem; line-height: 1.25; }
.phase-card.locked { opacity: .45; }
.phase-card.locked .n { color: var(--mute); }
.phase-card.done::after { content: '✓'; position: absolute; top: 10px; right: 12px; color: var(--green); font-weight: 900; }

/* ---------- ranking ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: .5em 1em; border-radius: 999px; border: 2px solid var(--rim); background: transparent; font-weight: 700; }
.tab.on { background: var(--paper); color: var(--night); border-color: var(--paper); }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: 55vh; }
.rank-list li { display: grid; grid-template-columns: 2.4em 40px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--radius-s); background: var(--panel); }
.rank-list li.me { outline: 2px solid var(--gold); }
.rank-list .pos { font-weight: 900; font-stretch: 125%; font-size: 1.2rem; text-align: center; color: var(--mute); }
.rank-list li:nth-child(1) .pos { color: var(--gold); }
.rank-list li:nth-child(2) .pos { color: #D6DEF0; }
.rank-list li:nth-child(3) .pos { color: #E39A5C; }
.rank-list small { display: block; color: var(--mute); font-size: .8rem; }
.rank-list .val { font-weight: 900; font-stretch: 112%; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- como jogar / fontes ---------- */
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.howto-block { background: var(--panel); border-radius: var(--radius-s); padding: 16px; }
.howto-block h3 { margin: 0 0 8px; font-stretch: 115%; font-weight: 900; }
.howto-block p { margin: 0 0 8px; color: #D3DCF0; }
.keys { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.sev-table, .power-table { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sev-table li, .power-table li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.sev-table small, .power-table small { color: var(--mute); display: block; line-height: 1.3; }
.power-dot { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; }
.credits-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.credits-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.credits-list li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; padding: 12px; border-radius: var(--radius-s); background: var(--panel); }
.credits-list .bar { border-radius: 3px; }
.credits-list .h { font-weight: 800; }
.credits-list .meta { color: var(--mute); font-size: .85rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.credits-list a { color: var(--gold); }
.credits-list p { margin: 4px 0 0; color: #D3DCF0; font-size: .92rem; }

/* ---------- pausa / fim ---------- */
.toggle-row { display: flex; gap: 18px; justify-content: center; color: var(--mute); }
.toggle-row input { accent-color: var(--green); width: 18px; height: 18px; vertical-align: -3px; }
.end { text-align: center; align-items: stretch; }
.end .stamp { align-self: center; font-size: 1.4rem; padding: .15em .7em; border-width: 4px; animation: stamp-in .45s cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes stamp-in { from { transform: rotate(-4deg) scale(2.4); opacity: 0; } }
.end-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; }
.end-stats div { background: var(--panel); border-radius: var(--radius-s); padding: 8px 10px; }
.end-stats dt { color: var(--mute); font-size: .82rem; }
.end-stats dd { margin: 0; font-size: 1.4rem; font-weight: 900; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.end-stats .wide { grid-column: span 2; }
.xp-box { text-align: left; background: var(--panel); border-radius: var(--radius-s); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.xp-box .xp-head { display: flex; justify-content: space-between; font-weight: 900; font-stretch: 112%; }
.xp-box .xp-head span { color: var(--gold); }
.xp-box ul { list-style: none; padding: 0; margin: 0; color: var(--mute); font-size: .88rem; }
.xp-box li { display: flex; justify-content: space-between; }
.xp-box .lvlup { color: var(--green); font-weight: 900; }
.rank-note { margin: 0; color: var(--gold); font-weight: 700; min-height: 1.2em; }
.end-actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgb(4 8 20 / .7); }
.modal-card { width: min(460px, 100%); background: var(--night-2); border: 2px solid var(--rim); border-radius: var(--radius-m); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.modal-card .catline { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: .9rem; }
.modal-card .catline i { width: 14px; height: 14px; border-radius: 4px; }
.modal-card h3 { margin: 0; font-size: 1.45rem; line-height: 1.12; font-weight: 900; font-stretch: 105%; }
.modal-card .who { font-weight: 700; }
.modal-card p { margin: 0; color: #D3DCF0; }
.modal-card .status-info { font-size: .9rem; color: var(--mute); }
.modal-card a { color: var(--gold); font-weight: 700; word-break: break-word; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 60; background: var(--paper); color: var(--night); padding: 10px 18px; border-radius: 999px; font-weight: 800; box-shadow: 0 8px 24px rgb(0 0 0 / .4); }

/* ================= LAYOUT DO JOGO ================= */
.game { position: fixed; inset: 0; z-index: 5; display: grid; grid-template-columns: minmax(220px, 420px) minmax(340px, 480px) minmax(220px, 400px); justify-content: center; gap: 24px; padding: 16px 24px; }
.col { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.panel { background: var(--panel); border-radius: var(--radius-m); padding: 14px; border: 2px solid transparent; }
.panel-title { margin: 0 0 8px; font-size: .95rem; font-weight: 800; font-stretch: 110%; color: var(--mute); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.count { background: var(--night); color: var(--paper); border-radius: 999px; padding: 0 .55em; font-size: .8rem; }
.logo-mini { width: 100%; height: auto; image-rendering: pixelated; }

.news-card { display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.news-card .catline { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--mute); font-size: .82rem; }
.news-card .catline span { display: flex; align-items: center; gap: 6px; }
.news-card .catline i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.news-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.15; font-weight: 900; font-stretch: 105%; }
.news-card .who { color: var(--paper); font-weight: 600; font-size: .9rem; }
.news-card .src { color: var(--mute); font-size: .8rem; }
.news-card .sev { display: flex; gap: 3px; }
.news-card .sev i { width: 14px; height: 5px; border-radius: 2px; background: var(--night); }
.news-card .sev.l1 i:nth-child(-n+1) { background: #8FA3C9; }
.news-card .sev.l2 i:nth-child(-n+2) { background: var(--gold); }
.news-card .sev.l3 i:nth-child(-n+3) { background: #FF8A3D; }
.news-card .sev.l4 i:nth-child(-n+4) { background: var(--siren); }
.news-card .more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--gold); font-weight: 700; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }

.archive { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.archive-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.archive-list li button { width: 100%; display: grid; grid-template-columns: 6px 1fr; gap: 10px; text-align: left; background: var(--night-2); border: 0; border-radius: var(--radius-s); padding: 8px 10px 8px 8px; font-size: .86rem; line-height: 1.2; animation: drop-in .3s both; }
.archive-list li button i { border-radius: 3px; }
.archive-list small { display: block; color: var(--mute); font-size: .75rem; margin-top: 2px; }

.board-col { display: flex; flex-direction: column; gap: 10px; min-height: 0; align-items: center; }
.topbar { width: 100%; display: flex; align-items: center; gap: 12px; }
.phase-info { flex: 1; min-width: 0; }
.phase-name { font-weight: 900; font-stretch: 115%; line-height: 1.15; overflow-wrap: anywhere; }
.goal { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.goal-bar { flex: 1; height: 8px; background: var(--night-2); border-radius: 4px; overflow: hidden; }
.goal-bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s; }
.goal.timer .goal-bar i { background: var(--gold); transition: none; }
.goal.timer.low .goal-bar i { background: var(--siren); }
.goal.timer span { color: var(--paper); font-weight: 800; }

.board-frame { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; }
#board { display: block; border-radius: 10px; background: #050A1A; box-shadow: 0 0 0 3px var(--rim), 0 0 0 9px var(--night-2), 0 20px 60px rgb(0 0 0 / .5); touch-action: none; }
.popups { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pop { position: absolute; left: 50%; transform: translateX(-50%); width: max-content; max-width: 96%; text-align: center; line-height: 1.1; font-weight: 900; font-stretch: 125%; font-size: clamp(1.1rem, 3.2vw, 1.8rem); color: var(--paper); text-shadow: 0 3px 0 rgb(0 0 0 / .5); animation: pop 1.1s cubic-bezier(.2, 1.3, .4, 1) forwards; }
.pop small { display: block; font-size: .55em; text-align: center; font-stretch: 100%; }
.pop.gold { color: var(--gold); }
.pop.green { color: #3BF09A; }
.pop.red { color: #FF6B5E; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -40px) scale(1); } }
.danger { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: var(--siren); color: #fff; font-weight: 900; padding: 4px 12px; border-radius: 999px; font-size: .85rem; animation: blink .8s steps(2) infinite; pointer-events: none; }
.ticker { display: none; }

.score-big { display: flex; flex-direction: column; }
.score-big span { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 900; font-stretch: 125%; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold); }
.score-big small { color: var(--mute); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 12px 0 0; }
.stats dt { color: var(--mute); font-size: .8rem; }
.stats dd { margin: 0; font-weight: 900; font-stretch: 112%; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel.mini { padding: 10px; display: flex; flex-direction: column; align-items: center; }
.panel.mini canvas { width: 100%; height: auto; }
.panel.mini .panel-title { align-self: stretch; font-size: .85rem; }
.powers { display: flex; flex-direction: column; gap: 8px; }
.power-slot { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: var(--radius-s); background: var(--night-2); border: 2px dashed var(--rim); min-height: 54px; text-align: left; }
.power-slot.full { border-style: solid; border-color: var(--pc); background: color-mix(in srgb, var(--pc) 16%, var(--night-2)); animation: drop-in .3s both; }
.power-slot .ico { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--pc, transparent); color: #fff; }
.power-slot .ico svg { width: 24px; height: 24px; }
.power-slot b { display: block; font-stretch: 110%; font-size: .95rem; }
.power-slot small { color: var(--mute); font-size: .75rem; line-height: 1.2; display: block; }
.power-slot.empty small { font-style: italic; }
.power-status { margin: 8px 0 0; min-height: 1.3em; font-size: .85rem; color: var(--gold); font-weight: 700; }

.mobile-hud, .touch { display: none; }

/* ---------- barra de música ---------- */
.music-bar { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px; border-radius: 14px; background: var(--panel); border: 2px solid var(--rim); }
.music-bar.panel { padding: 6px; border-color: transparent; }
.music-bar.in-menu { flex: 0 1 300px; margin-left: auto; }
.music-bar button { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 0; background: var(--night-2); color: var(--paper); cursor: pointer; }
.music-bar button:hover:not(:disabled) { background: var(--rim); }
.music-bar button:disabled { opacity: .35; cursor: default; }
.music-bar button svg { width: 18px; height: 18px; }
.mb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: center; line-height: 1.15; }
.mb-info small { color: var(--mute); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.mb-name { font-size: .92rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-bar.off .mb-info { opacity: .5; }
.music-bar.off .mb-info small::after { content: ' (desligada)'; }

/* ---------- mobile ---------- */
@media (max-width: 860px), (max-height: 520px) and (max-width: 1000px) {
  .game { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 8px 10px calc(8px + var(--safe-b)); gap: 8px; }
  .menu-top { flex-wrap: wrap; }
  .music-bar.in-menu { order: 3; flex: 1 1 100%; margin-left: 0; }
  .col { display: none; }
  .board-col { gap: 6px; }
  .topbar .icon-btn { width: 38px; height: 38px; }
  .mobile-hud { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; width: 100%; }
  .mobile-hud b { font-size: 1.5rem; font-weight: 900; font-stretch: 125%; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; display: block; }
  .mobile-hud small { color: var(--mute); font-size: .72rem; }
  #mNext { width: 60px; height: 45px; background: var(--panel); border-radius: 8px; }
  .m-powers { display: flex; justify-content: flex-end; gap: 6px; }
  .ticker { display: block; width: 100%; font-size: .82rem; line-height: 1.25; background: var(--panel); border-radius: var(--radius-s); padding: 6px 10px; min-height: 2.6em; color: var(--paper); cursor: pointer; }
  .ticker b { margin-right: 6px; }
  .touch { display: flex; flex-direction: column; gap: 8px; }
  .touch-row { display: flex; gap: 8px; align-items: center; }
  .touch-row.big { display: grid; grid-template-columns: repeat(5, 1fr); }
  .touch button { border: 2px solid var(--rim); background: var(--panel); border-radius: 14px; box-shadow: 0 4px 0 var(--night-2); }
  .touch-row.big button { height: clamp(54px, 9vh, 72px); display: grid; place-items: center; }
  .touch-row.big svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .touch button:active, .touch button.held { transform: translateY(3px); box-shadow: 0 1px 0 var(--night-2); background: var(--panel-2); }
  .touch .t-drop { background: var(--green); border-color: #4BE39A; color: #03200F; }
  .touch .t-small { padding: 8px 12px; font-weight: 700; font-size: .85rem; }
  .t-powers { flex: 1; display: flex; gap: 6px; justify-content: center; }
  .t-pow { width: 44px; height: 40px; border-radius: 10px !important; display: grid; place-items: center; background: var(--pc) !important; border-color: transparent !important; color: #fff; }
  .t-pow svg { width: 22px; height: 22px; }
  .t-pow.empty { background: transparent !important; border: 2px dashed var(--rim) !important; box-shadow: none !important; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
  .end-stats dd { font-size: 1.15rem; }
}
@media (max-width: 400px) {
  .mode-pair { grid-template-columns: 1fr; }
  .sheet { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .tick-run { animation: none; padding-left: 0; position: static; transform: none; white-space: normal; }
}

/* ================= ENGAJAMENTO: ícones, missões, baú, álbum ================= */
.cat-ico { display: inline-block; vertical-align: middle; flex: none; border-radius: 5px; }
.news-card .catline span { gap: 8px; }
.cat-table { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-table li { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.menu-grid { grid-template-columns: repeat(3, 1fr); }

/* painel "Edição de hoje" */
.daily { background: var(--night-2); border: 2px solid var(--rim); border-radius: var(--radius-m); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.daily-head { display: flex; align-items: center; gap: 10px; }
.daily-title { flex: 1; min-width: 0; line-height: 1.2; }
.daily-title b { font-stretch: 112%; }
.daily-title small { display: block; color: var(--mute); font-size: .8rem; }
.flame { flex: none; font-weight: 900; font-size: 1.05rem; padding: 4px 10px; border-radius: 999px; background: var(--panel); color: var(--mute); filter: grayscale(1); }
.flame.on { filter: none; color: #FFB03A; background: color-mix(in srgb, #FF7A1A 22%, var(--panel)); animation: flicker 2.4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.chest { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--gold); background: color-mix(in srgb, var(--gold) 18%, var(--panel)); color: var(--paper); font-weight: 800; cursor: pointer; animation: chest-pulse 1.6s ease-in-out infinite; }
.chest .chest-ico { font-size: 1.2rem; }
.chest:hover:not(:disabled) { transform: translateY(-1px); }
.chest.opened { animation: none; border-color: var(--rim); background: var(--panel); color: var(--mute); cursor: default; }
@keyframes chest-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 50%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
.missions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mission { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-s); background: var(--panel); text-align: left; }
.mission .m-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--rim); display: grid; place-items: center; font-weight: 900; color: #fff; }
.mission.done .m-check { background: var(--green); border-color: var(--green); }
.mission.done { opacity: .75; }
.mission.done .m-text { text-decoration: line-through; text-decoration-thickness: 2px; }
.m-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.m-text { font-size: .88rem; font-weight: 700; line-height: 1.2; }
.m-bar { height: 6px; border-radius: 3px; background: var(--night); overflow: hidden; }
.m-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #3BF09A); transition: width .5s; }
.m-xp { text-align: right; font-weight: 900; color: var(--gold); font-size: .85rem; white-space: nowrap; }
.m-xp small { display: block; color: var(--mute); font-weight: 600; font-size: .72rem; }
.daily-foot { font-size: .8rem; color: var(--mute); text-align: center; }
.end-missions { text-align: left; background: var(--panel); border-radius: var(--radius-s); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.end-missions .xp-head { display: flex; justify-content: space-between; font-weight: 900; }
.end-missions .xp-head span { color: var(--gold); }
.end-missions .mission { background: var(--night-2); }
.end-extra:empty { display: none; }
.end-actions kbd { font-size: .7rem; margin-left: 6px; opacity: .8; }

/* baú aberto */
.chest-open { display: grid; place-items: center; padding: 20px 0; }
.chest-big { font-size: 5rem; animation: chest-shake .9s ease-in-out both; }
@keyframes chest-shake { 0% { transform: scale(.6) rotate(0); } 20% { transform: scale(1.1) rotate(-12deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-10deg); } 80% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1.6); opacity: 0; } }
.chest-reveal { display: flex; flex-direction: column; gap: 10px; text-align: center; animation: drop-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.chest-reveal[hidden] { display: none; }
.chest-xp { font-size: 3rem; font-weight: 900; font-stretch: 125%; color: var(--gold); text-shadow: 0 4px 0 rgb(0 0 0 / .35); }
.furo { align-self: center; background: var(--siren); color: #fff; font-weight: 900; padding: 4px 12px; border-radius: 999px; animation: blink .5s steps(2) 4; }
.chest-power { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--panel); padding: 10px; border-radius: var(--radius-s); }
.lvlup { color: var(--green); font-weight: 900; }

/* popups especiais e combo quente */
.pop.big { font-size: clamp(1.6rem, 4.4vw, 2.6rem); color: var(--gold); animation-duration: 1.6s; text-shadow: 0 0 18px rgb(255 210 31 / .6), 0 4px 0 rgb(0 0 0 / .5); }
.pop.hot { color: #FF9A3D; }
.board-frame.hot #board { box-shadow: 0 0 0 3px #FF7A1A, 0 0 0 9px var(--night-2), 0 0 40px 6px rgb(255 122 26 / .55), 0 20px 60px rgb(0 0 0 / .5); animation: hot-glow .6s ease-in-out infinite alternate; }
@keyframes hot-glow { to { box-shadow: 0 0 0 3px #FFD21F, 0 0 0 9px var(--night-2), 0 0 56px 10px rgb(255 210 31 / .5), 0 20px 60px rgb(0 0 0 / .5); } }

/* álbum */
.album { display: flex; flex-direction: column; gap: 18px; }
.album-cat header { display: flex; align-items: center; gap: 10px; }
.album-cat header b { flex: 1; font-stretch: 112%; font-size: 1.05rem; }
.album-count { font-weight: 900; color: var(--cc); }
.album-bar { height: 6px; border-radius: 3px; background: var(--night); margin: 8px 0 10px; overflow: hidden; }
.album-bar i { display: block; height: 100%; background: var(--cc); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sticker.locked { min-height: 72px; }
.sticker { min-height: 96px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; padding: 10px; border-radius: var(--radius-s); border: 2px solid color-mix(in srgb, var(--cc) 60%, transparent); background: color-mix(in srgb, var(--cc) 12%, var(--panel)); color: var(--paper); font-size: .78rem; line-height: 1.2; cursor: pointer; }
.sticker .stamp { font-size: .6rem; }
.sticker .st-h { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sticker.s4:not(.locked) { border-color: var(--gold); box-shadow: 0 0 14px rgb(255 210 31 / .35); }
.sticker.locked { align-items: center; justify-content: center; border-style: dashed; border-color: var(--rim); background: var(--night-2); cursor: default; filter: grayscale(1); opacity: .5; }
.sticker.locked span { font-size: 1.4rem; font-weight: 900; color: var(--mute); }

@media (max-width: 860px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .daily-head { flex-wrap: wrap; }
  .daily-title { flex-basis: calc(100% - 80px); }
  .chest { flex: 1 1 100%; justify-content: center; }
  .album-grid { grid-template-columns: 1fr 1fr; }
  .sticker { min-height: 84px; font-size: .74rem; }
}

/* ================= PERFIL, FOTO, MOLDURAS, LOJA, DESAFIOS ================= */
.avatar { position: relative; overflow: visible; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar.f-verde { box-shadow: 0 0 0 3px #00A85A, 0 0 0 6px #FFD21F; }
.avatar.f-neon { box-shadow: 0 0 0 3px #4FC3FF, 0 0 14px 3px #2E5BFF; animation: neon-pulse 1.6s ease-in-out infinite; }
.avatar.f-fogo { box-shadow: 0 0 0 3px #FF7A1A, 0 0 16px 4px #FF3D2E; animation: neon-pulse .9s ease-in-out infinite; }
.avatar.f-ouro { box-shadow: 0 0 0 3px #FFD21F, 0 0 0 5px #9A7400, 0 0 18px 4px rgb(255 210 31 / .5); }
.avatar.f-arco::before { content: ''; position: absolute; inset: -4px; border-radius: 14px; background: conic-gradient(#FF3D2E, #FFD21F, #00A85A, #2E5BFF, #7C4DFF, #FF3D2E); z-index: -1; animation: spin 3s linear infinite; }
@keyframes neon-pulse { 50% { filter: brightness(1.25); } }
@keyframes spin { to { transform: rotate(360deg); } }

.pv-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pv-avatar { position: relative; background: none; border: 0; padding: 6px; border-radius: 18px; cursor: pointer; }
.pv-avatar:disabled { cursor: default; }
.pv-avatar .avatar { border-radius: 22px; }
.pv-cam { position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-size: 1rem; box-shadow: 0 3px 10px rgb(0 0 0 / .4); }
.pv-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pv-title { color: var(--gold); font-weight: 800; }
.pv-id small { color: var(--mute); }
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-actions .btn { flex: 1 1 160px; }
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.pv-stats div { background: var(--panel); border-radius: var(--radius-s); padding: 10px 12px; }
.pv-stats dt { color: var(--mute); font-size: .78rem; }
.pv-stats dd { margin: 0; font-weight: 900; font-stretch: 112%; font-size: 1.3rem; }
.pv-h { margin: 6px 0 0; font-stretch: 112%; }
.pv-seasons { display: flex; flex-wrap: wrap; gap: 8px; }
.season-medal { padding: 6px 12px; border-radius: 999px; background: var(--panel); font-weight: 800; }
.season-medal.p1 { background: color-mix(in srgb, var(--gold) 25%, var(--panel)); }
.medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.medal { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 10px; border-radius: var(--radius-s); background: var(--night-2); border: 2px dashed var(--rim); filter: grayscale(1); opacity: .55; }
.medal.on { filter: none; opacity: 1; border: 2px solid var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--panel)); }
.medal .m-ico { grid-row: span 2; font-size: 1.8rem; text-align: center; }
.medal b { font-size: .85rem; line-height: 1.15; }
.medal small { color: var(--mute); font-size: .72rem; line-height: 1.2; }
.pv-games { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pv-games li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--radius-s); background: var(--panel); font-size: .9rem; }

/* loja */
.coins { color: var(--gold); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px 10px; border-radius: var(--radius-m); background: var(--panel); border: 2px solid transparent; }
.shop-item.on { border-color: var(--green); }
.shop-item small { color: var(--mute); font-size: .76rem; line-height: 1.2; min-height: 2.4em; }
.shop-item .btn { width: 100%; min-height: 38px; padding: .3em; }
.shop-item .avatar { margin: 6px 0; }
.skin-prev { width: 112px; height: 56px; }
.tag-on { padding: 6px 12px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 800; font-size: .85rem; }

/* menu: desafio do dia e plantão urgente */
.daily-btn { flex-direction: column; gap: 2px; border-color: var(--siren) !important; background: color-mix(in srgb, var(--siren) 14%, var(--panel)) !important; }
.daily-btn b { font-stretch: 115%; font-size: 1.05rem; }
.daily-btn small { font-weight: 500; color: var(--mute); }
.urgent { display: flex; align-items: center; gap: 10px; max-width: min(640px, 100%); padding: 8px 12px; border-radius: 12px; border: 2px solid var(--siren); background: color-mix(in srgb, var(--siren) 18%, var(--night-2)); color: var(--paper); text-align: left; cursor: pointer; animation: chest-pulse 1.4s ease-in-out infinite; }
.urgent[hidden] { display: none; }
.u-tag { flex: none; background: var(--siren); color: #fff; font-weight: 900; padding: 3px 8px; border-radius: 6px; font-size: .8rem; text-transform: uppercase; animation: blink 1s steps(2) infinite; }
.u-text { font-size: .85rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.u-text b { color: var(--gold); margin-right: 6px; }

/* jogo: meta do desafio de amigo */
.challenge-bar { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 14%, var(--panel)); font-weight: 800; font-size: .88rem; }
.challenge-bar[hidden] { display: none; }
.challenge-bar.won { background: color-mix(in srgb, var(--green) 30%, var(--panel)); }
.cb-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--night-2); overflow: hidden; }
.cb-bar i { display: block; height: 100%; background: var(--gold); transition: width .3s; }

/* ranking */
.rank-list li.clickable { cursor: pointer; }
.rank-list li.clickable:hover { background: var(--panel-2, var(--rim)); }
.mcount { font-size: .75rem; color: var(--gold); font-weight: 800; }
.season { padding: 10px 12px; border-radius: var(--radius-s); background: color-mix(in srgb, var(--gold) 12%, var(--panel)); display: flex; flex-direction: column; gap: 6px; }
.season div { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 700; font-size: .9rem; }

/* fim de partida e convite */
.end-rewards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.end-rewards .coins { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, var(--panel)); font-weight: 900; }
.medal-pop { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--green) 25%, var(--panel)); font-weight: 900; animation: drop-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.invite-ico { font-size: 3rem; text-align: center; }
.modal-card h3 { margin: 0; text-align: center; font-stretch: 112%; }

@media (max-width: 860px) {
  .pv-stats { grid-template-columns: repeat(2, 1fr); }
  .pv-head { gap: 12px; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
}

/* ================= ANÚNCIOS (fora do tabuleiro) ================= */
.ad-slot { width: 100%; }
.ad-slot.real { min-height: 90px; display: flex; flex-direction: column; gap: 2px; }
.ad-label { color: var(--mute); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }
.ad-side.real { min-height: 200px; max-height: 260px; overflow: hidden; }
.house { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: var(--radius-s); border: 2px dashed var(--rim); background: var(--night-2); color: var(--mute); font-size: .82rem; line-height: 1.3; cursor: pointer; }
.house span:first-child { font-size: 1.4rem; }
.house:hover { color: var(--paper); border-color: var(--mute); }
@media (max-height: 760px) { .ad-side { display: none; } }
