@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2-variations"), url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2-variations"), url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --night: #141a3d;
  --velvet: #3b2f6e;
  --moon: #fff0c7;
  --gold: #ffc94d;
  --gold-deep: #d99a22;
  --qaraca: #4a4068;
  --ink: #1a1433;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--night);
  color: var(--moon);
  font-family: "Nunito", ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body { height: 100dvh; }

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

[hidden] { display: none !important; }

/* ---------- ekranlar ---------- */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--safe-t) + 6vh) calc(var(--safe-r) + 20px) calc(var(--safe-b) + 3.5vh) calc(var(--safe-l) + 20px);
  pointer-events: none;
}
.screen > * { pointer-events: auto; }

.screen-title {
  justify-content: space-between;
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.screen-title.is-leaving { opacity: 0; transform: translateY(-3vh); pointer-events: none; }
.screen-title.is-leaving > * { pointer-events: none; }
.is-loading .screen-title { opacity: 0; }

.opener {
  margin: 0 0 .35em;
  font-size: clamp(15px, 4.2vw, 20px);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--moon);
  opacity: .78;
}

.title { margin: 0; line-height: 1; }
.title-name {
  display: block;
  font-size: clamp(68px, min(23vw, 17vh), 150px);
  font-weight: 1000;
  letter-spacing: -.035em;
  line-height: .92;
  color: var(--moon);
  text-shadow:
    0 .045em 0 #6b4fb8,
    0 .09em 0 #2a2155,
    0 0 .45em rgba(255, 201, 77, .38);
}
.title-sub {
  display: block;
  margin-top: .38em;
  font-size: clamp(22px, min(6.6vw, 5vh), 42px);
  font-weight: 900;
  letter-spacing: -.005em;
  color: var(--gold);
  text-shadow: 0 2px 0 #2a2155, 0 0 18px rgba(20, 26, 61, .7);
}

.title-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ---------- düymələr ---------- */
.btn {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}
.btn:focus-visible, .icon-btn:focus-visible, .storybox:focus-visible {
  outline: 3px solid var(--moon);
  outline-offset: 4px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-width: 200px;
  justify-content: center;
  padding: .55em 1.5em .6em 1.25em;
  font-size: 27px;
  font-weight: 1000;
  letter-spacing: -.01em;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe08a 0%, var(--gold) 55%, #f5b73a 100%);
  box-shadow: 0 6px 0 var(--gold-deep), 0 10px 26px rgba(10, 8, 30, .45), 0 0 38px rgba(255, 201, 77, .42);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--gold-deep), 0 4px 12px rgba(10, 8, 30, .4), 0 0 30px rgba(255, 201, 77, .35); }
.btn-star { width: .9em; height: .9em; fill: var(--ink); flex: none; }

.btn-ghost {
  padding: .5em 1.3em;
  font-size: 17px;
  font-weight: 800;
  color: var(--moon);
  background: rgba(20, 26, 61, .45);
  box-shadow: inset 0 0 0 2px rgba(255, 240, 199, .42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-ghost:active { transform: scale(.97); }

.hint {
  margin: 0;
  min-height: 1.4em;
  font-size: 16px;
  font-weight: 700;
  color: var(--moon);
  opacity: 0;
  transition: opacity .6s ease;
  text-shadow: 0 1px 8px rgba(20, 26, 61, .9);
}
.hint.is-on { opacity: .92; }
.is-nudging .btn-primary { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

.brand {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--moon);
  opacity: .5;
}

.icon-btn {
  position: fixed;
  top: calc(var(--safe-t) + 14px);
  right: calc(var(--safe-r) + 14px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--moon);
  background: rgba(20, 26, 61, .5);
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 199, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  touch-action: manipulation;
  z-index: 5;
}
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.icon-btn .wave { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn .ico-off { display: none; }
.icon-btn[aria-pressed="true"] .ico-on { display: none; }
.icon-btn[aria-pressed="true"] .ico-off { display: block; }
.is-loading .icon-btn { opacity: 0; }

/* ---------- fəsil kartı ---------- */
.screen-chapter {
  justify-content: center;
  gap: .2em;
  opacity: 0;
  transition: opacity .8s ease;
}
.screen-chapter.is-on { opacity: 1; }
.chapter-num {
  margin: 0;
  font-size: clamp(17px, 4.6vw, 22px);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 2px 0 #2a2155;
}
.chapter-title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(40px, min(12vw, 9vh), 72px);
  font-weight: 1000;
  letter-spacing: -.025em;
  line-height: 1;
  color: var(--moon);
  text-shadow: 0 .06em 0 #2a2155, 0 0 .5em rgba(20, 26, 61, .8);
}

/* ---------- hekayə qutusu ---------- */
.storybox {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + 16px);
  width: min(560px, calc(100% - 24px - var(--safe-l) - var(--safe-r)));
  transform: translate(-50%, 12px);
  padding: 20px 22px 44px;
  border-radius: 24px;
  background: rgba(20, 26, 61, .82);
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 199, .2), 0 14px 40px rgba(8, 6, 24, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .5s ease, transform .5s ease;
  cursor: pointer;
  touch-action: manipulation;
}
.storybox.is-on { opacity: 1; transform: translate(-50%, 0); }
.story-text {
  margin: 0;
  min-height: 3em;
  font-size: clamp(19px, 5vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  white-space: pre-line;
  color: var(--moon);
  text-align: left;
}
.story-next {
  position: absolute;
  right: 20px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  opacity: 0;
  transition: opacity .3s ease;
}
.story-next svg { width: 14px; height: 14px; fill: var(--gold); }
.storybox.is-ready .story-next { opacity: .9; }
.storybox.is-nudging .story-next { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.noscript {
  position: fixed;
  inset: auto 20px 40px;
  text-align: center;
  font-size: 18px;
}

/* ---------- üfüqi və kiçik ekranlar ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  .screen { padding-top: calc(var(--safe-t) + 3.5vh); padding-bottom: calc(var(--safe-b) + 3vh); }
  .opener { font-size: 14px; margin-bottom: .2em; }
  .title-name { font-size: clamp(48px, 15vh, 80px); }
  .title-sub { font-size: clamp(18px, 5.4vh, 26px); margin-top: .3em; }
  .btn-primary { font-size: 22px; min-width: 170px; }
  .title-actions { gap: 8px; }
  .brand { display: none; }
  .storybox { padding: 14px 18px 36px; }
  .story-text { font-size: 18px; min-height: 2.6em; }
}

@media (prefers-reduced-motion: reduce) {
  .screen-title, .screen-chapter, .storybox, .hint, .btn-primary { transition-duration: .01s !important; }
  .is-nudging .btn-primary, .storybox.is-nudging .story-next { animation: none; }
}

/* ---------- WebGL yoxdursa ---------- */
.no-webgl { background: radial-gradient(120% 80% at 50% 110%, #6a4a86 0%, #35296a 45%, #0f1438 100%); }
.no-webgl #scene { display: none; }

/* ---------- paylaşım şəkli rejimi ---------- */
.og .title-actions, .og .icon-btn { display: none !important; }

/* ---------- üfüqi: mətn solda, dünya sağda ---------- */
.is-land .screen-title {
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 6vh;
  padding-left: calc(var(--safe-l) + 6vw);
}
.is-land .title-block { max-width: 46vw; }
.is-land .title-actions { align-items: flex-start; }
.is-land .title-name { font-size: clamp(64px, min(11.5vw, 21vh), 160px); }
.is-land .title-sub { font-size: clamp(22px, min(3.3vw, 5.8vh), 44px); }
.is-land .hint { text-align: left; }
.is-land .brand {
  position: fixed;
  left: calc(var(--safe-l) + 6vw);
  bottom: calc(var(--safe-b) + 18px);
}
@media (orientation: landscape) and (max-height: 520px) {
  .is-land .screen-title { gap: 4vh; }
}

/* ================= oyun interfeysi ================= */
.screen-title, .screen-chapter { z-index: 2; }
.storybox { z-index: 6; }
.icon-btn { z-index: 8; }

.hud { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.hud > * { pointer-events: auto; }
.icon-btn-left { left: calc(var(--safe-l) + 14px); right: auto; }

.task {
  position: fixed;
  top: calc(var(--safe-t) + 18px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 150px);
  margin: 0;
  padding: 9px 18px 10px 14px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 4px 0 var(--gold-deep), 0 8px 22px rgba(8, 6, 24, .45);
  white-space: nowrap;
}
.task svg { width: 16px; height: 16px; flex: none; fill: var(--ink); }
.task.is-on { animation: taskIn .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes taskIn { from { transform: translate(-50%, -14px) scale(.8); opacity: 0; } to { transform: translate(-50%, 0) scale(1); opacity: 1; } }

.bubble {
  position: fixed;
  z-index: 5;
  top: calc(var(--safe-t) + 74px);
  left: 50%;
  width: max-content;
  max-width: min(420px, calc(100% - 32px));
  margin: 0;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  color: var(--moon);
  background: rgba(20, 26, 61, .86);
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 199, .22), 0 10px 28px rgba(8, 6, 24, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.bubble.is-on { opacity: 1; transform: translate(-50%, 0); }

.joy {
  position: fixed;
  z-index: 4;
  left: calc(var(--safe-l) + 22px);
  bottom: calc(var(--safe-b) + 26px);
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(20, 26, 61, .38);
  box-shadow: inset 0 0 0 2px rgba(255, 240, 199, .3);
  touch-action: none;
  display: grid;
  place-items: center;
}
.joy-knob {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 240, 199, .78);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
  pointer-events: none;
}

.count-btn {
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: calc(var(--safe-b) + 9vh);
  width: 170px;
  height: 170px;
  margin: 0 0 0 -85px;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 44px;
  font-weight: 1000;
  color: var(--ink);
  background: radial-gradient(circle at 40% 35%, #ffe7a3 0%, var(--gold) 60%, #f0ad2e 100%);
  box-shadow: 0 8px 0 var(--gold-deep), 0 0 60px rgba(255, 201, 77, .55);
  cursor: pointer;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.4, .4, 1);
  touch-action: manipulation;
}
.count-btn.is-on { opacity: 1; transform: scale(1); }
.count-btn:active { transform: scale(.95); }
.count-btn:focus-visible { outline: 3px solid var(--moon); outline-offset: 6px; }
.count-btn.is-nudging { animation: nudge 1.6s ease-in-out infinite; }

.screen-end {
  z-index: 7;
  justify-content: center;
  background: rgba(12, 14, 40, .55);
  opacity: 0;
  transition: opacity .6s ease;
}
.screen-end.is-on { opacity: 1; }
.end-card {
  width: min(420px, 100%);
  padding: 26px 24px 28px;
  border-radius: 28px;
  background: rgba(20, 26, 61, .92);
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 199, .22), 0 20px 50px rgba(6, 4, 20, .6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.end-stars { display: flex; gap: 6px; margin: 0; }
.end-star svg { width: 26px; height: 26px; fill: rgba(255, 240, 199, .18); display: block; }
.end-star.is-lit svg { fill: var(--gold); filter: drop-shadow(0 0 8px rgba(255, 201, 77, .7)); }
.end-title { margin: 4px 0 0; font-size: 34px; font-weight: 1000; letter-spacing: -.02em; line-height: 1.05; color: var(--moon); }
.end-card .btn { white-space: nowrap; font-size: 23px; max-width: 100%; }
.end-text { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.45; color: var(--moon); opacity: .88; max-width: 30ch; }

.fade {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: var(--night);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.fade.is-on { opacity: 1; pointer-events: auto; }

@media (orientation: landscape) and (max-height: 520px) {
  .task { top: calc(var(--safe-t) + 12px); font-size: 16px; padding: 7px 14px 8px 12px; }
  .bubble { top: calc(var(--safe-t) + 60px); font-size: 16px; }
  .count-btn { width: 130px; height: 130px; margin: 0 0 0 -65px; bottom: calc(var(--safe-b) + 6vh); font-size: 32px; }
  .joy { width: 100px; height: 100px; bottom: calc(var(--safe-b) + 16px); }
  .end-card { padding: 16px 20px 18px; gap: 8px; }
  .end-title { font-size: 26px; }
  .end-text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .task.is-on { animation: none; }
  .bubble, .count-btn, .screen-end, .fade { transition-duration: .01s !important; }
  .count-btn.is-nudging { animation: none; }
}
/* gizlənən elementlər toxunuşu udmasın */
.storybox:not(.is-on), .count-btn:not(.is-on), .screen-end:not(.is-on) { pointer-events: none; }
.screen-end:not(.is-on) > * { pointer-events: none; }

/* yaxınlaşdır / uzaqlaşdır */
.zoom-btns {
  position: fixed;
  right: calc(var(--safe-r) + 14px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}
.zoom-btns .icon-btn { position: static; }
@media (orientation: landscape) and (max-height: 520px) {
  .zoom-btns { gap: 8px; }
  .zoom-btns .icon-btn { width: 42px; height: 42px; }
}

/* ritm oyunu */
.rhythm {
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: calc(var(--safe-b) + 3vh);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .35s ease;
}
.rhythm.is-on { opacity: 1; }
.rhythm:not(.is-on) { pointer-events: none; }
.rhythm-cap {
  margin: 0;
  padding: 7px 16px 8px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  color: var(--moon);
  background: rgba(20, 26, 61, .82);
}
.rhythm-row { display: flex; gap: 14px; }
.rh-btn {
  width: 96px;
  height: 104px;
  border: 0;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  background: var(--moon);
  box-shadow: 0 6px 0 #c9b98f, 0 10px 24px rgba(8, 6, 24, .4);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.rh-btn svg { width: 46px; height: 46px; fill: var(--ink); stroke: var(--ink); }
.rh-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #c9b98f; }
.rh-btn.is-lit { background: var(--gold); transform: scale(1.1); box-shadow: 0 6px 0 var(--gold-deep), 0 0 36px rgba(255, 201, 77, .75); }
.rh-btn:disabled { cursor: default; opacity: .72; }
.rh-btn:disabled.is-lit { opacity: 1; }
.rh-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (orientation: landscape) and (max-height: 520px) {
  .rh-btn { width: 80px; height: 80px; font-size: 15px; }
  .rh-btn svg { width: 36px; height: 36px; }
  .rhythm-cap { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .rh-btn, .rhythm { transition-duration: .01s !important; }
}

/* nəfəs oyunu */
.breath {
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: calc(var(--safe-b) + 3vh);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .35s ease;
}
.breath.is-on { opacity: 1; }
.breath:not(.is-on) { pointer-events: none; }
.breath-cap {
  margin: 0;
  padding: 7px 18px 8px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 1000;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 4px 0 var(--gold-deep);
}
.breath-hint { margin: 0; font-size: 16px; font-weight: 800; color: var(--moon); text-shadow: 0 2px 8px rgba(8, 6, 24, .8); }
.breath-btn {
  position: relative;
  width: 150px;
  height: 150px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 26, 61, .82);
  box-shadow: inset 0 0 0 2px rgba(255, 240, 199, .25), 0 12px 30px rgba(8, 6, 24, .5);
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  display: grid;
  place-items: center;
}
.breath-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.breath-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.br-bg { fill: none; stroke: rgba(255, 240, 199, .18); stroke-width: 9; }
.br-fg { fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; }
.breath-ico { width: 64px; height: 64px; transition: transform .2s ease; }
.ico-flower { fill: #ff9fb8; stroke: #3f8f7a; }
.ico-flower .ico-mid { fill: var(--gold); }
.ico-candle { fill: var(--moon); display: none; }
.ico-candle .ico-flame { fill: var(--gold); transform-origin: 24px 24px; }
.breath.is-out .ico-flower { display: none; }
.breath.is-out .ico-candle { display: block; }
.breath.is-holding .breath-btn { box-shadow: inset 0 0 0 3px var(--gold), 0 0 40px rgba(255, 201, 77, .5); }
@media (orientation: landscape) and (max-height: 520px) {
  .breath-btn { width: 112px; height: 112px; }
  .breath-ico { width: 48px; height: 48px; }
  .breath-cap { font-size: 18px; }
  .breath-hint { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .breath { transition-duration: .01s; } }

/* uzun yazılı böyük düymə */
.count-btn.is-wide {
  width: min(320px, calc(100% - 40px));
  height: auto;
  min-height: 84px;
  margin-left: calc(min(320px, calc(100% - 40px)) / -2);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1.2;
}

/* final ekranı və fəsil seçimi */
.screen-final, .screen-chapters {
  z-index: 8;
  justify-content: center;
  background: rgba(12, 14, 40, .6);
  opacity: 0;
  transition: opacity .8s ease;
}
.screen-final.is-on, .screen-chapters.is-on { opacity: 1; }
.screen-final:not(.is-on), .screen-chapters:not(.is-on) { pointer-events: none; }
.final-card {
  width: min(440px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 26px 24px 20px;
  border-radius: 30px;
  background: rgba(20, 26, 61, .93);
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 199, .25), 0 20px 50px rgba(6, 4, 20, .6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.final-for { margin: 4px 0 0; font-size: 28px; font-weight: 1000; line-height: 1.12; color: var(--moon); }
.final-date { margin: -4px 0 0; font-size: 16px; font-weight: 700; color: var(--moon); opacity: .7; }
.final-line { margin: 6px 0 10px; font-size: 24px; font-weight: 900; line-height: 1.25; color: var(--gold); }
.final-brand { margin-top: 4px; color: var(--moon); opacity: .7; text-decoration: none; font-size: 14px; }
.final-brand:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.chapter-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.ch-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 18px;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  text-align: left;
  color: var(--moon);
  background: rgba(255, 240, 199, .08);
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 199, .18);
  cursor: pointer;
}
.ch-item:active { transform: scale(.98); }
.ch-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ch-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--gold); font-weight: 1000; }
@media (orientation: landscape) and (max-height: 520px) {
  .final-card { padding: 14px 20px; gap: 7px; }
  .final-for { font-size: 22px; }
  .final-line { font-size: 19px; margin: 2px 0 4px; }
  .chapter-list { display: grid; grid-template-columns: 1fr 1fr; }
  .ch-item { padding: 8px 12px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .screen-final, .screen-chapters { transition-duration: .01s; } }
@media (orientation: landscape) and (max-height: 520px) {
  .final-card { gap: 5px; padding: 12px 18px 10px; }
  .final-card .end-star svg { width: 18px; height: 18px; }
  .final-card .btn-primary { font-size: 20px; padding: .45em 1.3em; }
  .final-card .btn-ghost { font-size: 15px; padding: .35em 1.1em; }
  .final-date { font-size: 13px; }
  .final-brand { margin-top: 0; font-size: 12px; }
}
/* final ekranında birivaridi yazısı həmişə görünsün */
.final-card .final-brand, .is-land .final-card .final-brand { display: inline-block; position: static; }
.final-card .btn { white-space: nowrap; max-width: 100%; }
@media (max-width: 400px) { .final-card .btn-primary { font-size: 22px; padding-left: 1.1em; padding-right: 1.1em; } }
