:root { --ink:#eaf5f5; --muted:#9bb1bb; --navy:#0b1724; --navy-2:#10283a; --line:rgba(218,244,242,.13); --aqua:#79e4d7; --coral:#ff9b70; --gold:#ffcf65; --arcade-cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M3 3h5v2h4v2h4v2h4v2h4v4h-4v3h-4v3h-4v4h-4v4H8v-5H5v-5H3z' fill='%2301040b' stroke='%2352dcff' stroke-width='1' stroke-linejoin='miter'/%3E%3Cpath d='M6 7h4v2h4v2h4v2h3v2h-4v2h-4v2H9v4H7v-6H5v-6h1z' fill='%23122d48'/%3E%3Cpath d='M7 8h3v2h4v2h3v2h-4v2H9v4H7z' fill='%2352dcff'/%3E%3Cpath d='M7 8h2v2H7zM9 10h2v2H9z' fill='%23e5fbff'/%3E%3Cpath d='M10 23h3v4h-3z' fill='%23c95dff'/%3E%3C/svg%3E") 3 3; font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--ink); background:var(--navy); }
* { box-sizing:border-box; }
html { min-height:100%; touch-action:manipulation; }
body { min-width:320px; min-height:100vh; min-height:100svh; min-height:100dvh; margin:0; background:radial-gradient(circle at 15% 0%, #1c5362 0, transparent 30rem), radial-gradient(circle at 90% 100%, #17364c 0, transparent 28rem), var(--navy); touch-action:manipulation; -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
input, textarea, [contenteditable="true"] { -webkit-touch-callout:default; -webkit-user-select:text; user-select:text; }
img, canvas { -webkit-user-drag:none; user-drag:none; }
button { font:inherit; cursor:pointer; }
@media (pointer:fine) { body, button, a, [role="button"] { cursor:var(--arcade-cursor), pointer; } .fish-cell.given { cursor:default; } }
.app-shell { width:min(1080px, 100%); min-height:calc(100vh - 42px); margin:auto; padding:26px 30px 50px; }
.topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:76px; }
.brand { display:inline-flex; align-items:center; gap:10px; color:var(--ink); padding:0; border:0; background:transparent; font-size:1.12rem; letter-spacing:.02em; }
.brand-release { margin-inline-start:.5em; color:var(--muted); font-size:.625rem; font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:0; white-space:nowrap; }
.brand-mark { display:grid; width:32px; height:32px; place-items:center; overflow:hidden; border:1px solid rgba(99,166,255,.72); border-radius:10px; background:#020716; box-shadow:0 5px 14px rgba(35,104,255,.22); }
.brand-mark img { display:block; width:100%; height:100%; object-fit:cover; }
.eyebrow { color:var(--aqua); font-size:.7rem; font-weight:800; letter-spacing:.14em; }
.screen { display:none; animation:appear .35s ease; }.screen.active { display:block; } @keyframes appear { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.screen h1:focus { outline:0; }
.hero { max-width:670px; }.eyebrow { margin:0 0 12px; }.hero h1 { margin:0; font-size:clamp(2.7rem, 7vw, 5.4rem); line-height:.98; letter-spacing:-.065em; }.hero h1 em { color:var(--aqua); font-style:normal; }.hero-copy { max-width:500px; margin:24px 0 42px; color:var(--muted); font-size:1.08rem; line-height:1.65; }
.game-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.game-card { min-height:252px; padding:22px; border:1px solid var(--line); border-radius:22px; background:rgba(10,29,42,.58); box-shadow:0 20px 50px rgba(0,0,0,.13); }.card-2048 { background:linear-gradient(135deg,rgba(255,155,112,.16),rgba(10,29,42,.65) 58%); }.card-fish { background:linear-gradient(135deg,rgba(121,228,215,.15),rgba(10,29,42,.65) 58%); }.game-card h2 { margin:6px 0; font-size:1.58rem; letter-spacing:-.04em; }.game-card p:not(.eyebrow) { min-height:42px; margin:0 0 16px; color:var(--muted); line-height:1.4; font-size:.94rem; }.game-icon { height:62px; margin-bottom:16px; }.tiles-icon { display:flex; gap:5px; align-items:center; }.tiles-icon span { display:grid; width:37px; height:37px; place-items:center; border-radius:9px; background:var(--coral); color:#542818; font-weight:900; }.tiles-icon span:nth-child(2) { background:#ffd5a2; }.tiles-icon span:nth-child(3) { background:#ffbc71; }.tiles-icon span:nth-child(4) { background:#ffe5c7; }.fish-icon { font-size:3.8rem; filter:drop-shadow(0 7px 10px rgba(121,228,215,.2)); }
.game-card-art { width:72px; height:72px; margin-bottom:14px; overflow:hidden; border:1px solid rgba(226,243,255,.68); border-radius:19px; background:#eef8ff; box-shadow:0 8px 18px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.8); }.game-card-art img { display:block; width:100%; height:100%; object-fit:cover; }
.primary-button, .secondary-button { border:0; border-radius:12px; padding:12px 16px; font-weight:800; }.primary-button { color:#062826; background:var(--aqua); }.primary-button:hover { background:#a0f3e8; }.secondary-button { color:var(--ink); background:transparent; border:1px solid var(--line); }.secondary-button:hover { border-color:var(--aqua); color:var(--aqua); }.privacy-note { margin-top:30px; color:var(--muted); font-size:.83rem; }
.game-header { display:flex; justify-content:space-between; gap:20px; align-items:end; max-width:740px; margin:0 auto 26px; }.back-link { margin:0 0 13px; padding:0; border:0; color:var(--aqua); background:transparent; font-weight:700; }.game-header h1 { margin:0; font-size:clamp(2.25rem,6vw,3.6rem); letter-spacing:-.06em; }.score-box,.level-box { min-width:92px; padding:11px 14px; border-radius:14px; background:rgba(121,228,215,.12); text-align:center; }.score-box span,.level-box span { display:block; color:var(--muted); font-size:.63rem; font-weight:800; letter-spacing:.13em; }.score-box strong,.level-box strong { display:block; margin-top:2px; color:var(--aqua); font-size:1.2rem; }.play-area { display:flex; flex-direction:column; align-items:center; max-width:740px; margin:auto; padding:28px; border:1px solid var(--line); border-radius:24px; background:rgba(8,24,36,.68); }.instruction { margin-bottom:20px; color:var(--muted); font-size:.9rem; }.instruction span { color:var(--aqua); font-weight:900; }
.board-2048 { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; width:min(100%, 400px); padding:8px; border-radius:15px; background:#0b3440; touch-action:none; }.tile { display:grid; aspect-ratio:1; place-items:center; border-radius:9px; background:rgba(230,255,250,.1); color:#fff; font-size:clamp(1.35rem,6vw,2.1rem); font-weight:900; transition:background .15s, transform .15s; }.tile:not(.empty) { transform:scale(1); }.tile.v2 { background:#68cfc6; color:#073137; }.tile.v4 { background:#82ddd1; color:#073137; }.tile.v8 { background:#ffd37d; color:#4b3513; }.tile.v16 { background:#ffb36e; color:#4a2616; }.tile.v32 { background:#ff8e70; }.tile.v64 { background:#ee6d69; }.tile.v128,.tile.v256 { background:#c26cce; }.tile.v512,.tile.v1024,.tile.v2048 { background:#8f79ef; }.dpad { display:grid; grid-template-columns:repeat(3,42px); gap:5px; margin:22px 0 14px; }.dpad button { border:1px solid var(--line); border-radius:9px; color:var(--aqua); background:#102c3a; font-size:1.3rem; }.dpad button:hover { border-color:var(--aqua); }.blocks-area>.secondary-button { margin-top:0; }
.fish-area { max-width:650px; }.fish-intro { max-width:480px; margin:0 0 20px; color:var(--muted); line-height:1.55; text-align:center; }.fish-intro strong { color:var(--ink); }.fish-tools { display:flex; justify-content:space-between; width:min(100%,456px); margin-bottom:11px; color:var(--aqua); font-size:.86rem; font-weight:800; }.text-button { padding:0; border:0; color:var(--gold); background:transparent; text-decoration:underline; font-size:.86rem; }.fish-board { display:grid; grid-template-columns:repeat(6,1fr); width:min(100%,456px); overflow:hidden; border:2px solid #86e4d9; border-radius:12px; background:#144553; }.fish-cell { position:relative; display:grid; aspect-ratio:1; place-items:center; padding:0; border:1px solid rgba(217,255,248,.17); background:rgba(9,39,52,.8); color:#fff; font-size:clamp(1.1rem,5vw,2rem); }.fish-cell:nth-child(6n+4),.fish-cell:nth-child(6n+5),.fish-cell:nth-child(6n+6) { background:rgba(22,76,84,.72); }.fish-cell:nth-child(n+13):nth-child(-n+18),.fish-cell:nth-child(n+31):nth-child(-n+36) { background:rgba(22,76,84,.72); }.fish-cell:nth-child(n+13):nth-child(-n+18):nth-child(6n+4),.fish-cell:nth-child(n+13):nth-child(-n+18):nth-child(6n+5),.fish-cell:nth-child(n+13):nth-child(-n+18):nth-child(6n+6),.fish-cell:nth-child(n+31):nth-child(-n+36):nth-child(6n+4),.fish-cell:nth-child(n+31):nth-child(-n+36):nth-child(6n+5),.fish-cell:nth-child(n+31):nth-child(-n+36):nth-child(6n+6) { background:rgba(9,39,52,.8); }.fish-cell.given { cursor:default; }.fish-cell.given::after { position:absolute; inset:5px; border:1px solid var(--gold); border-radius:50%; content:""; }.fish-cell.selected { background:#267c7d; }.fish-cell.conflict { box-shadow:inset 0 0 0 2px #ff8e70; }.game-message { min-height:24px; margin:16px 0; color:var(--muted); text-align:center; font-size:.9rem; }.game-message.success { color:var(--aqua); font-weight:800; }
.fish-tools span:last-child { color:var(--muted); font-weight:700; }.fish-cell { border-color:rgba(217,255,248,.25); background:var(--cell-tint) !important; }.fish-cell:hover:not(:disabled) { filter:brightness(1.17); }.fish-cell.selected { background:var(--cell-strong) !important; }.fish-cell.given::after { border-width:2px; }
.fish-board { grid-template-columns:repeat(var(--fish-grid-size,11),1fr); width:min(100%,540px); }.fish-cell { font-size:clamp(.85rem,4vw,1.65rem); }.fish-toolbox { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:0 0 15px; }.fish-tool { padding:8px 11px; border:1px solid var(--line); border-radius:10px; color:var(--muted); background:rgba(13,45,58,.7); font-size:.82rem; font-weight:800; }.fish-tool.active { border-color:var(--aqua); color:#062826; background:var(--aqua); }.fish-cell.marked { color:rgba(255,255,255,.94); font-size:clamp(1.1rem,5vw,1.9rem); font-weight:300; }.fish-cell.marked::before { content:'×'; filter:drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.fish-chances { color:var(--coral) !important; letter-spacing:3px; }.fish-cell.mistake { color:#ff7f75; background:#773947 !important; animation:fish-shake .42s ease-in-out; }.fish-cell.mistake::before { content:'×'; filter:drop-shadow(0 1px 2px rgba(0,0,0,.45)); }.fish-cell.mistake:disabled { cursor:default; opacity:1; } @keyframes fish-shake { 0%,100% { transform:translateX(0); } 22% { transform:translateX(-5px) rotate(-2deg); } 48% { transform:translateX(5px) rotate(2deg); } 72% { transform:translateX(-3px); } }
body { background:#0b1c29; }.card-2048 { background:rgba(99,74,61,.3); }.card-fish { background:rgba(63,103,105,.3); }.fish-area { background:#102936; }.fish-board { background:#254652; box-shadow:0 16px 34px rgba(0,0,0,.24),inset 0 0 0 1px rgba(255,255,255,.08); }.fish-cell { background:var(--cell-tint) !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.2); }.fish-cell.region-edge-top { border-top-color:rgba(236,246,243,.52) !important; }.fish-cell.region-edge-right { border-right-color:rgba(236,246,243,.52) !important; }.fish-cell.region-edge-bottom { border-bottom-color:rgba(236,246,243,.52) !important; }.fish-cell.region-edge-left { border-left-color:rgba(236,246,243,.52) !important; }.fish-cell.selected { background:var(--cell-strong) !important; box-shadow:inset 0 0 0 2px rgba(255,255,255,.42),0 6px 14px rgba(0,0,0,.18); }.fish-cell.selected::before { position:absolute; top:38%; left:42%; width:52%; aspect-ratio:1; border-radius:50%; background:rgba(255,249,219,.48); box-shadow:0 0 12px 4px rgba(255,244,205,.22); content:''; transform:translate(-50%,-50%); }.fish-symbol { position:relative; z-index:1; transform:translateY(-1px); filter:drop-shadow(0 2px 2px rgba(34,72,82,.25)); }.fish-cell.given::after { border-color:#f6df9f; box-shadow:0 0 9px rgba(255,226,153,.32); }.difficulty-button.active { border-color:#ead39b; color:#5b4927; background:#ead39b; }.difficulty-button.active small { color:#75613c; }.dialog-panel { background:#183441; }
.fish-area { position:relative; overflow:hidden; background:radial-gradient(circle at 15% 15%,rgba(98,227,218,.1),transparent 38%),rgba(8,29,43,.83); }.difficulty-picker { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:7px; margin:0 0 18px; }.picker-label { margin-right:4px; color:var(--muted); font-size:.65rem; font-weight:900; letter-spacing:.13em; }.difficulty-button { padding:7px 10px; border:1px solid rgba(218,244,242,.13); border-radius:10px; color:var(--muted); background:rgba(5,24,36,.65); font-size:.77rem; font-weight:800; }.difficulty-button small { margin-left:3px; color:#7896a2; font-size:.67rem; font-weight:700; }.difficulty-button.active { border-color:var(--gold); color:#3c2c0e; background:var(--gold); }.difficulty-button.active small { color:#604817; }.fish-board { gap:1px; padding:7px; border-color:rgba(134,228,217,.72); border-radius:18px; background:linear-gradient(135deg,#0a2637,#16495a); box-shadow:0 18px 42px rgba(0,0,0,.27),inset 0 0 0 1px rgba(255,255,255,.08); }.fish-cell { border:0 !important; background:linear-gradient(145deg,var(--cell-tint),rgba(5,20,30,.34)) !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.1); transition:transform .14s ease,filter .14s ease,box-shadow .14s ease; }.fish-cell:hover:not(:disabled) { position:relative; z-index:2; transform:scale(1.07); box-shadow:0 0 0 2px rgba(235,255,252,.72),0 8px 18px rgba(0,0,0,.22); }.fish-cell.region-edge-top { border-top:2px solid rgba(231,255,252,.85) !important; }.fish-cell.region-edge-right { border-right:2px solid rgba(231,255,252,.85) !important; }.fish-cell.region-edge-bottom { border-bottom:2px solid rgba(231,255,252,.85) !important; }.fish-cell.region-edge-left { border-left:2px solid rgba(231,255,252,.85) !important; }.fish-cell.selected { background:radial-gradient(circle at 40% 35%,#75e8df,var(--cell-strong) 62%,#183c55) !important; box-shadow:inset 0 0 0 2px rgba(255,255,255,.34),0 0 17px rgba(121,228,215,.34); }.fish-cell.given::after { border-color:#ffe282; box-shadow:0 0 12px rgba(255,218,122,.42); }
@media (max-width:500px) { .difficulty-picker { gap:5px; }.picker-label { width:100%; text-align:center; }.difficulty-button { padding:6px 7px; }.difficulty-button small { display:none; }.fish-board { padding:5px; border-radius:14px; } }
.arcade-dialog { position:fixed; z-index:10; inset:0; display:grid; place-items:center; padding:20px; background:rgba(3,12,20,.76); backdrop-filter:blur(7px); }.arcade-dialog[hidden] { display:none; }.dialog-panel { position:relative; width:min(100%,390px); padding:34px 30px; border:1px solid rgba(121,228,215,.35); border-radius:23px; background:linear-gradient(145deg,#18394a,#0d202f); box-shadow:0 28px 70px rgba(0,0,0,.45); text-align:center; }.dialog-icon { display:grid; width:47px; height:47px; place-items:center; margin:0 auto 20px; border-radius:15px; color:var(--aqua); background:rgba(121,228,215,.12); font-size:1.35rem; }.dialog-panel h2 { margin:0 0 8px; font-size:2rem; letter-spacing:-.05em; }.dialog-panel p:not(.eyebrow) { margin:0; color:var(--muted); line-height:1.5; }.dialog-panel p strong { color:var(--aqua); }.dialog-actions { display:flex; justify-content:center; gap:9px; margin-top:27px; }.dialog-actions button { flex:1; }
.card-block-fit { background:linear-gradient(135deg,rgba(116,133,242,.17),rgba(10,29,42,.65) 58%); }.block-fit-card-icon { display:grid; width:67px; height:67px; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr); gap:5px; align-items:center; }.block-fit-card-icon span { border-radius:7px; background:#8e9cf4; box-shadow:0 5px 12px rgba(118,131,240,.25); }.block-fit-card-icon span:nth-child(1) { grid-area:1 / 1 / span 2 / span 2; }.block-fit-card-icon span:nth-child(2) { background:#79e4d7; }.block-fit-card-icon span:nth-child(3) { background:#ffcf65; }.block-fit-card-icon span:nth-child(4) { grid-column:2 / span 2; background:#f29f9a; }
.block-fit-area { gap:0; }.block-fit-board { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; width:min(100%,400px); padding:8px; border:1px solid rgba(142,156,244,.34); border-radius:17px; background:#142c41; box-shadow:0 14px 32px rgba(0,0,0,.24); }.block-fit-cell { aspect-ratio:1; min-width:0; border:0; border-radius:6px; background:rgba(231,245,245,.1); transition:transform .14s ease,background .14s ease; }.block-fit-cell:not(:disabled):hover { background:rgba(142,156,244,.36); transform:scale(1.06); }.block-fit-cell.filled { background:#8e9cf4; box-shadow:inset 0 1px rgba(255,255,255,.28),0 3px 7px rgba(61,64,154,.22); }.block-fit-cell.filled:nth-child(3n) { background:#79cfc7; }.block-fit-cell.filled:nth-child(5n) { background:#f1b36d; }.block-fit-pieces { display:flex; justify-content:center; align-items:stretch; gap:10px; width:min(100%,400px); margin-top:16px; }.block-fit-piece { display:grid; flex:0 1 calc(33.333% - 6.667px); width:calc(33.333% - 6.667px); min-width:0; max-width:126px; min-height:102px; place-items:center; gap:7px; padding:10px; border:1px solid rgba(218,244,242,.14); border-radius:14px; color:var(--ink); background:rgba(8,25,37,.7); }.block-fit-piece:hover:not(:disabled),.block-fit-piece.active { border-color:#9da7ff; background:rgba(142,156,244,.17); box-shadow:0 8px 20px rgba(91,103,225,.16); }.block-fit-piece:disabled { opacity:.37; cursor:default; }.block-fit-shape { display:grid; grid-template-columns:repeat(4,15px); grid-template-rows:repeat(4,15px); gap:2px; }.block-fit-shape span { border-radius:3px; background:transparent; }.block-fit-shape span.used { background:#9aaec0; box-shadow:inset 0 1px rgba(255,255,255,.35); }.block-fit-piece-label { color:var(--muted); font-size:.6rem; font-weight:900; letter-spacing:.12em; }
footer { padding:13px; color:#76909c; border-top:1px solid rgba(218,244,242,.08); text-align:center; font-size:.72rem; }
@media (max-width:620px) { .app-shell { padding:20px 16px 38px; }.topbar { margin-bottom:50px; }.game-cards { grid-template-columns:1fr; }.game-card { min-height:250px; }.game-header { align-items:start; }.play-area { padding:20px 12px; }.fish-tools { padding:0 4px; }.score-box,.level-box { min-width:74px; } }

/* Direção atual: superfícies chapadas, cores pastel e sombra apenas como profundidade local. */
body { background:#0b1c29; }.card-2048 { background:rgba(99,74,61,.3); }.card-fish { background:rgba(63,103,105,.3); }.fish-area { background:#102936; }.fish-board { background:#254652; }.fish-cell { background:var(--cell-tint) !important; }.fish-cell.selected { background:var(--cell-strong) !important; }.dialog-panel { background:#183441; }
.game-stats { display:flex; gap:8px; }.fish-score-box { background:rgba(234,211,155,.14); }.fish-score-box strong { color:#f2d89e; }
.card-memory { background:rgba(101,83,127,.28); }.card-bubble { background:rgba(80,116,142,.28); }.mini-game-area { min-height:460px; justify-content:center; }.memory-board { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; width:min(100%,420px); }.memory-card { display:grid; aspect-ratio:1; place-items:center; border:1px solid rgba(218,244,242,.18); border-radius:14px; color:#a9d9d5; background:#1b3d4b; font-size:clamp(1.3rem,5vw,2.15rem); font-weight:900; }.memory-card.revealed { color:#23404d; background:#d9eee9; }.memory-card.matched { color:#2e544f; background:#b9dfd1; }.bubble-surface { position:relative; width:min(100%,440px); aspect-ratio:1.35; overflow:hidden; border:2px solid rgba(134,228,217,.6); border-radius:22px; background:#254652; box-shadow:0 16px 34px rgba(0,0,0,.22); }.bubble-surface button { position:absolute; width:58px; aspect-ratio:1; border:2px solid rgba(236,255,252,.85); border-radius:50%; color:rgba(255,255,255,.82); background:#93c9d4; box-shadow:inset 0 0 0 6px rgba(255,255,255,.18),0 7px 12px rgba(0,0,0,.16); font-size:1.8rem; transform:translate(-50%,-50%); }.bubble-surface button:hover { transform:translate(-50%,-50%) scale(1.08); }.bubble-surface button[hidden] { display:none; }.bubble-surface span { position:absolute; inset:0; display:grid; place-items:center; padding:30px; color:var(--muted); text-align:center; }.bubble-surface span[hidden] { display:none; }
@media (max-width:420px) { .app-shell { padding-inline:12px; }.game-header { align-items:flex-start; }.game-stats { gap:5px; }.score-box,.level-box { min-width:64px; padding:9px 8px; }.fish-board { width:100%; }.memory-board { gap:6px; }.memory-card { border-radius:10px; }.bubble-surface { border-radius:16px; }.bubble-surface button { width:48px; } }

/* Identidade Piscis Arcade: azul profundo, ciano e magenta da arte própria. */
:root { --arcade-blue:#2378ff; --arcade-cyan:#52dcff; --arcade-violet:#ad7cff; --arcade-magenta:#ef78ff; --arcade-panel:#07152a; --arcade-line:rgba(91,157,255,.24); }
body { background:radial-gradient(circle at 8% 0%,rgba(35,120,255,.23),transparent 26rem),radial-gradient(circle at 92% 12%,rgba(239,120,255,.14),transparent 24rem),#020716; }
.topbar { padding-bottom:14px; border-bottom:1px solid var(--arcade-line); }.brand { gap:12px; }.brand strong { color:var(--arcade-cyan); }.brand-mark { width:42px; height:42px; border-color:rgba(90,176,255,.82); border-radius:13px; box-shadow:0 0 18px rgba(35,120,255,.34); }
.game-card { border-color:var(--arcade-line); background:rgba(7,21,42,.78); box-shadow:0 20px 50px rgba(0,0,0,.28),inset 0 1px rgba(155,211,255,.06); }.card-2048 { background:linear-gradient(135deg,rgba(239,120,255,.13),rgba(7,21,42,.84) 62%); }.card-fish { background:linear-gradient(135deg,rgba(82,220,255,.13),rgba(7,21,42,.84) 62%); }.card-memory { background:linear-gradient(135deg,rgba(173,124,255,.13),rgba(7,21,42,.84) 62%); }.card-bubble { background:linear-gradient(135deg,rgba(82,220,255,.11),rgba(7,21,42,.84) 62%); }
.card-block-fit { border-color:rgba(173,124,255,.52); background:linear-gradient(135deg,rgba(35,120,255,.29),rgba(239,120,255,.16) 44%,rgba(7,21,42,.88) 80%); }.block-fit-card-icon span { box-shadow:0 0 13px rgba(82,220,255,.28); }.block-fit-card-icon span:nth-child(1) { background:var(--arcade-blue); }.block-fit-card-icon span:nth-child(2) { background:var(--arcade-cyan); }.block-fit-card-icon span:nth-child(3) { background:var(--arcade-magenta); }.block-fit-card-icon span:nth-child(4) { background:var(--arcade-violet); }
.block-fit-area { border-color:rgba(82,220,255,.26); background:linear-gradient(155deg,rgba(9,30,61,.94),rgba(4,12,28,.94)); }.block-fit-board { border-color:rgba(82,220,255,.55); background:#071b35; box-shadow:0 18px 38px rgba(0,0,0,.36),0 0 24px rgba(35,120,255,.12),inset 0 1px rgba(168,222,255,.12); }.block-fit-cell { background:rgba(148,201,255,.13); }.block-fit-cell:not(:disabled):hover { background:rgba(82,220,255,.36); box-shadow:0 0 12px rgba(82,220,255,.32); }.block-fit-cell.filled,.block-fit-cell.filled:nth-child(3n),.block-fit-cell.filled:nth-child(5n) { background:var(--block-color) !important; box-shadow:inset 0 1px rgba(255,255,255,.45),0 0 11px color-mix(in srgb,var(--block-color) 58%,transparent); }.block-fit-cell.block-fit-preview { background:color-mix(in srgb,var(--preview-color) 36%,#071b35) !important; box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--preview-color) 82%,#fff),0 0 14px color-mix(in srgb,var(--preview-color) 46%,transparent); transform:scale(.96); }.block-fit-cell.block-fit-preview-invalid { background:rgba(255,103,126,.38) !important; box-shadow:inset 0 0 0 2px rgba(255,152,164,.95),0 0 14px rgba(255,75,109,.38); }.block-fit-piece { border-color:color-mix(in srgb,var(--piece-color) 48%,rgba(218,244,242,.14)); background:rgba(3,13,31,.8); }.block-fit-piece:hover:not(:disabled),.block-fit-piece.active { border-color:var(--piece-color); background:color-mix(in srgb,var(--piece-color) 13%,rgba(3,13,31,.9)); box-shadow:0 0 19px color-mix(in srgb,var(--piece-color) 26%,transparent); }.block-fit-shape span.used { background:var(--piece-color); box-shadow:inset 0 1px rgba(255,255,255,.5),0 0 9px color-mix(in srgb,var(--piece-color) 64%,transparent); }.block-fit-piece-label { color:color-mix(in srgb,var(--piece-color) 68%,#fff); }.block-fit-drag-ghost { position:fixed; z-index:20; display:grid; pointer-events:none; opacity:.88; filter:drop-shadow(0 12px 14px rgba(0,0,0,.4)); transform:translate(-50%,-50%) scale(1.16); }
@media (max-width:420px) { .brand-mark { width:38px; height:38px; }.block-fit-piece { min-height:94px; padding:8px; }.block-fit-shape { grid-template-columns:repeat(4,13px); grid-template-rows:repeat(4,13px); } }

/* Movimento curto para confirmar ações, mantendo a leitura confortável. */
.game-cards .game-card { animation:card-enter .46s both; }
.game-cards .game-card:nth-child(2) { animation-delay:.05s; }.game-cards .game-card:nth-child(3) { animation-delay:.10s; }.game-cards .game-card:nth-child(4) { animation-delay:.15s; }.game-cards .game-card:nth-child(5) { animation-delay:.20s; }
.game-cards .game-card:nth-child(6) { animation-delay:.25s; }
.game-cards .game-card:nth-child(7) { animation-delay:.30s; }
.game-icon { animation:icon-float 3.8s ease-in-out infinite; }
.tile:not(.empty) { animation:tile-arrive .24s cubic-bezier(.2,.9,.25,1.28); }
.fish-symbol { animation:fish-swim 1.85s ease-in-out infinite; }
.fish-cell.marked::before { animation:mark-in .2s ease-out; }.fish-cell.selected { animation:fish-select .3s ease-out; }
.memory-card.revealed { animation:card-turn .3s cubic-bezier(.2,.85,.3,1.2); }.memory-card.matched { animation:pair-found .54s ease-out; }
.bubble-surface button.bubble-spawn { animation:bubble-appear .28s ease-out; }
.block-fit-cell.block-fit-locked { animation:block-lock .34s cubic-bezier(.2,.9,.3,1.28); }
.block-fit-board .block-fit-cell.block-fit-clear-preview { background:var(--preview-color)!important; box-shadow:inset 0 0 0 2px #fff9,0 0 10px var(--preview-color); transform:scale(.96); transition:transform .12s ease!important; }
.block-fit-cell.block-fit-preview { transition:background .12s ease,box-shadow .12s ease,transform .12s ease; }
.block-fit-loss { display:grid; justify-items:center; gap:8px; width:min(100%,400px); margin:2px 0 12px; padding:16px; border:1px solid rgba(255,139,167,.62); border-radius:16px; color:#ffd8e1; background:rgba(91,19,48,.42); box-shadow:0 0 22px rgba(239,120,255,.15); text-align:center; animation:loss-enter .3s ease-out; }.block-fit-loss[hidden] { display:none; }.block-fit-loss strong { color:#ffadc1; font-size:1.05rem; }.block-fit-loss span { color:#d9bfd0; font-size:.86rem; }.block-fit-loss .primary-button { margin-top:3px; color:#260719; background:#ff8ba7; }.block-fit-loss .primary-button:hover { background:#ffadc1; }
@keyframes card-enter { from { opacity:0; transform:translateY(16px) scale(.985); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes icon-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-5px); } }
@keyframes tile-arrive { from { opacity:.25; transform:scale(.7); } to { opacity:1; transform:scale(1); } }
@keyframes fish-swim { 0%,100% { transform:translateY(-1px) rotate(-4deg); } 50% { transform:translateY(-4px) rotate(4deg); } }
@keyframes fish-select { from { transform:scale(.78); } to { transform:scale(1); } }
@keyframes mark-in { from { opacity:0; transform:scale(.35) rotate(-24deg); } to { opacity:1; transform:scale(1) rotate(0); } }
@keyframes card-turn { from { opacity:.15; transform:rotateY(82deg) scale(.88); } to { opacity:1; transform:rotateY(0) scale(1); } }
@keyframes pair-found { 0% { transform:scale(1); } 45% { transform:scale(1.1) rotate(3deg); } 100% { transform:scale(1); } }
@keyframes bubble-appear { from { opacity:0; transform:translate(-50%,-50%) scale(.25); } 70% { opacity:1; transform:translate(-50%,-50%) scale(1.16); } to { transform:translate(-50%,-50%) scale(1); } }
@keyframes block-lock { from { transform:scale(.56); filter:brightness(1.7); } to { transform:scale(1); filter:brightness(1); } }
@keyframes loss-enter { from { opacity:0; transform:translateY(-8px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }

/* Enguia: percurso 2D próprio, com a ração como ponto de atenção. */
.card-eel { border-color:rgba(82,220,255,.48); background:linear-gradient(135deg,rgba(82,220,255,.22),rgba(11,35,72,.84) 57%,rgba(7,21,42,.88)); }
.eel-area { border-color:rgba(82,220,255,.34); background:#071b35; }
.eel-board { display:grid; grid-template-columns:repeat(16,1fr); gap:0; width:min(100%,480px); aspect-ratio:1; padding:0; overflow:hidden; border:1px solid rgba(82,220,255,.68); border-radius:20px; background-color:#061a34; background-image:linear-gradient(to right,rgba(110,197,255,.12) 1px,transparent 1px),linear-gradient(to bottom,rgba(110,197,255,.12) 1px,transparent 1px); background-size:6.25% 6.25%; box-shadow:0 20px 42px rgba(0,0,0,.36),0 0 27px rgba(35,120,255,.16),inset 0 1px rgba(197,240,255,.12); touch-action:none; }
.eel-cell { position:relative; min-width:0; min-height:0; background:transparent; }
.eel-body { z-index:1; border:1px solid rgba(160,238,255,.45); background:#2679ca; box-shadow:inset 0 1px rgba(239,255,255,.38),0 0 7px rgba(55,194,255,.36); }
.eel-head { z-index:2; border-color:#dbfbff; background:#59c5df; box-shadow:inset 0 1px rgba(255,255,255,.68),0 0 13px rgba(82,220,255,.75); }
.eel-head::after { position:absolute; width:27%; aspect-ratio:1; border:1px solid rgba(225,255,255,.95); border-radius:50%; background:#061225; box-shadow:inset 0 0 0 2px #f3ffff; content:""; }
.eel-head.eel-right::after { top:24%; right:16%; }.eel-head.eel-left::after { top:24%; left:16%; }.eel-head.eel-up::after { top:15%; right:22%; }.eel-head.eel-down::after { bottom:15%; right:22%; }
.eel-tail { border-color:rgba(129,223,255,.36); background:#1b5ea8; opacity:.88; }
.eel-food { z-index:3; border:1px solid #fff1b1; border-radius:50%; background:#ffd55f; box-shadow:inset 0 2px 1px rgba(255,255,255,.74),0 0 14px rgba(255,195,62,.83); }
.eel-food::after { position:absolute; top:18%; left:23%; width:25%; aspect-ratio:1; border-radius:50%; background:rgba(255,255,255,.9); content:""; }
.eel-dpad { margin:18px 0 0; }.eel-loss { display:grid; justify-items:center; gap:8px; width:min(100%,420px); margin:17px 0 0; padding:16px; border:1px solid rgba(255,211,95,.72); border-radius:16px; color:#ffe7ac; background:rgba(77,51,11,.46); box-shadow:0 0 21px rgba(255,196,61,.14); text-align:center; animation:loss-enter .3s ease-out; }.eel-loss[hidden] { display:none; }.eel-loss strong { color:#ffdc75; font-size:1.05rem; }.eel-loss span { color:#e3d1a4; font-size:.86rem; }.eel-loss .primary-button { color:#352300; background:#ffd55f; }.eel-loss .primary-button:hover { background:#ffe49a; }
@media (max-width:420px) { .eel-board { border-radius:15px; }.eel-area .instruction { max-width:300px; text-align:center; }.eel-dpad { margin-top:14px; } }

/* Placares locais: melhores resultados por jogo e soma Arcade. */
.scoreboard-link { padding:9px 12px; border:1px solid var(--arcade-line, var(--line)); border-radius:11px; color:var(--aqua); background:rgba(7,21,42,.62); font-size:.76rem; font-weight:900; letter-spacing:.04em; }.scoreboard-link:hover { border-color:var(--aqua); background:rgba(82,220,255,.12); }
.achievement-link { display:inline-flex; min-height:40px; align-items:center; justify-content:center; gap:5px; padding:9px 12px; border:1px solid rgba(255,212,105,.42); border-radius:11px; color:#ffe3a3; background:rgba(61,43,7,.38); font:inherit; font-size:.76rem; font-weight:900; letter-spacing:.04em; white-space:nowrap; transition:color var(--arcade-motion),background var(--arcade-motion),border-color var(--arcade-motion),box-shadow var(--arcade-motion),transform var(--arcade-motion); }.achievement-link:hover { border-color:#ffd467; color:#fff5cb; background:rgba(115,75,6,.48); box-shadow:0 0 17px rgba(255,203,83,.14); transform:translateY(-2px); }
.leaderboards-area { max-width:900px; margin:auto; padding:28px; border:1px solid var(--arcade-line); border-radius:24px; background:rgba(7,21,42,.8); }.leaderboards-area>.instruction { max-width:620px; margin:0 auto 24px; text-align:center; line-height:1.55; }.leaderboard-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.leaderboard-panel { min-width:0; padding:20px; border:1px solid rgba(82,220,255,.19); border-radius:17px; background:rgba(3,13,31,.62); }.leaderboard-panel-head { display:flex; align-items:start; justify-content:space-between; gap:12px; }.leaderboard-panel .eyebrow { margin-bottom:7px; }.leaderboard-panel h2 { margin:0 0 18px; font-size:1.35rem; letter-spacing:-.04em; }.leaderboard-select-label { display:grid; gap:4px; color:var(--muted); font-size:.66rem; font-weight:800; letter-spacing:.08em; }.leaderboard-select-label select { max-width:155px; padding:7px 25px 7px 8px; border:1px solid rgba(82,220,255,.32); border-radius:8px; color:var(--ink); background:#0a213d; font:inherit; font-size:.72rem; letter-spacing:0; }.leaderboard-list { display:grid; gap:7px; margin:0; padding:0; list-style:none; }.leaderboard-row { display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:8px; min-height:40px; padding:8px 9px; border:1px solid rgba(117,181,255,.13); border-radius:10px; background:rgba(36,82,133,.12); }.leaderboard-position { display:grid; width:23px; height:23px; place-items:center; border-radius:7px; color:#0d1d37; background:#b8e8ff; font-size:.72rem; font-weight:900; }.leaderboard-row:nth-child(2) .leaderboard-position { background:#ddc9ff; }.leaderboard-row:nth-child(3) .leaderboard-position { background:#ffd98a; }.leaderboard-row strong { overflow:hidden; color:var(--ink); text-overflow:ellipsis; white-space:nowrap; }.leaderboard-value { color:var(--arcade-cyan); font-size:.8rem; font-weight:900; }.leaderboard-empty { padding:19px 10px; border:1px dashed rgba(117,181,255,.22); border-radius:10px; color:var(--muted); line-height:1.45; text-align:center; font-size:.85rem; }.global-leaderboard { border-color:rgba(239,120,255,.24); background:rgba(41,16,71,.28); }
.achievements-area { max-width:940px; margin:auto; padding:clamp(18px,3vw,30px); border:1px solid rgba(255,212,105,.28); border-radius:24px; background:linear-gradient(135deg,rgba(43,33,12,.72),rgba(7,21,42,.9) 46%,rgba(12,34,53,.78)); box-shadow:0 22px 46px rgba(0,0,0,.17); }.achievements-intro { display:flex; align-items:center; gap:18px; max-width:720px; margin:0 auto 25px; padding:16px 18px; border:1px solid rgba(255,222,135,.18); border-radius:18px; background:rgba(3,13,31,.43); }.achievements-intro-icon { display:grid; flex:0 0 auto; width:58px; height:58px; place-items:center; border:1px solid rgba(255,212,105,.5); border-radius:18px; background:rgba(110,74,10,.35); box-shadow:0 0 20px rgba(255,202,76,.13); font-size:1.9rem; }.achievements-intro .eyebrow { margin:0 0 5px; color:#ffe0a0; }.achievements-intro p:last-child { margin:0; color:#b9cde0; font-size:.9rem; line-height:1.5; }.achievement-groups { display:grid; gap:18px; }.achievement-group { padding:17px; border:1px solid rgba(121,228,215,.17); border-radius:18px; background:rgba(3,13,31,.45); }.achievement-group-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 13px; }.achievement-group-header h2 { margin:0; color:#e9fbff; font-size:1.05rem; letter-spacing:-.02em; }.achievement-group-header span { flex:0 0 auto; color:#ffd98a; font-size:.75rem; font-weight:900; }.achievement-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(225px,1fr)); gap:10px; }.achievement-card { display:grid; grid-template-columns:42px minmax(0,1fr); gap:11px; min-height:87px; padding:12px; border:1px solid rgba(121,228,215,.19); border-radius:14px; background:rgba(8,33,62,.58); }.achievement-card.is-locked { filter:saturate(.32); }.achievement-card.is-locked .achievement-card-icon { opacity:.48; }.achievement-card.is-locked h3,.achievement-card.is-locked p { color:#839db6; }.achievement-card-icon { display:grid; width:42px; height:42px; place-items:center; border:1px solid rgba(255,212,105,.42); border-radius:13px; background:rgba(95,68,11,.3); font-size:1.28rem; }.achievement-card h3 { margin:0 0 3px; color:#f6fcff; font-size:.86rem; line-height:1.2; }.achievement-card p { margin:0; color:#a9c4dd; font-size:.75rem; line-height:1.42; }.achievement-card-state { display:block; margin-top:5px; color:#79e4d7; font-size:.65rem; font-weight:900; letter-spacing:.06em; }.achievement-card.is-locked .achievement-card-state { color:#8aa0b7; }
.leaderboard-identity { display:grid; min-width:0; gap:2px; }.leaderboard-identity strong { display:block; }.leaderboard-identity small { overflow:hidden; color:#8fa9c2; font-size:.61rem; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }.global-leaderboard-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }.leaderboard-game-actions { display:flex; align-items:flex-start; gap:8px; }.leaderboard-source-pill { flex:0 0 auto; padding:5px 7px; border:1px solid rgba(121,228,215,.42); border-radius:999px; color:#8df0e4; background:rgba(38,116,106,.2); font-size:.55rem; font-weight:900; letter-spacing:.09em; }.global-leaderboard-status { min-height:31px; margin:-10px 0 12px; color:#9fb6cc; font-size:.7rem; line-height:1.35; }.leaderboard-player-online { display:flex; align-items:center; gap:5px; color:#77e6a5 !important; font-weight:900 !important; }.leaderboard-player-online-dot { width:7px; height:7px; flex:0 0 auto; border-radius:50%; background:#55e58a; box-shadow:0 0 0 2px rgba(85,229,138,.13),0 0 9px rgba(85,229,138,.58); }.leaderboard-row.is-online { border-color:rgba(85,229,138,.24); }.leaderboard-panel .leaderboard-list { max-height:430px; padding-right:3px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }

/* A medalha informa o peso da conquista mesmo antes de ela ser desbloqueada. */
.achievement-card.is-locked { filter:none; opacity:.88; }
.achievement-card.is-locked .achievement-card-icon { opacity:.78; filter:saturate(.84); }
.achievement-card.achievement-tier-bronze .achievement-card-icon { border-color:rgba(225,145,83,.72); background:rgba(117,61,24,.34); box-shadow:0 0 16px rgba(226,137,70,.12); }
.achievement-card.achievement-tier-silver .achievement-card-icon { border-color:rgba(187,213,233,.72); background:rgba(65,93,119,.34); box-shadow:0 0 16px rgba(177,213,242,.12); }
.achievement-card.achievement-tier-gold .achievement-card-icon { border-color:rgba(255,210,98,.78); background:rgba(112,76,13,.36); box-shadow:0 0 18px rgba(255,204,79,.16); }
.achievement-card.achievement-tier-bronze .achievement-card-state { color:#e3a876; }
.achievement-card.achievement-tier-silver .achievement-card-state { color:#bdd7ea; }
.achievement-card.achievement-tier-gold .achievement-card-state { color:#ffe09a; }
.achievement-card.achievement-tier-bronze.is-locked .achievement-card-state { color:#c59570; }
.achievement-card.achievement-tier-silver.is-locked .achievement-card-state { color:#9db7ca; }
.achievement-card.achievement-tier-gold.is-locked .achievement-card-state { color:#d9bd7c; }
.score-entry-dialog { z-index:12; }.score-entry-panel { width:min(100%,410px); }.score-name-label { display:flex; justify-content:space-between; margin-top:22px; color:var(--ink); font-size:.78rem; font-weight:900; text-align:left; }.score-name-label small { color:var(--muted); font-size:.7rem; font-weight:700; }.score-entry-panel input { width:100%; margin-top:7px; padding:12px 13px; border:1px solid rgba(82,220,255,.38); border-radius:11px; outline:0; color:var(--ink); background:#071a32; font:inherit; }.score-entry-panel input:focus { border-color:var(--arcade-cyan); box-shadow:0 0 0 3px rgba(82,220,255,.14); }.score-entry-feedback { min-height:20px; margin:9px 0 -9px !important; color:#ffd98a !important; font-size:.78rem; text-align:left; }
@media (max-width:620px) { .topbar { gap:12px; }.scoreboard-link,.achievement-link { padding:8px 10px; }.leaderboards-area { padding:17px 12px; }.leaderboard-columns { grid-template-columns:1fr; }.leaderboard-panel { padding:16px; }.leaderboard-panel-head { align-items:flex-start; flex-wrap:wrap; }.leaderboard-game-actions { width:100%; justify-content:space-between; }.leaderboard-select-label select { max-width:145px; }.score-entry-panel { padding:28px 22px; }.achievements-area { padding:15px 12px; border-radius:20px; }.achievements-intro { align-items:flex-start; padding:14px; border-radius:15px; }.achievement-group { padding:13px; }.achievement-grid { grid-template-columns:1fr; } }

/* Dance com Pisquinho: arte fornecida recortada no palco e animada por cada comando. */
.card-dance { border-color:rgba(239,120,255,.48); background:linear-gradient(135deg,rgba(82,220,255,.2),rgba(127,42,199,.25) 53%,rgba(7,21,42,.88)); }.dance-area { gap:0; border-color:rgba(239,120,255,.33); background:#07152d; }.dance-difficulty { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; margin:0 0 16px; }.dance-stage { position:relative; width:min(100%,520px); aspect-ratio:1.12; overflow:hidden; border:1px solid rgba(82,220,255,.6); border-radius:22px; background:linear-gradient(145deg,#0a1d44,#140b38); box-shadow:0 18px 42px rgba(0,0,0,.36),inset 0 0 0 1px rgba(255,255,255,.06); }.dance-stage::before { position:absolute; inset:0; background:linear-gradient(rgba(92,92,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(92,92,255,.12) 1px,transparent 1px); background-size:10% 13%; content:""; }.dance-stage::after { position:absolute; inset:auto 0 0; height:42%; background:linear-gradient(transparent,rgba(3,8,29,.72)); content:""; }.dance-beat { position:absolute; z-index:4; top:18px; right:18px; left:18px; height:5px; overflow:hidden; border-radius:999px; background:rgba(215,231,255,.14); }.dance-beat span { display:block; width:100%; height:100%; transform-origin:left; background:#52dcff; }.dance-beat span.dance-beat-running { animation:dance-beat-countdown linear forwards; }.dance-current { position:absolute; z-index:5; top:38px; left:50%; display:grid; width:74px; height:74px; place-items:center; border:1px solid rgba(237,190,255,.92); border-radius:20px; color:#fff; background:rgba(47,13,91,.77); box-shadow:0 0 22px rgba(239,120,255,.45); font-size:3.2rem; font-weight:900; transform:translateX(-50%); }.dance-current-space { width:120px; font-size:1rem; letter-spacing:.1em; }.pisquinho-dancer { position:absolute; z-index:3; bottom:-4%; left:21%; width:58%; aspect-ratio:192 / 208; transform-origin:50% 85%; }.pisquinho-sprite { --sprite-row:0%; display:block; width:100%; height:100%; background-image:url('../assets/pisquinho-spritesheet.webp'); background-position:0 var(--sprite-row); background-repeat:no-repeat; background-size:800% 1100%; filter:drop-shadow(0 14px 13px rgba(0,0,0,.32)); }.dance-next { position:absolute; z-index:5; right:18px; bottom:18px; display:flex; gap:6px; }.dance-next span { display:grid; width:31px; height:31px; place-items:center; border:1px solid rgba(82,220,255,.5); border-radius:9px; color:#9cf0ff; background:rgba(3,18,48,.72); font-weight:900; }.dance-controls { display:grid; grid-template-columns:repeat(5,minmax(48px,1fr)); gap:8px; width:min(100%,520px); margin-top:15px; }.dance-controls button { min-height:47px; border:1px solid rgba(82,220,255,.33); border-radius:11px; color:#eafdff; background:#0b2450; font-size:1.3rem; font-weight:900; }.dance-controls button:last-child { font-size:.75rem; }.dance-controls button:hover:not(:disabled) { border-color:#ef78ff; background:#401172; box-shadow:0 0 14px rgba(239,120,255,.24); }.dance-controls button:disabled { opacity:.34; cursor:default; }.dance-finish { display:grid; justify-items:center; gap:8px; width:min(100%,420px); margin:16px 0 0; padding:16px; border:1px solid rgba(239,120,255,.62); border-radius:16px; color:#f5d7ff; background:rgba(69,17,104,.46); box-shadow:0 0 22px rgba(239,120,255,.15); text-align:center; }.dance-finish[hidden] { display:none; }.dance-finish strong { color:#f1a4ff; }.dance-finish span { color:#d9c4e8; font-size:.86rem; }.dance-finish .primary-button { color:#24073b; background:#ef9dff; }.dance-idle { animation:pisquinho-idle 1.65s ease-in-out infinite; }.dance-idle .pisquinho-sprite { --sprite-row:0%; animation:pisquinho-sprite-six 1.2s steps(1,end) infinite; }.dance-performing { animation-duration:.42s; animation-timing-function:cubic-bezier(.2,.9,.3,1.25); }.dance-up.dance-performing { animation-name:pisquinho-up; }.dance-up .pisquinho-sprite { --sprite-row:30%; animation:pisquinho-sprite-four .44s steps(1,end) infinite; }.dance-down.dance-performing { animation-name:pisquinho-down; }.dance-down .pisquinho-sprite { --sprite-row:70%; animation:pisquinho-sprite-six .5s steps(1,end) infinite; }.dance-left.dance-performing { animation-name:pisquinho-left; }.dance-left .pisquinho-sprite { --sprite-row:20%; animation:pisquinho-sprite-eight .5s steps(1,end) infinite; }.dance-right.dance-performing { animation-name:pisquinho-right; }.dance-right .pisquinho-sprite { --sprite-row:10%; animation:pisquinho-sprite-eight .5s steps(1,end) infinite; }.dance-jump.dance-performing { animation-name:pisquinho-jump; }.dance-jump .pisquinho-sprite { --sprite-row:40%; animation:pisquinho-sprite-five .55s steps(1,end) infinite; }.dance-miss-up.dance-performing,.dance-miss-down.dance-performing,.dance-miss-left.dance-performing,.dance-miss-right.dance-performing,.dance-miss-jump.dance-performing { animation-name:pisquinho-miss; }.dance-miss-up .pisquinho-sprite,.dance-miss-down .pisquinho-sprite,.dance-miss-left .pisquinho-sprite,.dance-miss-right .pisquinho-sprite,.dance-miss-jump .pisquinho-sprite { --sprite-row:50%; animation:pisquinho-sprite-eight .66s steps(1,end) infinite; }
@keyframes dance-beat-countdown { from { transform:scaleX(1); } to { transform:scaleX(0); } } @keyframes pisquinho-idle { 0%,100% { transform:translateY(0) rotate(0); } 50% { transform:translateY(-5px) rotate(1deg); } } @keyframes pisquinho-up { 50% { transform:translateY(-18px) scale(1.04); } } @keyframes pisquinho-down { 50% { transform:translateY(10px) scaleY(.91) scaleX(1.06); } } @keyframes pisquinho-left { 50% { transform:translateX(-18px) rotate(-7deg); } } @keyframes pisquinho-right { 50% { transform:translateX(18px) rotate(7deg); } } @keyframes pisquinho-jump { 45% { transform:translateY(-42px) rotate(3deg) scale(1.05); } 100% { transform:translateY(0); } } @keyframes pisquinho-miss { 25% { transform:translateX(-9px) rotate(-4deg); } 65% { transform:translateX(9px) rotate(4deg); } } @media (max-width:500px) { .dance-stage { border-radius:17px; }.dance-current { top:28px; width:61px; height:61px; font-size:2.6rem; }.dance-current-space { width:103px; font-size:.82rem; }.dance-controls { grid-template-columns:repeat(4,1fr); }.dance-controls button:last-child { grid-column:span 4; }.pisquinho-dancer { left:17%; width:66%; } }

/* Queda da nota: a linha é fixa; somente o comando viaja até ela. */
.dance-rhythms { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:7px; margin:-6px 0 16px; }.dance-rhythm,.dance-sound-toggle { min-height:38px; padding:7px 11px; border:1px solid rgba(82,220,255,.27); border-radius:10px; color:#bcd7f4; background:rgba(7,24,52,.72); font:inherit; font-size:.75rem; font-weight:900; }.dance-rhythm small { display:block; margin-top:1px; opacity:.68; font-size:.62rem; font-weight:700; }.dance-rhythm.active { border-color:var(--arcade-cyan); color:#fff; background:rgba(38,103,155,.46); box-shadow:0 0 14px rgba(82,220,255,.18); }.dance-sound-toggle[aria-pressed="false"] { opacity:.58; }.dance-stage { --rhythm-color:#52dcff; }.dance-stage[data-rhythm="pixel"] { border-color:rgba(173,124,255,.72); }.dance-stage[data-rhythm="neon"] { border-color:rgba(239,120,255,.72); }.dance-beat span { background:var(--rhythm-color); }.dance-current { top:55px; left:77%; border-color:color-mix(in srgb,var(--rhythm-color) 75%,white); background:#1a1651; box-shadow:0 0 22px color-mix(in srgb,var(--rhythm-color) 44%,transparent); }.dance-current.dance-note-running { animation:dance-note-fall var(--beat-duration) linear forwards; }.dance-hit-line { position:absolute; z-index:6; bottom:78px; left:calc(77% - 59px); width:118px; height:42px; border-top:2px solid var(--rhythm-color); border-bottom:2px solid color-mix(in srgb,var(--rhythm-color) 45%,transparent); box-shadow:0 0 14px color-mix(in srgb,var(--rhythm-color) 35%,transparent); pointer-events:none; }.dance-hit-line span { position:absolute; top:8px; left:50%; color:color-mix(in srgb,var(--rhythm-color) 70%,white); font-size:.61rem; font-weight:900; letter-spacing:.14em; transform:translateX(-50%); white-space:nowrap; }.dance-next { bottom:16px; left:18px; right:auto; }.pisquinho-dancer { z-index:3; }.dance-current-space { width:120px; font-size:.9rem; }.dance-stage[data-rhythm="pixel"] .dance-current { background:#24164f; }.dance-stage[data-rhythm="neon"] .dance-current { background:#42104c; } @keyframes dance-note-fall { 0% { top:55px; opacity:0; transform:translateX(-50%) scale(.72); } 9% { opacity:1; } 74% { top:calc(100% - 120px); opacity:1; transform:translateX(-50%) scale(1); } 100% { top:calc(100% - 75px); opacity:.64; transform:translateX(-50%) scale(.92); } } @media (max-width:500px) { .dance-rhythm,.dance-sound-toggle { padding:6px 9px; }.dance-current { top:42px; left:78%; }.dance-hit-line { bottom:69px; left:calc(78% - 51px); width:102px; }.dance-current.dance-note-running { animation-name:dance-note-fall-mobile; } @keyframes dance-note-fall-mobile { 0% { top:42px; opacity:0; transform:translateX(-50%) scale(.72); } 9% { opacity:1; } 74% { top:calc(100% - 107px); opacity:1; transform:translateX(-50%) scale(1); } 100% { top:calc(100% - 66px); opacity:.64; transform:translateX(-50%) scale(.92); } } }

/* POLIMENTO_FLUIDEZ_20260815: mesma resposta tátil em todos os minijogos. */
:root { --arcade-motion:170ms cubic-bezier(.2,.75,.25,1); --arcade-rise:translateY(-3px); }
html { scroll-behavior:smooth; }
button, a, select { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
button:focus-visible, a:focus-visible, select:focus-visible { outline:3px solid rgba(82,220,255,.82); outline-offset:3px; }
.app-shell { padding-inline:clamp(16px,4vw,30px); }
.topbar { gap:16px; margin-bottom:clamp(44px,7vw,76px); }
.brand, .scoreboard-link, .back-link, .primary-button, .secondary-button { transition:color var(--arcade-motion), background var(--arcade-motion), border-color var(--arcade-motion), box-shadow var(--arcade-motion), transform var(--arcade-motion); }
.primary-button, .secondary-button { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
/* O `display` acima vence o `display:none` que o navegador dá ao atributo
   `hidden`, entao botao marcado como escondido aparecia assim mesmo — foi o
   que deixou "Desvincular o PiscisAuth" visivel numa conta que so entra por
   ele (19/09/2026). A regra fica aqui, e nao em cada tela, porque todo botao
   do app passa por estas duas classes. */
.primary-button[hidden], .secondary-button[hidden] { display:none; }
.primary-button:hover, .secondary-button:hover { transform:var(--arcade-rise); }
.primary-button:active, .secondary-button:active, .dpad button:active, .dance-controls button:active { transform:translateY(1px) scale(.97); }
.game-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; transition:transform var(--arcade-motion), border-color var(--arcade-motion), box-shadow var(--arcade-motion), background var(--arcade-motion); }
.game-card .primary-button { align-self:flex-start; margin-top:auto; }
.game-card:hover { border-color:rgba(82,220,255,.43); box-shadow:0 26px 58px rgba(0,0,0,.24); transform:var(--arcade-rise); }
.game-card-art { flex:0 0 auto; border-radius:20px; }
.game-card-art img { object-position:center; }
.game-cards { grid-auto-rows:264px; align-items:stretch; }.game-card { height:100%; min-height:0; box-sizing:border-box; }.game-card .eyebrow { min-height:15px; }.game-card h2 { min-height:38px; }.game-card p:not(.eyebrow) { display:-webkit-box; min-height:40px; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.play-area, .leaderboards-area { width:100%; box-shadow:0 22px 46px rgba(0,0,0,.15); }
.play-area > .instruction:first-child, .play-area > .fish-intro:first-child { max-width:580px; margin-inline:auto; text-align:center; line-height:1.58; }
.game-header { width:100%; }
.game-message { display:flex; align-items:center; justify-content:center; min-height:28px; padding-inline:10px; line-height:1.45; }
.board-2048, .memory-board, .fish-board, .block-fit-board, .eel-board, .bubble-surface, .dance-stage { contain:layout paint; }
.board-2048, .memory-board, .fish-board, .block-fit-board, .eel-board, .bubble-surface, .dance-stage { transition:box-shadow var(--arcade-motion), border-color var(--arcade-motion); }
.board-2048:hover, .memory-board:hover, .fish-board:hover, .block-fit-board:hover, .eel-board:hover, .bubble-surface:hover, .dance-stage:hover { box-shadow:0 20px 42px rgba(0,0,0,.3); }
.tile, .memory-card, .block-fit-cell, .fish-cell, .bubble-surface button, .dpad button, .dance-controls button { transition:transform var(--arcade-motion), background var(--arcade-motion), color var(--arcade-motion), box-shadow var(--arcade-motion), border-color var(--arcade-motion), filter var(--arcade-motion); }
.memory-card:hover:not(:disabled) { transform:translateY(-3px); border-color:rgba(121,228,215,.68); box-shadow:0 10px 18px rgba(0,0,0,.18); }
.dpad button, .dance-controls button { min-height:44px; }
.dpad button:hover:not(:disabled), .dance-controls button:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 8px 18px rgba(0,0,0,.2); }
.fish-tool, .difficulty-button, .dance-rhythm, .dance-sound-toggle, .block-fit-piece { transition:transform var(--arcade-motion), background var(--arcade-motion), color var(--arcade-motion), border-color var(--arcade-motion), box-shadow var(--arcade-motion); }
.fish-tool:hover, .difficulty-button:hover, .dance-rhythm:hover, .dance-sound-toggle:hover, .block-fit-piece:hover:not(:disabled) { transform:translateY(-2px); }
.arcade-dialog { animation:arcade-dialog-in 190ms ease-out; }
.dialog-panel { animation:arcade-panel-in 220ms cubic-bezier(.2,.85,.3,1.16); }
@keyframes arcade-dialog-in { from { opacity:0; } to { opacity:1; } }
@keyframes arcade-panel-in { from { opacity:0; transform:translateY(12px) scale(.97); } to { opacity:1; transform:none; } }
@media (min-width:1080px) { .game-cards { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:620px) { .topbar { align-items:flex-start; }.game-card { min-height:0; padding:19px; border-radius:19px; }.game-card p:not(.eyebrow) { min-height:0; }.game-card-art { width:70px; height:70px; margin-bottom:12px; border-radius:17px; }.play-area { padding:22px 14px; border-radius:20px; }.game-header { gap:12px; margin-bottom:18px; }.game-header h1 { line-height:1; }.game-stats { flex-shrink:0; }.scoreboard-link { min-height:40px; }.primary-button, .secondary-button { width:100%; }.game-card .primary-button { width:auto; min-width:148px; }.dpad { margin-top:18px; }.game-message { font-size:.84rem; } }
@media (max-width:620px) { .game-cards { grid-auto-rows:188px; gap:12px; }.game-card { display:grid; grid-template-columns:70px minmax(0,1fr); column-gap:13px; align-items:start; height:188px; min-height:188px; padding:16px; }.game-card-art { grid-row:1 / span 4; width:70px; height:70px; margin:0; }.game-card .eyebrow { grid-column:2; min-height:0; margin:1px 0 3px; font-size:.6rem; }.game-card h2 { grid-column:2; min-height:0; margin:0 0 4px; font-size:1.45rem; line-height:1.05; }.game-card p:not(.eyebrow) { grid-column:2; min-height:0; margin:0 0 11px; font-size:.88rem; line-height:1.35; }.game-card .primary-button { grid-column:2; min-height:40px; min-width:138px; margin:0; padding:9px 13px; font-size:.85rem; } }
@media (hover:none) { .game-card:hover, .primary-button:hover, .secondary-button:hover, .fish-tool:hover, .difficulty-button:hover, .dance-rhythm:hover, .dance-sound-toggle:hover, .block-fit-piece:hover:not(:disabled) { transform:none; }.board-2048:hover, .memory-board:hover, .fish-board:hover, .block-fit-board:hover, .eel-board:hover, .bubble-surface:hover, .dance-stage:hover { box-shadow:inherit; } }

/* Dance com Pisquinho: quadros reais do atlas v2 do Pet Pisquinho. */
@keyframes pisquinho-sprite-four { 0%,24.9% { background-position:0 var(--sprite-row); } 25%,49.9% { background-position:14.2857% var(--sprite-row); } 50%,74.9% { background-position:28.5714% var(--sprite-row); } 75%,100% { background-position:42.8571% var(--sprite-row); } }
@keyframes pisquinho-sprite-five { 0%,19.9% { background-position:0 var(--sprite-row); } 20%,39.9% { background-position:14.2857% var(--sprite-row); } 40%,59.9% { background-position:28.5714% var(--sprite-row); } 60%,79.9% { background-position:42.8571% var(--sprite-row); } 80%,100% { background-position:57.1428% var(--sprite-row); } }
@keyframes pisquinho-sprite-six { 0%,16.5% { background-position:0 var(--sprite-row); } 16.6%,33.2% { background-position:14.2857% var(--sprite-row); } 33.3%,49.9% { background-position:28.5714% var(--sprite-row); } 50%,66.5% { background-position:42.8571% var(--sprite-row); } 66.6%,83.2% { background-position:57.1428% var(--sprite-row); } 83.3%,100% { background-position:71.4285% var(--sprite-row); } }
@keyframes pisquinho-sprite-eight { 0%,12.4% { background-position:0 var(--sprite-row); } 12.5%,24.9% { background-position:14.2857% var(--sprite-row); } 25%,37.4% { background-position:28.5714% var(--sprite-row); } 37.5%,49.9% { background-position:42.8571% var(--sprite-row); } 50%,62.4% { background-position:57.1428% var(--sprite-row); } 62.5%,74.9% { background-position:71.4285% var(--sprite-row); } 75%,87.4% { background-position:85.7142% var(--sprite-row); } 87.5%,100% { background-position:100% var(--sprite-row); } }

.leaderboard-storage-note { min-height:20px; margin:-8px 0 20px; color:var(--aqua); font-size:.78rem; font-weight:700; text-align:center; }
.leaderboard-storage-note.storage-unavailable { color:#ffd98a; }

/* Conta opcional: visitante continua podendo jogar, sem chamar a rede. */
.topbar-actions { display:flex; align-items:center; gap:9px; }
.arcade-account-summary { display:flex; align-items:center; gap:9px; min-width:0; }
/* The ribbon sits above the plaque; align the plaque/digits with the name. */
.arcade-platinum-count { position:relative; display:block; flex:0 0 68px; width:68px; aspect-ratio:345 / 198; transform:translateY(-15%); }
.arcade-platinum-count[hidden] { display:none; }
.arcade-platinum-count:not([hidden]) { background:url('../assets/platinum-count-badge-r1.webp') 54.5% 40% / 148.4% 102.5% no-repeat; }
#account-platinum-count { position:absolute; left:72%; top:65%; transform:translate(-50%,-50%); color:#ffd667; font:900 20px/1 system-ui,-apple-system,'Segoe UI',sans-serif; font-variant-numeric:tabular-nums; text-shadow:0 1px 0 #6d4000,0 2px 3px #001020; }
@media (max-width:600px) {
  .arcade-account-summary { gap:8px; }
  .arcade-account-summary > .arcade-platinum-count { flex-basis:58px; width:58px; }
  #account-platinum-count { font-size:18px; }
}
@media (max-width:360px) {
  .arcade-account-summary > .arcade-platinum-count { flex-basis:52px; width:52px; }
  #account-platinum-count { font-size:16px; }
}
.account-link { min-height:40px; padding:9px 12px; border:1px solid rgba(121,228,215,.34); border-radius:11px; color:#d9fffb; background:rgba(8,37,55,.74); font:inherit; font-size:.76rem; font-weight:900; letter-spacing:.04em; }
.account-link:hover { border-color:var(--aqua); background:rgba(82,220,255,.12); }
.account-link.account-connected { border-color:rgba(121,228,215,.72); color:var(--aqua); }
.language-toggle { min-width:42px; min-height:40px; padding:8px 10px; border:1px solid rgba(121,228,215,.38); border-radius:11px; color:var(--aqua); background:rgba(8,37,55,.58); font:inherit; font-size:.72rem; font-weight:950; letter-spacing:.08em; transition:color var(--arcade-motion),background var(--arcade-motion),border-color var(--arcade-motion),box-shadow var(--arcade-motion),transform var(--arcade-motion); }
.language-toggle:hover,.language-toggle:focus-visible { border-color:var(--aqua); color:#fff; background:rgba(82,220,255,.14); box-shadow:0 0 16px rgba(82,220,255,.13); }
.language-toggle[aria-pressed="true"] { border-color:rgba(121,228,215,.72); background:rgba(44,128,133,.2); }
.online-counter { display:inline-flex; min-height:40px; align-items:center; justify-content:center; gap:6px; padding:8px 10px; border:1px solid rgba(121,228,215,.34); border-radius:11px; color:#d9fffb; background:rgba(8,37,55,.68); font-size:.72rem; font-weight:850; letter-spacing:.03em; white-space:nowrap; box-sizing:border-box; }
.online-counter-dot { width:7px; height:7px; border-radius:50%; background:#8298aa; box-shadow:0 0 0 2px rgba(130,152,170,.12); }
.online-counter.is-live .online-counter-dot { background:#79e4d7; box-shadow:0 0 0 2px rgba(121,228,215,.12),0 0 8px rgba(121,228,215,.32); }
.online-counter.is-unavailable { color:#90aabd; border-color:rgba(116,151,175,.28); }
.online-counter strong { min-width:1ch; color:var(--aqua); font-size:.85rem; font-variant-numeric:tabular-nums; }
.account-panel { position:relative; width:min(calc(100vw - 34px),440px); text-align:left; }
.dialog-close { position:absolute; top:14px; right:14px; display:grid; width:42px; height:42px; place-items:center; padding:0; border:1px solid rgba(82,220,255,.46); border-radius:13px; color:#bff8ff; background:#071a34; box-shadow:0 8px 18px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.07); font:inherit; font-size:1.55rem; font-weight:500; line-height:1; transition:color var(--arcade-motion),background var(--arcade-motion),border-color var(--arcade-motion),box-shadow var(--arcade-motion),transform var(--arcade-motion); }
.dialog-close:hover { border-color:#79e4d7; color:#061c2d; background:#79e4d7; box-shadow:0 10px 22px rgba(0,0,0,.28),0 0 17px rgba(121,228,215,.18); transform:translateY(-1px); }
.dialog-close:active { transform:translateY(1px) scale(.96); }
.dialog-close:focus-visible { outline:3px solid rgba(82,220,255,.82); outline-offset:3px; }
.account-panel h2 { margin:5px 0 10px; }
.account-panel > p:not(.eyebrow):not(.account-message) { margin:0 0 20px; color:#aec7de; line-height:1.55; }
.account-panel .account-privacy-copy { margin:-9px 0 17px; color:#7fa5c4; font-size:.74rem; line-height:1.4; }
.account-privacy-copy a { color:var(--aqua); font-weight:800; }
/* A moldura deixou de existir em 19/09/2026.
   O botão do Google é uma pílula quase preta desenhada dentro de um iframe
   que não aceita CSS nosso. Ele ficava boiando numa caixa azul-marinho de
   54px com 14px de folga — a "caixa dentro de caixa" que o Junior apontou.
   Agora a caixa é só um lugar onde a pílula dele aparece, e quem se ajusta é
   o botão do PiscisAuth, que passa a usar a mesma pílula e o mesmo cinza. */
.google-signin-button { position:relative; display:grid; width:100%; min-height:44px; place-items:center; margin:4px 0 12px; overflow:visible; background:transparent; box-sizing:border-box; }
.google-signin-button[hidden] { display:none; }
.google-signin-button > div { display:flex !important; width:100% !important; min-width:0 !important; max-width:100% !important; justify-content:center; }
/* Pílula de novo: e a forma que o proprio Google desenha, e forcar outra
   coisa so cortava os cantos. */
.google-signin-button iframe { display:block !important; max-width:100% !important; border-radius:999px !important; }
/* O botão personalizado vem num iframe 20px mais largo e 4px mais alto que
   a pílula. No escuro, a área externa do iframe aparece branca no Chrome.
   Recortar só a margem mantém o botão oficial, seu tamanho e o tema claro. */
@media (prefers-color-scheme: dark) {
  .google-signin-button iframe[style*="margin: -2px -10px"] {
    flex-shrink:0; max-width:none !important;
    clip-path:inset(2px 10px round 20px);
  }
  .google-signin-button.is-google-frame-focused:has(iframe[style*="margin: -2px -10px"])::after {
    content:''; position:absolute; top:50%; left:50%;
    width:min(360px, calc(100% - 12px)); height:40px;
    border-radius:999px; outline:2px solid var(--aqua); outline-offset:2px;
    transform:translate(-50%,-50%); pointer-events:none;
  }
}
/* A marca do PiscisAuth, igual à da tela de login dele.

   Google desenha a pílula dele dentro de um iframe e nós não alcançamos lá;
   o que dá é pôr a nossa ao lado, do mesmo tamanho e da mesma forma, com a
   nossa identidade. Daí a pílula clara: "Piscis" é `#10273a` e "Auth" é
   `#0f5f8f`, as duas cores do site — e texto escuro precisa de fundo claro.
   O azul de fundo é o `--azul-topo` de lá. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  /* Variável: um arquivo cobre 400 a 700. Só o alfabeto latin veio, porque a
     única coisa escrita nela é "Piscis Auth". */
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/source-serif-4-400-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.piscis-auth-button { display:grid; grid-template-columns:minmax(0,1fr) 34px; align-items:center; width:100%; min-height:44px; margin:4px 0 12px; padding:2px 6px 2px 16px; overflow:hidden; border:1px solid rgba(16,39,58,.16); border-radius:999px; color:#10273a; background:#cfe2f2; box-shadow:0 1px 2px rgba(0,0,0,.3); font-weight:600; font-size:.875rem; line-height:1.2; cursor:pointer; box-sizing:border-box; }
/* Google renders its login pill at min(360px, host width - 12px).
   Match that visible size for the two PiscisAuth login variants. */
.account-panel > .piscis-auth-button {
  width:min(360px, calc(100% - 12px)); min-height:40px; height:40px;
  margin-inline:auto;
}
/* O nome do produto na fonte do produto. O resto da frase continua na fonte
   do Arcade — é "Entrar com <marca>", como o botão do Google faz. */
.marca-auth { font-family:'Source Serif 4', Georgia, 'Times New Roman', serif; font-weight:600; font-size:1.06em; letter-spacing:-.02em; white-space:nowrap; }
.marca-auth .marca-piscis { color:#10273a; }
.marca-auth .marca-auth-palavra { color:#0f5f8f; }
.piscis-auth-button[hidden] { display:none; }
a.piscis-auth-button { text-decoration:none; }
.piscisauth-vinculo { display:grid; gap:6px; }
.piscisauth-vinculo[hidden] { display:none; }
.piscisauth-vinculo small { color:rgba(224,246,255,.72); font-size:.76rem; line-height:1.35; }
/* Todo filho escondido some de verdade: as classes de botão e de link trazem
   `display` próprio, que vence o do atributo `hidden`. Mesma pedra do
   `.secondary-button[hidden]` acima. */
.piscisauth-vinculo [hidden] { display:none; }
/* Desvincular deixou de ser botão de peso em 19/09/2026: para quem só entra
   pelo PiscisAuth ele nem aparece, e para quem entra pelos dois é uma saída
   rara. O destaque ali é o atalho para a conta. */
.piscisauth-desvincular { justify-self:center; margin:2px 0 0; padding:4px 6px; border:0; color:rgba(224,246,255,.6); background:transparent; font:inherit; font-size:.74rem; text-decoration:underline; cursor:pointer; }
.piscisauth-desvincular:hover { color:#f1fbff; }
.piscis-auth-button span { justify-self:center; }
.piscis-auth-button img { display:block; width:32px !important; max-width:32px !important; height:32px !important; max-height:32px !important; border:0; border-radius:50%; background:transparent; object-fit:contain; }
.piscis-auth-button:hover { border-color:rgba(16,39,58,.34); background:#bcd6ea; }
.piscis-auth-button:focus-visible { outline:3px solid rgba(82,220,255,.82); outline-offset:3px; }
.piscis-signin-form { display:grid; gap:10px; margin:4px 0 12px; }
.piscis-signin-form[hidden] { display:none; }
.piscis-signin-form [hidden] { display:none; }
.piscis-signin-form label { display:grid; gap:6px; color:#9cc2dd; font-size:.7rem; font-weight:800; letter-spacing:.08em; }
.piscis-register-hint { margin:0; color:#c9e6f5; font-size:.84rem; line-height:1.45; }
.piscis-signin-form input { width:100%; min-height:44px; padding:10px 12px; border:1px solid rgba(82,220,255,.35); border-radius:12px; color:#e9fbff; background:#06152d; font:inherit; letter-spacing:normal; box-sizing:border-box; }
.piscis-signin-form input:focus-visible { outline:3px solid rgba(82,220,255,.72); outline-offset:2px; }
.piscis-signin-form .primary-button,.piscis-signin-form .secondary-button { width:100%; }
.account-signed-actions { display:grid; gap:9px; }
.account-signed-actions[hidden] { display:none; }
.account-signed-actions .primary-button,.account-signed-actions .secondary-button { width:100%; }
/* Interruptor dos avisos. Alvo de toque cheio (a linha inteira é o label) e a
   explicação junto, porque "avisos" sozinho não diz o que vai chegar nem que
   existe horário de silêncio. */
.account-notify { display:flex; align-items:flex-start; gap:11px; padding:12px 13px; border:1px solid rgba(255,255,255,.14); border-radius:14px; background:rgba(255,255,255,.04); cursor:pointer; text-align:left; }
.account-notify[hidden] { display:none; }
.account-notify input { width:20px; height:20px; margin:1px 0 0; flex:0 0 auto; accent-color:var(--aqua); cursor:pointer; }
.account-notify input:disabled { cursor:not-allowed; }
.account-notify span { display:grid; gap:3px; min-width:0; }
.account-notify strong { font-size:.82rem; }
.account-notify small { color:rgba(255,255,255,.62); font-size:.7rem; line-height:1.35; }
.account-message { min-height:22px; margin:14px 0 0; color:var(--aqua); font-size:.8rem; font-weight:700; line-height:1.4; }
.account-message.is-error { color:#ff9e9e; }
@media (max-width:620px) { .topbar-actions { gap:6px; }.language-toggle { min-width:38px; padding:7px 8px; font-size:.66rem; }.account-link,.scoreboard-link,.achievement-link { padding:8px 9px; font-size:.68rem; }.online-counter { min-height:38px; padding:7px 8px; font-size:.66rem; }.account-panel { width:min(calc(100vw - 28px),440px); padding:30px 19px 25px; }.dialog-close { top:11px; right:11px; width:40px; height:40px; border-radius:12px; }.google-signin-button { min-height:48px; padding:4px; } }
@media (max-width:460px) { .online-counter { min-width:38px; padding:7px; }.online-counter-label { display:none; } }
@media (max-width:460px) { .achievement-link-label { display:none; }.achievement-link { min-width:38px; padding-inline:8px; } }
@media (max-width:390px) { .topbar { gap:8px; }.brand { gap:8px; }.brand-mark { width:36px; height:36px; }.topbar-actions { gap:4px; }.language-toggle { min-width:34px; min-height:38px; padding:6px; }.account-link,.scoreboard-link,.achievement-link { min-height:38px; padding:7px 8px; font-size:.64rem; }.online-counter { min-height:38px; min-width:34px; padding:6px; } }
@media (max-width:390px) { .topbar { flex-wrap:wrap; align-items:center; }.topbar-actions { width:100%; justify-content:flex-end; } }
.privacy-page { max-width:850px; }
.privacy-panel { display:block; margin-bottom:50px; color:#b8cee1; line-height:1.65; }
.privacy-panel h1 { max-width:620px; margin:6px 0 18px; color:#f5fbff; font-size:clamp(2rem,6vw,3.6rem); line-height:1.02; }
.privacy-panel h2 { margin:27px 0 7px; color:#ddfaff; font-size:1.15rem; }
.privacy-panel p { max-width:690px; }
.privacy-updated { color:var(--aqua); font-size:.82rem; font-weight:700; }

/* Atualização PWA: avisa sem interromper a partida em andamento. */
.update-notice { position:fixed; z-index:30; right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom)); display:flex; align-items:center; gap:14px; width:min(calc(100% - 32px),450px); padding:13px 14px 13px 16px; border:1px solid rgba(82,220,255,.62); border-radius:17px; color:var(--ink); background:rgba(5,21,46,.96); box-shadow:0 18px 46px rgba(0,0,0,.38),0 0 22px rgba(82,220,255,.15); animation:update-notice-in .28s cubic-bezier(.2,.85,.3,1.08); }.update-notice[hidden] { display:none; }.update-notice-copy { display:flex; flex:1; align-items:center; min-width:0; gap:10px; }.update-notice-copy strong,.update-notice-copy small { display:block; }.update-notice-copy strong { color:#eafeff; font-size:.86rem; }.update-notice-copy small { margin-top:3px; color:#a9c9e5; font-size:.72rem; line-height:1.3; }.update-notice-icon { display:grid; flex:0 0 auto; width:34px; height:34px; place-items:center; border-radius:11px; color:#06203e; background:#52dcff; font-size:1.25rem; font-weight:900; }.update-notice .primary-button { flex:0 0 auto; min-height:39px; padding:9px 12px; font-size:.78rem; white-space:nowrap; }.update-notice .primary-button:disabled { opacity:.72; cursor:wait; } @keyframes update-notice-in { from { opacity:0; transform:translateY(14px) scale(.96); } to { opacity:1; transform:none; } } @media (max-width:480px) { .update-notice { align-items:stretch; flex-direction:column; gap:10px; }.update-notice .primary-button { width:100%; }.update-notice-copy { width:100%; } }
.achievement-toast { position:fixed; z-index:31; right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom)); display:flex; align-items:center; gap:11px; width:min(calc(100% - 32px),360px); padding:11px 13px; border:1px solid rgba(255,212,105,.7); border-radius:16px; color:#fff8dc; background:rgba(16,26,43,.97); box-shadow:0 18px 42px rgba(0,0,0,.42),0 0 24px rgba(255,204,83,.15); pointer-events:none; animation:achievement-toast-in .34s cubic-bezier(.2,.86,.28,1.12); }.achievement-toast[hidden] { display:none; }.achievement-toast-icon { display:grid; flex:0 0 auto; width:39px; height:39px; place-items:center; border-radius:12px; background:rgba(133,89,8,.42); font-size:1.35rem; }.achievement-toast-copy { display:grid; min-width:0; gap:2px; }.achievement-toast-copy small { color:#ffd76d; font-size:.61rem; font-weight:950; letter-spacing:.12em; }.achievement-toast-copy strong { overflow:hidden; color:#fff8df; font-size:.88rem; text-overflow:ellipsis; white-space:nowrap; }.achievement-toast-copy em { overflow:hidden; color:#b6c9dc; font-size:.69rem; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }.achievement-toast.is-leaving { animation:achievement-toast-out .22s ease-in forwards; } @keyframes achievement-toast-in { from { opacity:0; transform:translateY(16px) scale(.96); } to { opacity:1; transform:none; } } @keyframes achievement-toast-out { to { opacity:0; transform:translateY(8px) scale(.98); } } @media (max-width:480px) { .achievement-toast { bottom:max(12px,env(safe-area-inset-bottom)); right:12px; width:min(calc(100% - 24px),360px); } }

/* Palco: o eixo do Pisquinho permanece no centro também durante cada pose. */
.pisquinho-dancer { left:50%; width:54%; transform:translateX(-50%); }
@keyframes pisquinho-idle { 0%,100% { transform:translateX(-50%) translateY(0) rotate(0); } 50% { transform:translateX(-50%) translateY(-5px) rotate(1deg); } }
@keyframes pisquinho-up { 50% { transform:translateX(-50%) translateY(-18px) scale(1.04); } }
@keyframes pisquinho-down { 50% { transform:translateX(-50%) translateY(10px) scaleY(.91) scaleX(1.06); } }
@keyframes pisquinho-left { 50% { transform:translateX(calc(-50% - 18px)) rotate(-7deg); } }
@keyframes pisquinho-right { 50% { transform:translateX(calc(-50% + 18px)) rotate(7deg); } }
@keyframes pisquinho-jump { 45% { transform:translateX(-50%) translateY(-42px) rotate(3deg) scale(1.05); } 100% { transform:translateX(-50%) translateY(0); } }
@keyframes pisquinho-miss { 25% { transform:translateX(calc(-50% - 9px)) rotate(-4deg); } 65% { transform:translateX(calc(-50% + 9px)) rotate(4deg); } 100% { transform:translateX(-50%); } }

/* Forca do Pisquinho: pista, palavra e tentativas permanecem no mesmo palco. */
.card-hangman { border-color:rgba(82,220,255,.48); background:linear-gradient(135deg,rgba(82,220,255,.19),rgba(21,79,111,.34) 52%,rgba(7,21,42,.9)); }
.hangman-area { gap:0; border-color:rgba(82,220,255,.4); background:#061a34; }
.hangman-hint { display:grid; justify-items:center; gap:5px; margin:0 0 12px; color:#abc9e7; text-align:center; }
.hangman-hint span,.hangman-wrong span { color:var(--arcade-cyan); font-size:.65rem; font-weight:900; letter-spacing:.15em; }
.hangman-hint strong { max-width:520px; color:#effbff; font-size:clamp(.86rem,2.1vw,1rem); line-height:1.35; }
.hangman-stage { position:relative; width:min(100%,520px); min-height:250px; overflow:hidden; border:1px solid rgba(82,220,255,.56); border-radius:21px; background:#071934; box-shadow:0 20px 42px rgba(0,0,0,.34),inset 0 1px rgba(225,252,255,.08); contain:layout paint; }
.hangman-stage::before { position:absolute; inset:0; opacity:.42; background:linear-gradient(rgba(110,197,255,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(110,197,255,.09) 1px,transparent 1px); background-size:12.5% 16.66%; content:""; pointer-events:none; }
.hangman-gallows span { position:absolute; z-index:1; display:block; border-radius:8px; background:#8c5b31; box-shadow:inset 0 2px rgba(255,222,171,.26),0 3px 7px rgba(0,0,0,.34); }
.gallows-base { bottom:26px; left:9%; width:39%; height:13px; }.gallows-post { bottom:33px; left:16%; width:15px; height:73%; }.gallows-beam { top:15%; left:16%; width:47%; height:14px; }.gallows-rope { top:20%; left:59%; width:6px; height:25%; border-radius:0 0 9px 9px !important; background:#d9b174 !important; }
.hangman-figure { position:absolute; z-index:2; top:39%; left:59%; width:78px; height:122px; transform:translateX(-50%); }
.hangman-part { position:absolute; display:block; opacity:0; background:#55d7f5; box-shadow:0 0 12px rgba(82,220,255,.55); transform:scale(.55); transition:opacity 170ms ease-out,transform 210ms cubic-bezier(.2,.85,.3,1.2),background 170ms ease; }
.hangman-head { top:0; left:25px; width:30px; height:30px; border:2px solid #ddfbff; border-radius:50%; background:#167da6; }.hangman-head::after { position:absolute; top:9px; left:7px; width:12px; height:5px; border-bottom:2px solid #ecffff; border-radius:50%; content:""; }
.hangman-body { top:32px; left:38px; width:5px; height:36px; border-radius:5px; }.hangman-arm { top:43px; width:5px; height:31px; border-radius:5px; transform-origin:top; }.hangman-arm-left { left:28px; transform:rotate(42deg) scale(.55); }.hangman-arm-right { left:49px; transform:rotate(-42deg) scale(.55); }.hangman-leg { top:65px; width:5px; height:34px; border-radius:5px; transform-origin:top; }.hangman-leg-left { left:30px; transform:rotate(34deg) scale(.55); }.hangman-leg-right { left:47px; transform:rotate(-34deg) scale(.55); }
.hangman-figure[data-errors="1"] .hangman-head,.hangman-figure[data-errors="2"] .hangman-head,.hangman-figure[data-errors="3"] .hangman-head,.hangman-figure[data-errors="4"] .hangman-head,.hangman-figure[data-errors="5"] .hangman-head,.hangman-figure[data-errors="6"] .hangman-head,.hangman-figure[data-errors="2"] .hangman-body,.hangman-figure[data-errors="3"] .hangman-body,.hangman-figure[data-errors="4"] .hangman-body,.hangman-figure[data-errors="5"] .hangman-body,.hangman-figure[data-errors="6"] .hangman-body,.hangman-figure[data-errors="3"] .hangman-arm-left,.hangman-figure[data-errors="4"] .hangman-arm-left,.hangman-figure[data-errors="5"] .hangman-arm-left,.hangman-figure[data-errors="6"] .hangman-arm-left,.hangman-figure[data-errors="4"] .hangman-arm-right,.hangman-figure[data-errors="5"] .hangman-arm-right,.hangman-figure[data-errors="6"] .hangman-arm-right,.hangman-figure[data-errors="5"] .hangman-leg-left,.hangman-figure[data-errors="6"] .hangman-leg-left,.hangman-figure[data-errors="6"] .hangman-leg-right { opacity:1; }
.hangman-figure[data-errors="1"] .hangman-head,.hangman-figure[data-errors="2"] .hangman-head,.hangman-figure[data-errors="3"] .hangman-head,.hangman-figure[data-errors="4"] .hangman-head,.hangman-figure[data-errors="5"] .hangman-head,.hangman-figure[data-errors="6"] .hangman-head,.hangman-figure[data-errors="2"] .hangman-body,.hangman-figure[data-errors="3"] .hangman-body,.hangman-figure[data-errors="4"] .hangman-body,.hangman-figure[data-errors="5"] .hangman-body,.hangman-figure[data-errors="6"] .hangman-body { transform:scale(1); }.hangman-figure[data-errors="3"] .hangman-arm-left,.hangman-figure[data-errors="4"] .hangman-arm-left,.hangman-figure[data-errors="5"] .hangman-arm-left,.hangman-figure[data-errors="6"] .hangman-arm-left { transform:rotate(42deg) scale(1); }.hangman-figure[data-errors="4"] .hangman-arm-right,.hangman-figure[data-errors="5"] .hangman-arm-right,.hangman-figure[data-errors="6"] .hangman-arm-right { transform:rotate(-42deg) scale(1); }.hangman-figure[data-errors="5"] .hangman-leg-left,.hangman-figure[data-errors="6"] .hangman-leg-left { transform:rotate(34deg) scale(1); }.hangman-figure[data-errors="6"] .hangman-leg-right { transform:rotate(-34deg) scale(1); }.hangman-figure.hangman-lost .hangman-part { background:#f36c76; box-shadow:0 0 14px rgba(243,108,118,.6); }
.hangman-word { position:absolute; z-index:3; right:12px; bottom:17px; left:12px; display:flex; flex-wrap:wrap; justify-content:center; gap:clamp(5px,1.6vw,11px); }
.hangman-letter { display:grid; width:clamp(25px,6.5vw,39px); height:clamp(34px,8vw,47px); place-items:center; border-bottom:3px solid rgba(181,230,248,.78); color:#eaffff; font-size:clamp(1rem,4vw,1.45rem); font-weight:900; text-shadow:0 0 12px rgba(82,220,255,.5); }.hangman-letter.revealed { animation:hangman-letter-in 210ms cubic-bezier(.2,.85,.3,1.22); }
.hangman-wrong { display:grid; justify-items:center; gap:5px; width:min(100%,520px); min-height:49px; margin:12px 0 9px; padding:9px; border:1px solid rgba(243,108,118,.28); border-radius:12px; background:rgba(89,21,42,.27); text-align:center; }.hangman-wrong strong { color:#ffb3ba; font-size:.87rem; letter-spacing:.14em; }
.hangman-keyboard { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:7px; width:min(100%,520px); }.hangman-key { min-height:39px; padding:5px; border:1px solid rgba(82,220,255,.32); border-radius:9px; color:#effdff; background:#0b2850; font:inherit; font-size:.82rem; font-weight:900; transition:transform var(--arcade-motion),background var(--arcade-motion),border-color var(--arcade-motion),opacity var(--arcade-motion); }.hangman-key:hover:not(:disabled) { border-color:#b5efff; background:#155a83; transform:translateY(-2px); }.hangman-key:active:not(:disabled) { transform:translateY(1px) scale(.96); }.hangman-key.right { border-color:#80e6cf; color:#dfffee; background:#1b705f; }.hangman-key.wrong { border-color:#ed7d87; color:#ffdce0; background:#812b43; }.hangman-key:disabled { cursor:default; opacity:.54; }
@keyframes hangman-letter-in { from { opacity:0; transform:translateY(8px) scale(.5); } to { opacity:1; transform:none; } }
@media (max-width:500px) { .hangman-stage { min-height:220px; border-radius:17px; }.hangman-keyboard { gap:5px; }.hangman-key { min-height:35px; border-radius:8px; font-size:.74rem; }.gallows-base { bottom:20px; }.gallows-post { bottom:27px; }.hangman-word { bottom:12px; } }

/* Arcade em tela inteira: cada jogo usa a altura visível, sem rolagem da página. */
.fish-board { touch-action:none; }
body.game-screen-active { height:100dvh; overflow:hidden; }
body.game-screen-active .app-shell { display:flex; flex-direction:column; min-height:100dvh; height:100dvh; padding-block:clamp(10px,2vh,22px); overflow:hidden; }
body.game-screen-active .topbar { flex:0 0 auto; margin-bottom:clamp(8px,1.8vh,18px); padding-bottom:clamp(7px,1vh,12px); }
body.game-screen-active .screen.active { display:flex; flex:1 1 auto; flex-direction:column; min-height:0; overflow:hidden;animation:none;transform:none; }
body.game-screen-active .game-header { flex:0 0 auto; margin-bottom:clamp(8px,1.6vh,18px); }
body.game-screen-active .game-header h1 { font-size:clamp(1.7rem,4.5vh,3.15rem); }
body.game-screen-active .back-link { margin-bottom:clamp(4px,.7vh,9px); }
body.game-screen-active .play-area { flex:1 1 auto; min-height:0; padding:clamp(9px,1.8vh,20px); overflow:hidden; justify-content:center; }
body.game-screen-active footer { display:none; }
body.game-screen-active .instruction { margin:0 0 clamp(7px,1.3vh,13px); }
/* 2048 usa a área inteira: setas e reinício ficam na interação natural
   (teclado, swipe e diálogo de fim), deixando a grade ser o único foco. */
.blocks-area { justify-content:center; padding:clamp(10px,2.2vh,26px); }
.blocks-area .board-2048 { width:min(100%,620px); }
body.game-screen-active .blocks-area .board-2048 { width:min(100%,620px,72dvh); }
body.game-screen-active .memory-board { width:min(100%,420px,43dvh); }
body.game-screen-active .bubble-surface { width:min(100%,440px,49dvh); }
body.game-screen-active .eel-board { width:min(100%,480px,45dvh); }
body.game-screen-active .fish-board { width:min(100%,540px,44dvh); }
body.game-screen-active .block-fit-board { width:min(100%,400px,38dvh); }
body.game-screen-active .dance-stage { width:min(100%,520px,46dvh); }
body.game-screen-active .hangman-stage { width:min(100%,520px,34dvh); min-height:0; aspect-ratio:2.05; }
body.game-screen-active .hangman-keyboard { width:min(100%,520px); }
body.game-screen-active .hangman-hint { margin-bottom:clamp(6px,1vh,10px); }
body.game-screen-active .hangman-wrong { min-height:0; margin:clamp(6px,1vh,9px) 0; padding:6px; }
body.game-screen-active .dpad { margin:clamp(9px,1.6vh,16px) 0 clamp(7px,1.2vh,12px); }
body.game-screen-active .block-fit-pieces { margin-top:clamp(8px,1.4vh,14px); }
body.game-screen-active .fish-intro { margin-bottom:clamp(7px,1.4vh,13px); }
body.game-screen-active .difficulty-picker,.dance-difficulty { margin-bottom:clamp(7px,1.4vh,13px); }
body.game-screen-active .fish-toolbox { margin-bottom:clamp(7px,1.2vh,12px); }
body.game-screen-active .fish-tools { margin-bottom:clamp(5px,1vh,9px); }
body.game-screen-active .game-message { min-height:22px; margin:clamp(6px,1vh,10px) 0; }
body.game-screen-active .dance-rhythms { margin:0 0 clamp(7px,1.4vh,13px); }
body.game-screen-active .dance-controls { margin-top:clamp(8px,1.4vh,13px); }
/* iPhone/Safari: a barra de endereço e o recorte do aparelho não podem
   reduzir a área interativa nem encobrir o cabeçalho dos jogos. */
@supports (-webkit-touch-callout:none) {
  html { min-height:-webkit-fill-available; }
  body { min-height:-webkit-fill-available; }
  body.game-screen-active { height:100svh; height:100dvh; }
  body.game-screen-active .app-shell { min-height:100svh; min-height:100dvh; height:100svh; height:100dvh; padding-top:max(clamp(10px,2vh,22px),env(safe-area-inset-top)); padding-bottom:max(clamp(10px,2vh,22px),env(safe-area-inset-bottom)); }
  .topbar { padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right); }
}
@media (max-height:720px) { body.game-screen-active .fish-intro,body.game-screen-active .instruction { display:none; } body.game-screen-active .play-area { padding-block:8px; } body.game-screen-active .fish-board { width:min(100%,540px,48dvh); } body.game-screen-active .dance-stage { width:min(100%,520px,50dvh); } body.game-screen-active .hangman-stage { width:min(100%,520px,31dvh); } body.game-screen-active .hangman-key { min-height:32px; } }
@media (max-height:570px) { body.game-screen-active .topbar { margin-bottom:5px; } body.game-screen-active .brand-mark { width:27px; height:27px; } body.game-screen-active .game-header h1 { font-size:1.55rem; } body.game-screen-active .score-box,body.game-screen-active .level-box { padding:6px 8px; } body.game-screen-active .fish-tool,body.game-screen-active .difficulty-button,body.game-screen-active .dance-rhythm,body.game-screen-active .dance-sound-toggle { padding:5px 7px; } }

/* Peça arrastada: a forma mantém a escala real da grade durante o encaixe. */
.block-fit-piece { touch-action:none; }
.block-fit-shape { grid-template-columns:repeat(var(--block-shape-columns,4),var(--block-shape-cell-size,15px)); grid-template-rows:repeat(var(--block-shape-rows,4),var(--block-shape-cell-size,15px)); column-gap:var(--block-shape-gap-x,2px); row-gap:var(--block-shape-gap-y,2px); }
.block-fit-drag-ghost { z-index:40; opacity:.96; transform:translate(-50%,-50%); will-change:left,top; }
.block-fit-drag-ghost .block-fit-shape span.used { border:1px solid rgba(241,254,255,.8); border-radius:calc(var(--block-shape-cell-size,15px) * .14); box-shadow:inset 0 2px rgba(255,255,255,.48),0 0 12px color-mix(in srgb,var(--piece-color) 65%,transparent); }
@media (pointer:coarse) { .block-fit-piece { min-height:100px; padding:9px 6px; }.block-fit-piece-label { font-size:.58rem; }.block-fit-cell { min-height:0; }.block-fit-drag-ghost { filter:drop-shadow(0 16px 16px rgba(0,0,0,.52)); } }
@media (max-width:620px) {
  body.game-screen-active #block-fit-game .game-header h1 { font-size:clamp(1.35rem,6.2vw,1.65rem); white-space:nowrap; }
  body.game-screen-active #block-fit-game .instruction { display:none; }
  body.game-screen-active #block-fit-game .block-fit-area { padding-block:8px; }
}

/* Forca: dificuldade e palavras legíveis, sem quebrar uma única resposta. */
.hangman-difficulty { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:7px; width:min(100%,520px); margin:0 0 12px; }.hangman-difficulty>span { margin-right:3px; color:var(--arcade-cyan); font-size:.67rem; font-weight:900; letter-spacing:.14em; }.hangman-difficulty-button { min-height:34px; padding:6px 10px; border:1px solid rgba(82,220,255,.28); border-radius:9px; color:#b9d5ed; background:#0a2244; font:inherit; font-size:.72rem; font-weight:900; }.hangman-difficulty-button.active { border-color:#ffe18b; color:#322405; background:#ffe18b; box-shadow:0 0 13px rgba(255,209,91,.2); }
.hangman-stage { margin-bottom:0; }.hangman-word { flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; padding:0 4px 3px; scrollbar-width:thin; }.hangman-word.has-space { flex-wrap:wrap; overflow-x:visible; justify-content:center; }.hangman-word-group { display:flex; flex:0 0 auto; gap:clamp(5px,1.6vw,11px); white-space:nowrap; }.hangman-letter { flex:0 0 auto; }.hangman-wrong { border-color:rgba(243,108,118,.42); background:#1d1630; }.hangman-keyboard { padding:9px; border:1px solid rgba(82,220,255,.25); border-radius:15px; background:#06152d; box-shadow:inset 0 1px rgba(213,247,255,.06); }

/* Forca do Pisquinho: oficina náutica independente do visual geral do Arcade. */
#hangman-game .game-header { position:relative; }
#hangman-game .game-header h1 { color:#fff2dc; text-shadow:0 3px 0 #42261d,0 0 22px rgba(255,160,92,.2); }
#hangman-game .hangman-area { display:grid; justify-items:center; align-content:start; gap:clamp(10px,1.8vh,18px); max-width:860px; border-color:rgba(230,159,89,.44); background:radial-gradient(circle at 12% 4%,rgba(199,119,53,.24),transparent 34%),linear-gradient(135deg,#172132,#0b1221 58%,#1c141c); box-shadow:inset 0 1px rgba(255,237,209,.12),0 24px 58px rgba(0,0,0,.38); }
#hangman-game .hangman-difficulty { position:relative; z-index:1; width:min(100%,760px); margin:0 auto; padding:8px 11px; border:1px solid rgba(238,181,115,.3); border-radius:15px; background:rgba(24,27,36,.7); box-shadow:inset 0 1px rgba(255,233,201,.08); }
#hangman-game .hangman-difficulty>span { color:#f8c57f; }
#hangman-game .hangman-difficulty-button { border-color:rgba(238,181,115,.25); color:#e9d5bc; background:#22263a; transition:transform var(--arcade-motion),background var(--arcade-motion),border-color var(--arcade-motion),box-shadow var(--arcade-motion); }
#hangman-game .hangman-difficulty-button:hover { transform:translateY(-1px); border-color:#f3c47c; background:#463126; }
#hangman-game .hangman-difficulty-button.active { border-color:#ffc56c; color:#271405; background:linear-gradient(135deg,#ffe1a7,#e9a34b); box-shadow:0 6px 15px rgba(217,128,50,.24); }
#hangman-game .hangman-layout { display:grid; grid-template-columns:minmax(0,760px); justify-content:center; align-items:stretch; width:min(100%,760px); margin:auto; }
#hangman-game .hangman-visual { display:grid; grid-template-rows:1fr auto; min-width:0; }
#hangman-game .hangman-stage { position:relative; width:100%; min-height:390px; overflow:hidden; border:1px solid rgba(239,180,106,.56); border-radius:25px; background:radial-gradient(circle at 68% 30%,rgba(246,184,103,.16),transparent 32%),linear-gradient(150deg,#243042,#0d1625 68%); box-shadow:inset 0 1px rgba(255,231,199,.16),inset 0 -28px 48px rgba(0,0,0,.3),0 20px 36px rgba(0,0,0,.28); isolation:isolate; }
#hangman-game .hangman-stage::before { position:absolute; z-index:-1; inset:0; opacity:.5; background:repeating-linear-gradient(108deg,transparent 0 22px,rgba(255,223,177,.035) 23px 24px),radial-gradient(circle at 18% 76%,rgba(97,192,207,.14) 0 2px,transparent 3px); background-size:auto,43px 43px; content:""; }
#hangman-game .hangman-gallows-art { position:absolute; z-index:1; bottom:-2%; left:-9%; width:91%; height:106%; object-fit:contain; object-position:left bottom; filter:drop-shadow(0 12px 12px rgba(0,0,0,.4)); pointer-events:none; user-select:none; }
#hangman-game .hangman-figure { position:absolute; z-index:2; top:16%; right:8%; width:auto; height:auto; transform:none; }
#hangman-game .hangman-risk-badge { position:static; display:grid; width:48px; height:48px; place-content:center; border:1px solid rgba(255,223,172,.42); border-radius:50%; color:#ffdaa1; background:rgba(15,18,28,.72); box-shadow:0 5px 15px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.14); text-align:center; }
#hangman-game .hangman-risk-badge b { font-size:1.1rem; line-height:1; }.hangman-risk-badge small { margin-top:2px; font-size:.47rem; font-weight:900; letter-spacing:.08em; }
#hangman-game .hangman-visual-caption { margin:9px 5px 0; color:#d5b895; font-size:.76rem; line-height:1.25; text-align:center; }
#hangman-game .hangman-play { display:grid; grid-template-rows:auto auto auto 1fr auto; align-content:start; width:100%; min-width:0; padding:clamp(12px,2.1vw,21px); border:1px solid rgba(238,181,115,.3); border-radius:24px; background:linear-gradient(155deg,rgba(38,32,38,.93),rgba(16,22,35,.94)); box-shadow:inset 0 1px rgba(255,239,215,.1),0 16px 31px rgba(0,0,0,.2); }
#hangman-game .hangman-hint { justify-items:start; gap:4px; margin:0 0 12px; padding-left:12px; border-left:3px solid #f2ae5c; text-align:left; }
#hangman-game .hangman-hint span { color:#ffc979; }.hangman-hint strong { max-width:100%; color:#fff1db; font-size:clamp(.92rem,1.8vw,1.1rem); }.hangman-hint small { color:#c6a98e; font-size:.72rem; font-weight:800; }
#hangman-game .hangman-word-card { display:grid; gap:10px; min-height:114px; padding:13px 14px 11px; border:1px solid rgba(255,203,134,.3); border-radius:17px; background:linear-gradient(135deg,rgba(97,56,38,.36),rgba(32,33,46,.78)); box-shadow:inset 0 1px rgba(255,240,218,.12); }
#hangman-game .hangman-word-card>span { color:#efc086; font-size:.62rem; font-weight:950; letter-spacing:.15em; }
#hangman-game .hangman-word { position:static; align-self:end; min-width:0; padding:0 1px 4px; gap:clamp(5px,1.1vw,11px); }
#hangman-game .hangman-letter { border-color:#f1c586; color:#fff7e8; text-shadow:0 0 12px rgba(255,193,110,.36); }
#hangman-game .hangman-wrong { justify-items:start; min-height:0; margin:11px 0; padding:9px 12px; border-color:rgba(241,105,101,.38); border-radius:13px; background:rgba(98,31,40,.26); text-align:left; }.hangman-wrong span { color:#ffb1a0; }.hangman-wrong strong { color:#ffe1dc; }
#hangman-game .hangman-keyboard { width:100%; padding:10px; border-color:rgba(238,181,115,.23); border-radius:15px; background:rgba(10,15,27,.66); }.hangman-key { border-color:rgba(245,196,123,.28); color:#f9e7cc; background:#293044; }.hangman-key:hover:not(:disabled) { border-color:#ffcf87; background:#514037; }.hangman-key.right { border-color:#a6e2bd; color:#e8fff0; background:#27624f; }.hangman-key.wrong { border-color:#ef8581; color:#ffe3e0; background:#6d3140; }
#hangman-game .hangman-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; }.hangman-footer .game-message { min-height:0; margin:0; color:#d6c1a9; font-size:.76rem; text-align:left; }.hangman-footer .secondary-button { flex:0 0 auto; border-color:rgba(242,180,102,.48); color:#ffe3af; background:rgba(83,54,41,.54); }
@media (max-width:720px) { #hangman-game .hangman-layout { grid-template-columns:1fr; gap:12px; } #hangman-game .hangman-visual { grid-template-rows:auto auto; } #hangman-game .hangman-stage { min-height:250px; max-height:310px; } #hangman-game .hangman-gallows-art { left:3%; width:68%; height:110%; } #hangman-game .hangman-figure { top:11%; right:10%; } #hangman-game .hangman-play { border-radius:19px; } body.game-screen-active #hangman-game .hangman-area { overflow-y:auto; justify-content:start; } body.game-screen-active #hangman-game .hangman-stage { width:100%; height:clamp(220px,31dvh,300px); min-height:220px; aspect-ratio:auto; } }
@media (max-width:430px) { #hangman-game .hangman-area { padding:9px; } #hangman-game .hangman-difficulty { gap:5px; padding:6px; } #hangman-game .hangman-difficulty-button { min-height:31px; padding:5px 7px; font-size:.67rem; } #hangman-game .hangman-play { padding:11px; } #hangman-game .hangman-word-card { min-height:98px; padding:10px; } #hangman-game .hangman-keyboard { gap:5px; padding:7px; } #hangman-game .hangman-key { min-height:33px; } #hangman-game .hangman-footer { align-items:stretch; flex-direction:column; } #hangman-game .hangman-footer .secondary-button { width:100%; } }

.card-stop { border-color:rgba(239,120,255,.48); background:linear-gradient(135deg,rgba(82,220,255,.2),rgba(124,37,185,.26) 52%,rgba(7,21,42,.9)); }.text-button { padding:8px 10px; border:0; color:#a7c8e8; background:transparent; font:inherit; font-size:.78rem; font-weight:800; text-decoration:underline; text-underline-offset:3px; }
@media (max-width:520px) {.hangman-difficulty>span { width:100%; text-align:center; }.hangman-difficulty-button { flex:1; padding-inline:7px; } }

/* Tema claro de Pares da Lagoa. */
.card-memory { border-color:#a9cbd8; background:#eff8fa; box-shadow:0 18px 38px rgba(31,75,92,.13),inset 0 1px rgba(255,255,255,.95); }
.card-memory h2,.card-memory p:not(.eyebrow) { color:#24495b; }.card-memory .eyebrow { color:#3d8294; }.card-memory .game-card-icon { border-color:#acd2dc; background:#dff1f3; }
#memory-game .play-area { border-color:#b6d7dc; background:#f1faf9; box-shadow:0 18px 42px rgba(43,96,105,.15),inset 0 1px rgba(255,255,255,.95); }
#memory-game .instruction,#memory-game .game-message { color:#487081; }.memory-board { padding:10px; border:1px solid #b8d9d8; border-radius:19px; background:#dceeed; box-shadow:inset 0 1px rgba(255,255,255,.86),0 10px 25px rgba(47,97,103,.11); }
.memory-card { border-color:#b9d7d7; color:#416878; background:#fffefa; box-shadow:0 4px 9px rgba(48,91,96,.1); }.memory-card.revealed { color:#264e60; background:#cfeceb; }.memory-card.matched { color:#245f58; background:#bce2cf; }.memory-card:hover:not(:disabled) { border-color:#67aeb1; box-shadow:0 10px 18px rgba(46,100,105,.16); }

.card-stop { border-color:#b6ccea; background:#f3f7ff; box-shadow:0 18px 38px rgba(45,72,125,.14),inset 0 1px rgba(255,255,255,.96); }.card-stop h2,.card-stop p:not(.eyebrow) { color:#283f69; }.card-stop .eyebrow { color:#617fb4; }.card-stop .game-card-icon { border-color:#c1d3ef; background:#e7effd; }

.text-button { color:#526f9f; }

/* Hub: todos os jogos compartilham a mesma moldura; somente arte e conteúdo mudam. */
#home .game-card { border-color:rgba(91,157,255,.34); background:#07152a; box-shadow:0 18px 38px rgba(0,0,0,.25),inset 0 1px rgba(155,211,255,.07); }
#home .game-card h2 { color:#edf8ff; }
#home .game-card p:not(.eyebrow) { color:#a9bed0; }
#home .game-card .eyebrow { color:#75e3dc; }
#home .game-card .game-card-art { border-color:rgba(190,227,255,.62); background:#eff8ff; }

/* Enquadramento: hub com conteúdo inteiro e Cardume compacto em telas verticais. */
.game-cards { grid-auto-rows:268px; gap:12px; }
#home .game-card { padding:18px; border-radius:20px; }
#home .game-card-art { width:62px; height:62px; margin-bottom:10px; border-radius:17px; }
#home .game-card .eyebrow { margin-bottom:3px; font-size:.66rem; }
#home .game-card h2 { min-height:33px; margin:3px 0; font-size:1.42rem; line-height:1.08; }
#home .game-card p:not(.eyebrow) { min-height:37px; margin:0 0 11px; font-size:.86rem; line-height:1.34; }
#home .game-card .primary-button { min-height:42px; min-width:132px; padding:9px 13px; font-size:.82rem; }
@media (max-width:620px) { .game-cards { grid-auto-rows:184px; gap:10px; }.game-card,#home .game-card { grid-template-columns:60px minmax(0,1fr); column-gap:11px; height:184px; min-height:184px; padding:13px; border-radius:17px; }.game-card-art,#home .game-card-art { width:60px; height:60px; margin:0; border-radius:15px; }.game-card .eyebrow,#home .game-card .eyebrow { margin:0 0 2px; font-size:.56rem; line-height:1.15; }.game-card h2,#home .game-card h2 { min-height:0; margin:0 0 3px; font-size:1.22rem; line-height:1.03; }.game-card p:not(.eyebrow),#home .game-card p:not(.eyebrow) { min-height:0; margin:0 0 7px; font-size:.78rem; line-height:1.28; }.game-card .primary-button,#home .game-card .primary-button { min-height:42px; min-width:122px; padding:7px 11px; font-size:.77rem; } .language-toggle,.achievement-link { min-width:42px; min-height:42px; } }
@media (max-width:350px) { .game-card,#home .game-card { grid-template-columns:54px minmax(0,1fr); column-gap:9px; padding:11px; }.game-card-art,#home .game-card-art { width:54px; height:54px; }.game-card h2,#home .game-card h2 { font-size:1.12rem; }.game-card p:not(.eyebrow),#home .game-card p:not(.eyebrow) { font-size:.74rem; }.game-card .primary-button,#home .game-card .primary-button { min-width:112px; font-size:.73rem; } }

/* Home móvel: a barra sempre cabe na largura útil, inclusive nos iPhones com
   ilha dinâmica. Os atalhos mantêm o mesmo destino, mas usam ícones curtos
   para não criar uma área rolável lateralmente. */
html,body { max-width:100%; overflow-x:hidden; }
@media (max-width:520px) {
  .app-shell { width:100%; max-width:100%; padding-left:max(12px,env(safe-area-inset-left)); padding-right:max(12px,env(safe-area-inset-right)); }
  .topbar { width:100%; min-width:0; gap:8px; }
  .brand { flex:1 1 auto; min-width:0; gap:7px; font-size:clamp(.9rem,4vw,1.05rem); white-space:nowrap; }
  .brand-mark { width:34px; height:34px; border-radius:10px; }
  /* O "Arcade" volta a aparecer no celular.
     Ele era escondido aqui porque a barra vivia sem espaço — mas a falta de
     espaço vinha do `width:100%` em `.topbar-actions` (no `arcade-menu.css`),
     não do tamanho do texto. Com aquilo corrigido sobram 306px para a marca em
     511px de tela, e o conteúdo inteiro ocupa 146px. Abaixo de 390px a barra
     quebra em duas linhas e a marca ganha a linha inteira, então também cabe. */
  .topbar-actions { flex:0 0 auto; flex-wrap:nowrap; gap:4px; min-width:0; }
  /* A marca nunca encolhe: ela é o único elemento do topo que identifica o
     produto, e `.brand` tem `flex:1 1 auto`, então sem isto o quadrado do
     ícone é o primeiro a ser sacrificado quando falta espaço. */
  .brand-mark { flex:0 0 auto; }
  /* Os chips do topo ficam só com o ícone.
     ATENÇÃO: a linha abaixo mira `.account-link`, `.online-counter`,
     `.achievement-link` e `.scoreboard-link`, que **não existem mais na
     marcação** — a barra passou a usar `.arcade-account-chip`,
     `.arcade-presence-chip` e `.arcade-menu-trigger` e estas regras ficaram
     órfãs. Enquanto isso passou despercebido, os chips mantinham o tamanho de
     desktop no celular, o bloco de ações tomava a barra inteira e a marca era
     espremida a zero: aparecia uma barrinha de 2px no lugar do ícone. Só
     `.language-toggle` continua viva, e em `privacy.html`, que usa esta mesma
     folha — por isso a regra antiga fica, em vez de ser apagada. */
  .language-toggle,.account-link,.achievement-link,.scoreboard-link,.online-counter { display:inline-grid; width:38px; min-width:38px; height:38px; min-height:38px; place-items:center; padding:0; border-radius:11px; }
  /* O que vale de verdade hoje: esconder só o rótulo de texto, mantendo o
     ícone e o número de jogadores, que é a informação. */
  #account-button-label { display:none; }
  .arcade-presence-text > span { display:none; }
  .account-link,.achievement-link,.scoreboard-link { font-size:0; }
  .account-link::after { color:#d9fffb; content:'◉'; font-size:.9rem; }
  .achievement-link::after { content:'🏆'; font-size:1rem; }
  .scoreboard-link::after { color:#8df0e6; content:'⌁'; font-size:1.18rem; font-weight:950; }
  .online-counter { gap:3px; font-size:.66rem; }
  .online-counter-dot { width:7px; height:7px; }
  .online-counter strong { font-size:.78rem; }
  .online-counter-label { display:none; }
}

/* v73: o aviso de atualização também respeita o enquadramento compacto móvel. */
@media (max-width:620px) {
  .update-notice {
    right:max(10px,env(safe-area-inset-right));
    bottom:max(10px,env(safe-area-inset-bottom));
    display:grid;
    width:min(calc(100% - 20px),420px);
    gap:8px;
    padding:10px;
    border-radius:15px;
  }
  .update-notice-copy {
    display:grid;
    grid-template-columns:30px minmax(0,1fr);
    width:100%;
    gap:8px;
  }
  .update-notice-copy > span:last-child { min-width:0; width:auto; }
  .update-notice-icon { width:30px; height:30px; border-radius:9px; font-size:1rem; }
  .update-notice-copy strong { font-size:.8rem; line-height:1.15; }
  .update-notice-copy small { margin-top:2px; font-size:.67rem; line-height:1.2; }
  .update-notice .primary-button { width:100%; min-height:35px; padding:7px 10px; font-size:.75rem; }
}

/* v74: campanha contínua e controles unificados do Cardume Lógico. */
#fish-game .fish-intro { margin-bottom:12px; }
.fish-campaign-summary { display:grid; width:min(100%,540px); gap:6px; margin:0 0 11px; }
.fish-campaign-summary>span { color:#b8d8e8; font-size:.68rem; font-weight:900; letter-spacing:.1em; text-align:center; text-transform:uppercase; }
.fish-campaign-progress { position:relative; width:100%; height:7px; overflow:hidden; border:1px solid rgba(121,228,215,.28); border-radius:999px; background:rgba(3,22,35,.72); box-shadow:inset 0 1px 4px rgba(0,0,0,.24); }
.fish-campaign-progress span { display:block; width:2%; height:100%; border-radius:inherit; background:#79e4d7; box-shadow:0 0 12px rgba(121,228,215,.45); transition:width .32s ease; }
.fish-gesture-guide { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:min(100%,540px); margin:0 0 12px; }
.fish-gesture-guide>span { display:flex; min-width:0; min-height:38px; align-items:center; justify-content:center; gap:8px; padding:7px 10px; border:1px solid rgba(121,228,215,.2); border-radius:12px; color:#c7deea; background:rgba(6,29,43,.58); }
.fish-gesture-guide b { display:grid; width:23px; height:23px; flex:0 0 23px; place-items:center; color:#f7e2b6; font-size:1rem; }
.fish-gesture-guide em { overflow:hidden; font-size:.72rem; font-style:normal; font-weight:850; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
.fish-gesture-x { position:relative; }
.fish-gesture-x::before,.fish-gesture-x::after { position:absolute; top:9px; left:3px; width:17px; height:4px; border:1px solid rgba(7,36,47,.52); border-radius:99px; background:#f7e2b6; box-shadow:inset 0 1px 0 rgba(255,255,255,.7); content:''; }
.fish-gesture-x::before { transform:rotate(45deg); }
.fish-gesture-x::after { transform:rotate(-45deg); }
@media (max-width:420px) {
  .fish-gesture-guide { gap:6px; }
  .fish-gesture-guide>span { gap:5px; padding:6px; }
  .fish-gesture-guide em { font-size:.65rem; }
  .fish-campaign-summary>span { font-size:.61rem; }
}
@media (max-width:620px) { body.game-screen-active #fish-game .fish-intro,body.game-screen-active #fish-game #fish-message { display:none; } body.game-screen-active #fish-game .play-area { justify-content:flex-start; gap:0; padding:9px 10px; } body.game-screen-active #fish-game .difficulty-picker { gap:4px; margin-bottom:5px; } body.game-screen-active #fish-game .picker-label { display:none; } body.game-screen-active #fish-game .difficulty-button { padding:6px 8px; font-size:.73rem; } body.game-screen-active #fish-game .fish-tools { width:100%; margin:4px 0; font-size:.8rem; } body.game-screen-active #fish-game .fish-toolbox { width:100%; flex-wrap:nowrap; gap:6px; margin:0 0 7px; } body.game-screen-active #fish-game .fish-tool { flex:1; min-width:0; padding:7px 5px; font-size:.71rem; white-space:nowrap; } body.game-screen-active #fish-game .fish-board { width:min(100%,540px,36dvh); } body.game-screen-active #fish-game #new-fish-game { min-height:40px; margin-top:7px; padding-block:8px; } }

/* Desktop: os tabuleiros crescem com a área útil, sem herdar o limite de celular. */
@media (min-width:700px) and (min-height:700px) { body.game-screen-active #fish-game .fish-area { max-width:760px; } body.game-screen-active #fish-game .fish-board { width:min(100%,540px,52dvh); } }

/* Dashboard fliperama: cada capa agora é uma tela de gabinete.  A imagem é
   uma prévia leve já existente no Arcade; não criamos iframes no hub porque
   isso faria 17 jogos executarem ao mesmo tempo antes da escolha da pessoa. */
#home {
  position:relative;
  padding-bottom:10px;
}
#home::before {
  position:absolute;
  z-index:-1;
  top:-74px;
  right:-85px;
  width:370px;
  height:370px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(121,228,215,.17),rgba(35,120,255,.07) 44%,transparent 70%);
  content:'';
  filter:blur(2px);
  pointer-events:none;
}
.dashboard-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  max-width:760px;
  margin-bottom:16px;
}
#home .dashboard-hero .hero-copy {
  max-width:570px;
  margin-bottom:20px;
}
.arcade-dashboard-status {
  display:flex;
  width:fit-content;
  max-width:100%;
  align-items:center;
  gap:9px;
  margin:0 0 27px;
  padding:9px 13px;
  border:1px solid rgba(101,208,255,.24);
  border-radius:999px;
  color:#a9bed0;
  background:rgba(4,16,35,.74);
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 12px 26px rgba(0,0,0,.18);
  font-size:.76rem;
  line-height:1.25;
}
.arcade-dashboard-status strong { color:#effaff; font-size:.77rem; letter-spacing:.045em; }
.arcade-status-light {
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:#68f0c4;
  box-shadow:0 0 0 3px rgba(104,240,196,.12),0 0 12px rgba(104,240,196,.9);
  animation:arcade-status-pulse 1.8s ease-in-out infinite;
}
@keyframes arcade-status-pulse { 50% { opacity:.55; transform:scale(.78); } }

/* A grelha é o painel do fliperama. A estrutura HTML e os botões originais
   permanecem: só o enquadramento visual dos jogos muda. */
#home .game-cards {
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-rows:auto;
  gap:18px;
  align-items:stretch;
}
#home .game-card {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto auto 1fr auto;
  min-height:0;
  height:auto;
  padding:12px 12px 16px;
  overflow:hidden;
  border:1px solid rgba(109,184,255,.34);
  border-radius:18px 18px 23px 23px;
  background:linear-gradient(145deg,rgba(17,34,63,.98),rgba(5,13,30,.98));
  box-shadow:inset 0 1px rgba(227,246,255,.09),0 18px 38px rgba(0,0,0,.3);
}
#home .game-card::before {
  position:absolute;
  z-index:0;
  right:-20%;
  bottom:-50px;
  width:64%;
  height:100px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(82,220,255,.16),transparent 68%);
  content:'';
  pointer-events:none;
}
#home .game-card::after {
  position:absolute;
  z-index:0;
  right:9%;
  bottom:0;
  left:9%;
  height:7px;
  border-radius:9px 9px 0 0;
  background:linear-gradient(90deg,rgba(82,220,255,.18),rgba(255,255,255,.78),rgba(173,124,255,.24));
  box-shadow:0 -2px 13px rgba(82,220,255,.42);
  content:'';
}
#home .game-card > * { position:relative; z-index:1; }
#home .game-card .game-card-art {
  position:relative;
  width:100%;
  height:clamp(150px,17vw,198px);
  margin:0 0 13px;
  overflow:hidden;
  border:8px solid #050910;
  border-radius:12px;
  background:#02050b;
  box-shadow:inset 0 0 0 1px rgba(196,231,255,.26),inset 0 0 26px rgba(0,0,0,.66),0 6px 0 #152640,0 16px 22px rgba(0,0,0,.28),0 0 17px rgba(82,220,255,.11);
}
#home .game-card .game-card-art::before {
  position:absolute;
  z-index:2;
  inset:0;
  background:linear-gradient(118deg,rgba(255,255,255,.1),transparent 24%,transparent 70%,rgba(5,12,30,.35)),repeating-linear-gradient(0deg,rgba(255,255,255,.045) 0 1px,transparent 1px 3px);
  content:'';
  pointer-events:none;
}
#home .game-card .game-card-art::after {
  position:absolute;
  z-index:3;
  top:7px;
  right:8px;
  padding:3px 5px;
  border:1px solid rgba(232,250,255,.47);
  border-radius:4px;
  color:#e9fbff;
  background:rgba(2,7,18,.72);
  box-shadow:0 0 10px rgba(82,220,255,.32);
  content:'PREVIEW';
  font-size:.53rem;
  font-weight:900;
  letter-spacing:.12em;
}
#home .game-card .game-card-art img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:scale(1.025);
  transition:transform .46s cubic-bezier(.2,.8,.25,1),filter .46s ease;
}
#home .game-card .eyebrow {
  min-height:0;
  margin:0 0 4px;
  color:#73e6e4;
  font-size:.61rem;
  line-height:1.15;
}
#home .game-card h2 {
  margin:0 0 6px;
  min-height:0;
  color:#f2fbff;
  font-size:clamp(1.24rem,2vw,1.5rem);
  line-height:1.06;
  text-shadow:0 2px 0 #061329,0 0 15px rgba(82,220,255,.17);
}
#home .game-card p:not(.eyebrow) {
  min-height:0;
  margin:0 0 13px;
  color:#aec3d5;
  font-size:.82rem;
  line-height:1.38;
  -webkit-line-clamp:2;
}
#home .game-card .primary-button {
  width:100%;
  min-width:0;
  min-height:42px;
  margin:0;
  border:1px solid rgba(205,255,249,.75);
  border-radius:10px;
  color:#041428;
  background:linear-gradient(135deg,#c8fff2,#6fe7e1 54%,#6bc3ff);
  box-shadow:inset 0 1px rgba(255,255,255,.95),0 7px 15px rgba(0,0,0,.19);
  font-size:.79rem;
  letter-spacing:.01em;
}
#home .game-card:hover,
#home .game-card:focus-within {
  border-color:rgba(105,226,255,.78);
  box-shadow:inset 0 1px rgba(235,250,255,.17),0 22px 46px rgba(0,0,0,.36),0 0 23px rgba(82,220,255,.12);
  transform:translateY(-4px);
}
#home .game-card:hover .game-card-art img,
#home .game-card:focus-within .game-card-art img { filter:saturate(1.12) brightness(1.08); transform:scale(1.08); }
#home .game-card .primary-button:hover { background:linear-gradient(135deg,#f0fffb,#86f5e7 52%,#9cdeff); }
#home .privacy-note {
  max-width:700px;
  margin:23px auto 0;
  padding:10px 14px;
  border-left:2px solid rgba(82,220,255,.55);
  border-radius:0 10px 10px 0;
  background:rgba(7,21,42,.48);
}
@media (min-width:930px) {
  #home .game-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .topbar { margin-bottom:34px; }
  #home .dashboard-hero h1 { font-size:clamp(2.28rem,11vw,3.35rem); }
  #home .dashboard-hero .hero-copy { margin-top:15px; font-size:.95rem; }
  .arcade-dashboard-status { width:100%; gap:7px; margin-bottom:17px; padding:8px 10px; font-size:.66rem; }
  .arcade-dashboard-status strong { font-size:.67rem; white-space:nowrap; }
  #home .game-cards { grid-template-columns:1fr; gap:12px; }
  #home .game-card {
    grid-template-columns:124px minmax(0,1fr);
    grid-template-rows:auto auto 1fr auto;
    column-gap:12px;
    min-height:156px;
    padding:10px 10px 14px;
    border-radius:16px 16px 20px 20px;
  }
  #home .game-card .game-card-art {
    grid-row:1 / span 4;
    width:124px;
    height:132px;
    margin:0;
    border-width:5px;
    border-radius:9px;
    box-shadow:inset 0 0 0 1px rgba(196,231,255,.26),inset 0 0 18px rgba(0,0,0,.66),0 4px 0 #152640;
  }
  #home .game-card .eyebrow { grid-column:2; margin:1px 0 3px; font-size:.54rem; }
  #home .game-card h2 { grid-column:2; margin:0 0 4px; font-size:1.18rem; }
  #home .game-card p:not(.eyebrow) { grid-column:2; margin:0 0 7px; font-size:.76rem; line-height:1.3; }
  #home .game-card .primary-button { grid-column:2; min-height:36px; padding:7px 8px; font-size:.71rem; }
  #home .game-card .game-card-art::after { top:4px; right:4px; padding:2px 3px; font-size:.43rem; }
  #home .privacy-note { margin-top:16px; font-size:.72rem; }
}
@media (max-width:370px) {
  #home .game-card { grid-template-columns:106px minmax(0,1fr); column-gap:9px; min-height:145px; padding:9px 9px 13px; }
  #home .game-card .game-card-art { width:106px; height:122px; }
  #home .game-card h2 { font-size:1.06rem; }
  #home .game-card p:not(.eyebrow) { font-size:.71rem; }
  #home .game-card .primary-button { font-size:.66rem; }
}

/* Encaixe Triplo: devolução curta quando o drop não alcança uma casa válida. */
@keyframes block-fit-dock-shake {
  0%,100% { transform:translateX(0); }
  22% { transform:translateX(-7px); }
  48% { transform:translateX(6px); }
  72% { transform:translateX(-3px); }
}
.block-fit-pieces.block-fit-dock-shake { animation:block-fit-dock-shake 220ms ease-out; }

/* Escolha de continuidade ao fim da rodada, disponível somente ao anfitrião. */

/* O nome da sala permanece texto traduzivel; a moldura e o icone formam a arte. */

/* Encaixe usa a mesma linguagem de cartucho, com violeta e ciano do tabuleiro. */
#block-fit-game .game-header h1 {
  display:inline-flex;
  position:relative;
  align-items:center;
  gap:.22em;
  max-width:100%;
  padding:.13em .34em .17em .13em;
  border:2px solid transparent;
  border-radius:16px;
  color:#fff9ff;
  background:
    radial-gradient(circle at 87% 20%,rgba(121,233,255,.3) 0 3px,transparent 4px) padding-box,
    linear-gradient(110deg,#171d53,#452361 58%,#1b396a) padding-box,
    linear-gradient(120deg,#ed9dff,#7de9ff 65%,#ffd188) border-box;
  box-shadow:0 4px 0 #101638,inset 0 1px 0 rgba(255,255,255,.34),0 0 20px rgba(181,119,255,.24);
  font-size:clamp(1.4rem,4.6vh,2.65rem);
  font-weight:950;
  letter-spacing:-.055em;
  line-height:1.08;
  text-shadow:0 2px 0 #271d56,0 0 12px rgba(255,255,255,.32);
}
#block-fit-game .game-header h1::before {
  flex:none;
  width:clamp(26px,4.8vh,42px);
  aspect-ratio:1;
  border-radius:9px;
  background:url('../assets/encaixe-triplo-icon.webp') center/cover;
  box-shadow:0 2px 6px rgba(0,0,0,.34);
  content:"";
}
@media (max-width:520px) {

body.game-screen-active #block-fit-game .game-header { flex-wrap:wrap; align-items:center; gap:7px; }
  body.game-screen-active #block-fit-game .game-header>div:first-child { flex:1 1 150px; min-width:0; }
  body.game-screen-active #block-fit-game .game-stats { margin-left:auto; }
  body.game-screen-active #block-fit-game .game-header h1 { padding:4px 8px 5px 4px; border-radius:11px; font-size:clamp(1.15rem,4.4vw,1.45rem); white-space:normal; }
  #block-fit-game .game-header h1::before { width:24px; border-radius:6px; }
}

body.game-screen-active .update-notice { display:none; }

/* Forca: leitura à esquerda, palavra e teclado à direita; palavras longas continuam navegáveis. */
.hangman-layout { display:grid; grid-template-columns:minmax(230px,.9fr) minmax(330px,1.1fr); align-items:start; gap:clamp(13px,2vw,22px); width:min(100%,900px); }.hangman-visual,.hangman-play { display:flex; flex-direction:column; min-width:0; }.hangman-visual { gap:10px; }.hangman-play { align-items:stretch; }.hangman-hint { align-items:flex-start; justify-items:start; min-height:73px; margin:0; padding:12px 14px; border:1px solid rgba(82,220,255,.24); border-radius:15px; background:rgba(6,26,52,.72); text-align:left; }.hangman-hint small { color:#ffdf85; font-size:.72rem; font-weight:900; letter-spacing:.08em; }
.hangman-stage { width:100%; min-height:285px; margin:0; }.hangman-word { position:relative; right:auto; bottom:auto; left:auto; width:100%; min-height:73px; padding:10px 12px 12px; overflow-x:auto; justify-content:flex-start; border:1px solid rgba(82,220,255,.38); border-radius:16px; background:#071934; box-shadow:inset 0 1px rgba(225,252,255,.08); scrollbar-width:thin; }.hangman-word.has-space { flex-wrap:wrap; overflow-x:visible; justify-content:center; }.hangman-letter { width:clamp(23px,3.5vw,33px); height:clamp(33px,5.2vw,43px); }.hangman-wrong,.hangman-keyboard { width:100%; }.hangman-wrong { margin:10px 0 8px; }.hangman-keyboard { grid-template-columns:repeat(9,minmax(0,1fr)); }.hangman-play .game-message { margin:9px 0; }.hangman-play>#restart-hangman { align-self:center; width:auto; min-width:180px; }
body.game-screen-active .hangman-layout { width:min(100%,900px); }.hangman-area>.hangman-difficulty { width:min(100%,900px); }.hangman-area>.hangman-layout { margin-top:2px; } body.game-screen-active .hangman-stage { width:100%; min-height:0; aspect-ratio:1.15; max-height:42dvh; } body.game-screen-active .hangman-word { min-height:62px; } body.game-screen-active .hangman-keyboard { width:100%; }
@media (max-width:700px), (max-height:620px) { .hangman-layout { grid-template-columns:1fr; width:min(100%,520px); }.hangman-visual { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:stretch; }.hangman-hint { min-height:0; }.hangman-stage { min-height:190px; }.hangman-play>#restart-hangman { width:100%; }.hangman-keyboard { grid-template-columns:repeat(9,minmax(0,1fr)); } body.game-screen-active .hangman-stage { max-height:30dvh; aspect-ratio:auto; } }
@media (max-width:420px) { .hangman-visual { grid-template-columns:1fr; }.hangman-stage { min-height:170px; }.hangman-keyboard { gap:4px; }.hangman-letter { width:24px; height:35px; } }

/* Palavra inteira sempre visível: casas se distribuem em linhas, sem trilho lateral. */
.hangman-word { display:grid; grid-template-columns:repeat(auto-fit,minmax(24px,33px)); align-content:center; justify-content:center; gap:7px; overflow:visible; }.hangman-word:not(.has-space) .hangman-word-group { display:contents; }.hangman-word:not(.has-space) .hangman-letter { width:auto; min-width:0; height:43px; }.hangman-word.has-space { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; overflow:visible; }.hangman-word.has-space .hangman-word-group { display:grid; grid-template-columns:repeat(auto-fit,minmax(24px,33px)); flex:1 1 auto; justify-content:center; max-width:100%; gap:7px; white-space:normal; }.hangman-word.has-space .hangman-letter { width:auto; min-width:0; height:43px; }
body.game-screen-active .hangman-area { justify-content:center; } body.game-screen-active .hangman-layout { align-items:stretch; } body.game-screen-active .hangman-visual,.hangman-play { justify-content:center; } body.game-screen-active .hangman-word { min-height:62px; }
@media (max-width:780px) { .hangman-layout { grid-template-columns:1fr; width:min(100%,540px); }.hangman-visual { display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); }.hangman-stage { min-height:210px; }.hangman-play { width:100%; }.hangman-word { grid-template-columns:repeat(auto-fit,minmax(22px,31px)); gap:6px; }.hangman-word:not(.has-space) .hangman-letter,.hangman-word.has-space .hangman-letter { height:39px; } }
@media (max-width:430px) { .hangman-visual { grid-template-columns:1fr; }.hangman-stage { min-height:178px; }.hangman-word { grid-template-columns:repeat(auto-fit,minmax(20px,28px)); gap:5px; padding:8px; }.hangman-word:not(.has-space) .hangman-letter,.hangman-word.has-space .hangman-letter { height:35px; }.hangman-keyboard { grid-template-columns:repeat(7,minmax(0,1fr)); } }

/* Peixes confirmados ficam travados até o fim da partida. */
.fish-cell.locked:disabled { cursor:default; opacity:1; }.fish-cell.locked::after { position:absolute; right:5px; bottom:4px; z-index:2; color:rgba(255,255,255,.9); font-size:.58rem; font-weight:900; content:'✓'; text-shadow:0 1px 2px rgba(0,0,0,.45); }

/* Pares da Lagoa: três tamanhos de lagoa, sem perder cartas fora da tela. */
.memory-difficulty { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:7px; margin:0 0 12px; }.memory-difficulty>span { margin-right:3px; color:#3d8294; font-size:.67rem; font-weight:900; letter-spacing:.14em; }.memory-difficulty-button { min-height:34px; padding:6px 10px; border:1px solid #afced4; border-radius:10px; color:#497080; background:#fffefa; font:inherit; font-size:.73rem; font-weight:900; box-shadow:0 3px 8px rgba(47,97,103,.07); }.memory-difficulty-button small { color:#7396a1; font-size:.65rem; font-weight:700; }.memory-difficulty-button.active { border-color:#6daeb0; color:#173f48; background:#cfeceb; box-shadow:0 6px 13px rgba(47,113,115,.15); }.memory-difficulty-button.active small { color:#386a72; }.memory-board[data-pairs="12"] { grid-template-columns:repeat(6,1fr); width:min(100%,500px); }.memory-board[data-pairs="12"] .memory-card { font-size:clamp(.9rem,3.5vw,1.5rem); }.memory-card { min-width:0; }
@media (max-width:520px) { .memory-difficulty { gap:5px; }.memory-difficulty>span { width:100%; margin:0; text-align:center; }.memory-difficulty-button { flex:1; padding:6px 7px; }.memory-difficulty-button small { display:none; }.memory-board[data-pairs="12"] { width:100%; gap:5px; padding:7px; } }

/* Pares da Lagoa v2: arena competitiva local para ate tres jogadores. */
#memory-game .memory-game-header .game-stats { align-self:flex-end; }
#memory-game .memory-arena {
  display:grid;
  grid-template-columns:minmax(220px,270px) minmax(400px,660px);
  grid-template-areas:
    "lobby board"
    "scores board"
    "instruction board"
    "message board"
    "restart board";
  align-items:center;
  justify-content:center;
  gap:10px 22px;
  min-height:0;
  padding:clamp(14px,2.2vw,24px);
  border-color:#195fa1;
  color:#eaf8ff;
  background:
    radial-gradient(circle at 78% 45%,rgba(23,123,213,.2),transparent 34%),
    linear-gradient(145deg,#071a36 0%,#06152d 50%,#081e41 100%);
  box-shadow:0 22px 48px rgba(0,10,30,.32),inset 0 1px rgba(91,205,255,.18);
}
#memory-game .memory-lobby {
  grid-area:lobby;
  display:grid;
  gap:10px;
  width:100%;
  padding:14px;
  border:1px solid rgba(75,183,255,.34);
  border-radius:18px;
  background:rgba(4,25,52,.78);
  box-shadow:inset 0 1px rgba(255,255,255,.06),0 10px 22px rgba(0,9,26,.22);
}
#memory-game .memory-lobby-copy { display:grid; gap:3px; }
#memory-game .memory-lobby-copy .memory-kicker { color:#63e5ec; font-size:.62rem; font-weight:950; letter-spacing:.16em; }
#memory-game .memory-lobby-copy strong { color:#fff; font-size:clamp(1.08rem,2vw,1.35rem); }
#memory-game .memory-lobby-copy small { color:#a6c5d8; font-size:.72rem; line-height:1.45; }
#memory-game .memory-mode-choice {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
#memory-game .memory-mode-choice button {
  min-height:39px;
  padding:8px 10px;
  border:1px solid rgba(86,188,242,.28);
  border-radius:12px;
  color:#a9c9da;
  background:#081f3d;
  font:900 .72rem/1.15 var(--font-ui);
}
#memory-game .memory-mode-choice button span { color:#71e5e1; margin-right:4px; }
#memory-game .memory-mode-choice button.active {
  border-color:#73e5e5;
  color:#06243d;
  background:#77dfda;
  box-shadow:0 7px 16px rgba(37,215,213,.16);
}
#memory-game .memory-mode-choice button.active span { color:#0c4661; }
#memory-game .memory-settings-panel { display:grid; gap:8px; min-width:0; }
#memory-game .memory-settings-panel[hidden] { display:none; }
#memory-game .memory-online-settings>p { margin:0; color:#a6c5d8; font-size:.7rem; line-height:1.45; }
#memory-game .memory-friend-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; max-height:128px; overflow:auto; overscroll-behavior:contain; }
#memory-game .memory-friend-picker .friend-empty { grid-column:1 / -1; margin:0; padding:9px; border:1px dashed rgba(99,191,235,.24); border-radius:10px; color:#8fafc4; font-size:.67rem; }
#memory-game .memory-friend-choice {
  display:grid;
  grid-template-columns:25px minmax(0,1fr);
  align-items:center;
  gap:6px;
  min-width:0;
  padding:6px 8px;
  border:1px solid rgba(86,188,242,.25);
  border-radius:11px;
  color:#dff8ff;
  background:#071d39;
  text-align:left;
}
#memory-game .memory-friend-choice span { display:grid; width:24px; aspect-ratio:1; place-items:center; border-radius:8px; color:#71e5e1; background:#0d3656; font-weight:950; }
#memory-game .memory-friend-choice strong { overflow:hidden; font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
#memory-game .memory-friend-choice.selected { border-color:#ffce68; background:#153150; box-shadow:inset 0 0 0 1px rgba(255,206,104,.13); }
#memory-game .memory-friend-choice.selected span { color:#082642; background:#ffd06b; }
#memory-game .memory-online-actions { display:grid; grid-template-columns:auto 1fr; gap:7px; }
#memory-game .memory-online-actions button,#memory-game .memory-room-actions button { min-height:38px; padding:8px 10px; font-size:.7rem; }
#memory-game .memory-room-actions { display:grid; grid-template-columns:1fr auto; gap:7px; align-items:center; padding:8px; border:1px solid rgba(89,190,237,.24); border-radius:12px; background:rgba(6,24,48,.72); }
#memory-game .memory-room-actions[hidden] { display:none; }
#memory-game .memory-room-actions>span { grid-column:1 / -1; color:#d9f8ff; font-size:.68rem; line-height:1.4; }
#memory-game #memory-ready-online.is-ready { border-color:#ffce68; color:#071f39; background:#ffd06b; }
#memory-game .memory-player-count { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
#memory-game .memory-player-count button {
  min-height:36px;
  border:1px solid rgba(86,188,242,.28);
  border-radius:11px;
  color:#a9c9da;
  background:#0b2b4a;
  font:900 .82rem/1 var(--font-ui);
}
#memory-game .memory-player-count button.active {
  border-color:#73e5e5;
  color:#06243d;
  background:#77dfda;
  box-shadow:0 6px 14px rgba(37,215,213,.18);
}
#memory-game .memory-player-names { display:grid; gap:6px; }
#memory-game .memory-player-names label { display:grid; grid-template-columns:30px 1fr; align-items:center; gap:7px; }
#memory-game .memory-player-names label>span {
  display:grid;
  width:28px;
  aspect-ratio:1;
  place-items:center;
  border-radius:9px;
  color:#061e38;
  background:#74e4df;
  font-size:.7rem;
  font-weight:950;
}
#memory-game .memory-player-names label:nth-child(2)>span { background:#ffd06b; }
#memory-game .memory-player-names label:nth-child(3)>span { background:#c89eff; }
#memory-game .memory-player-names input {
  min-width:0;
  height:36px;
  padding:0 10px;
  border:1px solid rgba(102,190,239,.3);
  border-radius:10px;
  outline:none;
  color:#effbff;
  background:#071d39;
  font:800 .8rem/1 var(--font-ui);
}
#memory-game .memory-player-names input:focus { border-color:#77e1df; box-shadow:0 0 0 3px rgba(81,215,218,.15); }
#memory-game .memory-start-button { width:100%; min-height:40px; padding:9px 12px; }
#memory-game .memory-scoreboard {
  grid-area:scores;
  display:grid;
  grid-template-columns:repeat(var(--memory-players,3),minmax(0,1fr));
  gap:6px;
  width:100%;
}
#memory-game .memory-player-score {
  display:grid;
  grid-template-columns:auto 1fr;
  gap:2px 5px;
  min-width:0;
  padding:8px;
  border:1px solid rgba(104,183,229,.22);
  border-radius:12px;
  color:#acc8da;
  background:rgba(7,30,57,.82);
}
#memory-game .memory-player-score>span { grid-row:1 / 3; align-self:center; color:#72e4df; font-size:.65rem; font-weight:950; }
#memory-game .memory-player-score>strong { overflow:hidden; color:#edfaff; font-size:.72rem; text-overflow:ellipsis; white-space:nowrap; }
#memory-game .memory-player-score>b { color:#8fb2c8; font-size:.62rem; }
#memory-game .memory-player-score.active { border-color:#ffcf62; background:#173253; box-shadow:0 0 0 2px rgba(255,201,82,.12),0 7px 16px rgba(0,8,25,.2); }
#memory-game .memory-player-score.is-you>strong::after { content:" · você"; color:#71e5e1; font-size:.58rem; }
#memory-game .memory-player-score.active>span,#memory-game .memory-player-score.active>b { color:#ffd26b; }
#memory-game .instruction { grid-area:instruction; margin:0; color:#9dbdce; font-size:.78rem; line-height:1.5; }
#memory-game .game-message { grid-area:message; min-height:38px; margin:0; color:#dffbff; font-weight:850; }
#memory-game #restart-memory { grid-area:restart; width:100%; }
body.game-screen-active #memory-game .memory-board,
#memory-game .memory-board {
  grid-area:board;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:clamp(6px,1vw,10px);
  width:min(100%,780px);
  padding:clamp(8px,1.3vw,13px);
  border:1px solid rgba(83,190,246,.46);
  border-radius:22px;
  background:#06182f;
  box-shadow:inset 0 0 0 2px rgba(40,117,184,.18),0 16px 32px rgba(0,7,25,.3);
}
#memory-game .memory-card {
  position:relative;
  isolation:isolate;
  min-width:0;
  aspect-ratio:4 / 5;
  overflow:hidden;
  border:1px solid rgba(67,203,255,.56);
  border-radius:clamp(8px,1.2vw,14px);
  color:#fff;
  background-color:#092552;
  background-image:url('../games/pares-da-lagoa/Cartas.png');
  background-position:center;
  background-size:cover;
  box-shadow:0 5px 10px rgba(0,8,27,.38),inset 0 0 0 1px rgba(151,233,255,.16);
  font-size:clamp(1.2rem,3.4vw,2.4rem);
  text-shadow:0 2px 4px rgba(0,7,24,.45);
  opacity:1;
  transform:translateZ(0);
  backface-visibility:hidden;
}
#memory-game .memory-card::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:0;
  background:radial-gradient(circle at 50% 34%,rgba(255,255,255,.42),transparent 38%);
}
#memory-game .memory-card.revealed {
  border-color:rgba(190,242,255,.82);
  color:#fff;
  background-color:var(--memory-face,#146d9d);
  background-image:linear-gradient(145deg,rgba(255,255,255,.22),transparent 45%),linear-gradient(160deg,var(--memory-face,#146d9d),#061e4d);
  box-shadow:0 8px 16px rgba(0,8,25,.32),inset 0 0 0 2px rgba(255,255,255,.15);
}
#memory-game .memory-card.revealed::after { opacity:1; }
#memory-game .memory-card-art {
  position:absolute;
  inset:7%;
  z-index:1;
  width:86%;
  height:86%;
  object-fit:contain;
  opacity:1;
  transform:scale(1);
  filter:drop-shadow(0 4px 5px rgba(0,7,24,.38));
  transition:transform .22s ease,opacity .18s ease;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}
#memory-game .memory-card-art[hidden] { display:none; }
#memory-game .memory-card.matched .memory-card-art { transform:scale(.94); }
#memory-game .memory-card.matched { filter:saturate(.78) brightness(.9); transform:scale(.96); }
#memory-game .memory-card.matched[data-owner="1"] { outline:3px solid #72e4df; }
#memory-game .memory-card.matched[data-owner="2"] { outline:3px solid #ffd06b; }
#memory-game .memory-card.matched[data-owner="3"] { outline:3px solid #c89eff; }
#memory-game .memory-card.memory-coral { --memory-face:#e56f6f; }
#memory-game .memory-card.memory-turquoise { --memory-face:#2faeb9; }
#memory-game .memory-card.memory-violet { --memory-face:#8068bd; }
#memory-game .memory-card.memory-gold { --memory-face:#d69a39; }
#memory-game .memory-card.memory-blue { --memory-face:#3b79c5; }
#memory-game .memory-card.memory-pink { --memory-face:#c9649a; }
#memory-game .memory-card.memory-green { --memory-face:#4b9d7b; }
#memory-game .memory-card.memory-orange { --memory-face:#de7847; }
#memory-game .memory-card.memory-lilac { --memory-face:#9b70c5; }
#memory-game .memory-card.memory-deep { --memory-face:#35547f; }
#memory-game .memory-board.is-waiting .memory-card { filter:saturate(.65) brightness(.72); }

@media (max-width:820px) {
  #memory-game .memory-arena {
    grid-template-columns:1fr;
    grid-template-areas:"lobby" "scores" "board" "instruction" "message" "restart";
    gap:10px;
    width:100%;
  }
  #memory-game .memory-lobby { grid-template-columns:1fr auto; align-items:center; }
  #memory-game .memory-lobby-copy { grid-column:1 / -1; }
  #memory-game .memory-mode-choice,#memory-game .memory-settings-panel { grid-column:1 / -1; }
  #memory-game .memory-player-count { min-width:136px; }
  #memory-game .memory-start-button { width:auto; min-width:145px; }
  #memory-game .memory-player-names { grid-column:1 / -1; grid-template-columns:repeat(3,minmax(0,1fr)); }
  #memory-game .memory-player-names label { grid-template-columns:26px minmax(0,1fr); }
  body.game-screen-active #memory-game .memory-board,
  #memory-game .memory-board { grid-template-columns:repeat(5,minmax(0,1fr)); width:min(100%,620px); justify-self:center; }
}
@media (max-width:520px) {
  #memory-game .memory-game-header { align-items:flex-end; gap:8px; }
  #memory-game .memory-game-header h1 { font-size:clamp(1.65rem,9vw,2.25rem); }
  #memory-game .memory-arena { padding:10px; border-radius:18px; }
  #memory-game .memory-lobby { grid-template-columns:1fr; padding:10px; border-radius:14px; }
  #memory-game .memory-lobby-copy small { display:none; }
  #memory-game .memory-player-count { width:100%; }
  #memory-game .memory-mode-choice { grid-template-columns:1fr; }
  #memory-game .memory-mode-choice button { min-height:36px; }
  #memory-game .memory-friend-picker { grid-template-columns:1fr; max-height:112px; }
  #memory-game .memory-online-actions,#memory-game .memory-room-actions { grid-template-columns:1fr; }
  #memory-game .memory-room-actions>span { grid-column:1; }
  #memory-game .memory-player-names { grid-template-columns:1fr; }
  #memory-game .memory-player-names label { grid-template-columns:28px 1fr; }
  #memory-game .memory-start-button { width:100%; }
  #memory-game .memory-scoreboard { gap:4px; }
  #memory-game .memory-player-score { padding:6px; }
  #memory-game .memory-player-score>span { display:none; }
  #memory-game .memory-player-score>strong,#memory-game .memory-player-score>b { grid-column:1 / -1; text-align:center; }
  body.game-screen-active #memory-game .memory-board,
  #memory-game .memory-board { gap:5px; padding:6px; border-radius:15px; }
  #memory-game .memory-card { border-radius:8px; font-size:clamp(1.15rem,7vw,1.8rem); }
  #memory-game .instruction { font-size:.7rem; }
  #memory-game .game-message { min-height:28px; font-size:.75rem; }
}
@media (max-width:360px) {
  #memory-game .memory-game-header .game-stats { width:100%; }
  #memory-game .memory-game-header .level-box,#memory-game .memory-game-header .score-box { flex:1; }
  #memory-game .memory-lobby-copy strong { font-size:1rem; }
}

/* Pares da Lagoa: a configuração é uma etapa, não parte do tabuleiro. */
#memory-game.is-lobby .memory-scoreboard,
body.game-screen-active #memory-game.is-lobby .memory-board,
#memory-game.is-lobby .memory-board,
#memory-game.is-lobby .instruction,
#memory-game.is-lobby .game-message,
#memory-game.is-lobby #restart-memory {
  display:none;
}
#memory-game.is-lobby .memory-arena { grid-template-areas:"lobby"; }
#memory-game.is-playing .memory-lobby,
#memory-game.is-finished .memory-lobby { display:none; }
#memory-game.is-playing .memory-arena,
#memory-game.is-finished .memory-arena {
  grid-template-areas:
    "scores board"
    "instruction board"
    "message board"
    "restart board";
}
@media (max-width:820px) {
  #memory-game.is-playing .memory-arena,
  #memory-game.is-finished .memory-arena {
    grid-template-areas:"scores" "board" "instruction" "message" "restart";
  }
}

/* Catálogo Clássico: ícones legíveis, quadrados e sem recorte da arte. */
@media (max-width:620px) {
  html[data-arcade-home-view="classic"] #home .game-card-art {
    width:72px;
    height:72px;
    min-width:72px;
    margin-bottom:8px;
    padding:4px;
    border-radius:17px;
  }
}
@media (max-width:520px) {
  #memory-game.is-lobby .memory-arena {
    min-height:0;
    padding:10px;
    gap:0;
    align-content:start;
  }
  #memory-game.is-lobby .memory-lobby { gap:8px; padding:12px; }
  #memory-game.is-lobby .memory-lobby-copy { gap:2px; }
  #memory-game.is-lobby .memory-lobby-copy small {
    display:block;
    color:#a6c5d8;
    font-size:.67rem;
    line-height:1.35;
  }
  #memory-game.is-lobby .memory-mode-choice { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #memory-game.is-lobby .memory-mode-choice button { min-height:44px; padding:7px 6px; font-size:.68rem; }
  #memory-game.is-lobby .memory-player-count button { min-height:40px; }
  #memory-game.is-lobby .memory-player-names { gap:5px; }
  #memory-game.is-lobby .memory-player-names input { height:38px; }
  #memory-game.is-lobby .memory-start-button { min-height:46px; }
}

@media (max-width:360px) {
  body { min-width:0; }
  #memory-game .memory-game-header { flex-wrap:wrap; }
  #memory-game .memory-game-header .game-stats { width:100%; margin-left:0; }
  #memory-game .memory-game-header .level-box,
  #memory-game .memory-game-header .score-box { min-width:0; flex:1; }
}

/* Campanhas: os indicadores de fase permanecem legíveis mesmo nas telas compactas. */
#fish-game .game-header,#dance-game .game-header { flex-wrap:wrap; }#fish-game .game-stats,#dance-game .game-stats { margin-left:auto; }#fish-game .game-stats { gap:6px; }#dance-game .game-stats { gap:6px; }#dance-game .level-box,#dance-game .score-box,#fish-game .level-box,#fish-game .score-box { min-width:76px; }
@media (max-width:520px) { #fish-game .game-stats,#dance-game .game-stats { width:100%; justify-content:flex-end; margin-left:0; }#fish-game .level-box,#fish-game .score-box,#dance-game .level-box,#dance-game .score-box { min-width:0; flex:1; padding:8px 6px; } }

/* Bolhas reduz por fase sem ultrapassar a área útil em telas pequenas. */
.bubble-surface button { width:min(var(--bubble-size,58px),15vw); }
@media (max-width:420px) { .bubble-surface button { width:min(var(--bubble-size,48px),16vw); } }

/* Cardume Lógico: a grade é um mapa fixo; somente o conteúdo da casa muda. */
.fish-board { transition:none; }
.fish-board:hover { box-shadow:0 16px 34px rgba(0,0,0,.24),inset 0 0 0 1px rgba(255,255,255,.08); }
.fish-cell,.fish-cell:hover:not(:disabled),.fish-cell.selected,.fish-cell.mistake { transition:none; transform:none; }
.fish-cell:hover:not(:disabled) { filter:none; box-shadow:inset 0 1px 0 rgba(255,255,255,.2); }
.fish-cell.selected { animation:none; }
.fish-symbol { animation:none; transform:none; }
.fish-cell.draft { box-shadow:inset 0 0 0 2px rgba(246,223,175,.84),inset 0 0 0 4px rgba(7,45,55,.18); }
.fish-symbol.fish-draft { opacity:.58; filter:saturate(.7) drop-shadow(0 1px 1px rgba(20,62,70,.28)); }

/* Marca de exclusão em dois traços arredondados, como um pequeno selo aquático. */
.fish-cell.marked { isolation:isolate; box-shadow:inset 0 0 0 2px rgba(247,229,185,.52),inset 0 1px 0 rgba(255,255,255,.2); }
.fish-cell.marked::before,.fish-cell.marked::after { position:absolute; z-index:3; width:54%; height:12%; border:1px solid rgba(8,37,48,.62); border-radius:999px; background:#f6dfaf; box-shadow:inset 0 1px 0 rgba(255,255,255,.68),0 2px 0 rgba(10,46,57,.2); content:''; animation:none; }
.fish-cell.marked::before { transform:rotate(45deg); }.fish-cell.marked::after { transform:rotate(-45deg); }
.fish-cell.mistake { background:var(--cell-tint) !important; box-shadow:inset 0 0 0 2px rgba(255,119,109,.9),inset 0 0 13px rgba(139,48,56,.23); animation:fish-mark-alert .44s ease-in-out; }
.fish-cell.mistake::before,.fish-cell.mistake::after { position:absolute; top:calc(50% - 2px); left:calc(50% - 7px); z-index:3; width:14px; height:4px; border:1px solid rgba(84,29,39,.52); border-radius:99px; background:#f07c76; box-shadow:inset 0 1px 0 rgba(255,225,220,.75),0 1px 0 rgba(84,29,39,.38); content:''; }
.fish-cell.mistake::before { transform:rotate(45deg); }.fish-cell.mistake::after { transform:rotate(-45deg); }
@keyframes fish-mark-alert { 0%,100% { box-shadow:inset 0 0 0 2px rgba(255,119,109,.82),inset 0 0 13px rgba(139,48,56,.18); } 50% { box-shadow:inset 0 0 0 3px rgba(255,186,177,.98),inset 0 0 16px rgba(139,48,56,.3); } }
.fish-tool-x { display:inline-flex; align-items:center; gap:7px; }
.fish-tool-mark { position:relative; display:inline-block; width:14px; height:14px; flex:0 0 14px; }
.fish-tool-mark::before,.fish-tool-mark::after { position:absolute; top:5px; left:0; width:14px; height:4px; border:1px solid rgba(7,36,47,.52); border-radius:99px; background:#f7e2b6; box-shadow:inset 0 1px 0 rgba(255,255,255,.7); content:''; }
.fish-tool-mark::before { transform:rotate(45deg); }.fish-tool-mark::after { transform:rotate(-45deg); }
.fish-tool.active .fish-tool-mark::before,.fish-tool.active .fish-tool-mark::after { border-color:rgba(6,43,43,.32); background:#1c7480; }

/* Jogos autocontidos: moldura única, responsiva e com tela cheia interna. */
.aquabit-area,.embedded-game-area { width:100%; max-width:1080px; align-self:center; justify-content:stretch !important; gap:9px; padding:10px !important; }
.aquabit-toolbar,.embedded-game-toolbar { display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; gap:12px; width:100%; }
.aquabit-toolbar p,.embedded-game-toolbar p { margin:0; color:var(--muted); font-size:.8rem; line-height:1.35; }
.embedded-game-actions { display:flex; flex:0 0 auto; align-items:center; gap:8px; }
.aquabit-toolbar .secondary-button,.embedded-game-toolbar .secondary-button { flex:0 0 auto; width:auto; min-height:38px; padding:8px 13px; white-space:nowrap; }
.bomber-lobby-button { display:grid; flex:0 0 clamp(132px,13vw,154px) !important; width:clamp(132px,13vw,154px) !important; min-width:132px; min-height:58px; max-height:58px; place-items:center; padding:0 !important; overflow:visible; border:0 !important; background:transparent !important; box-shadow:none !important; }
.bomber-lobby-button img { display:block; width:100% !important; max-width:142px !important; height:auto !important; max-height:60px !important; object-fit:contain; filter:drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.bomber-lobby-button:hover,.bomber-lobby-button:active { border:0 !important; background:transparent !important; filter:brightness(1.14); transform:translateX(-1px); }
.bomber-lobby-button:focus-visible { outline:3px solid rgba(82,220,255,.7); outline-offset:3px; border-radius:10px; }
.aquabit-frame-shell,.embedded-game-frame-shell { position:relative; flex:1 1 auto; width:100%; min-height:0; overflow:hidden; border:1px solid rgba(82,220,255,.34); border-radius:18px; background:#020814; box-shadow:0 18px 38px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.07); }
/* Embedded games have no windowed hub/lobby state. Native fullscreen is an
   enhancement; its completion or cancellation cannot reveal the old wrapper. */
.screen.arcade-embedded-screen.active { position:fixed; inset:0; z-index:1000; width:100vw; height:var(--arcade-visual-height,100dvh); min-height:0; padding:0; animation:none; }
.screen.arcade-embedded-screen > .game-header,
.screen.arcade-embedded-screen .embedded-game-toolbar,
.screen.arcade-embedded-screen .aquabit-toolbar { display:none; }
.screen.arcade-embedded-screen .embedded-game-area,
.screen.arcade-embedded-screen .aquabit-area { width:100%; height:100%; min-height:0; max-width:none; padding:0!important; border:0; border-radius:0; }
.screen.arcade-embedded-screen .embedded-game-frame-shell,
.screen.arcade-embedded-screen .aquabit-frame-shell { width:100%; height:100%; min-height:0; max-width:none; border:0; border-radius:0; }
.aquabit-frame-shell { background:#020814 url('../games/aquabit/Favicon.png') center/120px no-repeat; }
#a100-frame-shell { background:#020814 url('../assets/a-100-icon.webp?v=icons-webp-v1') center/120px no-repeat; }
/* A-100 has no windowed preview, even before native fullscreen resolves. */
body[data-arcade-screen="a100-game"] { overflow:hidden; }
#a100-game.active { position:fixed; inset:0; z-index:1000; padding:0; width:100vw; height:var(--arcade-visual-height,100dvh); min-height:0; animation:none; }
#a100-game > .game-header, #a100-game .embedded-game-toolbar { display:none; }
#a100-game .embedded-game-area { height:100%; width:100%; min-height:0; padding:0!important; border:0; border-radius:0; }
#a100-game #a100-frame-shell { width:100%; height:100%; max-width:none; border:0; border-radius:0; }
#a100-game.active [data-embedded-exit] { display:flex; top:max(8px,env(safe-area-inset-top)); min-height:44px; }
#cascata-frame-shell { background:#020814 url('../assets/cascata-icon.webp?v=icons-webp-v1') center/150px no-repeat; }
#sobe-pisquinho-frame-shell { background:radial-gradient(circle at 50% 25%,#1c8190,#07284b 74%); }
#sobe-pisquinho-game.active { animation:none; }
.card-sobe-pisquinho { border-color:rgba(120,233,197,.54); background:linear-gradient(135deg,rgba(38,156,137,.24),rgba(11,82,129,.28) 54%,rgba(7,21,42,.94)); }
.sobe-pisquinho-mark { overflow:hidden; border-color:rgba(82,231,255,.78)!important; background:#0b5275; box-shadow:0 0 0 2px rgba(255,235,129,.18),0 10px 20px rgba(0,0,0,.22); }.sobe-pisquinho-mark img { width:100%; height:100%; object-fit:cover; object-position:center; transform:scale(1.1); filter:saturate(1.08) contrast(1.03); }
#piscis-bomber-frame-shell { background:#020814 url('../assets/piscis-bomber-icon.webp?v=icons-webp-v1') center/120px no-repeat; }
/* The Bomber stage exists independently of native fullscreen and its Escape
   lifecycle (including installed PWAs). There is no intermediate lobby. */
body[data-arcade-screen="piscis-bomber-game"] { overflow:hidden; }
#piscis-bomber-game.active { position:fixed; inset:0; z-index:1000; padding:0; width:100vw; height:var(--arcade-visual-height,100dvh); min-height:0; animation:none; }
#piscis-bomber-game #piscis-bomber-frame-shell { width:100%; height:100%; max-width:none; border:0; border-radius:0; }
.aquabit-frame-shell iframe,.embedded-game-frame-shell iframe { display:block; width:100%; height:100%; min-height:0; border:0; background:#020814; }
/* Puzzle has no windowed preview, including direct links and history restores. */
#quebra-cabeca-game.active { position:fixed; inset:0; z-index:1000; padding:0; width:100vw; height:var(--arcade-visual-height,100dvh); min-height:0; }
#quebra-cabeca-frame-shell { width:100%; height:100%; max-width:none; border:0; border-radius:0; }
.arcade-vitrine-intro .hero-copy[hidden] { display:none; }
.aquabit-exit-fullscreen,.embedded-game-exit-fullscreen { position:absolute; top:max(10px,env(safe-area-inset-top)); left:max(12px,env(safe-area-inset-left)); z-index:8; display:none; align-items:center; justify-content:center; min-height:40px; padding:8px 13px; border:1px solid rgba(115,228,222,.7); border-radius:11px; color:#eaffff; background:rgba(3,17,33,.92); font:inherit; font-size:.8rem; font-weight:900; box-shadow:0 8px 20px rgba(0,0,0,.34),0 0 16px rgba(45,215,255,.16); }
.aquabit-frame-shell:fullscreen,.aquabit-frame-shell.aquabit-expanded,.embedded-game-frame-shell:fullscreen,.embedded-game-frame-shell.embedded-game-expanded { width:100vw; height:var(--arcade-visual-height,100dvh); border:0; border-radius:0; }
.aquabit-frame-shell.aquabit-expanded,.embedded-game-frame-shell.embedded-game-expanded { position:fixed; inset:0; z-index:1000; }
.aquabit-frame-shell:fullscreen iframe,.aquabit-frame-shell.aquabit-expanded iframe,.embedded-game-frame-shell:fullscreen iframe,.embedded-game-frame-shell.embedded-game-expanded iframe { width:100vw; height:var(--arcade-visual-height,100dvh); }
/* Saída universal, sempre acessível no modo imersivo dos jogos incorporados. */
.aquabit-frame-shell:fullscreen .aquabit-exit-fullscreen,.aquabit-frame-shell.aquabit-expanded .aquabit-exit-fullscreen,.embedded-game-frame-shell:fullscreen .embedded-game-exit-fullscreen,.embedded-game-frame-shell.embedded-game-expanded .embedded-game-exit-fullscreen { display:inline-flex; }
/* Cascata fornece retorno persistente em uma célula própria do HUD. */
#cascata-frame-shell .embedded-game-exit-fullscreen { display:none; }
/* Bomber owns an accessible back button in its single command deck. */
#piscis-bomber-frame-shell .embedded-game-exit-fullscreen { display:none; }
.embedded-game-frame-shell .embedded-game-exit-fullscreen,
.aquabit-frame-shell .aquabit-exit-fullscreen { display:none!important; }

/* Jogos nativos do hub usam o app inteiro como palco para manter diálogos e
   overlays irmãos no mesmo top layer. O botão Voltar permanece visível. */
.app-shell:fullscreen[data-arcade-inline-fullscreen],.app-shell.arcade-inline-expanded { width:100vw; max-width:none; min-height:100dvh; height:100dvh; margin:0; padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); overflow:hidden; background:radial-gradient(circle at 50% 0,rgba(19,70,111,.42),transparent 48%),linear-gradient(145deg,#020817,#090722 68%,#07152a); }
.app-shell.arcade-inline-expanded { position:fixed; inset:0; z-index:1000; }
.app-shell:fullscreen[data-arcade-inline-fullscreen] > .topbar,.app-shell.arcade-inline-expanded > .topbar { display:none; }
.app-shell:fullscreen[data-arcade-inline-fullscreen] > .screen.active,.app-shell.arcade-inline-expanded > .screen.active { height:100%; min-height:0; overflow:auto; overscroll-behavior:contain; }
.app-shell:fullscreen[data-arcade-inline-fullscreen] .back-link,.app-shell.arcade-inline-expanded .back-link { width:auto; min-width:124px; height:auto; min-height:40px; padding:8px 12px; border:1px solid rgba(115,228,222,.65) !important; border-radius:10px; color:#eaffff !important; background:rgba(3,17,33,.9) !important; background-image:none !important; box-shadow:0 8px 20px rgba(0,0,0,.28) !important; text-indent:0 !important; font-size:.82rem !important; white-space:nowrap; }
@media (max-width:620px) { .aquabit-area,.embedded-game-area { padding:6px !important; }.aquabit-toolbar p,.embedded-game-toolbar p { display:none; }.aquabit-toolbar,.embedded-game-toolbar { justify-content:flex-end; }.aquabit-toolbar .secondary-button,.embedded-game-toolbar .secondary-button { width:auto; min-height:34px; padding:6px 10px; font-size:.76rem; }.bomber-lobby-button { flex-basis:122px !important; width:122px !important; min-width:122px; min-height:50px !important; max-height:50px; padding:0 !important; }.bomber-lobby-button img { max-width:120px !important; max-height:50px !important; }.aquabit-frame-shell,.embedded-game-frame-shell { border-radius:14px; } }
@media (max-height:620px) { .aquabit-toolbar,.embedded-game-toolbar { position:absolute; top:7px; right:8px; z-index:4; width:auto; }.aquabit-toolbar p,.embedded-game-toolbar p { display:none; }.aquabit-area,.embedded-game-area { position:relative; padding:3px !important; }.aquabit-frame-shell,.embedded-game-frame-shell { border-radius:12px; } }

/* Dama Clássica: madeira tradicional dentro da moldura neon do Piscis Arcade. */
.card-dama {
  border-color: rgba(82,220,255,.5);
  background: linear-gradient(135deg,rgba(82,220,255,.2),rgba(74,52,150,.25) 52%,rgba(7,21,42,.92));
}
.card-dama .game-card-art {
  border-color: rgba(255,224,150,.7) !important;
  background:#171022 !important;
  box-shadow:0 8px 18px rgba(0,0,0,.25),0 0 18px rgba(82,220,255,.14) !important;
}
.dama-classica-area { border-color:rgba(82,220,255,.42); background:linear-gradient(145deg,#061631,#100b2d); }
.dama-classica-frame-shell { background:#020817 url('../assets/dama-classica-icon.webp?v=icons-webp-v1') center/112px no-repeat; }

/* Cascata no celular: a área de jogo vem antes da moldura do hub. A navegação
   continua disponível pelo logotipo, mas cabeçalho, texto de ajuda e botão de
   tela cheia não roubam altura do tabuleiro. */
@media (max-width:680px), (pointer:coarse) and (orientation:landscape) and (max-height:560px) {
  body.game-screen-active[data-arcade-screen="cascata-game"] .app-shell { padding:6px max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left)); }
  body.game-screen-active[data-arcade-screen="cascata-game"] .topbar { min-height:32px; margin-bottom:4px; padding-bottom:4px; }
  body.game-screen-active[data-arcade-screen="cascata-game"] .brand { gap:7px; font-size:.82rem; }
  body.game-screen-active[data-arcade-screen="cascata-game"] .brand-mark { width:26px; height:26px; border-radius:8px; }
  body.game-screen-active[data-arcade-screen="cascata-game"] .topbar-actions { display:none; }
  body.game-screen-active[data-arcade-screen="cascata-game"] #cascata-game .game-header,
  body.game-screen-active[data-arcade-screen="cascata-game"] #cascata-game .embedded-game-toolbar { display:none; }
  body.game-screen-active[data-arcade-screen="cascata-game"] #cascata-game .cascata-area { width:100%; max-width:none; padding:0 !important; border:0; border-radius:0; background:transparent; box-shadow:none; }
  body.game-screen-active[data-arcade-screen="cascata-game"] #cascata-frame-shell { border-radius:14px; }
}

/* A grade 11x11 usa o menor espaço disponível e nunca perde uma linha por compressão do flexbox. */
body.game-screen-active #fish-game .fish-board {
  grid-template-columns:repeat(var(--fish-grid-size,11),minmax(0,1fr));
  grid-template-rows:repeat(var(--fish-grid-size,11),minmax(0,1fr));
  flex:0 0 var(--fish-board-size,min(100%,540px,44dvh));
  width:var(--fish-board-size,min(100%,540px,44dvh));
  height:var(--fish-board-size,min(100%,540px,44dvh));
  min-width:0;
  min-height:0;
  max-width:100%;
  max-height:100%;
  aspect-ratio:1;
}
body.game-screen-active #fish-game .fish-cell { min-width:0; min-height:0; aspect-ratio:auto; }

/* Pisquinho em quatro quadros: a silhueta larga continua legível mesmo nas
   casas menores da grade 11x11. Os quadros já pertencem ao Arcade e têm alpha. */
.fish-symbol {
  position:relative;
  z-index:2;
  display:block;
  width:100%;
  height:100%;
  background:url('../games/sobe-pisquinho/assets/pisquinho_fish_01.png') center / 112% auto no-repeat;
  filter:drop-shadow(0 1px 1px rgba(55,24,0,.4));
  animation:fish-sprite-4f 820ms steps(1,end) infinite;
  transform:none;
}
@keyframes fish-sprite-4f {
  0%,24.99% { background-image:url('../games/sobe-pisquinho/assets/pisquinho_fish_01.png'); }
  25%,49.99% { background-image:url('../games/sobe-pisquinho/assets/pisquinho_fish_02.png'); }
  50%,74.99% { background-image:url('../games/sobe-pisquinho/assets/pisquinho_fish_03.png'); }
  75%,100% { background-image:url('../games/sobe-pisquinho/assets/pisquinho_fish_04.png'); }
}
/* A pista fica marcada por um ponto, sem aprisionar o peixe em um aro. */
.fish-cell.given::after {
  inset:3px 3px auto auto;
  width:5px;
  height:5px;
  border:0;
  border-radius:50%;
  background:#ffe282;
  box-shadow:0 0 5px rgba(255,218,122,.72);
}
@media (prefers-reduced-motion:reduce) { .fish-symbol { animation:none; background-image:url('../games/sobe-pisquinho/assets/pisquinho_fish_02.png'); } }

/* Cardume em foco: a grade é a interface. Progresso e chances permanecem
   compactos, enquanto as instruções seguem disponíveis ao leitor de tela. */
.screen-reader-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
body.game-screen-active #fish-game .fish-area { max-width:820px; justify-content:center; gap:0; padding:clamp(8px,1.5vh,18px); }
body.game-screen-active #fish-game .fish-campaign-summary { width:min(100%,660px); gap:4px; margin:0 0 5px; }
body.game-screen-active #fish-game .fish-campaign-summary>span { font-size:clamp(.58rem,1.1vh,.7rem); }
body.game-screen-active #fish-game .fish-campaign-progress { height:5px; }
body.game-screen-active #fish-game .fish-tools { width:min(100%,660px); margin:0 0 6px; font-size:clamp(.74rem,1.4vh,.9rem); }
body.game-screen-active #fish-game .fish-board { flex-basis:var(--fish-board-size,min(100%,660px,68dvh)); width:var(--fish-board-size,min(100%,660px,68dvh)); height:var(--fish-board-size,min(100%,660px,68dvh)); }
@media (max-width:620px) { body.game-screen-active #fish-game .fish-area { padding:7px 8px; } body.game-screen-active #fish-game .fish-campaign-summary { margin-bottom:4px; } body.game-screen-active #fish-game .fish-tools { margin-bottom:5px; } body.game-screen-active #fish-game .fish-board { flex-basis:var(--fish-board-size,min(100%,600px,62dvh)); width:var(--fish-board-size,min(100%,600px,62dvh)); height:var(--fish-board-size,min(100%,600px,62dvh)); } }

/* Ajuda do Cardume: fica no cabeçalho, mas abre um guia curto e interno. */
.fish-header-stats { align-items:stretch; }
.fish-howto-button { display:grid; min-width:104px; min-height:100%; align-content:center; justify-items:center; gap:3px; padding:9px 11px; border:1px solid rgba(121,228,215,.42); border-radius:14px; color:#dafbf5; background:linear-gradient(145deg,rgba(24,91,104,.74),rgba(9,35,51,.9)); box-shadow:inset 0 1px rgba(255,255,255,.12),0 9px 20px rgba(0,0,0,.16); font:inherit; font-size:.72rem; font-weight:900; line-height:1.05; transition:transform var(--arcade-motion),border-color var(--arcade-motion),box-shadow var(--arcade-motion),background var(--arcade-motion); }
.fish-howto-button>span { display:grid; width:19px; height:19px; place-items:center; border-radius:50%; color:#072733; background:#79e4d7; font-size:.82rem; font-weight:950; }
.fish-howto-button:hover,.fish-howto-button:focus-visible { border-color:#b6fff5; outline:0; background:linear-gradient(145deg,rgba(37,127,140,.84),rgba(11,54,70,.96)); box-shadow:0 0 0 3px rgba(121,228,215,.16),0 12px 26px rgba(0,0,0,.24); transform:translateY(-2px); }
.fish-howto-dialog { position:fixed; z-index:50; inset:0; display:grid; place-items:center; padding:20px; background:rgba(2,12,23,.78); backdrop-filter:blur(8px); animation:arcade-dialog-in 180ms ease-out; }
.fish-howto-dialog[hidden] { display:none; }
.fish-howto-panel { position:relative; width:min(100%,530px); max-height:min(760px,calc(100dvh - 34px)); overflow:auto; padding:clamp(24px,4vw,36px); border:1px solid rgba(121,228,215,.52); border-radius:24px; background:radial-gradient(circle at 82% 4%,rgba(98,227,218,.15),transparent 28%),#102b3b; box-shadow:0 28px 80px rgba(0,0,0,.54),inset 0 1px rgba(255,255,255,.08); animation:arcade-panel-in 220ms cubic-bezier(.2,.85,.3,1.16); }
.fish-howto-panel h2 { margin:0 0 8px; color:#effffb; font-size:clamp(1.9rem,5vw,2.55rem); letter-spacing:-.055em; }
.fish-howto-copy { margin:0 0 20px; color:#b9d7dd; line-height:1.52; }
.fish-howto-close { position:absolute; top:14px; right:14px; display:grid; width:36px; height:36px; place-items:center; border:1px solid rgba(121,228,215,.34); border-radius:11px; color:#d7fbf7; background:rgba(4,28,42,.7); font-size:1.3rem; line-height:1; }
.fish-howto-close:hover,.fish-howto-close:focus-visible { border-color:#a9fff4; outline:0; background:rgba(24,93,103,.7); }
.fish-howto-steps { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.fish-howto-steps li { display:grid; grid-template-columns:31px minmax(0,1fr); align-items:start; gap:10px; padding:11px; border:1px solid rgba(188,236,231,.12); border-radius:14px; color:#c9e1e4; background:rgba(3,24,36,.42); line-height:1.38; }
.fish-howto-steps b { display:grid; width:29px; height:29px; place-items:center; border-radius:9px; color:#073238; background:#79e4d7; font-size:.86rem; }
.fish-howto-steps strong { color:#f1fffc; }
.fish-howto-tip { display:flex; gap:8px; margin:15px 0 19px; color:#f5dfa9; font-size:.86rem; line-height:1.42; }
.fish-howto-tip span { color:#79e4d7; }
.fish-howto-panel .primary-button { width:100%; min-height:46px; }
@media (max-width:620px) { .fish-header-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; margin-top:11px; }.fish-header-stats .score-box,.fish-header-stats .level-box { min-width:0; }.fish-howto-button { grid-column:1/-1; min-height:38px; grid-template-columns:auto auto; justify-content:center; align-items:center; align-content:center; gap:7px; padding:8px; }.fish-howto-panel { border-radius:20px; }.fish-howto-steps li { padding:9px; font-size:.9rem; } }

/* Plataforma Arcade: comandos ilustrados continuam sendo botões HTML
   acessíveis. Retornos usam texto nativo e ícone CSS para permanecerem
   nítidos, traduzíveis e legíveis em qualquer densidade de tela. */
.scoreboard-link,
.achievement-link,
#dialog-home,
#aquabit-fullscreen,
[data-embedded-fullscreen] {
  overflow:hidden;
  border:0 !important;
  color:transparent !important;
  background-color:transparent !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:contain !important;
  box-shadow:none !important;
  font-size:0 !important;
  text-indent:-9999px;
  white-space:nowrap;
}
.scoreboard-link { width:clamp(118px,12.5vw,142px); min-width:118px; height:46px; min-height:46px; padding:0; background-image:url('../assets/platform/placares.png') !important; }
.achievement-link { width:clamp(124px,13vw,148px); min-width:124px; height:46px; min-height:46px; padding:0; background-image:url('../assets/platform/conquistas.png') !important; }
.achievement-link::after,.scoreboard-link::after { display:none !important; content:none !important; }
.back-link,
.platform-back-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  width:max-content;
  min-width:104px;
  min-height:44px;
  padding:0 15px;
  overflow:visible;
  border:1px solid rgba(121,228,215,.5) !important;
  border-radius:14px;
  color:#f4fbff !important;
  background:linear-gradient(145deg,rgba(20,70,112,.96),rgba(8,38,72,.98)) !important;
  box-shadow:0 7px 18px rgba(0,13,35,.24),inset 0 1px 0 rgba(255,255,255,.14) !important;
  font-size:.86rem !important;
  font-weight:800;
  letter-spacing:.035em;
  line-height:1;
  text-indent:0;
  text-decoration:none;
  white-space:nowrap;
}
.back-link { margin:0 0 9px; }
.platform-back-link { margin:22px auto 0; }
.back-link::before,
.platform-back-link::before {
  content:"";
  width:10px;
  height:10px;
  flex:0 0 10px;
  border-left:2.5px solid currentColor;
  border-bottom:2.5px solid currentColor;
  transform:rotate(45deg);
}
.back-link:hover,
.platform-back-link:hover {
  border-color:rgba(121,228,215,.88) !important;
  background:linear-gradient(145deg,rgba(29,93,143,.98),rgba(10,50,91,.98)) !important;
}
#dialog-home { flex:0 0 146px; width:146px; min-width:146px; height:48px; min-height:48px; padding:0; background-image:url('../assets/platform/inicio.png') !important; }
#aquabit-fullscreen,[data-embedded-fullscreen] { flex:0 0 142px !important; width:142px !important; min-width:142px; height:46px; min-height:46px; padding:0 !important; background-image:url('../assets/platform/tela-cheia.png') !important; }
.scoreboard-link:hover,.achievement-link:hover,.back-link:hover,.platform-back-link:hover,#dialog-home:hover,#aquabit-fullscreen:hover,[data-embedded-fullscreen]:hover { filter:brightness(1.12); transform:translateY(-1px); }
.scoreboard-link:active,.achievement-link:active,.back-link:active,.platform-back-link:active,#dialog-home:active,#aquabit-fullscreen:active,[data-embedded-fullscreen]:active { filter:brightness(.98); transform:translateY(1px) scale(.98); }
.scoreboard-link:focus-visible,.achievement-link:focus-visible,.back-link:focus-visible,.platform-back-link:focus-visible,#dialog-home:focus-visible,#aquabit-fullscreen:focus-visible,[data-embedded-fullscreen]:focus-visible { outline:3px solid rgba(121,228,215,.82); outline-offset:3px; border-radius:10px; }

/* Cabeçalho estreito: preserva o ícone reconhecível de cada arte sem forçar
   rolagem horizontal. Em telas maiores, o rótulo completo volta a aparecer. */
@media (max-width:820px) {
  .scoreboard-link,.achievement-link { width:46px; min-width:46px; height:42px; min-height:42px; background-position:center !important; background-size:42px 42px !important; }
  .scoreboard-link { background-image:url('../assets/platform/placares-icone.png') !important; }
  .achievement-link { background-image:url('../assets/platform/conquistas-icone.png') !important; }
}
@media (max-width:620px) {
  .back-link { min-width:96px; min-height:44px; margin-bottom:7px; padding-inline:13px; }
  #aquabit-fullscreen,[data-embedded-fullscreen] { flex-basis:118px !important; width:118px !important; min-width:118px; height:38px; min-height:38px; }
  #dialog-home { flex-basis:126px; width:126px; min-width:126px; height:42px; min-height:42px; }
}

/* Amigos e convites: o código da sala continua sendo uma chave interna e
   efêmera; a pessoa escolhe alguém da lista e o Arcade faz o restante. */
.friends-link { position:relative; display:inline-flex; width:clamp(118px,12.5vw,142px); min-width:118px; height:46px; min-height:46px; align-items:center; justify-content:center; overflow:visible; padding:0; border:0; border-radius:0; color:transparent; background-color:transparent; background-image:url('../assets/platform/amigos.png'); background-repeat:no-repeat; background-position:center; background-size:contain; box-shadow:none; font:inherit; font-size:0; white-space:nowrap; transition:filter var(--arcade-motion),transform var(--arcade-motion); }
.friends-link:hover { filter:brightness(1.12); transform:translateY(-1px); }
.friends-link:active { filter:brightness(.98); transform:translateY(1px) scale(.98); }
.friends-link:focus-visible { outline:3px solid rgba(121,228,215,.82); outline-offset:3px; border-radius:10px; }
.friends-link-label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
.friends-link b { position:absolute; top:-7px; right:-6px; display:grid; min-width:20px; height:20px; place-items:center; padding:0 5px; border:2px solid #061522; border-radius:999px; color:#071727; background:#ffd467; font-size:.62rem; line-height:1; }
.friends-link b[hidden] { display:none; }
.friends-panel { width:min(calc(100vw - 30px),640px); max-height:min(86dvh,780px); overflow:auto; padding:34px 30px 28px; text-align:left; }
.friends-panel>h2,.friends-panel>.eyebrow,.friends-panel>#friends-copy { text-align:center; }
.friend-add-form { display:grid; gap:7px; margin:22px 0 18px; }
.friend-add-form label,.friends-section h3 { color:#9ddbd7; font-size:.67rem; font-weight:900; letter-spacing:.13em; }
.friend-add-form>div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.friend-add-form input{ min-width:0; min-height:47px; padding:11px 13px; border:1px solid rgba(121,228,215,.34); border-radius:12px; outline:0; color:#effffd; background:#071f30; font:inherit; font-size:.92rem; font-weight:800; }
.friend-add-form input:focus{ border-color:#79e4d7; box-shadow:0 0 0 3px rgba(121,228,215,.14); }
.friend-add-form input::-webkit-search-cancel-button { filter:invert(1); opacity:.72; }
.friends-section { display:grid; gap:8px; padding:14px 0; border-top:1px solid rgba(121,228,215,.13); }
.friend-suggestions-section { padding:12px; border:1px solid rgba(121,228,215,.14); border-radius:15px; background:rgba(5,31,46,.34); }
.friends-section h3 { margin:0; }
.friends-list { display:grid; gap:8px; }
.friend-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; min-height:54px; padding:9px 10px 9px 13px; border:1px solid rgba(121,228,215,.15); border-radius:13px; background:rgba(3,25,39,.48); }
.friend-row-copy { display:grid; gap:2px; min-width:0; }
.friend-row-copy strong { overflow:hidden; color:#effffd; font-size:.9rem; text-overflow:ellipsis; white-space:nowrap; }
.friend-row-copy small { color:#9ebcc4; font-size:.68rem; line-height:1.3; }
.friend-row-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.friend-row-actions button { min-height:34px; padding:7px 10px; border:1px solid rgba(121,228,215,.28); border-radius:9px; color:#dffefa; background:rgba(15,61,76,.66); font:inherit; font-size:.68rem; font-weight:900; }
.friend-row-actions button[data-friend-action="accept"] { border-color:rgba(121,228,215,.62); color:#07232c; background:#79e4d7; }
.friend-row-actions button[data-friend-action="reject"],.friend-row-actions button[data-friend-action="remove"] { color:#ffc0c0; }
.friend-row.is-suggestion { border-color:rgba(121,228,215,.26); background:rgba(8,43,57,.68); }
.friend-row-actions button:disabled { cursor:default; opacity:.58; color:#9ebcc4; background:rgba(22,49,62,.52); }
.friend-empty { margin:0; padding:11px; border:1px dashed rgba(121,228,215,.18); border-radius:12px; color:#8daeb7; font-size:.78rem; text-align:center; }
#friends-message { min-height:20px; margin-top:8px; text-align:center; }

@media (max-width:820px) {
  .friends-link { width:46px; min-width:46px; height:42px; min-height:42px; background-image:url('../assets/platform/amigos-icone.png'); background-size:42px 42px; }
}
@media (max-width:620px) {
  .friends-panel { padding:28px 16px 22px; border-radius:19px; }
  .friend-add-form>div { grid-template-columns:1fr; }
  .friend-row { grid-template-columns:1fr; }
  .friend-row-actions { justify-content:stretch; }
  .friend-row-actions button { flex:1; }

}

/* Presença ao vivo: a lógica continua no mesmo elemento, enquanto o valor
   dinâmico ocupa o visor vazado da arte oficial. */
.online-counter {
  position:relative;
  display:block;
  width:clamp(118px,12.5vw,142px);
  min-width:118px;
  height:auto;
  min-height:0;
  aspect-ratio:3 / 1;
  overflow:visible;
  padding:0;
  border:0;
  border-radius:0;
  color:transparent;
  background:transparent;
  box-shadow:none;
  box-sizing:border-box;
}
.online-counter-art {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
  transition:filter var(--arcade-motion),opacity var(--arcade-motion);
}
.online-counter strong {
  position:absolute;
  z-index:1;
  top:50%;
  left:40.7%;
  display:grid;
  width:30%;
  min-width:0;
  height:50%;
  place-items:center;
  transform:translate(-50%,-50%);
  color:#f5fdff;
  font-size:clamp(.72rem,1vw,.9rem);
  font-weight:950;
  line-height:1;
  letter-spacing:.02em;
  text-align:center;
  text-shadow:0 0 5px rgba(83,225,255,.95),0 1px 2px rgba(0,7,28,.95);
  font-variant-numeric:tabular-nums;
}
.online-counter.is-live .online-counter-art { filter:brightness(1.06); }
.online-counter.is-unavailable .online-counter-art { filter:saturate(.42) brightness(.78); opacity:.76; }
.online-counter.is-unavailable strong { color:#b2c4cd; text-shadow:0 1px 2px rgba(0,7,28,.9); }

@media (max-width:520px) {
  .online-counter {
    display:block;
    width:74px;
    min-width:74px;
    height:auto;
    min-height:0;
    aspect-ratio:3 / 1;
    padding:0;
    border-radius:0;
  }
  .online-counter strong { font-size:.62rem; }
}
@media (max-width:390px) {
  .online-counter { width:82px; min-width:82px; height:auto; min-height:0; padding:0; }
}

/* Home Fliperama: um salão visual independente do runtime dos jogos. */
#home { position:relative; isolation:isolate; }
#home > :not(.fliperama-home-art) { position:relative; z-index:1; }
.fliperama-home-art { position:absolute; z-index:0; inset:0 -30px auto; height:860px; overflow:hidden; pointer-events:none; opacity:.72; mask-image:linear-gradient(to bottom,#000 0 68%,transparent 98%); }
.fliperama-home-art::before { position:absolute; z-index:1; inset:0; content:""; background:radial-gradient(ellipse at 50% 36%,transparent 8%,rgba(2,7,22,.38) 57%,rgba(2,7,22,.88) 100%); }
.fliperama-home-art img { position:absolute; max-width:none; object-fit:contain; }
.fliperama-home-art-moon { top:5px; right:3%; width:min(25vw,290px); }
.fliperama-home-art-fish-large { top:160px; left:-2%; width:min(28vw,300px); }
.fliperama-home-art-fish-small { top:225px; right:8%; width:min(13vw,156px); }
.fliperama-home-art-reef-left { bottom:38px; left:-4%; width:min(29vw,330px); }
.fliperama-home-art-reef-right { right:-3%; bottom:35px; width:min(31vw,350px); }
.fliperama-home-art-row { right:50%; bottom:30px; width:min(68vw,680px); transform:translateX(50%); opacity:.82; }
.fliperama-home-art-lights { right:50%; bottom:0; width:min(80vw,900px); transform:translateX(50%); opacity:.7; }
#home .dashboard-hero { max-width:720px; padding-top:0; }
#home .dashboard-hero .hero-copy { margin-bottom:26px; }

/* Ações utilitárias cabem na barra; o menu conserva as artes oficiais. */
.arcade-quick-menu-wrap { position:relative; z-index:18; }
.arcade-quick-menu-button { display:grid; width:46px; height:42px; place-items:center; padding:0; border:1px solid rgba(82,220,255,.5); border-radius:12px; color:#dffaff; background:linear-gradient(145deg,#123866,#07152b); box-shadow:0 0 16px rgba(31,137,255,.16),inset 0 1px rgba(255,255,255,.13); font-size:1.28rem; line-height:1; }
.arcade-quick-menu-button:hover,.arcade-quick-menu-wrap.is-open .arcade-quick-menu-button { border-color:#b9f8ff; color:#fff; background:#164a7e; box-shadow:0 0 20px rgba(82,220,255,.3); }
.arcade-quick-menu { position:absolute; top:calc(100% + 10px); right:0; display:grid; width:142px; gap:6px; padding:8px; border:1px solid rgba(82,220,255,.5); border-radius:15px; background:linear-gradient(155deg,rgba(5,26,52,.98),rgba(3,13,31,.98)); box-shadow:0 18px 38px rgba(0,0,0,.42),0 0 24px rgba(58,169,255,.12); opacity:0; pointer-events:none; transform:translateY(-7px) scale(.97); transform-origin:top right; transition:opacity .18s ease,transform .18s ease; }
.arcade-quick-menu-wrap.is-open .arcade-quick-menu { opacity:1; pointer-events:auto; transform:none; }
.arcade-quick-menu .scoreboard-link,.arcade-quick-menu .friends-link,.arcade-quick-menu .achievement-link { width:122px; min-width:122px; height:40px; min-height:40px; margin:0 auto; overflow:visible; background-position:center !important; background-size:112px auto !important; }
.arcade-quick-menu .arcade-fix-button { width:100%; min-height:39px; border:1px solid rgba(255,180,102,.56); border-radius:10px; color:#fff0d6; background:linear-gradient(145deg,rgba(151,75,33,.72),rgba(74,28,29,.82)); box-shadow:inset 0 1px rgba(255,255,255,.12); font:inherit; font-size:.74rem; font-weight:950; letter-spacing:.12em; }
.arcade-quick-menu .arcade-fix-button:hover,.arcade-quick-menu .arcade-fix-button:focus-visible { border-color:#ffe2a7; color:#fff; background:linear-gradient(145deg,rgba(194,100,39,.88),rgba(104,35,39,.94)); box-shadow:0 0 0 3px rgba(255,179,101,.16),0 0 17px rgba(255,132,86,.2); outline:0; }
.arcade-quick-menu .language-toggle { width:100%; min-height:39px; border:1px solid rgba(82,220,255,.3); border-radius:10px; color:#baf7ff; background:rgba(30,101,156,.24); font-weight:900; letter-spacing:.08em; }
.arcade-quick-menu .language-toggle:hover { border-color:var(--aqua); background:rgba(82,220,255,.17); }
.arcade-home-view-toggle { display:flex; width:100%; min-height:39px; align-items:center; justify-content:center; gap:8px; border:1px solid rgba(82,220,255,.3); border-radius:10px; color:#d7fbff; background:rgba(30,101,156,.24); font:inherit; font-size:.75rem; font-weight:900; letter-spacing:.015em; }
.arcade-home-view-toggle span:first-child { color:#65e7ff; font-size:1rem; line-height:1; }
.arcade-home-view-toggle:hover { border-color:var(--aqua); background:rgba(82,220,255,.17); }
.arcade-home-view-toggle:focus-visible { outline:3px solid rgba(121,228,215,.82); outline-offset:3px; }
.arcade-fix-panel { width:min(calc(100vw - 34px),460px); text-align:left; }
.arcade-fix-panel .dialog-icon { margin-inline:0; }
.arcade-fix-panel h2 { margin:5px 0 10px; }
.arcade-fix-list { display:grid; gap:7px; margin:18px 0 0; padding-left:20px; color:#b9d7dd; font-size:.82rem; line-height:1.42; }
.arcade-fix-status { min-height:20px; margin:17px 0 0; color:#a9eefa !important; font-size:.79rem; font-weight:800; line-height:1.4; }
.arcade-fix-status.is-error { color:#ffaaa5 !important; }
.arcade-fix-panel.is-repairing .dialog-actions { opacity:.62; pointer-events:none; }

/* Seleção de gabinete da home. Os cartões originais seguem abaixo como catálogo. */
.arcade-home-warmup { position:fixed; z-index:1200; inset:0; display:grid; place-items:center; padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); color:#e9fbff; background:#000207; transition:opacity .3s ease,visibility .3s ease; }
.arcade-home-warmup[hidden],.arcade-home-warmup.is-ready { opacity:0; visibility:hidden; pointer-events:none; }
.arcade-home-warmup-boot { position:relative; display:grid; width:min(100%,760px); max-height:calc(100dvh - 36px); justify-items:center; gap:clamp(10px,2vh,18px); text-align:center; }
.arcade-home-warmup-video-wrap { position:relative; width:min(94vw,760px); overflow:hidden; background:#000207; }
.arcade-home-warmup-video { display:block; width:100%; max-height:min(56dvh,480px); background:#000207; object-fit:contain; }
.arcade-home-warmup-poster { position:absolute; z-index:1; inset:0; width:100%; height:100%; object-fit:contain; pointer-events:none; }
.arcade-home-warmup.is-playing .arcade-home-warmup-poster { visibility:hidden; }
.arcade-home-warmup-text { width:min(94vw,620px); min-height:1.35em; margin:0; overflow:hidden; color:#b9edf7; font-size:clamp(.68rem,2.6vw,.88rem); font-weight:850; letter-spacing:.12em; line-height:1.35; text-align:center; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; text-shadow:0 0 12px rgba(82,220,255,.5); }
.arcade-home-warmup.is-crt-exiting { background:#000207; }
.arcade-home-warmup.is-crt-exiting::after { position:absolute; z-index:2; inset:0; pointer-events:none; content:""; opacity:.14; background:repeating-linear-gradient(to bottom,rgba(225,251,255,.52) 0 1px,rgba(0,0,0,.52) 1px 3px); animation:crt-flicker 300ms linear both; }
.arcade-home-warmup.is-crt-exiting .arcade-home-warmup-boot { will-change:transform,filter; animation:channel-jitter 300ms steps(2,end) both,crt-flicker 300ms linear both; }
.arcade-home-warmup.is-crt-exiting .arcade-home-warmup-video { will-change:transform,filter; animation:v-hold-roll 150ms cubic-bezier(.2,.8,.2,1) both; }
@media (max-width:520px) { .arcade-home-warmup-boot { gap:11px; } .arcade-home-warmup-video { max-height:52dvh; } .arcade-home-warmup-text { letter-spacing:.075em; } }
@media (prefers-reduced-motion:reduce) { .arcade-home-warmup.is-crt-exiting::after,.arcade-home-warmup.is-crt-exiting .arcade-home-warmup-boot,.arcade-home-warmup.is-crt-exiting .arcade-home-warmup-video { animation:none; } }
.fliperama-home-showcase { position:relative; min-height:510px; margin:16px 0 34px; overflow:hidden; border:1px solid rgba(100,174,255,.28); border-radius:25px; background:radial-gradient(ellipse at 50% 100%,rgba(69,216,255,.15),transparent 44%),linear-gradient(180deg,rgba(14,44,82,.76),rgba(3,12,29,.92)); box-shadow:0 24px 48px rgba(0,0,0,.24),inset 0 1px rgba(203,239,255,.09); }
.fliperama-home-showcase::after { position:absolute; z-index:0; right:-12%; bottom:-28%; left:-12%; height:235px; content:""; opacity:.24; background-image:linear-gradient(rgba(123,220,255,.38) 1px,transparent 1px),linear-gradient(90deg,rgba(123,220,255,.38) 1px,transparent 1px); background-size:42px 42px; transform:perspective(360px) rotateX(61deg); transform-origin:bottom; }
.fliperama-cabinets { position:relative; z-index:1; display:flex; height:365px; align-items:end; justify-content:center; gap:clamp(8px,3vw,44px); padding:20px 82px 0; touch-action:pan-y; user-select:none; }
.fliperama-cabinet { position:relative; display:block; flex:0 0 auto; width:min(300px,44vw); aspect-ratio:1170 / 1344; padding:0; border:0; background:transparent; filter:none; transform-origin:bottom center; transition:transform .22s ease,filter .22s ease,opacity .22s ease; }
.fliperama-cabinet:not(.is-selected) { width:184px; opacity:.52; filter:saturate(.65) brightness(.72); transform:translateY(27px) scale(.76); }
.fliperama-cabinet.is-selected { z-index:2; filter:drop-shadow(0 16px 20px rgba(0,0,0,.48)); }
.fliperama-cabinet.is-selected:hover { transform:translateY(-5px); }
.fliperama-cabinet-frame { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; object-fit:contain; }
.fliperama-cabinet-screen { position:absolute; z-index:1; top:26%; left:17%; width:66%; height:36%; padding:3px; overflow:hidden; border-radius:9px; background:radial-gradient(circle at 50% 45%,rgba(41,171,236,.24),#02070f 72%); box-shadow:inset 0 0 16px #000; }
.fliperama-cabinet-screen img { display:block; width:100%; height:100%; object-fit:contain; object-position:center; }
.fliperama-cabinet-screen,.fliperama-cabinet-screen img { backface-visibility:hidden; transform:translateZ(0); }
.fliperama-cabinets.is-channel-switching { pointer-events:none; }
.fliperama-home-showcase.is-crt-switching .fliperama-cabinet-screen { will-change:transform,filter; animation:channel-jitter 300ms steps(2,end) both,crt-flicker 300ms linear both; }
.fliperama-cabinet-screen img.is-crt-vhold { will-change:transform,filter; animation:v-hold-roll 150ms cubic-bezier(.2,.8,.2,1) both; }
.fliperama-crt-static { position:absolute; z-index:3; display:block; pointer-events:none; opacity:0; mix-blend-mode:screen; image-rendering:pixelated; filter:contrast(1.4) brightness(1.25); transition:opacity 45ms linear; }
.fliperama-crt-static.is-active { opacity:.92; }
.fliperama-home-showcase.is-crt-switching .fliperama-cabinet-screen::after { position:absolute; z-index:2; inset:0; pointer-events:none; content:""; opacity:.14; background:repeating-linear-gradient(to bottom,rgba(225,251,255,.52) 0 1px,rgba(0,0,0,.52) 1px 3px); animation:crt-flicker 300ms linear both; }
@keyframes crt-flicker { 0% { opacity:.08; filter:brightness(1) contrast(1); } 18% { opacity:.76; filter:brightness(1.6) contrast(1.4); } 46% { opacity:.55; filter:brightness(1.23) contrast(1.2); } 100% { opacity:.12; filter:brightness(1) contrast(1); } }
@keyframes channel-jitter { 0% { transform:translate3d(0,0,0) skewX(0); } 12% { transform:translate3d(-3px,0,0) skewX(-1.4deg); } 25% { transform:translate3d(4px,0,0) skewX(1.6deg); } 43% { transform:translate3d(-2px,1px,0) skewX(-.8deg); } 64% { transform:translate3d(2px,0,0) skewX(.7deg); } 100% { transform:translate3d(0,0,0) skewX(0); } }
@keyframes v-hold-roll { 0% { opacity:.35; transform:translate3d(0,-9%,0) scaleY(1.07); filter:brightness(1.52) contrast(1.34); } 35% { opacity:1; transform:translate3d(0,4%,0) scaleY(.97); } 100% { opacity:1; transform:translate3d(0,0,0) scaleY(1); filter:brightness(1) contrast(1); } }
@media (prefers-reduced-motion:reduce) { .fliperama-home-showcase.is-crt-switching .fliperama-cabinet-screen,.fliperama-cabinet-screen img.is-crt-vhold { animation:none; }.fliperama-crt-static { display:none; } }
.fliperama-carousel-control { position:absolute; z-index:4; top:43%; display:grid; width:44px; height:44px; place-items:center; border:1px solid rgba(139,218,255,.35); border-radius:50%; color:#f2feff; background:rgba(3,13,31,.78); font-size:1.3rem; backdrop-filter:blur(8px); }
.fliperama-carousel-control:hover { border-color:#9df3ff; color:#9df3ff; background:#0a3156; }
.fliperama-previous { left:20px; }.fliperama-next { right:20px; }
.fliperama-selected-game { position:relative; z-index:2; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:center; min-height:145px; padding:23px 28px; border-top:1px solid rgba(112,190,255,.16); background:rgba(2,10,24,.82); backdrop-filter:blur(12px); }
.fliperama-selected-game .eyebrow { margin:0 0 7px; color:#83efff; }.fliperama-selected-game h2 { margin:0; font-size:1.72rem; letter-spacing:-.05em; }.fliperama-selected-game p:not(.eyebrow) { max-width:690px; margin:7px 0 0; color:#a6bed2; line-height:1.45; }
.fliperama-play-button { min-width:162px; min-height:47px; padding:0 20px; border:0; border-radius:999px; color:#06101e; background:linear-gradient(110deg,#61dbff,#e2fdff 60%,#cbaeff); box-shadow:0 0 23px rgba(82,220,255,.25); font-size:.8rem; font-weight:950; letter-spacing:.08em; }.fliperama-play-button:hover { transform:translateY(-2px); filter:brightness(1.06); }
#home .game-cards { position:relative; padding-top:12px; }.privacy-note { position:relative; }

/* O desktop nasce no salão Fliperama. Em telas compactas, o catálogo clássico
   continua sendo a primeira leitura até a pessoa escolher explicitamente o dashboard. */
html[data-arcade-home-view="classic"] .fliperama-home-art,
html[data-arcade-home-view="classic"] .arcade-dashboard-status,
html[data-arcade-home-view="classic"] .fliperama-filters,
html[data-arcade-home-view="classic"] .fliperama-home-showcase { display:none; }
html[data-arcade-home-view="classic"] #home .dashboard-hero { max-width:720px; padding-top:0; }
html[data-arcade-home-view="classic"] #home .game-cards { padding-top:0; }
html[data-arcade-home-view="classic"] #home .game-card-art { width:clamp(76px,9vw,96px); height:clamp(76px,9vw,96px); aspect-ratio:1; margin-bottom:12px; padding:5px; border-radius:19px; box-sizing:border-box; }
html[data-arcade-home-view="classic"] #home .game-card-art img { width:100%; height:100%; object-fit:contain; object-position:center; }

@media (max-width:680px) {
  html:not([data-arcade-home-view="dashboard"]) .fliperama-home-art,
  html:not([data-arcade-home-view="dashboard"]) .arcade-dashboard-status,
  html:not([data-arcade-home-view="dashboard"]) .fliperama-filters,
  html:not([data-arcade-home-view="dashboard"]) .fliperama-home-showcase { display:none; }
  .fliperama-home-art { inset-inline:-16px; height:685px; opacity:.56; }.fliperama-home-art-moon { right:-6%; width:190px; }.fliperama-home-art-fish-large { top:185px; left:-14%; width:210px; }.fliperama-home-art-fish-small { top:215px; right:3%; width:98px; }.fliperama-home-art-row { bottom:80px; width:580px; }.fliperama-home-art-reef-left { bottom:30px; left:-17%; width:235px; }.fliperama-home-art-reef-right { right:-17%; bottom:32px; width:260px; }
  .fliperama-home-showcase { min-height:420px; margin-inline:-2px; border-radius:20px; }.fliperama-cabinets { height:294px; gap:0; padding:16px 20px 0; }.fliperama-cabinet { width:min(222px,58vw); }.fliperama-cabinet:not(.is-selected) { width:138px; transform:translateY(23px) scale(.68); }.fliperama-carousel-control { top:39%; width:38px; height:38px; }.fliperama-previous { left:8px; }.fliperama-next { right:8px; }
  .fliperama-selected-game { grid-template-columns:1fr; gap:14px; min-height:126px; padding:17px 18px 19px; }.fliperama-selected-game h2 { font-size:1.45rem; }.fliperama-selected-game p:not(.eyebrow) { font-size:.86rem; }.fliperama-play-button { width:100%; min-height:43px; }
  .arcade-quick-menu { width:140px; }.arcade-quick-menu .scoreboard-link,.arcade-quick-menu .friends-link,.arcade-quick-menu .achievement-link { width:120px; min-width:120px; height:40px; min-height:40px; background-size:110px auto !important; }
}
@media (max-width:390px) {
  .fliperama-cabinets { padding-inline:4px; }.fliperama-cabinet { width:204px; }.fliperama-cabinet:not(.is-selected) { width:122px; }.fliperama-carousel-control { width:34px; height:34px; }.arcade-quick-menu { right:-2px; width:136px; }.arcade-quick-menu .scoreboard-link,.arcade-quick-menu .friends-link,.arcade-quick-menu .achievement-link { width:116px; min-width:116px; height:39px; min-height:39px; background-size:106px auto !important; }
}

/* Enquadramento do hub: mesma leitura do preview, usando o runtime oficial. */
.app-shell { width:min(1180px,100%); }
.topbar { margin-bottom:34px; }
#home .dashboard-hero { max-width:660px; padding:26px 0 6px; }
#home .dashboard-hero h1 { font-size:clamp(2.55rem,5.4vw,4.65rem); line-height:.94; }
#home .dashboard-hero .hero-copy { max-width:575px; margin:16px 0 16px; font-size:.98rem; line-height:1.52; }
#home .arcade-dashboard-status { width:max-content; max-width:100%; margin:0 0 12px; }
.fliperama-filters { display:flex; gap:9px; width:100%; margin:0 0 12px; overflow-x:auto; padding:1px 1px 5px; scrollbar-width:thin; scrollbar-color:rgba(100,221,255,.32) transparent; }
.fliperama-filter { flex:0 0 auto; min-height:39px; padding:0 15px; border:1px solid rgba(142,190,255,.24); border-radius:999px; color:#b9c8dc; background:rgba(6,16,39,.72); box-shadow:inset 0 1px rgba(255,255,255,.04); font:inherit; font-size:.76rem; font-weight:900; letter-spacing:-.01em; transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease; }
.fliperama-filter:hover { border-color:rgba(125,235,255,.7); color:#efffff; transform:translateY(-1px); }
.fliperama-filter:focus-visible { outline:3px solid rgba(125,235,255,.78); outline-offset:3px; }
.fliperama-filter.is-active { border-color:rgba(195,255,255,.76); color:#07203d; background:linear-gradient(112deg,#9bf0ff,#d8f8ff); box-shadow:0 0 18px rgba(82,220,255,.22),inset 0 1px rgba(255,255,255,.72); }
.fliperama-filter span { display:inline-grid; min-width:18px; height:18px; place-items:center; margin-left:4px; border-radius:999px; color:#126278; background:rgba(255,255,255,.55); font-size:.64rem; }
.fliperama-home-showcase { min-height:496px; margin:8px 0 36px; }
.fliperama-cabinets { height:360px; padding-top:0; }
.fliperama-selected-game { min-height:126px; padding-block:18px; }
.fliperama-selected-game h2 { font-size:1.56rem; }
.fliperama-home-art { height:700px; opacity:.65; }
.fliperama-home-art-row { bottom:0; }.fliperama-home-art-lights { bottom:-8px; }
/* Desktop: a arte panorâmica do pacote preenche o salão inteiro, em vez de
   concentrar lua, peixes e corais apenas no primeiro bloco. O centro da
   imagem foi deixado escuro de propósito para manter os textos e gabinetes
   legíveis; as camadas PNG existentes continuam como detalhes de profundidade. */
@media (min-width:681px) {
  html[data-arcade-home-view="dashboard"] #home.active { min-height:max(860px,100dvh); }
  html[data-arcade-home-view="dashboard"] .fliperama-home-art {
    inset:0 -30px;
    height:auto;
    min-height:100%;
    opacity:.78;
    background:
      radial-gradient(ellipse at 50% 37%,rgba(2,10,29,.04) 0 22%,rgba(2,8,24,.35) 69%,rgba(1,6,18,.82) 100%),
      url("../assets/fliperama-home/background/home-background-main.png?v=home-background-v2") center top / cover no-repeat;
    mask-image:linear-gradient(to bottom,#000 0 91%,transparent 100%);
  }
  html[data-arcade-home-view="dashboard"] .fliperama-home-art::before {
    background:radial-gradient(ellipse at 50% 40%,transparent 8%,rgba(2,7,22,.26) 62%,rgba(2,7,22,.7) 100%);
  }
  html[data-arcade-home-view="dashboard"] .fliperama-home-art-moon { top:clamp(4px,2vh,24px); }
  html[data-arcade-home-view="dashboard"] .fliperama-home-art-fish-large { top:20%; }
  html[data-arcade-home-view="dashboard"] .fliperama-home-art-fish-small { top:29%; }
  html[data-arcade-home-view="dashboard"] .fliperama-home-art-row { top:47%; bottom:auto; }
  html[data-arcade-home-view="dashboard"] .fliperama-home-art-lights { bottom:2%; }
  html[data-arcade-home-view="dashboard"] .fliperama-home-art-reef-left { bottom:3%; }
  html[data-arcade-home-view="dashboard"] .fliperama-home-art-reef-right { bottom:2%; }
}
@media (max-width:680px) {
  .topbar { margin-bottom:18px; }
  #home .dashboard-hero { padding-top:12px; }
  #home .dashboard-hero h1 { font-size:clamp(2.32rem,11vw,3.38rem); }
  #home .dashboard-hero .hero-copy { margin:13px 0; font-size:.91rem; }
  #home .arcade-dashboard-status { margin-bottom:8px; }
  .fliperama-filters { gap:7px; margin-bottom:8px; padding-bottom:5px; }
  .fliperama-filter { min-height:36px; padding-inline:13px; font-size:.72rem; }
  .fliperama-home-showcase { min-height:405px; margin-top:5px; }
  .fliperama-cabinets { height:280px; }
}

/* ========================================================================
   VITRINE DE CARTUCHOS — home apenas. Os jogos continuam fora desta camada.
   ======================================================================== */
:root {
  --cabinet-cyan:#65eaff;
  --cabinet-blue:#0a3260;
  --cabinet-shadow:rgba(0,0,0,.52);
  --cartridge-width:128px;
}
html[data-arcade-home-view="dashboard"] #home.active {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:start;
  gap:0;
  min-height:100dvh;
}
html[data-arcade-home-view="dashboard"] #home .game-cards { display:none; }
html[data-arcade-home-view="dashboard"] #home .arcade-vitrine-intro {
  max-width:790px;
  padding:clamp(10px,2vh,24px) 0 6px;
}
html[data-arcade-home-view="dashboard"] #home .arcade-vitrine-intro h1 {
  max-width:760px;
  font-size:clamp(2.25rem,4.4vw,4.7rem);
}
html[data-arcade-home-view="dashboard"] #home .arcade-vitrine-intro .hero-copy { max-width:650px; }
html[data-arcade-home-view="dashboard"] .arcade-dashboard-status {
  margin:0 0 12px;
  border-color:rgba(112,229,255,.42);
  background:rgba(3,18,41,.82);
  box-shadow:0 10px 26px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.11);
  backdrop-filter:blur(12px);
}
.arcade-vitrine {
  position:relative;
  display:grid;
  grid-template-rows:minmax(360px,1fr) auto auto;
  min-height:0 !important;
  margin:0 0 clamp(22px,4vh,42px) !important;
  overflow:visible;
  border:1px solid rgba(115,220,255,.36);
  border-radius:30px;
  background:
    linear-gradient(180deg,rgba(8,38,72,.68),rgba(2,12,30,.9)),
    radial-gradient(ellipse at 50% 10%,rgba(85,224,255,.18),transparent 46%);
  box-shadow:0 30px 64px rgba(0,0,0,.32),inset 0 1px rgba(223,251,255,.16);
  isolation:isolate;
}
.arcade-vitrine::before {
  position:absolute;
  z-index:-1;
  inset:1px;
  border-radius:29px;
  content:"";
  opacity:.62;
  background:
    linear-gradient(90deg,rgba(61,210,255,.12) 1px,transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(61,210,255,.1) 1px,transparent 1px) 0 0 / 42px 42px,
    radial-gradient(ellipse at 50% 100%,rgba(10,131,203,.33),transparent 61%);
  mask-image:linear-gradient(to bottom,transparent,black 18%,black 82%,transparent);
}
.arcade-vitrine::after { display:none; }
.arcade-vitrine-stage {
  position:relative;
  display:grid;
  min-height:clamp(370px,49dvh,580px);
  place-items:end center;
  padding:clamp(12px,2vw,28px) clamp(62px,8vw,130px) 0;
}
.arcade-vitrine-stage::before {
  position:absolute;
  z-index:-1;
  bottom:3%;
  left:50%;
  width:min(740px,78%);
  height:34%;
  border-radius:50%;
  content:"";
  background:radial-gradient(ellipse,rgba(50,219,255,.24),rgba(28,125,199,.08) 46%,transparent 72%);
  filter:blur(5px);
  transform:translateX(-50%);
}
.arcade-vitrine .fliperama-cabinets {
  position:relative;
  z-index:2;
  display:grid;
  width:auto;
  height:auto;
  min-height:0;
  padding:0;
  place-items:end center;
  touch-action:pan-y;
}
.arcade-vitrine .fliperama-cabinet,
.arcade-vitrine .fliperama-cabinet:not(.is-selected) {
  position:relative;
  display:block;
  width:clamp(280px,31vw,460px);
  opacity:1;
  filter:drop-shadow(0 22px 23px rgba(0,0,0,.58)) drop-shadow(0 0 24px rgba(48,219,255,.24));
  transform:none;
}
.arcade-vitrine .fliperama-cabinet:hover { transform:translateY(-4px); }
.arcade-vitrine .fliperama-cabinet:focus-visible { outline:3px solid #d5fcff; outline-offset:7px; border-radius:24px; }
.arcade-vitrine .fliperama-cabinet-screen {
  top:25.7%;
  left:17.05%;
  width:65.9%;
  height:36.25%;
  padding:4px;
  border:1px solid rgba(89,232,255,.45);
  border-radius:11px;
  background:radial-gradient(circle at 50% 40%,rgba(64,215,255,.38),#020914 70%);
  box-shadow:inset 0 0 20px #000,0 0 16px rgba(65,218,255,.18);
}
.arcade-vitrine .fliperama-cabinet-screen::before {
  position:absolute;
  z-index:1;
  inset:0;
  pointer-events:none;
  content:"";
  opacity:.25;
  background:repeating-linear-gradient(to bottom,rgba(225,252,255,.52) 0 1px,rgba(0,0,0,.5) 1px 3px);
  mix-blend-mode:screen;
}
.arcade-vitrine .fliperama-cabinet-screen img { image-rendering:auto; }
.arcade-vitrine .fliperama-carousel-control {
  top:50%;
  z-index:7;
  width:52px;
  height:52px;
  border-color:rgba(123,240,255,.56);
  background:linear-gradient(145deg,rgba(12,59,101,.96),rgba(3,14,36,.96));
  box-shadow:0 10px 28px rgba(0,0,0,.33),inset 0 1px rgba(255,255,255,.16);
  transform:translateY(-50%);
}
.arcade-vitrine .fliperama-carousel-control:focus-visible { outline:3px solid #e6ffff; outline-offset:4px; }
.arcade-vitrine .fliperama-previous { left:clamp(12px,2vw,30px); }
.arcade-vitrine .fliperama-next { right:clamp(12px,2vw,30px); }
.pisquinho-copilot {
  position:absolute;
  z-index:5;
  right:clamp(14px,3.4vw,56px);
  bottom:clamp(12px,4vh,46px);
  display:flex;
  width:min(230px,22vw);
  align-items:end;
  gap:3px;
  pointer-events:none;
}
.pisquinho-copilot img {
  width:clamp(70px,8vw,120px);
  height:auto;
  filter:drop-shadow(0 9px 12px rgba(0,0,0,.45));
  transform:rotate(-3deg);
}
.pisquinho-copilot p {
  min-width:0;
  margin:0 0 16px -18px;
  padding:9px 11px;
  border:1px solid rgba(124,236,255,.52);
  border-radius:13px 13px 13px 3px;
  color:#dbfaff;
  background:rgba(3,25,54,.91);
  box-shadow:0 9px 22px rgba(0,0,0,.27);
  font-size:clamp(.67rem,.78vw,.82rem);
  font-weight:760;
  line-height:1.3;
}
.arcade-vitrine .fliperama-selected-game {
  z-index:4;
  grid-template-columns:minmax(0,1fr) auto;
  min-height:0;
  padding:18px clamp(20px,3vw,38px);
  border-top:1px solid rgba(110,227,255,.18);
  border-bottom:1px solid rgba(110,227,255,.16);
  background:linear-gradient(90deg,rgba(2,13,32,.86),rgba(7,35,67,.72));
}
.arcade-vitrine .fliperama-selected-game h2 { font-size:clamp(1.55rem,2.5vw,2.35rem); }
.arcade-vitrine .fliperama-selected-game p:not(.eyebrow) { max-width:720px; font-size:.9rem; }
.arcade-vitrine .fliperama-play-button {
  min-width:176px;
  min-height:54px;
  padding-inline:24px;
  border:1px solid rgba(232,254,255,.62);
  box-shadow:0 0 30px rgba(87,225,255,.31),inset 0 1px rgba(255,255,255,.72);
}
.arcade-cartridge-dock {
  position:relative;
  z-index:4;
  padding:16px clamp(18px,3vw,38px) clamp(18px,2.5vw,30px);
  border-radius:0 0 29px 29px;
  background:linear-gradient(180deg,rgba(4,21,48,.9),rgba(1,9,25,.96));
}
.arcade-cartridge-dock-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:12px; }
.arcade-cartridge-dock-head .eyebrow { margin:0 0 3px; color:#6ee9ff; font-size:.62rem; }.arcade-cartridge-dock-head strong { color:#eefcff; font-size:.95rem; letter-spacing:.035em; }
.arcade-cartridge-dock .fliperama-filters { width:auto; max-width:68%; margin:0; justify-content:flex-end; }
.arcade-cartridges {
  display:grid;
  grid-auto-columns:var(--cartridge-width);
  grid-auto-flow:column;
  gap:12px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  padding:8px 5px 13px;
  scroll-padding-inline:7px;
  scroll-snap-type:inline mandatory;
  scrollbar-color:rgba(95,226,255,.46) rgba(255,255,255,.06);
}
.arcade-cartridge {
  position:relative;
  display:grid;
  min-height:118px;
  padding:9px 8px 8px;
  overflow:hidden;
  border:1px solid rgba(124,194,255,.36);
  border-radius:9px 9px 13px 13px;
  color:#e7faff;
  background:linear-gradient(145deg,#1b426a,#081a35 52%,#071326);
  box-shadow:inset 0 1px rgba(255,255,255,.17),inset 0 -5px rgba(0,0,0,.22),0 8px 16px rgba(0,0,0,.22);
  cursor:pointer;
  isolation:isolate;
  scroll-snap-align:start;
  transition:transform .18s ease,border-color .18s ease,filter .18s ease,box-shadow .18s ease;
}
.arcade-cartridge::before {
  position:absolute;
  z-index:-1;
  top:0;
  left:16%;
  width:68%;
  height:7px;
  border:1px solid rgba(161,227,255,.23);
  border-top:0;
  border-radius:0 0 7px 7px;
  content:"";
  background:rgba(1,9,23,.58);
  box-shadow:inset 0 -2px rgba(255,255,255,.06);
}
.arcade-cartridge::after {
  position:absolute;
  z-index:-1;
  right:8px;
  bottom:7px;
  left:8px;
  height:3px;
  border-radius:4px;
  content:"";
  opacity:.55;
  background:repeating-linear-gradient(90deg,rgba(157,234,255,.7) 0 4px,transparent 4px 8px);
}
.arcade-cartridge:hover,.arcade-cartridge.is-selected,.arcade-cartridge:focus-visible {
  z-index:2;
  border-color:#b9fbff;
  filter:saturate(1.12) brightness(1.1);
  box-shadow:0 0 0 2px rgba(96,228,255,.26),0 12px 24px rgba(0,0,0,.32),0 0 24px rgba(59,215,255,.2),inset 0 1px rgba(255,255,255,.34);
  transform:translateY(-6px);
}
.arcade-cartridge:focus-visible { outline:3px solid #f0ffff; outline-offset:3px; }
.arcade-cartridge-label { display:grid; min-height:65px; place-items:center; overflow:hidden; border:1px solid rgba(196,247,255,.28); border-radius:5px; background:radial-gradient(circle at 50% 30%,rgba(113,225,255,.22),rgba(1,9,24,.82)); }
.arcade-cartridge-label img { width:100%; height:100%; object-fit:cover; transition:transform .2s ease,filter .2s ease; }
.arcade-cartridge:hover .arcade-cartridge-label img,.arcade-cartridge.is-selected .arcade-cartridge-label img { filter:saturate(1.15) contrast(1.05); transform:scale(1.06); }
.arcade-cartridge-title { display:block; overflow:hidden; margin-top:7px; color:#f0fcff; font-size:.67rem; font-weight:950; letter-spacing:.015em; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
.arcade-cartridge-kind { display:block; margin-top:2px; color:#80ddec; font-size:.51rem; font-weight:900; letter-spacing:.1em; text-align:center; text-transform:uppercase; }
@media (max-width:680px) {
  html[data-arcade-home-view="dashboard"] #home .arcade-vitrine-intro { padding-top:9px; }
  html[data-arcade-home-view="dashboard"] #home .arcade-vitrine-intro h1 { font-size:clamp(2rem,10vw,3.1rem); }
  .arcade-vitrine { border-radius:21px; }.arcade-vitrine-stage { min-height:340px; padding:12px 50px 0; }.arcade-vitrine .fliperama-cabinet,.arcade-vitrine .fliperama-cabinet:not(.is-selected) { width:min(258px,65vw); }
  .arcade-vitrine .fliperama-carousel-control { width:40px; height:40px; }.arcade-vitrine .fliperama-previous { left:7px; }.arcade-vitrine .fliperama-next { right:7px; }
  .pisquinho-copilot { right:9px; bottom:6px; width:154px; }.pisquinho-copilot img { width:70px; }.pisquinho-copilot p { margin:0 0 9px -12px; padding:6px 7px; font-size:.6rem; }
  .arcade-vitrine .fliperama-selected-game { grid-template-columns:1fr; gap:12px; padding:15px 17px; }.arcade-vitrine .fliperama-selected-game p:not(.eyebrow) { font-size:.82rem; }.arcade-vitrine .fliperama-play-button { width:100%; min-height:47px; }
  .arcade-cartridge-dock { padding:14px 13px 16px; border-radius:0 0 20px 20px; }.arcade-cartridge-dock-head { display:block; }.arcade-cartridge-dock .fliperama-filters { max-width:none; margin-top:10px; justify-content:flex-start; }.arcade-cartridges { --cartridge-width:111px; gap:9px; padding-bottom:11px; }.arcade-cartridge { min-height:105px; }.arcade-cartridge-label { min-height:55px; }
}
@media (prefers-reduced-motion:reduce) { .arcade-cartridge,.arcade-cartridge-label img { transition:none; } }

/* QA desktop: o palco nunca pode extrapolar o casco da vitrine.  A primeira
   dobra prioriza a leitura do gabinete inteiro; os cartuchos continuam logo
   abaixo, sem transformar o hub em uma coluna minúscula. */
html[data-arcade-home-view="dashboard"] #home .arcade-vitrine-intro {
  max-width:760px;
  padding:clamp(4px,1vh,12px) 0 3px;
}
html[data-arcade-home-view="dashboard"] #home .arcade-vitrine-intro h1 {
  margin:0;
  font-size:clamp(2.1rem,3.85vw,3.85rem);
  line-height:.96;
}
html[data-arcade-home-view="dashboard"] #home .arcade-vitrine-intro .hero-copy {
  margin:10px 0 8px;
  font-size:.9rem;
}
.arcade-vitrine,
.arcade-vitrine-stage {
  width:100%;
  max-width:100%;
  min-width:0;
}
.arcade-vitrine { grid-template-columns:minmax(0,1fr); }
.arcade-vitrine-stage {
  min-height:clamp(350px,43dvh,460px);
  padding-top:clamp(8px,1.35vw,18px);
}
.arcade-vitrine .fliperama-cabinets {
  min-width:0;
  max-width:100%;
}
.arcade-vitrine .fliperama-cabinet,
.arcade-vitrine .fliperama-cabinet:not(.is-selected) {
  width:clamp(300px,26vw,400px);
}
@media (min-width:681px) and (max-height:920px) {
  html[data-arcade-home-view="dashboard"] #home .arcade-vitrine-intro h1 { font-size:clamp(2rem,3.35vw,3.25rem); }
  .arcade-vitrine-stage { min-height:clamp(335px,40dvh,400px); }
  .arcade-vitrine .fliperama-cabinet,
  .arcade-vitrine .fliperama-cabinet:not(.is-selected) { width:clamp(290px,23vw,355px); }
  .pisquinho-copilot { bottom:10px; }
  .arcade-vitrine .fliperama-selected-game { padding-block:13px; }
  .arcade-cartridge-dock { padding-block:12px 15px; }
  .arcade-cartridge { min-height:106px; }
  .arcade-cartridge-label { min-height:56px; }
}

/* Vitrine mais leve: o gabinete flutua no cenário e somente as informações
   do jogo selecionado permanecem como card contornado. */
.arcade-vitrine {
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.arcade-vitrine::before { display:none; }
.arcade-vitrine-stage {
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.arcade-vitrine .fliperama-selected-game {
  margin-top:8px;
  border:1px solid rgba(110,227,255,.3);
  border-radius:18px;
  background:linear-gradient(105deg,rgba(2,13,32,.92),rgba(7,35,67,.82));
  box-shadow:0 16px 34px rgba(0,0,0,.2), inset 0 1px rgba(223,251,255,.1);
}
.arcade-cartridge-dock {
  margin-top:12px;
  padding-inline:0;
  border-radius:0;
  background:transparent;
}
footer {
  padding:20px 13px 18px;
  color:rgba(146,185,207,.72);
  border-top:0;
  font-size:.66rem;
  letter-spacing:.045em;
}

.progress-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:16px 0; }
.progress-toolbar label { display:grid; gap:6px; color:#b8e9ed; font-size:.85rem; font-weight:700; }
.progress-toolbar select { min-height:44px; max-width:100%; padding:8px 12px; border:1px solid #397183; border-radius:10px; color:#edfcff; background:#071d30; font:inherit; }
.progress-toolbar button { min-height:44px; }
.leaderboard-panel { min-width:0; }
.leaderboard-panel .global-leaderboard-status { margin:12px 0; }
.score-entry-dialog { z-index:1210; overflow-y:auto; }
#friends-dialog,#account-dialog { z-index:1208; }
.score-entry-panel { max-height:calc(100dvh - 40px); overflow-y:auto; }
.leaderboard-identity { min-width:0; overflow-wrap:anywhere; }
.leaderboard-value { font-variant-numeric:tabular-nums; white-space:nowrap; }
.leaderboard-list { max-height:620px; overflow-y:auto; overscroll-behavior:contain; }
.achievement-card>div { min-width:0; overflow-wrap:anywhere; }
.achievement-card-state { line-height:1.6; }
@media (max-width:480px) {
  #achievements .game-header { flex-wrap:wrap; }
  #achievements .game-header h1 { font-size:clamp(1.8rem,8vw,2.5rem); }
  .progress-toolbar { align-items:stretch; }
  .progress-toolbar label,.progress-toolbar button { flex:1 1 100%; }
  .leaderboard-row { gap:8px; padding-inline:8px; }
  .leaderboard-panel-head .leaderboard-game-actions { flex-wrap:wrap; }
}

/* Controles da Hub: a placa PNG tem canal alfa real; textos e estados seguem
   no HTML para preservar tradução, foco e leitura por tecnologias assistivas. */
:root { --arcade-control-plate:url('../assets/platform/arcade-control-plate-v1.png'); }
.arcade-quick-menu-button {
  position:relative;
  isolation:isolate;
  overflow:visible;
  border:0;
  background:transparent;
  box-shadow:none;
  transition:transform var(--arcade-motion),filter var(--arcade-motion);
}
.arcade-quick-menu-button::before {
  position:absolute;
  z-index:-1;
  inset:-6px;
  content:"";
  background:var(--arcade-control-plate) center / contain no-repeat;
  filter:drop-shadow(0 0 6px rgba(82,220,255,.28));
}
.arcade-quick-menu-button:hover,.arcade-quick-menu-wrap.is-open .arcade-quick-menu-button { border:0; background:transparent; box-shadow:none; filter:brightness(1.12); transform:translateY(-1px); }
.arcade-quick-menu-button:active { transform:translateY(1px) scale(.96); }
.arcade-quick-menu-button:focus-visible { outline:3px solid rgba(178,245,255,.92); outline-offset:4px; }
.arcade-quick-menu-button>span { position:relative; z-index:1; display:grid; width:100%; height:100%; place-items:center; text-shadow:0 0 9px rgba(218,251,255,.75); }
.arcade-quick-menu .arcade-menu-control {
  position:relative;
  display:grid;
  grid-template-columns:29px minmax(0,1fr);
  width:100%;
  min-height:44px;
  align-items:center;
  gap:8px;
  overflow:hidden;
  padding:4px 11px 4px 5px;
  border:1px solid rgba(105,213,255,.28);
  border-radius:12px;
  color:#dffaff;
  background:linear-gradient(105deg,rgba(7,24,48,.95),rgba(12,48,86,.78));
  box-shadow:inset 0 1px rgba(255,255,255,.09);
  font:inherit;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.055em;
  text-align:left;
  transition:transform var(--arcade-motion),filter var(--arcade-motion),border-color var(--arcade-motion),background var(--arcade-motion);
}
.arcade-quick-menu .arcade-menu-control::before {
  position:absolute;
  z-index:0;
  top:50%;
  left:1px;
  width:35px;
  height:35px;
  content:"";
  background:var(--arcade-control-plate) center / contain no-repeat;
  transform:translateY(-50%);
}
.arcade-quick-menu .arcade-menu-control>* { position:relative; z-index:1; }
.arcade-menu-control-glyph { display:grid; width:27px; height:27px; place-items:center; color:#ebfdff; font-size:1rem; font-weight:950; line-height:1; text-align:center; text-shadow:0 0 7px rgba(102,228,255,.92); }
.arcade-quick-menu .arcade-menu-control:hover { border-color:rgba(162,244,255,.74); background:linear-gradient(105deg,rgba(11,41,78,.98),rgba(20,77,130,.82)); filter:brightness(1.08); transform:translateY(-1px); }
.arcade-quick-menu .arcade-menu-control:active { transform:translateY(1px) scale(.985); }
.arcade-quick-menu .arcade-menu-control:focus-visible { outline:3px solid rgba(178,245,255,.86); outline-offset:2px; }
.arcade-quick-menu .arcade-fix-button.arcade-menu-control { color:#fff0d6; }
.arcade-quick-menu .arcade-fix-button.arcade-menu-control::before { filter:hue-rotate(104deg) saturate(1.28); }
.arcade-quick-menu .arcade-fix-button.arcade-menu-control .arcade-menu-control-glyph { color:#fff0d6; text-shadow:0 0 8px rgba(255,181,101,.92); }
.arcade-quick-menu .arcade-install-button[hidden] { display:none; }
.arcade-quick-menu .arcade-install-button.arcade-menu-control { border-color:rgba(121,247,211,.58); color:#e6fff8; background:linear-gradient(105deg,rgba(5,54,57,.96),rgba(15,104,101,.82)); }
.arcade-quick-menu .arcade-install-button.arcade-menu-control::before { filter:hue-rotate(43deg) saturate(1.22); }
.arcade-quick-menu .arcade-install-button.arcade-menu-control .arcade-menu-control-glyph { color:#c8fff0; text-shadow:0 0 9px rgba(82,255,202,.92); }
.arcade-quick-menu .language-toggle.arcade-menu-control[aria-pressed="true"] { border-color:rgba(230,154,255,.68); background:linear-gradient(105deg,rgba(34,17,68,.96),rgba(76,35,111,.78)); }
.arcade-quick-menu .language-toggle.arcade-menu-control[aria-pressed="true"]::before { filter:hue-rotate(176deg) saturate(1.22); }
.arcade-quick-menu .arcade-home-view-toggle.arcade-menu-control[aria-pressed="true"] { border-color:rgba(129,247,225,.7); background:linear-gradient(105deg,rgba(7,50,64,.96),rgba(17,101,103,.78)); }
.arcade-quick-menu .arcade-home-view-toggle.arcade-menu-control[aria-pressed="true"]::before { filter:hue-rotate(44deg) saturate(1.12); }
@media (max-width:620px) {
  .arcade-quick-menu .arcade-menu-control { min-height:43px; font-size:.74rem; }
  .arcade-quick-menu-button::before { inset:-5px; }
}

/* Mobile Dashboard: o palco se ajusta à largura útil. A página nunca recebe
   rolagem lateral; apenas a faixa de cartuchos pode deslizar horizontalmente. */
@media (max-width:680px) {
  html[data-arcade-home-view="dashboard"],
  html[data-arcade-home-view="dashboard"] body {
    overflow-x:hidden;
    overflow-x:clip;
  }
  html[data-arcade-home-view="dashboard"] #home.active,
  html[data-arcade-home-view="dashboard"] .arcade-vitrine,
  html[data-arcade-home-view="dashboard"] .arcade-vitrine-stage,
  html[data-arcade-home-view="dashboard"] .arcade-vitrine .fliperama-cabinets,
  html[data-arcade-home-view="dashboard"] .arcade-cartridge-dock {
    width:100%;
    min-width:0;
    max-width:100%;
  }
  html[data-arcade-home-view="dashboard"] #home.active { overflow-x:clip; }
  .arcade-vitrine-stage {
    min-height:clamp(300px,44dvh,360px);
    padding-inline:clamp(44px,13vw,56px);
    overflow:clip;
  }
  .arcade-vitrine .fliperama-cabinet,
  .arcade-vitrine .fliperama-cabinet:not(.is-selected) {
    width:258px;
    max-width:100%;
  }
  .arcade-cartridges {
    width:100%;
    min-width:0;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    touch-action:pan-x pan-y;
    -webkit-overflow-scrolling:touch;
  }
}

/* Coleção tátil e fitas clássicas: a etiqueta é o único conteúdo do cartucho. */
.collection-navigation { display:flex; align-items:center; gap:12px; margin:8px 0; color:#a9c9d7; font-size:.76rem; }
/* 2048 — palco integral e peças luminosas, sem alterar as regras. */
body.game-screen-active #game-2048.active { display:grid; grid-template-rows:auto minmax(0,1fr); gap:12px; overflow:hidden; }
#game-2048 .game-header { width:100%; max-width:960px; margin:0 auto; align-items:center; gap:12px; }
#game-2048 .game-header h1 { font-size:clamp(1.35rem,4vw,2.35rem); color:#b2fff3; }
#game-2048 .back-link { min-height:44px; }
.blocks-stats { display:flex; gap:8px; flex-shrink:0; }
#game-2048 .score-box { min-width:82px; padding:10px 12px; border:1px solid #39c9d0; background:linear-gradient(145deg,#123b56,#0a213e); box-shadow:inset 0 1px #a7ffff44,0 5px 16px #0003; }
#game-2048 .score-box:last-child { border-color:#c895ee; }
#game-2048 .score-box strong { color:#ffdd72; font-size:1.5rem; font-variant-numeric:tabular-nums; }
#game-2048 .blocks-area { container-type:size; width:100%; max-width:960px; height:100%; margin:0 auto; padding:14px; gap:14px; border:1px solid #3389ae; background:radial-gradient(ellipse at 30% 0,#14628577,transparent 65%),linear-gradient(140deg,#091b39,#161232); }
body.game-screen-active #game-2048 .board-2048 { width:min(100%,600px,calc(100cqh - 54px)); flex-shrink:0; gap:clamp(5px,1.3vw,10px); padding:clamp(7px,1.5vw,12px); border:1px solid #58c7e3; border-radius:20px; background:linear-gradient(150deg,#163d60,#112747); box-shadow:0 16px 32px #0005,inset 0 1px 0 #c8fbff66; }
#game-2048 .board-2048 { container-type:inline-size; grid-template-columns:repeat(4,minmax(0,1fr)); user-select:none; -webkit-user-select:none; }
#game-2048 .tile { border-radius:12px; border:1px solid #ffffff33; font-family:system-ui,sans-serif; font-size:clamp(1.5rem,10cqw,4rem); font-weight:800; font-variant-numeric:lining-nums tabular-nums; line-height:1; letter-spacing:-.045em; color:#07283e; text-shadow:0 1px #ffffff55; box-shadow:inset 0 3px #ffffff44,inset 0 -4px #0002,0 3px 6px #0002; }
#game-2048 .tile.digits-3 { font-size:clamp(1.3rem,8.6cqw,3.5rem); }
#game-2048 .tile.digits-4 { font-size:clamp(1.1rem,7.2cqw,3rem); }
#game-2048 .tile.digits-5 { font-size:clamp(.95rem,6cqw,2.5rem); }
#game-2048 .tile.digits-6 { font-size:clamp(.85rem,5cqw,2.1rem); }
#game-2048 .tile.digits-7,#game-2048 .tile.digits-8 { font-size:3.7cqw; }
#game-2048 .tile.digits-9,#game-2048 .tile.digits-10 { font-size:3cqw; }
#game-2048 .tile.empty { background:#061d3588; border-color:#ffffff0c; box-shadow:inset 0 2px 5px #0004; }
#game-2048 .tile.v2 { background:linear-gradient(145deg,#73efff,#24b4e6); }
#game-2048 .tile.v4 { background:linear-gradient(145deg,#84ffd6,#19d2a2); }
#game-2048 .tile.v8 { background:linear-gradient(145deg,#fff293,#ffca39); }
#game-2048 .tile.v16 { background:linear-gradient(145deg,#ffd78c,#ff9647); }
#game-2048 .tile.v32 { background:linear-gradient(145deg,#ffad98,#ff756a); }
#game-2048 .tile.v64 { background:linear-gradient(145deg,#ff96cc,#eb4799); color:#281031; }
#game-2048 .tile.v128,#game-2048 .tile.v256 { background:linear-gradient(145deg,#dbb5ff,#a37aef); color:#21143c; }
#game-2048 .tile.v512,#game-2048 .tile.v1024 { background:linear-gradient(145deg,#a5b7ff,#7082ef); color:#171d42; }
#game-2048 .tile.v2048 { background:linear-gradient(145deg,#ffefae,#f6be36); border-color:#ffe891; box-shadow:0 0 20px #ffda6555,inset 0 3px #fff9; color:#52360b; }
#game-2048 .tile.v4096 { background:linear-gradient(145deg,#c2fff1,#47e6d1); border-color:#adfff1; color:#073e3d; }
#game-2048 .tile.v8192 { background:linear-gradient(145deg,#f3daff,#cc9aff); border-color:#efc9ff; color:#321653; }
#undo-2048-copy { margin-top:16px; padding:14px; border:1px solid #d8b65c; border-radius:14px; background:#503f202e; }
#undo-2048-copy p { font-size:.85rem; color:#fff0b3; }
#dialog-undo-2048 { width:100%; min-height:44px; margin-top:12px; background:linear-gradient(120deg,#ffe493,#ffbd52); color:#302209; }
#arcade-dialog { z-index:1200; overflow:auto; grid-template-columns:minmax(0,1fr); }
#arcade-dialog #dialog-home { flex:1 1 0; width:auto; min-width:0; min-height:44px; height:auto; padding:10px 12px; border:1px solid #6bd4d3 !important; border-radius:12px; background:#143a4a !important; color:#eaffff !important; text-indent:0 !important; font-size:.85rem !important; }
#arcade-dialog .dialog-panel { min-width:0; max-width:100%; max-height:calc(100dvh - 40px); overflow-y:auto; }
@media(max-width:360px) { #arcade-dialog .dialog-panel { padding:18px; } #arcade-dialog .dialog-icon { display:none; } #arcade-dialog .dialog-actions { flex-direction:column; margin-top:14px; } #arcade-dialog #dialog-home { flex-basis:auto; } }
@media(max-height:480px) { #arcade-dialog .dialog-panel { padding:16px; } #arcade-dialog .dialog-icon { display:none; } #arcade-dialog .dialog-actions { margin-top:14px; } #undo-2048-copy { margin-top:10px; padding:8px; } }
.blocks-hint { margin:0; color:#b7d8eb; text-align:center; font-size:clamp(.65rem,2vw,.82rem); }
@media(max-width:480px) { #game-2048 .score-box { min-width:68px; padding:8px; } #game-2048 .score-box span { font-size:.52rem; } #game-2048 .blocks-area { padding:10px; } }
@media(max-width:360px) { #game-2048 .game-header { flex-wrap:wrap; gap:8px; } #game-2048 .game-header > div:first-child { display:flex; align-items:center; justify-content:space-between; width:100%; gap:8px; } #game-2048 .back-link { margin:0; } #game-2048 .game-header h1 { font-size:1.25rem; } #game-2048 .blocks-stats { width:100%; } #game-2048 .score-box { flex:1; } }
@media(max-height:480px) and (min-width:600px) {
  body.game-screen-active #game-2048.active { grid-template-columns:minmax(210px,1fr) minmax(0,1.4fr); grid-template-rows:minmax(0,1fr); }
  #game-2048 .game-header { flex-direction:column; justify-content:center; align-items:center; }
  #game-2048 .game-header > div:first-child { display:flex; flex-direction:column; align-items:center; gap:14px; }
  #game-2048 .blocks-stats { flex-wrap:wrap; justify-content:center; }
  #game-2048 .game-header h1 { font-size:1.6rem; }
  #game-2048 .back-link { margin:0; }
  body.game-screen-active #game-2048 .board-2048 { width:min(100%,calc(100cqh - 42px)); }
  #game-2048 .blocks-area { padding:8px; gap:7px; }
}
.collection-navigation span { flex:1; text-align:center; }
.collection-navigation button { width:48px; min-height:44px; border:1px solid #4e7886; border-radius:10px; background:#102b3b; color:#e9ffff; font-size:1.4rem; cursor:pointer; }
.arcade-cartridges { position:relative; scroll-snap-type:x proximity; }
.arcade-cartridge-label img { object-fit:contain; }
/* Preserve empty columns so a filtered cartridge keeps its usual size. */
html[data-arcade-home-view="classic"] #home .game-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:28px 22px; padding:24px 0; }
html[data-arcade-home-view="classic"] #home .game-card { display:block; min-height:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
html[data-arcade-home-view="classic"] #home .game-card > :not(.classic-cartridge) { display:none; }
html[data-arcade-home-view="classic"] #home .game-card .classic-cartridge,
.arcade-color-preview .classic-cartridge,
.cartridge-launch .classic-cartridge { position:relative; display:flex; align-items:center; justify-content:center; width:100%; height:auto; min-height:0; aspect-ratio:1.5; padding:22px 26px 18px; border:0; border-radius:28% 28% 10px 10px / 14% 14% 10px 10px; background:linear-gradient(180deg,#8b98a2 0%,#586873 8%,#344550 12%,#64727d 14%,#3e4f5a 88%,#263640 89%,#34434e 94%,#172833); box-shadow:inset 3px 0 3px #b6c4ca66,inset -4px 0 3px #091a2588,0 9px 0 #14222c,0 17px 22px #0008; color:#fff; cursor:pointer; transition:transform .18s,filter .18s; text-indent:0; font-size:inherit; }
.classic-cartridge::before,.classic-cartridge::after { content:""; position:absolute; top:22%; bottom:16%; width:9%; background:repeating-linear-gradient(180deg,#192d3988 0 2px,#a3b2bb33 2px 4px,transparent 4px 9px); border-radius:3px; }
.classic-cartridge::before { left:4%; }.classic-cartridge::after { right:4%; }
html[data-arcade-home-view="classic"] #home .game-card { animation:none; }
html[data-arcade-home-view="classic"] .arcade-vitrine-intro { margin-block:18px 8px; padding-block:0; }
html[data-arcade-home-view="classic"] .arcade-vitrine-intro h1 { margin-block:10px; font-size:clamp(1.8rem,4vw,2.8rem); }
.classic-cartridge-sticker { display:grid; grid-template-rows:minmax(0,1fr) auto; justify-items:center; gap:3px; width:100%; height:100%; min-height:0; padding:6px; border:2px solid #17252e; border-radius:9px; background:radial-gradient(ellipse at top,#225164,#0c1925 85%); box-shadow:0 1px 0 #becbd777,inset 0 0 0 1px #c5d4db44; }
.classic-cartridge-sticker img { display:block; width:100%; height:100%; min-height:0; max-height:120px; object-fit:contain; }
.classic-cartridge-sticker > span { display:block; width:100%; color:#f1f8ed; font-size:clamp(.7rem,1.3vw,.92rem); font-weight:900; line-height:1.12; text-align:center; white-space:normal; }
html[data-arcade-home-view="classic"] #home .game-card .classic-cartridge:hover { transform:translateY(-5px) rotate(-1deg); filter:brightness(1.12); }
.classic-cartridge:focus-visible { outline:3px solid #8bffff; outline-offset:7px; }
.cartridge-launch { position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;background:radial-gradient(ellipse,#123e53,#030b19 70%);isolation:isolate;overflow:hidden; }
.cartridge-launch-scene { position:relative;width:min(400px,86vw);height:min(330px,65vh);perspective:800px; }
.cartridge-launch-scene::after {content:'';position:absolute;bottom:-16px;left:8%;right:8%;height:24px;border-radius:50%;background:#0007;filter:blur(12px);z-index:-1;}
.cartridge-console-deck {position:absolute;bottom:78px;left:3%;width:94%;height:82px;border-radius:26px 26px 7px 7px;border:1px solid #ede7d8;background:linear-gradient(160deg,#f2ecdf,#c5c3b8);box-shadow:inset 0 3px 1px #fff9;transform:perspective(550px) rotateX(30deg);transform-origin:bottom;}
.cartridge-console-vents {position:absolute;right:6%;top:15px;width:16%;height:28px;border-radius:3px;background:repeating-linear-gradient(0deg,#485255 0 2px,transparent 2px 6px);opacity:.65;}
.cartridge-slot {position:absolute;bottom:12px;left:19%;width:62%;height:16px;border:3px solid #808980;border-bottom-color:#ede5d5;border-radius:5px;background:#101d24;box-shadow:inset 0 4px 3px #000b;}
.cartridge-launch-well {position:absolute;inset:-45px 0 99px;overflow:hidden;z-index:1;}
.cartridge-launch .classic-cartridge {position:absolute;bottom:0;left:24%;width:52%;height:160px;aspect-ratio:auto;padding:18px 17px 14px;border-radius:13px 13px 5px 5px;box-shadow:inset 2px 2px 1px #bcc8ce88,inset -3px 0 2px #091a2588,0 5px 8px #0005;animation:cartridge-seat 1.25s cubic-bezier(.25,.65,.3,1) both;}
.cartridge-console {position:absolute;inset:auto 0 0;height:104px;z-index:2;border:1px solid #b7b9ae;border-radius:10px 10px 18px 18px;background:linear-gradient(#eae5d8 0 6%,#d9d6c9 7% 69%,#929c97 70% 72%,#b8beb4 73% 91%,#525f60 92%);box-shadow:0 16px 28px #0005,inset 1px 2px 1px #fff9,inset -2px 0 2px #717e7955;}
.cartridge-console span {position:absolute;left:22px;top:15px;color:#263f47;font:950 21px/1.2 'Courier New',monospace;letter-spacing:.16em;}
.cartridge-console b {position:absolute;left:23px;top:43px;color:#526969;font:700 7px/1.2 'Courier New',monospace;letter-spacing:.14em;}
.cartridge-console-power {position:absolute;right:22px;top:21px;display:flex;align-items:center;gap:8px;}
.cartridge-console-power small {font:700 7px 'Courier New',monospace;color:#506561;letter-spacing:1px;}
.cartridge-console i {display:block;width:7px;height:7px;border:1px solid #486c5a;background:#73ffb1;border-radius:50%;animation:cartridge-power 1.25s both;}
.cartridge-console-ports {position:absolute;bottom:17px;left:23px;display:flex;align-items:center;gap:8px;}
.cartridge-console-ports em {font:700 8px monospace;color:#374c4f;font-style:normal;}
.cartridge-console-ports s {width:30px;height:10px;border:2px solid #5e716e;border-radius:3px 3px 5px 5px;background:repeating-linear-gradient(90deg,#152d35 0 4px,#768d83 4px 5px);box-shadow:0 1px #eff1dd;}
.cartridge-console-switch {position:absolute;right:25px;bottom:17px;width:33px;height:12px;border:1px solid #394e51;border-radius:3px;background:linear-gradient(#708585,#3d565b);box-shadow:0 2px #253a40;}
.cartridge-launch p { color:#c3e7ef;font-size:.85rem;text-align:center;padding:0 14px; }
.cartridge-launch strong { color:#fff; }
.cartridge-launch-iris { display:none; }
.cartridge-launch.is-seated .classic-cartridge {animation:none;transform:translateY(66px);opacity:1;}
.cartridge-launch.is-seated .cartridge-console i {animation:none;background:#73ffde;box-shadow:0 0 18px #41ffe0;}
.cartridge-launch.is-opening { pointer-events:none;animation:cartridge-reveal .45s ease-in-out both; }
@keyframes cartridge-seat {0% {transform:translateY(-95px) rotate(-6deg);opacity:0;} 15% {opacity:1;} 42% {transform:translateY(-24px) rotate(0);} 58% {transform:translateY(-24px);} 88%,100% {transform:translateY(66px);opacity:1;} }
@keyframes cartridge-power { 0%,75% {background:#4a5661;box-shadow:none;} 100% {background:#73ffde;box-shadow:0 0 18px #41ffe0;} }
@keyframes cartridge-reveal { 0%,12% {opacity:1;} 100% {opacity:0;} }
.cartridge-launch.reduced .classic-cartridge,.cartridge-launch.reduced .cartridge-console i,.cartridge-launch.reduced.is-opening,.cartridge-launch.reduced .cartridge-launch-iris { animation:none; }
@media(max-height:550px) { .cartridge-launch .classic-cartridge { height:105px;padding:12px 20px; }.cartridge-launch .classic-cartridge-sticker img { max-height:65px; } }
@media(max-width:600px) { html[data-arcade-home-view="classic"] #home .game-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 12px; } html[data-arcade-home-view="classic"] #home .game-card .classic-cartridge { padding:15px 18px 12px; } .classic-cartridge-sticker { padding:4px; } .classic-cartridge-sticker img { max-height:76px; } }
@media(prefers-reduced-motion:reduce) { .classic-cartridge { transition:none!important; } }

/* Cardume: acabamento visual isolado, sem alterar as regiões ou os gestos. */
body.game-screen-active #fish-game .fish-area {
  background:radial-gradient(ellipse at 50% 0%,#17475a 0%,#0b2234 65%);
  border-color:#326174;
}
#fish-game .fish-board {
  padding:6px; gap:2px; border:1px solid #b7d3d5;
  border-radius:16px; background:#f5ebd8;
  box-shadow:none;
}
#fish-game .fish-cell {
  border-radius:7px;
  background:linear-gradient(155deg,#ffffff66,#ffffff30),var(--cell-tint) !important;
  box-shadow:none;
}
#fish-game .fish-cell.region-edge-top { border-top:1px solid #627f8999 !important; }
#fish-game .fish-cell.region-edge-right { border-right:1px solid #627f8999 !important; }
#fish-game .fish-cell.region-edge-bottom { border-bottom:1px solid #627f8999 !important; }
#fish-game .fish-cell.region-edge-left { border-left:1px solid #627f8999 !important; }
#fish-game .fish-cell.selected { background:linear-gradient(155deg,#ffffff66,#ffffff30),var(--cell-tint) !important; }
#fish-game .fish-board:hover,#fish-game .fish-cell:hover:not(:disabled),#fish-game .fish-cell.marked,#fish-game .fish-cell.selected { box-shadow:none; }
#fish-game .fish-cell.selected::before { background:transparent; box-shadow:none; }
#fish-game .fish-cell.marked::before,#fish-game .fish-cell.mistake::before {
  content:''; inset:16%; width:auto; height:auto; border:0; border-radius:0;
  background:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M12 6 24 18 36 6 42 12 30 24 42 36 36 42 24 30 12 42 6 36 18 24 6 12Z' fill='%23082032' stroke='%23082032' stroke-width='6' stroke-linejoin='round'/%3E%3Cpath d='M12 6 24 18 36 6 42 12 30 24 42 36 36 42 24 30 12 42 6 36 18 24 6 12Z' fill='%23fff0ba' stroke='%23fff9e0' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M10 35 23 22M29 18 36 11' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  box-shadow:none; filter:none; transform:none;
}
#fish-game .fish-cell.marked::after,#fish-game .fish-cell.mistake::after { content:none; }
#fish-game .fish-cell.mistake::before {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M12 6 24 18 36 6 42 12 30 24 42 36 36 42 24 30 12 42 6 36 18 24 6 12Z' fill='%23082032' stroke='%23082032' stroke-width='6' stroke-linejoin='round'/%3E%3Cpath d='M12 6 24 18 36 6 42 12 30 24 42 36 36 42 24 30 12 42 6 36 18 24 6 12Z' fill='%23ef4545' stroke='%23ff9999' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M10 35 23 22M29 18 36 11' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
#fish-game .fish-cell.mistake { box-shadow:none; }
#fish-game .fish-cell:focus-visible { outline:3px solid #fff2ad; outline-offset:-3px; z-index:4; }
body.game-screen-active #fish-game #fish-message {
  display:flex; align-items:center; justify-content:center;
  flex:0 0 40px; width:min(100%,660px); min-height:40px; margin:18px 0 0;
  padding:5px 10px; border:1px solid #5e9bab40; border-radius:12px;
  background:#071e30aa; color:#bed5df; text-align:center;
  font-size:clamp(.7rem,2.8vw,.86rem); font-weight:650; line-height:1.3;
}
body.game-screen-active #fish-game #fish-message.success { color:#a4f5d6; border-color:#5edeb26b; background:#123c3c; }
body.game-screen-active #fish-game #fish-message.error { color:#ffc8bd; border-color:#ff93865e; background:#392c38; }
#fish-game .fish-tools { align-items:center; padding:5px 2px; }
@media (hover:hover) { #fish-game .fish-cell:hover:not(:disabled) { filter:brightness(1.12); } }
@media (prefers-reduced-motion:reduce) { #fish-game .fish-cell.mistake { animation:none; } }

/* Cabeçalho do Cardume: arte e controles em linhas estáveis. */
body.game-screen-active #fish-game .game-header {
  display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px 12px;
  align-items:center; width:100%; max-width:820px; margin:0 auto 10px;
  padding:10px; border:1px solid #416270; border-radius:18px; background:#102b3b;
}
#fish-game .fish-title-wrap { grid-column:2; min-width:0; }
#fish-game #fish-title { margin:0; line-height:0; }
#fish-game .fish-title-art { display:block; width:min(100%,460px); max-height:104px; object-fit:contain; margin:auto; border-radius:12px; }
#fish-game .game-header>.game-menu-trigger {
  grid-column:1; grid-row:1; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:7px; min-width:68px; min-height:66px; padding:10px 12px;
  border:1px solid #b0ead9; border-radius:18px; color:#163c49;
  background:linear-gradient(145deg,#d9f5e9,#9dd9cd); box-shadow:none;
  font:800 12px/1.1 system-ui,sans-serif; letter-spacing:.02em;
}
#fish-game .game-header>.game-menu-trigger::before {
  content:''; width:23px; height:23px;
  background:linear-gradient(#245565,#245565) 0 0/9px 9px,linear-gradient(#245565,#245565) 100% 0/9px 9px,linear-gradient(#245565,#245565) 0 100%/9px 9px,linear-gradient(#245565,#245565) 100% 100%/9px 9px;
  background-repeat:no-repeat; border-radius:3px;
}
#fish-game .game-header>.game-menu-trigger:focus-visible { outline:2px solid #fff0bd; outline-offset:3px; }
#fish-game .game-header>.game-menu-trigger:hover { background:#e3fbef; }
#fish-game .game-header .fish-header-stats { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) minmax(90px,1.2fr); width:100%; margin:0; gap:6px; }
#fish-game .fish-header-stats .level-box,#fish-game .fish-header-stats .score-box { min-width:0; padding:7px; border-radius:10px; background:#1b3a49; }
#fish-game .fish-howto-button { grid-column:auto; min-width:0; min-height:44px; display:flex; justify-content:center; align-items:center; gap:6px; padding:6px; border-radius:10px; }
#fish-game .fish-howto-button>span { flex-shrink:0; }
@media(max-width:480px) { #fish-game .fish-title-art { max-height:84px; } #fish-game .fish-header-stats strong { font-size:1rem; } #fish-game .fish-howto-button { font-size:.65rem; } }
.feedback-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;}
#arcade-feedback-dialog {box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px;border:2px solid #577685;border-radius:12px;background:linear-gradient(150deg,#163447,#0a1a2c);color:#f6eed8;box-shadow:0 20px 70px #0009;}
#arcade-feedback-dialog::backdrop {background:#020914cc;}
#arcade-feedback-dialog h2 {margin:12px 0;font-size:clamp(22px,5vw,28px);}
#arcade-feedback-dialog p {line-height:1.5;}
#arcade-feedback-close {flex:0 0 44px;width:44px;height:44px;border:1px solid #597d8c;border-radius:8px;color:#f6eed8;background:#24485a;font-size:26px;cursor:pointer;}
#arcade-feedback-dialog label {display:block;font-weight:800;margin:18px 0 7px;}
#arcade-feedback-dialog :is(select,textarea) {box-sizing:border-box;width:100%;min-height:44px;padding:12px;border:1px solid #597d8c;border-radius:8px;color:#f6eed8;background:#0b2031;font:inherit;font-size:16px;}
#arcade-feedback-dialog textarea {resize:vertical;}
#arcade-feedback-dialog :is(button,select,textarea):focus-visible {outline:3px solid #85ece1;outline-offset:3px;}
#arcade-feedback-dialog .feedback-privacy,#arcade-feedback-dialog small {font-size:12px;color:#b1c7ce;}
#arcade-feedback-dialog .primary-button {width:100%;margin:8px 0 14px;background:#f3cc75;color:#142538;}
#arcade-feedback-dialog small {display:block;line-height:1.5;}

/* ---- Área segura de tela: notch e Dynamic Island (V303) ---- */
/* O recuo por safe-area existia no palco de jogo em tela cheia e em telas
   estreitas, mas a barra do topo do hub não tinha recuo superior nenhum: no
   iPhone 14 Pro ela ficava sob a Dynamic Island.

   As variáveis existem para tornar isto TESTÁVEL. `env()` só recebe valor real
   num aparelho com recorte, e nenhum navegador de teste simula isso; com a
   variável, um teste pode fixar as medidas de um iPhone e verificar o layout.
   Em aparelho sem recorte todas valem 0, então nada muda visualmente. */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* Hub: a barra do topo desce abaixo do recorte, e respeita as laterais em
   qualquer largura — antes as laterais só valiam até 500 px, justamente a faixa
   que exclui o iPhone em paisagem. */
.topbar {
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* Jogo aberto: o recuo superior e inferior valia só até 500 px de largura.
   Em paisagem o aparelho passa disso e ficava sem recuo. O `max()` mantém o
   espaçamento original quando não há recorte. */
body.game-screen-active .app-shell {
  padding-top: max(clamp(10px, 2vh, 22px), var(--safe-top));
  padding-bottom: max(clamp(10px, 2vh, 22px), var(--safe-bottom));
}

/* Coleção V344: identidade do jogador, platinas e vitrine de conquistas. */
.arcade-avatar { display:block; overflow:hidden; border-radius:50%; background-color:#061c32; background-image:url(../assets/profile/arcade-avatar-sheet-v1.webp); background-repeat:no-repeat; background-size:501.9608% 409.6%; box-shadow:inset 0 0 0 1px rgba(136,230,255,.35),0 4px 12px rgba(0,0,0,.24); }
.arcade-avatar img { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.arcade-account-avatar { width:32px; height:32px; flex:0 0 32px; }
.account-panel { width:min(calc(100vw - 34px),680px); max-height:min(88dvh,820px); overflow-y:auto; }
.arcade-profile-card { display:grid; grid-template-columns:82px minmax(0,1fr); align-items:center; gap:15px; margin:2px 0 16px; padding:14px; border:1px solid rgba(121,228,215,.26); border-radius:18px; background:linear-gradient(135deg,rgba(28,79,105,.5),rgba(9,27,48,.72)); }
.arcade-profile-avatar { width:82px; height:82px; border:2px solid rgba(132,235,222,.7); box-shadow:0 12px 26px rgba(0,0,0,.28),0 0 22px rgba(82,220,255,.12); }
.arcade-profile-card .eyebrow { margin:0 0 3px; color:#87e9df; }
.arcade-profile-card h3 { margin:0 0 4px; color:#f4fbff; font-size:1rem; }
.arcade-profile-card p:last-child { margin:0; color:#a8c1d8; font-size:.76rem; line-height:1.45; }
.arcade-avatar-picker { margin:0 0 18px; }
.arcade-avatar-options { display:grid; grid-template-columns:repeat(10,minmax(42px,1fr)); gap:7px; }
.arcade-avatar-option { display:grid; min-width:0; min-height:52px; place-items:center; padding:4px; border:1px solid rgba(113,184,220,.22); border-radius:14px; background:rgba(7,26,48,.66); cursor:pointer; }
.arcade-avatar-option:hover { border-color:rgba(121,228,215,.78); background:rgba(31,90,112,.38); }
.arcade-avatar-option.is-selected { border-color:#7de8dc; background:rgba(45,128,126,.34); box-shadow:0 0 0 2px rgba(121,228,215,.12),0 0 18px rgba(82,220,255,.13); }
.arcade-avatar-option .arcade-avatar { width:42px; height:42px; }
.provider-avatar-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:10px; }
.provider-avatar-options[hidden],.provider-avatar-button[hidden] { display:none; }
.provider-avatar-button { display:flex; min-height:52px; align-items:center; gap:9px; padding:7px 10px; border:1px solid rgba(121,228,215,.28); border-radius:14px; color:#dffcf9; background:rgba(6,29,49,.78); font:inherit; font-size:.76rem; font-weight:850; cursor:pointer; }
.provider-avatar-button:hover,.provider-avatar-button.is-selected { border-color:#7de8dc; background:rgba(45,128,126,.3); }
.provider-avatar-preview { display:block; width:38px; height:38px; flex:0 0 38px; overflow:hidden; border-radius:50%; background:#18344d center/cover no-repeat; }
.achievement-showcase { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0 0 18px; }
.achievement-showcase article { display:grid; grid-template-columns:40px minmax(0,1fr); grid-template-areas:"icon label" "icon value"; align-items:center; gap:1px 10px; min-height:72px; padding:12px; border:1px solid rgba(121,228,215,.2); border-radius:16px; background:rgba(4,24,45,.6); }
.achievement-showcase article>span { grid-area:icon; font-size:1.65rem; text-align:center; }
.achievement-showcase small { grid-area:label; color:#8faec7; font-size:.57rem; font-weight:950; letter-spacing:.1em; }
.achievement-showcase strong { grid-area:value; overflow:hidden; color:#f2fbff; font-size:.92rem; text-overflow:ellipsis; white-space:nowrap; }
.achievement-showcase #achievement-king-card.is-active { border-color:rgba(255,211,94,.72); background:linear-gradient(135deg,rgba(115,77,9,.54),rgba(37,29,14,.66)); box-shadow:0 0 25px rgba(255,200,58,.13); }
.platinum-shelf { margin:0 0 18px; padding:16px; border:1px solid rgba(193,224,246,.2); border-radius:18px; background:linear-gradient(135deg,rgba(35,54,81,.7),rgba(7,24,43,.58)); }
.platinum-shelf>div:first-child { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:12px; }
.platinum-shelf .eyebrow { margin:0; color:#b9d9ee; }
.platinum-shelf h2 { margin:0; color:#f3fbff; font-size:1rem; }
.platinum-badges { display:flex; flex-wrap:wrap; gap:8px; }
.platinum-badge { display:grid; width:52px; height:52px; place-items:center; border:1px solid rgba(169,200,223,.24); border-radius:16px; color:#708aa0; background:rgba(8,27,47,.72); filter:saturate(.25); opacity:.52; }
.platinum-badge.is-earned { border-color:rgba(187,228,255,.78); color:#effbff; background:linear-gradient(145deg,rgba(108,149,180,.46),rgba(30,64,91,.72)); box-shadow:0 0 17px rgba(152,215,255,.17); filter:none; opacity:1; }
.platinum-badge .arcade-avatar { width:42px; height:42px; }
.achievement-card.achievement-tier-platinum .achievement-card-icon { border-color:rgba(188,226,252,.8); background:rgba(78,119,151,.4); box-shadow:0 0 18px rgba(161,218,255,.17); }
.achievement-card.achievement-tier-king .achievement-card-icon { border-color:rgba(255,213,94,.85); background:rgba(126,84,10,.45); box-shadow:0 0 22px rgba(255,196,50,.2); }
.achievement-card.achievement-tier-platinum .achievement-card-state { color:#d3eeff; }
.achievement-card.achievement-tier-king .achievement-card-state { color:#ffe18b; }
@media (max-width:620px) {
  .account-panel { max-height:92dvh; }
  .arcade-avatar-options { grid-template-columns:repeat(5,minmax(42px,1fr)); }
  .achievement-showcase { grid-template-columns:1fr; }
  .achievement-showcase article { min-height:62px; }
  .platinum-shelf>div:first-child { display:block; }
  .platinum-shelf h2 { margin-top:3px; }
  .provider-avatar-options { grid-template-columns:1fr; }
}

/* Forca do Pisquinho: uma mesa de palavras acolhedora, sem fragmentar respostas. */
#hangman-game .game-header h1 { color:#fff1d5; text-shadow:0 2px 15px rgba(247,184,104,.22); }
#hangman-game .hangman-area {
  display:grid; grid-template-columns:minmax(0,1fr); justify-items:stretch; justify-content:stretch; align-content:start; gap:14px;
  width:min(100%,1040px); max-width:none; padding:clamp(12px,2.3vw,24px);
  border:1px solid rgba(238,190,132,.4); border-radius:26px;
  background:radial-gradient(circle at 90% 4%,rgba(243,189,116,.17),transparent 30%),radial-gradient(circle at 5% 95%,rgba(105,190,179,.12),transparent 32%),linear-gradient(145deg,#202c35,#182630 58%,#23313a);
  box-shadow:inset 0 1px rgba(255,244,220,.16),0 23px 55px rgba(0,0,0,.25);
}
#hangman-game .hangman-difficulty {
  justify-content:flex-start; width:100%; margin:0; padding:9px 12px; gap:8px;
  border-color:rgba(242,205,157,.29); border-radius:16px;
  background:rgba(13,30,38,.52);
}
#hangman-game .hangman-difficulty>span { margin-right:9px; color:#f4d7ad; }
#hangman-game .hangman-difficulty-button {
  min-height:44px; padding:9px 15px; border-radius:11px;
  color:#f7e8d1; background:rgba(80,80,82,.35);
  font-size:.82rem; white-space:nowrap;
}
#hangman-game .hangman-difficulty-button.active { color:#31220f; background:linear-gradient(145deg,#ffe5b4,#e9b46e); }
#hangman-game .hangman-layout { width:100%; grid-template-columns:minmax(0,1fr); margin:0; }
#hangman-game .hangman-play {
  display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  grid-template-rows:auto auto auto auto;
  grid-template-areas:"hint word" "wrong wrong" "keyboard keyboard" "footer footer";
  align-items:stretch; justify-content:stretch; gap:12px; width:100%; padding:clamp(13px,2vw,23px);
  border:1px solid rgba(239,202,150,.3); border-radius:23px;
  background:linear-gradient(145deg,rgba(39,50,57,.95),rgba(24,36,45,.96));
  box-shadow:inset 0 1px rgba(255,242,213,.15),0 14px 30px rgba(0,0,0,.18);
}
#hangman-game .hangman-hint {
  grid-area:hint; display:grid; align-content:center; justify-items:start; min-width:0; min-height:136px; margin:0; padding:20px;
  border:1px solid rgba(234,190,128,.42); border-left:4px solid #f3bd73; border-radius:18px;
  background:linear-gradient(135deg,rgba(91,73,61,.55),rgba(47,59,65,.65));
  overflow-wrap:normal; word-break:normal; hyphens:none;
}
#hangman-game .hangman-hint span { color:#f7d6a5; }
#hangman-game .hangman-hint strong { max-width:none; color:#fff7e9; font-size:clamp(1rem,1.8vw,1.27rem); line-height:1.45; }
#hangman-game .hangman-hint small { color:#e5cfb0; }
#hangman-game .hangman-word-card {
  grid-area:word; display:grid; align-content:space-between; gap:11px; min-width:0; min-height:136px; padding:17px 19px;
  border:1px solid rgba(242,202,146,.42); border-radius:18px;
  background:radial-gradient(circle at 85% 10%,rgba(255,214,149,.13),transparent 42%),linear-gradient(135deg,#55483f,#37414a);
  box-shadow:inset 0 1px rgba(255,245,225,.15),0 7px 16px rgba(0,0,0,.13);
}
#hangman-game .hangman-word-card>span { color:#f8d5a4; }
#hangman-game .hangman-word {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 15px;
  width:100%; min-width:0; min-height:54px; padding:0; overflow:visible; border:0; border-radius:0;
  background:none; box-shadow:none;
}
#hangman-game .hangman-word .hangman-word-group,
#hangman-game .hangman-word:not(.has-space) .hangman-word-group,
#hangman-game .hangman-word.has-space .hangman-word-group {
  display:grid; grid-template-columns:repeat(var(--letters),minmax(0,1fr));
  flex:0 0 auto; gap:clamp(2px,.45vw,6px); width:min(100%,var(--word-max-width)); max-width:100%;
  white-space:nowrap;
}
#hangman-game .hangman-word .hangman-letter,
#hangman-game .hangman-word:not(.has-space) .hangman-letter,
#hangman-game .hangman-word.has-space .hangman-letter {
  display:grid; width:auto; min-width:0; height:clamp(31px,3.7vw,43px); padding:0;
  place-items:center; border-bottom:3px solid #f2c988; color:#fff9ea;
  font-size:clamp(11px,3.2vw,21px); line-height:1;
}
#hangman-game .hangman-word-group.is-medium .hangman-letter { font-size:clamp(10px,2.6vw,18px); }
#hangman-game .hangman-word-group.is-long .hangman-letter { font-size:clamp(9px,2vw,15px); }
#hangman-game .hangman-chances { display:flex; justify-content:center; gap:8px; min-height:9px; }
#hangman-game .hangman-chances span { width:8px; height:8px; border-radius:50%; background:#f5d39d; box-shadow:0 0 8px rgba(245,211,157,.3); }
#hangman-game .hangman-word-card[data-errors="1"] .hangman-chances span:nth-child(-n+1),
#hangman-game .hangman-word-card[data-errors="2"] .hangman-chances span:nth-child(-n+2),
#hangman-game .hangman-word-card[data-errors="3"] .hangman-chances span:nth-child(-n+3),
#hangman-game .hangman-word-card[data-errors="4"] .hangman-chances span:nth-child(-n+4),
#hangman-game .hangman-word-card[data-errors="5"] .hangman-chances span:nth-child(-n+5),
#hangman-game .hangman-word-card[data-errors="6"] .hangman-chances span:nth-child(-n+6) { background:#ad6870; box-shadow:none; }
#hangman-game .hangman-wrong {
  grid-area:wrong; display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-width:0; min-height:49px; margin:0; padding:10px 15px;
  border-color:rgba(232,178,152,.27); border-radius:13px;
  background:rgba(73,54,59,.42); text-align:left;
}
#hangman-game .hangman-wrong span { color:#f2baa7; white-space:nowrap; }
#hangman-game .hangman-wrong strong { color:#ffe6dd; text-align:right; }
#hangman-game .hangman-keyboard {
  grid-area:keyboard; grid-template-columns:repeat(9,minmax(0,1fr)); gap:7px;
  width:min(100%,690px); margin:auto; padding:12px;
  border-color:rgba(233,197,150,.32); border-radius:18px;
  background:rgba(12,27,35,.6);
}
#hangman-game .hangman-key {
  min-height:44px; padding:7px; border-color:rgba(237,207,166,.37); border-radius:10px;
  color:#fff0d9; background:linear-gradient(150deg,#46515a,#303e48);
  font-size:.95rem; box-shadow:inset 0 1px rgba(255,248,227,.11),0 2px 5px rgba(0,0,0,.14);
}
#hangman-game .hangman-key:hover:not(:disabled) { border-color:#ffe0a6; background:#665c51; }
#hangman-game .hangman-key:focus-visible,#hangman-game .hangman-difficulty-button:focus-visible { outline:3px solid #ffe2a1; outline-offset:2px; }
#hangman-game .hangman-key.right { color:#edfff4; background:#367766; }
#hangman-game .hangman-key.wrong { color:#ffe9e6; background:#8b4f56; }
#hangman-game .hangman-footer { grid-area:footer; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0; }
#hangman-game .hangman-footer .game-message { margin:0; color:#ead8bd; font-size:.83rem; line-height:1.35; }
#hangman-game .hangman-footer .secondary-button { min-height:44px; border-radius:12px; white-space:nowrap; }
body.game-screen-active #hangman-game .hangman-area { min-height:0; max-height:100%; overflow-y:auto; }
@media (max-width:680px) {
  #hangman-game .hangman-play { grid-template-columns:minmax(0,1fr); grid-template-areas:"hint" "word" "wrong" "keyboard" "footer"; }
  #hangman-game .hangman-hint,#hangman-game .hangman-word-card { min-height:110px; }
  #hangman-game .hangman-keyboard { grid-template-columns:repeat(6,minmax(0,1fr)); }
  #hangman-game .hangman-footer { flex-direction:column; align-items:stretch; }
  #hangman-game .hangman-footer .secondary-button { flex:0 1 auto; width:100%; }
}
@media (max-width:420px) {
  #hangman-game .game-header { flex-wrap:wrap; gap:7px; }
  #hangman-game .game-header>div:first-child { display:flex; align-items:center; gap:9px; min-width:0; width:100%; }
  #hangman-game .game-header .back-link { flex:0 0 auto; margin:0; }
  #hangman-game .game-header h1 { min-width:0; font-size:clamp(1.35rem,6.6vw,1.8rem); line-height:1.12; }
  #hangman-game .game-stats { width:100%; }
  #hangman-game .game-stats .level-box,#hangman-game .game-stats .score-box { flex:1; min-width:0; padding:6px; }
  #hangman-game .hangman-area { gap:9px; padding:9px; }
  #hangman-game .hangman-difficulty { justify-content:center; gap:5px; }
  #hangman-game .hangman-difficulty>span { width:100%; margin:0; text-align:center; }
  #hangman-game .hangman-difficulty-button { flex:1; min-width:0; min-height:42px; padding:7px 5px; font-size:.72rem; }
  #hangman-game .hangman-play { gap:9px; padding:10px; }
  #hangman-game .hangman-hint,#hangman-game .hangman-word-card { padding:12px; }
  #hangman-game .hangman-keyboard { grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; padding:8px; }
  #hangman-game .hangman-key { min-height:44px; }
  #hangman-game .hangman-key:last-child { grid-column:3; }
  #hangman-game .hangman-footer { flex-direction:column; align-items:stretch; }
  #hangman-game .hangman-footer .secondary-button { width:100%; }
}

/* Final de Blocos 2048. A oficina usa a mesma paleta nos dois temas. */
#arcade-dialog { background:#231723c9; }
#arcade-dialog .blocks-final {
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);
  width:min(100%, 940px);
  padding:0;
  border:1px solid #b87867;
  border-radius:22px;
  background:#301f2d;
  color:#fff2df;
  text-align:left;
  overscroll-behavior:contain;
}
#arcade-dialog .blocks-final #final-2048-tile { font-size:1.85rem; color:#ffd18b; }
.blocks-final .blocks-final-art {
  position:relative;
  min-height:310px;
  min-width:0;
  margin:0;
  overflow:hidden;
  background:#672e33;
  border-radius:21px 0 0 21px;
}
.blocks-final-art img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 49%;
}
.blocks-final-art figcaption {
  position:absolute;
  inset:auto 0 0;
  padding:35px 20px 17px;
  color:#fff0d6;
  background:linear-gradient(transparent,#2b1623f5);
  font:italic 700 1.02rem/1.2 Georgia,serif;
}
.blocks-final-copy { min-width:0; padding:clamp(20px, 3.6vw, 38px); }
#arcade-dialog .blocks-final .eyebrow {
  margin:0 0 8px;
  color:#ffc589;
  font-size:.69rem;
  letter-spacing:.13em;
}
#arcade-dialog .blocks-final h2 {
  margin:0;
  color:#fff0d6;
  font:700 clamp(1.9rem, 4.1vw, 3.25rem)/1.03 Georgia,serif;
  letter-spacing:-.034em;
}
#arcade-dialog .blocks-final #dialog-copy {
  margin:12px 0 15px;
  color:#f2d8cf;
  font-size:.89rem;
}
.blocks-final-stats {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:0 0 14px;
}
.blocks-final-stats div { padding-top:8px; border-top:1px solid #8a575e; }
.blocks-final-stats dt { color:#ebc9c1; font-size:.72rem; }
.blocks-final-stats dd {
  margin:1px 0 0;
  color:#ffdc9f;
  font:700 1.45rem/1.12 Georgia,serif;
  overflow-wrap:anywhere;
}
#arcade-dialog .blocks-final #undo-2048-copy {
  display:grid;
  gap:6px;
  margin:0;
  padding:8px 10px;
  border:1px solid #a57051;
  border-radius:9px;
  background:#4a2c33;
}
#arcade-dialog .blocks-final #undo-2048-copy[hidden] { display:none; }
#arcade-dialog .blocks-final #undo-2048-copy p { color:#fff0cb; font-size:.77rem; line-height:1.33; }
#arcade-dialog .blocks-final .dialog-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:10px 0 0; }
#arcade-dialog .blocks-final button { min-height:44px; min-width:44px; border-radius:9px; }
#arcade-dialog .blocks-final #dialog-undo-2048 { margin:0; background:#ffdc9f; color:#352021; }
#arcade-dialog .blocks-final #dialog-restart { color:#fff4e5; background:#9b3f2c; }
#arcade-dialog .blocks-final #dialog-restart:not(:disabled):is(:hover,:active) { background:#813421; }
#arcade-dialog .blocks-final #dialog-home { border:1px solid #ad7a76 !important; background:#492d3e !important; color:#fff4e5 !important; }
#arcade-dialog .blocks-final #dialog-home:is(:hover,:active) { background:#603b4e !important; }
#arcade-dialog .blocks-final #dialog-save-2048 {
  width:100%;
  margin:7px 0 0;
  border:1px solid #ad7a76;
  color:#ffd8b4;
  background:transparent;
}
#arcade-dialog .blocks-final #dialog-save-2048:hover { background:#492d3e; }
#arcade-dialog .blocks-final button:focus-visible,
#arcade-dialog .blocks-final summary:focus-visible { outline:3px solid #ffd285; outline-offset:2px; }
.blocks-final-credits { margin-top:6px; color:#e7c9c4; font-size:.76rem; }
.blocks-final-credits summary {
  min-height:44px;
  align-content:center;
  color:#fff0e1;
  font-weight:750;
  cursor:pointer;
}
.blocks-final-credits dl { display:grid; gap:4px; margin:0 0 8px; }
.blocks-final-credits dl div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:0 7px; }
.blocks-final-credits dd { margin:0; color:#fff0e1; }
#arcade-dialog .blocks-final .blocks-final-credits p { color:#ffc589; font-style:italic; }
@media (max-width:640px) {
  #arcade-dialog { padding:10px; }
  #arcade-dialog .blocks-final { grid-template-columns:minmax(0,1fr); max-height:calc(100dvh - 20px); border-radius:16px; }
  .blocks-final .blocks-final-art { min-height:0; height:clamp(100px, 37vw, 188px); border-radius:15px 15px 0 0; }
  .blocks-final-art figcaption { padding:18px 14px 8px; font-size:.88rem; }
  .blocks-final-copy { padding:14px 14px 8px; }
  #arcade-dialog .blocks-final h2 { font-size:clamp(1.68rem, 6vw, 2.35rem); }
  #arcade-dialog .blocks-final #dialog-copy { margin:7px 0 10px; }
  .blocks-final-stats { margin-bottom:9px; }
}
@media (max-height:500px) and (min-width:641px) {
  #arcade-dialog { padding:9px; }
  #arcade-dialog .blocks-final { max-height:calc(100dvh - 18px); }
  .blocks-final-copy { padding:14px 16px 8px; }
  #arcade-dialog .blocks-final h2 { font-size:1.9rem; }
  #arcade-dialog .blocks-final #dialog-copy { margin:7px 0 9px; }
  .blocks-final-stats { margin-bottom:8px; }
}

/* Encaixe Triplo: o resultado ocupa o lugar da grade quando a partida termina. */
#block-fit-loss[hidden],
#block-fit-loss:not([hidden]) ~ :is(.instruction, #block-fit-board, #block-fit-message, #block-fit-pieces) {
  display: none;
}
.block-fit-finale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.84fr);
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  width: min(100%, 1050px);
  margin: 0 auto;
  padding: clamp(12px, 2.5vw, 26px);
  border: 1px solid #42696a;
  border-radius: 24px;
  background: linear-gradient(135deg, #153a3a, #142624 52%, #202b26);
  color: #fff3d9;
  text-align: left;
  box-sizing: border-box;
}
.block-fit-finale-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  background: #234748;
}
.block-fit-finale-body { min-width: 0; }
.block-fit-finale h2 {
  margin: 0;
  color: #fff1c8;
  font-size: clamp(1.45rem, 3.2vw, 2.65rem);
  line-height: 1.06;
  text-wrap: balance;
}
.block-fit-finale p { margin: 10px 0; color: #e4eee5; line-height: 1.35; }
.block-fit-finale-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.block-fit-finale-stats > div {
  padding: 9px 12px;
  border-radius: 11px;
  background: #0f2320;
}
.block-fit-finale-stats dt { color: #addacf; font-size: .78rem; }
.block-fit-finale-stats dd {
  margin: 2px 0 0;
  color: #ffdc87;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.block-fit-finale .block-fit-finale-joke { color: #ffe3aa; font-weight: 650; }
.block-fit-finale-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.block-fit-finale-actions button {
  flex: 1 1 142px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #ffe1a1;
  border-radius: 11px;
  color: #243424;
  background: #ffce76;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.block-fit-finale-actions [data-screen] { color: #fff2d9; background: #233f3a; border-color: #769b90; }
.block-fit-finale button:focus-visible, .block-fit-finale summary:focus-visible { outline: 3px solid #b6f8e6; outline-offset: 3px; }
.block-fit-finale-credits { margin-top: 13px; color: #c0d9d0; font-size: .82rem; }
.block-fit-finale-credits summary { cursor: pointer; min-height: 30px; padding: 5px 0; }
.block-fit-finale-credits dl { display: grid; gap: 5px; margin: 3px 0 0; }
.block-fit-finale-credits dl > div { display: flex; flex-wrap: wrap; gap: 3px 10px; }
.block-fit-finale-credits dd { margin: 0; color: #fff1c8; }
@media (max-width: 730px) {
  .block-fit-finale { grid-template-columns: minmax(0, 1fr); max-width: 550px; border-radius: 18px; }
  .block-fit-finale-art { border-radius: 12px; }
  .block-fit-finale h2 { text-wrap: initial; }
}
@media (max-width: 390px) {
  .block-fit-finale-actions button { flex-basis: 120px; padding-inline: 7px; font-size: .82rem; }
}

/* Tela de vitória da Forca do Pisquinho. */
#hangman-finale {
  --final-ink: #fff4db;
  --final-muted: #d7e6ee;
  --final-gold: #ffcd77;
  --final-edge: #527083;
  position: fixed; inset: 0; margin: auto;
  width: min(1100px, calc(100% - 32px)); max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--final-edge); border-radius: 18px;
  background: #142637; color: var(--final-ink);
  box-shadow: 0 24px 80px #051421b5;
}
#hangman-finale::backdrop { background: #051420bf; }
.hangman-finale-sheet { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); }
.hangman-finale-illustration { position: relative; min-width: 0; margin: 0; background: #523328; }
.hangman-finale-illustration img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.hangman-finale-content { min-width: 0; padding: 32px clamp(22px, 3.6vw, 46px) 24px; }
.hangman-finale-kicker { margin: 0 40px 11px 0; font-size: .75rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; color: #abe9ff; }
#hangman-finale-title { margin: 0; font-size: clamp(2rem, 5vw, 4.55rem); line-height: 1.02; letter-spacing: -.06em; font-weight: 900; overflow-wrap: anywhere; }
#hangman-finale-title:focus { outline: none; }
.hangman-finale-subtitle { margin: 7px 0 0; color: var(--final-gold); font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.hangman-finale-copy { margin: 7px 0 14px; color: var(--final-muted); line-height: 1.45; }
.hangman-finale-word { margin: 0; padding: 8px 11px; background: #24394b; border: 1px solid var(--final-edge); border-radius: 9px 9px 0 0; }
.hangman-finale-word > span { display: block; color: var(--final-muted); font-size: .78rem; }
.hangman-finale-word strong { display: block; color: var(--final-gold); letter-spacing: .07em; font-size: clamp(1.1rem, 2.8vw, 1.5rem); overflow-wrap: anywhere; }
.hangman-finale-stats { margin: 0 0 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--final-edge); border-top: 0; border-radius: 0 0 9px 9px; }
.hangman-finale-stats div { padding: 7px 11px; }
.hangman-finale-stats div + div { border-inline-start: 1px solid var(--final-edge); }
.hangman-finale-stats dt { color: var(--final-muted); font-size: .78rem; }
.hangman-finale-stats dd { margin: 0; font-size: 1.25rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.hangman-finale-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#hangman-finale button { min-height: 44px; padding: 6px 9px; border: 1px solid var(--final-edge); border-radius: 9px; background: transparent; color: var(--final-ink); font: inherit; font-weight: 750; cursor: pointer; }
#hangman-finale button:hover { background: #274458; }
#hangman-finale #hangman-finale-replay { background: var(--final-gold); color: #2a2118; border-color: var(--final-gold); }
#hangman-finale #hangman-finale-replay:hover { background: #ffdd9f; }
#hangman-finale #hangman-finale-save { border-color: transparent; padding-inline: 0; color: #abe9ff; text-decoration: underline; }
.hangman-finale-credits { margin-top: 10px; border-top: 1px solid var(--final-edge); color: var(--final-muted); font-size: .82rem; }
.hangman-finale-credits summary { min-height: 44px; padding-block: 11px; color: #abe9ff; font-weight: 750; cursor: pointer; }
.hangman-finale-studio { float: right; color: var(--final-muted); font-weight: 500; }
.hangman-finale-credits dl { margin: 0; }
.hangman-finale-credits dl div { display: flex; justify-content: space-between; gap: 8px; padding-block: 3px; }
.hangman-finale-credits dd { margin: 0; text-align: right; }
.hangman-finale-credits p { margin: 8px 0 0; color: var(--final-gold); }
.hangman-finale-close { position: absolute; top: 10px; right: 10px; }
#hangman-finale .hangman-finale-close button { width: 44px; padding: 0; background: #142637; font-size: 1.4rem; }
#hangman-finale :is(button, summary):focus-visible { outline: 2px solid #abe9ff; outline-offset: 2px; }
@media (max-width: 660px) {
  #hangman-finale { width: calc(100% - 20px); }
  .hangman-finale-sheet { grid-template-columns: minmax(0, 1fr); }
  .hangman-finale-illustration { height: clamp(112px, 26dvh, 204px); }
  .hangman-finale-content { padding: 14px 16px 10px; }
}
@media (min-width: 661px) and (max-height: 560px) {
  .hangman-finale-content { padding-block: 14px 10px; }
  #hangman-finale-title { font-size: clamp(2rem, 5vw, 3.25rem); }
}
