@font-face {
  font-family: "Playfair Display";
  src: url("assets/PlayfairDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("assets/Lora-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("assets/Caveat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya";
  src: url("assets/Alegreya-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("assets/CourierPrime-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --ink: #f6efe4;
  --ink-paper: #2a1810;
  --muted: #b7aea0;
  --muted-paper: #5c4636;
  --gold: #d8c089;
  --gold-btn: linear-gradient(180deg, #f0dfb0, #c9a96a);
  --line: rgba(216, 192, 137, 0.28);
  --wood: #1a110c;
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.42'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  background: #000;
  color: var(--ink);
  font-family: Lora, Georgia, serif;
}

body.is-reading {
  background-color: var(--wood);
  background-image: url("/assets/parsom-wood.jpg");
  background-repeat: repeat;
  background-size: 72px auto;
}

body {
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.phone {
  position: relative;
  width: min(100%, 430px);
  height: 100dvh;
  margin: 0 auto;
  background: #000;
  overflow-x: hidden;
  overflow-y: auto;
}

body.is-reading .phone {
  background: transparent;
  max-width: 100%;
}

@media (min-width: 800px) {
  .phone {
    margin: 20px auto;
    height: calc(100dvh - 40px);
    border-radius: 28px;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
  }
}

.scene {
  position: relative;
  min-height: 100dvh;
  padding: 18px 22px calc(28px + env(safe-area-inset-bottom));
}

@media (min-width: 800px) {
  .scene {
    min-height: calc(100dvh - 40px);
  }
}

.scene-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.scene-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 28%, rgba(0, 0, 0, 0.5) 100%);
}

.gate-bg img {
  object-position: 42% 78%;
  filter: brightness(1.7) contrast(1.12) saturate(1.1);
}

.scene-gate .scene-bg::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.45) 100%);
}

.cover-bg img {
  object-position: center 40%;
}

.scene-cover .scene-bg::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.12) 22%, transparent 42%, rgba(0, 0, 0, 0.5) 100%);
}

.cover-lockup {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 16px;
  left: auto;
  z-index: 3;
  width: auto;
  max-width: calc(100% - 32px);
  pointer-events: none;
}

.cover-lockup .mark {
  min-height: 0;
  gap: 5px;
}

.cover-lockup .mark-icon {
  height: 28px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.82));
}

.cover-lockup .mark-word {
  height: 20px;
  filter:
    invert(1) sepia(0.38) saturate(2.15) brightness(1.34) contrast(1.16)
    drop-shadow(0 1px 3px rgba(0, 0, 0, 0.86));
}

.topbar,
.gate-copy,
.gold-btn,
.ghost-btn,
.scene-foot,
.poem-title,
#verses,
.signed,
.player,
.hand-note,
.close-copy,
.brand-mid,
.tag,
.fine,
.panel-title,
.create-form,
.create-nav,
.create-head,
.stepper {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.brand,
.brand-sm,
.brand-mid {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.28em;
  font-family: "Playfair Display", serif;
  color: var(--gold);
}

.brand-sm,
.brand-mid {
  justify-content: center;
  width: 100%;
}

.brand-mid {
  margin: 18px 0 8px;
  letter-spacing: 0.32em;
}

.quill {
  width: 14px;
  height: 14px;
  display: inline-block;
  background:
    radial-gradient(circle at 20% 80%, var(--gold) 2px, transparent 2.4px),
    linear-gradient(135deg, transparent 46%, var(--gold) 46%, var(--gold) 54%, transparent 54%);
}

.quill.lg {
  width: 22px;
  height: 22px;
  margin: 0 auto 8px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

.mark-icon,
.mark-word {
  display: block;
  width: auto;
  opacity: 1;
  flex-shrink: 0;
  object-fit: contain;
}

.mark-icon {
  height: 44px;
}

.mark-word {
  height: 34px;
  filter:
    invert(1) sepia(0.38) saturate(2.15) brightness(1.3) contrast(1.14)
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.mark.ink .mark-word {
  filter: contrast(1.42) brightness(0.66);
}

.mark.ink .mark-icon {
  filter: sepia(0.35) brightness(0.55);
}

.mark.sm .mark-icon {
  height: 34px;
}

.mark.sm .mark-word {
  height: 28px;
}

.topbar .mark-icon {
  height: 46px;
}

.topbar .mark-word {
  height: 32px;
}

.scroll-brand .mark-icon {
  height: 26px;
}

.scroll-brand .mark-word {
  height: 18px;
}

.top-note,
.dots {
  font-family: Lora, serif;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: none;
}

.note-ico {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--gold);
  border-radius: 2px 8px 2px 8px;
  transform: rotate(-18deg);
}

.icon-btn {
  appearance: none;
  background: none;
  border: 0;
  color: var(--gold);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px 8px 4px 0;
}

.display {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(2rem, 8vw, 2.55rem);
  line-height: 1.2;
  text-align: center;
}

.scene-gate {
  display: flex;
  flex-direction: column;
}

.gate-copy {
  margin-top: auto;
  text-align: center;
  padding-top: 8vh;
}

.subline,
.caption,
.tag,
.fine {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.subline {
  margin-top: 16px;
}

.gold-btn,
.ghost-btn {
  display: block;
  width: min(100%, 320px);
  margin: 28px auto 0;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.gold-btn {
  background: var(--gold-btn);
  color: #2a1d10;
  border-color: #e6d3a2;
}

.gold-btn.sm,
.ghost-btn.sm {
  width: auto;
  min-width: 140px;
  padding: 12px 20px;
  margin: 16px auto 0;
}

.ghost-btn {
  background: transparent;
  color: var(--gold);
  border-color: rgba(216, 192, 137, 0.45);
}

.scene-foot {
  position: relative;
  margin-top: auto;
  padding-top: 36px;
  text-align: center;
}

.scene-foot .tag {
  margin-top: 4px;
  font-size: 0.78rem;
}

.cover-copy {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 78px;
  text-align: center;
}

.caption {
  margin-top: 12px;
  font-size: 0.88rem;
}

.chevron {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.8;
}

.scene-poem {
  background: #050505;
  padding-bottom: 118px;
}

.scroll {
  width: min(100%, 430px);
  margin: 0 auto;
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: 24px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll.is-in {
  opacity: 1;
  transform: none;
}

.scroll-top,
.scroll-bot {
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
}

.scroll-top {
  aspect-ratio: 682 / 188;
  background-image: url("/assets/parsom-top.jpg");
}

.scroll-bot {
  aspect-ratio: 682 / 176;
  background-image: url("/assets/parsom-bot.jpg");
}

/* Orta gövde: JPEG repeat-y yok. Dikişli gürültü + dikeyde sabit gradient. */
.scroll-mid {
  position: relative;
  color: var(--ink-paper);
  padding: 10px 16% 36px;
  background-color: #1a110c;
  background-image:
    var(--paper-noise),
    linear-gradient(
      90deg,
      #1a110c 0%,
      #24160c 5.6%,
      #6a4826 7.5%,
      #d2b58a 8.9%,
      #e8d4ae 18%,
      #efe0c0 50%,
      #e8d4ae 82%,
      #d2b58a 91.1%,
      #6a4826 92.5%,
      #24160c 94.4%,
      #1a110c 100%
    );
  background-repeat: repeat, no-repeat;
  background-size: 120px 120px, 100% 100%;
  background-blend-mode: overlay, normal;
}

.scroll[data-ground="parsom"] .scroll-mid,
.live-poem[data-ground="parsom"] .scroll-mid {
  margin-top: -10px;
  margin-bottom: -10px;
  padding-top: 14px;
  padding-bottom: 42px;
}

.scroll[data-ground="mektup"] .scroll-top,
.scroll[data-ground="mektup"] .scroll-bot,
.live-poem[data-ground="mektup"] .scroll-top,
.live-poem[data-ground="mektup"] .scroll-bot,
.scroll[data-ground="defter"] .scroll-top,
.scroll[data-ground="defter"] .scroll-bot,
.live-poem[data-ground="defter"] .scroll-top,
.live-poem[data-ground="defter"] .scroll-bot,
.scroll[data-ground="gece"] .scroll-top,
.scroll[data-ground="gece"] .scroll-bot,
.live-poem[data-ground="gece"] .scroll-top,
.live-poem[data-ground="gece"] .scroll-bot,
.scroll[data-ground="minimal"] .scroll-top,
.scroll[data-ground="minimal"] .scroll-bot,
.live-poem[data-ground="minimal"] .scroll-top,
.live-poem[data-ground="minimal"] .scroll-bot {
  display: none;
}

.scroll[data-ground="mektup"] .scroll-mid,
.live-poem[data-ground="mektup"] .scroll-mid {
  background-color: #e4d0b0;
  background-image:
    var(--paper-noise),
    linear-gradient(180deg, #ead8bc, #e0c8a6);
  background-repeat: repeat, no-repeat;
  background-size: 140px 140px, 100% 100%;
  background-blend-mode: soft-light, normal;
  padding-top: 28px;
  padding-bottom: 40px;
  border-radius: 2px;
}

.scroll[data-ground="defter"] .scroll-mid,
.live-poem[data-ground="defter"] .scroll-mid {
  background-color: #eadcc4;
  background-image:
    repeating-linear-gradient(
      transparent 0 27px,
      rgba(132, 96, 64, 0.18) 27px 28px
    ),
    var(--paper-noise),
    linear-gradient(180deg, #f0e4cc, #e6d6b6);
  background-repeat: repeat, repeat, no-repeat;
  background-size: 100% 28px, 140px 140px, 100% 100%;
  background-blend-mode: normal, soft-light, normal;
  padding-top: 28px;
  padding-bottom: 40px;
}

.scroll[data-ground="gece"] .scroll-mid,
.live-poem[data-ground="gece"] .scroll-mid {
  background-color: #14100c;
  background-image:
    var(--paper-noise),
    linear-gradient(180deg, #1c1612, #100c08);
  background-repeat: repeat, no-repeat;
  background-size: 140px 140px, 100% 100%;
  background-blend-mode: overlay, normal;
  color: #ead9c4;
  padding-top: 28px;
  padding-bottom: 40px;
}

.scroll[data-ground="gece"] .poem-title,
.scroll[data-ground="gece"] .verse p,
.scroll[data-ground="gece"] .mahlas,
.scroll[data-ground="gece"] .close-lead,
.scroll[data-ground="gece"] .tag.ink,
.live-poem[data-ground="gece"] .poem-title,
.live-poem[data-ground="gece"] .verse p,
.live-poem[data-ground="gece"] .mahlas {
  color: #ead9c4;
}

.scroll[data-ground="gece"] .mark.ink .mark-word,
.live-poem[data-ground="gece"] .mark.ink .mark-word {
  filter:
    invert(1) sepia(1) saturate(4.4) hue-rotate(6deg)
    brightness(1.4) contrast(1.38)
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.scroll[data-ground="gece"] .mark.ink .mark-icon,
.live-poem[data-ground="gece"] .mark.ink .mark-icon {
  filter: none;
}

.scroll[data-ground="minimal"] .scroll-mid,
.live-poem[data-ground="minimal"] .scroll-mid {
  background-color: #f3ead8;
  background-image:
    var(--paper-noise),
    linear-gradient(180deg, #f7f1e4, #efe4d0);
  background-repeat: repeat, no-repeat;
  background-size: 140px 140px, 100% 100%;
  background-blend-mode: soft-light, normal;
  padding-top: 28px;
  padding-bottom: 40px;
}

.scroll-brand {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}

.scroll-brand .mark {
  min-height: 0;
  gap: 5px;
}

.scroll-brand .mark-icon {
  height: 26px;
}

.scroll-brand .mark-word {
  height: 18px;
}

.brand.ink,
.brand-mid.ink {
  color: #6a4e32;
}

.poem-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.55rem, 6.4vw, 2rem);
  text-align: center;
  margin: 4px 0 22px;
  color: var(--ink-paper);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.verse {
  margin: 0 auto 1.7em;
  max-width: 28ch;
  text-align: center;
}

.verse p {
  font-family: Lora, Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--ink-paper);
}

.scroll-finale {
  text-align: center;
  padding: 28px 0 12px;
}

.poem-sign {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin: 2.6em 0 12px auto;
  width: max-content;
  max-width: 100%;
  text-align: right;
}

.poem-sign .mahlas {
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
  color: var(--ink-paper);
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

img.wax-seal,
.wax-seal {
  position: static;
  display: block;
  width: 52px;
  height: 52px;
  max-width: 52px;
  object-fit: contain;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  filter: drop-shadow(0 2px 3px rgba(48, 10, 6, 0.38));
}

.close-lead,
.tag.ink {
  color: var(--muted-paper);
  font-size: 0.95rem;
  line-height: 1.7;
}

.mahlas {
  font-family: "Playfair Display", serif;
  font-size: 1.28rem;
  color: var(--ink-paper);
  margin: 8px 0;
}

.credit,
.music-attrib {
  width: min(100%, 430px);
  margin: 4px auto 8px;
  padding: 10px 18px 8px;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.55;
  color: #cbb89a;
  letter-spacing: 0.01em;
}

.user-music-label {
  width: min(100%, 430px);
  margin: 0 auto 10px;
  padding: 0 18px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #e6d4a8;
}

.ozel-brand {
  width: min(100%, 430px);
  margin: 4px auto 10px;
  padding: 10px 18px 8px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.ozel-brand p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #cbb89a;
}

.ozel-brand .mark-icon {
  height: 28px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}

.ozel-brand .mark-word {
  height: 22px;
}

.store-ctas {
  width: min(100%, 430px);
  margin: 0 auto 36px;
  padding: 4px 16px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.store-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(216, 192, 137, 0.38);
  background: rgba(18, 12, 8, 0.72);
  color: #e8d7b8;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  line-height: 1;
}

.store-cta .play-mark {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.store-play {
  opacity: 0.88;
}

@media (max-width: 370px) {
  .store-ctas {
    flex-direction: column;
    align-items: center;
  }

  .store-cta {
    width: min(220px, 100%);
  }
}

.music-attrib a {
  color: #e6d4a8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ghost-btn.ink {
  color: #6a4e32;
  border-color: rgba(80, 52, 28, 0.35);
}

.fon {
  position: fixed;
  top: calc(50px + env(safe-area-inset-top));
  right: max(10px, calc(50% - 215px + 10px));
  left: auto;
  transform: none;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  color: #e8d7b8;
  font-size: 0.62rem;
}

.fon-toggle {
  margin: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(32, 20, 12, 0.82);
  border: 1px solid rgba(216, 192, 137, 0.35);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  line-height: 1;
}

.fon-toggle .fon-mark {
  display: none;
}

.fon-title {
  display: none;
}

.signed {
  text-align: center;
  margin-top: 36px;
}

.scene-finale {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.finale-bg {
  bottom: 38%;
}

.finale-bg img {
  object-position: 70% 20%;
  filter: brightness(1.25);
}

.finale-bg::after {
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 55%, #000 100%);
}

.hand-note {
  font-family: Caveat, cursive;
  font-size: 1.35rem;
  color: #f3e6c8;
  margin-bottom: 28px;
}

.close-copy {
  line-height: 1.7;
  color: var(--muted);
}

.close-copy .mahlas {
  margin: 6px 0;
  font-size: 1.45rem;
  color: var(--ink);
}

.fine {
  margin-top: 16px;
  font-size: 0.74rem;
}

.missing {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.create-phone {
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.create-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.create-title {
  font-size: 0.78rem;
  color: var(--muted);
}

.stepper {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 20px;
  position: relative;
}

.stepper::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 15px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stepper i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a1c12;
  border: 1px solid rgba(216, 192, 137, 0.55);
  color: var(--gold);
  font-style: normal;
  font-size: 0.72rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.stepper li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(216, 192, 137, 0.62);
  text-align: center;
}

.stepper li span {
  max-width: 100%;
  line-height: 1.25;
}

.stepper .is-on,
.stepper .is-done {
  color: var(--gold);
}

.stepper .is-on i,
.stepper .is-done i {
  background: var(--gold-btn);
  color: #2a1d10;
  border-color: transparent;
}

.create-form {
  flex: 1;
}

.panel-title {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  margin: 8px 0 18px;
}

.create-form label {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.create-form input,
.create-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: #121212;
  border: 1px solid #222;
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 14px;
  font: inherit;
}

.studio .paper-field input {
  background: #f3e6d0;
  color: var(--ink-paper);
  border: 1px solid rgba(90, 58, 32, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 248, 232, 0.35);
  border-radius: 12px;
  text-align: left;
}

.create-form textarea {
  min-height: 160px;
  resize: vertical;
}

.create-form small {
  display: block;
  text-align: right;
  margin-top: 4px;
  color: var(--muted);
}

.cover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.cover-grid button {
  aspect-ratio: 1.35;
  border: 1px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #111 center / cover no-repeat;
  cursor: pointer;
}

.cover-grid button.is-on {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.upload-btn {
  display: block;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 14px;
  color: var(--muted);
  cursor: pointer;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #101010;
  border: 1px solid #1c1c1c;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.track.is-on {
  border-color: var(--gold);
}

.track b {
  display: block;
  font-weight: 400;
  font-size: 1.02rem;
}

.track span {
  font-size: 0.84rem;
  color: var(--muted);
}

.track-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.hint,
.error {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.error {
  color: #e7b08a;
}

.prev-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  text-align: center;
  padding-bottom: 8px;
}

.prev-photo {
  height: 120px;
  background: #111 center / cover no-repeat;
  border-radius: 8px;
  margin-bottom: 10px;
}

.prev-scroll {
  width: 100%;
}

.prev-scroll .scroll-top,
.prev-scroll .scroll-bot {
  pointer-events: none;
}

.prev-scroll .scroll-mid {
  padding: 8px 16% 16px;
}

.prev-template {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: #6a4e32;
  margin-bottom: 8px;
}

.prev-card h3 {
  font-family: "Playfair Display", serif;
  margin: 16px 12px 4px;
}

.create-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.create-nav .gold-btn {
  flex: 1;
  margin: 0;
}

.create-nav .ghost-btn {
  margin: 0;
}

.create-foot {
  text-align: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.hub-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 380px) {
  .scroll-mid {
    padding: 4px 15% 24px;
  }
  .verse {
    max-width: 24ch;
  }
  .verse p {
    font-size: 0.96rem;
  }
}

.scroll-mid::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* —— Oluşturucu stüdyo (okuyucu parşömen kurallarına dokunmaz) —— */
body.create-body {
  background-color: #120c08;
  background-image:
    linear-gradient(180deg, rgba(12, 8, 5, 0.78), rgba(12, 8, 5, 0.9)),
    url("/assets/parsom-wood.jpg");
  background-size: auto, 160px auto;
  background-repeat: repeat;
  color: var(--ink);
}

body.create-body .grain {
  opacity: 0.06;
  mix-blend-mode: soft-light;
}

.studio {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
}

.studio-head {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-bottom: 4px;
}

.studio-head .mark {
  min-height: 0;
}

.studio-head .mark-icon {
  height: 50px;
  filter: none;
}

.studio-head .mark-word {
  height: 38px;
  filter:
    invert(1) sepia(0.32) saturate(1.85) brightness(1.24) contrast(1.1)
    drop-shadow(0 1px 1px rgba(8, 5, 2, 0.5));
}

.studio-head .brand {
  font-size: 0.78rem;
}

.studio-kicker {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.studio-aside {
  max-width: 420px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.studio-edit,
.studio-panel {
  min-width: 0;
  max-width: 100%;
}

.studio-panel {
  background:
    linear-gradient(180deg, rgba(36, 24, 16, 0.94), rgba(16, 10, 7, 0.96));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 16px 10px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(246, 224, 176, 0.08);
}

.field-label {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 12px 0 10px;
}

.poem-editor {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #1a140f;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.poem-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28, 18, 12, 0.95), rgba(18, 12, 8, 0.98));
}

.poem-toolbar,
.tb-row,
.studio,
.studio-edit,
.studio-panel,
.ready-list {
  min-width: 0;
}

.tb-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  max-width: 100%;
}

.tb-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #120c08;
}

.tb-seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 0.88rem "Playfair Display", serif;
  padding: 8px 16px;
  cursor: pointer;
}

.tb-seg-btn.is-on {
  background: rgba(216, 192, 137, 0.18);
  color: var(--gold);
}

.tb-font-note {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
}

.create-form .tb-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.tb-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tb-field select {
  background: #120c08;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font: 0.95rem Lora, Georgia, serif;
  min-width: 128px;
}

.tb-group {
  display: flex;
  gap: 6px;
}

.tb {
  min-width: 38px;
  height: 36px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  font: 0.88rem "Playfair Display", serif;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.tb svg {
  width: 16px;
  height: 16px;
  display: block;
}

.tb-i {
  font-style: italic;
}

.tb-u {
  text-decoration: underline;
}

.tb.is-on {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(216, 192, 137, 0.16);
}

.poem-editor textarea {
  background: #f3e6d0;
  color: #2a1810;
  border: 0;
  border-radius: 0;
  min-height: 280px;
  line-height: 1.85;
  font-size: 1.12rem;
  font-synthesis: weight style;
}

.ground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.ground-card {
  appearance: none;
  position: relative;
  border: 2px solid transparent;
  border-radius: 14px;
  background: rgba(12, 8, 5, 0.55);
  color: var(--ink);
  text-align: left;
  padding: 8px;
  cursor: pointer;
  font: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
}

.ground-card.is-on {
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 1px #e6d09a,
    0 10px 24px rgba(216, 192, 137, 0.32);
}

.ground-thumb {
  position: relative;
  display: block;
  height: 96px;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #2a1c12;
}

.ground-thumb-pic {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: contrast(1.18) saturate(1.22) brightness(1.04);
}

.ground-thumb[data-ground="parsom"] .ground-thumb-pic {
  background-image: url("/assets/parsom-top.jpg");
  background-position: center 42%;
  background-size: 130% auto;
}

.ground-thumb[data-ground="mektup"] .ground-thumb-pic {
  background-image:
    linear-gradient(180deg, rgba(160, 100, 40, 0.16), transparent 28%, transparent 72%, rgba(120, 70, 30, 0.14)),
    url("/assets/zemin-mektup.jpg");
  background-position: center;
  background-size: 100% 100%, 170% auto;
  filter: contrast(1.28) saturate(1.4) sepia(0.18);
}

.ground-thumb[data-ground="defter"] .ground-thumb-pic {
  background-image:
    repeating-linear-gradient(
      transparent 0 11px,
      rgba(110, 78, 48, 0.38) 11px 12px
    ),
    url("/assets/zemin-defter.jpg");
  background-position: center, center 22%;
  background-size: 100% 12px, 180% auto;
  filter: contrast(1.22) saturate(1.15);
}

.ground-thumb[data-ground="gece"] .ground-thumb-pic {
  background-image: url("/assets/zemin-gece.jpg");
  background-position: center;
  background-size: 170% auto;
  filter: contrast(1.28) brightness(1.08);
}

.ground-thumb[data-ground="minimal"] .ground-thumb-pic {
  background-image: url("/assets/zemin-minimal.jpg");
  background-position: center;
  background-size: 170% auto;
  filter: contrast(1.06) saturate(0.55) brightness(1.14);
}

.ground-check {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: #1a1008;
  background: var(--gold-btn);
  border: 1px solid #f3e6c0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.ground-card.is-on .ground-check {
  display: grid;
}

.ground-card b {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--gold);
}

.ground-card span.ground-note {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.studio .cover-grid button {
  position: relative;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.cover-name {
  position: absolute;
  left: 8px;
  bottom: 8px;
  right: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #f6efe4;
  text-shadow: 0 1px 8px #000;
}

.cover-grid .cover-none {
  background:
    linear-gradient(180deg, rgba(18, 12, 8, 0.4), rgba(18, 12, 8, 0.7)),
    url("/assets/parsom-mid.jpg") center / cover;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 0.82rem;
}

.dropzone {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.dropzone.is-over {
  border-color: var(--gold);
  background: rgba(216, 192, 137, 0.08);
}

.dropzone-title {
  font-family: "Playfair Display", serif;
  color: #2a1d10;
  margin: 0 auto 8px;
  width: min(100%, 280px);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--gold-btn);
  border: 1px solid #e6d3a2;
  font-size: 1.02rem;
}

.dropzone-sub {
  font-size: 0.84rem;
  color: var(--muted);
}

.file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.file-thumb {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  background: #111 center / cover no-repeat;
  flex-shrink: 0;
}

.file-meta {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-note {
  font-size: 0.72rem;
  color: var(--muted);
}

.file-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-actions .ghost-btn.sm {
  min-width: 0;
  margin: 0;
  padding: 6px 12px;
  font-size: 0.78rem;
}

.studio-section {
  margin-bottom: 22px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.22rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 8px;
}

.music-pick-btn {
  width: 100%;
  appearance: none;
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  font: inherit;
  font-family: "Playfair Display", serif;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  color: #1a1008;
  background: var(--gold-btn);
  cursor: pointer;
}

.music-chosen {
  margin-bottom: 14px;
}

.music-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 12px;
  background: rgba(8, 5, 2, 0.62);
}

.music-sheet-panel {
  width: min(100%, 480px);
  max-height: min(78dvh, 640px);
  overflow: auto;
  background: #16100c;
  border: 1px solid var(--line);
  border-radius: 18px 18px 12px 12px;
  padding: 14px 14px 18px;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.45);
}

.music-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.music-sheet-head h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--gold);
}

.music-sheet .track-list {
  margin-bottom: 0;
}

.track {
  gap: 10px;
  background: rgba(12, 8, 5, 0.65);
  border-color: var(--line);
}

.track-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-mood,
.track-dur {
  font-size: 0.7rem;
  color: var(--muted);
}

.track-dur {
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.track-play-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #120c08;
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  cursor: pointer;
}

.rights-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.create-form .rights-box {
  margin-bottom: 12px;
}

.create-form .rights-box input {
  width: auto;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-block;
  accent-color: #c9a96a;
}

.ready-list {
  display: grid;
  gap: 12px;
  margin: 8px 0 16px;
  overflow: hidden;
}

.ready-list div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  font-size: 0.88rem;
  overflow: hidden;
}

.ready-list dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.ready-list dd {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ready-file,
.create-form .ready-file {
  display: block;
  width: 100%;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.studio-live {
  background:
    linear-gradient(180deg, rgba(18, 10, 7, 0.35), rgba(18, 10, 7, 0.55)),
    url("/assets/parsom-wood.jpg");
  background-size: auto, 90px auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 14px 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.live-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 10px;
}

.live-gate {
  position: relative;
  width: 100%;
  height: min(46vh, 420px);
  min-height: 240px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #111;
}

.live-gate-bg {
  position: absolute;
  inset: 0;
  background: #111 center / cover no-repeat;
}

.live-gate-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.live-gate-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 1;
  text-align: center;
}

.live-gate-title {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  color: #f6efe4;
  margin-top: 10px;
}

.live-poem {
  width: 100%;
}

.studio-live .scroll-mid {
  padding-left: 15%;
  padding-right: 15%;
}

.studio-live .live-poem[data-ground="parsom"] .scroll-mid {
  margin-bottom: 0;
  padding-bottom: 22px;
}

.studio-live .poem-title {
  font-size: 1.28rem;
  margin: 6px 0 14px;
}

.studio-live .verse {
  max-width: none;
  margin-bottom: 1.1em;
}

.studio-live .mahlas {
  font-size: 1.05rem;
}

.studio-live .poem-sign {
  margin-right: 0;
}

.studio-live .wax-seal {
  width: 44px;
  height: 44px;
  max-width: 44px;
}

.live-music {
  text-align: center;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--gold);
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.live-gate .cover-lockup {
  top: 10px;
  right: 14px;
  left: auto;
}

.create-body .create-nav {
  margin-top: 16px;
  padding: 4px 0 6px;
}

.create-body .create-foot {
  margin-top: 18px;
}

@media (min-width: 960px) {
  .studio-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 28px;
  }

  .studio-live {
    position: sticky;
    top: 16px;
    max-height: calc(100dvh - 32px);
    overflow: auto;
  }

  .cover-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .ground-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .poem-editor textarea {
    min-height: 340px;
  }
}

@media (max-width: 959px) {
  .studio-head {
    justify-items: start;
  }

  .studio-aside {
    text-align: left;
    max-width: none;
  }

  .stepper li span {
    font-size: 0.62rem;
  }
}

.publish-ready {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 8, 6, 0.72);
}

.publish-ready[hidden] {
  display: none;
}

.publish-ready-card {
  width: min(420px, 100%);
  background: #1c140f;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 18px 18px;
  display: grid;
  gap: 14px;
}

.publish-ready-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: var(--gold);
  margin: 0;
}

.ready-url {
  color: var(--ink);
  word-break: break-all;
  font-size: 0.92rem;
}

.mine-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: grid;
  gap: 16px;
}

.mine-list {
  display: grid;
  gap: 12px;
}

.mine-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(20, 12, 8, 0.5);
}

.mine-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.mine-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.mine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mine-empty {
  color: var(--muted);
}

html, body {
  overflow-x: hidden;
}

