/* ==========================================================================
   game.css — Arcade Hoops: neon arcade arayüzü
   ========================================================================== */

:root {
    --bg: #0a0418;
    --neon: #ff3d6e;
    --neon2: #37c8ff;
    --amber: #ffb02e;
    --panel: #1a0f3a;
    --u: min(100vw / 375, 100vh / 812); /* tasarım birimi (375x812) */
}

html, body { background: #05010c; }
body { background-image: none; }

/* Geniş ekranlarda dikey (9:16) çerçeve */
#app { background: #0a0418; }
@media (min-aspect-ratio: 4/5) {
    #app { left: 50%; right: auto; width: calc(100vh * 0.5625); transform: translateX(-50%); box-shadow: 0 0 60px rgba(120, 40, 255, 0.35); }
}

#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.screen { pointer-events: none; }
.screen > * { pointer-events: auto; }

/* ---------- HUD ---------- */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; padding-top: var(--safe-t); }
.hud > * { pointer-events: none; }
.hud .pausebtn { pointer-events: auto; position: absolute; left: 10px; top: calc(var(--safe-t) + 8px); width: 38px; height: 38px; z-index: 6; }

.logo-sm {
    position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 1.2%); text-align: center; line-height: 0.92;
    font-weight: 900; font-style: italic; letter-spacing: 0.04em; font-size: clamp(16px, 4vh, 32px);
}
.logo-sm span { display: inline-block; margin: 0 0.12em; background: linear-gradient(180deg, #fff6a8 0%, #ffd21f 35%, #ff7a1a 70%, #ff2e3a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 6px rgba(255, 110, 20, 0.8)) drop-shadow(0 2px 0 #4a0a00); }

.board {
    position: absolute; left: 50%; transform: translateX(-50%); width: min(94%, 440px); top: calc(var(--safe-t) + clamp(34px, 7.2vh, 62px));
    display: flex; gap: 3.5%; padding: 1.6% 2.2% 2%; border-radius: 14px;
    background: linear-gradient(180deg, #2a2d44, #0c0e1c 55%, #1a1d33); border: 2px solid #565c80;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #0a0b17, 0 0 24px rgba(120, 90, 255, 0.35);
}
.panel { flex: 1; min-width: 0; border-radius: 9px; padding: 3px 4px 5px; text-align: center; background: #07070f; border: 1.5px solid #000; box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.9); }
.panel label { display: block; font-size: clamp(8px, 1.45vh, 11px); font-weight: 900; letter-spacing: 0.14em; color: #fff; text-shadow: 0 0 6px currentColor; margin-bottom: 1px; }
.p-mult label { color: #6fc0ff; } .p-time label { color: #ffb02e; } .p-score label { color: #ff6a7d; }
.p-mult { --lit: #38aaff; } .p-time { --lit: #ff9a1f; } .p-score { --lit: #ff3347; }
.lcd { display: flex; justify-content: center; align-items: center; gap: 4%; height: clamp(26px, 5.4vh, 46px); }
.lcd svg { height: 100%; width: auto; overflow: visible; font-style: normal; }
.lcd .on { fill: var(--lit); filter: drop-shadow(0 0 2.2px var(--lit)); }
.lcd .off { fill: var(--lit); opacity: 0.10; }
.lcd .xs { fill: var(--lit); font: 900 17px "Trebuchet MS", Arial, sans-serif; filter: drop-shadow(0 0 2px var(--lit)); }
.lcd.flash { animation: lcdflash 0.5s ease-out; }
@keyframes lcdflash { 0% { transform: scale(1.22); filter: brightness(1.8); } 100% { transform: scale(1); filter: none; } }
.p-time.low .lcd { animation: lowtime 0.5s steps(2) infinite; }
@keyframes lowtime { 50% { opacity: 0.35; } }

.chips { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + clamp(34px, 7.2vh, 62px) + clamp(56px, 11.6vh, 96px)); display: flex; justify-content: center; gap: 8px; }
.chip { padding: 3px 10px; border-radius: 99px; font-size: clamp(10px, 1.7vh, 13px); font-weight: 900; letter-spacing: 0.05em; background: rgba(10, 5, 30, 0.72); border: 1.5px solid rgba(255, 255, 255, 0.22); }
.chip.fire { color: #ffd26a; border-color: #ff7a1a; box-shadow: 0 0 12px rgba(255, 110, 20, 0.7); animation: pulse 0.6s ease-in-out infinite alternate; }
.chip.gold { color: #1b1200; background: linear-gradient(180deg, #fff08a, #ffb400); border-color: #fff; }
.chip.hearts { color: #ff5468; letter-spacing: 0.15em; }
.chip.move { color: #c9a8ff; border-color: #a06bff; }
@keyframes pulse { to { transform: scale(1.08); } }

.banner { position: absolute; left: 0; right: 0; top: 52%; text-align: center; font-weight: 900; font-style: italic; }
.banner .b {
    display: inline-block; font-size: clamp(30px, 6.6vh, 56px); letter-spacing: 0.04em; color: #fff; -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 14px var(--c, #ff3d6e), 0 4px 0 rgba(0, 0, 0, 0.5); animation: bpop 1.1s ease-out forwards; white-space: nowrap;
}
.banner .b small { display: block; font-size: 0.4em; letter-spacing: 0.1em; opacity: 0.9; }
.banner .b.swish { --c: #6dffb0; color: #d8ffe8; } .banner .b.fire { --c: #ff7a1a; color: #ffe08a; } .banner .b.gold { --c: #ffd21f; color: #fff2a0; }
.banner .b.mult { --c: #37c8ff; color: #d6f1ff; } .banner .b.move { --c: #a06bff; color: #efe0ff; font-size: clamp(22px, 4.4vh, 38px); }
.banner .b.life { --c: #ff5468; color: #ffd6dc; } .banner .b.count, .banner .b.go { font-size: clamp(60px, 14vh, 130px); --c: #ffd21f; color: #fff2a0; animation-duration: 0.9s; }
.banner .b.hint { --c: #fff; font-size: clamp(18px, 3.2vh, 26px); }
@keyframes bpop { 0% { transform: scale(0.4); opacity: 0; } 14% { transform: scale(1.18); opacity: 1; } 28% { transform: scale(1); } 80% { opacity: 1; } 100% { transform: translateY(-34px) scale(1); opacity: 0; } }

.tutorial { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; color: #fff; font-weight: 900; text-shadow: 0 2px 6px #000; height: 28%; }
.tutorial .hand { position: absolute; left: 50%; bottom: 8%; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 70%); animation: swipeup 1.4s ease-in-out infinite; }
.tutorial p { position: absolute; left: 0; right: 0; top: 0; margin: 0; font-size: clamp(16px, 2.8vh, 22px); }
@keyframes swipeup { 0% { transform: translateY(0) scale(1); opacity: 0; } 15% { opacity: 1; } 80% { transform: translateY(-120px) scale(0.8); opacity: 1; } 100% { transform: translateY(-140px) scale(0.6); opacity: 0; } }

/* ---------- Ana menü ---------- */
.menu { justify-content: flex-start; background: linear-gradient(180deg, rgba(8, 2, 22, 0.78) 0%, rgba(8, 2, 22, 0.15) 34%, rgba(8, 2, 22, 0.15) 52%, rgba(8, 2, 22, 0.86) 100%); }
.menu-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 0; }
.coin-chip { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 8px; border-radius: 99px; background: rgba(10, 5, 30, 0.8); border: 2px solid #ffb02e; font-weight: 900; font-size: 17px; box-shadow: 0 0 14px rgba(255, 176, 46, 0.4); }
.coinico { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6a8, #ffc400 55%, #b87c00); border: 2px solid #8a5a00; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25); }
.plus { width: 26px; height: 26px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #43e07d, #17a84f); color: #fff; font-size: 20px; font-weight: 900; line-height: 1; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); background: rgba(10, 5, 30, 0.75); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; padding: 0; }
.round-btn svg { width: 20px; height: 20px; fill: #fff; }

.logo { text-align: center; line-height: 0.9; margin-top: 1.2vh; }
.logo .l1, .logo .l2 { display: block; font-weight: 900; font-style: italic; letter-spacing: 0.03em; background: linear-gradient(180deg, #fff6a8 0%, #ffd21f 30%, #ff7a1a 65%, #ff2e3a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(255, 110, 20, 0.9)) drop-shadow(0 4px 0 #4a0a00); }
.logo .l1 { font-size: clamp(32px, 6.6vh, 58px); }
.logo .l2 { font-size: clamp(42px, 8.8vh, 76px); margin-top: -0.02em; animation: flick 2.4s ease-in-out infinite; }
.logo small { display: block; margin-top: 10px; font-size: clamp(11px, 1.8vh, 14px); font-style: normal; letter-spacing: 0.2em; color: #ffd6e6; text-transform: uppercase; text-shadow: 0 0 8px var(--neon); -webkit-text-fill-color: #ffd6e6; }
@keyframes flick { 0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 110, 20, 0.9)) drop-shadow(0 4px 0 #4a0a00); } 50% { filter: drop-shadow(0 0 20px rgba(255, 150, 30, 1)) drop-shadow(0 4px 0 #4a0a00); } }

.menu-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0 10px 14px; }
.modes { display: flex; gap: 10px; overflow-x: auto; width: 100%; padding: 8px 8px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.modes::-webkit-scrollbar { display: none; }
.mode { flex: none; scroll-snap-align: center; width: 104px; padding: 10px 6px 8px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.18); background: linear-gradient(180deg, rgba(40, 20, 90, 0.92), rgba(16, 8, 40, 0.92)); text-align: center; position: relative; transition: transform 0.15s, border-color 0.15s; }
.mode .ic { font-size: 30px; line-height: 1; filter: drop-shadow(0 0 8px var(--mc)); }
.mode b { display: block; margin-top: 5px; font-size: 12px; line-height: 1.15; min-height: 28px; display: flex; align-items: center; justify-content: center; }
.mode small { display: block; font-size: 11px; color: #c7b8ff; margin-top: 2px; }
.mode.sel { border-color: var(--mc); transform: translateY(-3px) scale(1.04); box-shadow: 0 0 18px var(--mc), inset 0 0 14px rgba(255, 255, 255, 0.08); }
.mode.locked { filter: saturate(0.5); }
.mode .lock { position: absolute; right: 6px; top: 4px; font-size: 14px; }
.mode-desc { min-height: 34px; font-size: 13px; text-align: center; color: #e4d8ff; padding: 0 14px; line-height: 1.35; }
.best { font-size: 13px; letter-spacing: 0.12em; color: #ffe08a; font-weight: 800; }
.best b { font-size: 20px; color: #fff; margin-left: 4px; }
.play {
    width: min(78%, 300px); padding: 14px 0; border: 0; border-radius: 18px; font-size: 28px; font-weight: 900; letter-spacing: 0.1em; color: #fff; font-style: italic;
    background: linear-gradient(180deg, #ff6a8a, #ff1f55 55%, #d00a3c); box-shadow: 0 6px 0 #8a0728, 0 12px 22px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 50, 100, 0.55); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
    animation: playpulse 1.6s ease-in-out infinite; cursor: pointer;
}
.play:active { transform: translateY(3px); box-shadow: 0 3px 0 #8a0728; animation: none; }
@keyframes playpulse { 50% { transform: scale(1.04); } }
.menu-row { display: flex; gap: 8px; width: 100%; justify-content: center; }
.mbtn { position: relative; flex: 1; max-width: 86px; padding: 8px 2px 6px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.2); background: rgba(20, 10, 50, 0.85); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mbtn span { font-size: 22px; line-height: 1; } .mbtn small { font-size: 11px; font-weight: 800; }
.dot { position: absolute; right: -3px; top: -5px; width: 18px; height: 18px; border-radius: 50%; background: #ff3347; font-style: normal; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.foot { font-size: 10px; color: rgba(255, 255, 255, 0.45); text-align: center; }

/* ---------- Pencereler ---------- */
.modal-card { background: linear-gradient(180deg, #2a1660, #130a33); border: 2px solid rgba(255, 255, 255, 0.18); box-shadow: 0 0 30px rgba(120, 60, 255, 0.45), 0 14px 40px rgba(0, 0, 0, 0.6); max-height: 88vh; overflow-y: auto; }
.modal-card h2 small { display: block; font-size: 13px; color: #ffd86a; margin-top: 3px; }
.btn-gold { background: linear-gradient(180deg, #ffe45a, #ffb400); color: #2a1a00; box-shadow: 0 4px 0 #a86f00; }
.btn-gold.poor { filter: saturate(0.4) brightness(0.85); }
.res-score { text-align: center; margin: 4px 0 8px; }
.res-score .big { font-size: 64px; font-weight: 900; line-height: 1; color: #fff; text-shadow: 0 0 18px #ff3d6e; }
.res-score .newbest { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 99px; background: linear-gradient(180deg, #fff08a, #ffb400); color: #2a1a00; font-weight: 900; font-size: 13px; animation: pulse 0.6s ease-in-out infinite alternate; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 12px; }
.res-grid div { background: rgba(0, 0, 0, 0.3); border-radius: 10px; padding: 6px 2px; text-align: center; }
.res-grid b { display: block; font-size: 18px; } .res-grid span { font-size: 10px; color: #c7b8ff; letter-spacing: 0.06em; }
.res-coins { text-align: center; font-weight: 900; font-size: 17px; color: #ffd86a; margin-bottom: 10px; }
.modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pillbar { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.pillbar button { border: 2px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.25); color: #fff; border-radius: 99px; padding: 6px 14px; font-weight: 800; font-size: 13px; }
.pillbar button.on { background: var(--neon); border-color: #fff; }
.cell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.cell { position: relative; border: 2px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.28); border-radius: 12px; padding: 6px 2px 4px; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cell.sel { border-color: #ffd21f; box-shadow: 0 0 10px rgba(255, 210, 31, 0.6); }
.cell small { font-size: 11px; font-weight: 800; }
.cell .thumb { display: block; width: 52px; height: 52px; }
.cell .thumb canvas { width: 100%; height: 100%; display: block; }
.cell .lock, .cell .tick { position: absolute; right: 4px; top: 2px; font-style: normal; font-size: 13px; }
.cell.locked .thumb { opacity: 0.55; }
.preview { display: flex; justify-content: center; margin: 4px 0; min-height: 130px; }
.preview canvas { max-width: 100%; border-radius: 14px; }
.skin-name { text-align: center; font-weight: 900; font-size: 17px; margin-bottom: 4px; }
.shop-row { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.28); border: 2px solid rgba(255, 255, 255, 0.14); border-radius: 14px; padding: 9px 10px; margin-bottom: 8px; position: relative; }
.shop-row .ic { font-size: 28px; width: 38px; text-align: center; }
.shop-row .tx { flex: 1; min-width: 0; } .shop-row .tx b { display: block; font-size: 14px; } .shop-row .tx span { font-size: 12px; color: #c7b8ff; }
.shop-row .tag { position: absolute; right: 8px; top: -8px; background: var(--neon); font-size: 10px; font-weight: 900; border-radius: 99px; padding: 2px 8px; }
.shop-row .btn { padding: 9px 12px; font-size: 14px; white-space: nowrap; }
.mission { background: rgba(0, 0, 0, 0.28); border-radius: 12px; padding: 9px 10px; margin-bottom: 8px; }
.mission .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.mission .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); margin-top: 7px; overflow: hidden; }
.mission .bar i { display: block; height: 100%; background: linear-gradient(90deg, #37c8ff, #6dffb0); }
.streak-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 8px 0; }
.streak-row div { background: rgba(0, 0, 0, 0.3); border: 2px solid rgba(255, 255, 255, 0.14); border-radius: 10px; text-align: center; padding: 6px 0; font-size: 11px; font-weight: 800; }
.streak-row div b { display: block; font-size: 13px; color: #ffd86a; }
.streak-row div.done { opacity: 0.45; } .streak-row div.today { border-color: #ffd21f; box-shadow: 0 0 10px rgba(255, 210, 31, 0.7); }
.slider { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 14px; } .slider input { flex: 1; }
.has-noads .ad-slot { display: none !important; }

@media (max-height: 640px) {
    .menu-bottom { gap: 5px; } .mode-desc { min-height: 28px; font-size: 12px; } .logo small { display: none; }
}
