/* ImanQuest oyun arayüzü. Harici font veya görsel kullanılmaz. */
:root {
  --purple: #5b2fc9;
  --purple-dark: #43209a;
  --purple-soft: #ece5ff;
  --turq: #0b7d71;
  --turq-bright: #14b8a6;
  --turq-soft: #d8f5f1;
  --yellow: #ffc93c;
  --yellow-soft: #fff4d1;
  --coral: #d9443a;
  --coral-bright: #ff6b5b;
  --coral-soft: #ffe5e2;
  --green: #157a3c;
  --ink: #1f1b2e;
  --muted: #5d5873;
  --line: #e2ddf0;
  --bg: #f7f4fd;
  --card: #fff;
  --radius: 22px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--ink);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Grup renkleri */
  --g0: #6d3fe0; --g1: #0f8f81; --g2: #b98500; --g3: #d9443a; --g4: #2f6fe0; --g5: #1b8a4b; --g6: #c8357f; --g7: #c45808;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; font-family: var(--font); color: var(--ink); line-height: 1.45;
  background:
    radial-gradient(circle at 8% 4%, #e6dcff 0, transparent 32%),
    radial-gradient(circle at 96% 30%, #cdf3ed 0, transparent 30%),
    radial-gradient(circle at 10% 95%, #fff0c8 0, transparent 30%),
    var(--bg);
  background-attachment: fixed;
}
button, input, select { font: inherit; color: inherit; }
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
svg { display: block; width: 100%; height: 100%; }
/* SVG iç detayları: varsayılan beyaz, renkli zeminlerde zemin rengine göre ayarlanır */
.ink { fill: #fff; }
.mtag .ink, .mode-result .ink, .mode-card.is-chosen .ink { fill: var(--m); }
.gc-modes .ink { fill: #4a23b0; }
.gc-tabu .ink { fill: #0a6e64; }
.btn-big .ink { fill: var(--purple); }
.panel h2 .ink { fill: #fff; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
h1, h2 { line-height: 1.15; margin: 0; }
.screen-title:focus { outline: none; box-shadow: none; }
.noscript { padding: 2rem; text-align: center; font-size: 1.2rem; }

#app { max-width: 780px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.screen { display: flex; flex-direction: column; gap: 1rem; flex: 1; min-width: 0; }
.lead { margin: 0; color: var(--muted); font-size: 1.05rem; }
.hint, .hint-line { color: var(--muted); margin: 0; font-size: .95rem; }
.error { color: var(--coral); font-weight: 700; margin: .35rem 0 0; }
.error[hidden] { display: none; }

/* ---------------------------------------------------- Düğmeler */
.btn, .btn-big, .icon-btn, .btn-answer, .game-card { cursor: pointer; border: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .6rem 1.2rem;
  border-radius: 16px; background: #fff; border: 2px solid var(--line); font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--purple); }
.btn svg, .btn-big svg { width: 1.4em; height: 1.4em; flex: none; }
.btn-lg { min-height: 58px; font-size: 1.1rem; padding: .7rem 1.4rem; }
.btn-primary { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.btn-coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn:disabled, .btn-big:disabled { opacity: .6; cursor: not-allowed; }
.btn-big { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; min-height: 72px; padding: .8rem 1.4rem;
  border-radius: 22px; font-size: 1.45rem; font-weight: 800; color: #fff; background: var(--purple); box-shadow: 0 6px 0 var(--purple-dark); transition: transform .08s; }
.btn-big:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 var(--purple-dark); }
.btn-big.btn-green { background: var(--green); box-shadow: 0 6px 0 #0c5228; }
.btn-big.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 #c99400; }
.btn-big small { display: block; font-size: .85rem; font-weight: 600; opacity: .85; }
.btn-big.continue { justify-content: flex-start; text-align: left; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 52px; min-height: 52px; padding: .6rem;
  border-radius: 16px; background: #fff; border: 2px solid var(--line); color: var(--ink); }
.icon-btn svg { width: 26px; height: 26px; }
.icon-btn[aria-pressed="false"] { color: var(--muted); }
.link { background: none; border: 0; padding: .25rem .4rem; color: var(--purple); font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 36px; }
.btn-col { display: flex; flex-direction: column; gap: .8rem; margin-top: auto; padding-top: .5rem; }
.wide { width: 100%; }

/* ---------------------------------------------------- Grup ve biçim etiketleri */
.gtag { display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; padding: .3rem .8rem .3rem .45rem; border-radius: 999px;
  background: #fff; border: 2px solid currentColor; font-weight: 800; vertical-align: middle; }
.gtag .gname { color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.gshape { display: inline-block; width: 1.3em; height: 1.3em; flex: none; }
.gtag.big { font-size: 1.35rem; padding: .4rem 1rem .4rem .6rem; }
.g0 { color: var(--g0); } .g1 { color: var(--g1); } .g2 { color: var(--g2); } .g3 { color: var(--g3); }
.g4 { color: var(--g4); } .g5 { color: var(--g5); } .g6 { color: var(--g6); } .g7 { color: var(--g7); }

.mtag { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem .3rem .5rem; border-radius: 999px; font-weight: 800; color: #fff; }
.mtag svg { width: 1.4em; height: 1.4em; }
.mtag.small { font-size: .85rem; padding: .2rem .6rem .2rem .4rem; }
.m-anlatim { --m: var(--purple); --m-soft: var(--purple-soft); }
.m-cizim { --m: var(--turq); --m-soft: var(--turq-soft); }
.m-pantomim { --m: var(--coral); --m-soft: var(--coral-soft); }
.m-tabu { --m: var(--purple); --m-soft: var(--purple-soft); }
.mtag.m-anlatim, .mtag.m-cizim, .mtag.m-pantomim { background: var(--m); }

/* ---------------------------------------------------- Ana ekran */
.hero { text-align: center; padding-top: .5rem; }
.logo { width: 84px; height: 84px; margin: 0 auto .6rem; filter: drop-shadow(0 6px 12px rgba(91,47,201,.25)); }
.hero h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--purple), #9b3fd1 45%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { max-width: 34em; margin: .5rem auto 0; font-size: 1.1rem; color: var(--muted); }
.game-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.game-card { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; padding: 1.25rem; border-radius: var(--radius); text-align: left;
  color: #fff; min-height: 220px; box-shadow: 0 8px 0 rgba(0,0,0,.15); transition: transform .1s; }
.game-card:hover { transform: translateY(-2px); }
.game-card:active { transform: translateY(2px); }
.gc-activity { background: linear-gradient(150deg, #6d3fe0, #4a23b0); }
.gc-tabu { background: linear-gradient(150deg, #0f9a8b, #0a6e64); }
.gc-icon { width: 64px; height: 64px; color: #fff; }
.gc-activity .gc-icon { color: var(--yellow); }
.gc-tabu .gc-icon { color: #fff; }
.gc-name { font-size: 1.8rem; font-weight: 900; }
.gc-desc { font-size: 1rem; opacity: .95; }
.gc-modes { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto; }
.gc-modes .mtag { background: rgba(255,255,255,.18); }
.home-links { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.admin-link { text-align: center; margin: auto 0 0; font-size: .85rem; }
.admin-link a { color: var(--muted); padding: .5rem; display: inline-block; }

/* ---------------------------------------------------- Hazırlık */
.setup-top { display: flex; align-items: center; gap: .8rem; }
.setup-game { font-weight: 800; color: var(--purple); font-size: 1.1rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; padding: 0; margin: 0; counter-reset: s; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .72rem; color: var(--muted); text-align: center; }
.step-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-weight: 800; font-size: .95rem; }
.steps .done .step-num { background: var(--turq-bright); border-color: var(--turq-bright); color: #fff; }
.steps .current .step-num { background: var(--purple); border-color: var(--purple); color: #fff; }
.steps .current { color: var(--ink); font-weight: 800; }
.setup-body { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.setup-body h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
.nav-row { display: grid; grid-template-columns: 1fr 2fr; gap: .8rem; margin-top: auto; padding-top: .5rem; }

.choices { display: grid; gap: .7rem; }
.choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices-count { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.choices-time { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 84px; padding: .7rem;
  border-radius: 18px; background: #fff; border: 3px solid var(--line); text-align: center; }
.choice-box strong { font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.choice-box small { color: var(--muted); font-weight: 600; }
.choice input:checked + .choice-box { border-color: var(--purple); background: var(--purple-soft); box-shadow: inset 0 0 0 2px var(--purple); }
.choice input:checked + .choice-box::after { content: "✓ Seçili"; font-size: .75rem; font-weight: 800; color: var(--purple); }
.choice input:focus-visible + .choice-box { box-shadow: var(--focus); }
.choice-game .choice-box { min-height: 170px; }
.choice-game .gc-icon { width: 56px; height: 56px; color: var(--purple); }
.cg-tabu .gc-icon { color: var(--turq); }
.choices.small .choice-box { min-height: 64px; }
.choices.small .choice-box strong { font-size: 1.25rem; }

.names { display: grid; gap: .8rem; }
.name-row { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); align-items: center; gap: .3rem .7rem; }
.name-label { display: flex; align-items: center; gap: .4rem; font-weight: 800; }
.name-label > span:last-child { color: var(--ink); }
.name-row input, .custom-time input, .settings select, .settings input[type=number] {
  width: 100%; min-height: 54px; padding: .6rem .9rem; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-size: 1.1rem; }
.name-row input[aria-invalid="true"], .custom-time input[aria-invalid="true"], .settings input[aria-invalid="true"] { border-color: var(--coral); }
.name-row .error { grid-column: 2; margin: 0; }
.custom-time { display: grid; gap: .35rem; max-width: 320px; }
.custom-time label { font-weight: 800; }

.summary { margin: 0; display: grid; gap: .6rem; }
.summary > div { background: #fff; border-radius: 18px; padding: .8rem 1rem; border: 2px solid var(--line); }
.summary dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.summary dd { margin: .15rem 0 0; font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
.summary-groups { list-style: none; padding: 0; margin: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: 1rem; }
.notice { padding: 1rem; border-radius: 16px; border-left: 8px solid; background: #fff; overflow-wrap: anywhere; }
.notice-error { border-color: var(--coral); background: #fff2f0; }

/* ---------------------------------------------------- Oyun üst çubuğu */
.game-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.game-title { flex: 1; text-align: center; font-size: .95rem; color: var(--muted); min-width: 0; }
.game-title strong { color: var(--ink); }

/* ---------------------------------------------------- Zar */
.roll h1, .ready h1 { text-align: center; font-size: 1.6rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; }
.roll .lead, .ready .rule { text-align: center; }
.mode-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.mode-card { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1rem .5rem; border-radius: 20px; background: #fff;
  border: 3px solid var(--line); color: var(--m); font-weight: 900; font-size: 1.05rem; transition: transform .1s, background .1s; }
.mode-card svg { width: 64px; height: 64px; }
.mode-card span { color: var(--ink); }
.mode-card.is-lit { background: var(--m-soft); border-color: var(--m); transform: scale(1.04); }
.mode-card.is-chosen { background: var(--m); color: #fff; border-color: var(--m); }
.mode-card.is-chosen span { color: #fff; }
.roll-result { text-align: center; font-size: 1.5rem; font-weight: 900; min-height: 1.5em; }
.roll .btn-big, .ready .btn-big { margin-top: auto; }

.mode-result { align-self: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.25rem 2rem; border-radius: 26px;
  background: var(--m); color: #fff; font-size: 1.8rem; font-weight: 900; }
.mode-result svg { width: 96px; height: 96px; }
.rule { font-size: 1.25rem; font-weight: 700; margin: 0; padding: 1rem; border-radius: 18px; background: #fff; border: 2px solid var(--line); }
.ready .hint-line { text-align: center; }

/* ---------------------------------------------------- Oyun ekranı */
.play { gap: .7rem; }
.hud { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.timer { margin-left: auto; display: flex; align-items: baseline; gap: .15rem; padding: .2rem .9rem; border-radius: 16px; background: var(--ink); color: #fff; font-variant-numeric: tabular-nums; }
#timer-num { font-size: 2.2rem; font-weight: 900; line-height: 1.1; min-width: 2ch; text-align: right; }
.low-time .timer { background: var(--coral); }
.timebar { height: 10px; border-radius: 99px; background: #e4def2; overflow: hidden; }
.timebar-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--turq-bright), var(--purple)); }
.low-time .timebar-fill { background: var(--coral-bright); }
.phase-paused .timebar-fill, .phase-timeup .timebar-fill { width: 0; }
.card-area { flex: 1; display: flex; min-height: 200px; }
.word-card, .tabu-card { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 28px; background: #fff;
  box-shadow: 0 10px 30px rgba(60,30,140,.12); border: 4px solid var(--m, var(--purple)); padding: 1.25rem; min-width: 0; text-align: center; }
.word { font-size: clamp(2.2rem, 10vw, 4.6rem); font-weight: 900; line-height: 1.08; overflow-wrap: anywhere; hyphens: auto; max-width: 100%; }
.tabu-card { padding: 0; overflow: hidden; justify-content: flex-start; border-color: var(--purple); }
.tabu-main { width: 100%; padding: 1.4rem 1rem; background: var(--purple); color: #fff; font-size: clamp(2rem, 9vw, 3.8rem); font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; hyphens: auto; }
.tabu-sep { width: 100%; padding: .4rem; background: var(--coral); color: #fff; font-weight: 900; letter-spacing: .12em; font-size: .9rem; }
.tabu-list { list-style: none; margin: 0; padding: .6rem 1rem 1rem; width: 100%; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tabu-list li { font-size: clamp(1.35rem, 5.5vw, 2rem); font-weight: 800; color: #8a2a22; padding: .45rem; border-bottom: 2px dashed #f1d3cf; overflow-wrap: anywhere; }
.tabu-list li:last-child { border-bottom: 0; }
.word-card.is-hidden { border-style: dashed; border-color: var(--muted); background: #f1eef8; color: var(--muted); }
.word-card.is-timeup { border-color: var(--coral); background: var(--coral-soft); }
.cover { display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: 1.1rem; }
.cover p { margin: 0; }
.cover svg { width: 56px; height: 56px; }
.timeup-text { font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 900; color: var(--coral); }
.turn-score { text-align: center; margin: 0; font-size: 1.05rem; }
.answer-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: .8rem; }
.answer-row.with-tabu { grid-template-columns: 1fr 1fr 1.3fr; gap: .6rem; }
.btn-answer span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.btn-answer small { font-size: .8rem; font-weight: 800; opacity: .9; }
.btn-tabu { background: var(--coral); box-shadow: 0 6px 0 #9e2c24; }
.with-tabu .btn-answer { font-size: 1.35rem; gap: .4rem; padding: 0 .3rem; }
.with-tabu .btn-answer svg { width: 30px; height: 30px; }
.btn-answer { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 92px; border-radius: 24px; font-size: 1.6rem; font-weight: 900; color: #fff; }
.btn-answer svg { width: 38px; height: 38px; flex: none; }
.btn-found { background: var(--green); box-shadow: 0 6px 0 #0c5228; }
.btn-pass { background: #6b6680; box-shadow: 0 6px 0 #45415a; }
.btn-answer:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.btn-answer:disabled { background: #c9c5d6; box-shadow: none; color: #fff; cursor: not-allowed; }
.control-row { display: flex; justify-content: center; }
.control-row .btn { min-width: 50%; }

/* ---------------------------------------------------- Sonuç ekranları */
.turn-end h1, .round-end h1, .game-over h1 { text-align: center; font-size: clamp(1.7rem, 7vw, 2.4rem); }
.turn-end h2, .round-end h2, .game-over h2 { font-size: 1.15rem; color: var(--muted); }
.turn-result { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.big-score { margin: 0; font-size: 1.4rem; font-weight: 700; }
.big-score strong { font-size: 3rem; font-weight: 900; color: var(--purple); }
.scores { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.scores li { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-radius: 16px; background: #fff; border: 2px solid var(--line); min-width: 0; }
.scores li.is-current { border-color: var(--purple); background: var(--purple-soft); }
.scores .rank { font-weight: 900; font-size: 1.2rem; min-width: 2ch; }
.scores .gtag { border: 0; padding: 0; background: none; min-width: 0; flex: 1; }
.scores .pts { margin-left: auto; white-space: nowrap; }
.scores .pts strong { font-size: 1.4rem; }
.next-line { text-align: center; margin: 0; font-size: 1.15rem; font-weight: 700; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; }
.trophy { width: 96px; height: 96px; margin: 0 auto; color: #e0a100; }
.winners { text-align: center; }
.winners p { margin: 0; font-weight: 700; }
.winners ul { list-style: none; padding: 0; margin: .4rem 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

/* ---------------------------------------------------- Ayarlar ve yardım */
.settings h1, .help h1 { font-size: 2rem; }
.panel { background: #fff; border-radius: var(--radius); padding: 1.1rem 1.25rem; border: 2px solid var(--line); display: grid; gap: .6rem; }
.panel h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; }
.panel h2 svg { width: 1.6em; height: 1.6em; color: var(--purple); flex: none; }
.panel ul, .panel ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .4rem; }
.panel p { margin: 0; }
.mode-help { list-style: none; padding: 0 !important; }
.mode-help li { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.settings fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.lbl { font-weight: 800; }
.lbl.small { font-size: .95rem; }
.note { color: var(--muted); font-size: .95rem; }
.saved-msg { color: var(--green); font-weight: 700; margin: 0; min-height: 1.4em; }
hr { border: 0; border-top: 2px solid var(--line); width: 100%; margin: .3rem 0; }
.toggle { display: flex; align-items: center; gap: .8rem; cursor: pointer; min-height: 56px; position: relative; font-weight: 800; }
.toggle small { display: block; font-weight: 500; color: var(--muted); }
.toggle input { position: absolute; opacity: 0; width: 56px; height: 34px; margin: 0; cursor: pointer; }
.toggle-track { position: relative; width: 56px; height: 34px; border-radius: 99px; background: #c9c4d8; flex: none; transition: background .15s; }
.toggle-track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked + .toggle-track { background: var(--green); }
.toggle input:checked + .toggle-track::after { transform: translateX(22px); }
.toggle input:focus-visible + .toggle-track { box-shadow: var(--focus); }

/* ---------------------------------------------------- Onay penceresi */
dialog { border: 0; border-radius: 24px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(31,27,46,.6); }
.dlg { padding: 1.5rem; display: grid; gap: .8rem; }
.dlg h2 { font-size: 1.4rem; }
.dlg p { margin: 0; }
.dlg-menu { display: grid; gap: .6rem; margin-top: .3rem; }
.dlg-menu .btn { justify-content: flex-start; text-align: left; min-height: 60px; }
.dlg-menu .btn svg { width: 1.5em; height: 1.5em; flex: none; }
.dlg-menu .btn small { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }
.dlg-menu .btn-primary small { color: #fff; opacity: .9; }
.btn-danger-text { color: var(--coral); }
.btn-danger-text:hover { border-color: var(--coral); }
.delete-save { align-self: center; margin-top: -.4rem; color: var(--muted); }
.dlg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .5rem; }

/* ---------------------------------------------------- Ekran boyutları */
@media (max-width: 420px) {
  .with-tabu .btn-answer { flex-direction: column; font-size: 1.15rem; gap: .2rem; min-height: 88px; }
  .with-tabu .btn-answer span { align-items: center; }
  .game-cards { grid-template-columns: 1fr; }
  .game-card { min-height: 0; }
  .choices-2 { grid-template-columns: 1fr; }
  .choice-game .choice-box { min-height: 120px; }
  .name-row { grid-template-columns: 1fr; }
  .name-row .error { grid-column: 1; }
  .steps .step-name { display: none; }
  .steps .current .step-name { display: block; }
  .mode-card { padding: .7rem .3rem; font-size: .9rem; }
  .mode-card svg { width: 48px; height: 48px; }
  .btn-answer { font-size: 1.35rem; min-height: 84px; }
  .dlg-actions { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  #app { padding-top: 32px; }
}
/* Yatay telefon: kart solda, kontroller sağda */
@media (orientation: landscape) and (max-height: 540px) {
  #app { max-width: 1100px; }
  #app.phase-playing, #app.phase-paused, #app.phase-timeup { height: 100vh; height: 100dvh; min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  .game-top { margin-bottom: .4rem; }
  .game-top .icon-btn { min-height: 44px; min-width: 44px; }
  .play { min-height: 0; }
  .play .card-area { flex-direction: column; overflow-y: auto; min-height: 0; border-radius: 28px; }
  .play .card-area > * { flex: 1 0 auto; width: 100%; }
  .play { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto; gap: .5rem 1rem; }
  .play .hud { grid-column: 2; grid-row: 1; }
  .play .timebar { grid-column: 2; grid-row: 2; }
  .play .card-area { grid-column: 1; grid-row: 1 / 6; min-height: 0; }
  .play .turn-score { grid-column: 2; grid-row: 3; align-self: end; }
  .play .answer-row { grid-column: 2; grid-row: 4; }
  .play .control-row { grid-column: 2; grid-row: 5; }
  .play .control-row .btn, .play .control-row .btn-big { width: 100%; min-height: 52px; font-size: 1.1rem; }
  .btn-answer { min-height: 72px; }
  .word { font-size: clamp(1.6rem, 5.5vw, 3.2rem); }
  .tabu-main { padding: .6rem; font-size: clamp(1.3rem, 4.2vw, 2.4rem); }
  .tabu-list li { font-size: 1.3rem; padding: .25rem; }
  .game-card { min-height: 0; }
  .hero .logo { width: 56px; height: 56px; }
  .mode-result svg { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn-big:active, .btn-answer:active, .game-card:hover, .game-card:active { transform: none !important; }
}
