/* Ported from hikayeci-demo globals.css — visual parity */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist/geist-001175b1.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;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist/geist-98bbbccb.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;
}

:root {
  --font-geist-sans: 'Geist', 'Trebuchet MS', Arial, sans-serif;
  --font-geist-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

:root {
  /* Hikayeci store-theme: parchment + deep teal */
  --sky: #2f7f86;
  --sky-deep: #1a5f66;
  --ink: #1a2f3a;
  --ink-soft: #3d5560;
  --cream: #f3ead9;
  --cream-bottom: #ebe0cb;
  --paper: #faf4e8;
  --coral: #c46a52;
  --coral-deep: #a8543f;
  --yellow: #d4a84b;
  --earth: #c4a36a;
  --teal: #1a6b72;
  --teal-soft: #d5ebe8;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(26, 47, 58, 0.22);
  --app-topbar-h: 58px;
  --reader-watermark-opacity: 0.1;
  --reader-watermark-size: clamp(190px, 64%, 260px);
}

* {
  box-sizing: border-box;
}

/* Scroll çalışır; çubuk hiçbir yerde görünmez */
html,
body,
.app-scrollport,
.story-region,
.story-content,
.cast-scroll,
.reader-main,
.home-carousel,
.home-season-row,
.starter-content-scroll,
.cover-stage,
.comic-shell {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.app-scrollport::-webkit-scrollbar,
.story-region::-webkit-scrollbar,
.story-content::-webkit-scrollbar,
.cast-scroll::-webkit-scrollbar,
.reader-main::-webkit-scrollbar,
.home-carousel::-webkit-scrollbar,
.home-season-row::-webkit-scrollbar,
.starter-content-scroll::-webkit-scrollbar,
.cover-stage::-webkit-scrollbar,
.comic-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html {
  height: 100%;
  max-width: 100%;
  background: var(--sky);
  color-scheme: light;
  overscroll-behavior: none;
  overflow-x: hidden;
}

body {
  height: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.55), transparent 22rem),
    radial-gradient(circle at 86% 8%, rgba(212, 168, 75, 0.28), transparent 18rem),
    linear-gradient(155deg, #3a8f96 0%, #2a747c 42%, #c4a36a 128%);
  color: var(--ink);
  font-family: var(--font-geist-sans), "Trebuchet MS", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1099px) {
  html,
  body {
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 4px solid rgba(247, 201, 72, 0.92);
  outline-offset: 3px;
}

.comic-shell {
  position: relative;
  min-height: 100svh;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      35deg,
      transparent 0 42px,
      rgba(255, 255, 255, 0.045) 42px 44px
    );
}

.app-shell {
  height: 100svh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.app-stage {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0 !important;
  overflow: hidden !important;
  padding-top: calc(8px + env(safe-area-inset-top));
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.app-topbar,
.app-stage > .app-chrome,
.app-stage > .reader-topbar {
  position: relative;
  top: auto;
  z-index: 40;
  flex: 0 0 auto;
  width: 100%;
  background: rgba(243, 234, 217, 0.96);
  backdrop-filter: blur(12px);
}

.app-scrollport {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
}


.app-scroll-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.98), var(--cream) 28%);
  padding-top: 0.15rem;
}



.comic-shell::before,
.comic-shell::after {
  position: fixed;
  z-index: 0;
  width: 30vw;
  max-width: 500px;
  aspect-ratio: 1;
  border: 2px solid rgba(243, 234, 217, 0.13);
  border-radius: 28%;
  content: "";
  transform: rotate(45deg);
  pointer-events: none;
}

.comic-shell::before {
  top: -14vw;
  left: -13vw;
}

.comic-shell::after {
  right: -14vw;
  bottom: -16vw;
}

.mobile-stage {
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: min(100%, 460px);
  max-width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  background:
    radial-gradient(
      ellipse at 8% 100%,
      rgb(255 255 255 / 42%) 0%,
      rgb(255 255 255 / 0%) 42%
    ),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-bottom) 100%);
  box-shadow: var(--shadow);
  overflow-x: hidden;
}

/* Decorative reading-child watermark — bottom-left, behind UI */
.mobile-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: clamp(10px, 3.2vw, 18px);
  bottom: clamp(8px, 2.4vw, 16px);
  width: var(--reader-watermark-size);
  aspect-ratio: 639 / 980;
  pointer-events: none;
  user-select: none;
  opacity: var(--reader-watermark-opacity);
  background: url("/reader/bg-watermark.png") left bottom / contain no-repeat;
  filter: saturate(0.78) contrast(0.96);
  mix-blend-mode: multiply;
  transform-origin: 28% 100%;
  animation: hikayeci-soft-drift 18s ease-in-out infinite;
}

@keyframes hikayeci-soft-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(4px, -6px, 0) rotate(-0.25deg);
  }
}

@media (min-width: 768px) {
  :root {
    --reader-watermark-opacity: 0.082;
    --reader-watermark-size: clamp(240px, 68%, 300px);
  }

  .mobile-stage::after {
    left: clamp(14px, 3.5%, 22px);
    bottom: clamp(12px, 2.5%, 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-stage::after {
    animation: none;
  }
}

.loading-shell .mobile-stage {
  animation: pulse 1.1s ease-in-out infinite;
}

.cover-shell {
  display: grid;
  min-height: 100svh;
  place-items: stretch center;
}

.cover-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding:
    calc(8px + env(safe-area-inset-top))
    14px
    calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.cover-stage.app-stage {
  gap: 0;
  padding-left: 14px;
  padding-right: 14px;
}



.cover-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0 18px;
}

.topbar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", var(--font-geist-sans), sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.045em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-logo,
.app-chrome-logo {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0.35rem;
}

.brand-text,
.app-chrome-brand-text {
  line-height: 1;
}

.progress-number {
  font-size: 14px;
  font-weight: 900;
}

.frame-art {
  position: relative;
  overflow: hidden;
  background: var(--sky);
}

.frame-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cover-art {
  width: 100%;
  min-height: 0;
  flex: 0 0 auto;
  aspect-ratio: 4 / 5;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow:
    0 12px 24px rgba(25, 90, 102, 0.18),
    inset 0 0 0 1px rgba(16, 43, 69, 0.08);
}

.cover-art img {
  animation: cover-drift 12s ease-in-out infinite alternate;
}

.dust {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(243, 234, 217, 0.66);
  box-shadow:
    22px 12px rgba(243, 234, 217, 0.46),
    49px -5px rgba(243, 234, 217, 0.54),
    76px 18px rgba(243, 234, 217, 0.4);
  filter: blur(1px);
  opacity: 0;
  animation: dust-float 3.8s ease-out infinite;
}

.dust-a,
.dust.dust-a {
  right: 18%;
  bottom: 17%;
}

.dust-b,
.dust.dust-b {
  right: 32%;
  bottom: 12%;
  animation-delay: 1.6s;
}

.cover-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.chapter-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 18px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 5px 0 rgba(202, 52, 36, 0.18);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  transform: translateY(-4px);
}

.cover-copy h1,
.completion-stage h1 {
  margin: 0;
  color: #081f39;
  font-family: "Arial Rounded MT Bold", var(--font-geist-sans), sans-serif;
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.cover-copy h1.long-title,
.completion-stage h1.long-title {
  font-size: clamp(29px, 8.2vw, 42px);
  line-height: 1.02;
}

.cover-narrator {
  position: relative;
  margin: 13px 0 0;
  padding: 11px 14px 11px 16px;
  border: 1px solid #e4c790;
  border-left: 5px solid var(--earth);
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(217, 154, 66, 0.18) 1px, transparent 1.4px)
      0 0 / 9px 9px,
    #fffaf0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.42;
  text-align: left;
}

.primary-button,
.next-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ff6e58, var(--coral));
  color: white;
  box-shadow:
    0 6px 0 var(--coral-deep),
    0 12px 20px rgba(233, 71, 52, 0.22);
  cursor: pointer;
  font-family: "Arial Rounded MT Bold", var(--font-geist-sans), sans-serif;
  font-size: 18px;
  font-weight: 900;
  padding: 0.9rem 1.1rem;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-button:disabled,
.primary-button[aria-disabled="true"] {
  cursor: default;
  opacity: 0.88;
}

.primary-button:active,
.next-button:active {
  box-shadow:
    0 2px 0 var(--coral-deep),
    0 7px 14px rgba(233, 71, 52, 0.2);
  transform: translateY(4px) scale(0.99);
}

.button-arrow {
  font-size: 28px;
  line-height: 1;
  animation: arrow-nudge 1.6s ease-in-out infinite;
}

.text-button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(54, 85, 107, 0.35);
  text-underline-offset: 4px;
}

.chapter-switch {
  margin-top: -4px;
}

.reader-shell {
  touch-action: pan-y;
}

.reader-stage {
  display: grid;
  height: 100svh;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding:
    env(safe-area-inset-top)
    0
    calc(8px + env(safe-area-inset-bottom));
}

.reader-stage.app-stage {
  display: flex !important;
  height: 100%;
  min-height: 0 !important;
  padding-left: 0;
  padding-right: 0;
}

.reader-scrollport {
  padding: 0;
}

.reader-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.reader-stage .reader-main > .panel-image {
  flex: 0 0 auto;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  max-height: min(46svh, 420px);
  margin: 0 auto;
  border-bottom: 3px solid rgba(16, 43, 69, 0.12);
  overflow: hidden;
  background: var(--sky);
}

.reader-stage .reader-main > .panel-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.reader-stage .story-region {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.55rem 0.85rem 0.35rem;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.96), var(--cream) 40%);
}

.reader-stage .scroll-hint {
  position: sticky;
  bottom: 12px;
  display: grid;
  place-items: center;
  margin-inline: auto;
}

.reader-stage .story-content {
  max-height: none;
  overflow: visible;
  padding-bottom: 1.25rem;
}

.reader-stage .reader-controls {
  position: relative;
  bottom: auto;
  flex: 0 0 auto;
}

.reader-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(16, 43, 69, 0.09);
  background: rgba(243, 234, 217, 0.96);
  backdrop-filter: blur(12px);
  flex: 0 0 auto;
}

.reader-topbar .icon-button.app-chrome-btn {
  color: var(--teal);
  background: transparent;
  border: 2px solid transparent;
  box-shadow: none;
  text-decoration: none;
}

.reader-topbar .icon-button.app-chrome-btn .app-chrome-icon {
  width: 1.4rem;
  height: 1.4rem;
}

.topbar-center {
  display: grid;
  flex: 1;
  gap: 5px;
  text-align: center;
}

.topbar-center .brand {
  font-size: 13px;
}

.progress-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 43, 69, 0.12);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--yellow));
  transition: width 280ms ease;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(16, 43, 69, 0.08);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
}

.sound-button.is-on {
  background: #dcf7f4;
  color: var(--sky-deep);
}

.panel-card {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  animation: card-in 340ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.panel-image {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  border-bottom: 4px solid var(--ink);
}

.panel-image img {
  object-position: center;
  transform: none;
  will-change: filter;
}

.motion-left img,
.motion-right img,
.motion-up img,
.motion-still img {
  animation: photo-alive 7s ease-in-out infinite alternate;
}

.panel-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(8, 31, 57, 0.22));
  pointer-events: none;
}

.image-hotspot,
.aim-hotspot {
  position: absolute;
  z-index: 6;
  display: grid;
  place-items: center;
  border: 3px solid white;
  color: white;
  box-shadow:
    0 0 0 4px rgba(247, 201, 72, 0.76),
    0 6px 18px rgba(8, 31, 57, 0.33);
  cursor: pointer;
  touch-action: manipulation;
}

.image-hotspot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 43, 69, 0.7);
  font-size: 23px;
  font-weight: 950;
  transform: translate(-50%, -50%);
  animation: hotspot-pulse 1.55s ease-in-out infinite;
}

.image-hotspot.is-found {
  background: rgba(16, 140, 160, 0.9);
  box-shadow:
    0 0 0 4px rgba(216, 246, 243, 0.8),
    0 6px 18px rgba(8, 31, 57, 0.28);
  animation: none;
}

.clue-banner {
  top: 18%;
  left: 51%;
}

.clue-carts {
  top: 65%;
  left: 21%;
}

.clue-cavalry {
  top: 48%;
  left: 81%;
}

.aim-hotspot {
  top: 21%;
  right: 2%;
  width: 24%;
  height: 59%;
  border: 3px dashed rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(247, 201, 72, 0.18);
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  text-shadow: 0 1px 0 white;
  animation: aim-pulse 1.45s ease-in-out infinite;
}

.aim-hotspot.is-found {
  border-style: solid;
  background: rgba(216, 246, 243, 0.86);
  color: var(--sky-deep);
  font-size: 12px;
  animation: none;
}

.safe-target-layer {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: 972 / 1619;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.safe-target-hotspot,
.unsafe-target-hotspot {
  position: absolute;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.safe-target-hotspot {
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px dashed white;
  border-radius: 50%;
  background: rgba(247, 201, 72, 0.22);
  color: white;
  box-shadow:
    0 0 0 4px rgba(247, 201, 72, 0.62),
    0 7px 18px rgba(8, 31, 57, 0.35);
  font-size: 25px;
  font-weight: 950;
  text-shadow: 0 2px 4px rgba(8, 31, 57, 0.72);
  transform: translate(-50%, -50%);
  animation: safe-target-pulse 1.55s ease-in-out infinite;
}

.safe-target-hotspot.is-found {
  border-style: solid;
  background: rgba(22, 140, 160, 0.9);
  box-shadow:
    0 0 0 4px rgba(216, 246, 243, 0.82),
    0 7px 18px rgba(8, 31, 57, 0.3);
  animation: none;
}

.safe-target-shield {
  top: 80%;
  left: 87%;
}

.safe-target-spear {
  top: 64%;
  left: 82%;
  width: 44px;
  height: 116px;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(8deg);
}

.safe-target-spear.is-found {
  transform: translate(-50%, -50%) rotate(8deg);
}

.safe-target-ground {
  top: 74%;
  left: 61%;
}

.unsafe-target-hotspot {
  z-index: 2;
  background: transparent;
}

.unsafe-target-person {
  top: 15%;
  left: 68%;
  width: 25%;
  height: 30%;
}

.unsafe-target-horse {
  top: 37%;
  left: 54%;
  width: 31%;
  height: 28%;
}

.distant-signal-hotspot {
  top: 16%;
  left: 72%;
}

.mercy-binds {
  top: 42%;
  left: 38%;
}

.mercy-water {
  top: 58%;
  left: 62%;
}

.mercy-shade {
  top: 28%;
  left: 55%;
}

.escape-target-shield {
  top: 34%;
  left: 68%;
}

.escape-target-gap {
  top: 48%;
  left: 22%;
}

.escape-target-rock {
  top: 62%;
  left: 48%;
}

.sfx {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 13px;
  max-width: 72%;
  padding: 7px 11px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 4px 5px 0 rgba(16, 43, 69, 0.28);
  font-family: "Arial Rounded MT Bold", var(--font-geist-sans), sans-serif;
  font-size: clamp(16px, 5vw, 24px);
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  transform: rotate(2deg);
  animation: sfx-pop 500ms cubic-bezier(0.2, 1.5, 0.5, 1);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.sfx:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.sfx.is-playing {
  animation: sfx-pop 420ms cubic-bezier(0.2, 1.5, 0.5, 1);
}

.is-haptic-shake {
  animation: haptic-shake 180ms ease;
}

@media (hover: none) and (pointer: coarse) {
  .primary-button:active,
  .next-button:active,
  .back-button:active,
  .icon-button:active,
  .scroll-hint:active,
  .sound-button:active,
  .choice-btn:active {
    animation: haptic-shake 180ms ease;
  }
}

.story-region {
  position: relative;
  min-height: 0;
}

.story-content {
  display: grid;
  min-height: 0;
  max-height: clamp(132px, 30svh, 250px);
  gap: 13px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 15px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.story-content.is-scroll-pending {
  padding-bottom: 64px;
}

.scroll-hint {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 9px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: rgba(16, 43, 69, 0.68);
  color: white;
  box-shadow:
    0 6px 18px rgba(16, 43, 69, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
  transform: translateX(-50%);
  backdrop-filter: blur(7px);
  animation: scroll-hint-bob 1.35s ease-in-out infinite;
}

.scroll-hint:active {
  transform: translateX(-50%) scale(0.94);
}

.story-meta {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scene-label,
.eyebrow,
.completion-kicker {
  margin: 0 0 3px;
  color: var(--coral-deep);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.eyebrow {
  color: var(--teal);
}

.history-sheet h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", var(--font-geist-sans), sans-serif;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.history-chip {
  min-height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #d8f6f3;
  color: var(--sky-deep);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 0 11px;
}

.narrator-card {
  position: relative;
  margin: 0;
  padding: 12px 14px 13px 16px;
  border: 1px solid #e4c790;
  border-left: 6px solid var(--earth);
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(217, 154, 66, 0.14) 1px, transparent 1.4px)
      0 0 / 9px 9px,
    #fffaf0;
  color: var(--ink);
  box-shadow: 0 4px 10px rgba(114, 73, 24, 0.08);
}

.narrator-label {
  display: block;
  margin-bottom: 4px;
  color: #a46519;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.narrator-card p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.52;
}

.narrator-card p + p {
  margin-top: 0.7em;
}

.dialogue-stack,
.chat-stack {
  display: grid;
  gap: 0.7rem;
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  max-width: 100%;
}

.chat-row.is-left {
  flex-direction: row;
  justify-content: flex-start;
  padding-right: 12%;
}

.chat-row.is-right {
  flex-direction: row-reverse;
  justify-content: flex-start;
  padding-left: 12%;
}

.chat-avatar,
.chat-avatar-fallback {
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(16, 43, 69, 0.14);
  background: #c5ddd9;
  box-shadow: 0 4px 10px rgba(16, 70, 86, 0.12);
}

.chat-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
}

.chat-bubble {
  position: relative;
  max-width: min(100%, 18.5rem);
  padding: 0.55rem 0.75rem 0.65rem;
  border: 1px solid rgba(16, 43, 69, 0.1);
  border-radius: 1.05rem;
  box-shadow: 0 6px 14px rgba(16, 70, 86, 0.08);
}

.chat-row.is-left .chat-bubble {
  border-bottom-left-radius: 0.35rem;
}

.chat-row.is-right .chat-bubble {
  border-bottom-right-radius: 0.35rem;
}

.chat-row.is-left .chat-bubble::before,
.chat-row.is-right .chat-bubble::before {
  content: "";
  position: absolute;
  bottom: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: inherit;
  border: inherit;
  transform: rotate(45deg);
}

.chat-row.is-left .chat-bubble::before {
  left: -0.28rem;
  border-right: 0;
  border-top: 0;
}

.chat-row.is-right .chat-bubble::before {
  right: -0.28rem;
  border-left: 0;
  border-bottom: 0;
}

.dialogue p,
.chat-bubble p {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1.42;
  color: var(--ink);
}

.speaker {
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dialogue-coral,
.chat-bubble.dialogue-coral {
  background: #ffdbd3;
}

.dialogue-blue,
.chat-bubble.dialogue-blue {
  background: #d8f5fa;
}

.dialogue-gold,
.chat-bubble.dialogue-gold {
  background: #fff0ba;
}

.dialogue-cream,
.chat-bubble.dialogue-cream {
  background: #fffaf0;
}

.chat-row.is-right .chat-bubble.dialogue-cream {
  background: #e8f7f4;
}

.choice-area {
  display: grid;
  gap: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choice-card {
  display: grid;
  min-height: 105px;
  place-items: center;
  gap: 4px;
  border: 2px solid rgba(16, 43, 69, 0.18);
  border-radius: 17px;
  background: white;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  padding: 9px 6px;
  text-align: center;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.choice-card:active {
  transform: scale(0.97);
}

.choice-card.is-selected {
  border-color: var(--coral);
  background: #fff0ec;
  box-shadow: 0 0 0 3px rgba(255, 96, 77, 0.13);
}

.choice-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  background: #d9f5f3;
  color: var(--teal);
  font-size: 25px;
}

.choice-result {
  border: 2px solid #eacb84;
  border-radius: 17px;
  background: #fff9dc;
  padding: 13px;
  animation: result-in 280ms ease-out;
}

.choice-result strong {
  color: var(--coral-deep);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.choice-result p {
  margin: 4px 0 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.choice-result > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.knowledge-badge {
  margin-top: 11px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 850;
}

.interaction-area {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 2px solid rgba(22, 140, 160, 0.24);
  border-radius: 18px;
  background: linear-gradient(155deg, #edfbfa, #fffaf0);
  box-shadow: 0 7px 16px rgba(16, 43, 69, 0.08);
}

.interaction-heading > span {
  display: block;
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.11em;
}

.interaction-heading h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", var(--font-geist-sans), sans-serif;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.interaction-instruction {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.42;
}

.clue-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.clue-progress span {
  border: 1px solid rgba(16, 43, 69, 0.11);
  border-radius: 999px;
  background: white;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
  padding: 7px 9px;
}

.clue-progress span.is-found {
  border-color: rgba(22, 140, 160, 0.26);
  background: #d8f6f3;
  color: var(--sky-deep);
}

.interaction-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.interaction-choice-grid button {
  display: grid;
  min-height: 92px;
  place-items: center;
  gap: 5px;
  border: 2px solid rgba(16, 43, 69, 0.14);
  border-radius: 15px;
  background: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  padding: 10px 7px;
  text-align: center;
}

.interaction-choice-grid button > span {
  font-size: 25px;
}

.interaction-choice-grid button.is-selected {
  border-color: var(--coral);
  background: #fff0ec;
}

.interaction-choice-grid button.is-correct {
  border-color: var(--teal);
  background: #d8f6f3;
  color: var(--sky-deep);
}

.interaction-result {
  border: 2px solid #eacb84;
  border-radius: 14px;
  background: #fff9dc;
  padding: 11px 12px;
  animation: result-in 280ms ease-out;
}

.interaction-result.compact {
  border-color: rgba(22, 140, 160, 0.19);
  background: white;
  padding: 9px 11px;
}

.interaction-result.success {
  border-color: rgba(22, 140, 160, 0.4);
  background: var(--teal-soft);
}

.interaction-result.retry {
  border-color: rgba(217, 154, 66, 0.44);
  background: #fff4d5;
}

.interaction-result strong {
  color: var(--coral-deep);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.interaction-result.success strong,
.interaction-result.compact strong {
  color: var(--sky-deep);
}

.interaction-result p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.42;
}

.reader-controls {
  position: sticky;
  z-index: 15;
  bottom: 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 9px;
  padding: 10px 12px;
  border-top: 1px solid rgba(16, 43, 69, 0.08);
  background: rgba(243, 234, 217, 0.95);
  backdrop-filter: blur(12px);
}

.back-button {
  min-height: 54px;
  border: 2px solid rgba(16, 43, 69, 0.13);
  border-radius: 16px;
  background: white;
  cursor: pointer;
  font-size: 23px;
  font-weight: 900;
}

.back-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.next-button {
  min-height: 54px;
  box-shadow:
    0 4px 0 var(--coral-deep),
    0 9px 17px rgba(233, 71, 52, 0.17);
  font-size: 16px;
}

.next-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.6);
  opacity: 0.5;
  box-shadow:
    0 3px 0 rgba(80, 86, 89, 0.28),
    0 7px 13px rgba(16, 43, 69, 0.1);
  transform: none;
}

.secondary-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 2px solid rgba(16, 43, 69, 0.13);
  border-radius: 17px;
  background: white;
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(16, 43, 69, 0.09);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  padding: 0 20px;
}

.cast-shell {
  display: grid;
  min-height: 100svh;
  place-items: stretch center;
}

.cast-stage {
  display: flex;
  height: 100svh;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
}

.cast-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(16, 43, 69, 0.09);
  background: rgba(243, 234, 217, 0.96);
  backdrop-filter: blur(12px);
}

.cast-topbar .brand {
  text-align: center;
}

.cast-topbar .cast-chapter {
  justify-self: center;
}

.cast-chapter {
  display: grid;
  min-width: 42px;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.05em;
  padding-inline: 9px;
}

.cast-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 14px 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cast-heading {
  text-align: center;
}

.cast-heading .chapter-pill {
  min-height: 29px;
  transform: none;
}

.cast-heading h1 {
  margin: 11px 0 5px;
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", var(--font-geist-sans), sans-serif;
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1;
}

.cast-heading > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.cast-list {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}

.character-card {
  display: grid;
  min-height: 96px;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 7px 11px 7px 7px;
  border: 2px solid rgba(16, 43, 69, 0.1);
  border-radius: 18px;
  background: white;
  box-shadow: 0 7px 15px rgba(16, 43, 69, 0.07);
}

.character-portrait {
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 3px solid #d8f5fa;
  border-radius: 15px;
  background: #a9e3e9;
}

.character-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-copy {
  min-width: 0;
}

.character-copy > span {
  display: block;
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.character-copy h2 {
  margin: 2px 0 3px;
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", var(--font-geist-sans), sans-serif;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.character-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.cast-actions {
  flex: 0 0 auto;
  padding:
    11px
    14px
    calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(16, 43, 69, 0.08);
  background: rgba(243, 234, 217, 0.96);
  backdrop-filter: blur(12px);
}

.completion-shell {
  display: grid;
  place-items: stretch center;
}

.completion-stage {
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  padding:
    calc(28px + env(safe-area-inset-top))
    18px
    calc(24px + env(safe-area-inset-bottom));
  text-align: center;
}

.reward-burst {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 5px solid white;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--coral-deep);
  box-shadow:
    0 0 0 7px var(--coral),
    0 13px 25px rgba(233, 71, 52, 0.26);
  font-size: 38px;
  animation: reward-pop 650ms cubic-bezier(0.2, 1.6, 0.4, 1);
}

.completion-kicker {
  margin-bottom: -7px;
}

.reward-quote {
  margin: 0;
  border-radius: 14px;
  background: white;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
  padding: 10px 14px;
}

.completion-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border: 4px solid white;
  border-radius: 20px;
  box-shadow: 0 13px 25px rgba(16, 43, 69, 0.17);
}

.next-chapter {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.earned-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.earned-badges span {
  border: 1px solid rgba(22, 140, 160, 0.24);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--sky-deep);
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
}

.sheet-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: end;
  background: rgba(8, 31, 57, 0.64);
  backdrop-filter: blur(4px);
  animation: fade-in 200ms ease-out;
}

.history-sheet {
  width: min(100%, 520px);
  max-height: 88svh;
  margin: 0 auto;
  overflow-y: auto;
  border-radius: 26px 26px 0 0;
  background: var(--cream);
  box-shadow: 0 -20px 60px rgba(8, 31, 57, 0.25);
  padding:
    10px
    16px
    calc(24px + env(safe-area-inset-bottom));
  animation: sheet-up 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet-handle {
  width: 50px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(16, 43, 69, 0.19);
}

.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.close-button {
  background: white;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}

.history-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  padding: 13px;
  border: 2px solid rgba(16, 43, 69, 0.1);
  border-radius: 17px;
  background: white;
}

.history-card > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 950;
}

.history-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 950;
}

.history-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.source-note {
  margin-top: 15px;
  padding: 14px;
  border-radius: 17px;
  background: var(--teal-soft);
}

.source-note strong {
  color: var(--sky-deep);
  font-size: 13px;
}

.source-note p {
  margin: 5px 0 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-links a {
  border-radius: 999px;
  background: white;
  color: var(--sky-deep);
  font-size: 11px;
  font-weight: 850;
  padding: 7px 10px;
  text-decoration: none;
}

@keyframes cover-drift {
  from { filter: saturate(0.98) brightness(0.99); }
  to { filter: saturate(1.05) brightness(1.02); }
}

@keyframes photo-alive {
  from { filter: saturate(0.98) brightness(0.99); }
  to { filter: saturate(1.04) brightness(1.015); }
}

@keyframes pan-left {
  from { transform: scale(1.1) translate3d(2%, 0, 0); }
  to { transform: scale(1.1) translate3d(-2%, 0, 0); }
}

@keyframes pan-right {
  from { transform: scale(1.1) translate3d(-2%, 0, 0); }
  to { transform: scale(1.1) translate3d(2%, 0, 0); }
}

@keyframes pan-up {
  from { transform: scale(1.08) translate3d(0, 1.5%, 0); }
  to { transform: scale(1.12) translate3d(0, -1.5%, 0); }
}

@keyframes breathe {
  from { transform: scale(1.05); }
  to { transform: scale(1.09); }
}

@keyframes dust-float {
  0% { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.7); }
  25% { opacity: 0.8; }
  100% { opacity: 0; transform: translate3d(48px, -18px, 0) scale(1.45); }
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@keyframes scroll-hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateX(14px) scale(0.99); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes sfx-pop {
  from { opacity: 0; transform: scale(0.4) rotate(-7deg); }
  to { opacity: 1; transform: scale(1) rotate(2deg); }
}

@keyframes haptic-shake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-2px, 0, 0); }
  50% { transform: translate3d(2px, 0, 0); }
  75% { transform: translate3d(-1px, 0, 0); }
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hotspot-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(247, 201, 72, 0.54),
      0 6px 18px rgba(8, 31, 57, 0.3);
    transform: translate(-50%, -50%) scale(0.94);
  }
  50% {
    box-shadow:
      0 0 0 9px rgba(247, 201, 72, 0.16),
      0 7px 20px rgba(8, 31, 57, 0.36);
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes aim-pulse {
  0%, 100% {
    background: rgba(247, 201, 72, 0.15);
    box-shadow:
      0 0 0 3px rgba(247, 201, 72, 0.45),
      0 6px 18px rgba(8, 31, 57, 0.24);
  }
  50% {
    background: rgba(247, 201, 72, 0.29);
    box-shadow:
      0 0 0 8px rgba(247, 201, 72, 0.1),
      0 7px 20px rgba(8, 31, 57, 0.3);
  }
}

@keyframes safe-target-pulse {
  0%, 100% {
    background: rgba(247, 201, 72, 0.18);
    box-shadow:
      0 0 0 4px rgba(247, 201, 72, 0.56),
      0 7px 18px rgba(8, 31, 57, 0.32);
  }
  50% {
    background: rgba(247, 201, 72, 0.34);
    box-shadow:
      0 0 0 9px rgba(247, 201, 72, 0.12),
      0 8px 20px rgba(8, 31, 57, 0.4);
  }
}

@keyframes reward-pop {
  from { opacity: 0; transform: scale(0.25) rotate(-20deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@media (min-width: 1100px) {
  .mobile-stage {
    width: min(100%, 460px);
    min-height: calc(100svh - 34px);
    margin-block: 17px;
    border: 8px solid rgba(255, 255, 255, 0.36);
    border-radius: 32px;
    box-shadow:
      0 0 0 1px rgba(16, 43, 69, 0.08),
      0 34px 80px rgba(10, 60, 73, 0.28);
  }

  .reader-stage {
    height: calc(100svh - 34px);
    max-height: calc(100svh - 34px);
    overflow: hidden;
  }

  .app-shell {
    height: auto;
    max-height: none;
    min-height: 100svh;
    overflow: visible;
  }

  .app-stage {
    min-height: calc(100svh - 34px) !important;
    max-height: calc(100svh - 34px);
  }

  .cover-stage:not(.app-stage),
  .completion-stage {
    overflow-y: auto;
  }
}

@media (max-width: 1099px) {
  .mobile-stage {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-shell {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .app-stage {
    min-height: 0 !important;
    max-height: none;
    height: 100%;
  }
}

@media (min-width: 600px) and (max-width: 1099px) {
  .home-slide {
    flex-basis: clamp(220px, 38vw, 300px);
  }

  .home-carousel {
    padding-left: calc(50% - min(19vw, 150px));
    padding-right: calc(50% - min(19vw, 150px));
    padding-bottom: 1.85rem;
  }

  .home-series-title {
    font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  }


}

@media (max-height: 820px) {
  .home-series-head {
    gap: 0.15rem;
  }

  .home-series-title {
    font-size: 1.35rem;
  }

  .home-carousel-wrap {
    padding-top: 0.35rem;
  }

  .home-slide {
    flex-basis: clamp(165px, 48vw, 215px);
  }

  .home-carousel {
    padding-top: 0.35rem;
    padding-bottom: 1rem;
  }

  .home-detail {
    padding-top: 0.35rem;
    padding-bottom: 0.75rem;
  }
}

@media (max-height: 680px) {
  .home-slide {
    flex-basis: clamp(145px, 42vw, 185px);
  }

  .home-detail .cover-narrator {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

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

}

/* --- Laravel additive: entitlement lock (demo has none) --- */
.locked-shell .locked-stage {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  text-align: center;
  min-height: 100svh;
}
.locked-shell h2 {
  margin: 0;
  font-family: "Arial Rounded MT Bold", var(--font-geist-sans), sans-serif;
  font-size: clamp(1.6rem, 6vw, 2rem);
}
.locked-shell p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 28ch;
  line-height: 1.5;
}
/* Must beat .app-stage / .reader-stage.app-stage { display: flex !important } */
.hidden,
.app-stage.hidden,
.mobile-stage.hidden,
.app-stage[hidden],
.mobile-stage[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.parent-link {
  text-decoration: none;
  font-weight: 800;
  color: var(--teal, #1a6b72);
  font-size: 0.85rem;
}
.chapter-switch {
  display: grid;
  gap: 0.35rem;
  justify-items: stretch;
  margin-top: 0.75rem;
  width: 100%;
}
.chapter-switch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}
.chapter-switch-row .chapter-switch-link:last-child {
  justify-self: end;
  text-align: right;
}
.chapter-switch-row .chapter-switch-link:first-child {
  justify-self: start;
  text-align: left;
}
.chapter-switch-spacer {
  display: block;
  min-height: 1px;
}
.chapter-switch-link { display: inline-block; }

.parent-puzzle-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end center;
}
.parent-puzzle-modal[hidden] {
  display: none !important;
}
.parent-puzzle-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 43, 69, 0.42);
}
.parent-puzzle-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: min(92dvh, 720px);
  overflow: auto;
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-align: center;
  padding: 1.15rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #fffaf0, var(--cream));
  box-shadow: 0 -16px 40px rgba(16, 70, 86, 0.18);
}
.parent-puzzle-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.parent-puzzle-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}
.parent-puzzle-input {
  width: min(100%, 280px);
  text-align: center;
}
.parent-puzzle-choices {
  display: grid;
  gap: 0.55rem;
  width: min(100%, 280px);
}
.parent-puzzle-choice {
  min-height: 48px;
  border: 2px solid rgba(22, 140, 160, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.parent-puzzle-choice.is-active {
  border-color: rgba(226, 168, 90, 0.7);
  background: linear-gradient(135deg, #fff7d8, #ffe8a8);
}
.parent-puzzle-sheet .primary-button {
  width: min(100%, 280px);
  border: 0;
  cursor: pointer;
  font: inherit;
  margin-top: 0.25rem;
}
.catalog {
  padding: 0 16px 1.25rem;
  display: grid;
  gap: 0.25rem;
}

/* --- Pixel polish overrides (demo parity) --- */
.cover-stage > .primary-button {
  margin-top: auto;
}

.cover-topbar,
.topbar.cover-topbar {
  flex: 0 0 auto;
}

.cast-chapter {
  white-space: nowrap;
}

.reader-controls .back-button {
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  padding: 0;
}

.panel-image.frame-art {
  background: var(--sky);
}

.panel-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.home-stage .catalog .primary-button {
  margin-top: 0;
}

.home-stage .chapter-entry {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.home-stage .chapter-entry .entry-art {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: 20px;
}

.home-stage .chapter-entry .entry-synopsis {
  margin: 0;
  font-size: 13px;
}

.parent-link {
  font-family: "Arial Rounded MT Bold", var(--font-geist-sans), sans-serif;
  letter-spacing: 0.04em;
}

a.primary-button {
  box-sizing: border-box;
}

/* --- Soft light home: swipe cards + detail (reader stages untouched) --- */
.home-app .home-stage {
  gap: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow: hidden;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
  max-height: 100dvh;
  padding-bottom: 0;
}

.home-app .home-stage > .app-scrollport {
  min-height: 0;
  padding-bottom: 1rem;
}

.home-app.comic-shell {
  overflow: hidden;
  touch-action: pan-y;
}

.home-app .home-stage.is-ready {
  opacity: 1;
}

.app-actionbar {
  position: relative;
  z-index: 50;
  flex: 0 0 auto;
  padding:
    0.75rem
    0
    calc(0.75rem + env(safe-area-inset-bottom));
  background:
    linear-gradient(
      180deg,
      rgba(243, 234, 217, 0) 0%,
      rgba(243, 234, 217, 0.94) 20%,
      rgba(243, 234, 217, 1) 100%
    );
  border-top: 1px solid rgba(22, 140, 160, 0.08);
}

.app-actionbar .primary-button {
  width: min(100%, 320px);
  margin: 0 auto;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.app-actionbar .primary-button.is-locked {
  opacity: 0.9;
  filter: grayscale(0.08);
}

.app-actionbar .primary-button.is-muted,
.app-actionbar .primary-button:disabled {
  background: linear-gradient(135deg, #c5ddd9, #9ec9c4);
  color: var(--ink-soft);
  box-shadow: none;
}

.app-chrome-nav {
  display: inline-grid;
  place-items: center;
  min-width: 2.6rem;
  min-height: 2.6rem;
}

.app-chrome-nav > [hidden] {
  display: none !important;
}

.coming-soon-section {
  display: grid;
  gap: 0.75rem;
  padding: 0.5rem 4px 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.coming-soon-section[hidden] {
  display: none !important;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 4px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.coming-soon-list {
  display: grid;
  gap: 0.65rem;
}

.coming-soon-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(22, 140, 160, 0.12);
}

.coming-soon-art {
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sky);
}

.coming-soon-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.coming-soon-art img.is-contain {
  object-fit: contain;
}

.coming-soon-copy {
  display: grid;
  gap: 0.2rem;
  text-align: left;
  min-width: 0;
}

.coming-soon-copy strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.coming-soon-copy p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.empty-state {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
  padding: 1.25rem 0.5rem 1.5rem;
}

.empty-state[hidden] {
  display: none !important;
}

.empty-state strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.empty-state p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 28ch;
}

.empty-state .primary-button {
  width: min(100%, 260px);
  margin-top: 0.35rem;
  border: 0;
  cursor: pointer;
  font: inherit;
}




.home-carousel-shell {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  display: grid;
  align-items: center;
  margin: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  transform: none;
}

.home-carousel-wrap {
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 0.85rem 0 0;
}

.home-detail {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
  padding: 0.75rem 6px 0.75rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}


.profile-body {
  display: grid;
  gap: 0.75rem;
  padding: 0.35rem 0 1.25rem;
  align-content: start;
}


.home-series-head {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  text-align: center;
  padding: 0 8px;
  flex: 0 0 auto;
  transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease, margin 0.2s ease;
}

.home-series-title {
  margin: 0;
  font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  line-height: 1.15;
  color: var(--ink);
}

.home-season-row {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0 4px 2px;
  scrollbar-width: none;
  flex: 0 0 auto;
}

.home-season-row::-webkit-scrollbar {
  display: none;
}

.home-season-pill {
  flex: 0 0 auto;
  border: 2px solid rgba(22, 140, 160, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-season-pill:active {
  transform: scale(0.97);
}

.home-season-pill.is-active {
  background: linear-gradient(135deg, #fff7d8, #ffe8a8);
  border-color: rgba(226, 168, 90, 0.55);
  color: var(--ink);
}

.app-chrome {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  width: 100%;
  padding: 0.35rem 0 0.55rem;
  margin: 0;
  background: rgba(243, 234, 217, 0.96);
  backdrop-filter: blur(12px);
}

.app-chrome-brand {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.app-chrome-btn {
  min-width: 2.6rem;
  min-height: 2.6rem;
  padding: 0.35rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
  color: var(--teal);
  background: transparent;
  border: 2px solid transparent;
  box-shadow: none;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  position: relative;
}

.app-chrome-notify {
  position: absolute;
  top: 0.32rem;
  right: 0.32rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #e11d48;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.25);
  pointer-events: none;
}

.app-chrome-notify[hidden] {
  display: none !important;
}

.app-chrome-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

.app-chrome-btn:active {
  transform: scale(0.96);
}

.app-chrome-btn.is-ghost {
  color: var(--ink-soft);
  pointer-events: none;
  opacity: 0.72;
}

.home-step-back {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  margin-bottom: 0.15rem;
}

.home-carousel {
  display: flex;
  gap: clamp(0.65rem, 2.2vw, 1rem);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding:
    0.55rem
    calc(50% - min(34vw, 132px))
    2.05rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
  /* Yatay kart kaydırma + dikey sayfa kaydırması birlikte */
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.home-carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 250, 240, 0.55);
  color: rgba(16, 43, 69, 0.45);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(16, 70, 86, 0.12);
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.home-carousel-nav-prev { left: 0.15rem; }
.home-carousel-nav-next { right: 0.15rem; }

.home-carousel-nav.is-disabled,
.home-carousel-nav:disabled {
  opacity: 0.22;
  cursor: default;
}

.home-carousel::-webkit-scrollbar {
  display: none;
}

.home-slide {
  flex: 0 0 clamp(188px, 62vw, 264px);
  scroll-snap-align: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform: scale(0.88);
  opacity: 0.72;
  transition: transform 0.28s ease, opacity 0.28s ease, filter 0.28s ease;
  filter: saturate(0.92);
  transform-origin: center center;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.home-slide:focus-visible {
  outline: 3px solid rgba(22, 140, 160, 0.45);
  outline-offset: 4px;
}

.home-slide.is-active {
  transform: scale(1);
  opacity: 1;
  filter: none;
}

.home-slide.is-locked:not(.is-active) {
  filter: grayscale(0.18) saturate(0.85);
}

.home-slide.is-coming-soon .home-slide-badge {
  background: rgba(18, 48, 56, 0.88);
  color: #fff8e8;
}

.home-slide-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: clamp(20px, 5vw, 28px);
  overflow: hidden;
  background: var(--sky);
  box-shadow: 0 10px 22px rgba(16, 70, 86, 0.16);
}

.home-slide.is-active .home-slide-art {
  box-shadow: 0 12px 26px rgba(16, 70, 86, 0.2);
}

.home-slide-art img,
.home-slide-art img.is-cover,
.home-slide-art img.is-contain {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  background: var(--sky);
}

.home-slide-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(16, 43, 69, 0.28));
  pointer-events: none;
}

.home-slide-badge {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.92);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  box-shadow: 0 6px 14px rgba(16, 70, 86, 0.12);
}

.home-slide-progress {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: rgba(22, 140, 160, 0.88);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

.home-slide-coming .home-slide-art {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.7), transparent 40%),
    linear-gradient(160deg, #b8eef5 0%, #ffe9b0 55%, #ffd0c4 120%);
}

.home-coming-inner {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1.2rem;
  color: var(--ink);
}

.home-coming-plus {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.35rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 300;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 18px rgba(16, 70, 86, 0.12);
}

.home-coming-inner strong {
  font-size: 1.05rem;
}

.home-coming-inner span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.home-detail h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ink);
}

.home-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  max-width: 34ch;
}

.home-meta-chips[hidden] {
  display: none !important;
}

.home-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 140, 160, 0.18);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.home-meta-chip.is-age {
  background: rgba(255, 247, 216, 0.95);
  border-color: rgba(226, 168, 90, 0.35);
  color: var(--ink);
}

.home-meta-chip.is-type {
  background: rgba(201, 232, 238, 0.9);
  border-color: rgba(22, 140, 160, 0.22);
  color: var(--teal);
}

.home-detail .cover-narrator {
  margin: 0;
  max-width: 34ch;
  font-size: 0.9rem;
}

.home-detail.is-swap {
  animation: home-detail-swap 0.32s ease;
}

.home-status {
  min-height: 1.1em;
  text-align: center;
}

.home-status:empty,
.home-status[hidden] {
  min-height: 0;
  margin: 0;
  padding: 0;
}

@keyframes home-detail-swap {
  from { opacity: 0.35; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes home-copy-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Soft auth / starter surfaces reuse home tokens */
.soft-auth-shell,
.starter-shell {
  min-height: 100dvh;
}

.soft-auth-card {
  width: 100%;
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(22, 140, 160, 0.14);
  box-shadow: 0 14px 30px rgba(16, 70, 86, 0.1);
}

.soft-auth-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(22, 140, 160, 0.22);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.soft-auth-social {
  display: grid;
  gap: 0.55rem;
  width: 100%;
}

.soft-auth-social a {
  text-decoration: none;
}

.soft-google-slot {
  width: 100%;
  display: grid;
  gap: 0.45rem;
  justify-items: stretch;
}

.google-gis-button {
  width: 100%;
  min-height: 3.1rem;
  display: grid;
  place-items: center;
}

.google-gis-button > div {
  width: 100% !important;
}

.soft-btn-google,
.soft-btn-apple {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  box-sizing: border-box;
  min-height: 3.25rem;
}

.soft-btn-google {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: var(--ink);
  border: 2px solid #4285f4;
  box-shadow:
    0 8px 18px rgba(66, 133, 244, 0.18),
    0 0 0 3px rgba(66, 133, 244, 0.08);
}

.soft-btn-google:active {
  transform: scale(0.985);
}

.soft-btn-google-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(16, 43, 69, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(16, 43, 69, 0.08);
}

.soft-btn-google-mark svg,
.soft-btn-apple-mark svg {
  display: block;
}

.soft-btn-google-copy,
.soft-btn-apple-copy {
  display: grid;
  gap: 0.1rem;
  text-align: left;
  line-height: 1.15;
}

.soft-btn-google-copy strong,
.soft-btn-apple-copy strong {
  font-size: 1rem;
}

.soft-btn-google-copy small,
.soft-btn-apple-copy small {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.72;
}

.soft-btn-apple {
  background: #111827;
  color: #fff;
  border: 2px solid #111827;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
}

.soft-btn-apple-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.starter-stage {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
  max-height: 100dvh;
  gap: 0;
  overflow: hidden;
  padding-bottom: 0;
}

.starter-content-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 0.5rem 0 1rem;
}

.starter-slides {
  min-height: 100%;
  display: grid;
  align-content: center;
}

.starter-actionbar {
  position: relative;
  z-index: 20;
  display: grid;
  gap: 0.65rem;
  padding:
    0.65rem
    0
    calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(243, 234, 217, 0.97);
  border-top: 1px solid rgba(22, 140, 160, 0.08);
}

.starter-slide {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
  animation: home-copy-in 0.4s ease both;
}

.starter-slide[hidden] {
  display: none !important;
}

.starter-poster {
  width: min(58vw, 220px);
  
  border-radius: 24px;
  overflow: hidden;
  
}

.starter-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.starter-icon {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 1.4rem;
  display: grid;
  place-items: center;
  background: rgba(255, 250, 240, 0.9);
  border: 2px solid rgba(22, 140, 160, 0.16);
  box-shadow: 0 10px 22px rgba(16, 70, 86, 0.12);
}

.starter-icon-mark {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.starter-icon-svg {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--teal);
  display: block;
}

.starter-slide h1 {
  max-width: 16ch;
  line-height: 1.15;
}

.starter-slide .cover-narrator {
  max-width: 28ch;
  font-size: 1.02rem;
  line-height: 1.45;
}

.starter-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.starter-dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(22, 140, 160, 0.25);
}

.starter-dots span.is-active {
  background: var(--coral);
  width: 1.1rem;
}

@media (max-height: 760px) {
  .starter-slide {
    gap: 0.5rem;
  }

  .starter-poster {
    width: min(40vw, 150px);
    max-height: 150px;
  }

  .starter-icon {
    width: 4.25rem;
    height: 4.25rem;
  }

  .starter-slide h1 {
    margin-block: 0;
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .starter-slide .cover-narrator {
    font-size: 0.92rem;
    line-height: 1.35;
  }
}

@media (max-height: 620px) {
  .starter-poster {
    width: 110px;
    max-height: 110px;
  }

  .starter-slide .cover-narrator {
    font-size: 0.86rem;
  }
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.profile-stack {
  display: grid;
  gap: 0.55rem;
}

.profile-chip,
.profile-note {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 140, 160, 0.14);
}

.profile-chip strong,
.profile-note strong {
  font-size: 0.9rem;
  color: var(--ink);
}

.profile-chip span,
.profile-note p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.profile-select,
.profile-stack textarea,
.profile-stack input[type='email'] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(22, 140, 160, 0.22);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.profile-about {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.profile-about p {
  margin: 0 0 0.55rem;
}

.app-chrome-btn.is-current {
  background: transparent;
  border-color: rgba(226, 168, 90, 0.45);
  color: var(--ink);
}

.auth-stage {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
  max-height: 100dvh;
  gap: 0;
  overflow: hidden;
  padding-bottom: 0;
  align-content: stretch;
}

.auth-content {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: center;
  padding: 1rem 0;
  gap: 0.75rem;
}

.auth-actionbar {
  display: grid;
  gap: 0.75rem;
  padding:
    0.75rem
    0
    calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(243, 234, 217, 0.97);
  border-top: 1px solid rgba(22, 140, 160, 0.08);
}

.auth-guest-button {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(22, 140, 160, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.auth-guest-link {
  justify-self: center;
  padding: 0.35rem 0 0.75rem;
}

.profile-logout {
  padding: 0.85rem 1.05rem;
}

.profile-logout-btn {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.form-status {
  margin: 0;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--teal);
}

.form-status:empty,
.form-status[hidden] {
  display: none !important;
}

.form-status.is-error {
  color: var(--coral-deep);
}

.form-status.is-info {
  color: var(--teal);
}

.auth-flash {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal);
}

.auth-flash:empty {
  display: none !important;
}

.auth-error-card {
  border-color: rgba(233, 71, 52, 0.35) !important;
}

.auth-error-text {
  margin: 0;
  color: var(--coral-deep);
  font-size: 0.9rem;
}

.auth-muted {
  margin: 0;
  text-align: center;
}

.auth-form {
  gap: 0.85rem;
}

.auth-form-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.auth-field {
  display: grid;
  gap: 0.35rem;
}

.auth-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1.5px solid rgba(22, 140, 160, 0.22);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-input::placeholder {
  color: rgba(54, 85, 107, 0.45);
}

.auth-input:focus {
  outline: none;
  border-color: rgba(22, 140, 160, 0.55);
  box-shadow: 0 0 0 4px rgba(42, 182, 200, 0.16);
}

.auth-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  margin-top: 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
  .home-app .home-stage,
  .home-slide,
  .home-detail.is-swap,
  .starter-slide,
  .home-carousel-shell,
  .home-series-head {
    animation: none !important;
    transition: none !important;
  }

  .home-app .home-stage {
    opacity: 1;
    transform: none;
  }

  .home-slide {
    transform: none;
    opacity: 1;
  }

  .home-carousel-shell {
    transform: none;
  }
}


.reader-main .panel-image {
  border-bottom-color: rgba(16, 43, 69, 0.12);
}

.cover-stage.app-stage .cover-art {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(52svh, 520px);
  margin-bottom: 0.5rem;
}

.cover-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0 18px;
}

.profile-body {
  display: grid;
  gap: 0.75rem;
  padding: 0.35rem 0 1.25rem;
  align-content: start;
}

/* —— Koleksiyon / rozetler —— */
.app-chrome-nav-end {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  justify-self: end;
}

.collection-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.15rem 2px 0.55rem;
  scrollbar-width: none;
}

.collection-tabs::-webkit-scrollbar {
  display: none;
}

.collection-tab {
  flex: 0 0 auto;
  border: 1px solid rgba(22, 140, 160, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.collection-tab.is-current {
  background: linear-gradient(135deg, #fff7d8, #ffe8a8);
  border-color: rgba(226, 168, 90, 0.55);
  color: var(--ink);
}

.collection-section {
  display: grid;
  gap: 0.75rem;
}

.collection-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.collection-count {
  min-width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--sky-deep);
  font-size: 0.75rem;
  font-weight: 900;
}

.trophy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.trophy-card {
  appearance: none;
  border: 1px solid rgba(22, 140, 160, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.75rem 0.55rem 0.7rem;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(16, 43, 69, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.trophy-card:active {
  transform: scale(0.97);
}

.trophy-card strong {
  font-size: 0.86rem;
  line-height: 1.25;
}

.trophy-series {
  font-size: 0.7rem;
  font-weight: 750;
  color: var(--ink-soft);
}

.trophy-medal,
.trophy-detail-medal {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fffaf0, #f3ead9 55%, #c4a36a);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.92),
    0 0 0 6px rgba(196, 163, 106, 0.4),
    0 10px 18px rgba(26, 47, 58, 0.14);
  animation: trophy-idle 2.8s ease-in-out infinite;
}

.trophy-medal img,
.trophy-detail-medal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.trophy-medal.accent-teal,
.trophy-detail-medal.accent-teal {
  background: radial-gradient(circle at 35% 30%, #fff, #d5ebe8 58%, #1a6b72);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.92),
    0 0 0 6px rgba(26, 107, 114, 0.38),
    0 10px 18px rgba(26, 47, 58, 0.14);
}

.trophy-medal.accent-coral,
.trophy-detail-medal.accent-coral {
  background: radial-gradient(circle at 35% 30%, #fff, #f0d4cb 58%, #c46a52);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.92),
    0 0 0 6px rgba(196, 106, 82, 0.35),
    0 10px 18px rgba(26, 47, 58, 0.14);
}

.trophy-medal.accent-yellow,
.trophy-detail-medal.accent-yellow,
.trophy-medal.accent-amber,
.trophy-detail-medal.accent-amber {
  background: radial-gradient(circle at 35% 30%, #fff, #f3ead9 58%, #d4a84b);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.92),
    0 0 0 6px rgba(212, 168, 75, 0.4),
    0 10px 18px rgba(26, 47, 58, 0.14);
}

.trophy-medal.accent-indigo,
.trophy-detail-medal.accent-indigo {
  background: radial-gradient(circle at 35% 30%, #fff, #d9e4ef 58%, #3d5a73);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.92),
    0 0 0 6px rgba(61, 90, 115, 0.38),
    0 10px 18px rgba(26, 47, 58, 0.14);
}

.trophy-medal.accent-rose,
.trophy-detail-medal.accent-rose {
  background: radial-gradient(circle at 35% 30%, #fff, #f0d9de 58%, #b66b78);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.92),
    0 0 0 6px rgba(182, 107, 120, 0.35),
    0 10px 18px rgba(26, 47, 58, 0.14);
}

.trophy-detail-medal {
  width: 96px;
  height: 96px;
  margin: 0.2rem auto 0.6rem;
  animation: reward-pop 650ms cubic-bezier(0.2, 1.6, 0.4, 1);
}

.trophy-sheet {
  text-align: center;
}

.trophy-sheet .reward-quote {
  text-align: left;
}

@keyframes trophy-idle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.home-collection-link {
  color: var(--sky-deep);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.completion-earned {
  width: min(100%, 22rem);
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.completion-earned .earned-badges {
  margin-top: 0.15rem;
}

.completion-earned .trophy-medal {
  width: 52px;
  height: 52px;
  animation: reward-pop 650ms cubic-bezier(0.2, 1.6, 0.4, 1);
}

.profile-grid .trophy-card {
  width: 100%;
}
