@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #100f18;
  --panel: #1b1927;
  --line: #332c43;
  --ink: #f8f2fb;
  --muted: #c1b8cd;
  --pink: #ffa4ca;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 70% 0, #21172b, transparent 48rem), var(--background); color: var(--ink); font: 1rem/1.5 var(--body); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid #f9acd2; outline-offset: 4px; }
.shell { width: min(100% - 80px, 1280px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 5; background: var(--panel); padding: .75em; }
main { min-height: 65vh; }
main:focus { outline: none; }

.site-header { border-bottom: 1px solid #34293e; background: #12101ae8; }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; font-weight: 700; letter-spacing: .12em; font-size: .96rem; line-height: 1.12; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: linear-gradient(135deg, #ffc2ac, #f794be 58%, #bc95ea); color: #231626; font: 800 1.45rem/1 var(--display); letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .15em; margin-top: 4px; }
.header-inner nav { display: flex; align-self: stretch; gap: 32px; }
.header-inner nav a { display: grid; align-items: center; min-height: 44px; position: relative; color: var(--muted); font-size: .94rem; }
.header-inner nav a:hover, .header-inner nav a[aria-current] { color: var(--ink); }
.header-inner nav a[aria-current]::after { position: absolute; content: ""; background: var(--pink); height: 2px; bottom: -1px; inset-inline: 0; }
.search-button { justify-self: end; display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #201b2b; color: var(--ink); font-size: .88rem; }
.search-button:hover { border-color: var(--pink); }
.search-icon { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; margin-right: 4px; }
.search-icon::after { content: ""; height: 1.5px; width: 5px; position: absolute; right: -4px; bottom: -2px; background: currentColor; transform: rotate(47deg); }
kbd { background: #32293e; color: #e4d6ea; border-radius: 4px; padding: 2px 6px; font: .72rem var(--body); }

.hero { --hero-cycle-ms: 7000; isolation: isolate; position: relative; overflow: hidden; min-height: 465px; margin-top: 26px; display: flex; align-items: center; border: 1px solid #46354c; border-radius: 18px; background: #201527; }
.hero-image, .hero::after { position: absolute; width: 100%; height: 100%; inset: 0; }
.hero-image { z-index: -2; object-fit: cover; object-position: center 52%; }
.hero::after { z-index: -1; content: ""; background: linear-gradient(90deg, #190f23fa, #21152af5 15%, #25182cd6 32%, #271b3590 48%, #2a20381a 74%), linear-gradient(0deg, #1a1129bb 0%, transparent 44%); }
.hero-copy { padding: 52px clamp(32px, 5.4vw, 80px); }
.eyebrow { color: #ffd0e6; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; font-size: .78rem; }
.hero h1 { font: 800 clamp(4.6rem, 9.4vw, 8.5rem)/.88 var(--display); text-transform: uppercase; letter-spacing: -.028em; margin: 15px 0 22px; }
.hero h1 em { position: relative; font-style: normal; }
.hero-title-letters { color: #ffafd4; background: linear-gradient(165deg, #ffe0ba 6%, #fba7cc 65%, #dba5ff); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-title-light { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-game-title {
    position: relative;
    isolation: isolate;
  }
  .hero-game-title em { z-index: 1; }
  .hero-title-letters { position: relative; z-index: 1; }
  .hero-game-title::before, .hero-game-title::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.57em;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(ellipse, #fff3df 0%, #ffc892af 17%, #ffa8cd94 34%, #db86ed4a 49%, #c67ad91b 60%, transparent 74%);
    animation: hero-counterlight calc(var(--hero-cycle-ms) * 1ms) linear infinite;
  }
  .hero-game-title::after {
    left: 50%;
    width: 142%;
    height: 1.78em;
    background: radial-gradient(ellipse, #fff4e6e0 0%, #ffc492a6 24%, #f59ccc75 42%, #c784ee40 55%, transparent 74%);
    animation: hero-counterlight-finale calc(var(--hero-cycle-ms) * 1ms) ease-in-out infinite;
  }
  .hero-title-light, .hero-title-light::after {
    position: absolute;
    inset: 0;
    display: block;
    align-content: center;
    white-space: nowrap;
    pointer-events: none;
  }
  .hero-title-light > span, .hero-title-light::after {
    opacity: 0;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 .052em #ffe6d3f2, -.026em .03em .14em #ffc894c5, .032em -.025em .18em #fcb3f9c0, 0 0 .32em #c075eca0;
  }
  .hero-title-light > span {
    position: relative;
    isolation: isolate;
    animation: hero-letter-wave calc(var(--hero-cycle-ms) * 1ms) ease-in-out infinite both;
    animation-delay: calc(var(--letter, 0) * 288ms);
  }
  .hero-title-light > span:nth-child(2) { --letter: 1; }
  .hero-title-light > span:nth-child(3) { --letter: 2; }
  .hero-title-light > span:nth-child(4) { --letter: 3; }
  .hero-title-light > span:nth-child(5) { --letter: 4; }
  .hero-title-light::after {
    content: attr(data-title);
    text-shadow: 0 0 .06em #ffeddef0, -.035em .038em .17em #ffd1a1d5, .042em -.027em .20em #f9a8eee0, 0 0 .37em #bc7fef9e;
    animation: hero-title-pulse calc(var(--hero-cycle-ms) * 1ms) ease-in-out infinite;
  }
}

@keyframes hero-letter-wave {
  0%, 4%, 18%, 100% { opacity: 0; }
  8% { opacity: .96; }
}
@keyframes hero-counterlight {
  0%, 4% { opacity: 0; transform: translate(-56%, -50%) scaleX(.68); }
  8% { opacity: .87; }
  26% { opacity: .87; }
  32%, 100% { opacity: 0; transform: translate(57%, -50%) scaleX(.68); }
}
@keyframes hero-counterlight-finale {
  0%, 34% { opacity: 0; transform: translate(-50%, -50%) scaleX(.45); }
  49% { opacity: .86; transform: translate(-50%, -50%) scaleX(1); }
  69%, 100% { opacity: 0; transform: translate(-50%, -50%) scaleX(1.12); }
}
@keyframes hero-title-pulse {
  0%, 36%, 65%, 100% { opacity: 0; }
  46% { opacity: .87; }
}
.hero-summary { max-width: 410px; color: #f4e8f7; font-size: 1.13rem; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border: 1px solid transparent; border-radius: 8px; padding: .61rem 1rem; font-weight: 700; font-size: .92rem; }
.primary { color: #241427; background: #ffadd0; }
.primary:hover { background: #ffd3e5; }
.secondary { border-color: #a887a2; background: #21192fb3; color: #fff1fb; }
.secondary:hover { border-color: #ffd3e5; background: #33213c; }
.hero-credit { position: absolute; bottom: 12px; right: 14px; padding: 4px 9px; border-radius: 5px; color: #f4ecfa; background: #181022e6; font-size: .75rem; }
.hero-credit:hover { text-decoration: underline; }

.home-section { margin-top: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 15px; }
.section-heading h2 { font-size: 1.65rem; letter-spacing: -.045em; line-height: 1.15; }
.text-link { color: #ffc1df; text-decoration: underline; text-underline-offset: .22em; text-decoration-color: #e1a4c58a; }
.text-link:hover { text-decoration-color: currentColor; }
.section-heading .text-link { font-size: .875rem; }
.categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rose { --accent: #ffacd2; --tint: #4b293f; }
.mint { --accent: #a0ecdb; --tint: #233e3d; }
.peach { --accent: #ffca9f; --tint: #44322f; }
.violet { --accent: #d5bcff; --tint: #382c4c; }
.category { min-height: 175px; padding: 17px 18px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(147deg, color-mix(in srgb, var(--tint) 55%, var(--panel)), var(--panel) 69%); }
.category:hover, .topic-row:hover { border-color: var(--accent); background: color-mix(in srgb, var(--tint) 62%, var(--panel)); }
.tile-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--tint); color: var(--accent); flex-shrink: 0; }
.category h3 { margin-top: 10px; font-size: 1.06rem; line-height: 1.25; letter-spacing: -.035em; }
.category p { font-size: .89rem; color: var(--muted); margin: 5px 0 10px; }
.category-count { margin-top: auto; color: var(--accent); font-size: .8rem; font-weight: 600; }
.icon { display: block; position: relative; width: 17px; height: 15px; border: 1.5px solid currentColor; }
.icon::before, .icon::after { position: absolute; content: ""; }
.icon-news { border-radius: 2px; }
.icon-news::before { inset: 3px 3px auto; height: 1px; background: currentColor; box-shadow: 0 3px, 0 6px; }
.icon-gamepad { height: 11px; border-radius: 5px; }
.icon-gamepad::before { left: 3px; top: 2.5px; width: 5px; height: 3px; background: currentColor; clip-path: polygon(0 35%, 40% 35%, 40% 0, 60% 0, 60% 35%, 100% 35%, 100% 65%, 60% 65%, 60% 100%, 40% 100%, 40% 65%, 0 65%); }
.icon-gamepad::after { right: 3px; top: 3px; width: 2px; height: 2px; border-radius: 50%; background: currentColor; }
.icon-compass { width: 17px; height: 17px; border-radius: 50%; }
.icon-compass::before { inset: 2px 4px; transform: rotate(37deg); clip-path: polygon(50% 0, 100% 52%, 50% 100%, 0 48%); background: currentColor; }
.icon-book { border-radius: 2px 2px 3px 3px; }
.icon-book::before { top: 0; bottom: 0; left: calc(50% - .5px); width: 1px; background: currentColor; }
.icon-message { border-radius: 3px; height: 12px; }
.icon-message::before { bottom: -4px; left: 3px; width: 5px; height: 5px; border-left: 1.5px solid; border-bottom: 1.5px solid; transform: skewY(-32deg); background: var(--tint); }
.icon-pin { width: 9px; height: 11px; border-radius: 2px 2px 4px 4px; transform: rotate(34deg) translateY(-2px); }
.icon-pin::after { width: 1.5px; height: 6px; top: 9px; left: 2px; background: currentColor; }

.home-columns { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; }
.home-columns > * { min-width: 0; }
.topic-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.topic-row { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 11px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.topic-row.pinned { border-color: #785063; background: #2b2033; --accent: #ffc0db; --tint: #523449; }
.topic-row .tile-icon { width: 32px; height: 32px; }
.topic-info { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.topic-info strong { font-size: .97rem; line-height: 1.25; }
.topic-meta { display: flex; flex-wrap: wrap; gap: 3px 6px; font-size: .8rem; color: var(--muted); }
.pin-label { color: var(--accent); font-weight: 700; }
.reply-count { margin-left: auto; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.gallery-card { display: block; position: relative; isolation: isolate; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.gallery-card:hover { border-color: var(--pink); }
.gallery-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-card > span { display: grid; padding: 13px 16px; gap: 2px; }
.gallery-card small { color: var(--muted); font-size: .8rem; }

.inner-page { padding-top: 26px; }
.breadcrumb { display: flex; gap: 7px 12px; flex-wrap: wrap; color: var(--muted); font-size: .875rem; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.page-heading { margin: 20px 0 24px; padding: clamp(22px, 4vw, 46px); border: 1px solid #47334c; border-radius: 14px; background: radial-gradient(ellipse at top right, #51304a, transparent 80%), #221a2d; }
.page-heading h1 { font: 800 clamp(2.5rem, 5.7vw, 4.6rem)/1 var(--display); }
.page-heading p { color: #e5d5e8; font-size: 1.04rem; margin-top: 11px; }
.panel { padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.panel p, .prototype-note { color: var(--muted); }
.panel h2 { font-size: 1.22rem; }
.panel h2 + p { margin-top: 6px; }
.post-list { display: grid; gap: 10px; }
.post { display: flex; align-items: flex-start; gap: 16px; }
.post p { max-width: 75ch; }
.avatar { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; background: #483349; color: #ffbfdb; font-weight: 700; }
.prototype-note { margin-top: 18px; font-size: .93rem; }
.source-links { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 12px; }
.spoiler-gate .button { margin-top: 18px; }
.spoiler-gate a { display: inline-block; margin: 12px 0 0 14px; }
.about p + h2 { margin-top: 20px; }
.site-footer { margin-top: 45px; padding: 22px 0 28px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer p, .site-footer a { font-size: .84rem; color: var(--muted); }
.site-footer strong { font-size: .95rem; }
.site-footer a:hover { text-decoration: underline; }
.site-footer > div:last-child { display: flex; flex-wrap: wrap; gap: 7px 18px; }

dialog { color: var(--ink); border: 1px solid #674f73; border-radius: 14px; background: #221b2d; width: min(620px, 100% - 26px); padding: 22px; max-height: calc(100% - 28px); }
dialog::backdrop { background: #100a19b5; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dialog-heading h2 { font-size: 1.25rem; }
.close-button { height: 38px; width: 38px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink); background: #32273e; font-size: 1.25rem; }
#search-input { width: 100%; min-height: 44px; border: 1px solid #725e7a; border-radius: 7px; padding: 0 12px; background: #15101d; color: var(--ink); }
#search-results { margin-top: 14px; color: var(--muted); }
#search-results strong { color: var(--ink); }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-columns { grid-template-columns: 1.5fr 1fr; gap: 18px; }
  .reply-count { display: none; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 10px; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; gap: 25px; }
  .search-button { min-width: 44px; justify-content: center; }
  .search-label, .search-button kbd { display: none; }
  .hero { min-height: 490px; align-items: flex-end; margin-top: 15px; border-radius: 13px; }
  .hero-image { object-position: 62% 10%; }
  .hero::after { background: linear-gradient(0deg, #190f23 6%, #231629fa 24%, #261833db 43%, #23172b49 74%, #18102300); }
  .hero-copy { padding: 28px 19px 50px; }
  .eyebrow { font-size: .69rem; letter-spacing: .1em; max-width: 100%; }
  .hero h1 { font-size: clamp(3.25rem, 13.8vw, 5.3rem); margin: 11px 0 14px; }
  .hero-summary { font-size: 1rem; }
  .hero-actions { margin-top: 19px; gap: 8px; }
  .hero-actions .button { width: 100%; }
  .home-section { margin-top: 27px; }
  .section-heading h2 { font-size: 1.45rem; }
  .categories { gap: 9px; }
  .category { min-height: 163px; padding: 12px; }
  .category h3 { font-size: .98rem; }
  .category p { font-size: .85rem; }
  .home-columns { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .spoiler-gate a { margin-left: 0; }
}
