/* Durak — okuma paneli (paragrafta boşluk, okuma, deneme). style.css tokenlarını kullanır; açık + koyu tema oradan gelir.
   Animasyonlar ≤400 ms, sadece transform/opacity; azaltılmış harekette style.css genel kuralı süreleri sıfırlar. */

/* ---------- panel ---------- */
.screen--rd .top { padding-bottom: 6px; }
.rd-of { font-size: 16px; font-weight: 650; color: var(--muted); letter-spacing: 0; margin-left: 1px; }
.rd-note { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 12px 4px 0; }
.panel .rd-note { margin: 2px 0 14px; }
.rd-note--calm { text-align: center; padding: 6px 0 4px; }
.rd-weak-n { color: var(--muted); font-weight: 550; font-size: 14px; }

.rd-modes { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.rd-mode { width: 100%; min-height: 84px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 14px; padding: 14px 12px 14px 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-soft); text-align: left; transition: transform 100ms ease; }
.rd-mode:active:not(:disabled) { transform: scale(.985); }
.rd-mode:disabled { opacity: .5; }
.rd-mode-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; }
.rd-mode-ic svg { width: 26px; height: 26px; }
.rd-mode--c .rd-mode-ic { background: var(--gram-soft); color: var(--gram); }
.rd-mode--r .rd-mode-ic { background: var(--new-soft); color: var(--new); }
.rd-mode--m .rd-mode-ic { background: var(--warn-soft); color: var(--warn); }
.rd-mode-txt { display: flex; flex-direction: column; min-width: 0; }
.rd-mode-t { font-size: 19px; font-weight: 750; letter-spacing: -.01em; line-height: 1.25; }
.rd-mode-s { font-size: 14.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.rd-mode-s2 { font-size: 13.5px; color: var(--muted); line-height: 1.35; font-weight: 600; }
.rd-mode-go { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-weight: 750; font-size: 15px; white-space: nowrap; }
.rd-mode--run { box-shadow: var(--shadow-soft), inset 0 0 0 2px var(--accent); }
.rd-mode--run .rd-mode-go { min-height: 40px; padding: 0 6px 0 12px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); }

.rd-mlist li { border-bottom: 1px solid var(--line); }
.rd-mlist li:last-child { border-bottom: 0; }
.rd-mrow { width: 100%; min-height: 60px; display: grid; grid-template-columns: auto 1fr 20px; gap: 10px; align-items: center; padding: 10px 0; text-align: left; }
.rd-mrow > svg { color: var(--muted); }
.rd-mrow-m { display: flex; flex-direction: column; min-width: 0; }
.rd-mrow-t { font-size: 15.5px; font-weight: 640; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-mrow-s { font-size: 13px; color: var(--muted); font-weight: 550; }
.rd-mlist { padding-bottom: 4px; }

.tag--rd { background: var(--gram-soft); color: var(--gram); }
.tag--rdr { background: var(--new-soft); color: var(--new); }

.rd-rules { display: flex; flex-direction: column; gap: 10px; padding: 2px 0 6px; }
.rd-rules li { font-size: 16px; line-height: 1.45; padding-left: 18px; position: relative; }
.rd-rules li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.rd-confirm { font-size: 17px; line-height: 1.5; font-weight: 600; padding: 4px 0 8px; }

/* ---------- oyun ekranı iskeleti ---------- */
.rd { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding-top: var(--safe-t); overflow: hidden; }
.rd-top { gap: 10px; }
.rd-topmid { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; }
.rd-count { min-width: 40px; }
.rd-steps { flex: 1; display: flex; gap: 6px; }
.rd-steps i { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-2); transition: background-color 200ms ease; }
.rd-steps i.on { background: var(--accent); opacity: .45; }
.rd-steps i.ok { background: var(--ok); }
.rd-steps i.bad { background: var(--bad); }
.rd-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 16px 18px; }
.rd-scroll[hidden] { display: none; }
.rd-card { background: var(--surface); border-radius: 22px; padding: 16px 18px 20px; box-shadow: var(--shadow-soft); }
.rd-head { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.rd-head .c-meta { margin-left: auto; }
.rd-lvl { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 8px; }
.rd-title { font-size: 21px; line-height: 1.25; font-weight: 740; letter-spacing: -.01em; margin-top: 12px; }
.rd-hint { margin-top: 8px; color: var(--muted); font-size: 13.5px; font-weight: 550; }
.rd-text { position: relative; margin-top: 12px; font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.rd-text--read { font-size: 18.5px; line-height: 1.72; }
.rd-text p + p { margin-top: 16px; }

/* alt bölge (başparmak): şıklar / düğmeler */
.rd-dock { flex: none; padding: 10px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg); }
.rd-dock-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px 8px; font-size: 13px; color: var(--muted); font-weight: 650; }
.rd-dock-h b { color: var(--text); font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.rd-opts { gap: 8px; margin-top: 0; }
.rd-opts .opt { min-height: 52px; padding: 8px 12px; font-size: 17px; }
.rd-dock .rd-go { gap: 10px; }
.rd-go svg { width: 22px; height: 22px; }
.opt--sel { background: var(--accent-soft); border-color: var(--accent); }
.opt--sel .opt-k { background: var(--accent); color: var(--accent-ink); }

/* paragraf boşlukları */
.rd-b { display: inline-block; min-width: 54px; margin: 0 2px; padding: 0 6px; line-height: 1.3; text-align: center; color: var(--muted); font-size: 14.5px; font-weight: 800; border-bottom: 2.5px solid var(--line); border-radius: 7px 7px 2px 2px; vertical-align: baseline; font-variant-numeric: tabular-nums; }
.rd-b i { font-style: normal; }
.rd-b b { font-size: 18px; font-weight: 700; }
.rd-b--on { min-width: 76px; background: var(--accent-soft); color: var(--accent); border-bottom-color: var(--accent); animation: rdbon 320ms ease-out; }
.rd-b--ok { min-width: 0; color: var(--ok); border-bottom-color: var(--ok); }
.rd-b--bad { min-width: 0; color: var(--bad); border-bottom-color: var(--bad); border-bottom-style: dashed; }
.rd-b--sel { min-width: 0; color: var(--accent); border-bottom-color: var(--accent); }
.rd-b--given { min-width: 0; color: var(--muted); border-bottom: 2.5px dotted var(--line); }
.rd-b--given b { font-weight: 600; }
.rd-b--pop { animation: rdbpop 320ms cubic-bezier(.2, .9, .3, 1.3); }
@keyframes rdbon { from { transform: scale(.9); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes rdbpop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.rd-full { margin: 2px 0 16px; font-size: 16.5px; line-height: 1.7; }
.rd-full .rd-b b { font-size: 16.5px; }
.rd-tr { font-size: 16px; line-height: 1.5; padding-bottom: 14px; }

/* gloss: altı noktalı kelime, dokununca Türkçesi */
.gl { text-decoration: underline dotted var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; border-radius: 5px; transition: background-color 120ms ease; }
.gl--on { background: var(--accent-soft); }
.gl:focus-visible { outline-offset: 1px; }
.gl-pop { position: absolute; z-index: 5; width: max-content; max-width: min(270px, 100%); display: flex; flex-direction: column; gap: 1px; padding: 8px 13px 9px; border-radius: 13px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-size: 16px; line-height: 1.35; pointer-events: none; animation: rdglin 160ms ease-out; }
.gl-pop b { font-size: 13px; font-weight: 700; opacity: .72; }
.gl-pop span { font-weight: 650; }
.gl-pop::before { content: ""; position: absolute; left: var(--ax, 50%); top: -5px; width: 12px; height: 12px; margin-left: -6px; background: inherit; border-radius: 2px; transform: rotate(45deg); }
.gl-pop--up::before { top: auto; bottom: -5px; }
@keyframes rdglin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* okuma sorusu: şıklar başparmağa yakın (altta) */
.rd-q { min-height: 100%; display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.rd-qno { font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rd-qno span { text-transform: none; letter-spacing: 0; font-weight: 600; }
.rd-stem { font-size: 19px; line-height: 1.45; font-weight: 640; }
.rd-q .rd-opts { margin-top: auto; padding-top: 8px; }
.rd-q .opt { min-height: 58px; font-size: 16.5px; line-height: 1.35; }
.sheet .rd-stem { font-size: 16px; line-height: 1.45; font-weight: 600; color: var(--muted); }
.rd-gap { color: var(--muted); font-weight: 700; font-size: .85em; }
.rd-letter { color: var(--ok); font-weight: 800; margin-right: 6px; }

/* sonuç */
.rd-badge--low { background: var(--accent-soft); color: var(--accent); }
.rd-sub { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text); padding: 6px 0 2px; }
.rd-kinds { padding-bottom: 8px; }
.rd-kind { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rd-kind:last-child { border-bottom: 0; }
.rd-kind-l { font-size: 15.5px; font-weight: 620; }
.rd-kind b { font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rd-kind .mbar { grid-column: 1 / -1; margin-top: 0; }
.mist-t s { color: var(--bad); text-decoration-thickness: 2px; }
.mist-t i { color: var(--muted); font-style: normal; }

/* ---------- deneme ---------- */
.rd-timer { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 14px; background: var(--surface-2); font-size: 17px; font-weight: 780; font-variant-numeric: tabular-nums; }
.rd-timer svg { width: 20px; height: 20px; color: var(--muted); }
.rd-timer--warn { background: var(--warn-soft); color: var(--warn); }
.rd-timer--warn svg { color: var(--warn); }
.rd-timer--over { background: var(--bad-soft); color: var(--bad); }
.rd-timer--over svg { color: var(--bad); }
.rd-mapbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border-radius: 14px; background: var(--surface-2); font-size: 15px; font-weight: 760; font-variant-numeric: tabular-nums; flex: none; }
.rd-mapbtn svg { color: var(--accent); }
.rd-mapbtn:active { background: var(--line); }
.rd-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; margin-top: 10px; }
.rd-dock > .rd-nav:first-child { margin-top: 0; }
.rd-nav--2 { grid-template-columns: 1fr 1fr; }
.rd-navb { min-height: 56px; min-width: 64px; gap: 6px; border-radius: 18px; font-size: 16.5px; }
.rd-navb svg { width: 22px; height: 22px; }
.rd-navmid svg { width: 20px; height: 20px; }
.rd--mock[data-step="c"] .rd-opts .opt { min-height: 48px; }
.rd-map-h { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.rd-map-h span { text-transform: none; letter-spacing: 0; font-weight: 600; }
.rd-map { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.rd-cell { height: 46px; border-radius: 13px; background: var(--surface-2); color: var(--muted); font-size: 15.5px; font-weight: 760; font-variant-numeric: tabular-nums; }
.rd-cell--done { background: var(--accent-soft); color: var(--accent); }
.rd-cell--cur { box-shadow: inset 0 0 0 2.5px var(--accent); color: var(--text); }
.rd-map-n { color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; padding: 2px 0 4px; }

/* alt panel: iki düğme yan yana; uzun panel */
.sheet-foot--2 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
.sheet--tall { height: 88vh; height: 88dvh; max-height: 88dvh; }

@media (max-height: 700px) {
  .rd-opts .opt { min-height: 46px; font-size: 16px; }
  .rd-text { font-size: 17px; }
  .rd-mode { min-height: 72px; }
}
