/* =========================================================
   Kim Milyoner Olmak İster? - Stiller
   Sayfa düzeni burada; Tailwind sadece yazı stilleri için kullanılır.
   Telefon öncelikli yazıldı (mobile-first), geniş ekranlar @media ile genişler.
   ========================================================= */

:root {
  --navy: #0a0720;
  --violet: #3b1d8f;
  --deep: #1a1046;
  --panel: #1a1250;
  --panel-hi: #2a1d78;
  --gold: #f2c14e;
  --text: #eef0ff;
  --muted: #a9a3d9;
  --ok: #1fb866;
  --ok-light: #8af0b6;
  --bad: #e0434b;
  --pick: #f08a1c;
  --pick-light: #ffd23f;
  --t-green: #2ee07a;
  --t-orange: #ff9d1c;
  --t-red: #ff3b3b;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter-l: max(14px, env(safe-area-inset-left, 0px));
  --gutter-r: max(14px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  /* Ortadan dışa radyal gradyan: mor -> lacivert -> siyah */
  background:
    radial-gradient(circle at 50% 36%, var(--violet) 0%, var(--deep) 36%, var(--navy) 68%, #000 100%) fixed,
    #000;
  overflow-x: hidden;
}
.font-display { font-family: var(--font-display); }
.text-gold { color: var(--gold); }

/* ---------- Kopyalamayı engelle ---------- */
.no-copy, .no-copy * {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
.no-copy input, .no-copy textarea { -webkit-user-select: text; -moz-user-select: text; user-select: text; }
.no-copy ::selection { background: transparent; color: inherit; }
@media print { body { display: none !important; } }

/* ---------- Ekranlar ---------- */
.screen {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px var(--gutter-r) max(28px, env(safe-area-inset-bottom, 0px)) var(--gutter-l);
}
.screen-center { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; }

/* ---------- Düğmeler ---------- */
.btn {
  cursor: pointer;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 4px;
  border: 2px solid var(--gold);
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible, .joker-btn:focus-visible, .answer-btn:focus-visible, #tree-summary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn-gold { background: var(--gold); color: #1b1400; }
.btn-gold:hover:not(:disabled) { background: #f8d57e; border-color: #f8d57e; }
.btn-ghost { background: transparent; color: var(--text); border-color: #5b4fb8; }
.btn-ghost:hover:not(:disabled) { background: var(--panel); border-color: var(--gold); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-big { font-family: var(--font-display); font-size: 1.6rem; padding: 12px 40px; letter-spacing: .05em; width: 100%; }
.btn-small { min-height: 44px; padding: 6px 14px; font-size: .9rem; }

/* ---------- Başlangıç ve sonuç ---------- */
.start-card, .end-card { width: 100%; max-width: 620px; padding-block: 18px; }
.eyebrow { color: var(--gold); letter-spacing: .3em; text-transform: uppercase; font-size: .95rem; margin-bottom: 8px; }
.hero-title { font-weight: 700; line-height: .95; font-size: clamp(2.7rem, 13vw, 4.8rem); margin-bottom: 20px; text-wrap: balance; }
.rules { display: grid; gap: 10px; margin-bottom: 22px; color: #d4d0f5; font-size: .98rem; }
.rules li { padding-left: 14px; border-left: 3px solid var(--gold); }
.rules b { color: var(--gold); font-weight: 600; }
.start-note { color: #ffb3b3; margin-bottom: 14px; }

.end-card { text-align: center; }
.end-title { font-weight: 700; font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1; margin-bottom: 14px; text-wrap: balance; }
.end-prize { font-weight: 700; color: var(--gold); font-size: clamp(3.2rem, 17vw, 7rem); line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.end-note { color: #d4d0f5; font-size: 1.1rem; margin-bottom: 26px; }

/* ---------- Oyun başlığı ve jokerler ---------- */
.game-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand sound" "jokers jokers";
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.brand { grid-area: brand; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; line-height: 1.15; }
.header-tools { grid-area: sound; display: flex; gap: 8px; }
.jokers { grid-area: jokers; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }

.joker-btn {
  appearance: none; background: transparent; border: 0; padding: 4px 0; cursor: pointer; color: #fff;
  display: grid; justify-items: center; gap: 4px; min-width: 0;
}
.joker-icon {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid var(--gold); background: var(--panel); color: var(--gold);
  display: grid; place-items: center; position: relative; transition: background .15s;
}
.joker-text { font-weight: 700; font-size: 1.02rem; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.joker-svg { width: 26px; height: 26px; fill: currentColor; }
.joker-label { font-size: .72rem; font-weight: 500; color: var(--muted); text-align: center; line-height: 1.15; }
.joker-btn:hover:not(:disabled) .joker-icon { background: var(--panel-hi); }
.joker-btn:disabled { cursor: not-allowed; }
.joker-btn:disabled .joker-icon { border-color: #4a4090; color: #6b62b8; background: #0e0a38; }
.joker-btn.is-used .joker-icon::after {
  content: ""; position: absolute; width: 68px; height: 3px; background: var(--bad); transform: rotate(-45deg);
}
.joker-btn.is-active .joker-icon { border-color: var(--pick-light); color: var(--pick-light); box-shadow: 0 0 0 3px rgba(255, 210, 63, .25); }

/* ---------- Yerleşim ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.play { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ---------- Durum satırı ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.stat { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.stat-key { font-size: .85rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; flex: none; }
.stat-val { font-size: 1.3rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.stat-plain { color: var(--text); }
.pips { margin-left: 6px; font-size: .7rem; letter-spacing: 1px; color: var(--gold); white-space: nowrap; }

/* ---------- Süre: baloncuklar ---------- */
.timer {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; background: rgba(10, 7, 32, .55); border: 1px solid #3b2f8a;
  --phase: var(--t-green);
}
.timer[data-phase="orange"] { --phase: var(--t-orange); }
.timer[data-phase="red"] { --phase: var(--t-red); border-color: var(--t-red); animation: timerPulse .5s ease-in-out infinite alternate; }
.timer-num {
  flex: none; min-width: 2.3ch; text-align: center; font-weight: 700; font-size: 2.2rem; line-height: 1;
  color: var(--phase); font-variant-numeric: tabular-nums;
}
.timer-bubbles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.bubble {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff9 0 12%, var(--phase) 40%);
  box-shadow: 0 0 8px var(--phase);
  transition: transform .25s, opacity .25s, background .25s;
}
.bubble.is-gone { opacity: .12; transform: scale(.55); box-shadow: none; background: var(--phase); }
.no-timer { color: var(--muted); font-size: .92rem; }
@keyframes timerPulse { from { background: rgba(10, 7, 32, .55); } to { background: rgba(120, 10, 10, .45); } }

/* ---------- Soru kutusu (altıgen) ---------- */
.question-box {
  background: var(--gold); padding: 2px;
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 22px 100%, 0 50%);
}
.question-box .inner {
  background: linear-gradient(180deg, #1d1363, #0e0a38);
  clip-path: polygon(21px 0, calc(100% - 21px) 0, 100% 50%, calc(100% - 21px) 100%, 21px 100%, 0 50%);
  min-height: 108px; padding: 22px 34px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: clamp(1.05rem, 4.6vw, 1.6rem); font-weight: 600; line-height: 1.3; text-wrap: balance; overflow-wrap: anywhere;
}

/* ---------- Şıklar (altıgen) ---------- */
.answers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.answer-btn {
  appearance: none; border: 0; margin: 0; padding: 2px; width: 100%; cursor: pointer; text-align: left;
  color: #fff; background: var(--gold);
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
}
.answer-btn .inner {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 30px;
  background: var(--panel); color: #fff;
  clip-path: polygon(19px 0, calc(100% - 19px) 0, 100% 50%, calc(100% - 19px) 100%, 19px 100%, 0 50%);
  transition: background .15s;
}
.answer-btn .letter { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); min-width: 1.1em; flex: none; }
.answer-btn .text { font-weight: 500; font-size: 1.02rem; min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.answer-btn:hover:not(:disabled) .inner { background: var(--panel-hi); }
.answer-btn:focus-visible { background: #fff; outline: none; }
.answer-btn:disabled { cursor: default; }

/* "Son Kararım": turuncu ile sarı arasında nabız atar */
.answer-btn.is-selected .inner { background: var(--pick); color: #1a0f00; animation: pulsePick .7s ease-in-out infinite alternate; }
.answer-btn.is-selected .letter { color: #1a0f00; }
@keyframes pulsePick { from { background: var(--pick); } to { background: var(--pick-light); } }

/* Doğru: yeşil (cevap doğruysa yanıp söner) */
.answer-btn.is-correct .inner { background: var(--ok); color: #02200d; }
.answer-btn.is-correct .letter { color: #02200d; }
.answer-btn.is-blink .inner { animation: blinkOk .45s ease-in-out 5; }
@keyframes blinkOk { 0%, 100% { background: var(--ok); } 50% { background: var(--ok-light); } }

/* Yanlış: kırmızı */
.answer-btn.is-wrong .inner { background: var(--bad); color: #fff; }
.answer-btn.is-wrong .letter { color: #fff; }

/* 50:50 ile elenen şık */
.answer-btn.is-removed { opacity: .18; pointer-events: none; }
.answer-btn.is-removed .text { visibility: hidden; }

/* ---------- Onay çubuğu ---------- */
.confirm-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 12px 14px; background: var(--panel); border-left: 5px solid var(--pick);
  position: sticky; bottom: max(10px, env(safe-area-inset-bottom, 0px)); z-index: 5;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .55);
}
.confirm-text { flex: 1 1 220px; font-weight: 600; font-size: 1.05rem; min-width: 0; overflow-wrap: anywhere; }
.confirm-btns { display: flex; gap: 10px; flex: 1 1 200px; }
.confirm-btns .btn { flex: 1; }

/* ---------- Sonuç paneli ---------- */
.result-panel { padding: 12px 14px; border-left: 5px solid var(--gold); background: var(--panel); }
.result-title { font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--gold); }
.result-text { margin-top: 4px; font-size: 1.02rem; overflow-wrap: anywhere; }
.result-panel.is-good { border-left-color: var(--ok); background: #0d2f3a; }
.result-panel.is-good .result-title { color: var(--ok-light); animation: popIn .45s cubic-bezier(.2, .9, .3, 1.3); }
.result-panel.is-bad { border-left-color: var(--bad); background: #35122f; }
.result-panel.is-bad .result-title { color: #ff8b92; }
.result-panel.is-wait .result-title { color: var(--pick-light); }
@keyframes popIn { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.actions .btn { flex: 1 1 140px; }

/* ---------- Para ağacı ---------- */
#tree-box > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 8px 14px; background: var(--panel); border: 1px solid #3b2f8a;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .04em; color: var(--gold);
}
#tree-box > summary::-webkit-details-marker { display: none; }
.tree-chevron { transition: transform .2s; }
#tree-box[open] .tree-chevron { transform: rotate(180deg); }
.money-tree { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.tree-row {
  display: grid; grid-template-columns: 2.4em 1fr; align-items: center; padding: 5px 12px;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--gold);
  font-variant-numeric: tabular-nums; background: rgba(26, 18, 80, .6);
}
.tree-row .n { color: var(--muted); font-size: 1rem; }
.tree-row .p { text-align: right; }
.tree-row.is-safe { color: #fff; }
.tree-row.is-passed { opacity: .45; }
.tree-row.is-current { background: var(--gold); color: #1b1400; }
.tree-row.is-current .n { color: #1b1400; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .75);
}
.modal-card {
  width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; padding: 20px;
  background: linear-gradient(180deg, #1d1363, #0e0a38); border: 2px solid var(--gold); border-radius: 6px;
}
.modal-title { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 1.25rem; margin-bottom: 14px; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1 1 130px; }
.modal-note { margin-top: 14px; color: var(--muted); font-size: .9rem; }

/* Seyirci çubuk grafiği */
.aud-chart { display: flex; gap: 12px; height: 190px; }
.aud-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.aud-pct { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .95rem; min-height: 1.4em; }
.aud-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.aud-bar { width: 100%; max-width: 56px; height: 0; min-height: 2px; background: linear-gradient(var(--gold), #b8861d); transition: height .9s cubic-bezier(.2, .8, .2, 1); }
.aud-letter { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); }

/* Telefon diyaloğu */
.phone-caller { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.phone-bubble { background: #fff; color: #17123d; padding: 14px 16px; border-radius: 4px 16px 16px 16px; font-weight: 500; line-height: 1.45; }
.phone-dots span { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--gold); animation: dot 1s infinite ease-in-out; }
.phone-dots span:nth-child(2) { animation-delay: .15s; }
.phone-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- Menü, düello, paylaşım, günün sorusu ---------- */
.menu-btns { display: grid; gap: 12px; margin-bottom: 18px; }
.btn-daily { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.1; }
.btn-sub { font-family: var(--font-body); font-size: .85rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.btn-link { width: 100%; margin-top: 10px; }
.field { display: block; margin-bottom: 14px; text-align: left; }
.field-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .9rem; }
.field-input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px;
  background: #0e0a38; color: var(--text); border: 2px solid #5b4fb8; font: inherit; font-size: 1.05rem;
}
.field-input:focus { outline: none; border-color: var(--gold); }
.duel-help { color: #d4d0f5; margin-bottom: 16px; }
.resume-box { margin-bottom: 18px; padding: 14px; border: 2px solid var(--gold); border-radius: 12px; background: rgba(242, 193, 78, .08); }
.resume-title { color: var(--gold); font-size: 1.4rem; font-weight: 600; letter-spacing: .04em; }
.resume-text { color: #d4d0f5; margin: 4px 0 12px; }
.resume-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rules-box { margin-top: 4px; }
.rules-box > summary { cursor: pointer; padding: 12px 0; color: var(--gold); font-weight: 600; min-height: 44px; }
.rules-box .rules { margin-top: 8px; }
.handoff-name { font-size: clamp(3rem, 16vw, 6rem); font-weight: 700; color: #fff; line-height: 1.05; margin: 6px 0 14px; word-break: break-word; }
.mode-badge { margin-bottom: 8px; padding: 6px 12px; display: inline-block; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
#game-screen[data-mode="daily"] .jokers,
#game-screen[data-mode="daily"] .stats,
#game-screen[data-mode="daily"] .tree,
#game-screen[data-mode="daily"] #walk-btn { display: none; }
#game-screen[data-mode="daily"] .layout { grid-template-columns: minmax(0, 1fr); }
#game-screen[data-mode="daily"] .game-header { grid-template-areas: "brand sound"; }
.end-btns { display: grid; gap: 10px; margin-top: 18px; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.vs-card { padding: 14px 8px; border: 2px solid #5b4fb8; border-radius: 12px; background: var(--panel); min-width: 0; }
.vs-card.is-winner { border-color: var(--gold); background: rgba(242, 193, 78, .12); }
.vs-name { font-size: 1.5rem; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.vs-amount { font-size: 1.9rem; font-weight: 700; color: var(--gold); line-height: 1.1; }
.vs-count { color: var(--muted); font-size: .95rem; }
.share-slot { margin-top: 6px; }
.share-box { display: grid; gap: 10px; justify-items: center; }
.share-canvas { width: min(100%, 320px); height: auto; aspect-ratio: 1080 / 1350; border-radius: 12px; border: 2px solid #5b4fb8; background: #0a0720; }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.share-btns .btn { padding-inline: 8px; }
.btn-wa { background: #25d366; color: #052b12; border-color: #25d366; }
.btn-wa:hover:not(:disabled) { background: #4fe388; }
.share-status { min-height: 1.3em; color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Tablet ve üstü ---------- */
@media (min-width: 640px) {
  .answers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .stats { grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px 28px; }
  .stat-val { font-size: 1.5rem; }
  .question-box { clip-path: polygon(32px 0, calc(100% - 32px) 0, 100% 50%, calc(100% - 32px) 100%, 32px 100%, 0 50%); }
  .question-box .inner { clip-path: polygon(31px 0, calc(100% - 31px) 0, 100% 50%, calc(100% - 31px) 100%, 31px 100%, 0 50%); min-height: 118px; padding: 30px 54px; }
  .bubble { width: 20px; height: 20px; }
  .btn-big { width: auto; }
  .menu-btns .btn-big, .end-btns .btn-big { width: 100%; }
  .end-card { text-align: center; }
  .actions .btn { flex: 0 0 auto; min-width: 150px; }
  .confirm-bar { position: static; box-shadow: none; }
  .confirm-btns { flex: 0 0 auto; }
  .confirm-btns .btn { min-width: 110px; }
}

/* ---------- Masaüstü: jokerler sağ üstte, para ağacı sağda ---------- */
@media (min-width: 900px) {
  .screen { padding-top: 16px; }
  .game-header { grid-template-columns: 1fr auto auto; grid-template-areas: "brand jokers sound"; gap: 16px; margin-bottom: 20px; }
  .brand { font-size: 1.2rem; }
  .jokers { gap: 16px; }
  .joker-btn { min-width: 64px; }
  .layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
  #tree-box > summary { display: none; }
  .money-tree { margin-top: 0; }
}

/* ---------- Çok dar telefonlar ---------- */
@media (max-width: 360px) {
  .joker-icon { width: 48px; height: 48px; }
  .joker-svg { width: 22px; height: 22px; }
  .joker-btn.is-used .joker-icon::after { width: 60px; }
  .answer-btn .inner { padding-inline: 26px; }
  .question-box .inner { padding-inline: 28px; }
  .bubble { width: 15px; height: 15px; }
  .timer-bubbles { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.stat-val { white-space: nowrap; }

/* ---------- Ana menü kartları ---------- */
.mode-card {
  appearance: none; position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 78px; padding: 12px 16px; border-radius: 18px; border: 1.5px solid #5b4fb8;
  color: #fff; text-align: left; cursor: pointer; font: inherit; overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.mode-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.14), transparent 45%); pointer-events: none; }
.mode-card:hover { transform: translateY(-2px); }
.mode-card:active { transform: translateY(0) scale(.99); }
.mode-card:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.mode-solo { background: linear-gradient(135deg, #f8d57e, #e5a91f); border-color: #fbe3a0; color: #1b1400; box-shadow: 0 10px 28px rgba(242, 193, 78, .28); }
.mode-duel { background: linear-gradient(135deg, #4a28b5, #26136b); border-color: #7b68e6; box-shadow: 0 10px 28px rgba(80, 50, 200, .28); }
.mode-daily { background: linear-gradient(135deg, #14325e, #0c1a3d); border-color: rgba(242, 193, 78, .65); box-shadow: 0 10px 28px rgba(20, 60, 140, .3); }
.mode-daily.is-done { border-color: #3d5a8c; }
.mode-icon { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.28); }
.mode-solo .mode-icon { background: rgba(27,20,0,.12); border-color: rgba(27,20,0,.28); }
.mode-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode-icon svg .fill { fill: var(--gold); stroke: none; }
.mode-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.mode-title { font-size: 1.55rem; font-weight: 700; letter-spacing: .03em; line-height: 1.05; }
.mode-sub { font-size: .88rem; opacity: .85; line-height: 1.25; }
.mode-chev { flex: 0 0 auto; font-size: 2rem; line-height: 1; opacity: .7; }
.mode-chip { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: rgba(242,193,78,.16); border: 1px solid var(--gold); color: var(--gold); font-size: 1.15rem; font-weight: 700; }

/* ---------- Paylaşım alanı ---------- */
.share-slot { margin-top: 18px; padding: 16px 14px; border-radius: 18px; background: rgba(26, 18, 80, .55); border: 1px solid rgba(91, 79, 184, .6); }
.share-title { margin: 0 0 12px; color: var(--gold); font-size: 1.3rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.share-canvas { box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(242, 193, 78, .35), 0 0 36px rgba(110, 70, 255, .35); border: 0; border-radius: 14px; }
.share-btns { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 14px; font-weight: 600; }
.share-btn svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-share, .share-wa { grid-column: 1 / -1; min-height: 54px; font-size: 1.05rem; }
.share-save, .share-copy { background: rgba(255,255,255,.06); }

.legal-link { margin-top: 10px; text-align: center; font-size: .9rem; }
.legal-link a { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 12px; color: var(--muted); }
