*{box-sizing:border-box}body{margin:0;background-color:var(--theme,#090f1f);background-image:url('../static/pattern.svg');color:#f5f6fb;font:16px Arial,sans-serif}main{max-width:1120px;margin:auto;padding:0 8px}header{height:76px;display:flex;align-items:flex-start;padding:11px 10px;justify-content:space-between;background:#0b1220}#brand{font-size:26px;font-weight:800;padding-top:5px}#brand img{max-width:150px;max-height:46px;object-fit:contain}#clock{padding:11px;border:1px solid #626977;border-radius:5px;background:#202735;font-variant-numeric:tabular-nums}#banner{aspect-ratio:3.49;display:flex;flex-direction:column;justify-content:center;padding:5%;background:radial-gradient(ellipse at 75% 30%,#b78035,transparent 55%),linear-gradient(110deg,#47241d,#91602b);overflow:hidden}#banner h1{font-size:clamp(22px,4vw,46px);margin:0}#banner p{margin:10px 0}#banner:has(img){padding:0}#banner img{width:100%;height:100%;object-fit:contain}nav{display:grid;grid-template-columns:repeat(4,1fr);justify-items:center;padding:16px 0 10px}nav button{color:white;background:transparent;border:2px solid transparent;border-radius:22px;width:min(138px,100%);min-height:108px;display:grid;place-content:center;gap:12px;font:inherit;cursor:pointer}nav button[aria-pressed=true]{border-color:#ffd04b;background:linear-gradient(#19243d,#233d55)}.mark{font-size:32px;font-weight:900;font-style:italic;line-height:1.1}.mark img{width:65px;height:38px;object-fit:contain}.controls{display:flex;background:#1c2534;border-radius:6px;border-bottom:2px solid #17516b;padding:4px;gap:6px}.controls input,.controls select{background:transparent;border:0;color:white;font:inherit;padding:5px 12px;min-width:0}.controls input{flex:1}.controls select{background:#3b4860;border-radius:4px;width:22%;font-size:13px}#notice{font-size:13px;color:#ffe3a2;background:#362b18;padding:8px 10px;margin-top:8px;border:1px solid #82652c;border-radius:4px}.status{display:flex;justify-content:space-between;color:#b8c5d9;font-size:12px;padding:8px 4px}#games{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 9px;padding:0 5px}.game{min-width:0;background:#101827;padding:1px 1px 7px}.cover{width:100%;aspect-ratio:3/2;object-fit:cover;display:block;border:1px solid #8b7958}.game h2{font-size:14px;margin:7px 6px;overflow-wrap:anywhere}.metrics{padding:0 6px;display:grid;gap:5px}.bar{height:18px;position:relative;background:#e6e8ec;border-radius:2px;overflow:hidden;color:#101820;font-size:12px}.fill{position:absolute;inset:0 auto 0 0;background:repeating-linear-gradient(45deg,#4590bc 0 7px,#579fc8 7px 14px)}.fill.green{background:repeating-linear-gradient(45deg,#40b77b 0 7px,#57c68c 7px 14px)}.bartext{position:relative;display:flex;justify-content:space-between;align-items:center;height:100%;padding:0 5px;font-weight:600}.source{font-size:11px;color:#c2cedd;overflow-wrap:anywhere}footer{text-align:center;padding:25px;color:#aab7ca;font-size:12px}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #ffd04b;outline-offset:2px}@media(max-width:650px){main{padding:0 6px}header{height:58px;padding:8px 4px}#brand{font-size:20px}#clock{padding:7px;font-size:14px}nav{padding:8px 0}nav button{min-height:75px;border-radius:13px;font-size:12px;gap:7px}.mark{font-size:23px}.mark img{width:46px;height:28px}.controls select{width:36%}#games{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 6px;padding:0}.bar{font-size:11px}.metrics{padding:0 3px}#notice{font-size:11px}}

/* V2.1: brand and responsive layout */
main{max-width:1080px}header{height:68px;align-items:center;padding:8px 10px}#brand{padding:0}#brand img{display:block;width:190px;max-width:100%;max-height:48px}#banner:has(img){aspect-ratio:auto;background:none;border-radius:12px}#banner img{display:block;width:100%;height:auto;object-fit:contain}nav{padding:12px 0 8px}nav button{min-height:90px;gap:8px}nav button[aria-pressed=true]{border-color:#f9cf54;background:linear-gradient(145deg,#153b32,#18263b)}.controls{border-bottom-color:#237f61}.game{border-radius:8px;overflow:hidden;border:1px solid #273347}.cover{border:0}.metrics{gap:4px}.bar{height:17px}#games{gap:10px 8px}#notice{line-height:1.4}.banner-disclosure{font-size:12px;color:#d6c9a3;margin:5px 2px 0;line-height:1.4}@media(max-width:650px){header{height:55px}#brand img{width:145px;max-height:37px}nav button{min-height:68px;gap:5px}#banner:has(img){border-radius:7px}.bar{height:17px}}

/* V2.2 — compact metrics and rating */
.metrics{padding:7px 6px 0;gap:5px}.bar{height:18px;font-size:12px}.bartext{padding:0 5px;gap:3px}.bartext span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bartext span:last-child{flex-shrink:0}.demo-label{font-size:10px;color:#ffe3a2;line-height:1.2}.rating{text-align:center;padding:4px 3px 2px}.stars{display:block;color:#ffd43b;font-size:clamp(22px,2.7vw,35px);letter-spacing:3px;line-height:1.2}.rating-note{display:block;font-size:10px;color:#c2cedd;overflow-wrap:anywhere}.game-bottom{display:flex;align-items:center;justify-content:space-between;padding:2px 6px 5px}.game-bottom h2{margin:4px 0;font-weight:500;font-size:13px}.game{background:transparent;border-color:transparent}.cover{border:1px solid #8b7958;border-radius:4px}@media(max-width:650px){.metrics{padding:5px 3px 0;gap:4px}.bar{font-size:10px;height:17px}.stars{font-size:25px;letter-spacing:1px}.game-bottom h2{font-size:12px}}

/* V2.3: compact original-reference layout */
main{max-width:1040px}header{position:sticky;top:0;z-index:20;height:62px;background:#0b1220}#banner:has(img){border-radius:0}nav{padding:15px 0 10px}nav button{min-height:100px;width:min(126px,100%);gap:6px}nav button[aria-pressed=true]{background:linear-gradient(0deg,#243d5c,#19233e);border-color:#ffce40}.mark img{width:64px;height:52px}.controls{height:34px;border-bottom-color:#035}.controls select{width:20%;text-align:center}.controls input{padding-left:16px}#games{gap:12px 8px;padding:0 5px}.game{padding:0 0 3px;border:0;border-radius:0;overflow:visible}.cover{border-radius:0}.metrics{padding:8px 5px 0;gap:6px}.bar{height:16px;background:#e5e5e5;font-size:12px;border-radius:2px}.bartext{padding:0 3px 0 8px;font-weight:700;letter-spacing:-.3px}.fill{background:#4384af;border-radius:2px}.fill.green{background:#38b36e}.fill:after{content:"";position:absolute;inset:0;background-image:linear-gradient(45deg,#ffffff26 25%,transparent 25%,transparent 50%,#ffffff26 50%,#ffffff26 75%,transparent 75%);background-size:16px 16px;animation:stripes 2s linear infinite}@keyframes stripes{to{background-position:16px 0}}.rating{padding:8px 0 3px}.stars{display:flex;justify-content:center;gap:6px;line-height:1}.stars img{width:32px;height:32px;object-fit:contain}.rating-note{margin-top:3px;font-size:10px}.game-bottom{padding:3px 18px 4px;gap:5px}.game-bottom h2{font-size:12px;font-weight:400}.card-clock{flex:none;width:26px;height:26px;border:1px solid #08f806;border-radius:50%;display:grid;place-items:center;font-size:10px;color:#eef302}.mark img{width:45px;height:38px}.controls select{width:35%}.stars{gap:4px}.stars img{width:24px;height:24px}.bar{font-size:10px}.bartext{padding-left:3px}.metrics{padding:5px 3px 0;gap:4px}.game-bottom{padding:3px 4px}#games{padding:0;gap:10px 6px}}@media(prefers-reduced-motion:reduce){.fill:after{animation:none}}

.game-link{display:block;cursor:pointer}.game-link:focus-visible{outline:2px solid #ffd400;outline-offset:2px}

.half-star{position:relative;display:inline-flex;flex:none}.half-star img+img{position:absolute;inset:0;clip-path:inset(0 50% 0 0)}

.game-link{position:relative;display:block}.demo-trend{position:absolute;right:5px;bottom:5px;width:25px;height:32px;border-radius:4px;background:#101418dd;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;pointer-events:none;color:#a1a1aa}.demo-trend i{display:block;width:10px;height:10px;border-top:2px solid currentColor;border-left:2px solid currentColor;transform:rotate(45deg);margin:-1px 0}.demo-trend.up{color:#22c55e}.demo-trend.down{color:#ef4444}.demo-trend.down i{transform:rotate(225deg)}.demo-trend.up i{animation:trendUp 1s infinite alternate}.demo-trend.down i{animation:trendDown 1s infinite alternate}.demo-trend.flat i{height:0;border-left:0;transform:none}.demo-trend i:nth-child(2){animation-delay:.15s}.demo-trend i:nth-child(3){animation-delay:.3s}@keyframes trendUp{from{opacity:.45;translate:0 2px}to{opacity:1;translate:0 -2px}}@keyframes trendDown{from{opacity:.45;translate:0 -2px}to{opacity:1;translate:0 2px}}@media(prefers-reduced-motion:reduce){.demo-trend i{animation:none!important}}

/* V3.1: responsive overrides, independent of device brand */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}main{width:100%;max-width:1120px;padding:0 12px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}header{gap:12px;height:auto;min-height:62px}#brand{min-width:0}#clock{flex:none}#banner{padding:0;aspect-ratio:auto}#banner img{height:auto;width:100%;display:block}nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}nav button{width:100%;max-width:126px;min-width:0;min-height:80px} .controls{height:auto;min-height:44px;align-items:stretch}.controls input{width:0;min-height:36px;font-size:16px}.controls select{width:36%;max-width:240px;min-height:36px;font-size:14px}#games{grid-template-columns:repeat(4,minmax(0,1fr));padding:0}.bar{height:auto;min-height:20px;font-size:12px}.bartext{min-height:20px;height:auto;gap:4px;padding:2px 4px;letter-spacing:0}.bartext span:first-child{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word;min-width:0}.stars{gap:4px}.stars img{width:24px;height:24px}.game-bottom{padding:3px 4px}.game-bottom h2{min-width:0}.demo-label{line-height:1.35}.status{gap:8px;flex-wrap:wrap}#games>p{grid-column:1/-1}
@media(max-width:900px){#games{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){main{padding-left:max(6px,env(safe-area-inset-left));padding-right:max(6px,env(safe-area-inset-right))}#games{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 6px}header{min-height:54px}nav button{min-height:68px;font-size:12px;border-radius:12px}.mark img{width:42px;height:32px}.controls select{width:45%;font-size:12px}.controls input{padding:5px 6px}.bar{font-size:11px}.stars img{width:20px;height:20px}.stars{gap:3px}.demo-trend{width:22px;height:28px;right:3px;bottom:3px}}
@media(max-width:359px){.controls{flex-wrap:wrap}.controls input,.controls select{width:100%;max-width:none;flex:1 0 100%}.bar{font-size:10px}.stars img{width:17px;height:17px}.mark img{width:34px;height:28px}nav button{font-size:11px}.game-bottom h2{font-size:11px}}
@media(max-width:279px){#games{grid-template-columns:1fr}nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.fill:after,.demo-trend i{animation:none!important}}
