:root {
    color-scheme: dark;
    --bg: #071426;
    --bg-soft: #0a1d34;
    --panel: rgba(13, 35, 61, .82);
    --panel-solid: #0d233d;
    --line: rgba(147, 192, 235, .15);
    --line-strong: rgba(94, 181, 240, .34);
    --text: #f3f8ff;
    --muted: #9db1c9;
    --muted-dark: #718ba9;
    --blue: #2389dc;
    --cyan: #44d4ee;
    --green: #4de0b1;
    --red: #fa718a;
    --shadow: 0 24px 70px rgba(0, 5, 18, .35);
    font-family: 'DM Sans', 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 280px; min-height: 100%; background: var(--bg); }
body { position: relative; width: 100%; min-width: 280px; min-height: 100vh; min-height: 100dvh; margin: 0; overflow-x: hidden; color: var(--text); background: radial-gradient(ellipse at 50% -20%, #153a65 0, #0b213a 32%, var(--bg) 72%); }
button, input { min-width: 0; font: inherit; }
button { color: inherit; touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(68, 212, 238, .8); outline-offset: 3px; }
.ambient { position: fixed; z-index: -1; width: 31rem; height: 31rem; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .13; }
.ambient-one { top: 11rem; left: -22rem; background: #247ed2; }
.ambient-two { top: 38rem; right: -24rem; background: #22c4de; opacity: .08; }
.site-header, .app-shell, .site-footer { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { height: 92px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(156, 196, 234, .1); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: var(--text); text-decoration: none; }
.brand-logo { display: block; width: auto; max-width: 205px; height: 46px; object-fit: contain; }
.compact-logo { max-width: 170px; height: 38px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; color: #9be7ff; background: linear-gradient(145deg, rgba(35, 137, 220, .28), rgba(68, 212, 238, .08)); border: 1px solid rgba(111, 207, 244, .28); border-radius: 14px; box-shadow: inset 0 1px rgba(255,255,255,.08), 0 8px 24px rgba(16, 122, 192, .12); }
.brand-mark svg { width: 27px; height: 27px; }
.brand strong, .brand small { display: block; letter-spacing: .12em; }
.brand strong { font-size: .78rem; font-weight: 800; }
.brand small { margin-top: 3px; color: #89a9c9; font-size: .64rem; font-weight: 700; }
.header-tag, .live-indicator { display: inline-flex; align-items: center; gap: 9px; color: #b6cbe0; font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
.header-tag i, .live-indicator i, .eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(77,224,177,.8); }
.app-shell { min-height: calc(100vh - 158px); min-height: calc(100dvh - 158px); padding: 54px 0 max(70px, env(safe-area-inset-bottom)); }
.boot-card { display: grid; place-items: center; gap: 12px; min-height: 50vh; color: var(--muted); }
.loader { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 370px; gap: 42px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #86b9e5; font-size: .68rem; font-weight: 800; letter-spacing: .15em; }
.hero-copy h1, .lobby-main h1, .final-screen h1 { margin: 22px 0 15px; font-family: Manrope, 'DM Sans', sans-serif; font-size: clamp(2.6rem, 5.5vw, 4.7rem); line-height: 1.04; letter-spacing: -.06em; font-weight: 800; }
.hero-copy h1 span, .lobby-main h1 span, .final-screen h1 span { color: transparent; background: linear-gradient(100deg, #65d8f2 0%, #45a8f0 55%, #8bc8ff 100%); background-clip: text; -webkit-background-clip: text; }
.hero-copy > p, .muted-copy { max-width: 520px; margin: 0; color: #a8bad0; font-size: 1.04rem; line-height: 1.75; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 27px; color: #8fa6c0; font-size: .83rem; }
.hero-facts b { margin-right: 5px; color: #eaf7ff; font-size: 1rem; }
.arena-art { position: relative; display: grid; place-items: center; min-height: 345px; }
.orbit { position: absolute; width: 290px; height: 290px; border: 1px solid rgba(92, 184, 241, .15); border-radius: 50%; transform: rotate(-25deg) scaleY(.58); }
.orbit-a { box-shadow: 0 0 42px rgba(42,153,227,.08); }
.orbit-b { width: 230px; height: 230px; border-color: rgba(76, 216, 238, .21); transform: rotate(58deg) scaleY(.64); }
.art-core { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 194px; height: 224px; color: #83e3ff; border: 1px solid rgba(141, 221, 250, .28); border-radius: 34px; background: linear-gradient(145deg, rgba(24,76,122,.85), rgba(8,30,54,.88)); box-shadow: 0 25px 80px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.14), 0 0 55px rgba(36,150,218,.18); transform: rotate(-4deg); }
.art-core svg { width: 108px; height: 108px; filter: drop-shadow(0 0 12px rgba(80,208,242,.26)); }
.art-label { margin-top: 8px; color: #c1d8ed; font-size: .58rem; font-weight: 800; line-height: 1.5; letter-spacing: .22em; text-align: center; }
.art-spark { position: absolute; top: 20px; right: 25px; color: #d1f8ff; font-size: 1.15rem; }
.float-chip { position: absolute; padding: 10px 14px; color: #c9e8fa; border: 1px solid rgba(134, 207, 246, .25); border-radius: 999px; background: rgba(12, 36, 62, .76); box-shadow: 0 12px 30px rgba(0,0,0,.22); font-size: .64rem; font-weight: 800; letter-spacing: .12em; backdrop-filter: blur(12px); }
.chip-top { top: 18%; right: 5%; transform: rotate(5deg); }
.chip-bottom { bottom: 15%; left: 4%; transform: rotate(-6deg); }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 27px; }
.panel { border: 1px solid var(--line); border-radius: 23px; background: linear-gradient(155deg, rgba(18, 45, 75, .92), rgba(10, 28, 49, .9)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.035); }
.entry-panel { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 12px 16px; padding: 25px; overflow: hidden; }
.entry-panel::after { position: absolute; right: -45px; bottom: -105px; width: 220px; height: 220px; border-radius: 50%; background: rgba(45,148,221,.08); filter: blur(5px); content: ''; pointer-events: none; }
.panel-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; }
.panel-icon svg { width: 24px; height: 24px; }
.create-icon { color: #7cddff; background: rgba(38, 148, 223, .16); border: 1px solid rgba(71, 177, 237, .2); }
.join-icon { color: #68e1d5; background: rgba(51, 185, 174, .12); border: 1px solid rgba(79, 218, 204, .2); }
.panel-heading { align-self: center; }
.panel-heading .eyebrow { font-size: .6rem; }
.panel-heading h2, .players-heading h2, .section-heading h2 { margin: 5px 0 5px; font-family: Manrope, sans-serif; font-size: 1.23rem; letter-spacing: -.03em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.entry-form { z-index: 1; display: grid; gap: 9px; grid-column: 1 / -1; margin-top: 8px; }
.entry-form label { color: #b7c9dd; font-size: .74rem; font-weight: 700; }
.entry-form input { width: 100%; min-height: 48px; padding: 0 14px; color: var(--text); border: 1px solid rgba(143, 182, 220, .21); border-radius: 12px; outline: none; background: rgba(3, 17, 32, .55); transition: border .2s, box-shadow .2s; }
.entry-form input::placeholder { color: #68819c; }
.entry-form input:focus { border-color: rgba(67, 196, 239, .7); box-shadow: 0 0 0 3px rgba(42, 166, 221, .13); }
.entry-form input[name="code"] { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1rem; font-weight: 800; letter-spacing: .2em; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 17px; border: 1px solid transparent; border-radius: 13px; cursor: pointer; font-size: .85rem; font-weight: 800; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, border-color .18s ease; }
.button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.button:disabled { cursor: not-allowed; opacity: .53; }
.button-primary { color: #05172b; border-color: rgba(140, 238, 255, .5); background: linear-gradient(110deg, #68def1, #54b7f4 52%, #7bd2ff); box-shadow: 0 10px 27px rgba(52, 170, 224, .18), inset 0 1px rgba(255,255,255,.55); }
.button-primary:hover:not(:disabled) { box-shadow: 0 13px 34px rgba(52,170,224,.3), inset 0 1px rgba(255,255,255,.55); }
.button-secondary { color: #e6f6ff; border-color: rgba(86, 193, 236, .35); background: linear-gradient(115deg, rgba(27, 105, 163, .68), rgba(16, 61, 103, .85)); }
.button-solo { width: 100%; color: #bdeeff; border-color: rgba(86, 193, 236, .3); background: linear-gradient(115deg, rgba(17, 57, 91, .86), rgba(9, 34, 59, .92)); }
.button-solo svg { color: #72d9f5; }
.solo-hint { margin: -3px 0 0; color: #7f99b3; font-size: .66rem; text-align: center; }
.entry-form .button { margin-top: 8px; }
.recent-score-section { margin-top: 35px; padding: 22px; border: 1px solid rgba(99, 183, 231, .18); border-radius: 21px; background: linear-gradient(145deg, rgba(14, 39, 66, .84), rgba(8, 26, 46, .78)); box-shadow: 0 18px 48px rgba(0, 5, 18, .22), inset 0 1px rgba(255,255,255,.035); }
.record-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.record-heading h2 { margin: 6px 0 4px; font-family: Manrope, sans-serif; font-size: 1.2rem; letter-spacing: -.035em; }
.record-heading p { margin: 0; color: #8fa9c2; font-size: .72rem; }
.record-badge { padding: 7px 10px; color: #a7eaff; border: 1px solid rgba(78, 189, 231, .24); border-radius: 999px; background: rgba(33, 118, 165, .16); font-size: .58rem; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.record-list { min-height: 60px; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.record-row { display: flex; align-items: center; min-width: 0; gap: 9px; min-height: 57px; padding: 8px 10px; border: 1px solid rgba(136, 174, 211, .1); border-radius: 13px; background: rgba(3, 18, 33, .42); }
.record-row.record-first { border-color: rgba(83, 190, 235, .29); background: linear-gradient(105deg, rgba(25, 91, 135, .33), rgba(5, 25, 44, .45)); }
.record-rank { width: 34px; height: 34px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: #a8c3dd; background: rgba(100,116,139,.16); border: 1px solid rgba(125,211,252,.18); font: 850 .88rem ui-monospace, monospace; }
.record-first .record-rank { color: #71ddf5; }
.record-row .player-avatar { width: 32px; height: 32px; border-radius: 10px; font-size: .62rem; }
.record-person { display: grid; min-width: 0; flex: 1; gap: 4px; }
.record-person strong { overflow: hidden; color: #e2f0fb; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; }
.record-person small { overflow: hidden; color: #718ba5; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.record-score { flex: 0 0 auto; color: #a8ecff; font: 800 .85rem ui-monospace, monospace; text-align: right; }
.record-score small { display: block; margin-top: 2px; color: #7898b3; font: 700 .45rem 'DM Sans', sans-serif; letter-spacing: .08em; }
.record-empty { display: grid; min-height: 60px; place-items: center; padding: 12px; color: #829bb4; border: 1px dashed rgba(135, 175, 212, .18); border-radius: 13px; font-size: .72rem; text-align: center; }
.how-section { margin-top: 82px; }
.section-heading { text-align: center; }
.section-heading h2 { margin-top: 11px; font-size: 1.65rem; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 25px; }
.how-grid article { display: flex; gap: 15px; padding: 21px 18px; border-top: 1px solid rgba(111, 176, 225, .2); background: linear-gradient(180deg, rgba(16,43,70,.42), transparent); }
.how-number { color: #52c9ee; font-family: Manrope, sans-serif; font-size: 1.42rem; font-weight: 800; letter-spacing: -.06em; }
.how-grid h3 { margin: 2px 0 7px; font-size: .94rem; }
.how-grid p { margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.6; }
.scoring-note { display: flex; align-items: center; gap: 13px; max-width: 760px; margin: 27px auto 0; padding: 15px 18px; border: 1px solid rgba(72, 170, 227, .2); border-radius: 15px; background: rgba(15, 49, 80, .4); }
.scoring-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; color: #8ae7ff; border-radius: 11px; background: rgba(53, 163, 218, .15); }
.scoring-icon svg { width: 20px; height: 20px; }
.scoring-note p { margin: 0; color: #adc4dc; font-size: .77rem; line-height: 1.55; }
.scoring-note strong { color: #e4f6ff; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; padding: 21px 0 max(24px, env(safe-area-inset-bottom)); color: #7189a4; border-top: 1px solid rgba(156,196,234,.1); font-size: .69rem; }
.toast { position: fixed; top: 50%; left: 50%; z-index: 1000; width: min(440px, calc(100% - 32px)); padding: 17px 20px; color: #fff; border: 1px solid rgba(250,113,138,.45); border-radius: 16px; background: #442439; box-shadow: 0 24px 70px rgba(0,0,0,.48); opacity: 0; pointer-events: none; text-align: center; transform: translate(-50%, -50%) scale(.96); transition: opacity .2s, transform .2s; font-size: .9rem; line-height: 1.5; }
.toast.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast.success { border-color: rgba(77,224,177,.4); background: #123b3b; }
body.is-kicked { overflow: hidden; }
.kicked-overlay { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 22px; background: rgba(4, 13, 25, .9); backdrop-filter: blur(16px); }
.kicked-card { width: min(480px, 100%); padding: clamp(28px, 6vw, 42px); border: 1px solid rgba(250, 113, 138, .34); border-radius: 28px; background: linear-gradient(155deg, rgba(43, 31, 51, .98), rgba(9, 27, 47, .98)); box-shadow: 0 30px 90px rgba(0, 0, 0, .52), inset 0 1px rgba(255,255,255,.06); text-align: center; }
.kicked-icon { display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 20px; color: #ff9cad; border: 1px solid rgba(250,113,138,.3); border-radius: 20px; background: rgba(250,113,138,.1); }
.kicked-icon svg { width: 32px; height: 32px; }
.kicked-card .eyebrow { justify-content: center; color: #ffafbc; }
.kicked-card h1 { margin: 14px 0 12px; font-family: Manrope, 'DM Sans', sans-serif; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.02; letter-spacing: -.055em; }
.kicked-card p { margin: 0 auto 24px; max-width: 390px; color: #b5c5d8; font-size: .9rem; line-height: 1.7; }
.kicked-card .button { width: 100%; }
.disabled-screen { display: grid; place-items: center; min-height: 52vh; }
.disabled-card { width: min(640px, 100%); padding: clamp(32px, 6vw, 54px); border: 1px solid rgba(94, 181, 240, .28); border-radius: 30px; background: linear-gradient(155deg, rgba(18, 48, 79, .92), rgba(7, 24, 44, .95)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.05); text-align: center; }
.disabled-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; color: #7dd8f4; border: 1px solid rgba(94,181,240,.3); border-radius: 21px; background: rgba(42, 150, 209, .11); }
.disabled-icon svg { width: 33px; height: 33px; }
.disabled-card .eyebrow { justify-content: center; color: #9ed6f2; }
.disabled-card h1 { margin: 16px 0 14px; font-family: Manrope, 'DM Sans', sans-serif; font-size: clamp(2rem, 7vw, 3.45rem); line-height: 1.03; letter-spacing: -.055em; }
.disabled-card h1 span { color: transparent; background: linear-gradient(100deg, #65d8f2, #8bc8ff); background-clip: text; -webkit-background-clip: text; }
.disabled-card p { margin: 0 auto; max-width: 470px; color: #aac0d9; font-size: .94rem; line-height: 1.75; }
.room-topline { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 28px; }
.compact-brand .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
.compact-brand .brand-mark svg { width: 23px; height: 23px; }
.text-button { min-height: 44px; padding: 0 13px; color: #9db4cc; border: 1px solid rgba(147,192,235,.15); border-radius: 11px; background: rgba(7,24,43,.5); cursor: pointer; font-size: .78rem; font-weight: 700; }
.text-button:hover { color: #fff; border-color: rgba(147,192,235,.35); }
.lobby-layout, .game-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); align-items: start; gap: 25px; }
.lobby-main { padding: 28px 10px 0 0; }
.lobby-main h1, .final-screen h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); }
.invite-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 17px 19px; border: 1px solid rgba(103, 190, 239, .23); border-radius: 17px; background: linear-gradient(120deg, rgba(17, 59, 96, .75), rgba(10, 31, 53, .75)); }
.invite-card div > span, .winner-card div > span { display: block; color: #86a9c7; font-size: .6rem; font-weight: 800; letter-spacing: .14em; }
.share-fallback { width: 100%; min-height: 43px; flex: 0 0 100%; padding: 0 12px; color: #d7f3ff; border: 1px solid rgba(91, 195, 231, .36); border-radius: 10px; background: rgba(4, 19, 34, .72); font-size: .72rem; }
.room-code { display: block; margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.55rem; letter-spacing: .16em; }
.button-copy { min-height: 42px; padding: 0 12px; color: #d8effd; border: 1px solid rgba(125, 190, 231, .24); background: rgba(8, 24, 42, .65); font-size: .72rem; }
.button-copy svg { width: 16px; }
.lobby-rules { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 20px; color: #91a9c1; font-size: .72rem; }
.lobby-rules span { display: inline-flex; align-items: center; gap: 7px; }
.lobby-rules i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.lobby-players, .scoreboard { padding: 22px; }
.players-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.players-heading .eyebrow { font-size: .59rem; }
.players-heading h2 { display: flex; align-items: center; gap: 8px; margin: 5px 0 0; font-size: 1.02rem; }
.count-pill { display: inline-grid; place-items: center; min-width: 35px; height: 23px; padding: 0 7px; color: #a8e9ff; border: 1px solid rgba(77,194,235,.25); border-radius: 999px; background: rgba(37,137,186,.15); font: 700 .67rem ui-monospace, monospace; }
.live-indicator { font-size: .57rem; letter-spacing: .1em; }
.live-indicator i { width: 6px; height: 6px; }
.player-list { display: grid; gap: 8px; }
.player-card { display: flex; align-items: center; gap: 10px; min-height: 61px; padding: 9px 10px; border: 1px solid rgba(139,176,212,.11); border-radius: 14px; background: rgba(5,20,36,.4); }
.player-card.is-host { border-color: rgba(80,184,235,.28); background: rgba(29,89,132,.19); }
.player-avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; color: #c7f5ff; border: 1px solid rgba(104,205,239,.3); border-radius: 12px; background: linear-gradient(140deg, rgba(39,133,196,.5), rgba(26,69,110,.7)); font-size: .7rem; font-weight: 800; }
.player-details { display: grid; min-width: 0; flex: 1; gap: 4px; }
.player-details strong { display: flex; align-items: center; gap: 6px; overflow: hidden; color: #edf7ff; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.player-details strong small, .leader-name small { padding: 3px 5px; color: #8fdcff; border-radius: 5px; background: rgba(46,142,193,.17); font-size: .48rem; letter-spacing: .07em; }
.player-details > span { color: #8199b2; font-size: .64rem; }
.player-state { color: #778da4; font-size: .53rem; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.player-state.ready { display: inline-flex; align-items: center; gap: 5px; color: #69ddb7; }
.player-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.lobby-actions { margin-top: 17px; padding-top: 15px; border-top: 1px solid rgba(147,192,235,.11); }
.button-full { width: 100%; }
.button-ready { color: #c6f4ff; border-color: rgba(75,193,231,.32); background: linear-gradient(115deg, rgba(32,110,155,.55), rgba(18,64,99,.76)); }
.button-ready:disabled { color: #72ddb7; border-color: rgba(77,224,177,.25); background: rgba(26,90,80,.22); opacity: 1; }
.ready-check { margin-left: 6px; font-style: normal; }
.action-hint, .host-wait-note { margin: 9px 0 0; color: #7f96ae; font-size: .68rem; text-align: center; }
.game-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.game-main { min-width: 0; }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.question-counter { color: #89a6c3; font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
.question-counter b { color: #d6f2ff; }
.question-counter i { color: #667f99; font-style: normal; }
.question-tags { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; min-width: 0; }
.category-chip { padding: 6px 10px; color: #a8eaff; border: 1px solid rgba(82,193,232,.2); border-radius: 999px; background: rgba(34,128,174,.13); font-size: .63rem; font-weight: 700; }
.difficulty-chip { padding: 6px 9px; color: #d8f3ff; border: 1px solid rgba(113,199,237,.32); border-radius: 999px; background: linear-gradient(115deg, rgba(34,112,160,.34), rgba(23,72,115,.42)); font-size: .58rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.progress-track { height: 4px; margin-bottom: 18px; overflow: hidden; border-radius: 999px; background: rgba(139,177,213,.13); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2c91e1, #5bd8ec); box-shadow: 0 0 14px rgba(68,212,238,.3); transition: width .35s ease; }
.question-card { position: relative; overflow: hidden; padding: 26px 27px 21px; border: 1px solid rgba(111,190,238,.23); border-radius: 23px; background: linear-gradient(135deg, rgba(22,61,98,.88), rgba(11,33,57,.95)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.07); }
.question-card-glow { position: absolute; top: -115px; right: -110px; width: 250px; height: 250px; border-radius: 50%; background: rgba(49,160,226,.16); filter: blur(30px); pointer-events: none; }
.question-number-mark { position: absolute; top: 13px; right: 18px; color: rgba(183,220,247,.12); font-family: Manrope, sans-serif; font-size: 3.5rem; font-weight: 800; line-height: 1; }
.question-card h1 { position: relative; max-width: 720px; min-height: 90px; margin: 0; padding-right: 36px; color: #f3f8ff; font-family: Manrope, sans-serif; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; line-height: 1.4; letter-spacing: -.035em; }
.timer-row { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 21px; padding-top: 17px; border-top: 1px solid rgba(155,195,229,.15); }
.timer-ring { display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(#57d7ed var(--timer-progress), rgba(150,187,221,.15) 0); transition: background .4s linear; }
.timer-ring::before { position: absolute; width: 37px; height: 37px; border-radius: 50%; background: #112e4b; content: ''; }
.timer-ring span { position: relative; z-index: 1; color: #e7fbff; font: 800 .82rem ui-monospace, monospace; }
.timer-copy { display: grid; flex: 1; gap: 4px; }
.timer-copy strong { color: #a7c2db; font-size: .59rem; letter-spacing: .1em; }
.timer-copy > span { color: #718ca7; font-size: .68rem; }
.timer-live { display: inline-flex; align-items: center; gap: 6px; color: #70dfbf; font-size: .56rem; font-weight: 800; letter-spacing: .1em; }
.timer-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(77,224,177,.8); }
body.game-active { user-select: none; }
body.security-hidden .app-shell { opacity: .12; filter: blur(22px); pointer-events: none; user-select: none; }
body.is-kicked .app-shell { visibility: hidden; }
.screen-watermark { position: fixed; right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 900; display: grid; gap: 3px; max-width: min(420px, calc(100% - 28px)); padding: 8px 10px; color: #a9dded; border: 1px solid rgba(104,198,234,.2); border-radius: 9px; background: rgba(4, 16, 30, .7); box-shadow: 0 10px 28px rgba(0,0,0,.22); font: 700 .58rem ui-monospace, monospace; letter-spacing: .03em; text-align: right; backdrop-filter: blur(8px); pointer-events: none; }
.screen-watermark time { color: #7197b2; font-size: .5rem; }
.question-watermark { position: relative; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 12px; margin-top: 14px; padding-top: 10px; color: #759ab7; border-top: 1px solid rgba(155,195,229,.11); font: 700 .55rem ui-monospace, monospace; letter-spacing: .05em; opacity: .82; pointer-events: none; }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 15px; }
.answer-option { display: flex; align-items: center; min-height: 66px; gap: 12px; padding: 10px 13px; color: #d9e9f8; border: 1px solid rgba(133,177,218,.17); border-radius: 15px; background: linear-gradient(125deg, rgba(15,40,67,.95), rgba(11,30,51,.9)); cursor: pointer; text-align: left; transition: transform .17s, border-color .17s, background .17s, box-shadow .17s; }
.answer-option:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(74,198,239,.55); background: linear-gradient(125deg, rgba(24,74,112,.95), rgba(13,46,75,.95)); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.answer-option:disabled { cursor: default; opacity: .6; }
.answer-letter { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; color: #96dfff; border: 1px solid rgba(88,185,233,.25); border-radius: 10px; background: rgba(33,122,172,.18); font: 800 .73rem ui-monospace, monospace; }
.answer-option > span:nth-child(2) { flex: 1; font-size: .79rem; font-weight: 650; line-height: 1.42; }
.answer-arrow { color: #5886ad; font-size: 1.1rem; font-style: normal; }
.answer-option:hover .answer-arrow { color: #94eaff; }
.waiting-answer { display: flex; align-items: center; gap: 13px; margin-top: 15px; padding: 18px; border: 1px solid rgba(82,194,227,.17); border-radius: 15px; background: rgba(24,82,112,.18); }
.waiting-pulse { width: 11px; height: 11px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(68,212,238,.55); animation: pulse 1.5s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(68,212,238,0); } 100% { box-shadow: 0 0 0 0 rgba(68,212,238,0); } }
.waiting-answer div { display: grid; gap: 4px; }
.waiting-answer strong { font-size: .8rem; }
.waiting-answer div span { color: #8aa4bd; font-size: .68rem; }
.answer-reveal { margin-top: 15px; padding: 17px 18px; border: 1px solid rgba(73,212,172,.23); border-radius: 16px; background: linear-gradient(130deg, rgba(22,93,78,.3), rgba(10,41,52,.48)); }
.reveal-heading { display: flex; align-items: center; gap: 11px; }
.answer-check { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: #061f2a; border-radius: 11px; background: linear-gradient(145deg, #71edc8, #43c9b0); font-size: 1rem; font-weight: 900; }
.reveal-heading div { display: grid; min-width: 0; flex: 1; gap: 4px; }
.reveal-heading div span { color: #78d9c0; font-size: .56rem; font-weight: 800; letter-spacing: .12em; }
.reveal-heading div strong { color: #edfff9; font-size: .9rem; line-height: 1.35; }
.earned-score { color: #8af0cc; font: 800 1.1rem ui-monospace, monospace; white-space: nowrap; }
.earned-score small { display: block; font: 700 .48rem 'DM Sans', sans-serif; letter-spacing: .1em; text-align: right; }
.answer-reveal > p { margin: 14px 0 0; padding-top: 12px; color: #b0d0cf; border-top: 1px solid rgba(113,220,191,.14); font-size: .77rem; line-height: 1.6; }
.your-answer { margin-top: 10px; color: #9eb6cb; font-size: .68rem; }
.your-answer strong { color: #f4b5c1; }
.your-answer.is-correct { color: #7de5c3; font-weight: 700; }
.next-question { margin-top: 14px; }
.scoreboard { position: sticky; top: 18px; }
.leaderboard { display: grid; gap: 7px; }
.leader-row { display: flex; align-items: center; gap: 9px; min-height: 51px; padding: 7px 9px; border: 1px solid rgba(133,177,218,.1); border-radius: 13px; background: rgba(4,19,35,.39); }
.leader-row.leader-first { border-color: rgba(78,190,237,.3); background: linear-gradient(100deg, rgba(27,90,133,.33), rgba(8,31,54,.53)); }
.leader-rank { width: 34px; height: 34px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: #a8c3dd; background: rgba(100,116,139,.16); border: 1px solid rgba(125,211,252,.18); font: 850 .88rem ui-monospace, monospace; }
.leader-first .leader-rank { color: #67d8f3; }
.leader-row .player-avatar { width: 31px; height: 31px; border-radius: 10px; font-size: .62rem; }
.leader-name { display: flex; align-items: center; flex: 1; gap: 5px; min-width: 0; overflow: hidden; color: #d9e8f6; font-size: .72rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.leader-name-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-name small { flex: 0 0 auto; }
.leader-score { flex: 0 0 auto; margin-left: auto; }
.leaderboard { min-width: 0; }
.leader-row { max-width: 100%; }
.leader-score { color: #dff7ff; font: 800 .79rem ui-monospace, monospace; text-align: right; }
.leader-score small { display: block; color: #708ba5; font: 700 .45rem 'DM Sans', sans-serif; letter-spacing: .08em; }
.best-ever { margin-top: 3px; color: #4ee98a !important; font-size: .52rem !important; letter-spacing: .1em !important; animation: bestEverBlink 1.5s ease-in-out infinite; }
@keyframes bestEverBlink { 0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(78,233,138,.65); } 50% { opacity: .3; text-shadow: none; } }
.score-tip { margin-top: 16px; padding: 12px; border: 1px solid rgba(105,170,219,.12); border-radius: 12px; background: rgba(4,19,35,.32); }
.score-tip > span { color: #7895b0; font-size: .54rem; font-weight: 800; letter-spacing: .12em; }
.score-tip p { margin: 6px 0 0; color: #95abc1; font-size: .66rem; line-height: 1.55; }
.score-tip strong { color: #c9f4ff; }
.final-screen { position: relative; max-width: 760px; margin: 20px auto 0; text-align: center; }
.final-glow { position: absolute; top: -80px; left: 50%; z-index: -1; width: 340px; height: 220px; border-radius: 50%; background: rgba(36,143,211,.16); filter: blur(70px); transform: translateX(-50%); }
.final-screen h1 { margin-top: 15px; }
.final-screen .muted-copy { margin-inline: auto; font-size: .9rem; }
.winner-card { display: flex; align-items: center; gap: 15px; max-width: 440px; margin: 25px auto 17px; padding: 15px 18px; border: 1px solid rgba(85,206,236,.33); border-radius: 18px; background: linear-gradient(120deg, rgba(30,105,152,.47), rgba(13,49,75,.7)); text-align: left; box-shadow: 0 15px 45px rgba(0,0,0,.2); }
.winner-icon { display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 auto; color: #a0ecff; border: 1px solid rgba(112,216,246,.27); border-radius: 14px; background: rgba(75,179,221,.15); }
.winner-icon svg { width: 26px; height: 26px; }
.winner-card div { display: grid; flex: 1; gap: 5px; }
.winner-card div > span { color: #88cfe9; font-size: .55rem; }
.winner-card div strong { font-size: .98rem; }
.winner-card > b { color: #a6eeff; font: 800 1.1rem ui-monospace, monospace; text-align: right; }
.winner-card > b small { display: block; color: #8badc2; font: 700 .48rem 'DM Sans', sans-serif; }

/* ── Kisisel sonuc karti (final) ── */
.my-result-card { position: relative; max-width: 480px; margin: 0 auto 22px; padding: 22px 24px 20px; border: 1px solid rgba(242,183,74,.5); border-radius: 22px; background: linear-gradient(140deg, rgba(94,62,10,.42), rgba(24,30,44,.88) 60%); box-shadow: 0 20px 55px rgba(0,0,0,.4), 0 0 45px rgba(242,183,74,.14), inset 0 1px 0 rgba(255,220,150,.15); overflow: hidden; }
.my-result-card::before { content: ''; position: absolute; top: -40%; left: 50%; width: 340px; height: 340px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,199,95,.16), transparent 65%); pointer-events: none; }
.my-result-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; flex-wrap: wrap; }
.my-result-label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid rgba(255,200,100,.4); border-radius: 999px; background: rgba(255,183,60,.13); color: #ffd88f; font-size: .58rem; font-weight: 800; letter-spacing: .16em; }
.my-result-rankof { color: #c9a96a; font-size: .62rem; font-weight: 800; letter-spacing: .09em; }
.my-result-name { display: block; position: relative; margin-bottom: 6px; color: #fff3da; font-family: Manrope, 'DM Sans', sans-serif; font-size: clamp(1.25rem, 3.4vw, 1.7rem); font-weight: 800; letter-spacing: -.015em; overflow-wrap: anywhere; }
.my-result-score { position: relative; color: #ffd57a; font: 800 clamp(2.6rem, 7vw, 3.6rem)/1 ui-monospace, 'SF Mono', monospace; letter-spacing: -.02em; text-shadow: 0 0 28px rgba(255,190,80,.35); }
.my-result-score small { display: block; margin-top: 7px; color: #b8985c; font: 800 .62rem 'DM Sans', sans-serif; letter-spacing: .3em; }
.final-panel { margin-top: 17px; padding: 20px; text-align: left; }
.final-panel .leaderboard { margin-bottom: 17px; }
.final-panel .leader-row { min-height: 58px; }
.final-board .leader-row { gap: 12px; padding: 10px 13px; }
.final-board .leader-rank { width: 38px; height: 38px; font-size: .95rem; }
.final-board .leader-row .player-avatar { width: 38px; height: 38px; border-radius: 12px; font-size: .72rem; }
.final-board .leader-name { font-size: .88rem; }
.final-board .leader-score { font-size: 1.02rem; }
.final-board .leader-score small { font-size: .5rem; }
.leader-row.me-row { border-color: rgba(242,183,74,.55); background: linear-gradient(100deg, rgba(120,80,15,.32), rgba(30,28,40,.55)); box-shadow: 0 0 22px rgba(242,183,74,.13), inset 0 0 0 1px rgba(255,205,110,.1); }
.leader-row.me-row .leader-name { color: #ffe9bd; }
.leader-row.me-row .leader-score { color: #ffd57a; }
.leader-row.me-row .player-avatar { border-color: rgba(255,200,100,.45); background: linear-gradient(140deg, rgba(160,105,25,.55), rgba(80,55,15,.7)); color: #ffe3a8; }
.room-code-small { color: #96c8e7; font: 800 .74rem ui-monospace, monospace; letter-spacing: .12em; }
.error-panel { max-width: 580px; margin: 50px auto; padding: 28px; text-align: center; }

@media (max-width: 900px) {
    .site-header, .app-shell, .site-footer { width: min(100% - 36px, 700px); }
    .hero-grid { grid-template-columns: 1fr .72fr; gap: 15px; }
    .arena-art { min-height: 300px; transform: scale(.88); }
    .game-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; }
    .scoreboard { padding: 17px; }
    .question-card { padding: 22px 20px 18px; }
}

@media (max-width: 700px) {
    .site-header, .app-shell, .site-footer { width: min(100% - 28px, 560px); }
    .site-header { height: 76px; }
    .header-tag { font-size: .55rem; letter-spacing: .08em; }
    .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
    .app-shell { padding: 28px 0 max(45px, env(safe-area-inset-bottom)); }
    .hero-grid { grid-template-columns: 1fr; gap: 0; min-height: auto; }
    .hero-copy h1 { max-width: 480px; margin-top: 17px; font-size: clamp(2.65rem, 11vw, 4rem); }
    .hero-copy > p { max-width: 500px; font-size: .94rem; }
    .hero-facts { gap: 17px; margin-top: 21px; font-size: .73rem; }
    .arena-art { display: none; }
    .entry-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
    .entry-panel { padding: 19px; border-radius: 19px; }
    .recent-score-section { margin-top: 23px; padding: 15px; border-radius: 17px; }
    .record-heading { align-items: flex-start; }
    .record-heading h2 { font-size: 1.03rem; }
    .record-heading p { font-size: .66rem; }
    .record-grid { grid-template-columns: 1fr; gap: 7px; }
    .record-row { min-height: 54px; }
    .how-section { margin-top: 56px; }
    .section-heading h2 { font-size: 1.35rem; }
    .how-grid { grid-template-columns: 1fr; gap: 3px; margin-top: 15px; }
    .how-grid article { padding: 15px 8px; }
    .scoring-note { align-items: flex-start; margin-top: 19px; padding: 13px; }
    .site-footer { flex-direction: column; padding-bottom: max(18px, env(safe-area-inset-bottom)); font-size: .65rem; }
    .lobby-layout, .game-layout { grid-template-columns: 1fr; gap: 15px; }
    .lobby-main { padding: 6px 1px 0; }
    .lobby-main h1, .final-screen h1 { margin-top: 15px; font-size: clamp(2.5rem, 10vw, 3.5rem); }
    .invite-card { align-items: flex-start; flex-direction: column; margin-top: 23px; padding: 15px; }
    .button-copy { width: 100%; }
    .lobby-rules { gap: 10px 15px; font-size: .66rem; }
    .lobby-players, .scoreboard { padding: 17px; border-radius: 19px; }
    .scoreboard { position: static; }
    .game-room-code { color: #87a8c5; font-size: .57rem; letter-spacing: .1em; }
    .game-room-code strong { color: #d1efff; font-family: ui-monospace, monospace; }
    .question-card { padding: 20px 16px 16px; border-radius: 19px; }
    .question-card h1 { min-height: auto; padding-right: 18px; font-size: 1.25rem; }
    .question-number-mark { top: 11px; right: 13px; font-size: 2.7rem; }
    .timer-row { margin-top: 17px; padding-top: 13px; }
    .timer-ring { width: 40px; height: 40px; }
    .timer-ring::before { width: 33px; height: 33px; }
    .timer-copy strong { font-size: .52rem; }
    .timer-copy > span { font-size: .62rem; }
    .answer-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 11px; }
    .answer-option { min-height: 57px; padding: 9px 11px; }
    .answer-option > span:nth-child(2) { overflow-wrap: anywhere; }
    .answer-option > span:nth-child(2) { font-size: .76rem; }
    .answer-reveal { padding: 14px; }
    .reveal-heading div strong { font-size: .82rem; }
    .final-screen { margin-top: 6px; }
    .final-panel { padding: 15px; }
    .room-topline { margin-bottom: 18px; }
}

@media (max-width: 480px) {
    .site-header { height: auto; min-height: 72px; gap: 8px; padding-block: 10px; }
    .brand-logo { max-width: 150px; height: 36px; }
    .compact-logo { max-width: 125px; height: 32px; }
    .header-tag { gap: 6px; font-size: .5rem; letter-spacing: .045em; }
    .app-shell { padding-top: 24px; }
    .hero-copy h1 { font-size: clamp(2.35rem, 10.5vw, 3.25rem); }
    .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .hero-facts span { min-width: 0; font-size: .66rem; line-height: 1.4; }
    .hero-facts b { display: block; margin-bottom: 3px; }
    .entry-panel, .lobby-players, .scoreboard, .final-panel, .question-card { min-width: 0; }
    .record-heading, .record-heading > div { min-width: 0; }
    .record-heading h2, .question-card h1, .answer-option > span:nth-child(2), .winner-card div strong { overflow-wrap: anywhere; }
    .question-meta { flex-wrap: wrap; }
    .category-chip { max-width: 100%; }
    .winner-card { gap: 10px; padding: 12px; }
    .winner-card div { min-width: 0; }
    .site-footer { overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
    .site-header, .app-shell, .site-footer { width: calc(100% - 22px); }
    .header-tag { gap: 6px; font-size: .47rem; }
    .brand { gap: 8px; }
    .brand-logo { max-width: 118px; height: 30px; }
    .compact-logo { max-width: 100px; height: 28px; }
    .brand strong { font-size: .69rem; }
    .brand small { font-size: .56rem; }
    .entry-panel { grid-template-columns: 42px 1fr; gap: 10px; padding: 15px; }
    .panel-icon { width: 40px; height: 40px; }
    .panel-heading h2 { font-size: 1.1rem; }
    .player-state { font-size: .46rem; }
    .question-meta { align-items: flex-start; }
    .category-chip { max-width: 56%; text-align: right; }
    .timer-live { font-size: .48rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Uye kimligi ve misafir uyarilari */
.member-identity {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.25rem;
}
.member-id-icon {
    flex: none;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}
.member-id-icon svg { width: 20px; height: 20px; }
.member-id-text { display: flex; flex-direction: column; gap: 0.15rem; }
.member-id-text strong { color: #f0f7ff; font-size: 1.02rem; }
.member-id-text small { color: #9fc3e8; font-size: 0.8rem; line-height: 1.4; }

.member-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #8fb0d4;
    line-height: 1.5;
}
.member-hint a { color: #7dd3fc; text-decoration: none; font-weight: 600; }
.member-hint a:hover { text-decoration: underline; }

.guest-save-note {
    margin: 1rem 0;
    padding: 1.1rem 1.2rem;
    background: rgba(251, 191, 36, 0.07);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    text-align: left;
}
.guest-save-note .eyebrow { color: #fcd34d; }
.guest-save-note p { color: #c9ddf2; font-size: 0.9rem; line-height: 1.55; margin: 0.5rem 0 0.9rem; }
.guest-note-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.guest-note-actions .button { text-decoration: none; flex: 1 1 auto; justify-content: center; }

/* Ana sayfa donus butonu */
.header-actions { display: inline-flex; align-items: center; gap: 14px; }
.home-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    color: #a9cdf0;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    background: rgba(101, 190, 245, .08);
    border: 1px solid rgba(125, 211, 252, .28);
    border-radius: 999px;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.home-link svg { width: 15px; height: 15px; transition: transform .25s ease; }
.home-link:hover {
    background: rgba(101, 190, 245, .18);
    border-color: rgba(125, 211, 252, .55);
    color: #eaf6ff;
    transform: translateY(-1px);
}
.home-link:hover svg { transform: translateX(-3px); }
@media (max-width: 640px) {
    .header-tag { display: none; }
    .home-link { padding: 7px 12px; font-size: .72rem; }
}

/* WhatsApp paylasim butonu */
.whatsapp-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    color: #7ef0b2;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none;
    background: rgba(37, 211, 102, .09);
    border: 1px solid rgba(37, 211, 102, .35);
    border-radius: 999px;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.whatsapp-share svg { width: 16px; height: 16px; flex: none; }
.whatsapp-share:hover {
    background: rgba(37, 211, 102, .2);
    border-color: rgba(37, 211, 102, .65);
    color: #c8ffe0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, .18);
}
/* Instagram story paylasim butonu */
.instagram-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    color: #ffb1e1;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .03em;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(45deg, rgba(245,133,41,.14), rgba(221,42,123,.14), rgba(129,52,175,.16));
    border: 1px solid rgba(221,42,123,.45);
    border-radius: 999px;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.instagram-share svg { width: 16px; height: 16px; flex: none; }
.instagram-share:hover {
    background: linear-gradient(45deg, rgba(245,133,41,.26), rgba(221,42,123,.26), rgba(129,52,175,.28));
    border-color: rgba(221,42,123,.75);
    color: #ffd7ef;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(221,42,123,.22);
}

/* Story onizleme modali */
.story-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2,8,18,.82);
    backdrop-filter: blur(8px);
    animation: storyFadeIn .25s ease;
}
@keyframes storyFadeIn { from { opacity: 0; } to { opacity: 1; } }
.story-modal {
    position: relative;
    width: min(420px, 100%);
    max-height: 94vh;
    overflow-y: auto;
    padding: 22px 20px 18px;
    border: 1px solid rgba(101,216,242,.28);
    border-radius: 22px;
    background: linear-gradient(150deg, #0c2440, #071528);
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
    text-align: center;
}
.story-modal h3 { margin: 0 0 14px; color: #eaf6ff; font-size: 1.05rem; font-family: Manrope, 'DM Sans', sans-serif; }
.story-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(133,177,218,.3);
    border-radius: 50%;
    background: rgba(10,30,55,.7);
    color: #a9c8e2;
    font-size: .85rem;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.story-modal-close:hover { background: rgba(40,80,130,.8); color: #fff; }
.story-preview {
    display: grid;
    place-items: center;
    min-height: 200px;
    border-radius: 14px;
    overflow: hidden;
}
.story-preview img {
    display: block;
    width: auto;
    max-width: 100%;
    height: min(56vh, 560px);
    border-radius: 14px;
    border: 1px solid rgba(101,216,242,.25);
    box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.story-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}
.story-btn {
    padding: 11px 22px;
    border-radius: 999px;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .03em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.story-btn:hover { transform: translateY(-1px); }
.story-btn-share {
    border: none;
    color: #fff;
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
    box-shadow: 0 8px 24px rgba(221,42,123,.35);
}
.story-btn-share:hover { box-shadow: 0 10px 30px rgba(221,42,123,.5); }
.story-btn-download {
    border: 1px solid rgba(101,216,242,.45);
    color: #aee8fa;
    background: rgba(20,60,100,.5);
}
.story-btn-download:hover { background: rgba(30,85,135,.6); }
.story-modal-hint { margin: 13px 4px 0; color: #7fa3c2; font-size: .7rem; line-height: 1.55; }

@media (max-width: 640px) {
    .site-footer { flex-wrap: wrap; justify-content: center; text-align: center; }
}

/* Yenilenen ana sayfa duzeni: kimlik + solo oncelikli + coklu bolum */
.identity-strip { margin-top: 26px; }
.identity-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.button-retry { position: relative; overflow: hidden; background: linear-gradient(120deg, #fbbf24, #f59e0b 55%, #fbbf24) !important; background-size: 200% 100% !important; color: #221503 !important; font-weight: 800 !important; letter-spacing: .2px; box-shadow: 0 12px 34px rgba(245, 158, 11, .35) !important; animation: retryShine 2.8s linear infinite; }
.button-retry:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(245, 158, 11, .5) !important; color: #221503 !important; }
.button-retry svg { color: #221503; }
@keyframes retryShine { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

.identity-privacy-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; padding: 10px 13px; color: #93a9c2; font-size: .75rem; line-height: 1.55; background: rgba(94, 209, 244, .05); border: 1px solid rgba(94, 209, 244, .14); border-radius: 10px; }
.identity-privacy-note svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px; color: #67e8f9; }
.identity-privacy-note strong { color: #c8dcf0; font-weight: 600; }
.identity-privacy-note a { color: #67e8f9; text-decoration: underline; text-underline-offset: 2px; }
.identity-privacy-note a:hover { color: #a5ecff; }
.identity-field { display: grid; gap: 7px; }
.identity-field label { color: #b7c9dd; font-size: .74rem; font-weight: 700; }
.identity-field input { width: 100%; min-height: 50px; padding: 0 14px; color: var(--text); border: 1px solid rgba(143, 182, 220, .21); border-radius: 12px; outline: none; background: rgba(3, 17, 32, .55); transition: border .2s, box-shadow .2s; font-size: .95rem; }
.identity-field input::placeholder { color: #68819c; }
.identity-field input:focus { border-color: rgba(67, 196, 239, .7); box-shadow: 0 0 0 3px rgba(42, 166, 221, .13); }

.solo-section { margin-top: 18px; }
.solo-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px 30px;
    overflow: hidden;
    border: 1px solid rgba(101, 216, 242, .32) !important;
    background: linear-gradient(120deg, rgba(28, 78, 128, .34), rgba(12, 30, 58, .5)) !important;
    box-shadow: 0 18px 50px rgba(4, 14, 30, .4), inset 0 1px rgba(255, 255, 255, .05);
}
.solo-panel::before {
    position: absolute;
    inset: -40% -10% auto auto;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(101, 216, 242, .16), transparent 65%);
    content: '';
    pointer-events: none;
}
.solo-panel-copy { display: flex; align-items: center; gap: 18px; min-width: 0; }
.solo-icon {
    flex: none;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #ffe08a;
    background: linear-gradient(145deg, rgba(255, 200, 87, .2), rgba(255, 163, 26, .07));
    border: 1px solid rgba(255, 200, 87, .35);
    border-radius: 17px;
}
.solo-icon svg { width: 30px; height: 30px; }
.solo-form { flex: none; display: grid; gap: 8px; justify-items: center; margin-top: 0 !important; }
.button-solo-big {
    min-height: 58px;
    padding: 0 34px !important;
    font-size: 1.02rem !important;
    box-shadow: 0 10px 30px rgba(42, 153, 227, .35);
}
.button-solo-big:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(42, 153, 227, .45); }
.solo-form .solo-hint { margin: 0; }

.multi-section { margin-top: 34px; }
.multi-heading h2 { font-size: 1.35rem; }
.multi-heading p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }

@media (max-width: 800px) {
    .solo-panel { flex-direction: column; align-items: stretch; text-align: center; }
    .solo-panel-copy { flex-direction: column; text-align: center; }
    .solo-form { justify-items: stretch; }
    .identity-inputs { grid-template-columns: 1fr; }
}

/* Sonuc ekrani arac tanitimi */
.tools-promo {
    margin: 1.2rem 0;
    padding: 1.2rem 1.2rem 1.3rem;
    background: rgba(101, 216, 242, .05);
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 16px;
    text-align: left;
}
.tools-promo .eyebrow { color: #7dd3fc; }
.tools-promo h3 { margin: .45rem 0 .2rem; color: #f0f7ff; font-size: 1.08rem; letter-spacing: -.02em; }
.tools-promo > p { margin: 0 0 .9rem; color: #9fc3e8; font-size: .84rem; line-height: 1.5; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .9rem;
    background: rgba(6, 20, 40, .55);
    border: 1px solid rgba(125, 211, 252, .18);
    border-radius: 13px;
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.tool-card:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, .55);
    background: rgba(16, 40, 72, .7);
    box-shadow: 0 8px 24px rgba(3, 12, 26, .4);
}
.tool-icon {
    flex: none;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #7dd3fc;
    background: rgba(125, 211, 252, .1);
    border: 1px solid rgba(125, 211, 252, .25);
    border-radius: 11px;
}
.tool-icon svg { width: 19px; height: 19px; }
.tool-card div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tool-card strong { color: #e8f4ff; font-size: .85rem; }
.tool-card small { color: #8fb0d4; font-size: .71rem; line-height: 1.35; }
.tool-arrow { flex: none; color: #5a7fa3; font-size: 1rem; transition: transform .25s ease, color .25s ease; }
.tool-card:hover .tool-arrow { transform: translateX(3px); color: #7dd3fc; }
@media (max-width: 640px) {
    .tools-grid { grid-template-columns: 1fr; }
}

/* Sonuc ekrani girisimci cagrisi (venture cta) */
.venture-cta {
    position: relative;
    overflow: hidden;
    margin: 1.2rem 0;
    padding: 1.4rem 1.3rem 1.5rem;
    text-align: center;
    background: linear-gradient(140deg, rgba(255, 178, 74, .09), rgba(12, 30, 58, .55) 55%);
    border: 1px solid rgba(255, 190, 92, .38);
    border-radius: 18px;
}
.venture-cta-glow {
    position: absolute;
    top: -90px;
    right: -70px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 190, 92, .22), transparent 65%);
    pointer-events: none;
}
.venture-rocket {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto .7rem;
    color: #ffcf87;
    background: linear-gradient(145deg, rgba(255, 200, 87, .22), rgba(255, 163, 26, .08));
    border: 1px solid rgba(255, 200, 87, .4);
    border-radius: 16px;
}
.venture-rocket svg { width: 28px; height: 28px; }
.venture-cta .eyebrow { color: #ffd79c; justify-content: center; display: inline-flex; }
.venture-cta h3 { position: relative; margin: .55rem auto .45rem; max-width: 420px; color: #fff5e3; font-size: 1.14rem; line-height: 1.45; letter-spacing: -.01em; }
.venture-cta > p { position: relative; margin: 0 auto 1.05rem; max-width: 430px; color: #c9d8ec; font-size: .86rem; line-height: 1.55; }
.button-venture {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    color: #231500 !important;
    font-size: .95rem;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(120deg, #ffd28a, #ffab38);
    border: none;
    border-radius: 13px;
    box-shadow: 0 10px 28px rgba(255, 171, 56, .3);
    transition: transform .25s ease, box-shadow .25s ease;
}
.button-venture svg { width: 17px; height: 17px; }
.button-venture:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 171, 56, .42); }

/* Bilgi notu: merkez incelemesi - cyan bilgi tonu */
.guest-save-note.info-note {
    background: rgba(125, 211, 252, .06);
    border-color: rgba(125, 211, 252, .3);
}
.guest-save-note.info-note .eyebrow { color: #7dd3fc; }
.guest-save-note.info-note p { margin-bottom: 0; }
/* Skor tablolarinda isimler her zaman buyuk harf (lang=tr sayesinde i->İ dogru) */
.leader-name-text { text-transform: uppercase; letter-spacing: .03em; }
/* Ilk 3 sira — altin / gumus / bronz rozet zeminleri (her iki skor tablosunda) */
.record-row:nth-child(1) .record-rank, .leader-row:nth-child(1) .leader-rank {
    color: #fff; background: linear-gradient(135deg, #fbbf24, #d97706);
    border-color: rgba(251,191,36,.65); box-shadow: 0 0 16px rgba(245,158,11,.5);
    text-shadow: 0 1px 2px rgba(120,53,15,.5);
}
.record-row:nth-child(2) .record-rank, .leader-row:nth-child(2) .leader-rank {
    color: #fff; background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    border-color: rgba(226,232,240,.55); box-shadow: 0 0 14px rgba(148,163,184,.45);
    text-shadow: 0 1px 2px rgba(51,65,85,.5);
}
.record-row:nth-child(3) .record-rank, .leader-row:nth-child(3) .leader-rank {
    color: #fff; background: linear-gradient(135deg, #d97706, #92400e);
    border-color: rgba(217,119,6,.55); box-shadow: 0 0 14px rgba(180,83,9,.45);
    text-shadow: 0 1px 2px rgba(69,26,3,.5);
}
