/* ================= NASIL OYNANIR ================= */
.modal-box.tut-box { width: min(94vw, 400px); text-align: center; position: relative; }
.tut-box h3 { margin-top: 2px; padding: 0 46px; }
.tut-box p { min-height: 88px; margin-bottom: 10px; }
.tut-skip {
  position: absolute; top: 14px; right: 14px; border: none; border-radius: 10px; padding: 5px 10px;
  background: rgba(var(--fg-rgb),0.08); color: inherit; font-size: 12px; font-weight: 700; opacity: 0.8;
}
.modal-box .tut-skip { background: rgba(255,255,255,0.1); }
body.themed .modal-box .tut-skip { background: rgba(var(--fg-rgb),0.08); }
.tut-stage { height: 250px; display: flex; align-items: center; justify-content: center; margin: 6px 0 10px; }
.tut-board-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tut-word { height: 28px; font-size: 22px; font-weight: 900; letter-spacing: 3px; padding: 0 12px; border-radius: 10px; transition: background 0.2s, color 0.2s; }
.tut-word.ok { background: var(--good); color: #fff; }
.tut-board {
  position: relative; width: 196px; display: grid; gap: 7px; padding: 8px;
  background: rgba(0,0,0,0.22); border-radius: 18px;
}
body.themed .tut-board { background: var(--board-bg); }
.tut-board .tile { aspect-ratio: 1 / 1; font-size: 24px; border-radius: 12px; }
.tut-board .tile.tile-combo { font-size: 24px; }
.tut-board .tile .pts { font-size: 9px; bottom: 2px; right: 5px; }
.tut-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tut-lines polyline { fill: none; stroke: var(--line); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
/* The demo finger: a soft fingertip circle with a ring */
.tut-hand {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0 35%, rgba(255,255,255,0.35) 36% 100%);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25), 0 4px 10px rgba(0,0,0,0.3);
}
.tut-pop { position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%) scale(0.5); font-size: 34px; font-weight: 900; color: #ffd93d; opacity: 0; pointer-events: none; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
body.themed .tut-pop { color: var(--toast); text-shadow: 0 2px 0 var(--toast-halo); }
.tut-pop.show { animation: toastpop 1.2s ease-out forwards; }
.tut-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.tut-dots span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.2; transition: all 0.2s; }
.tut-dots span.on { width: 20px; border-radius: 4px; opacity: 0.7; }
.tut-picture { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tut-pic-frame {
  width: 180px; height: 110px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 40px; background: rgba(255,255,255,0.1); border: 2px dashed rgba(255,255,255,0.3);
}
.tut-pic-frame span { font-size: 12px; font-weight: 700; opacity: 0.6; }
body.themed .tut-pic-frame { background: rgba(var(--fg-rgb),0.06); border-color: rgba(var(--fg-rgb),0.2); }
.tut-stars { font-size: 34px; letter-spacing: 4px; }
.tut-stars span { opacity: 0.25; }
.tut-stars span.on { opacity: 1; color: #ffd93d; }
body.themed .tut-stars span.on { color: var(--star); }
.tut-multi { width: 100%; }
.tut-timer { font-size: 15px; margin-bottom: 6px; }
.tut-timer b { font-size: 30px; font-variant-numeric: tabular-nums; }
.tut-multi .fp-bar { margin-bottom: 12px; }
.tut-multi .mp-rank li { opacity: 1; animation: none; }

/* ================= GORUNUM SECICI (Basit/Kombo/Neon) ================= */
.theme-picker { display: flex; gap: 8px; }
.settings-row.disabled { opacity: 0.4; pointer-events: none; }
.settings-group-title { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; opacity: 0.55; margin: 6px 4px -4px 4px; }
.theme-opt {
  flex: 1; padding: 10px 6px; border-radius: 12px;
  border: 1px solid rgba(var(--fg-rgb),0.15);
  background: rgba(var(--fg-rgb),0.06); color: var(--fg);
  font-size: 12px; font-weight: 800; letter-spacing: 0.5px;
}
.theme-opt.active {
  color: #fff;
  background: linear-gradient(145deg, #5b3bd6, #3a1ea0);
  border-color: transparent;
  box-shadow: 0 3px 0 rgba(0,0,0,0.3);
}

/* ================= BULUNAN KELIME ETIKETI TOOLTIP'I ================= */
.found-chip { min-width: 64px; text-align: center; }
.word-tooltip {
  position: fixed; z-index: 3000; width: max-content; max-width: min(340px, calc(100vw - 24px));
  background: #1f2b3a; color: #fff; font-size: 17px; font-weight: 600;
  padding: 12px 44px 13px 15px; border-radius: 16px; line-height: 1.4;
  transform: translate(-50%, -100%); pointer-events: none;
  opacity: 0; transition: opacity 0.15s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  white-space: normal; text-align: left;
}
.word-tooltip.show { opacity: 1; pointer-events: auto; }
.word-tooltip.below { transform: translate(-50%, 0); }
/* Big enough for older eyes (Nov 2026, Ibur's pick "A"): the word, what kind it is, the meaning; ✕ in the corner,
   though any tap closes it. The arrow points at the chip (--arrow-x, set by placeWordTooltip). */
.word-tooltip .wt-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 4px; white-space: normal; }
.word-tooltip .wt-word { font-family: var(--font-display, inherit); font-size: 20px; font-weight: 800; letter-spacing: 0.5px; }
.word-tooltip .wt-tag { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 9px; background: #f0c050; color: #1f2b3a; }
.word-tooltip .wt-tag.combo { background: #ec9a62; color: #3a1a06; }
.word-tooltip .wt-text { display: block; white-space: pre-line; }
.word-tooltip .wt-x { position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.16); font-size: 15px; line-height: 1; }
.word-tooltip::after { content: ""; position: absolute; left: var(--arrow-x, 50%); bottom: -8px; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: #1f2b3a; border-bottom: 0; }
.word-tooltip.below::after { bottom: auto; top: -8px; border: 8px solid transparent; border-bottom-color: #1f2b3a; border-top: 0; }
/* Dark backgrounds (Gece Mavisi, neon): the navy bubble melted into the navy chips, and a light one glared at night
   (Nov 2026, Ibur's pick "A"): a slate blue two steps lighter than the chips, off-white text, a deeper shadow. */
body.th-dark .word-tooltip, body.anim-neon .word-tooltip { background: #3a5070; color: #f2f5f9; box-shadow: 0 10px 26px rgba(0,0,0,0.55); }
body.th-dark .word-tooltip::after, body.anim-neon .word-tooltip::after { border-top-color: #3a5070; }
body.th-dark .word-tooltip.below::after, body.anim-neon .word-tooltip.below::after { border-top-color: transparent; border-bottom-color: #3a5070; }

/* Kucuk bilgi seridi (baglanti hatasi vb.) */
.notice {
  position: fixed; left: 50%; bottom: 24px; z-index: 3000;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(20,10,40,0.95); color: #fff; font-size: 13px; font-weight: 700;
  padding: 10px 16px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: opacity 0.2s, transform 0.2s; max-width: 90vw; text-align: center;
}
.notice.show { opacity: 1; transform: translate(-50%, 0); }
.level-grid-message { grid-column: 1 / -1; text-align: center; opacity: 0.7; padding: 40px 0; font-weight: 700; }

/* ---- Walkthrough steps built from the game's own pieces (turning board, targets, hint pills, keyword tiles) ---- */
.tut-round { position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--surface, #fff); color: var(--fg); box-shadow: 0 2px 8px rgba(0,0,0,0.16); }
.tut-round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tut-round .n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.tut-round.press { animation: tut-press 0.35s ease-out; }
@keyframes tut-press { 40% { transform: scale(0.86); } }
.tut-rotate { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tut-board.turnable { rotate: calc(var(--turn, 0) * 90deg); transition: rotate 0.45s cubic-bezier(.3,.7,.3,1); }
.tut-board.turnable .tile { rotate: calc(var(--turn, 0) * -90deg); transition: rotate 0.45s cubic-bezier(.3,.7,.3,1); }
.tut-fp { --fpc: 15px; width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--fg); }
.tut-fp .fp-tlabel { padding-top: calc(var(--fpc) * 1.25 - 7px); }
.tut-fp .fp-tword { cursor: default; }
.tut-fp .fp-tword:not(.found) { background: rgba(var(--fg-rgb),0.07); }
.tut-fp-foot { display: flex; justify-content: flex-end; }
/* Tahta Yolu's step in the walkthrough, like the top bar's "TAHTA 3" */
.tut-fp-step { display: flex; align-items: baseline; gap: 6px; }
.tut-fp-step small { font-size: 11px; font-weight: 900; letter-spacing: 1px; opacity: 0.7; }
.tut-fp-step b { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1; color: var(--c-orange, #c45f28); }
.tut-fp-step span { margin-left: auto; font-size: 12px; font-weight: 800; opacity: 0.6; }
.tut-hints { align-items: center; }
.tut-hint-top { display: flex; align-items: center; gap: 12px; }
.tut-cap { min-height: 18px; font-size: 13px; font-weight: 800; opacity: 0.75; text-align: center; }
.tut-pill { height: 42px; padding: 0 12px; border-radius: 999px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: color-mix(in srgb, var(--c-teal) 24%, var(--surface, #fff)); color: var(--fg); }
.tut-pill.gold { background: color-mix(in srgb, var(--star) 30%, var(--surface, #fff)); }
.tut-pill .row { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 900; line-height: 1; }
.tut-pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.tut-pill .bar { display: block; width: 36px; height: 4px; border-radius: 2px; background: rgba(var(--fg-rgb),0.16); overflow: hidden; }
.tut-pill .bar i { display: block; height: 100%; background: var(--c-teal); transition: width 0.5s ease-out; }
.tut-pill.gain { animation: hint-gain 0.9s ease-in-out; }
.tut-mag { color: rgba(var(--fg-rgb), 0.55); transition: background 0.25s, color 0.25s; }
.tut-mag .ring { position: absolute; inset: 0; width: 40px; height: 40px; transform: rotate(-90deg); }
.tut-mag .ring circle { fill: none; stroke-width: 3; }
.tut-mag .ring .track { stroke: rgba(var(--fg-rgb), 0.1); }
.tut-mag .ring .fill { stroke: var(--c-teal); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.tut-mag .ic { width: 20px; height: 20px; }
.tut-mag.ready { background: var(--c-teal); color: #fff; animation: reveal-ready 1.2s ease-out 1; }
.tut-mag.ready .ring { display: none; }
.tut-stars span { transition: opacity 0.3s, color 0.3s; }

/* ---- Hint steps (Oct 2026): keyword panel, goal card rows, where hints come from, the daily board ---- */
.tut-kw { gap: 8px; }
.tut-kw-top { display: flex; align-items: center; gap: 14px; }
.tut-pic-frame.small { width: 120px; height: 76px; position: relative; font-size: 30px; }
.tut-key { position: absolute; left: 5px; bottom: 5px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 900; opacity: 1;
  background: rgba(0,0,0,0.55); color: #fff; box-shadow: inset 0 0 0 1.5px var(--star); }
.tut-key.press, .tut-kw .kw-add.press, .tut-kw .kt.press, .tut-chip.press { animation: tut-press 0.35s ease-out; }
.tut-kw-panel { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2);
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; }
.tut-kw-panel.show { opacity: 1; transform: none; }
.tut-kw .kw-add { display: inline-flex; align-items: center; gap: 3px; background: color-mix(in srgb, var(--star) 30%, var(--surface)); }
.tut-kw .kw-add svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.3; }
.tut-goal { width: 100%; max-width: 310px; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.tut-goal .pill-slot { position: absolute; right: 0; bottom: -4px; transform: scale(0.85); transform-origin: bottom right; }
.tut-chips { display: flex; gap: 5px; width: 100%; }
.tut-chip { flex: 1 1 auto; position: relative; height: 30px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 10px;
  font-size: 11px; font-weight: 900; background: var(--surface); box-shadow: inset 0 0 0 1.5px rgba(var(--fg-rgb),0.15); }
.tut-chip b { font-family: var(--font-display); font-size: 14px; }
.tut-chip.len { box-shadow: inset 0 0 0 1.5px var(--c-teal); }
.tut-chip.combo { box-shadow: inset 0 0 0 1.5px var(--c-orange); }
.tut-chip.open { box-shadow: inset 0 0 0 3px var(--c-teal); }
.tut-bulb { position: absolute; top: -8px; right: -6px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--star); color: #3d2a00; }
.tut-bulb svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tut-gh { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; box-sizing: border-box; border-radius: 14px; background: var(--surface-2);
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; text-align: left; }
.tut-gh.show { opacity: 1; transform: none; }
.tut-earn { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 5px; text-align: left; }
.tut-earn-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--surface-2);
  opacity: 0; transform: translateX(-10px); transition: opacity 0.3s, transform 0.3s; }
.tut-earn-row.in { opacity: 1; transform: none; }
.tut-earn-row .ic { font-size: 16px; width: 20px; text-align: center; }
.tut-earn-row .what { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.tut-earn-row .gain { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 900; white-space: nowrap;
  background: color-mix(in srgb, var(--star) 32%, var(--surface)); }
.tut-daily { width: 100%; max-width: 300px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tut-daily-head { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.tut-date { width: 46px; height: 46px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: color-mix(in srgb, var(--star) 22%, var(--surface)); font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.tut-date small { font-size: 10px; color: color-mix(in srgb, var(--star) 60%, var(--fg)); }
.tut-clock b { font-family: var(--font-display); font-size: 30px; font-variant-numeric: tabular-nums; }
.tut-flame { font-size: 16px; font-weight: 900; color: var(--c-orange); }
.tut-dbar { position: relative; width: 100%; height: 10px; border-radius: 5px; background: rgba(var(--fg-rgb),0.12); }
.tut-dbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--c-green); transition: width 0.09s linear; }
.tut-dbar span { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 18px; line-height: 1; color: rgba(var(--fg-rgb),0.3); transition: color 0.3s; }
.tut-dbar span.on { color: var(--star); }
.tut-dword { --kt: 22px; }
.tut-dword .kw-row.pop { animation: fp-hint 0.6s ease-out; }
/* Landscape phones and short screens get a 200px stage (hud.css): tighter source rows */
@media (max-height: 600px) {
  .tut-earn { gap: 3px; }
  .tut-earn-row { padding: 3px 8px; }
  .tut-earn-row .what { font-size: 11.5px; }
}

/* Picture steps (Nov 2026): the frame is the picture's whole area, filled by a flat stand-in scene. */
.tut-picture .tut-pic-frame { width: 220px; height: 84px; flex: none; padding: 0; overflow: hidden; border: none; position: relative; }
.tut-picture { gap: 8px; }
.tut-kw-top { gap: 10px; }
.tut-kw-top .tut-pic-frame.small { width: 220px; height: 84px; } /* same as the picture step; fixed so it never grows */
.tut-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
