/* ==========================================================================
   kz.css — Kim Zengin Olmak İster?: stüdyo havası (koyu mavi sahne, altın çerçeveler, altıgen şıklar)
   ========================================================================== */

:root {
    --bg: #04041a;
    --blue-1: #0b0b3a;
    --blue-2: #15156a;
    --gold: #e2b963;
    --gold-hi: #fff0b0;
    --gold-lo: #8c6a26;
    --orange: #ff9a1f;
    --green: #22c55e;
    --red: #ef4444;
    --u: min(100vw / 375, 100vh / 760);
}

html, body { background: #02020e; }
body { background-image: none; font-family: "Trebuchet MS", "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif; }

#app { background: var(--bg); overflow: hidden; }
@media (min-aspect-ratio: 4/5) {
    #app { left: 50%; right: auto; width: calc(100vh * 0.5625); transform: translateX(-50%); box-shadow: 0 0 80px rgba(60, 80, 255, 0.35); }
}

/* ---------- Sahne arka planı ---------- */
.stage { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, #1b1b86 0%, #0a0a45 38%, #04041a 80%); overflow: hidden; pointer-events: none; }
.stage .rays { position: absolute; left: 50%; top: 22%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax;
    background: repeating-conic-gradient(from 0deg, rgba(150, 170, 255, 0.10) 0deg 5deg, rgba(150, 170, 255, 0) 5deg 15deg);
    -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 38%); mask-image: radial-gradient(circle, #000 0%, transparent 38%);
    animation: spin 90s linear infinite; }
.stage .glow { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(0deg, rgba(226, 185, 99, 0.12), transparent); }
@keyframes spin { to { transform: rotate(360deg); } }

.screen { pointer-events: none; padding: calc(var(--safe-t) + 10px) 14px calc(var(--safe-b) + 12px); }
.screen > * { pointer-events: auto; }

/* ---------- Ortak düğmeler ---------- */
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold-lo); background: rgba(5, 5, 40, 0.75); color: #fff; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 0 12px rgba(0, 0, 0, 0.5); }
.icon-btn.sm { width: 38px; height: 38px; font-size: 17px; }
.icon-btn:active { transform: scale(0.92); }

.gold-btn { width: min(86%, 320px); padding: 15px 0; border: 0; border-radius: 40px; font-weight: 900; font-size: 20px; letter-spacing: 0.08em; color: #2a1a00;
    background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, #b98a2a); box-shadow: 0 5px 0 #6b4d12, 0 12px 22px rgba(0, 0, 0, 0.5), 0 0 24px rgba(226, 185, 99, 0.45); animation: btnpulse 2s ease-in-out infinite; }
.gold-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #6b4d12; animation: none; }
.gold-btn:disabled, .gold-btn.off { filter: grayscale(0.7) brightness(0.8); animation: none; }
@keyframes btnpulse { 50% { transform: scale(1.03); } }

.ghost-btn { padding: 10px 16px; border-radius: 22px; border: 1.5px solid var(--gold-lo); background: rgba(8, 8, 50, 0.7); color: var(--gold-hi); font-weight: 700; font-size: 14px; }
.ghost-btn:active { transform: scale(0.96); }

/* ---------- Ana ekran ---------- */
#screen-menu { justify-content: space-between; }
.menu-top { display: flex; justify-content: space-between; }
.menu-center { display: flex; flex-direction: column; align-items: center; margin-top: 2vh; }
.medallion { position: relative; width: min(66vw, 38vh, 270px); aspect-ratio: 1; }
.medallion .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--gold-lo), var(--gold-hi), var(--gold), var(--gold-lo), var(--gold-hi), var(--gold), var(--gold-lo)); box-shadow: 0 0 40px rgba(226, 185, 99, 0.55), inset 0 0 12px rgba(0, 0, 0, 0.6); animation: glowring 2.6s ease-in-out infinite alternate; }
.medallion .ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: repeating-conic-gradient(var(--gold-hi) 0deg 2.5deg, transparent 2.5deg 12deg); -webkit-mask: radial-gradient(circle, transparent 66%, #000 68%, #000 100%); mask: radial-gradient(circle, transparent 66%, #000 68%, #000 100%); opacity: 0.8; animation: spin 40s linear infinite reverse; }
.medallion .face { position: absolute; inset: 7%; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a3ad2, #12125e 55%, #05052a); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.7); }
.medallion .gem { color: var(--gold-hi); font-size: 18px; margin-bottom: 2px; text-shadow: 0 0 10px var(--gold); animation: gem 2s ease-in-out infinite alternate; }
.medallion h1 { margin: 0; display: flex; flex-direction: column; align-items: center; font-weight: 900; font-style: italic; line-height: 1.08; font-size: clamp(22px, 5.6vh, 38px); letter-spacing: 0.03em; }
.medallion h1 span { background: linear-gradient(180deg, #fff, var(--gold-hi) 40%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #3a2500); }
.medallion h1 span:last-child { font-size: 0.86em; }
@keyframes glowring { to { box-shadow: 0 0 70px rgba(226, 185, 99, 0.85), inset 0 0 12px rgba(0, 0, 0, 0.6); } }
@keyframes gem { to { transform: scale(1.25); } }
.tagline { margin: 16px 0 0; color: #bfc4ff; letter-spacing: 0.22em; text-transform: uppercase; font-size: 12px; font-weight: 700; text-align: center; }

.menu-bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lives { font-size: 28px; letter-spacing: 6px; }
.heart-full { filter: drop-shadow(0 0 8px rgba(255, 40, 70, 0.8)); display: inline-block; animation: beat 1.4s ease-in-out infinite; }
.heart-empty { opacity: 0.3; filter: grayscale(1); display: inline-block; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.life-timer { font-size: 13px; color: var(--gold-hi); font-weight: 700; min-height: 18px; margin-top: -4px; }
.menu-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.credits { font-size: 11px; color: rgba(255, 255, 255, 0.45); text-align: center; margin-top: 4px; }

/* ---------- Altıgen çerçeve ---------- */
.hex { --n: 18px; display: block; clip-path: polygon(var(--n) 0, calc(100% - var(--n)) 0, 100% 50%, calc(100% - var(--n)) 100%, var(--n) 100%, 0 50%); }
.hex.gold { padding: 2.5px; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 40%, var(--gold-lo)); filter: drop-shadow(0 0 0 transparent); }
.hex.in { --n: 17px; padding: 0; background: linear-gradient(180deg, #17177c 0%, #0a0a3d 55%, #060628 100%); height: 100%; }

/* ---------- Oyun ekranı ---------- */
#screen-game { gap: 10px; }
.top-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.tb-left { display: flex; gap: 8px; }
.prize-pill { text-align: center; background: linear-gradient(180deg, rgba(15, 15, 90, 0.9), rgba(5, 5, 40, 0.9)); border: 2px solid var(--gold); border-radius: 18px; padding: 4px 18px 5px; box-shadow: 0 0 18px rgba(226, 185, 99, 0.3); min-width: 126px; }
.prize-pill small { display: block; font-size: 10px; letter-spacing: 0.16em; color: #aab0ff; font-weight: 700; }
.prize-pill b { display: block; font-size: 19px; color: var(--gold-hi); font-weight: 900; text-shadow: 0 0 10px rgba(226, 185, 99, 0.6); }
.prize-pill.bump { animation: bump 0.6s ease; }
@keyframes bump { 30% { transform: scale(1.14); } }

.timer { position: relative; width: 56px; height: 56px; justify-self: end; }
.timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.timer circle { fill: rgba(0, 0, 20, 0.85); stroke-width: 4; }
.timer .track { stroke: rgba(255, 255, 255, 0.12); }
.timer .bar { fill: none; stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke 0.3s; }
.timer span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; }
.timer.warn .bar { stroke: var(--red); } .timer.warn span { color: #ff8f8f; animation: warn 0.5s ease-in-out infinite alternate; }
@keyframes warn { to { transform: scale(1.16); } }

.lifelines { display: flex; justify-content: center; gap: 12px; }
.ll { position: relative; width: 62px; height: 40px; border-radius: 22px; border: 2px solid var(--gold); background: linear-gradient(180deg, #1b1b8a, #060630); color: var(--gold-hi); font-weight: 900; font-size: 15px; display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 0 12px rgba(226, 185, 99, 0.25); }
.ll:active { transform: scale(0.94); }
.ll.used { opacity: 0.35; pointer-events: none; border-color: #666; }
.ll.used::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 3px; background: var(--red); transform: rotate(-18deg); border-radius: 3px; }
.ll .lock { display: none; position: absolute; right: -4px; top: -6px; font-size: 13px; font-style: normal; }
.ll.locked { opacity: 0.5; filter: grayscale(0.6); } .ll.locked .lock { display: block; }
.ll.active { border-color: var(--orange); box-shadow: 0 0 18px var(--orange); color: var(--orange); animation: warn 0.7s ease-in-out infinite alternate; }

.qwrap { margin-top: 2px; }
.hex.q { --n: 26px; min-height: clamp(100px, 17vh, 140px); display: flex; }
.hex.q .hex.in { --n: 25px; width: 100%; height: auto; align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 14px 34px; }
.hex.q p { margin: 0; text-align: center; font-weight: 700; line-height: 1.32; font-size: clamp(16px, 2.55vh, 21px); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.hex.q p.long { font-size: clamp(14px, 2.15vh, 17px); }
.qwrap.enter { animation: qin 0.5s cubic-bezier(.2, .8, .2, 1); }
@keyframes qin { from { opacity: 0; transform: translateY(14px) scale(0.97); } }

.answers { display: flex; flex-direction: column; gap: 9px; flex: 1; justify-content: flex-end; }
.opt { border: 0; padding: 0; background: none; color: #fff; text-align: left; display: block; width: 100%; position: relative; }
.opt .hex.gold { height: clamp(50px, 8vh, 62px); }
.opt .hex.in { display: flex; align-items: center; gap: 12px; padding: 0 30px; }
.opt b { color: var(--orange); font-weight: 900; font-size: 18px; flex: none; width: 18px; }
.opt em { font-style: normal; font-weight: 700; font-size: 16px; line-height: 1.15; flex: 1; }
.opt em.long { font-size: 13.5px; }
.opt.enter { animation: oin 0.45s cubic-bezier(.2, .8, .2, 1) backwards; }
.opt:nth-child(2).enter { animation-delay: 0.07s; } .opt:nth-child(3).enter { animation-delay: 0.14s; } .opt:nth-child(4).enter { animation-delay: 0.21s; }
@keyframes oin { from { opacity: 0; transform: translateX(-26px); } }
.opt:active .hex.gold { filter: brightness(1.2); }
.opt.hidden { visibility: hidden; }
.opt.selected .hex.gold { background: linear-gradient(180deg, #ffe0a0, var(--orange), #b86500); }
.opt.selected .hex.in { background: linear-gradient(180deg, #ffb040, #e57800); }
.opt.selected b, .opt.selected em { color: #fff; }
.opt.selected { animation: sel 0.6s ease-in-out infinite alternate; }
@keyframes sel { to { filter: brightness(1.25); } }
.opt.correct .hex.gold { background: linear-gradient(180deg, #d6ffe0, var(--green), #0d7a36); }
.opt.correct .hex.in { background: linear-gradient(180deg, #37e078, #118a3d); }
.opt.correct b, .opt.correct em { color: #fff; }
.opt.correct { animation: flashok 0.5s steps(2) 4; }
@keyframes flashok { 50% { filter: brightness(1.7); } }
.opt.wrong .hex.gold { background: linear-gradient(180deg, #ffd0d0, var(--red), #8a1111); }
.opt.wrong .hex.in { background: linear-gradient(180deg, #f35f5f, #b01818); }
.opt.wrong b, .opt.wrong em { color: #fff; }
.opt.wrong { animation: shake 0.5s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.opt:disabled { cursor: default; }

.bottom-actions { display: flex; justify-content: center; }
@media (max-height: 640px) { .lifelines { gap: 8px; } .answers { gap: 6px; } .ll { height: 34px; } }

/* ---------- Bitiş ---------- */
#screen-end { justify-content: center; align-items: center; }
.end-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; width: 100%; }
.trophy { font-size: 84px; filter: drop-shadow(0 0 24px rgba(226, 185, 99, 0.8)); animation: trophy 1.6s ease-in-out infinite alternate; }
@keyframes trophy { to { transform: translateY(-8px) scale(1.06); } }
.end-wrap h2 { margin: 0; font-size: 26px; color: var(--gold-hi); text-shadow: 0 0 14px rgba(226, 185, 99, 0.6); }
.end-label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: #aab0ff; margin-top: 6px; }
.end-prize { font-size: clamp(40px, 8vh, 62px); font-weight: 900; background: linear-gradient(180deg, #fff, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #3a2500); margin-bottom: 4px; }
.end-sub { color: #d8dbff; font-size: 14px; min-height: 18px; margin-bottom: 14px; }

/* ---------- Pencereler ---------- */
.modal-card { background: linear-gradient(180deg, #14146e, #07072e); border: 2px solid var(--gold); box-shadow: 0 0 34px rgba(226, 185, 99, 0.35), 0 16px 44px rgba(0, 0, 0, 0.65); color: #fff; max-height: 88vh; overflow-y: auto; }
.modal-card h2 { color: var(--gold-hi); text-shadow: 0 0 10px rgba(226, 185, 99, 0.5); }
.modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.btn { border-radius: 24px; }
.btn-play { background: linear-gradient(180deg, #3be07b, #129a45); box-shadow: 0 4px 0 #0b6a2e; }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, #b98a2a); color: #2a1a00; box-shadow: 0 4px 0 #6b4d12; }
.btn-ghost { background: rgba(255, 255, 255, 0.07); border: 1.5px solid rgba(255, 255, 255, 0.22); }
.toggle-row { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 6px; border: 0; background: none; color: #fff; font-size: 16px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.tree { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 10px; }
.tree .row { display: flex; justify-content: space-between; align-items: center; padding: 7px 14px; border-radius: 10px; background: rgba(0, 0, 40, 0.7); font-weight: 800; font-size: 14px; color: #cfd2ff; }
.tree .row.safe { color: var(--gold-hi); border: 1px solid var(--gold-lo); }
.tree .row.passed { opacity: 0.4; }
.tree .row.current { background: linear-gradient(90deg, var(--orange), #ffb74d); color: #2a1500; transform: scale(1.04); box-shadow: 0 0 16px var(--orange); }
.tree .row i { font-style: normal; font-size: 11px; opacity: 0.8; margin-left: 6px; }

.contacts { display: flex; flex-direction: column; gap: 8px; }
.contact { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--gold-lo); background: rgba(0, 0, 40, 0.7); color: #fff; font-weight: 700; text-align: left; }
.contact:active { border-color: var(--gold); }
.contact .av { font-size: 26px; } .contact small { display: block; font-weight: 400; color: #a9aef0; font-size: 12px; }
.phone-say { background: rgba(0, 0, 40, 0.7); border-radius: 14px; padding: 16px; line-height: 1.5; font-size: 17px; min-height: 90px; }
.phone-say .av { font-size: 40px; display: block; margin-bottom: 6px; }
.dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.aud { display: flex; align-items: flex-end; justify-content: space-around; height: 170px; padding: 10px 6px 0; gap: 10px; }
.aud div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.aud .bar { width: 100%; max-width: 54px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); height: 0; transition: height 1.2s cubic-bezier(.2, .8, .2, 1); }
.aud b { font-size: 13px; color: #fff; margin-bottom: 4px; } .aud span { margin-top: 6px; font-weight: 900; color: var(--gold-hi); }

.score-list { max-height: 250px; overflow-y: auto; text-align: left; background: rgba(0, 0, 30, 0.7); padding: 6px 12px; border-radius: 12px; }
.score-item { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; font-size: 14px; }
.score-item:last-child { border: 0; } .score-item b { color: var(--gold-hi); }
.best-banner { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #2a1a00; padding: 10px; border-radius: 12px; font-weight: 800; margin-bottom: 10px; }
.help p { margin: 0 0 10px; line-height: 1.5; font-size: 15px; text-align: left; color: #e4e6ff; } .help b { color: var(--gold-hi); }
.link { color: var(--gold-hi); text-decoration: underline; }
.has-noads .ad-slot { display: none !important; }
