/* MINIGAMES design refresh 2026 — presentation only.
 * The original game DOM, selectors, hash routing, and data-testid contract remain intact.
 */
:root{
 --cream:#f6f0df;--paper:#fffdf4;--ink:#282722;--muted:#686456;
 --coral:#ee745a;--mint:#b9dfca;--yellow:#f6d77a;--blue:#b5d2e4;
 --ring:#335d57;--edge:#d7cfb9;
}
body{background:radial-gradient(ellipse at 0 2%,#fff8e8 0,transparent 43%),var(--cream)}
.shell{max-width:1380px;padding-inline:clamp(17px,3.2vw,52px)}
.site-header{height:88px;gap:22px;border-bottom:2px solid var(--ink)}
.logo{font-size:clamp(11px,1.2vw,15px);letter-spacing:-.6px}
.logo-mark{transform:rotate(-10deg)}
.nav{gap:clamp(20px,3vw,42px);margin-right:22px}
.nav-link{position:relative;padding:13px 0;transition:color .16s}
.nav-link:hover{color:#ba4c3b}
.header-play,.pixel-button{border-radius:3px;box-shadow:4px 4px 0 var(--ink);padding:15px 19px}
.header-play{min-width:157px}
.pixel-button.dark{box-shadow:4px 4px 0 #98917c}
.pixel-button.coral{box-shadow:4px 4px 0 #b55c4c}
.hero{grid-template-columns:1fr .94fr;min-height:475px;border-bottom:2px solid var(--ink)}
.hero-copy{padding:52px 30px 42px 0}
.hero h1{font-size:clamp(36px,4.5vw,62px);letter-spacing:-2.8px;line-height:1.31;margin:20px 0}
.hero-copy>p{max-width:450px;margin-bottom:27px;font-size:17px}
.hero-footnote{padding-top:30px;letter-spacing:0}
.hero-art{min-height:470px;border-radius:2px 2px 0 0;background-size:28px 28px}
.console{width:min(305px,76%);transform:rotate(-6deg) scale(.88);box-shadow:13px 13px 0 #597b69}
.hero-art:after{bottom:-58px}
.art-caption{bottom:22px;right:21px}
.home-bottom{padding:49px 0 22px}
.home-bottom h2{font-size:clamp(19px,2vw,25px);margin-top:11px}
.featured-tile{margin-bottom:25px;padding:19px 22px;box-shadow:5px 5px 0 var(--ink);border-radius:4px}
.featured-icon{width:90px;height:90px}
.featured-tile h3{margin:6px 0}
.featured-tile .pixel-button{min-width:120px}
.mg-section-note{margin:7px 0 18px;color:var(--muted);font-size:15px;line-height:1.5}
.home-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin:0 0 24px}
.home-game{position:relative;min-width:0;display:flex;align-items:center;gap:15px;padding:16px 18px;background:var(--paper);border:2px solid var(--ink);border-radius:5px;box-shadow:4px 4px 0 #b4ac95;transition:transform .18s,box-shadow .18s,background .18s}
.home-game:hover{transform:translateY(-3px);box-shadow:4px 7px 0 #99917c;background:white}
.home-game:focus-visible{outline-offset:6px}
.home-game-icon{width:49px;height:49px;flex:0 0 49px;display:grid;place-items:center;font:25px/1 var(--pixel);background:var(--mint);border:2px solid var(--ink);color:var(--ink)}
.home-game:nth-child(3n+2) .home-game-icon{background:var(--yellow)}
.home-game:nth-child(3n) .home-game-icon{background:var(--blue)}
.home-game-text{min-width:0;display:flex;flex-direction:column;gap:7px}
.home-game strong{font:10px/1.5 var(--pixel);overflow-wrap:anywhere}
.home-game small{font:12px/1.4 var(--body);color:var(--muted)}
.home-game-arrow{margin-left:auto;align-self:flex-start;font-size:18px}
.home-last-played{display:flex;align-items:center;gap:12px;margin:13px 0 18px;padding:12px 16px;border:1px solid var(--edge);background:rgba(255,255,255,.4);border-radius:5px}
.home-last-played strong{font:8px/1.7 var(--pixel)}
.home-last-played a{text-decoration:underline;text-underline-offset:4px;font-weight:700;font-size:13px}
.page-heading{padding:44px 0 23px}
.page-heading h1{font-size:clamp(32px,4vw,55px);margin:15px 0}
.page-heading p{max-width:650px;line-height:1.55;font-size:16px}
.library-count{margin-top:0}
.games-tools{display:flex;align-items:center;justify-content:space-between;gap:13px;flex-wrap:wrap;margin:20px 0 25px}
.games-search{display:flex;align-items:center;gap:9px;min-height:43px;padding:0 14px;border:2px solid var(--ink);border-radius:4px;background:var(--paper);flex:1 1 220px;max-width:320px}
.games-search svg{flex:0 0 17px;opacity:.65}
.games-search input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font:14px/1.4 var(--body);min-width:0}
.games-search:focus-within{outline:3px solid #c68c74;outline-offset:2px}
.games-filters{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.games-filter{border:1.5px solid #918877;background:#fbf7ec;color:var(--ink);border-radius:4px;padding:11px 13px;font:8px/1.5 var(--pixel);cursor:pointer}
.games-filter:hover{background:#f7dd9a}
.games-filter[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}
.games-empty{padding:35px 22px;text-align:center;font-size:15px;color:var(--muted);border:2px dashed var(--edge);margin:12px 0 50px}
.games-grid{gap:20px;margin:0 0 45px}
.game-card{position:relative;display:flex;flex-direction:column;overflow:hidden;box-shadow:4px 5px 0 #9e9784;border-radius:6px;transition:transform .18s,box-shadow .18s}
.game-card:hover{transform:translateY(-5px);box-shadow:5px 10px 0 #9e9784}
.game-card:focus-within{outline:2px solid var(--coral);outline-offset:3px}
.game-cover{height:200px;isolation:isolate}
.game-cover:after{content:"";pointer-events:none;position:absolute;inset:0;background-image:radial-gradient(#fff8 1.2px,transparent 1.5px);background-size:18px 18px;opacity:.27;z-index:-1}
.cover-sticker{padding:8px;font-size:9px;z-index:2}
.cover-symbol{font-size:66px;transition:transform .18s}
.game-card:hover .cover-symbol{transform:rotate(0) scale(1.07)}
.cover-lockpick:before{content:"";width:138px;height:138px;border:11px double #b76e56;border-radius:50%;position:absolute;box-shadow:inset 0 0 0 19px #f4dac8,0 10px 0 #996b59;transform:rotate(-15deg);opacity:.72}
.cover-breaker:before{content:"";width:158px;height:158px;position:absolute;border:5px solid #445b52;transform:rotate(-10deg);background:repeating-conic-gradient(#678e79 0% 25%,#c1dbc3 0% 50%) 50% / 40px 40px;opacity:.77;box-shadow:7px 7px #6a8e7b}
.cover-pin:before{content:"";width:120px;height:103px;border:8px solid #536f95;border-radius:12px;position:absolute;transform:rotate(-7deg);opacity:.58;box-shadow:8px 9px #758bad}
.cover-collapse:before{content:"";position:absolute;width:160px;height:143px;background:linear-gradient(135deg,#ca756d 50%,transparent 50%) 0 0/48px 48px,repeating-linear-gradient(90deg,#eab2a8 0 31px,#bb7770 31px 35px);transform:rotate(-8deg);box-shadow:8px 8px #a75c5c;opacity:.74}
.cover-keys:before{content:"A S D F";position:absolute;display:flex;align-items:center;justify-content:center;width:190px;height:94px;border:6px solid #9d833f;background:#f2e3a4;transform:rotate(-10deg);font:17px/1.4 var(--pixel);letter-spacing:8px;color:#b2924d;box-shadow:7px 7px #b6a05a}
.cover-memory:before{content:"";width:140px;height:150px;position:absolute;background:#e4dafa;border:5px solid #7b6c9c;box-shadow:9px 9px #a397be;transform:rotate(11deg)}
.game-details{position:relative;flex:1;display:flex;flex-direction:column;padding:20px}
.card-topline{padding-right:34px;font-size:8px}
.game-details h2{font-size:14px;margin:16px 0 9px}
.game-details p{font-size:14px;line-height:1.6;margin-bottom:22px}
.game-details .pixel-button{margin-top:auto}
.favorite-toggle{position:absolute;right:15px;top:15px;border:1.5px solid var(--ink);width:29px;height:29px;display:grid;place-items:center;background:#fffdf4;cursor:pointer;border-radius:4px;font-size:16px;line-height:1}
.favorite-toggle:hover,.favorite-toggle[aria-pressed=true]{background:#f5d77a}
.favorite-toggle:focus-visible{outline:3px solid var(--coral)}
.back-link{margin-top:25px}
.chess-header,.game-page-header,.miner-heading{margin-top:16px;margin-bottom:22px}
.chess-header h1,.game-page-header h1,.miner-heading h1{margin-top:8px;margin-bottom:8px}
.chess-match,.play-layout{margin-bottom:45px}
.arcade-game-head{margin:16px 0 18px}
.arcade-shell{margin-bottom:45px}
.miner-play-layout{margin-bottom:45px}
.miner-stats{gap:10px}
.miner-stat{padding:12px}
.quick-next{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:5px 0 32px;padding:22px 20px;border:2px solid var(--ink);background:#e7eada;border-radius:5px}
.quick-next>strong{font:11px/1.6 var(--pixel);margin-right:auto}
.quick-next a{border:2px solid var(--ink);border-radius:3px;padding:12px 14px;background:var(--paper);font:9px/1.5 var(--pixel);box-shadow:3px 3px 0 #a7ac9c}
.quick-next a:hover{background:var(--yellow)}
html[data-active-view="home"] .quick-next,
html[data-active-view="games"] .quick-next,
html[data-active-view="privacy"] .quick-next{display:none}
.ads-site-top{position:static!important;top:auto!important;z-index:auto!important;box-shadow:none!important;min-height:0;margin:10px auto 25px;padding:14px 12px;background:var(--paper);border:1px solid var(--edge);max-width:1040px}
.ads-top-banner{background:#f4f0e6;border-color:#e3dccd}
#mg-mondiad-banner{max-width:1040px!important;margin:14px auto 20px!important;background:var(--paper)!important;border:1px solid var(--edge)!important}
#mg-mondiad-native{background:var(--paper)!important;border:1px solid var(--edge)!important}
.footer{padding:25px 0 30px;gap:18px;border-top:2px solid var(--ink)}
.footer a,.ads-footer-control{transition:color .15s}
.footer a:hover{color:#bd503e}
@media(max-width:970px){
 .hero{grid-template-columns:1fr 1fr}
 .hero-copy{padding:48px 23px 40px 0}
 .hero-art{min-height:430px;border-left:2px solid var(--ink);border-top:0}
 .hero h1{font-size:clamp(28px,4.6vw,49px)}
 .home-games{grid-template-columns:repeat(2,minmax(0,1fr))}
 .games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .games-tools{align-items:stretch}
 .games-search{max-width:none}
}
@media(max-width:700px){
 .site-header{height:77px}
 .hero{grid-template-columns:1fr;min-height:0}
 .hero-copy{padding:38px 0 29px}
 .hero h1{font-size:clamp(32px,9vw,53px);line-height:1.25}
 .hero-copy>p{font-size:16px;max-width:470px}
 .hero-art{min-height:280px;border-left:0;border-top:2px solid var(--ink)}
 .console{transform:rotate(-6deg) scale(.70)}
 .hero-footnote{padding-top:23px;font-size:7px}
 .home-bottom{padding-top:32px}
 .home-games{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .home-game{padding:12px 10px;gap:9px}
 .home-game-icon{width:37px;height:37px;flex-basis:37px;font-size:18px}
 .home-game strong{font-size:8px}
 .home-game small{font-size:11px}
 .home-game-arrow{display:none}
 .featured-tile{margin-bottom:20px}
 .page-heading{padding:30px 0 18px}
 .page-heading h1{margin:10px 0}
 .games-tools{margin:16px 0 18px}
 .games-filters{gap:5px}
 .games-filter{font-size:7px;padding:9px 10px}
 .games-grid{grid-template-columns:1fr;gap:15px}
 .game-card{flex-direction:row;min-height:154px}
 .game-cover{width:37%;height:auto;min-height:154px;flex:0 0 37%;border-bottom:0;border-right:2px solid var(--ink)}
 .cover-symbol{font-size:41px}
 .game-cover:before{transform:rotate(-10deg) scale(.62)}
 .cover-tic-grid,.chess-cover-board,.miner-cover-art{transform:rotate(-8deg) scale(.68)}
 .game-details{padding:15px 12px}
 .card-topline{font-size:7px}
 .card-topline .available{display:none}
 .game-details h2{font-size:10px;margin:8px 0 5px}
 .game-details p{font-size:12px;line-height:1.4;margin:0 0 12px}
 .game-details .pixel-button{padding:10px 12px;font-size:8px}
 .favorite-toggle{right:9px;top:9px;width:24px;height:24px;font-size:13px}
 .quick-next{padding:15px}
 .quick-next>strong{width:100%}
 .quick-next a{font-size:8px;padding:10px}
 .miner-stats{gap:6px}
}
@media(max-width:390px){
 .nav{gap:12px}
 .logo{gap:5px;font-size:10px}
 .home-game{padding:10px 9px}
 .home-game-icon{width:30px;height:30px;flex-basis:30px;font-size:16px}
 .home-game strong{font-size:7px}
 .games-filters{max-width:100%}
}
@media(prefers-reduced-motion:reduce){
 .game-card,.home-game,.nav-link,.cover-symbol{transition:none!important;transform:none!important}
}

/* Lightweight editorial introduction below the game catalogue. */
.home-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:12px 0 62px}
.home-values>div{background:rgba(255,253,244,.65);border:1px solid var(--edge);border-radius:5px;padding:19px 21px}
.home-values span{font:8px/1.7 var(--pixel);color:#977c60}
.home-values strong{display:block;margin:10px 0 7px;font:11px/1.6 var(--pixel)}
.home-values p{margin:0;font:14px/1.6 var(--body);color:var(--muted)}
@media(max-width:700px){.home-values{grid-template-columns:1fr;gap:10px;margin-bottom:40px}.home-values>div{padding:14px 16px}}

/* Golden-ratio layout, 1.618:1 with a consistent 8/13/21/34/55 spacing scale. */
:root{--cream:#f7f8f5;--paper:#fff;--ink:#202c29;--muted:#65716d;--edge:#dfe5e0;--coral:#c85a42;--ring:#285c50}
body{background:var(--cream)}
.shell{max-width:1440px;padding-inline:clamp(18px,4vw,55px)}
.site-header{height:78px;border-bottom:1px solid var(--edge);gap:21px}
.logo{font:800 clamp(19px,2vw,25px)/1 var(--body);letter-spacing:-1.1px}
.logo-mark{transform:none;gap:3px;width:27px;height:27px}.logo-mark i{border-radius:2px}
.nav{gap:34px;margin-right:13px}.nav-link{font:700 13px/1.5 var(--body);letter-spacing:.06em}
.nav-link[aria-current=page]{text-decoration-thickness:2px;text-underline-offset:7px}
.header-play{min-width:116px;border:0;background:#e4eee8;color:#234a3e;padding:12px 18px}
.header-play,.pixel-button{font:700 13px/1.4 var(--body);border-radius:8px;box-shadow:none;letter-spacing:.015em}
.header-play:hover,.pixel-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:none}
.pixel-button.dark{background:#234a3e;border-color:#234a3e;color:#fff;box-shadow:none}
.pixel-button.coral{background:#e8b19e;border-color:#e8b19e;color:#33241f;box-shadow:none}
#home .hero{margin:34px 0 0;min-height:0;display:grid;grid-template-columns:minmax(0,1.618fr) minmax(0,1fr);gap:0;border:1px solid var(--edge);border-radius:18px;overflow:hidden;background:var(--paper)}
#home .hero-copy{padding:clamp(27px,5vw,68px);justify-content:center}
#home .tiny-label{font:750 11px/1.5 var(--body);letter-spacing:.11em;color:#4c6e61}
#home .live-dot{width:8px;height:8px;border-radius:50%;box-shadow:none;background:#4c8b70}
#home .hero h1{font:800 clamp(40px,6.3vw,85px)/.99 var(--body);letter-spacing:-.065em;margin:21px 0}
#home .hero h1 span{color:#38755f}
#home .hero-copy>p{font-size:clamp(16px,1.5vw,20px);line-height:1.6;max-width:440px;margin-bottom:25px}
#home .hero-footnote{font:600 10px/1.6 var(--body);letter-spacing:.06em;padding-top:26px;margin-top:0}
#home .hero-art{min-height:400px;border:0;border-radius:0;background-color:#d5e9da;background-size:34px 34px}
#home .hero-art:after{border:0;opacity:.55}
#home .console{transform:rotate(-5deg) scale(.82);border-radius:13px;box-shadow:8px 12px 0 #537863}
#home .home-bottom{padding:55px 0 21px;align-items:center}
#home .home-bottom h2{font:750 clamp(25px,3vw,36px)/1.16 var(--body);letter-spacing:-.035em;margin:8px 0 0}
#home .underlined-link{font:700 13px/1.4 var(--body)}
#home .featured-tile{border:1px solid #d1ded4;background:#e6f0e8;border-radius:13px;padding:21px;gap:21px;box-shadow:none;margin-bottom:21px}
#home .featured-icon{width:76px;height:76px;border-radius:8px;border-width:1px}
#home .featured-tile h3{font:750 23px/1.2 var(--body);letter-spacing:-.025em}
#home .tile-tag{font:700 10px/1.5 var(--body);letter-spacing:.09em}
#home .home-games{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:34px}
#home .home-game{border:1px solid var(--edge);border-radius:11px;padding:16px;gap:13px;box-shadow:none;background:#fff}
#home .home-game:hover{transform:translateY(-2px);box-shadow:0 7px 17px #2035290d;border-color:#a4c5b4}
#home .home-game-icon{border:0;border-radius:8px;width:52px;height:52px;flex-basis:52px;font:700 23px/1 var(--body);background:#dceee4}
#home .home-game:nth-child(3n+2) .home-game-icon{background:#f3e9cc}
#home .home-game:nth-child(3n) .home-game-icon{background:#dce7f0}
#home .home-game strong{font:750 15px/1.25 var(--body)}
#home .home-game-text{gap:4px}
#home .home-game small{font-size:12px}
#home .home-game-arrow{font-size:16px;color:#72867a}
#home .home-values{gap:13px}
#home .home-values>div{border-radius:11px;background:#fff;padding:21px}
#home .home-values strong{font:750 17px/1.35 var(--body)}
#home .home-values span{font:700 11px/1.5 var(--body)}
#games .page-heading{padding:34px 0 13px}
#games .page-heading h1{font:800 clamp(36px,5vw,62px)/1.08 var(--body);letter-spacing:-.045em}
#games .games-tools{gap:13px;margin:21px 0}
#games .games-search,#games .games-filter{border:1px solid var(--edge);border-radius:8px;background:#fff}
#games .games-filter{font:700 12px/1.5 var(--body);padding:10px 13px}
#games .games-filter[aria-pressed=true]{background:#234a3e;border-color:#234a3e;color:white}
#games .games-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:21px}
#games .game-card{border:1px solid var(--edge);border-radius:12px;box-shadow:none;background:white}
#games .game-card:hover{transform:translateY(-3px);box-shadow:0 9px 24px #20352912}
#games .game-cover{height:auto;aspect-ratio:1.618;border-bottom:0}
#games .game-details{padding:18px}
#games .game-details h2{font:750 19px/1.25 var(--body);letter-spacing:-.02em;margin:9px 0}
#games .game-details p{font-size:13px;line-height:1.5}
#games .card-topline{font:700 10px/1.5 var(--body);letter-spacing:.04em}
#games .favorite-toggle{border:1px solid var(--edge);border-radius:7px}
.footer{border-top:1px solid var(--edge);font-size:11px;gap:13px}
@media(max-width:1100px){#games .games-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#home .hero-art{min-height:350px}#home .console{transform:rotate(-5deg) scale(.7)}}
@media(max-width:850px){#home .hero{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}#home .hero-copy{padding:34px 26px}#home .hero-art{min-height:320px}#home .home-games{grid-template-columns:repeat(2,minmax(0,1fr))}#games .games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.shell{padding-inline:16px}.site-header{height:66px;gap:13px}.logo{font-size:20px}.nav{gap:13px;margin-right:0}.nav-link{font-size:11px}.header-play{display:none}#home .hero{margin-top:21px;grid-template-columns:1fr;border-radius:12px}#home .hero-copy{padding:28px 21px}#home .hero h1{font-size:clamp(40px,10vw,61px)}#home .hero-art{min-height:248px}#home .console{transform:rotate(-5deg) scale(.58)}#home .hero-footnote{padding-top:21px}#home .home-bottom{padding:34px 0 13px;gap:13px}#home .home-bottom h2{font-size:24px}#home .underlined-link{font-size:11px}#home .featured-tile{padding:13px;gap:13px}#home .featured-icon{width:55px;height:55px;flex-shrink:0}#home .featured-tile h3{font-size:18px}#home .featured-tile .pixel-button{min-width:0;padding:10px}#home .home-games{grid-template-columns:1fr;gap:8px}#home .home-game{padding:12px}#home .home-game-icon{width:43px;height:43px;flex-basis:43px}#home .home-game-arrow{display:block}#games .games-grid{grid-template-columns:1fr;gap:13px}#games .game-cover{width:38.2%;flex:0 0 38.2%;aspect-ratio:auto;min-height:155px;border-right:0}#games .game-details{padding:13px}#games .game-details h2{font-size:17px}#games .game-details p{font-size:12px}#games .game-details .pixel-button{font-size:12px}#games .games-filter{font-size:11px}}
