html.i18n-boot body.site { opacity: 0; }

body.site {
  --accent: #9a3d2a;
  --ink: #1c1915;
  --paper: #f4efe6;
  --quiet: #5e584e;
  --line: rgba(28, 25, 21, 0.12);
  --card: #fffdf8;
  background:
    radial-gradient(820px 420px at 100% -8%, rgba(154, 61, 42, 0.08), transparent 55%),
    #f4efe6;
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Microsoft YaHei", sans-serif;
}

body.site a { color: inherit; }

body.site h1,
body.site h2,
body.site h3 {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", "Songti SC", "Noto Serif SC", Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  text-transform: none;
}

.frame {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.bar,
.foot {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bar { padding: 18px 0 14px; }

.mark {
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}

.bar nav,
.foot nav {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: auto;
}

.bar nav { margin-left: 28px; }

.bar nav a,
.foot nav a {
  text-decoration: none;
  color: var(--quiet);
  font-size: 0.95rem;
}

.bar nav a:hover,
.foot nav a:hover { color: var(--ink); }

.lang-switch {
  display: flex;
  margin-left: auto;
  border: 1px solid rgba(28, 25, 21, 0.18);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: #fffaf4;
}

.bar nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-intro {
  padding: clamp(34px, 6vw, 72px) 0 clamp(26px, 4vw, 44px);
}

.site-intro p {
  max-width: 45rem;
  margin: 16px 0 0;
  color: var(--quiet);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.home-carousel { scroll-margin-top: 18px; }

.carousel-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 24px;
  background: #171929;
}

.carousel-slide {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  min-width: 0;
  min-height: clamp(350px, 37vw, 460px);
  overflow: hidden;
  color: #fff8ed;
  scroll-snap-align: start;
}

.carousel-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 52px);
}

.carousel-copy .kicker { color: #ffb8a0; }
.carousel-copy h2 { margin: 0; font-size: clamp(2.25rem, 4.3vw, 4.15rem); line-height: 1.02; }
.carousel-copy p:not(.kicker) { margin: 16px 0 0; color: #e6ddd8; }
body.site .carousel-copy a.line { color: #fff8ed; border-color: #a7a2ac; }
body.site .carousel-copy a.line:hover { color: #ffb8a0; border-color: #ffb8a0; }

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}

.carousel-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 12px;
}

.carousel-controls button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.carousel-controls .carousel-arrow { font-size: 1.7rem; line-height: 1; }
.carousel-dots { display: flex; align-items: center; }
.carousel-dots button { display: grid; place-items: center; min-width: 27px; min-height: 42px; border: 0; background: transparent; }
.carousel-dots button::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--accent); border-radius: 50%; }
.carousel-dots button[aria-current="true"]::before { background: var(--accent); }
.carousel-controls .carousel-toggle { display: grid; place-items: center; padding-inline: 12px; font-size: 0.85rem; }
.carousel-toggle span { grid-area: 1 / 1; }
.carousel-toggle span[hidden] { display: block !important; visibility: hidden; }
.carousel-controls button:hover { border-color: var(--accent); }

@media (max-width: 680px) {
  .carousel-track { border-radius: 17px; }
  .carousel-slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 0; }
  .carousel-copy { align-content: start; }
  .carousel-slide img { grid-row: 1; height: auto; max-height: none; aspect-ratio: 16 / 9; }
  .carousel-copy h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .carousel-copy .actions { margin-top: 18px; }
}

.kicker,
.pill {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.site h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.96;
  color: var(--ink);
}

.lede {
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 1.05rem;
  max-width: 38rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.solid,
.line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.site a.solid {
  background: var(--accent);
  color: #fffaf4;
}

body.site a.line {
  border: 1px solid rgba(28, 25, 21, 0.22);
  color: var(--ink);
  background: transparent;
}

body.site a.solid:hover { filter: brightness(1.06); color: #fffaf4; }
body.site a.line:hover { border-color: var(--accent); color: var(--accent); }

.block { padding: 64px 0 10px; }

.games-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 22px;
}

.block-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.block-head p { margin: 10px 0 0; color: var(--quiet); max-width: 38rem; }

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 22px;
}

.feature {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.feature:first-child { grid-row: span 2; }

.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(154, 61, 42, 0.45);
  box-shadow: 0 18px 40px rgba(70, 42, 18, 0.08);
}

.feature-shot { display: block; overflow: hidden; background: #e7dccb; }

.feature-shot img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature:first-child .feature-shot img { aspect-ratio: 16 / 11; min-height: 100%; }

.feature:hover img { transform: scale(1.045); }

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 18px;
}

.feature-body h3 { margin: 0; font-size: 1.7rem; }

.feature-body p { margin: 0; color: var(--quiet); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--quiet);
  font-size: 0.75rem;
}

.feature .actions { margin-top: 4px; }

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: end;
}

.about-grid p { margin: 0 0 14px; color: #3f3a34; font-size: 1.05rem; max-width: 40rem; }

.soon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.soon-card {
  padding: 18px 18px 20px;
  border-radius: 16px;
  border: 1px dashed rgba(154, 61, 42, 0.4);
  background: rgba(255, 253, 248, 0.7);
  min-width: 0;
}

.soon-card h3 { margin: 0 0 8px; font-size: 1.45rem; }

.soon-card p { margin: 0; color: var(--quiet); }

.pill.quiet { color: var(--quiet); }

.foot {
  padding: 28px 0 40px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
}

.page-showcase .stage {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #e7dccb;
  box-shadow: 0 24px 60px rgba(70, 42, 18, 0.1);
}

.page-showcase .stage img {
  display: block;
  width: 100%;
  height: auto;
}

.page-showcase .stage-copy {
  padding: 22px 4px 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
  margin-top: 18px;
}

.gallery figure {
  margin: 0;
  min-width: 0;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: #e7dccb;
}

.gallery figcaption {
  margin-top: 8px;
  color: var(--quiet);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.split h2 { margin: 0 0 12px; font-size: 1.8rem; }

.points, .controls {
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li, .controls div {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: #3f3a34;
}

.controls dt {
  font-weight: 700;
  color: var(--ink);
}

.controls dd { margin: 4px 0 0; }

.note { color: var(--quiet); }

.missing-main {
  min-height: 62vh;
  display: grid;
  align-content: center;
  padding: 24px 0 48px;
}

@media (max-width: 860px) {
  .frame { width: min(1180px, calc(100% - 28px)); }
  .bar, .foot { flex-wrap: wrap; }
  .bar nav { margin-left: 0; order: 3; width: 100%; }
  body.site h1 { font-size: clamp(2rem, 9vw, 3.5rem); }
  .feature-grid, .about-grid, .soon-grid, .gallery, .split { grid-template-columns: 1fr; }
  .feature:first-child { grid-row: auto; }
  .page-showcase .stage img { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .feature, .feature-shot img, .solid { transition: none; }
  .feature:hover { transform: none; }
  .feature:hover img { transform: none; }
  .solid:hover { filter: none; }
}
