/* TapQuickGames game kit v1 - shared layout for every new game */
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%;overflow:hidden;background:#05070f;color:#e6f1ff;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
body{overscroll-behavior:none}
.tq-app{position:fixed;inset:0;display:flex;flex-direction:column;max-width:760px;margin:0 auto;background:radial-gradient(ellipse at 50% 0%,#101533 0%,#080915 60%)}
.tq-top{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:max(6px,env(safe-area-inset-top)) 8px 6px}
.tq-back{color:#fff;text-decoration:none;font:18px/1 system-ui,sans-serif;border:1px solid rgba(0,243,255,.8);padding:7px 9px;border-radius:50%;background:rgba(0,243,255,.18);white-space:nowrap;box-shadow:0 0 10px rgba(0,243,255,.35)}
.tq-name{flex:1;min-width:0;font:900 13px/1.1 Orbitron,system-ui,sans-serif;letter-spacing:.06em;color:#fff;text-shadow:0 0 10px rgba(0,243,255,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tq-hud{display:flex;gap:10px;align-items:center}
.tq-stat{display:flex;flex-direction:column;align-items:flex-end;min-width:28px}
.tq-stat b{font:700 8px/1 system-ui,sans-serif;color:#7b8bab;letter-spacing:.12em}
.tq-stat span{font:700 14px/1.2 Orbitron,system-ui,sans-serif;color:#00f3ff;font-variant-numeric:tabular-nums}
.tq-stat.gold span{color:#ffe600}.tq-stat.pink span{color:#ff3d9a}.tq-stat.green span{color:#00ff88}
.tq-btn-i{width:38px;height:38px;border-radius:50%;border:1px solid rgba(0,243,255,.7);background:rgba(14,21,38,.85);color:#00f3ff;font-size:15px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto}
.tq-btn-i.off{color:#6b7a99;border-color:#3a4766}
.tq-stage{flex:1 1 0;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;padding:4px 6px;overflow:hidden}
.tq-stage canvas{display:block;touch-action:none;border-radius:10px}
.tq-bar{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;padding:6px 10px}
.tq-bar:empty{display:none}
.tq-ad{flex:0 0 60px;width:100%;height:60px;max-height:60px;overflow:hidden;text-align:center;padding-bottom:env(safe-area-inset-bottom)}
.tq-b{font:800 13px/1 Orbitron,system-ui,sans-serif;letter-spacing:.06em;color:#e6f1ff;background:rgba(0,243,255,.08);border:1px solid rgba(0,243,255,.55);border-radius:12px;padding:13px 16px;min-height:44px;cursor:pointer}
.tq-b:active{transform:scale(.97)}
.tq-b.pri{background:linear-gradient(90deg,#00e5ff,#ff2d95);color:#081018;border:0}
.tq-b.sel{background:rgba(0,243,255,.25);border-color:#00f3ff;color:#fff}
.tq-b[disabled]{opacity:.4;pointer-events:none}
.tq-ov{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(4,6,14,.82);backdrop-filter:blur(4px)}
.tq-ov[hidden]{display:none}
.tq-card{width:100%;max-width:400px;max-height:100%;overflow:auto;background:#0d1226;border:1px solid rgba(0,243,255,.35);border-radius:18px;padding:20px 18px;text-align:center;box-shadow:0 0 40px rgba(0,243,255,.15)}
.tq-card h1,.tq-card h2{font:900 22px/1.2 Orbitron,system-ui,sans-serif;color:#00f3ff;text-shadow:0 0 14px rgba(0,243,255,.6);margin-bottom:8px;letter-spacing:.05em}
.tq-card p{font-size:14px;line-height:1.45;color:#b9c6e0;margin:6px 0}
.tq-card ul{text-align:left;font-size:13px;line-height:1.5;color:#b9c6e0;margin:8px 0 4px 18px}
.tq-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:12px 0 4px}
.tq-row .tq-b{flex:1 1 30%}
.tq-big{font:900 34px/1.1 Orbitron,system-ui,sans-serif;color:#ffe600;margin:6px 0}
.tq-links{margin-top:12px;font-size:12px}
.tq-links a{color:#8aa0c8;margin:0 6px}
.tq-next{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.tq-next a{display:block;text-decoration:none;color:#cfe;font-size:11px;line-height:1.2}
.tq-next img{width:100%;height:auto;border-radius:8px;display:block;margin-bottom:4px;aspect-ratio:320/230;background:#111a33}
.tq-toast{position:absolute;left:50%;top:12px;transform:translateX(-50%);z-index:30;background:rgba(13,18,38,.95);border:1px solid rgba(0,243,255,.5);color:#fff;padding:8px 14px;border-radius:10px;font-size:13px;pointer-events:none;opacity:0;transition:opacity .2s}
.tq-toast.on{opacity:1}
@media (max-width:420px){.tq-name{font-size:11px}.tq-hud{gap:7px}.tq-stat span{font-size:12px}.tq-back{padding:7px 8px}}
@media (min-width:700px){.tq-name{font-size:16px}.tq-stat span{font-size:16px}}

.tq-hs{margin:8px auto 4px;max-width:260px;text-align:left}.tq-hs p{font-size:11px;letter-spacing:.12em;color:#7b8bab;text-align:center;margin:0 0 4px}.tq-hs ol{margin:0;padding:0 0 0 22px;font-size:13px;color:#cfe3ff}.tq-hs li{display:flex;justify-content:space-between;gap:10px;padding:1px 0}.tq-hs li span{color:#7b8bab;font-size:11px}.tq-hs li.me{color:#ffe600}.tq-hs li.me span{color:#ffe600}

/* dar telefonlar (≤400px): ust bar tasmasin, tum tuslar ekranda kalsin */
@media (max-width:400px){.tq-top{gap:4px;padding-left:5px;padding-right:5px}.tq-hud{gap:5px}.tq-stat{min-width:20px}.tq-stat b{font-size:7px;letter-spacing:.06em}.tq-stat span{font-size:11px}.tq-btn-i{width:31px;height:31px;font-size:13px}.tq-back{padding:6px 7px;font-size:15px}.tq-name{font-size:10px}}
@media (max-width:350px){.tq-name{display:none}}
@media (orientation:landscape) and (max-height:500px){.tq-top{padding:max(2px,env(safe-area-inset-top)) 8px 2px;gap:6px}.tq-name{font-size:11px;max-width:22vw}.tq-btn-i{width:28px;height:28px;font-size:12px}.tq-hud{gap:8px}.tq-bar{padding:2px 8px}.tq-bar:empty{display:none}.tq-ad{flex-basis:52px;height:52px;max-height:52px}.tq-stage{padding:2px 4px}}
/* v5: yatay kısa ekranda başlangıç kartı tek ekrana sığsın */
@media (orientation:landscape) and (max-height:520px){.tq-ov{padding:6px}.tq-card{max-width:min(860px,96vw);padding:10px 16px}.tq-card h1,.tq-card h2{font-size:18px;margin-bottom:2px}.tq-card p{font-size:12.5px;line-height:1.35;margin:3px 0}.tq-card ul{columns:2;column-gap:22px;font-size:11.5px;line-height:1.35;margin:4px 0 2px 14px}.tq-card ul li{break-inside:avoid;margin-bottom:2px}.tq-card ul:has(li:nth-child(6)){columns:3;font-size:10.5px;line-height:1.3}.tq-card button{padding-top:9px!important;padding-bottom:9px!important;margin-top:3px!important;margin-bottom:0!important}}
/* v8: long rules collapse into "How to play"; PLAY row stays visible above the cookie sheet */
.tq-ov{padding-bottom:calc(16px + var(--tq-cookie-h,0px))}
.tq-card details.tq-rules{margin:8px 0 2px;text-align:left;background:rgba(10,15,34,.6);border:1px solid rgba(0,243,255,.25);border-radius:12px;padding:2px 10px}
.tq-card details.tq-rules>summary{cursor:pointer;list-style:none;min-height:36px;display:flex;align-items:center;font:700 13px system-ui,sans-serif;color:#00f3ff}
.tq-card details.tq-rules>summary::-webkit-details-marker{display:none}
.tq-card details.tq-rules>summary::before{content:"\25B8";margin-right:8px}
.tq-card details.tq-rules[open]>summary::before{content:"\25BE"}
.tq-card details.tq-rules>ul{margin-top:2px}
.tq-card .tq-playrow{position:sticky;bottom:0;z-index:2;background:#0d1226;padding:8px 0 6px;margin-bottom:0;box-shadow:0 -10px 14px -6px #0d1226}
