.sokoban-page {
  --sokoban-surface: #fffaf4;
  --sokoban-surface-strong: #ffffff;
  --sokoban-muted: rgba(26, 26, 26, 0.72);
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--tibumo-cream);
  color: var(--tibumo-black);
}
.sokoban-page main { display: block; }
.sokoban-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sokoban-section { position: relative; padding: 96px 0; }
.sokoban-section:nth-of-type(even) { background: var(--sokoban-surface); }
.sokoban-kicker {
  margin: 0 0 10px;
  color: var(--tibumo-orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sokoban-section h2,
.sokoban-hero h1,
.sokoban-legal h1 {
  margin: 0;
  color: var(--tibumo-black);
  font-family: var(--brand-font);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.sokoban-section__head { max-width: 780px; margin-bottom: 40px; }
.sokoban-section__head > p:last-child {
  max-width: 700px;
  margin-top: 18px;
  color: var(--sokoban-muted);
  font-size: 19px;
  font-weight: 700;
}
.sokoban-hero {
  position: relative;
  padding: calc(var(--site-nav-height, 72px) + 76px) 0 96px;
  overflow: hidden;
  background: var(--tibumo-cream);
}
.sokoban-hero::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(105, 166, 35, 0.1);
  content: "";
}
.sokoban-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}
.sokoban-hero__copy { min-width: 0; }
.sokoban-hero__identity {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}
.sokoban-hero__identity > img {
  width: 104px;
  height: 104px;
  aspect-ratio: 1;
  border-radius: 22px;
}
.sokoban-hero__tagline {
  margin: 10px 0 0;
  color: var(--tibumo-purple-dark);
  font-size: 21px;
  font-weight: 900;
}
.sokoban-lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--sokoban-muted);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
}
.sokoban-promo {
  margin: 16px 0 0;
  color: var(--tibumo-purple-dark);
  font-weight: 900;
  line-height: 1.55;
}
.sokoban-hero__art {
  width: min(100%, 560px);
  justify-self: end;
  overflow: hidden;
  border-radius: 26px 8px 26px 8px;
  box-shadow: 0 18px 42px rgba(26, 26, 26, 0.16);
}
.sokoban-hero__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.sokoban-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.sokoban-stats > div {
  padding: 14px;
  border-top: 4px solid var(--tibumo-orange);
  background: var(--sokoban-surface-strong);
  font-size: 13px;
  font-weight: 900;
}
.sokoban-stats > div:nth-child(2) { border-color: var(--tibumo-green); }
.sokoban-stats > div:nth-child(3) { border-color: var(--tibumo-purple); }
.sokoban-stats strong {
  display: block;
  font-family: var(--brand-font);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}
.sokoban-stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sokoban-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 230px;
  min-height: 56px;
  padding: 8px 13px;
  border: 0;
  border-radius: 6px;
  background: var(--tibumo-black);
  color: var(--tibumo-cream);
  font: inherit;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.16);
}
.sokoban-store__icon { display: flex; align-items: center; justify-content: center; }
.sokoban-store__icon svg { width: 28px; height: 28px; }
.sokoban-store__text { text-align: left; }
.sokoban-store__small,
.sokoban-store__name { display: block; }
.sokoban-store__small {
  color: rgba(249, 246, 241, 0.74);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
}
.sokoban-store__name { font-size: 18px; font-weight: 800; line-height: 1.2; }
.sokoban-store--disabled { cursor: default; opacity: 0.72; }
.sokoban-locale-notice {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 5px solid var(--tibumo-yellow);
  background: var(--sokoban-surface-strong);
}
.sokoban-locale-notice p { margin: 5px 0; color: var(--sokoban-muted); }
.sokoban-locale-notice code { color: var(--sokoban-muted); font-size: 11px; }
.sokoban-steps,
.sokoban-parent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sokoban-steps article,
.sokoban-parent-grid article {
  padding: 24px;
  border-top: 5px solid var(--tibumo-blue);
  background: var(--sokoban-surface-strong);
}
.sokoban-steps article:nth-child(2) { border-color: var(--tibumo-orange); }
.sokoban-steps article:nth-child(3) { border-color: var(--tibumo-green); }
.sokoban-steps span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--tibumo-blue);
  color: white;
  font-weight: 900;
}
.sokoban-steps article:nth-child(2) span { background: var(--tibumo-orange); }
.sokoban-steps article:nth-child(3) span { background: var(--tibumo-green); }
.sokoban-steps h3,
.sokoban-parent-grid h3,
.sokoban-world h3 {
  margin: 0 0 8px;
  color: var(--tibumo-black);
  font-size: 22px;
  font-weight: 900;
}
.sokoban-parent-grid p,
.sokoban-world p {
  margin: 0;
  color: var(--sokoban-muted);
  font-weight: 700;
  line-height: 1.55;
}
.sokoban-world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.sokoban-world {
  overflow: hidden;
  border-top: 6px solid var(--tibumo-green);
  background: var(--sokoban-surface-strong);
}
.sokoban-world--workshop { border-color: var(--tibumo-orange); }
.sokoban-world--library { border-color: var(--tibumo-purple); }
.sokoban-world img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sokoban-world__body { padding: 22px; }
.sokoban-world__body > strong { display: block; margin-bottom: 8px; }
.sokoban-world ul { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.sokoban-world li {
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(26, 26, 26, 0.055);
  font-size: 12px;
  font-weight: 900;
}
.sokoban-gallery { overflow: hidden; }
.sokoban-gallery__shell { outline: none; }
.sokoban-gallery__viewport { min-height: 620px; }
.sokoban-gallery__slide { margin: 0; }
.sokoban-gallery__slide[hidden] { display: none; }
.sokoban-gallery__devices {
  display: grid;
  grid-template-columns: minmax(170px, 0.36fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 36px;
  background: #22212a;
}
.sokoban-gallery__phone {
  width: min(100%, 330px);
  height: auto;
  margin-inline: auto;
  aspect-ratio: 660 / 1434;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.24));
}
.sokoban-gallery__tablet {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.24));
}
.sokoban-gallery figcaption {
  padding: 14px 18px;
  background: var(--sokoban-surface-strong);
  font-weight: 900;
  text-align: center;
}
.sokoban-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}
.sokoban-gallery__controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  background: var(--sokoban-surface-strong);
  color: var(--tibumo-orange);
  box-shadow: 0 1px 4px rgba(26, 26, 26, 0.14);
  font-size: 28px;
  font-weight: 900;
}
.sokoban-gallery__dots { display: flex; gap: 8px; }
.sokoban-gallery__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.25);
  box-shadow: none;
}
.sokoban-gallery__dots button[aria-current="true"] { background: var(--tibumo-orange); }
.sokoban-parent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sokoban-parent-grid article:nth-child(2) { border-color: var(--tibumo-orange); }
.sokoban-parent-grid article:nth-child(3) { border-color: var(--tibumo-green); }
.sokoban-parent-grid article:nth-child(4) { border-color: var(--tibumo-purple); }
.sokoban-final { background: var(--tibumo-orange); }
.sokoban-final__inner { padding: 48px; background: var(--tibumo-cream); }
.sokoban-final__inner p {
  margin-top: 16px;
  color: var(--sokoban-muted);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.55;
}
.sokoban-legal { padding: calc(var(--site-nav-height, 72px) + 72px) 0 104px; }
.sokoban-legal > .sokoban-container { max-width: 900px; }
.sokoban-back { display: inline-block; margin-bottom: 28px; color: var(--tibumo-orange); font-weight: 900; }
.sokoban-updated { margin: 14px 0 36px; color: var(--sokoban-muted); font-weight: 800; }
.sokoban-legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -18px 0 24px;
}
.sokoban-legal__nav a {
  padding: 7px 11px;
  border: 1px solid rgba(131, 53, 206, 0.24);
  border-radius: 999px;
  background: var(--sokoban-surface-strong);
  color: var(--tibumo-purple-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.sokoban-legal__nav a[aria-current="page"] {
  border-color: var(--tibumo-orange);
  color: var(--tibumo-orange);
}
.sokoban-legal__content { padding: clamp(24px, 5vw, 48px); background: var(--sokoban-surface-strong); }
.sokoban-legal__content h2 {
  margin: 34px 0 12px;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 900;
}
.sokoban-legal__content h2:first-child { margin-top: 0; }
.sokoban-legal__content p,
.sokoban-legal__content dd {
  color: var(--sokoban-muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.sokoban-legal-gate { padding: 15px; border-left: 5px solid var(--tibumo-yellow); }
:root[data-theme="dark"] .sokoban-page {
  --sokoban-surface: #222222;
  --sokoban-surface-strong: #2e2e2e;
  --sokoban-muted: rgba(249, 246, 241, 0.76);
  background: #1a1a1a;
  color: var(--tibumo-cream);
}
:root[data-theme="dark"] :is(.sokoban-hero, .sokoban-final__inner) { background: #1a1a1a; }
:root[data-theme="dark"] :is(.sokoban-section h2, .sokoban-hero h1, .sokoban-legal h1, .sokoban-steps h3, .sokoban-parent-grid h3) { color: var(--tibumo-cream); }
:root[data-theme="dark"] .sokoban-world li { background: rgba(249, 246, 241, 0.08); }
:root[data-theme="dark"] .sokoban-store { background: #303030; }
:root[data-theme="dark"] :is(.sokoban-hero__tagline, .sokoban-promo) { color: #c9a7f0; }
:root[data-theme="dark"] .sokoban-gallery__dots button { background: rgba(249, 246, 241, 0.3); }
:root[data-theme="dark"] .sokoban-gallery__dots button[aria-current="true"] { background: var(--tibumo-yellow); }
:root[data-theme="dark"] .sokoban-legal__nav a { color: #c9a7f0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sokoban-page {
    --sokoban-surface: #222222;
    --sokoban-surface-strong: #2e2e2e;
    --sokoban-muted: rgba(249, 246, 241, 0.76);
    background: #1a1a1a;
    color: var(--tibumo-cream);
  }
  :root:not([data-theme="light"]) :is(.sokoban-hero, .sokoban-final__inner) { background: #1a1a1a; }
  :root:not([data-theme="light"]) :is(.sokoban-section h2, .sokoban-hero h1, .sokoban-legal h1, .sokoban-steps h3, .sokoban-parent-grid h3) { color: var(--tibumo-cream); }
  :root:not([data-theme="light"]) .sokoban-world li { background: rgba(249, 246, 241, 0.08); }
  :root:not([data-theme="light"]) .sokoban-store { background: #303030; }
  :root:not([data-theme="light"]) :is(.sokoban-hero__tagline, .sokoban-promo) { color: #c9a7f0; }
  :root:not([data-theme="light"]) .sokoban-gallery__dots button { background: rgba(249, 246, 241, 0.3); }
  :root:not([data-theme="light"]) .sokoban-gallery__dots button[aria-current="true"] { background: var(--tibumo-yellow); }
  :root:not([data-theme="light"]) .sokoban-legal__nav a { color: #c9a7f0; }
}
@media (max-width: 980px) {
  .sokoban-hero__grid { grid-template-columns: 1fr; }
  .sokoban-hero__art { max-width: 760px; justify-self: center; }
}
@media (max-width: 700px) {
  .sokoban-container { width: min(100% - 28px, 1180px); }
  .sokoban-section,
  .sokoban-hero,
  .sokoban-legal { padding: 64px 0; }
  .sokoban-hero,
  .sokoban-legal { padding-top: calc(var(--site-nav-height, 72px) + 48px); }
  .sokoban-hero__identity { grid-template-columns: 78px minmax(0, 1fr); gap: 14px; }
  .sokoban-hero__identity > img { width: 78px; height: 78px; border-radius: 16px; }
  .sokoban-stats,
  .sokoban-steps,
  .sokoban-parent-grid { grid-template-columns: 1fr; }
  .sokoban-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sokoban-stats > div { padding: 10px 8px; }
  .sokoban-stats strong { font-size: 25px; }
  .sokoban-gallery__viewport { min-height: 0; }
  .sokoban-gallery__devices { grid-template-columns: 1fr; padding: 20px; }
  .sokoban-gallery__phone { width: min(62vw, 280px); }
  .sokoban-gallery__tablet { width: 100%; }
  .sokoban-final__inner { padding: 30px 22px; }
  .sokoban-legal__content { padding: 24px; }
}
@media (max-width: 430px) {
  .sokoban-section h2 { font-size: 48px; }
  .sokoban-legal h1 { font-size: 40px; }
  .sokoban-hero h1 { font-size: 35px; }
  .sokoban-stores { display: grid; grid-template-columns: 1fr; justify-items: center; }
  .sokoban-store { width: min(100%, 320px); min-width: 230px; }
}
@media (min-width: 431px) and (max-width: 640px) {
  .sokoban-stores { justify-content: center; }
  .sokoban-store { width: min(100%, 320px); }
}
@media (prefers-reduced-motion: reduce) {
  .sokoban-page * { scroll-behavior: auto; }
}
