@font-face {
  font-family: ArchiveSong;
  src: url(./archive-serif.woff) format("woff");
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a1013;
  --panel: #10191d;
  --panel2: #152126;
  --fg: #e6ece9;
  --muted: #9aa9a9;
  --ghost: #839798;
  --accent: #9ce9d6;
  --line: rgba(153,189,186,.17);
  --serif: ArchiveSong,"Noto Serif CJK SC","Songti SC","STSong","SimSun",serif;
  --sans: Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;
  --mono: "IBM Plex Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,input,textarea,select {
  font: inherit;
  color: inherit;
}

button,a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button {
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button:disabled {
  opacity: .5;
  cursor: wait;
}

[hidden] {
  display: none!important;
}

h1,h2,h3,p,figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

.ico {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

main:focus {
  outline: 0;
}

.shell {
  width: min(1280px,88%);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  background: var(--accent);
  color: #0b1718;
  padding: 10px 15px;
}

.skip-link:focus {
  top: 8px;
}

.site-header {
  height: 72px;
  background: #0b1114;
  border-bottom: 1px solid #243033;
  position: relative;
  z-index: 8;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  color: #9ce3cd;
}

.brand-type {
  display: grid;
  align-content: center;
  gap: 5px;
}

.brand-type strong {
  font: 700 21px/1 var(--serif);
  letter-spacing: .14em;
  color: #e3eae4;
}

.brand-type small {
  font: 500 10px/1.15 var(--mono);
  letter-spacing: .2em;
  color: #90aaa5;
}

.primary-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 32px;
}

.primary-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: #a4b1b2;
  font-size: .91rem;
  white-space: nowrap;
  transition: color .2s;
}

.primary-nav a:hover,.primary-nav a.active {
  color: var(--accent);
}

.primary-nav a.active:after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: 11px;
  left: 22%;
  right: 22%;
  background: #8edac7;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-btn {
  color: #bccac8;
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 38px;
  padding: 7px;
  border-radius: 4px;
}

.icon-btn:hover,.sound-btn:hover {
  color: var(--accent);
  background: #162426;
}

.tool-rule {
  height: 18px;
  width: 1px;
  background: var(--line);
}

.sound-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #acbcb9;
  padding: 5px 7px;
  font-size: .875rem;
  border-radius: 4px;
}

.sound-state {
  border: 1px solid #364447;
  border-radius: 3px;
  padding: 1px 4px;
  font: 12px/1.2 var(--sans);
  color: #91a4a2;
}

.wave-icon {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  height: 17px;
}

.wave-icon i {
  width: 2px;
  height: 7px;
  background: currentColor;
  border-radius: 1px;
}

.wave-icon i:nth-child(2) {
  height: 13px;
}

.wave-icon i:nth-child(3) {
  height: 17px;
}

.wave-icon i:nth-child(4) {
  height: 10px;
}

.wave-icon i:nth-child(5) {
  height: 6px;
}

.sound-btn[aria-pressed=true] {
  color: var(--accent);
}

.sound-btn[aria-pressed=true] .wave-icon i {
  animation: wave .8s ease-in-out infinite alternate;
}

.sound-btn[aria-pressed=true] .wave-icon i:nth-child(2n) {
  animation-delay: -.4s;
}

.mobile-toggle {
  display: none;
}

.hero {
  height: clamp(430px,34.7vw,560px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #142323;
}

.hero-art,.hero-shade,.dust,.mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-art {
  z-index: -4;
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 69% 53%;
  transform: scale(1.016) translate(var(--px,0px),var(--py,0px));
  transition: transform 1s ease-out;
}

.hero-art .scene-enter {
  animation: scene-in .75s both;
}

.hero-shade {
  z-index: -3;
  background: linear-gradient(90deg,rgba(5,12,15,.68),rgba(6,13,16,.40) 27%,rgba(8,16,18,.04) 59%,rgba(8,13,16,.02)),linear-gradient(0deg,rgba(10,16,19,.98),rgba(10,16,19,.58) 6%,rgba(10,16,19,0) 29%,transparent 86%,rgba(9,16,18,.16));
}

.mist {
  z-index: -2;
  opacity: .38;
  background: radial-gradient(ellipse 38% 15% at 68% 75%,rgba(145,225,204,.22),transparent 78%);
  animation: mist 15s ease-in-out infinite alternate;
}

.hero-layout {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 1;
  margin: 0 0 8px 0;
}

.eyebrow,.section-eng,.card-eng,.scene-meta,.date,.tag-mono {
  font-family: var(--mono);
  text-transform: uppercase;
}

.eyebrow {
  font-size: .75rem;
  letter-spacing: .22em;
  font-weight: 600;
  color: #9edcc9;
  line-height: 1.5;
}

.ruled {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ruled:before {
  content: "";
  width: 32px;
  height: 1px;
  background: #91dac2;
}

.hero h1 {
  font: 700 clamp(64px,5.65vw,92px)/1.16 var(--serif);
  color: #edf1e9;
  letter-spacing: .055em;
  margin: 15px 0 16px;
  text-shadow: 0 4px 28px #08141055;
}

.hero-copy p {
  font-size: clamp(16px,1.17vw,19px);
  line-height: 1.9;
  letter-spacing: .04em;
  color: #c3d0cd;
  text-shadow: 0 1px 10px #071012;
}

.hero-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 27px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 20px;
  font-size: .94rem;
  font-weight: 550;
  letter-spacing: .035em;
  line-height: 1.4;
  border-radius: 5px;
  border: 1px solid var(--line);
  transition: background .18s,border-color .18s,transform .18s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: #a2e6d2;
  border-color: #a2e6d2;
  color: #102522;
  box-shadow: 0 4px 21px #09161038;
}

.btn.primary:hover {
  background: #bcf4e5;
}

.btn.secondary {
  background: #101c2099;
  border-color: #5d78756b;
  color: #d9e4df;
  backdrop-filter: blur(6px);
}

.btn.secondary:hover,.btn.ghost:hover {
  border-color: #83b9a9;
  background: #1a292a;
}

.btn.ghost {
  background: #142023;
  color: #d0dfdb;
}

.dust {
  z-index: -1;
}

.dust i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #c6ffdf;
  box-shadow: 0 0 5px #9af8d4;
  opacity: 0;
  animation: drift var(--duration,12s) linear infinite;
  animation-delay: var(--delay,0s);
}

.scene-bar {
  position: absolute;
  right: 0;
  bottom: 23px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #dae8df;
  text-shadow: 0 1px 5px #081012;
}

.scene-bar>.ico {
  width: 15px;
  height: 15px;
  color: #9fd6c6;
}

.scene-caption {
  font-size: .82rem;
  letter-spacing: .08em;
}

.scene-meta {
  color: #9fb0ae;
  font-size: .72rem;
  letter-spacing: .11em;
}

.slide-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 3px;
}

.slide-tabs button {
  width: 25px;
  height: 28px;
  padding: 0 2px;
  display: grid;
  align-items: center;
}

.slide-tabs button:after {
  content: "";
  height: 3px;
  background: #70827d80;
  border-radius: 3px;
}

.slide-tabs button[aria-pressed=true]:after {
  background: #a5e4ce;
  box-shadow: 0 0 7px #8bd5bb55;
}

.slide-tabs button:hover:after {
  background: #c1ebda;
}

.home-content {
  padding-top: 37px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 21px;
}

.head-pair {
  display: flex;
  align-items: baseline;
  gap: 17px;
}

.section-head h2,.section-title {
  font: 700 clamp(27px,2.2vw,36px)/1.38 var(--serif);
  color: #e4eae3;
  letter-spacing: .055em;
}

.section-eng {
  font-size: .74rem;
  line-height: 1.3;
  letter-spacing: .17em;
  color: #8aa29f;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aec1bb;
  font-size: .85rem;
  white-space: nowrap;
  padding: 5px 0;
}

.text-link .ico {
  width: 15px;
  height: 15px;
}

.text-link:hover,.footer-links a:hover,.footer-links button:hover,.crumb a:hover {
  color: var(--accent);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 17px;
}

.collection-card {
  min-width: 0;
  display: block;
  background: #10181b;
  border: 1px solid #293437;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  transition: transform .25s,border-color .25s,box-shadow .25s;
}

.collection-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb,var(--tone) 58%,#243338);
  box-shadow: 0 10px 36px #0206075c;
}

.cover-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.28;
  background: #1b2729;
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.collection-card:hover img,.work-card:hover img {
  transform: scale(1.045);
}

.cover-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(10,16,19,.39),transparent 48%);
}

.cat-symbol {
  position: absolute;
  z-index: 1;
  left: 13px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #0c1718ab;
  color: var(--tone);
  border: 1px solid #c9e8dc40;
  border-radius: 5px;
  backdrop-filter: blur(5px);
}

.cat-symbol .ico {
  width: 17px;
  height: 17px;
}

.cat-body {
  padding: 15px 17px 16px;
  position: relative;
}

.card-eng {
  font-weight: 550;
  font-size: .7rem;
  letter-spacing: .14em;
  line-height: 1.4;
  color: var(--tone);
}

.cat-body h3 {
  font: 700 clamp(22px,1.65vw,27px)/1.35 var(--serif);
  margin: 4px 0 5px;
  color: #e8ede5;
  letter-spacing: .07em;
}

.cat-body p {
  font-size: .85rem;
  color: #aab6b5;
  line-height: 1.7;
}

.worlds {
  --tone: #96d8bf;
}

.games {
  --tone: #b4d09a;
}

.journal {
  --tone: #d7b487;
}

.gallery {
  --tone: #c8b4d6;
}

.recent {
  padding: 43px 0 55px;
}

.recent-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 35px;
  border-top: 1px solid var(--line);
}

.recent-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
  padding: 16px 1px;
  border-bottom: 1px solid var(--line);
  transition: color .2s;
}

.recent-row:hover {
  color: var(--accent);
}

.row-thumb {
  width: 68px;
  height: 47px;
  border-radius: 4px;
  object-fit: cover;
  object-position: 50% 35%;
  background: #273033;
  flex-shrink: 0;
}

.row-type {
  display: block;
  font-size: .74rem;
  color: var(--tone);
  line-height: 1.6;
}

.row-title {
  display: block;
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 500;
}

.date {
  font-size: .74rem;
  white-space: nowrap;
  color: #96a5a5;
  letter-spacing: .04em;
}

.recent-row .date {
  margin-left: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #090f11;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}

.credit,.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #97aaa6;
  font-size: .82rem;
}

.credit i {
  font: inherit;
  color: #506661;
  margin: 0 4px;
}

.footer-mark {
  color: #86afa2;
  width: 25px;
  height: 25px;
}

.footer-links {
  gap: 20px;
}

.footer-links button {
  padding: 0;
  font: inherit;
  color: inherit;
}

.inner-page {
  min-height: 70vh;
  padding-top: 31px;
  padding-bottom: 64px;
}

.crumb {
  font-size: .84rem;
  color: #9caba8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.crumb span.divider {
  color: #526562;
}

.inner-intro {
  position: relative;
  isolation: isolate;
  background: #122024;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 31px 34px 35px;
  margin-bottom: 24px;
}

.inner-intro:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--bgimage);
  background-size: cover;
  background-position: right 43%;
  opacity: .64;
}

.inner-intro:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#0d191cf5 7%,#0e191de6 31%,#0d171c88 64%,#0c161811);
}

.inner-intro h1,.entry-summary h1,.manage-title {
  font: 700 clamp(36px,4.2vw,62px)/1.3 var(--serif);
  letter-spacing: .04em;
  margin: 8px 0 9px;
}

.inner-intro p,.entry-summary>.intro,.form-help {
  color: #adbfbb;
}

.filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter {
  font-size: .88rem;
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 4px;
  color: #b5c3bf;
  white-space: nowrap;
}

.filter[aria-current=page],.filter:hover {
  color: var(--accent);
  border-color: #628b7a;
  background: #152a24;
}

.count {
  color: var(--muted);
  font-size: .86rem;
  white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  transition: border-color .2s;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  border-color: #577268;
}

.work-pic {
  aspect-ratio: 2.1;
  overflow: hidden;
  background: #263132;
}

.work-pic img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transition: transform .45s;
}

.work-info {
  padding: 17px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.work-info h2 {
  font: 700 1.35rem/1.5 var(--serif);
  margin: 4px 0 7px;
}

.work-info p {
  font-size: .92rem;
  color: #adbab6;
  margin-bottom: 18px;
}

.work-info .date {
  margin-top: auto;
}

.entry-summary {
  max-width: 850px;
  margin: 10px 0 27px;
}

.entry-summary h1 {
  font-size: clamp(34px,3.5vw,54px);
}

.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: .79rem;
  color: #b1c7bd;
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(200px,27%);
  gap: clamp(30px,6vw,90px);
  align-items: start;
}

.prose {
  max-width: 800px;
  font-size: 1.06rem;
  line-height: 1.98;
  color: #c9d3cf;
  overflow-wrap: anywhere;
}

.prose p,.prose ul,.prose ol,.prose blockquote {
  margin: 0 0 1.12em;
}

.prose h2,.prose h3 {
  font: 700 1.5rem/1.5 var(--serif);
  color: #e5ebe2;
  margin: 1.45em 0 .65em;
}

.prose>:first-child {
  margin-top: 0;
}

.prose blockquote {
  border-left: 2px solid #79af99;
  color: #c5ddd1;
  padding: 9px 18px;
  background: #11201d;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
}

.prose code {
  padding: 1px 5px;
  color: #bed9d2;
  background: #1b2a29;
  border-radius: 3px;
}

.prose pre {
  background: #101a1e;
  white-space: pre-wrap;
  padding: 16px;
  border: 1px solid var(--line);
}

.article-side {
  padding: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-side h2 {
  font: 700 1.1rem var(--serif);
  margin-bottom: 12px;
}

.article-side a {
  display: block;
  color: #abbcb8;
  padding: 8px 0;
  font-size: .94rem;
}

.article-side a:hover {
  color: var(--accent);
}

.detail-illustration {
  max-height: 470px;
  width: 100%;
  object-fit: cover;
  margin-bottom: 26px;
  border-radius: 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin: 20px 0 26px;
}

.gallery-tile {
  padding: 0;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.gallery-tile img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: #77756f;
}

.gallery-tile.solo img {
  aspect-ratio: 1;
}

.gallery-tile span {
  display: block;
  padding: 9px 12px;
  font-size: .9rem;
}

.gallery-tile:hover {
  border-color: #9eac9b;
}

.game-stage {
  background: #10191b;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  margin: 22px 0;
  position: relative;
}

.game-cover {
  height: clamp(220px,31vw,400px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
}

.game-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.game-cover:after {
  position: absolute;
  content: "";
  inset: 0;
  background: rgba(5,12,13,.55);
  z-index: -1;
}

.game-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  padding: 6px 12px;
  background: #172023;
  color: #bccbc6;
  font-size: .86rem;
}

.game-bar button {
  font: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
}

.game-stage iframe {
  display: block;
  width: 100%;
  height: min(80vh,850px);
  min-height: 420px;
  border: 0;
  background: #101517;
}

.game-stage.wide {
  position: fixed;
  inset: 0;
  z-index: 15;
  margin: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: #0a1011;
}

.game-stage.wide iframe {
  height: 0;
  flex: 1;
  min-height: 0;
}

.game-stage.wide .game-cover {
  flex: 1;
}

.empty-state {
  padding: 30px;
  color: #b3c4bf;
  border: 1px dashed var(--line);
  border-radius: 5px;
}

.plain-status {
  padding: 75px 0;
  min-height: 55vh;
}

.plain-status h1 {
  font-family: var(--serif);
  margin: 10px 0;
}

.plain-status p {
  color: var(--muted);
  margin-bottom: 20px;
}

.archive-dialog {
  border: 1px solid #3a514c;
  background: #111b1f;
  color: var(--fg);
  padding: 0;
  border-radius: 9px;
  width: min(600px,calc(100vw - 32px));
  max-height: 85dvh;
  box-shadow: 0 35px 110px #020707aa;
}

.archive-dialog::backdrop {
  background: #040a0cce;
  backdrop-filter: blur(5px);
}

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 13px 18px;
}

.dialog-top h2 {
  font: 700 1.25rem var(--serif);
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 18px 10px;
  border: 1px solid #52756b;
  background: #0d1719;
  border-radius: 5px;
  padding: 8px 12px;
  color: var(--accent);
}

.search-input-row input {
  width: 100%;
  min-width: 0;
  color: var(--fg);
  background: none;
  border: none;
  outline: 0;
  font-size: 1rem;
  padding: 5px 0;
}

.search-results {
  padding: 0 14px 16px;
  max-height: 49dvh;
  overflow: auto;
}

.search-results a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 11px 6px;
}

.search-results a:hover {
  background: #1a2929;
}

.search-results .type-icon {
  color: var(--tone);
}

.search-results small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
}

.search-results .search-empty {
  margin: 15px;
  color: var(--muted);
}

.result-count {
  color: var(--muted);
  font-size: .79rem;
  margin: 7px 20px;
}

.archive-dialog.lightbox {
  width: min(1020px,calc(100vw - 24px));
  max-height: 95dvh;
  background: #0a1012;
}

.lightbox .light-art {
  max-height: 74dvh;
  width: 100%;
  object-fit: contain;
  background: #172023;
}

.lightbox .light-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 10px;
}

.lightbox .light-toolbar span {
  color: var(--muted);
  font-size: .84rem;
}

.lightbox .light-toolbar button {
  font-size: .9rem;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%,12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s,transform .2s;
  background: #1b2c2b;
  border: 1px solid #567269;
  color: var(--fg);
  padding: 9px 17px;
  font-size: .9rem;
  z-index: 25;
  border-radius: 5px;
  text-align: center;
}

.toast.visible {
  transform: translate(-50%,0);
  opacity: 1;
}

.form-panel {
  max-width: 780px;
  padding: 23px;
  margin: 22px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.form-panel label {
  display: grid;
  font-size: .95rem;
  color: #d2ded8;
  gap: 5px;
  margin: 0 0 15px;
}

.form-panel input,.form-panel textarea,.form-panel select {
  border: 1px solid #3b4b49;
  background: #0d1518;
  border-radius: 4px;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
  color: #e2e9e2;
}

.form-panel textarea {
  resize: vertical;
}

.form-panel small {
  color: var(--muted);
  font-size: .82rem;
}

.form-actions,.manager-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.form-feedback {
  color: #ebc1a6;
}

.manager-row {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.manager-row a,.manager-row button {
  font-size: .91rem;
}

.manager-row button {
  color: #a8beb6;
}

.manager-row .text-link {
  color: var(--accent);
}

.admin-list {
  max-width: 800px;
  margin-top: 18px;
}

.admin-muted {
  color: var(--muted);
  font-size: .82rem;
}

@keyframes wave {
  to {
    transform: scaleY(.32);
  }
}

@keyframes drift {
  0% {
    opacity: 0;
    transform: translate(0,12px);
  }
  20% {
    opacity: .7;
  }
  75% {
    opacity: .4;
  }
  100% {
    opacity: 0;
    transform: translate(31px,-39px);
  }
}

@keyframes mist {
  to {
    transform: translateX(-6%) scale(1.12);
    opacity: .7;
  }
}

@keyframes scene-in {
  from {
    opacity: .35;
  }
  to {
    opacity: 1;
  }
}

@media(min-width:1650px) {
  .shell {
    width: min(1440px,86%);
  }
  .home-content {
    padding-top: 43px;
  }
  .cover-frame {
    aspect-ratio: 2.2;
  }
}

@media(max-width:1050px) {
  .shell {
    width: 90%;
  }
  .primary-nav {
    gap: 24px;
  }
  .header-inner {
    gap: 16px;
  }
  .collection-grid {
    gap: 12px;
  }
  .cat-body {
    padding: 13px;
  }
  .work-grid {
    gap: 14px;
  }
  .scene-bar {
    bottom: 17px;
  }
  .head-pair {
    gap: 12px;
  }
  .recent-list {
    column-gap: 20px;
  }
}

@media(max-width:820px) {
  .primary-nav {
    gap: 18px;
  }
  .site-header {
    height: 64px;
  }
  .tool-rule,.sound-state {
    display: none;
  }
  .header-tools {
    gap: 6px;
  }
  .hero {
    height: 415px;
  }
  .hero h1 {
    font-size: 62px;
  }
  .hero-copy p {
    font-size: 16px;
  }
  .collection-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 15px;
  }
  .cover-frame {
    aspect-ratio: 2.5;
  }
  .cat-body {
    padding: 14px 16px;
  }
  .work-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .gallery-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .entry-layout {
    grid-template-columns: 1fr;
  }
  .article-side {
    margin-top: 2px;
  }
  .recent-list {
    grid-template-columns: 1fr;
  }
  .header-inner {
    gap: 10px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
  }
  .brand-type strong {
    font-size: 19px;
  }
  .sound-label {
    display: none;
  }
  .inner-intro {
    padding: 25px;
  }
}

@media(max-width:650px) {
  .shell {
    width: calc(100% - 38px);
  }
  .site-header {
    height: 60px;
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-type {
    gap: 4px;
  }
  .brand-type strong {
    font-size: 18px;
  }
  .brand-type small {
    font-size: 9px;
  }
  .header-tools {
    gap: 2px;
  }
  .sound-btn {
    min-width: 34px;
    min-height: 38px;
    justify-content: center;
  }
  .mobile-toggle {
    display: grid;
  }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 59px;
    background: #101a1dfc;
    box-shadow: 0 12px 20px #050c0e40;
    padding: 6px 19px 12px;
    border-bottom: 1px solid var(--line);
    z-index: 5;
  }
  .primary-nav.open {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 0;
  }
  .primary-nav a {
    padding: 12px 3px;
    font-size: .88rem;
  }
  .primary-nav a.active:after {
    bottom: 3px;
  }
  .hero {
    height: 466px;
  }
  .hero-art {
    height: 77%;
    bottom: auto;
  }
  .hero-art img {
    object-position: 84% 50%;
  }
  .hero-art:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,#142323 0%,transparent 28%);
  }
  .hero-shade {
    background: linear-gradient(90deg,#081115a8,#0915182e 75%),linear-gradient(0deg,#0a1013 0%,rgba(8,16,19,.87) 14%,rgba(7,16,18,.48) 46%,rgba(6,14,17,.02) 82%);
  }
  .hero-layout {
    align-items: flex-end;
  }
  .hero-copy {
    margin-bottom: 62px;
  }
  .hero h1 {
    font-size: clamp(42px,10.9vw,62px);
    letter-spacing: .045em;
    margin: 12px 0;
  }
  .hero-copy p {
    font-size: .94rem;
    line-height: 1.82;
    letter-spacing: .02em;
  }
  .eyebrow {
    font-size: .67rem;
    letter-spacing: .16em;
  }
  .ruled {
    gap: 8px;
  }
  .ruled:before {
    width: 24px;
  }
  .hero-actions {
    margin-top: 19px;
    gap: 10px;
  }
  .btn {
    font-size: .88rem;
    min-height: 42px;
    padding: 9px 14px;
  }
  .scene-bar {
    bottom: 11px;
    gap: 7px;
  }
  .scene-caption,.scene-meta {
    font-size: .7rem;
  }
  .slide-tabs button {
    width: 20px;
  }
  .home-content {
    padding-top: 25px;
  }
  .section-head {
    align-items: center;
    margin-bottom: 15px;
  }
  .head-pair {
    display: grid;
    gap: 3px;
  }
  .section-head h2 {
    font-size: 27px;
  }
  .section-eng {
    font-size: .65rem;
    letter-spacing: .13em;
  }
  .collection-grid {
    gap: 12px;
  }
  .cat-symbol {
    left: 8px;
    top: 8px;
    height: 25px;
    width: 25px;
  }
  .cat-symbol .ico {
    width: 15px;
    height: 15px;
  }
  .cover-frame {
    aspect-ratio: 1.75;
  }
  .cat-body {
    padding: 10px 11px 13px;
  }
  .cat-body h3 {
    font-size: 21px;
    margin: 3px 0 4px;
  }
  .card-eng {
    font-size: .63rem;
  }
  .cat-body p {
    font-size: .78rem;
    line-height: 1.55;
  }
  .recent {
    padding: 30px 0 39px;
  }
  .recent-row {
    gap: 10px;
    padding: 13px 0;
  }
  .row-thumb {
    width: 55px;
    height: 42px;
  }
  .row-title {
    font-size: .91rem;
  }
  .recent-row .date {
    font-size: .7rem;
  }
  .footer-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px 0;
  }
  .footer-links {
    gap: 14px;
  }
  .inner-page {
    padding: 20px 0 42px;
  }
  .crumb {
    margin-bottom: 17px;
  }
  .inner-intro {
    padding: 23px 17px;
    margin-bottom: 18px;
  }
  .inner-intro p,.entry-summary>.intro {
    font-size: .95rem;
  }
  .filterbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
  }
  .filter {
    padding: 5px 9px;
    font-size: .82rem;
  }
  .work-grid {
    gap: 11px;
  }
  .work-info {
    padding: 12px;
  }
  .work-info h2 {
    font-size: 1.08rem;
  }
  .work-info p {
    font-size: .83rem;
    line-height: 1.6;
  }
  .work-pic {
    aspect-ratio: 1.65;
  }
  .gallery-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .gallery-tile span {
    padding: 7px 9px;
    font-size: .86rem;
  }
  .prose {
    font-size: 1rem;
  }
  .prose h2 {
    font-size: 1.3rem;
  }
  .game-stage iframe {
    height: 75dvh;
    min-height: 400px;
  }
  .form-panel {
    padding: 16px;
  }
  .manager-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .entry-meta {
    gap: 6px;
  }
  .recent-list .row-type {
    font-size: .7rem;
  }
}

@media(max-width:360px) {
  .shell {
    width: calc(100% - 26px);
  }
  .hero {
    height: 435px;
  }
  .card-eng {
    letter-spacing: .09em;
  }
  .footer-links {
    flex-wrap: wrap;
  }
  .recent-row .date {
    display: none;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior: auto!important;
    animation: none!important;
    transition: none!important;
  }
  .hero-art img,.collection-card:hover,.collection-card:hover img,.work-card:hover img,.btn:hover {
    transform: none;
  }
  .dust,.mist {
    display: none;
  }
}

body.game-wide {
  overflow: hidden;
}

.pack-notice:not(:empty) {
  color: var(--accent);
  font-size: .86rem;
  margin: -5px 0 17px;
}
.pack-choice select { min-width: 0; }

.game-shots { margin-top: 2rem; }
.game-shots .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(170px,100%), 190px)); }
.game-shots .gallery-tile img { width:100%; max-height:235px; object-fit:contain; background:var(--bg, #111918); margin:0; }
