@charset "UTF-8";
:root{color-scheme:light;--bg:#dff5ff;--ink:#182344;--muted:#52647d;--panel:#fff;--line:#c5daed;--accent:#4763ef;--soft:#eef3ff;--shadow:0 5px 0 #789bc82b,0 9px 22px #18407a12;--tone:#4763ef;font-family:ui-rounded,'Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#11172d;--ink:#f0f4ff;--muted:#b3bfd9;--panel:#212a46;--line:#3b4767;--accent:#91a4ff;--tone:#91a4ff;--soft:#303b60;--shadow:0 5px 0 #05081988,0 9px 22px #0003}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:radial-gradient(ellipse at 10% 0%,#8edaff55,transparent 38%),radial-gradient(ellipse at 96% 50%,#ae9dff22,transparent 35%),var(--bg);min-height:100vh}button,input,select{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer;border:0}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #f69024;outline-offset:4px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}img{display:block;max-width:100%}h1,h2,h3,p{margin:0}h1{font-size:clamp(25px,4vw,38px);letter-spacing:-.025em}h2{font-size:23px;letter-spacing:-.025em}h3{font-size:17px}p{line-height:1.6}#app{max-width:1440px;margin:auto;padding:14px 22px 90px;min-height:100svh}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-100px;left:20px;z-index:300;background:var(--panel);padding:15px}.skip-link:focus{top:10px}
.topbar,.detail-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 0 15px}.brand{display:flex;align-items:center;gap:9px;font-size:26px;font-weight:850;letter-spacing:-1.3px;white-space:nowrap}.brand img{width:42px;height:42px;transform:rotate(-7deg);box-shadow:0 3px 0 #dba92144;border-radius:14px}.brand b{color:var(--accent)}.brand i{font-size:15px;letter-spacing:-.5px;font-style:normal;color:var(--muted);padding-left:2px}.header-actions{display:flex;gap:8px}.icon-button{height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border-radius:14px;background:var(--panel);box-shadow:0 3px 0 #5266821c;padding:10px}.language-button span{font-size:12px;font-weight:800}.theme-moon{display:none}[data-theme=dark] .theme-sun{display:none}[data-theme=dark] .theme-moon{display:block}
.bottom-nav{display:flex;gap:8px;margin:0 0 14px;align-items:center}.nav-item{display:flex;align-items:center;gap:7px;padding:11px 17px;border-radius:15px;font-weight:750;font-size:14px;color:var(--muted);min-height:44px}.nav-item.active{color:#17213e;background:#ffce40;box-shadow:0 3px 0 #dba82c66}.nav-item svg{width:20px;height:20px}.discovery-tools{display:flex;gap:12px;margin-bottom:14px}.search-wrap{display:flex;align-items:center;gap:10px;background:var(--panel);border-radius:17px;min-height:48px;padding:0 14px;box-shadow:var(--shadow);flex:1}.search-wrap svg{color:var(--muted)}.search-wrap input{outline:none!important;border:0;min-width:0;width:100%;height:48px;background:transparent;color:var(--ink);font-size:16px}.search-wrap input::placeholder{color:var(--muted)}.search-clear{display:flex;background:transparent;padding:8px}.surprise-button{display:flex;align-items:center;gap:8px;background:#ffce40;border-radius:17px;padding:0 20px;color:#253052;font-weight:800;box-shadow:0 4px 0 #dba82c66}.filter-rail{display:flex;gap:9px;overflow-x:auto;padding:5px 2px 15px;scrollbar-width:none}.filter-rail::-webkit-scrollbar{display:none}.chip{display:inline-flex;align-items:center;gap:6px;padding:10px 15px;white-space:nowrap;background:var(--panel);border:2px solid transparent;border-radius:24px;min-height:44px;font-size:14px;font-weight:750;box-shadow:0 3px 0 #52668212}.chip svg{color:var(--tone);width:19px;height:19px}.chip.active{border-color:var(--tone);color:var(--tone);background:var(--panel)}[data-tone=puzzle]{--tone:#6555e7}[data-tone=match]{--tone:#c92e74}[data-tone=merge]{--tone:#ad6500}[data-tone=arcade]{--tone:#206ccc}[data-tone=relax]{--tone:#187c56}[data-tone=racing]{--tone:#008087}[data-theme=dark] [data-tone=puzzle]{--tone:#b3a9ff}[data-theme=dark] [data-tone=match]{--tone:#ff9bca}[data-theme=dark] [data-tone=merge]{--tone:#ffce74}[data-theme=dark] [data-tone=arcade]{--tone:#8ac2ff}[data-theme=dark] [data-tone=relax]{--tone:#85dbb6}[data-theme=dark] [data-tone=racing]{--tone:#76d9e3}
.game-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:15px;grid-auto-flow:row dense}.game-card{display:block;aspect-ratio:1;min-width:0;position:relative;overflow:hidden;border-radius:20px;background:var(--tone);box-shadow:var(--shadow);transform:translateZ(0);transition:transform .17s ease,box-shadow .17s ease;isolation:isolate}.game-card img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.game-card:after{content:'';position:absolute;inset:44% 0 0;background:linear-gradient(transparent,#081122db);z-index:0;pointer-events:none}.game-card h3{position:absolute;bottom:11px;inset-inline:11px;font-size:clamp(12px,1.1vw,16px);line-height:1.18;font-weight:800;color:#fff;z-index:1;text-shadow:0 1px 2px #0008;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.game-card.featured-card{grid-column:span 2;grid-row:span 2;aspect-ratio:auto}.featured-card h3{font-size:clamp(19px,2.2vw,30px);bottom:18px;inset-inline:18px}.save-marker{position:absolute;top:9px;inset-inline-end:9px;background:#fff;color:#e42b71;border-radius:50%;padding:7px;z-index:2}.save-marker svg{width:16px;height:16px;fill:currentColor}.card-play{display:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:52px;height:52px;line-height:52px;text-align:center;padding-left:4px;border-radius:50%;background:#fffef6;color:#293469;font-size:24px;box-shadow:0 4px 10px #0003}.section-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:14px 0}.count{background:var(--panel);border-radius:20px;padding:5px 12px;font-weight:750}.page-title{padding:16px 0 24px}.page-title p{color:var(--muted);margin-top:8px}.collection-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.collection-card{background:var(--panel);padding:20px;border-radius:24px;box-shadow:var(--shadow);overflow:hidden}.collection-card>div{display:flex;gap:7px;margin:0 -4px 18px}.collection-card img{width:31%;aspect-ratio:1;object-fit:cover;border-radius:18px;transform:rotate(-6deg)}.collection-card img:nth-child(2){transform:translateY(-4px) rotate(6deg)}.collection-card>span{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:24px;font-weight:850;color:var(--tone)}.collection-card small{font-size:13px;font-weight:600;color:var(--muted)}.empty{max-width:450px;margin:70px auto;text-align:center}.empty>svg{width:65px;height:65px;color:var(--accent);margin-bottom:20px}.empty p{color:var(--muted);margin:12px 0 24px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 24px;background:#ffce40;color:#17213e;border-radius:16px;font-size:16px;font-weight:850;box-shadow:0 4px 0 #c9972366}.secondary{display:inline-flex;gap:8px;align-items:center;justify-content:center;padding:11px 15px;min-height:44px;background:var(--panel);border:1px solid var(--line);border-radius:14px;font-weight:700;font-size:14px}.text-button,.site-footer button{background:transparent;color:var(--muted);text-decoration:underline;text-underline-offset:3px;min-height:44px}.site-footer{display:flex;align-items:center;justify-content:center;gap:12px 25px;flex-wrap:wrap;margin-top:40px;padding:20px 0;font-size:13px;color:var(--muted)}.site-footer a{padding:10px 0}.info-page{max-width:760px;margin:30px auto;padding:30px;background:var(--panel);border-radius:24px}.info-page p{margin:22px 0;line-height:1.9}.info-page a:not(.primary){text-decoration:underline;color:var(--accent)}
.detail-top{justify-content:flex-start}.detail-top .brand{flex:1}.detail-top .brand img{width:32px;height:32px}.detail-top .brand span{font-size:21px}.detail-layout{display:grid;grid-template-columns:minmax(270px,460px) minmax(240px,420px);justify-content:center;gap:35px;margin:12px auto 24px}.play-column{min-width:0}.game-stage{position:relative;width:100%;aspect-ratio:9/16;max-height:78svh;min-height:350px;border-radius:24px;overflow:hidden;background:#101829;box-shadow:var(--shadow)}.stage-art{width:100%;height:100%;object-fit:cover;filter:blur(12px) brightness(.35);transform:scale(1.1)}.stage-copy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:30px;text-align:center;color:#fff}.stage-cover{width:140px;height:140px;border-radius:26px;object-fit:cover;border:3px solid #ffffff88;box-shadow:0 8px 24px #0004;transform:rotate(-4deg)}.stage-copy h2{font-size:26px;max-width:300px}.stage-copy p{font-size:12px;line-height:1.5;max-width:300px;color:#dae3f6}.play-button{font-size:20px;padding:15px 38px}.game-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#111}.game-stage:fullscreen{height:100%;max-height:none;border-radius:0;aspect-ratio:auto}.game-stage:fullscreen iframe{width:min(100%,56.25vh);left:50%;transform:translateX(-50%)}.player-tools{display:flex;gap:8px;justify-content:center;margin-top:12px}.player-status{font-size:13px;text-align:center;color:var(--muted);margin-top:10px;min-height:24px}.player-status button{background:var(--panel);border-radius:8px;padding:7px 12px;text-decoration:underline}.detail-info{padding:16px 0}.detail-info h1{font-size:30px;margin:16px 0}.detail-info h3{margin:25px 0 10px}.detail-info p{font-size:15px;color:var(--muted);overflow-wrap:anywhere}.detail-info .provider-credit{font-size:12px;margin-top:20px}.save-action.saved{color:#d83272;border-color:#e985ac}.save-action.saved svg{fill:currentColor}.related-section{margin-top:22px}.dialog-overlay{position:fixed;inset:0;z-index:200;background:#0a123477;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(5px)}.sheet{background:var(--panel);border-radius:26px;padding:22px;max-width:440px;width:100%;max-height:85svh;overflow:auto;box-shadow:0 20px 80px #0003;animation:sheet-in .18s ease-out}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.sheet-head h2{font-size:22px}.sheet p{color:var(--muted);margin:15px 0}.sheet .dialog-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.language-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.language-option,.theme-option{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;text-align:start;background:var(--soft);padding:12px;border-radius:14px}.language-option.active,.theme-option.active{outline:2px solid var(--accent);color:var(--accent)}.language-option svg{width:16px}.theme-options{display:grid;gap:12px}.theme-option span{display:flex;align-items:center;gap:12px}.toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);max-width:90%;padding:13px 22px;border-radius:15px;background:#182344;color:#fff;z-index:300;box-shadow:0 5px 25px #0003}.motion-enter #main{animation:page-in .18s ease-out}.report-options{display:grid;gap:10px}.report-options button{width:100%;text-align:start}.report-status{color:var(--muted);font-size:14px}
@media(hover:hover){.game-card:hover{transform:translateY(-5px) rotate(-.7deg);box-shadow:0 9px 0 #789bc828,0 15px 24px #18356533;z-index:3}.game-card:hover img{transform:scale(1.045)}.game-card:hover .card-play{display:block}.chip:hover{border-color:var(--tone)}.nav-item:hover:not(.active){background:var(--panel)}}button:active:not(:disabled),.game-card:active{transform:scale(.96)}
@media(min-width:1600px){#app{max-width:1580px}.game-grid{grid-template-columns:repeat(9,minmax(0,1fr))}}
@media(max-width:1199px){.game-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.game-card h3{font-size:14px}.featured-card h3{font-size:26px}.collection-grid{gap:15px}}
@media(max-width:799px){#app{padding:12px 15px 94px}.game-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.bottom-nav{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:100;background:var(--panel);border:1px solid var(--line);border-radius:23px;box-shadow:0 6px 25px #142e4f30;padding:6px;gap:3px;width:min(calc(100% - 24px),470px);margin:0}.nav-item{flex:1;flex-direction:column;gap:4px;font-size:11px;padding:8px 3px;border-radius:17px;min-width:0;text-align:center}.nav-item.active{box-shadow:none}.nav-item svg{width:22px;height:22px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-card{padding:16px}.collection-card>span{font-size:21px;flex-wrap:wrap}.detail-layout{display:block;max-width:500px;margin:7px auto 20px}.game-stage{aspect-ratio:9/16;height:min(72svh,760px);max-height:none;min-height:360px}.detail-info{padding:15px 5px}.detail-info h1{font-size:25px}.related-section .game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.detail-top .brand span{font-size:20px}.detail-top .brand img{display:none}.detail-top .brand i{display:none}.detail-top{gap:7px}.info-page{padding:22px}.sheet{padding:20px}}
@media(max-width:540px){#app{padding:10px 11px 90px}.topbar{padding-bottom:14px}.brand{font-size:23px;gap:7px}.brand img{width:35px;height:35px;border-radius:11px}.brand i{font-size:13px}.header-actions{gap:5px}.icon-button{border-radius:13px;min-width:40px;height:42px;padding:9px}.language-button span{font-size:11px}.game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.game-card{border-radius:17px}.game-card h3{font-size:12px;bottom:9px;inset-inline:9px}.featured-card h3{font-size:21px;bottom:15px;inset-inline:15px}.discovery-tools{gap:8px;margin-bottom:9px}.surprise-button{padding:0 13px}.surprise-button span{display:none}.search-wrap{border-radius:15px;min-height:46px;padding:0 11px}.search-wrap input{height:46px;font-size:15px}.chip{padding:9px 12px;font-size:13px}.filter-rail{gap:7px;padding-bottom:13px}.collection-card{border-radius:20px;padding:14px}.collection-card>div{margin-bottom:16px}.collection-card img{border-radius:10px}.collection-card>span{font-size:20px}.collection-card small{font-size:12px}.related-section .game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.site-footer{gap:3px 16px;font-size:12px}.detail-top .brand span{font-size:18px;letter-spacing:-1px}.detail-top .brand i{display:none}.detail-top .header-actions .icon-button{min-width:36px}.detail-top{padding-bottom:8px}.stage-copy{gap:18px;padding:24px}.stage-cover{width:125px;height:125px}.stage-copy h2{font-size:24px}.game-stage{border-radius:20px}.player-tools .secondary{font-size:12px;padding:10px}.player-tools .secondary svg{width:18px}.player-tools{gap:7px}}
@media(max-width:350px){.brand{font-size:20px}.brand img{width:31px;height:31px}.brand i{display:none}.header-actions{gap:4px}.game-grid{gap:8px}.game-card{border-radius:14px}.game-card h3{font-size:11px;inset-inline:7px}.featured-card h3{font-size:18px}.detail-top .brand{display:none}.detail-top .header-actions{margin-inline-start:auto}}
[dir=rtl] .detail-top [data-action=back] svg{transform:rotate(180deg)}
@keyframes page-in{from{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes sheet-in{from{opacity:.6;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.game-card:hover,.game-card:hover img{transform:none}}

body.dialog-open{overflow:hidden}
