:root {
  --navy: #13324b;
  --navy-2: #1d4665;
  --teal: #19a88b;
  --teal-dark: #07806b;
  --cream: #fffaf0;
  --paper: #ffffff;
  --ink: #183246;
  --muted: #667a88;
  --line: #dfe9ed;
  --orange: #ff9f43;
  --red: #e64855;
  --blue: #2772e8;
  --green: #239b62;
  --purple: #8757c7;
  --yellow: #d69b00;
  --shadow: 0 24px 70px rgba(19, 50, 75, .13);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(25, 168, 139, .12) 0 110px, transparent 112px),
    radial-gradient(circle at 88% 78%, rgba(255, 159, 67, .12) 0 150px, transparent 152px),
    var(--cream);
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; }
button { -webkit-user-select: none; user-select: none; }

.app-shell { width: min(1180px, 100%); min-height: 100vh; margin: 0 auto; padding: 22px clamp(18px, 4vw, 48px) 18px; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0; border: 0; background: transparent; color: var(--navy); text-align: left; cursor: pointer; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: var(--teal-dark); background: #dff6ee; }
.brand-mark svg { width: 38px; height: 38px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.08rem; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.top-actions { display: flex; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; color: var(--navy); background: rgba(255,255,255,.82); cursor: pointer; transition: transform .18s ease, background .18s ease; }
.icon-button:hover { transform: translateY(-2px); background: #fff; }
.icon-button svg { width: 21px; fill: currentColor; }
.sound-off { display: none; }
.is-muted .sound-on { display: none; }
.is-muted .sound-off { display: block; }

main { flex: 1; display: grid; }
.screen { display: none; animation: screen-in .42s cubic-bezier(.2,.8,.2,1); }
.screen.is-active { display: block; }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.welcome-screen { padding: clamp(34px, 7vh, 76px) 0 36px; }
.welcome-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.eyebrow, .section-kicker { color: var(--teal-dark); font-size: .75rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid #b7e6d9; border-radius: 999px; background: rgba(255,255,255,.68); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(25,168,139,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(25,168,139,0); } 100% { box-shadow: 0 0 0 0 rgba(25,168,139,0); } }
h1 { max-width: 720px; margin: 20px 0 14px; color: var(--navy); font-size: clamp(3rem, 7vw, 5.9rem); line-height: .96; letter-spacing: -.065em; }
h1 span { color: var(--teal-dark); }
.lead { max-width: 560px; margin: 0 0 30px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.6; }

.demo-card { max-width: 540px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; border: 1px solid rgba(19,50,75,.09); border-radius: var(--radius-lg); background: rgba(255,255,255,.78); box-shadow: 0 12px 30px rgba(19,50,75,.06); }
.demo-card > div:first-child { display: grid; gap: 3px; }
.demo-label { color: var(--muted); font-size: .62rem; font-weight: 900; letter-spacing: .14em; }
.demo-word { color: var(--orange); font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: .04em; }
.demo-arrow { width: 50px; color: #a1b1bb; flex: 0 0 auto; }
.demo-answer { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border: 2px solid rgba(255,159,67,.25); border-radius: 12px; color: #8a4a05; background: #fff3e3; font-size: .84rem; font-weight: 900; }
.demo-answer span { width: 13px; height: 13px; border-radius: 50%; background: var(--orange); }
.how-to { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 26px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.how-to div { display: flex; align-items: center; gap: 8px; }
.how-to b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: var(--teal-dark); background: #dff6ee; }

.setup-card { padding: clamp(24px, 4vw, 34px); border: 1px solid rgba(19,50,75,.08); border-radius: var(--radius-xl); background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.setup-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 21px; }
.setup-heading h2 { margin: 4px 0 0; color: var(--navy); font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.03em; }
.best-pill { padding: 7px 10px; border-radius: 999px; color: #775319; background: #fff3cf; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.name-field { display: grid; gap: 8px; margin-bottom: 16px; color: var(--navy); font-size: .82rem; font-weight: 850; }
.name-field small { color: var(--muted); font-weight: 650; }
.name-field input, .teacher-settings select { width: 100%; border: 1.5px solid var(--line); border-radius: 13px; background: #fbfdfe; color: var(--ink); outline: none; }
.name-field input { height: 48px; padding: 0 14px; }
.name-field input:focus, .teacher-settings select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(25,168,139,.1); }
.level-list { display: grid; gap: 10px; }
.level-card { position: relative; display: grid; grid-template-columns: 42px 1fr auto 18px; align-items: center; gap: 12px; min-height: 69px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: border .18s ease, background .18s ease, transform .18s ease; }
.level-card:hover { transform: translateY(-1px); border-color: #afcbd0; }
.level-card.is-selected { border-color: var(--teal); background: #f1fbf8; box-shadow: 0 0 0 3px rgba(25,168,139,.09); }
.level-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; font-size: 1.2rem; }
.level-icon.easy { color: #128770; background: #dff6ee; }
.level-icon.medium { color: #c76d15; background: #fff0de; }
.level-icon.hard { color: #cf4050; background: #ffe8ea; }
.level-icon.expert { color: #7650b0; background: #f0e8fb; }
.level-copy strong, .level-copy small { display: block; }
.level-copy strong { color: var(--navy); font-size: .97rem; }
.level-copy small { margin-top: 3px; color: var(--muted); font-size: .72rem; font-weight: 650; }
.level-count { padding-right: 3px; color: var(--navy-2); font-size: .77rem; font-weight: 900; line-height: .95; text-align: center; }
.level-count small { color: var(--muted); font-size: .56rem; text-transform: uppercase; }
.radio-mark { width: 17px; height: 17px; border: 2px solid #b7c9d0; border-radius: 50%; }
.is-selected .radio-mark { border: 5px solid var(--teal); }
.primary-button, .secondary-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; border-radius: 14px; font-weight: 900; cursor: pointer; transition: transform .15s ease, filter .15s ease, box-shadow .15s ease; }
.primary-button { width: 100%; margin-top: 18px; border: 0; color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); box-shadow: 0 12px 24px rgba(7,128,107,.2); }
.primary-button:hover { transform: translateY(-2px); filter: saturate(1.12); }
.primary-button:active, .secondary-button:active, .danger-button:active { transform: translateY(1px) scale(.99); }
.primary-button svg { width: 20px; }
.teacher-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding: 8px 2px 0; border: 0; color: var(--muted); background: transparent; font-size: .75rem; font-weight: 800; cursor: pointer; }
.teacher-toggle svg { width: 18px; transition: transform .2s ease; }
.teacher-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.teacher-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 14px; background: #f4f8fa; }
.teacher-settings[hidden] { display: none; }
.teacher-settings label { display: grid; gap: 6px; color: var(--muted); font-size: .68rem; font-weight: 800; }
.teacher-settings select { height: 40px; padding: 0 9px; font-size: .73rem; }

.game-screen { width: min(760px, 100%); margin: 0 auto; padding: 28px 0 36px; }
.game-top { display: grid; grid-template-columns: 44px 1fr 82px; align-items: center; gap: 16px; }
.quit-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--navy); background: #fff; cursor: pointer; }
.quit-button svg { width: 22px; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: .74rem; font-weight: 850; }
.progress-copy span:first-child { color: var(--navy); }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #dfe8eb; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #62cfae); transition: width .35s ease; }
.score-box { padding: 7px 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-align: center; }
.score-box span, .score-box strong { display: block; }
.score-box span { color: var(--muted); font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.score-box strong { margin-top: 1px; color: var(--navy); font-size: 1.02rem; }
.instruction-pill { width: fit-content; margin: 24px auto 15px; padding: 8px 14px; border-radius: 999px; color: var(--navy-2); background: #eaf3f6; font-size: .82rem; font-weight: 750; }
.instruction-pill span { color: var(--teal-dark); font-size: 1rem; }
.play-card { position: relative; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 52px 28px 35px; overflow: hidden; border: 1px solid rgba(19,50,75,.08); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow); }
.play-card::before, .play-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; filter: blur(1px); opacity: .42; }
.play-card::before { top: -125px; left: -70px; background: #dff6ee; }
.play-card::after { right: -80px; bottom: -135px; background: #fff0de; }
.timer-ring { position: absolute; top: 17px; left: 18px; width: 47px; height: 47px; }
.timer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 4; }
.timer-bg { stroke: #e6eef1; }
.timer-value { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 0; transition: stroke .2s ease; }
.timer-ring b { position: absolute; inset: 0; display: grid; place-items: center; color: var(--navy); font-size: .83rem; }
.timer-ring.is-urgent .timer-value { stroke: var(--red); }
.timer-ring.is-urgent b { color: var(--red); }
.streak-badge { position: absolute; top: 20px; right: 20px; padding: 6px 9px; border-radius: 10px; color: #91530f; background: #fff3df; font-size: .78rem; font-weight: 800; transform: scale(.95); transition: transform .2s ease; }
.streak-badge.is-hot { transform: scale(1.08); }
.word-kicker { position: relative; z-index: 1; margin-bottom: 14px; color: #8799a5; font-size: .65rem; font-weight: 900; letter-spacing: .14em; }
.target-word { position: relative; z-index: 1; max-width: 100%; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 11vw, 7rem); font-weight: 900; line-height: 1; letter-spacing: .035em; text-align: center; text-transform: uppercase; text-shadow: 0 3px 0 rgba(0,0,0,.035); }
.target-word.is-long { font-size: clamp(2.8rem, 9vw, 5.6rem); }
.target-word.is-changing { animation: word-pop .3s cubic-bezier(.2,.8,.2,1); }
@keyframes word-pop { 0% { opacity: 0; transform: scale(.78); } 70% { transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
.focus-line { position: relative; z-index: 1; width: min(330px, 80%); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 24px; color: #9babb5; font-size: .62rem; letter-spacing: .1em; }
.focus-line span { height: 1px; background: #dbe5e9; }
.feedback { position: absolute; bottom: 14px; z-index: 3; min-height: 24px; color: var(--teal-dark); font-size: .85rem; font-weight: 900; }
.feedback.is-wrong { color: var(--red); }
.play-card.flash-correct { animation: correct-flash .42s ease; }
.play-card.flash-wrong { animation: wrong-shake .38s ease; }
@keyframes correct-flash { 50% { box-shadow: 0 0 0 7px rgba(25,168,139,.2), var(--shadow); } }
@keyframes wrong-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.answers { display: grid; grid-template-columns: repeat(var(--answer-columns, 3), 1fr); gap: 11px; margin-top: 15px; }
.answer-button { position: relative; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; border: 1.5px solid var(--line); border-radius: 16px; color: var(--navy); background: #fff; font-size: .82rem; font-weight: 900; letter-spacing: .025em; cursor: pointer; box-shadow: 0 5px 12px rgba(19,50,75,.045); transition: transform .13s ease, border-color .13s ease, background .13s ease; }
.answer-button:hover { transform: translateY(-2px); border-color: #aec5cc; }
.answer-button:active { transform: scale(.97); }
.answer-button:disabled { cursor: default; }
.answer-button .swatch { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; box-shadow: 0 0 0 1px rgba(19,50,75,.15); }
.answer-button .key { position: absolute; top: 5px; left: 7px; color: #a9b7be; font-size: .58rem; }
.answer-button.is-correct { border-color: var(--teal); background: #eaf9f4; }
.answer-button.is-wrong { border-color: var(--red); background: #fff0f1; }
.keyboard-note { margin: 12px 0 0; color: #91a1aa; font-size: .67rem; text-align: center; }

.result-screen { width: min(700px, 100%); margin: 0 auto; padding: 35px 0 42px; }
.result-card { position: relative; padding: clamp(26px, 5vw, 42px); overflow: hidden; border: 1px solid rgba(19,50,75,.08); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow); text-align: center; }
.result-celebration span { position: absolute; font-size: 1rem; opacity: .5; }
.result-celebration span:nth-child(1) { top: 42px; left: 12%; color: var(--orange); transform: rotate(18deg); }
.result-celebration span:nth-child(2) { top: 95px; left: 6%; color: var(--blue); }
.result-celebration span:nth-child(3) { top: 50px; right: 13%; color: var(--purple); transform: rotate(28deg); }
.result-celebration span:nth-child(4) { top: 110px; right: 6%; color: var(--teal); }
.result-celebration span:nth-child(5) { top: 28px; right: 27%; color: var(--red); }
.result-badge { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 21px; background: #fff1ce; font-size: 2rem; transform: rotate(-4deg); box-shadow: inset 0 0 0 1px #f5dda5; }
.result-card h2 { margin: 7px 0 7px; color: var(--navy); font-size: clamp(1.8rem, 5vw, 2.5rem); letter-spacing: -.04em; }
.result-card > p { margin: 0 auto; color: var(--muted); line-height: 1.5; }
.result-score-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px; width: min(480px, 100%); margin: 28px auto 22px; text-align: left; }
.accuracy-ring { --accuracy: 0deg; width: 140px; height: 140px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--teal) var(--accuracy), #e5eef0 0); position: relative; }
.accuracy-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.accuracy-ring > div { position: relative; z-index: 1; text-align: center; }
.accuracy-ring strong, .accuracy-ring span { display: block; }
.accuracy-ring strong { color: var(--navy); font-size: 1.75rem; }
.accuracy-ring span { margin-top: 1px; color: var(--muted); font-size: .68rem; font-weight: 800; }
.score-summary span, .score-summary strong, .score-summary small { display: block; }
.score-summary span { color: var(--muted); font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
.score-summary strong { margin: 4px 0; color: var(--navy); font-size: 2.8rem; line-height: 1; }
.score-summary small { color: var(--teal-dark); font-size: .76rem; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 22px 0; }
.metric { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 7px; border-radius: 14px; background: #f5f8fa; text-align: left; }
.metric > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; font-weight: 900; }
.metric.correct > span { color: var(--teal-dark); background: #dff6ee; }
.metric.wrong > span { color: var(--red); background: #ffe7e9; }
.metric.time > span { color: var(--blue); background: #e5efff; }
.metric.streak > span { color: #b96a12; background: #fff0df; }
.metric strong, .metric small { display: block; }
.metric strong { color: var(--navy); font-size: .92rem; }
.metric small { margin-top: 2px; color: var(--muted); font-size: .6rem; font-weight: 700; }
.teacher-note { display: flex; gap: 12px; padding: 15px 17px; border: 1px solid #cce9e1; border-radius: 16px; color: var(--navy); background: #f1faf7; text-align: left; }
.teacher-note-icon { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; background: var(--teal); font-family: Georgia, serif; font-weight: 900; }
.teacher-note strong { font-size: .8rem; }
.teacher-note p { margin: 4px 0 0; color: #55706e; font-size: .76rem; line-height: 1.45; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.result-actions .primary-button { margin: 0; }
.secondary-button { border: 1.5px solid var(--line); color: var(--navy); background: #fff; }
.secondary-button:hover { transform: translateY(-2px); border-color: #b6cbd1; }
.secondary-button svg { width: 18px; }

footer { padding: 14px 0 2px; color: #82939d; font-size: .7rem; text-align: center; }
footer span { color: var(--navy-2); font-weight: 900; }
.confirm-dialog { width: min(390px, calc(100% - 36px)); padding: 28px; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 30px 90px rgba(10,32,48,.32); text-align: center; }
.confirm-dialog::backdrop { background: rgba(9,29,43,.5); backdrop-filter: blur(3px); }
.dialog-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 15px; color: #97601b; background: #fff0d6; font-size: 1.4rem; font-weight: 900; }
.confirm-dialog h2 { margin: 0 0 7px; color: var(--navy); font-size: 1.25rem; }
.confirm-dialog p { margin: 0 0 20px; color: var(--muted); font-size: .83rem; }
.confirm-dialog > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.danger-button { border: 0; color: #fff; background: var(--red); }
.countdown { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(255,250,240,.92); backdrop-filter: blur(7px); }
.countdown[hidden] { display: none; }
.countdown span { width: 122px; height: 122px; display: grid; place-items: center; border-radius: 38px; color: #fff; background: var(--navy); font-size: 4.5rem; font-weight: 950; box-shadow: 0 24px 60px rgba(19,50,75,.25); animation: countdown-pop .75s ease both; }
@keyframes countdown-pop { 0% { opacity: 0; transform: scale(.45) rotate(-8deg); } 35% { opacity: 1; transform: scale(1.08) rotate(2deg); } 100% { transform: scale(1); } }
.confetti-layer { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
.confetti { position: absolute; top: -18px; width: 9px; height: 14px; border-radius: 3px; animation: confetti-fall 1.8s linear forwards; }
@keyframes confetti-fall { to { transform: translate3d(var(--drift), 105vh, 0) rotate(720deg); opacity: .1; } }

/* Dikkat oyunları merkezi */
.hub-screen { padding: clamp(32px, 6vh, 64px) 0 44px; }
.hub-hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 46px; min-height: 335px; }
.hub-hero h1 { margin-bottom: 17px; }
.focus-illustration { position: relative; width: min(360px, 100%); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.focus-illustration::before { content: ""; position: absolute; inset: 8%; border-radius: 34% 66% 48% 52% / 55% 42% 58% 45%; background: linear-gradient(145deg, #dff6ee, #fff0d8); transform: rotate(-7deg); }
.focus-eye { position: relative; z-index: 3; width: 184px; height: 112px; display: grid; place-items: center; overflow: hidden; border: 12px solid #fff; border-radius: 70% 30% 70% 30% / 65% 35% 65% 35%; background: var(--teal); transform: rotate(45deg); box-shadow: 0 22px 45px rgba(19,50,75,.14); }
.focus-eye span { width: 62px; height: 62px; border: 17px solid var(--navy); border-radius: 50%; background: #fff; transform: rotate(-45deg); box-shadow: 0 0 0 10px rgba(255,255,255,.22); }
.focus-illustration > b { position: absolute; z-index: 5; bottom: 14%; right: 3%; padding: 9px 13px; border-radius: 11px; color: #fff; background: var(--navy); font-size: .78rem; letter-spacing: .08em; transform: rotate(-5deg); box-shadow: 0 9px 22px rgba(19,50,75,.22); }
.focus-orbit { position: absolute; z-index: 2; inset: 0; border: 1px dashed rgba(19,50,75,.14); border-radius: 50%; animation: orbit-spin 24s linear infinite; }
.focus-orbit.orbit-two { inset: 17%; animation-direction: reverse; animation-duration: 18s; }
.focus-orbit i { position: absolute; display: block; width: 18px; height: 18px; border-radius: 6px; }
.focus-orbit i:nth-child(1) { top: 10%; left: 17%; background: var(--red); }
.focus-orbit i:nth-child(2) { top: 39%; right: -2%; border-radius: 50%; background: var(--blue); }
.focus-orbit i:nth-child(3) { bottom: 4%; left: 31%; background: var(--orange); transform: rotate(45deg); }
.orbit-two i:nth-child(1) { background: var(--purple); }
.orbit-two i:nth-child(2) { background: var(--yellow); }
.orbit-two i:nth-child(3) { background: var(--teal); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.activity-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 28px 0 17px; }
.activity-heading h2 { margin: 4px 0 0; color: var(--navy); font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -.035em; }
.activity-count { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.75); font-size: .7rem; font-weight: 850; white-space: nowrap; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.activity-card { position: relative; min-height: 190px; display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 18px; padding: 22px; overflow: hidden; border: 1px solid rgba(19,50,75,.09); border-radius: 22px; color: var(--ink); background: rgba(255,255,255,.95); box-shadow: 0 12px 30px rgba(19,50,75,.065); text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.activity-card:hover { transform: translateY(-4px); border-color: #b8d8d1; box-shadow: 0 18px 38px rgba(19,50,75,.11); }
.activity-card.featured { grid-column: 1 / -1; grid-template-columns: 190px 1fr; min-height: 206px; background: linear-gradient(120deg, #f4fcf9, #fff); }
.activity-number { position: absolute; top: 14px; right: 17px; color: #d6e0e4; font-size: .68rem; font-weight: 950; letter-spacing: .12em; }
.activity-art { position: relative; width: 128px; height: 128px; display: grid; place-items: center; border-radius: 30px; background: #eef8f5; }
.featured .activity-art { width: 180px; height: 148px; }
.activity-copy { min-width: 0; padding-right: 26px; }
.activity-copy small, .activity-copy strong, .activity-copy em { display: block; }
.activity-copy small { margin-bottom: 7px; color: var(--teal-dark); font-size: .61rem; font-style: normal; font-weight: 950; letter-spacing: .11em; }
.activity-copy strong { color: var(--navy); font-size: clamp(1.15rem, 2.2vw, 1.52rem); letter-spacing: -.025em; }
.activity-copy em { margin-top: 7px; color: var(--muted); font-size: .76rem; font-style: normal; font-weight: 650; line-height: 1.45; }
.activity-arrow { position: absolute; right: 18px; bottom: 20px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: var(--teal-dark); background: #dff6ee; font-weight: 900; }
.activity-best { position: absolute; left: 22px; bottom: 12px; color: #84969f; font-size: .58rem; font-weight: 800; }
.activity-art.color-art { background: #fff3e6; }
.color-art b { color: var(--orange); font-family: Georgia, serif; font-size: 2.5rem; letter-spacing: .04em; }
.color-art i { position: absolute; width: 14px; height: 14px; border-radius: 50%; }
.color-art i:nth-of-type(1) { top: 18px; right: 21px; background: var(--blue); }
.color-art i:nth-of-type(2) { bottom: 20px; left: 24px; background: var(--red); }
.color-art i:nth-of-type(3) { bottom: 15px; right: 28px; background: var(--teal); }
.odd-art { grid-template-columns: repeat(3, 25px); align-content: center; gap: 7px; color: var(--teal); font-size: 1.25rem; }
.odd-art i { display: grid; place-items: center; width: 25px; height: 25px; font-style: normal; }
.odd-art i:nth-child(4) { color: var(--orange); transform: rotate(45deg); }
.scan-art { grid-template-columns: repeat(3, 24px); align-content: center; gap: 5px; color: #9eb0b9; font-size: 1rem; }
.scan-art i { display: grid; place-items: center; font-style: normal; }
.scan-art i:nth-child(5) { color: var(--red); transform: scale(1.25); }
.memory-art { grid-template-columns: repeat(2, 31px); align-content: center; gap: 8px; }
.memory-art i { width: 31px; height: 31px; border-radius: 11px; box-shadow: inset 0 0 0 4px rgba(255,255,255,.55); }
.memory-art i:nth-child(1) { background: var(--red); }.memory-art i:nth-child(2) { background: var(--blue); }.memory-art i:nth-child(3) { background: var(--yellow); }.memory-art i:nth-child(4) { background: var(--teal); }
.direction-art b { position: absolute; top: 22px; color: var(--red); font-size: .72rem; letter-spacing: .14em; }
.direction-art i { color: var(--navy); font-size: 3.8rem; font-style: normal; transform: rotate(180deg); }
.text-back-button { margin: 0 0 20px; padding: 8px 2px; border: 0; color: var(--teal-dark); background: transparent; font-size: .78rem; font-weight: 900; cursor: pointer; }

/* Her etkinlik için dört aşamalı seviye seçimi */
.mini-level-screen { padding: clamp(30px, 6vh, 62px) 0 44px; }
.mini-level-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(34px, 7vw, 82px); }
.mini-level-intro { text-align: left; }
.mini-level-hero-icon { width: 86px; height: 86px; display: grid; place-items: center; margin-bottom: 23px; border-radius: 27px; color: var(--teal-dark); background: #dff6ee; font-size: 2.8rem; font-weight: 950; box-shadow: 0 14px 32px rgba(19,50,75,.1); transform: rotate(-4deg); }
.mini-level-intro h1 { margin: 9px 0 14px; font-size: clamp(2.65rem, 6vw, 5rem); }
.mini-level-intro > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.6; }
.level-path { max-width: 340px; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 8px; margin-top: 30px; }
.level-path span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: var(--teal-dark); background: #dff6ee; font-size: .74rem; font-weight: 950; }
.level-path span:last-child { color: #fff; background: var(--purple); }
.level-path i { height: 2px; background: linear-gradient(90deg, #9bdac8, #d8c6ef); }
.mini-level-card-wrap { max-width: 540px; width: 100%; }
.mini-level-best { min-width: 54px; color: var(--muted); font-size: .61rem; font-weight: 900; text-align: right; }
.mini-level-best.has-score { color: var(--teal-dark); }

/* Ortak mini oyun alanı */
.mini-game-screen { width: min(820px, 100%); margin: 0 auto; padding: 28px 0 42px; }
.mini-game-top { display: grid; grid-template-columns: 44px 1fr 82px; align-items: center; gap: 16px; }
.mini-instruction { position: relative; display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; padding: 13px 16px 17px; overflow: hidden; border: 1px solid rgba(19,50,75,.07); border-radius: 17px; background: rgba(255,255,255,.82); }
.mini-icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--teal-dark); background: #dff6ee; font-size: 1.25rem; font-weight: 950; }
.mini-instruction small, .mini-instruction strong { display: block; }
.mini-instruction small { color: var(--muted); font-size: .58rem; font-weight: 900; letter-spacing: .12em; }
.mini-instruction strong { margin-top: 2px; color: var(--navy); font-size: 1.03rem; }
.mini-timer { position: absolute; inset: auto 0 0; height: 5px; background: #e5ecef; }
.mini-timer span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--teal), #61d0ae); transform-origin: left; }
.mini-timer.is-urgent span { background: var(--red); }
.mini-stage { position: relative; min-height: 410px; display: grid; place-items: center; padding: clamp(18px, 4vw, 34px); overflow: hidden; border: 1px solid rgba(19,50,75,.08); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.mini-stage::before { content: ""; position: absolute; width: 210px; height: 210px; top: -160px; right: -70px; border-radius: 50%; background: #e9f7f3; }
.mini-feedback { min-height: 28px; padding: 10px 0 0; color: var(--teal-dark); font-size: .85rem; font-weight: 900; text-align: center; }
.mini-feedback.is-wrong { color: var(--red); }
.search-grid { position: relative; z-index: 2; width: min(520px, 100%); display: grid; grid-template-columns: repeat(var(--grid-size, 4), 1fr); gap: clamp(7px, 1.5vw, 12px); }
.search-cell { aspect-ratio: 1; display: grid; place-items: center; min-width: 0; padding: 0; border: 1.5px solid #dfe8eb; border-radius: clamp(10px, 2vw, 16px); color: var(--navy); background: #fbfdfe; font-family: Georgia, serif; font-size: clamp(1.35rem, 5vw, 2.35rem); font-weight: 900; cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.search-cell:hover { transform: scale(1.055); border-color: var(--teal); background: #f1fbf8; }
.search-cell:disabled { cursor: default; }
.search-cell.is-correct { border-color: var(--teal); color: var(--teal-dark); background: #e4f8f1; animation: correct-cell .4s ease; }
.search-cell.is-wrong { border-color: var(--red); background: #fff0f1; }
@keyframes correct-cell { 50% { transform: scale(1.15) rotate(4deg); } }
.target-search-wrap { position: relative; z-index: 2; width: 100%; display: grid; gap: 20px; justify-items: center; }
.target-display { display: flex; align-items: center; gap: 12px; padding: 10px 17px; border: 1px solid #dfe8eb; border-radius: 15px; color: var(--muted); background: #f7fafb; font-size: .72rem; font-weight: 850; }
.target-display b { color: var(--navy); font-family: Georgia, serif; font-size: 2rem; }
.scan-grid { width: min(610px, 100%); grid-template-columns: repeat(var(--scan-columns, 6), 1fr); }
.scan-grid .search-cell { font-family: inherit; }
.direction-wrap { position: relative; z-index: 2; width: min(560px, 100%); display: grid; justify-items: center; }
.direction-clash { position: relative; width: 230px; height: 190px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 42px; background: linear-gradient(145deg, #f0f8f6, #fff6e8); }
.direction-clash .distractor { position: absolute; top: 20px; color: var(--red); font-size: .82rem; font-weight: 950; letter-spacing: .18em; }
.direction-clash .big-arrow { color: var(--navy); font-size: 6.5rem; line-height: 1; filter: drop-shadow(0 8px 10px rgba(19,50,75,.12)); }
.direction-answers { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.direction-button { min-height: 56px; border: 1.5px solid var(--line); border-radius: 14px; color: var(--navy); background: #fff; font-size: .76rem; font-weight: 900; cursor: pointer; }
.direction-button:hover { border-color: var(--teal); background: #f0faf7; }
.direction-button.is-correct { border-color: var(--teal); background: #e4f8f1; }
.direction-button.is-wrong { border-color: var(--red); background: #fff0f1; }
.memory-wrap { position: relative; z-index: 2; width: min(560px, 100%); display: grid; justify-items: center; gap: 25px; }
.memory-status { color: var(--muted); font-size: .75rem; font-weight: 850; text-align: center; }
.memory-status strong { display: block; margin-top: 4px; color: var(--navy); font-size: 1.1rem; }
.memory-showcase { width: 154px; height: 154px; display: grid; place-items: center; border-radius: 42px; background: #f1f6f7; box-shadow: inset 0 0 0 1px #e1e9ec; }
.memory-pulse { width: 98px; height: 98px; border-radius: 31px; background: #dce7ea; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.memory-pulse.is-lit { transform: scale(1.13); box-shadow: 0 15px 30px rgba(19,50,75,.2); }
.memory-input { width: 100%; display: grid; grid-template-columns: repeat(var(--memory-columns, 4), 1fr); gap: 9px; }
.memory-color { min-height: 64px; border: 5px solid rgba(255,255,255,.75); border-radius: 17px; box-shadow: 0 0 0 1px rgba(19,50,75,.13); cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.memory-color:hover { transform: translateY(-2px); filter: saturate(1.16); }
.memory-color:active { transform: scale(.95); }
.memory-color.is-correct { outline: 5px solid #9be0ca; outline-offset: 2px; }
.memory-color.is-wrong { outline: 5px solid #ffb5bc; outline-offset: 2px; }
.memory-progress-dots { display: flex; gap: 6px; }
.memory-progress-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d9e4e8; }
.memory-progress-dots i.done { background: var(--teal); }
.memory-progress-dots i.current { box-shadow: 0 0 0 4px rgba(25,168,139,.15); }
.mini-result-screen { width: min(680px, 100%); margin: 0 auto; padding: 38px 0 44px; }
.mini-result-score { margin: 27px auto 20px; padding: 20px; border-radius: 18px; background: #f4f9f7; }
.mini-result-score span, .mini-result-score strong, .mini-result-score small { display: block; }
.mini-result-score span { color: var(--muted); font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.mini-result-score strong { margin: 3px 0; color: var(--navy); font-size: 3rem; line-height: 1; }
.mini-result-score small { color: var(--teal-dark); font-size: .72rem; font-weight: 850; }

@media (max-width: 820px) {
  .hub-hero { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .hub-hero .lead { margin-left: auto; margin-right: auto; }
  .focus-illustration { width: 270px; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity-card.featured { grid-column: auto; grid-template-columns: 128px 1fr; min-height: 190px; }
  .featured .activity-art { width: 128px; height: 128px; }
  .mini-level-layout { grid-template-columns: 1fr; gap: 28px; }
  .mini-level-intro { text-align: center; }
  .mini-level-hero-icon { margin-left: auto; margin-right: auto; }
  .mini-level-intro > p, .level-path { margin-left: auto; margin-right: auto; }
  .mini-level-card-wrap { margin: 0 auto; }
}

@media (max-width: 560px) {
  .hub-screen { padding-top: 28px; }
  .focus-illustration { width: 235px; }
  .focus-eye { width: 145px; height: 90px; }
  .focus-eye span { width: 50px; height: 50px; border-width: 14px; }
  .activity-heading { align-items: center; }
  .activity-card, .activity-card.featured { grid-template-columns: 92px 1fr; min-height: 151px; gap: 13px; padding: 16px; border-radius: 19px; }
  .activity-art, .featured .activity-art { width: 92px; height: 104px; border-radius: 23px; }
  .activity-copy { padding-right: 10px; }
  .activity-copy strong { font-size: 1.04rem; }
  .activity-copy em { font-size: .68rem; }
  .activity-best { left: 17px; bottom: 7px; font-size: .52rem; }
  .activity-arrow { right: 12px; bottom: 12px; width: 27px; height: 27px; }
  .color-art b { font-size: 1.7rem; }
  .odd-art { grid-template-columns: repeat(3, 18px); gap: 4px; font-size: .92rem; }
  .odd-art i { width: 18px; height: 18px; }
  .scan-art { grid-template-columns: repeat(3, 17px); gap: 3px; font-size: .75rem; }
  .memory-art { grid-template-columns: repeat(2, 24px); gap: 6px; }
  .memory-art i { width: 24px; height: 24px; border-radius: 8px; }
  .direction-art i { font-size: 2.7rem; }
  .mini-game-screen { padding-top: 20px; }
  .mini-level-screen { padding-top: 24px; }
  .mini-level-hero-icon { width: 70px; height: 70px; border-radius: 22px; font-size: 2.2rem; }
  .mini-level-intro h1 { font-size: clamp(2.35rem, 13vw, 3.6rem); }
  .mini-game-top { grid-template-columns: 40px 1fr 72px; gap: 9px; }
  .mini-stage { min-height: 385px; padding: 16px 12px; border-radius: 22px; }
  .scan-grid { gap: 6px; }
  .scan-grid .search-cell { font-size: 1.28rem; }
  .direction-answers { grid-template-columns: repeat(2, 1fr); }
  .memory-input { grid-template-columns: repeat(2, 1fr); }
  .mini-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .app-shell { padding-top: 14px; }
  .welcome-screen { padding-top: 28px; }
  .welcome-grid { grid-template-columns: 1fr; gap: 30px; }
  .intro-panel { text-align: center; }
  h1 { margin-left: auto; margin-right: auto; }
  .lead, .demo-card { margin-left: auto; margin-right: auto; }
  .how-to { justify-content: center; }
  .setup-card { width: min(540px, 100%); margin: 0 auto; }
}

@media (max-width: 560px) {
  .app-shell { padding: 11px 14px 12px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 13px; }
  .brand-mark svg { width: 33px; }
  .brand strong { font-size: .95rem; }
  .brand small { font-size: .62rem; }
  .icon-button { width: 40px; height: 40px; border-radius: 12px; }
  .top-actions { gap: 6px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .lead { font-size: .97rem; }
  .demo-card { padding: 15px; gap: 10px; }
  .demo-arrow { width: 34px; }
  .demo-answer { padding: 9px; font-size: .7rem; }
  .how-to { display: grid; justify-content: start; width: fit-content; margin-left: auto; margin-right: auto; text-align: left; }
  .setup-card { padding: 22px 17px; border-radius: 23px; }
  .level-card { grid-template-columns: 39px 1fr auto 16px; gap: 9px; padding: 10px; }
  .level-count { font-size: .7rem; }
  .teacher-settings { grid-template-columns: 1fr; }
  .game-screen { padding-top: 20px; }
  .game-top { grid-template-columns: 40px 1fr 72px; gap: 9px; }
  .quit-button { width: 40px; height: 40px; }
  .score-box { padding-left: 6px; padding-right: 6px; }
  .play-card { min-height: 278px; padding-left: 14px; padding-right: 14px; border-radius: 23px; }
  .target-word { font-size: clamp(3.1rem, 17vw, 5.5rem); }
  .target-word.is-long { font-size: clamp(2.45rem, 13vw, 4.2rem); letter-spacing: .015em; }
  .answers { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .answer-button { min-height: 58px; border-radius: 14px; font-size: .78rem; }
  .result-card { border-radius: 23px; }
  .result-score-row { grid-template-columns: 125px 1fr; gap: 16px; }
  .accuracy-ring { width: 120px; height: 120px; }
  .score-summary strong { font-size: 2.35rem; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .result-actions { grid-template-columns: 1fr; }
  footer { font-size: .62rem; }
}

@media (max-width: 380px) {
  .brand small { display: none; }
  .level-copy small { font-size: .65rem; }
  .level-count { display: none; }
  .level-card { grid-template-columns: 39px 1fr 16px; }
  .instruction-pill { font-size: .75rem; }
  .target-word { font-size: 2.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  body { background: #fff; }
  .topbar, footer, .welcome-screen, .game-screen, .result-actions, .result-celebration { display: none !important; }
  .app-shell { width: 100%; padding: 0; }
  .result-screen, .result-screen.is-active { display: block !important; padding: 0; }
  .result-card { border: 0; box-shadow: none; }
  .teacher-note { break-inside: avoid; }
}
