/* The Unbloomed — official site. Dark-first palette from docs/ART_DIRECTION.md §2.7 + app icon sky. */
@font-face {
  font-family: "Baloo 2";
  src: url("../assets/fonts/Baloo2-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/Nunito-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #0d1119;
  --bg: #141a28;
  --bg-2: #1b2234;
  --surface: #1e1c1a;
  --surface-2: #2a2622;
  --line: #3a3530;
  --line-hi: #5a5048;
  --accent: #ffc857;
  --accent-2: #f5a83c;
  --accent-ink: #2b1d08;
  --teal: #2ed3b7;
  --sky: #52d6ff;
  --moss: #7e9a4e;
  --danger: #e5484d;
  --text: #f3ede2;
  --muted: #b8afa2;
  --faint: #7f776c;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --head: "Baloo 2", "Trebuchet MS", sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffe09a; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; margin: 0 0 0.4em; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 100; }
.skip:focus { top: 8px; }

/* Language toggling: elements carry lang="tr" copies; the active language hides the other. */
[data-lang="en"] [lang="tr"], [data-lang="tr"] [lang="en"] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 25, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 150px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 10px;
}
.nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.lang { display: inline-flex; border: 1px solid var(--line-hi); border-radius: 999px; overflow: hidden; margin-left: 8px; }
.lang button {
  background: transparent; color: var(--muted); border: 0; font: inherit; font-weight: 800;
  padding: 6px 12px; cursor: pointer; font-size: 0.85rem; letter-spacing: 0.04em;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-hi); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.nav-toggle svg { display: block; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(13, 17, 25, 0.97); padding: 12px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1.05rem; }
  .lang { margin: 10px 0 0; align-self: flex-start; }
}

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 980px); display: grid; place-items: center;
  isolation: isolate; overflow: hidden; text-align: center; padding: clamp(40px, 8vh, 96px) 0;
}
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(13, 17, 25, 0.45), rgba(13, 17, 25, 0.25) 35%, rgba(20, 26, 40, 0.8) 82%, var(--bg) 100%);
}
@media (min-width: 1000px) and (orientation: landscape) {
  .hero { text-align: left; place-items: center start; }
  .hero-inner { max-width: 640px; margin-left: max(var(--gutter), calc((100vw - 1160px) / 2)); }
  .hero .hero-logo { margin-left: 0; }
  .hero .cta { justify-content: flex-start; }
  .hero::before { background:
    linear-gradient(to right, rgba(13, 17, 25, 0.72), rgba(13, 17, 25, 0.35) 50%, rgba(13, 17, 25, 0.05) 75%),
    linear-gradient(to bottom, rgba(13, 17, 25, 0.25), rgba(13, 17, 25, 0) 40%, rgba(20, 26, 40, 0.7) 82%, var(--bg) 100%); }
}
.rain { position: absolute; inset: -10% 0 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image: repeating-linear-gradient(100deg, transparent 0 18px, rgba(220, 235, 255, 0.18) 18px 19px, transparent 19px 42px);
  background-size: 60px 120px; animation: rain 0.9s linear infinite; }
@keyframes rain { to { background-position: -60px 120px; } }
@media (prefers-reduced-motion: reduce) { .rain { animation: none; opacity: 0.15; } }
.hero-inner { max-width: 820px; padding-inline: var(--gutter); }
.hero-logo { width: min(560px, 86vw); margin: 0 auto 18px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); }
.hero-tag { font-family: var(--head); font-weight: 700; font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.35rem); color: var(--accent); margin: 0 0 10px; letter-spacing: 0.02em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.hero-hook { font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); max-width: 640px; margin: 0 auto 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 1.05rem;
  padding: 13px 22px; border-radius: 14px; border: 2px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: #ffe09a; box-shadow: 0 8px 24px rgba(255, 200, 87, 0.25); }
.btn-primary:hover { background: #ffd778; color: var(--accent-ink); }
.btn-ghost { background: rgba(13, 17, 25, 0.7); color: var(--text); border-color: var(--line-hi); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn[aria-disabled="true"] { opacity: 0.7; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; }
.btn .soon { font-family: var(--body); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(255, 255, 255, 0.12); padding: 3px 7px; border-radius: 6px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.hero-meta { margin-top: 22px; font-size: 0.9rem; color: var(--muted); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.hero-meta > span + span::before { content: "·"; margin: 0 8px; color: var(--faint); }

/* Sections */
.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 44px); }
.kicker { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--teal); margin-bottom: 8px; }
.lead { font-size: 1.1em; color: var(--muted); }

.story-grid { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.story-grid figure { margin: 0; }
.story-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.story p { font-size: 1.05em; }
.story p strong { color: var(--accent); font-weight: 800; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset; position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-hi), transparent); }
.card .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 200, 87, 0.12); color: var(--accent); margin-bottom: 14px; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98em; }

/* Survivors */
.survivors { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.survivor { padding: 0; display: flex; flex-direction: column; }
.survivor .portrait { aspect-ratio: 5 / 4; overflow: hidden; background: var(--ink); position: relative; }
.survivor .portrait picture, .boss .art picture { display: contents; }
.survivor .portrait img { width: 100%; height: 100%; object-fit: cover; }
.survivor .body { padding: 18px 22px 20px; }
.survivor .role { color: var(--sig, var(--teal)); font-family: var(--head); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
.survivor .ult { margin-top: 12px; font-size: 0.9rem; color: var(--text); background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--sig, var(--teal)); padding: 8px 12px; border-radius: 0 8px 8px 0; }
.survivor .ult strong { color: var(--accent); }

/* Bosses */
.bosses { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.boss { padding: 0; }
.boss .art { aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; display: grid; place-items: center; position: relative; }
.boss .art img { width: 100%; height: 100%; object-fit: cover; }
.boss .art .zone { position: absolute; left: 12px; top: 12px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(13, 17, 25, 0.8); color: var(--accent); padding: 4px 8px; border-radius: 6px; }
.boss .body { padding: 16px 18px 18px; }
.boss h3 { font-size: 1.2rem; }
.boss p { font-size: 0.92em; }
.boss.mystery h3 { color: var(--muted); }

/* Crew */
.crew { display: flex; flex-wrap: wrap; gap: 12px; }
.crew li {
  list-style: none; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 18px 8px 8px; flex: 1 1 260px; max-width: 420px;
}
.crew .em { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c, #3a3530); color: #10140f; flex: none; font-family: var(--head); font-weight: 800; font-size: 1.1rem; }
.crew .em svg { width: 26px; height: 26px; }
.crew b { display: block; font-family: var(--head); font-size: 1.05rem; }
.crew small { color: var(--muted); display: block; line-height: 1.3; }
.crew ul { padding: 0; margin: 0; display: contents; }

/* Media */
.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.shots figure { margin: 0; }
.shots button { all: unset; display: block; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); width: 100%; }
.shots button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.shots img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.25s ease; }
.shots button:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .shots img { transition: none; } .shots button:hover img { transform: none; } }
.shots figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.shots .wide { grid-column: 1 / -1; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); width: auto; }
dialog.lightbox::backdrop { background: rgba(5, 8, 14, 0.9); }
dialog.lightbox img { max-height: 88vh; width: auto; max-width: 96vw; border-radius: 10px; margin: 0 auto; }
dialog.lightbox .close { position: fixed; top: 14px; right: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line-hi); border-radius: 50%; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }
dialog.lightbox figcaption { color: var(--muted); text-align: center; margin-top: 10px; font-size: 0.95rem; }

/* Follow */
.links { display: flex; flex-direction: column; gap: 10px; }
.links-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; }
.links-row a { flex: 1 1 auto; }
.links a { display: flex; align-items: center; gap: 12px; white-space: nowrap; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.links a:hover { border-color: var(--accent); color: #fff; }
.links a svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.links a .soon { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid var(--line); font-size: 0.66rem; line-height: 1.4; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--ink); padding: 34px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-foot .wrap { display: grid; gap: 20px; grid-template-columns: auto 1fr auto; align-items: center; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.site-foot .pena img { width: 120px; height: auto; opacity: 0.9; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.site-foot nav a { color: var(--text); text-decoration: none; font-weight: 700; }
.site-foot nav a:hover { color: var(--accent); }
.site-foot .copy { text-align: right; }
@media (max-width: 760px) { .site-foot .copy { text-align: center; } }

/* Press kit page */
.press-hero { padding: clamp(40px, 7vw, 80px) 0 10px; }
.press-hero h1 { font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem); font-weight: 800; }
.press-grid { display: grid; gap: 28px; grid-template-columns: 300px 1fr; align-items: start; }
@media (max-width: 860px) { .press-grid { grid-template-columns: 1fr; } }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; position: sticky; top: 84px; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 0.95rem; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; }
.press-section { margin-bottom: clamp(34px, 5vw, 56px); }
.press-section h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 16px; }
.dl { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.dl a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; text-decoration: none; color: var(--text); }
.dl a:hover { border-color: var(--accent); }
.dl .thumb { aspect-ratio: 16 / 9; background: var(--ink); display: grid; place-items: center; padding: 10px; }
.dl .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.dl .thumb.cover { padding: 0; }
.dl .thumb.cover img { width: 100%; height: 100%; object-fit: cover; }
.dl .thumb.light { background: #f3ede2; }
.dl .label { padding: 10px 12px; font-size: 0.9rem; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.dl .label small { color: var(--muted); font-weight: 600; }
.press ul.bullets { padding-left: 1.2em; }
.press ul.bullets li { margin-bottom: 6px; }
.notice { background: rgba(46, 211, 183, 0.08); border: 1px solid rgba(46, 211, 183, 0.3); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.95rem; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; background: rgba(255, 255, 255, 0.07); padding: 1px 6px; border-radius: 5px; }

/* Legal / support pages (privacy.html, support.html) */
.legal { padding-bottom: clamp(40px, 7vw, 80px); }
.legal-grid { display: grid; gap: 28px; grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; } .toc { position: static; } }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; position: sticky; top: 84px; font-size: 0.95rem; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.legal .doc { max-width: 76ch; }
.legal .doc h2 { scroll-margin-top: 84px; }
.legal .doc h3 { margin-top: 1.4em; }
.legal .doc ul { padding-left: 1.2em; }
.legal .doc li { margin-bottom: 6px; }
.legal .doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0 0 1.2em; }
.legal .doc th, .legal .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.legal .doc th { color: var(--muted); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.legal .doc td:first-child { font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) { .legal .doc table, .legal .doc thead, .legal .doc tbody, .legal .doc tr, .legal .doc th, .legal .doc td { display: block; } .legal .doc thead { display: none; } .legal .doc td { border: 0; padding: 4px 0; white-space: normal; } .legal .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; } }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq details[open] { border-color: var(--line-hi); }
.faq summary { cursor: pointer; padding: 14px 18px; font-family: var(--head); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent); font-weight: 800; width: 1em; flex: none; }
.faq details[open] summary::before { content: "–"; }
.faq summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq .answer { padding: 0 18px 16px 44px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer kbd { font-family: ui-monospace, Menlo, monospace; font-size: 0.85em; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-hi); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--text); }
.contact-card { background: rgba(255, 200, 87, 0.08); border: 1px solid rgba(255, 200, 87, 0.35); border-radius: var(--radius); padding: 18px 22px; }
.contact-card h2 { border: 0; margin-bottom: 8px; }
.contact-card p:last-child { margin: 0; }
