/* ───────────── Tema değişkenleri ───────────── */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --text: #1f1a17;
  --muted: #6f655c;
  --border: #e7dfd3;
  --primary: #c0462b;
  --primary-hover: #a63a22;
  --primary-ink: #ffffff;
  --primary-soft: #fbe9e3;
  --accent: #127a78;
  --ok: #2f7d4f;
  --ok-soft: #e3f3e8;
  --warn: #9a5b00;
  --warn-soft: #fdf0d8;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(40, 25, 10, .06), 0 8px 24px rgba(40, 25, 10, .07);
  --radius: 14px;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-read: 'Lora', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110f; --surface: #1d1916; --surface-2: #26211d; --text: #efe7dc; --muted: #a89c8f;
    --border: #352e28; --primary: #e0674b; --primary-hover: #ec7b60; --primary-soft: #3a211a;
    --accent: #3fb6b2; --ok: #5cc185; --ok-soft: #1c3226; --warn: #e2a64a; --warn-soft: #3a2b14; --danger: #f07167;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14110f; --surface: #1d1916; --surface-2: #26211d; --text: #efe7dc; --muted: #a89c8f;
  --border: #352e28; --primary: #e0674b; --primary-hover: #ec7b60; --primary-soft: #3a211a;
  --accent: #3fb6b2; --ok: #5cc185; --ok-soft: #1c3226; --warn: #e2a64a; --warn-soft: #3a2b14; --danger: #f07167;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
/* Okuma ekranı kendi temasını uygular */
body.reading[data-rt="light"] { --bg: #fffdf9; --surface: #ffffff; --surface-2: #f5f0e8; --text: #1f1a17; --muted: #6f655c; --border: #ebe3d7; color-scheme: light; }
body.reading[data-rt="sepia"] { --bg: #f4ecd8; --surface: #f8f1e0; --surface-2: #ebe0c6; --text: #3b2f22; --muted: #76664f; --border: #ddcfb0; color-scheme: light; }
body.reading[data-rt="dark"] { --bg: #121010; --surface: #1b1817; --surface-2: #25211f; --text: #e8e0d4; --muted: #9d9286; --border: #322c28; --primary-soft: #3a211a; color-scheme: dark; }

/* ───────────── Temel ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui);
  font-size: 15px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column;
  transition: background-color .2s, color .2s;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.app { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
.loading { padding: 64px 0; text-align: center; color: var(--muted); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* ───────────── Butonlar & form ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent;
  background: var(--primary); color: var(--primary-ink); font-weight: 600; padding: 9px 16px; border-radius: 999px;
  cursor: pointer; transition: background .15s, transform .05s, border-color .15s; white-space: nowrap; font-size: 14px;
}
.btn:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn.ghost.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 12px 22px; font-size: 15px; }
.icon-btn {
  border: 1px solid var(--border); background: var(--surface); width: 36px; height: 36px; border-radius: 999px;
  cursor: pointer; display: inline-grid; place-items: center; font-size: 15px; flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.link-btn { background: none; border: 0; padding: 6px 8px; margin: -6px -4px; min-height: 32px; color: var(--muted); cursor: pointer; border-radius: 8px; }
.link-btn:hover { color: var(--danger); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-weight: 600; font-size: 13px; }
.field small { color: var(--muted); font-size: 12px; }
.input, .field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .ed-body:focus, .ed-title:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { background: var(--primary-soft); color: var(--danger); padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); color: var(--text);
  border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.sm { font-size: 11px; padding: 1px 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* ───────────── Üst bar ───────────── */
.header {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border);
}
.hd-inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.logo:hover { color: var(--text); }
.logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--primary); border-radius: 9px; font-size: 16px; }
.search { flex: 1; max-width: 420px; }
.search input {
  width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 16px 8px 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23887' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center;
}
.search input:focus { outline: none; border-color: var(--primary); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.hd-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.me-link { display: inline-flex; }

.avatar {
  --s: 32px; width: var(--s); height: var(--s); border-radius: 999px; display: inline-grid; place-items: center;
  color: #fff; font-weight: 700; font-size: calc(var(--s) * .42); flex-shrink: 0; user-select: none;
}
.av-0 { background: #c0462b; } .av-1 { background: #127a78; } .av-2 { background: #3b5bdb; } .av-3 { background: #8e44ad; }
.av-4 { background: #2f7d4f; } .av-5 { background: #c2185b; } .av-6 { background: #b26b00; } .av-7 { background: #455a64; }

/* ───────────── Kapaklar ───────────── */
.cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; padding: 12px; color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  isolation: isolate; width: 100%;
}
.cover::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .5), transparent 40%),
              radial-gradient(circle at 85% 90%, rgba(0, 0, 0, .45), transparent 50%);
}
.cover::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: rgba(0, 0, 0, .18); }
.cover-emoji { font-size: 2.6em; text-align: center; margin-top: 18%; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
.cover-title {
  font-family: var(--font-read); font-weight: 700; font-size: 1.05em; line-height: 1.15; text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cover-author { display: block; font-size: .7em; opacity: .9; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.cover-lg { font-size: 22px; max-width: 240px; }
.cover-sm { font-size: 9px; width: 44px; padding: 4px; border-radius: 6px; }
.cover-sm .cover-title, .cover-sm .cover-author { display: none; }
.cover-sm .cover-emoji { margin: auto; font-size: 2.2em; }
.cover-xs { font-size: 8px; width: 34px; padding: 3px; border-radius: 5px; }
.cover-xs .cover-title, .cover-xs .cover-author { display: none; }
.cover-xs .cover-emoji { margin: auto; font-size: 2em; }
.cv-0 { background: linear-gradient(160deg, #7f1d1d, #c0462b 55%, #f59e0b); }
.cv-1 { background: linear-gradient(160deg, #0f4f4b, #0f766e 50%, #5eead4); }
.cv-2 { background: linear-gradient(160deg, #1e3a8a, #3b82f6 55%, #93c5fd); }
.cv-3 { background: linear-gradient(160deg, #2e0854, #7c3aed 55%, #c4b5fd); }
.cv-4 { background: linear-gradient(160deg, #053b2d, #059669 55%, #e9d48a); }
.cv-5 { background: linear-gradient(160deg, #6b0f37, #db2777 55%, #fbcfe8); }
.cv-6 { background: linear-gradient(160deg, #5c2a0b, #d97706 55%, #fde68a); }
.cv-7 { background: linear-gradient(160deg, #0b1120, #334155 55%, #94a3b8); }
.cv-8 { background: linear-gradient(160deg, #6a240d, #ea580c 55%, #fed7aa); }
.cv-9 { background: linear-gradient(160deg, #0b3b3a, #0e7490 55%, #67e8f9); }
.cv-10 { background: linear-gradient(160deg, #3d0442, #a21caf 55%, #f0abfc); }
.cv-11 { background: linear-gradient(160deg, #0b0f17, #1f2937 55%, #b91c1c); }

/* ───────────── Ana sayfa ───────────── */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 28px 32px;
  background: linear-gradient(135deg, var(--primary-soft), var(--surface) 70%); border: 1px solid var(--border);
  border-radius: 24px; margin-bottom: 36px; overflow: hidden;
}
.hero > * { min-width: 0; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 12px; }
.hero h1 { font-family: var(--font-read); font-size: clamp(30px, 5vw, 50px); margin-bottom: 16px; }
.hero h1 em { color: var(--primary); }
.hero p { color: var(--muted); font-size: 16px; max-width: 520px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.hero-covers { display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 260px; }
.hero-covers .cover { width: 140px; font-size: 13px; flex-shrink: 0; }
.hero-covers .cover:nth-child(1) { transform: rotate(-8deg) translateX(30px); }
.hero-covers .cover:nth-child(2) { transform: translateY(-20px); z-index: 1; width: 160px; }
.hero-covers .cover:nth-child(3) { transform: rotate(8deg) translateX(-30px); }

.section { margin-bottom: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; margin: 0; }
.more { color: var(--primary); font-weight: 600; font-size: 14px; white-space: nowrap; }
.row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: 16px; overflow-x: auto; padding: 4px 2px 12px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.row > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 22px 16px; }
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card:hover { color: var(--text); }
.card:hover .cover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .22); }
.card .cover { transition: transform .2s, box-shadow .2s; font-size: 14px; }
.card h3 { font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p { margin: 2px 0 4px; }
.stats { color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }

.cont-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.cont-card:hover { border-color: var(--primary); color: var(--text); }
.cont-card .cover { width: 56px; font-size: 8px; padding: 5px; }
.cont-card .cover-title, .cont-card .cover-author { display: none; }
.cont-card .cover-emoji { margin: auto; }
.cont-card h3 { font-size: 14px; margin: 0 0 2px; }
.cont-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bar { height: 5px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.cat {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  padding: 12px 14px; border-radius: 12px; font-weight: 600;
}
.cat span { font-size: 20px; }
.cat:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }

/* ───────────── Keşfet ───────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 28px; margin: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; scrollbar-width: thin; }
.chip {
  border: 1px solid var(--border); background: var(--surface); padding: 6px 14px; border-radius: 999px; cursor: pointer;
  white-space: nowrap; font-size: 13px; font-weight: 600;
}
.chip:hover { border-color: var(--primary); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters select { width: auto; padding: 7px 10px; border-radius: 999px; }
.empty {
  text-align: center; padding: 56px 16px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted);
}
.empty .big { font-size: 42px; display: block; margin-bottom: 8px; }

/* ───────────── Hikâye sayfası ───────────── */
.story-hero { display: grid; grid-template-columns: 240px 1fr; gap: 36px; margin-bottom: 32px; }
.story-info h1 { font-family: var(--font-read); font-size: clamp(26px, 4vw, 40px); }
.author-line { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.author-line > span { display: flex; flex-direction: column; line-height: 1.25; }
.author-line small { color: var(--muted); }
.stat-row { display: flex; gap: 28px; margin-bottom: 22px; flex-wrap: wrap; }
.stat-row div { display: flex; flex-direction: column; }
.stat-row b { font-size: 20px; }
.stat-row span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.story-body { max-width: 760px; }
.desc { font-family: var(--font-read); font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 32px; }
.tag { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.toc { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.toc li + li { border-top: 1px solid var(--border); }
.toc a { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.toc-n { width: 30px; height: 30px; border-radius: 999px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.toc-t { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toc-plan { margin-top: 0; opacity: .75; }
.toc + .section-head { margin-top: 28px; }
.toc-plan li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; }
.toc-plan .toc-t { font-weight: 500; }
.toc-plan .toc-n { background: transparent; border: 1px dashed var(--border); }
.credit { margin-top: 24px; }
.credit a { text-decoration: underline; }

/* Fotoğraflı kapaklar */
.cover.cover-img { justify-content: flex-end; }
.cover-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cover.cover-img::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .78) 100%); opacity: 1; }
.cover.cover-img .cover-emoji { display: none; }
.cover.cover-img .cover-title { text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.series-mini { color: var(--accent); margin: 2px 0 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.series-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 8px; }
.series-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); min-width: 0; }
.series-item:hover { background: var(--surface-2); color: var(--text); }
.series-item.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.series-item > span { display: flex; flex-direction: column; min-width: 0; }
.series-item b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ───────────── Okuma ekranı ───────────── */
.reader { --rs: 19px; max-width: 760px; margin: 0 auto; }
.reader-bar {
  position: sticky; top: 57px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); padding: 10px 0; border-bottom: 1px solid var(--border);
}
.rb-story { display: flex; gap: 10px; align-items: center; min-width: 0; }
.rb-story span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rb-story b, .rb-story small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-story small { color: var(--muted); }
.rb-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.rb-actions select { max-width: 190px; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.rb-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.rb-progress span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .1s; }
.prefs {
  position: sticky; top: 118px; z-index: 29; margin-left: auto; width: min(320px, 100%); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-top: 8px;
}
.pref { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; }
.pref > span { font-size: 13px; font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--text); color: var(--bg); }

.chapter { padding-top: 36px; }
.ch-head { text-align: center; margin-bottom: 40px; }
.ch-head h1 { font-family: var(--font-read); font-size: clamp(26px, 4vw, 38px); margin: 6px 0 10px; }
.ch-body { font-family: var(--font-read); font-size: var(--rs); line-height: 1.85; }
.reader.rf-sans .ch-body { font-family: var(--font-ui); line-height: 1.75; }
.para { position: relative; margin: 0 0 1.1em; padding-right: 40px; border-radius: 6px; transition: background .2s; }
.para.flash { background: var(--primary-soft); }
.para.sep { text-align: center; letter-spacing: .5em; color: var(--muted); }
.pc {
  position: absolute; right: 0; top: .25em; min-width: 28px; height: 24px; padding: 0 7px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: 600 12px var(--font-ui);
  cursor: pointer; opacity: 0; transition: opacity .15s, border-color .15s;
}
.para:hover .pc, .pc.has, .pc:focus-visible { opacity: 1; }
.pc.has { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.pc:hover { border-color: var(--primary); color: var(--primary); }
@media (hover: none) { .pc { opacity: .55; } }
@media (min-width: 980px) { .para { padding-right: 0; } .pc { right: -52px; } }

.ch-foot { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 40px 0 28px; }
.vote-btn.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.ch-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.end-note { color: var(--muted); font-weight: 600; text-align: right; }

.poll { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 36px 0 0; }
.poll h3 { font-size: 16px; margin-bottom: 4px; }
.poll-opt {
  position: relative; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--bg); border-radius: 10px;
  padding: 11px 14px; margin-top: 8px; cursor: pointer; overflow: hidden; display: flex; justify-content: space-between; gap: 10px;
}
.poll-opt:hover { border-color: var(--primary); }
.poll-opt .fill { position: absolute; inset: 0 auto 0 0; background: var(--primary-soft); z-index: 0; transition: width .4s; }
.poll-opt span { position: relative; z-index: 1; }
.poll-opt.mine { border-color: var(--primary); font-weight: 600; }

.comments h3 { font-size: 18px; }
.cm-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.cm-form textarea { width: 100%; min-height: 70px; resize: vertical; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.cm-form textarea:focus { outline: none; border-color: var(--primary); }
.cm-form .btn { align-self: flex-end; }
.cm { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid var(--border); }
.cm-b { flex: 1; min-width: 0; }
.cm-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.cm p { margin: 4px 0 0; overflow-wrap: anywhere; }
.react-pill { display: inline-block; background: var(--surface-2); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; margin-top: 2px; }

/* ───────────── Çekmece (paragraf yorumları) ───────────── */
.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .2s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform .25s ease; padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.dr-head { display: flex; justify-content: space-between; align-items: center; }
.dr-head h3 { margin: 0; font-size: 17px; }
.dr-quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--primary); background: var(--surface-2); border-radius: 0 10px 10px 0; font-family: var(--font-read); font-size: 15px; max-height: 160px; overflow-y: auto; }
.reacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.react {
  border: 1px solid var(--border); background: var(--bg); border-radius: 12px; padding: 8px 4px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 20px;
}
.react span { font-size: 11px; font-weight: 600; color: var(--muted); }
.react:hover { border-color: var(--primary); background: var(--primary-soft); }
.react b { font-size: 11px; color: var(--primary); }
.dr-form { display: flex; gap: 8px; align-items: flex-end; }
.dr-form textarea { flex: 1; resize: none; border: 1px solid var(--border); background: var(--bg); border-radius: 12px; padding: 9px 12px; }
.dr-form textarea:focus { outline: none; border-color: var(--primary); }

/* ───────────── Yazar paneli ───────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 28px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.kpi b { display: block; font-size: 24px; letter-spacing: -.02em; }
.kpi span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.my-list { display: flex; flex-direction: column; gap: 12px; }
.my-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.my-row .cover { width: 64px; font-size: 9px; padding: 5px; }
.my-row .cover-title, .my-row .cover-author { display: none; }
.my-row .cover-emoji { margin: auto; font-size: 2.4em; }
.my-row h3 { font-size: 16px; margin: 0 0 4px; }
.my-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tips { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-top: 28px; }
.tips h3 { font-size: 15px; }
.tips ul { margin: 0; padding-left: 20px; color: var(--muted); }
.tips li { margin-bottom: 4px; }

/* Hikâye düzenleyici */
.se-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.cover-designer { position: sticky; top: 76px; }
.cover-designer .cover { font-size: 17px; max-width: 220px; margin: 0 auto 16px; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 14px; }
.swatch { aspect-ratio: 1; border-radius: 8px; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg) inset; }
.emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.emoji-btn { border: 1px solid transparent; background: transparent; border-radius: 8px; cursor: pointer; font-size: 18px; padding: 4px 0; }
.emoji-btn:hover { background: var(--surface-2); }
.emoji-btn.on { border-color: var(--primary); background: var(--primary-soft); }
.label-sm { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.ch-list { list-style: none; margin: 0; padding: 0; }
.ch-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.ch-list li:first-child { border-top: 0; }
.ch-list .acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }

/* Bölüm editörü */
.editor { max-width: 820px; margin: 0 auto; }
.ed-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; position: sticky; top: 57px; z-index: 20; background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--border); }
.ed-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ed-title { width: 100%; border: 1px solid transparent; background: transparent; font-family: var(--font-read); font-size: 30px; font-weight: 700; padding: 8px 10px; border-radius: 10px; margin-bottom: 10px; }
.ed-toolbar { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; padding: 6px; border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--surface-2); }
.ed-toolbar button { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 6px 10px; min-width: 36px; min-height: 36px; cursor: pointer; font-size: 14px; }
.ed-toolbar button:hover { background: var(--surface); border-color: var(--border); }
.ed-toolbar .spacer { flex: 1; }
.ed-body {
  width: 100%; min-height: 55vh; resize: vertical; border: 1px solid var(--border); border-radius: 0 0 12px 12px; background: var(--surface);
  padding: 20px 22px; font-family: var(--font-read); font-size: 18px; line-height: 1.8;
}
.ed-stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 2px 20px; }
.imla { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.imla h3 { font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.imla-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.imla-item s { color: var(--danger); }
.imla-item ins { color: var(--ok); text-decoration: none; font-weight: 600; }
.poll-ed { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.poll-ed summary { cursor: pointer; font-weight: 600; }
.poll-ed[open] summary { margin-bottom: 14px; }

/* Kütüphane & profil */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .tab { white-space: nowrap; flex-shrink: 0; }
.tab { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--text); border-bottom-color: var(--primary); }
.profile-head { display: flex; gap: 22px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.profile-head h1 { font-size: 28px; margin: 0; }
.profile-head p { margin: 6px 0 10px; max-width: 560px; }
.profile-stats { display: flex; gap: 18px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.profile-stats b { color: var(--text); }
.av-pick { display: flex; gap: 8px; }
.av-pick button { width: 30px; height: 30px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; }
.av-pick button.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg) inset; }

/* Giriş */
.auth { max-width: 420px; margin: 24px auto; }
.auth .panel { padding: 28px; }
.auth h1 { font-family: var(--font-read); font-size: 28px; }
.auth .btn { width: 100%; margin-top: 4px; }
.auth-alt { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.auth-alt a { color: var(--primary); font-weight: 600; }
.demo { margin-top: 16px; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; font-size: 13px; color: var(--muted); }
.demo code { color: var(--text); font-weight: 600; }

/* Bildirimler & alt bilgi */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 420px; pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); animation: toast-in .25s ease; text-align: center; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 18px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
body.reading .footer { display: none; }

/* ───────────── Alt menü (yalnızca mobil) ───────────── */
.tabbar { display: none; }

/* ───────────── Mobil ───────────── */
/* Bildirim zili */
.bell { position: relative; text-decoration: none; }
.bell.on { border-color: var(--primary); }
.bell-n { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--primary);
  color: var(--primary-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }

/* Bildirim listesi */
.notif-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; margin-bottom: 18px; }
.notif { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: var(--text); }
.notif + .notif { border-top: 1px solid var(--border); }
.notif:hover { background: var(--surface-2); color: var(--text); }
.notif.unread { background: var(--primary-soft); }
.notif-ic { position: relative; flex-shrink: 0; }
.notif-type { position: absolute; right: -6px; bottom: -4px; font-size: 15px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.notif-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }

/* Uyarı kutusu */
.notice { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, var(--border)); color: var(--text); }

/* Yorum cevapları ve işlemleri */
.cm-acts { display: flex; gap: 10px; margin-top: 4px; }
.cm-acts .link-btn { margin: 0; padding: 4px 6px; min-height: 32px; }
.cm-acts .cm-reply:hover { color: var(--primary); }
.cm-replies:empty { display: none; }
.cm-replies { margin-top: 4px; padding-left: 12px; border-left: 2px solid var(--border); }
.cm.cm-sub { padding: 10px 0; border-top: 0; }
.cm-reply-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cm-reply-form textarea { width: 100%; resize: vertical; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 12px; padding: 8px 10px; font: inherit; }
.cm-reply-form textarea:focus { outline: none; border-color: var(--primary); }
.cm-reply-acts { display: flex; gap: 8px; justify-content: flex-end; }

/* Şikâyet formu */
.rp-form { display: flex; flex-direction: column; gap: 12px; }
.rp-reasons { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.rp-opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; min-height: 44px; }
.rp-opt:hover { background: var(--surface-2); }
.rp-opt input { accent-color: var(--primary); width: 18px; height: 18px; }
.story-tools { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.story-tools .link-btn { margin: 0; }
.gate { max-width: 520px; margin: 40px auto; }
.more-wrap { text-align: center; margin: 24px 0; }

/* Ayarlar */
.settings { max-width: 760px; margin: 0 auto; }
.settings .panel { margin-bottom: 18px; }
.settings h2 { margin: 0 0 10px; font-size: 18px; }
.set-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.set-form .form-error { grid-column: 1 / -1; }
.set-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

/* Yönetim paneli */
.kpis a.kpi { color: var(--text); }
.kpis a.kpi:hover { border-color: var(--primary); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 28px; }
.chart { margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.chart figcaption { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 10px; flex-wrap: wrap; }
.bars { display: flex; gap: 3px; align-items: flex-end; height: 90px; }
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar-v { width: 100%; min-height: 2px; background: var(--primary); border-radius: 4px 4px 0 0; }
.bar-col:hover .bar-v { background: var(--primary-hover); }
.bars-x { display: flex; justify-content: space-between; margin-top: 6px; }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: block; overflow-x: auto; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl code { font-size: 13px; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.reports { display: flex; flex-direction: column; gap: 12px; }
.report-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.report-t { margin: 10px 0 6px; overflow-wrap: anywhere; }
.report, .report * { min-width: 0; overflow-wrap: anywhere; }
.report-a { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.admin-search { max-width: 420px; margin-bottom: 16px; }

/* Ana sayfa kategori şeridi */
.cat-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 22px; padding-bottom: 2px; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip .cat { flex-shrink: 0; white-space: nowrap; padding: 9px 14px; border-radius: 999px; min-height: 40px; }

/* Hikâye sayfası: tek büyük "Oku" düğmesi + küçük hızlı işlemler */
.quick-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick-acts .btn { font-size: 14px; }

/* Bilgi çubuğu (çerez onayı, bildirim önerisi) */
.promptbar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; width: calc(100% - 32px); max-width: 640px;
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.promptbar p { margin: 0; flex: 1; font-size: 14px; line-height: 1.45; }
.promptbar a { text-decoration: underline; }
.promptbar-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.promptbar-actions .btn { min-height: 36px; }

/* Uygulama ayarları */
.app-settings { max-width: 720px; margin-bottom: 28px; }
.app-settings h2 { margin: 0 0 6px; font-size: 18px; }
.set-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); }
.set-row:first-of-type { border-top: 0; }
.set-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-row small { color: var(--muted); }
.set-row small a { text-decoration: underline; }
.set-row .btn { flex-shrink: 0; min-width: 72px; min-height: 36px; }

/* Gizlilik sayfası */
.legal { max-width: 720px; margin: 0 auto; line-height: 1.65; }
.legal h2 { font-size: 19px; margin-top: 28px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal .btn { margin-left: 8px; vertical-align: middle; }
.footer a { text-decoration: underline; color: inherit; }

@media (max-width: 860px) {
  .quick-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-acts .btn { padding: 10px 8px; min-height: 44px; justify-content: center; white-space: normal; text-align: center; line-height: 1.25; min-width: 0; }
  .actions .primary-read { width: 100%; justify-content: center; }
  body.reading .search { display: none; }
  .promptbar { padding: 12px; }
  .promptbar p { font-size: 13px; }
  .promptbar { bottom: calc(68px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 10px; }
  .promptbar-actions { justify-content: flex-end; }
  body.reading .promptbar { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .header { position: relative; }
  .hd-inner { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 58px;
    font-size: 11px; font-weight: 600; color: var(--muted);
  }
  .tabbar a span { font-size: 20px; line-height: 1.1; filter: grayscale(1); opacity: .75; }
  .tabbar a.on { color: var(--primary); }
  .tabbar a.on span { filter: none; opacity: 1; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  body.reading { padding-bottom: 0; }
  body.reading .tabbar { display: none; }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.reading .toasts { bottom: 20px; }
  .story-hero .cover-lg { margin: 0 auto; }
  .hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .hero-covers { height: 200px; }
  .hero-covers .cover { width: 110px; font-size: 11px; }
  .hero-covers .cover:nth-child(2) { width: 124px; }
  .story-hero { grid-template-columns: 1fr; gap: 20px; }
  .story-hero .cover-lg { max-width: 180px; font-size: 17px; }
  .se-grid { grid-template-columns: 1fr; }
  .cover-designer { position: static; }
  .reader-bar { top: 0; }
  .prefs { top: 62px; }
  .ed-top { top: 0; }
}
@media (max-width: 560px) {
  .hero-covers { display: none; }
  .hero p { font-size: 15px; }
  .app { padding-top: 16px; }
  .nav a { padding: 6px 9px; font-size: 13px; }
  .row { grid-auto-columns: 128px; gap: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 18px 12px; }
  .card .cover { font-size: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .my-row { grid-template-columns: 52px 1fr; }
  .my-row .cover { width: 52px; }
  .my-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .rb-actions select { max-width: 120px; }
  .rb-story .cover-xs { display: none; }
  .ch-nav { flex-direction: column-reverse; align-items: stretch; }
  .ch-nav .btn { width: 100%; }
  .end-note { text-align: center; }
  .ed-title { font-size: 24px; }
  .ed-body { padding: 14px; font-size: 17px; }
  .stat-row { gap: 18px; }
  .hero { padding: 20px 16px; border-radius: 18px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .actions .btn { flex: 1 1 auto; }
  .page-head h1 { font-size: 24px; }
}
@media (max-width: 480px) {
  .hd-right .btn.ghost { display: none; }
}
@media (max-width: 360px) {
  .logo { font-size: 18px; }
  .hd-right .btn.sm { padding: 6px 10px; }
  .emojis { grid-template-columns: repeat(6, 1fr); }
}
