/* Pofu sitesi • "Pofu dünyası" tasarımı: açık mavi gökyüzü, bulutlar, beyaz yuvarlak kartlar. */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/static/fonts/nunito-latin-ext-wght-normal.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: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/static/fonts/nunito-latin-wght-normal.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 {
  --ink: #0f2350;
  --text: #3a4a69;
  --muted: #6b7a97;
  --blue: #2f86ee;
  --blue-2: #1767d8;
  --blue-soft: #e6f1ff;
  --sky: #eaf4ff;
  --line: #dbe8f8;
  --card: #ffffff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(31, 94, 176, 0.12);
  --shadow-lg: 0 18px 50px rgba(31, 94, 176, 0.18);
  --font: 'Nunito', ui-rounded, 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, #e4f1ff 0, #f3f9ff 520px, #fbfdff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
img {
  max-width: 100%;
}
a {
  color: var(--blue-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--blue);
}
h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 900;
  margin: 0 0 0.5em;
}
h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
h3 {
  font-size: 1.15rem;
  font-weight: 800;
}
p {
  margin: 0 0 1em;
}
code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.88em;
  background: var(--blue-soft);
  color: var(--blue-2);
  padding: 0.12em 0.42em;
  border-radius: 7px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.86rem;
}
.center {
  text-align: center;
}
.mt {
  margin-top: 2.2rem;
}
.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}
.narrow {
  width: min(820px, 100% - 32px);
}
.section {
  padding: 48px 0;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
}
:focus-visible {
  outline: 3px solid rgba(47, 134, 238, 0.55);
  outline-offset: 2px;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3f97f2, #1f74e3);
  box-shadow: 0 8px 20px rgba(31, 116, 227, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 26px rgba(31, 116, 227, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-ghost {
  color: var(--blue-2);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow), inset 0 0 0 2px #cfe3fb;
}
.btn-soft {
  color: var(--blue-2);
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-white {
  color: var(--blue-2);
  background: #fff;
  box-shadow: 0 10px 24px rgba(10, 60, 140, 0.25);
}
.btn-sm {
  padding: 7px 16px;
  font-size: 0.92rem;
}
.btn-lg {
  padding: 15px 28px;
  font-size: 1.08rem;
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

/* Üst menü */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(228, 241, 255, 0.95), rgba(228, 241, 255, 0.7) 70%, rgba(228, 241, 255, 0));
  backdrop-filter: blur(6px);
}
.has-overlay .topbar {
  position: absolute;
  inset: 0 0 auto;
  background: none;
  backdrop-filter: none;
}
.nav {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 8px 10px 8px 16px;
  box-shadow: var(--shadow);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--blue-2);
  letter-spacing: -0.02em;
}
.brand img {
  width: 40px;
  height: 40px;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav-links a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--blue-soft);
  color: var(--blue-2);
}
.nav-links a.nav-play {
  color: var(--blue-2);
}
.nav-user {
  display: flex;
  align-items: center;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--blue-soft);
  border-radius: 50%;
  cursor: pointer;
  padding: 12px 11px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--blue-2);
}
.usermenu {
  position: relative;
}
.usermenu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-weight: 800;
  color: var(--ink);
}
.usermenu summary::-webkit-details-marker {
  display: none;
}
.usermenu-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  flex: none;
}
.usermenu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 190px;
  display: grid;
}
.usermenu-list a,
.usermenu-list button {
  font: inherit;
  text-align: left;
  border: 0;
  background: none;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}
.usermenu-list a:hover,
.usermenu-list button:hover {
  background: var(--blue-soft);
}
.usermenu-list form {
  margin: 0;
}

/* Ana sayfa: kahraman alanı */
.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 150px;
}
.hero picture {
  position: absolute;
  inset: 0;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 22% 48%, rgba(240, 248, 255, 0.82), rgba(240, 248, 255, 0.35) 60%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 18px;
  max-width: 640px;
}
.accent {
  background: linear-gradient(180deg, #3f97f2, #1767d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  font-weight: 800;
  color: var(--blue-2);
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.hero-lead {
  font-size: 1.15rem;
  max-width: 500px;
  color: #2c3d60;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 18px;
}
.hero-stats {
  font-weight: 700;
  color: #2c3d60;
}
.hero-stats strong {
  color: var(--blue-2);
}

/* Kartlar */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.features {
  position: relative;
  z-index: 2;
  margin-top: -110px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  display: flex;
  gap: 18px;
  align-items: center;
}
.feature img {
  width: 96px;
  height: 96px;
  flex: none;
  filter: drop-shadow(0 6px 10px rgba(31, 94, 176, 0.18));
}
.feature h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.feature p {
  margin: 0;
}
.link-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
}
.creature-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .creature-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 520px) {
  .creature-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
.creature {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  padding: 18px 12px;
  background: linear-gradient(180deg, #f2f8ff, #fff 55%);
  transition: transform 0.15s ease;
}
.creature:hover {
  transform: translateY(-3px);
  color: var(--ink);
}
.aicon {
  width: var(--s);
  height: var(--s);
  display: inline-grid;
  place-items: center;
  font-size: calc(var(--s) * 0.78);
  line-height: 1;
  flex: none;
}
.aicon .emoji {
  width: 100%;
  height: 100%;
  margin: 0;
}
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.mini h3 {
  margin: 8px 0 4px;
}
.mini p {
  margin: 0;
  font-size: 0.95rem;
}
.mini-emoji {
  font-size: 2rem;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3f97f2, #1f74e3);
  color: #fff;
  font-weight: 900;
  margin-bottom: 10px;
}
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-radius: 28px;
  padding: 36px 40px;
  color: #fff;
  background: linear-gradient(120deg, #3f97f2, #1767d8 70%), #2f86ee;
  box-shadow: var(--shadow-lg);
}
.cta h2,
.cta p {
  color: #fff;
}
.cta p {
  margin: 0;
  opacity: 0.92;
}

/* Rozetler ve çipler */
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #55627a;
  white-space: nowrap;
}
.r-yaygin { background: #eef1f5; color: #5b6578; }
.r-seyrek { background: #e3f6ea; color: #23864a; }
.r-nadir { background: #e3efff; color: #1d68d6; }
.r-epik { background: #f0e6ff; color: #7a3fd6; }
.r-mitik { background: #fff0e1; color: #c56512; }
.r-efsanevi { background: #fff6d6; color: #a37800; }
.r-kristal { background: #e0f7fb; color: #11849a; }
.r-robot { background: #e8edf3; color: #46566e; }
.r-etkinlik { background: #ffe6f1; color: #c2367a; }
.r-masalsi { background: linear-gradient(90deg, #ffe3e3, #fff4d6, #e3f7e8, #e3efff, #f0e6ff); color: #6a3fb6; }
.r-gizli { background: #12305f; color: #e7f1ff; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip,
.chip-btn {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
  text-decoration: none;
  cursor: pointer;
}
.chip {
  cursor: default;
  font-size: 0.8rem;
  padding: 2px 10px;
  color: var(--muted);
}
.chip-btn:hover {
  box-shadow: inset 0 0 0 2px #b9d5f6;
  color: var(--blue-2);
}
.chip-btn.active {
  background: linear-gradient(180deg, #3f97f2, #1f74e3);
  color: #fff;
  box-shadow: none;
}

/* İç sayfa başlığı */
.pagehead {
  padding: 28px 0 8px;
}
.pagehead h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.lead {
  font-size: 1.1rem;
  max-width: 720px;
}
.search {
  font: inherit;
  width: min(520px, 100%);
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  box-shadow: var(--shadow), inset 0 0 0 2px var(--line);
  background: #fff;
  color: var(--ink);
}

/* Dokümantasyon */
.docs {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 24px 0 56px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 2px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}
.toc a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
}
.toc a:hover {
  background: var(--blue-soft);
  color: var(--blue-2);
}
.cmd-group {
  margin-bottom: 32px;
  scroll-margin-top: 96px;
}
.cmd-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.cmd {
  padding: 18px;
}
.cmd p {
  margin: 8px 0 0;
}
.cmd-top {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cmd-usage {
  font-weight: 700;
  font-size: 0.95rem;
}
.cmd-opts {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.92rem;
}
.prose section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin-bottom: 18px;
  scroll-margin-top: 96px;
}
.prose ul {
  padding-left: 20px;
}
.prose li {
  margin-bottom: 4px;
}
.inline-list {
  list-style: none;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.inline-list li {
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 700;
  font-size: 0.92rem;
}
.legal section {
  box-shadow: none;
  padding: 0;
  margin-bottom: 22px;
}
.legal h2 {
  font-size: 1.25rem;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1em;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--ink);
  font-weight: 800;
  background: #f4f9ff;
}

/* Wiki */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.animal {
  scroll-margin-top: 110px;
}
.animal:target {
  box-shadow: 0 0 0 3px #8fc1f8, var(--shadow-lg);
}
.animal-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}
.animal h3 {
  margin: 0 0 4px;
}
.role {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.animal p {
  font-size: 0.95rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 8px;
}
.stats div {
  background: #f4f9ff;
  border-radius: 10px;
  padding: 6px 8px;
}
.stats dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.stats dd {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}
.weapon-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.weapon-head h3 {
  margin: 0;
}
.big-emoji {
  font-size: 2.2rem;
  line-height: 1;
}
.passive h3 {
  margin-bottom: 6px;
}
.passive p {
  margin: 0;
}
.ring-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.ring {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
  color: var(--ink);
}
.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.wall {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.wall img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.wall figcaption {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
}

/* Sıralama */
.ranking {
  list-style: none;
  margin: 0;
  padding: 8px;
}
.ranking li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
}
.ranking li:nth-child(even) {
  background: #f6faff;
}
.rank {
  width: 32px;
  text-align: center;
  font-weight: 900;
  color: var(--muted);
}
.top .rank {
  font-size: 1.4rem;
}
.initial {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-2);
  font-weight: 900;
}
.rname {
  flex: 1;
  font-weight: 800;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rvalue {
  font-weight: 800;
  color: var(--ink);
}
.empty {
  text-align: center;
}

/* Mesaj sayfası */
.message-page {
  padding: 72px 0;
}
.message-page img {
  margin-bottom: 12px;
}
.login-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px;
}

/* Oyna */
.play {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  padding: 24px 0 48px;
  align-items: start;
}
.chat {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: calc(100vh - 140px);
  min-height: 520px;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.chat-head div {
  display: grid;
  line-height: 1.25;
}
.chat-head strong {
  color: var(--ink);
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, #f7fbff, #fff);
}
.chat-welcome {
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.chat-welcome p {
  margin: 0;
}
.msg {
  display: flex;
  gap: 10px;
  max-width: 100%;
}
.msg-avatar {
  width: 38px;
  height: 38px;
  flex: none;
}
.msg-body {
  min-width: 0;
  flex: 1;
  max-width: 560px;
}
.msg-name {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.92rem;
}
.msg-name .tag {
  font-size: 0.66rem;
  background: var(--blue);
  color: #fff;
  border-radius: 5px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: 2px;
}
.msg.mine {
  justify-content: flex-end;
}
.msg.mine .msg-body {
  flex: none;
  max-width: 80%;
  background: linear-gradient(180deg, #3f97f2, #1f74e3);
  color: #fff;
  padding: 8px 14px;
  border-radius: 16px 16px 4px 16px;
  font-weight: 700;
  word-break: break-word;
}
.mtext {
  word-break: break-word;
}
.em {
  position: relative;
  background: #f4f8fd;
  border-left: 4px solid var(--em);
  border-radius: 6px 12px 12px 6px;
  padding: 10px 14px 12px;
  margin-top: 4px;
  font-size: 0.95rem;
  overflow: hidden;
}
.em-thumb {
  float: right;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 0 8px 10px;
}
.em-author {
  font-weight: 800;
  font-size: 0.85rem;
}
.em-title {
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 4px;
}
.em-desc {
  word-break: break-word;
}
.em-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}
.em-field {
  flex: 1 1 100%;
}
.em-field.inline {
  flex: 1 1 150px;
}
.em-fname {
  font-weight: 800;
  color: var(--ink);
}
.em-image {
  display: block;
  max-width: 100%;
  max-height: 420px;
  border-radius: 10px;
  margin-top: 8px;
  clear: both;
}
.em-footer {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  clear: both;
}
.em blockquote {
  margin: 4px 0;
  padding-left: 10px;
  border-left: 3px solid #c9d8ea;
}
.em pre,
.mtext pre {
  background: #e9f1fb;
  border-radius: 8px;
  padding: 8px 10px;
  overflow-x: auto;
  margin: 4px 0;
}
.em pre code,
.mtext pre code {
  background: none;
  padding: 0;
  color: var(--ink);
}
.md-h {
  margin: 4px 0;
  font-size: 1.05rem;
}
.md-sub {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.spoiler {
  background: #2c3d60;
  color: transparent;
  border-radius: 4px;
  cursor: pointer;
}
.spoiler.shown {
  background: #e3ecf7;
  color: inherit;
}
.mention {
  background: #dcebff;
  color: var(--blue-2);
  border-radius: 4px;
  padding: 0 3px;
  font-weight: 700;
}
img.emoji {
  width: 1.375em;
  height: 1.375em;
  vertical-align: -0.35em;
  object-fit: contain;
  margin: 0 0.05em;
}
.em img.emoji,
.mtext img.emoji {
  width: 1.6em;
  height: 1.6em;
}
.mrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.mbtn {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  border: 0;
  border-radius: 10px;
  padding: 7px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.mbtn img.emoji {
  margin: 0;
}
.mbtn.primary {
  background: var(--blue);
  color: #fff;
}
.mbtn.secondary,
.mbtn.link {
  background: #e4ebf4;
  color: var(--ink);
}
.mbtn.success {
  background: #2fae66;
  color: #fff;
}
.mbtn.danger {
  background: #e5485c;
  color: #fff;
}
.mbtn:disabled {
  opacity: 0.5;
  cursor: default;
}
.composer {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.composer input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 12px 16px;
  border-radius: 999px;
  border: 0;
  background: #f1f7ff;
  box-shadow: inset 0 0 0 2px var(--line);
  color: var(--ink);
}
.play-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}
.play-side h3 {
  margin-bottom: 10px;
}
.side-user {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.side-user div {
  display: grid;
  line-height: 1.3;
  min-width: 0;
}
.side-user strong {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sum-big {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sum-level {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  color: var(--ink);
  margin-top: 6px;
}
.bar {
  height: 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  overflow: hidden;
  margin: 6px 0 12px;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6cb2ff, #1f74e3);
}
.sum-list {
  margin: 0;
  display: grid;
  gap: 4px;
}
.sum-list div {
  display: flex;
  justify-content: space-between;
}
.sum-list dt {
  color: var(--muted);
}
.sum-list dd {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Admin */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.tile {
  display: grid;
  padding: 16px 18px;
}
.tile strong {
  font-size: 1.6rem;
  color: var(--ink);
}
.admin-search {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.admin-search .search {
  margin: 0;
}
.notice {
  background: #e3f6ea;
  color: #1d7a43;
  font-weight: 800;
}
td form {
  margin: 0;
}

/* Alt bilgi */
.footer {
  margin-top: 32px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 32px 0 24px;
}
.footer-inner {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-brand strong {
  color: var(--ink);
  font-size: 1.2rem;
}
.footer-brand p {
  margin: 0;
  font-size: 0.92rem;
}
.footer-version,
.update-version {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  vertical-align: middle;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
}
.footer-links a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--blue-2);
}
.footer-note {
  width: min(1180px, 100% - 32px);
  margin: 18px auto 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Ekran boyutları */
@media (max-width: 1000px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .features,
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }
  .docs {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
  .cmd-list {
    grid-template-columns: 1fr;
  }
  .play {
    grid-template-columns: 1fr;
  }
  .play-side {
    position: static;
  }
}
@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
    border-radius: 24px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    order: 3;
    width: 100%;
    flex-direction: column;
    display: none;
    margin: 0;
    padding: 4px 0 6px;
  }
  .nav.open .nav-links {
    display: flex;
  }
  .nav-user {
    order: 2;
  }
  .usermenu-name {
    display: none;
  }
  .hero {
    padding: 96px 0 140px;
    align-items: flex-start;
    min-height: 0;
  }
  .hero picture {
    inset: auto 0 0;
    height: 60%;
  }
  .hero-bg {
    object-position: 75% 60%;
  }
  .hero::after {
    background: linear-gradient(180deg, #e4f1ff 0, #e4f1ff 45%, rgba(228, 241, 255, 0.4) 65%, transparent 80%);
  }
  .hero-inner {
    padding-bottom: 180px;
  }
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .feature img {
    width: 72px;
    height: 72px;
  }
  .cta {
    padding: 28px 24px;
  }
  .prose section {
    padding: 20px;
  }
  .chat {
    height: calc(100vh - 120px);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ana sayfadaki hediyeler */
.perks .perk {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.perk img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.perk h3 {
  margin: 4px 0 0;
}
.perk p {
  margin: 0;
  flex: 1;
}
.perk p:has(+ .perk-tiers) {
  flex: 0 0 auto;
}
.perk-tiers {
  flex: 1;
  margin: 0;
  padding-left: 18px;
  font-size: 0.92rem;
}

/* Güncellemeler sayfası */
.update {
  margin-bottom: 18px;
}
.update h2 {
  margin-top: 0;
}
