:root {
  --paper: #f7f1e8;
  --paper-strong: #fffaf4;
  --ink: #2d2521;
  --muted: #6e625b;
  --accent: #eb6f4d;
  --accent-dark: #b9432e;
  --cocoa: #6b4435;
  --leaf: #54866b;
  --line: rgba(45, 37, 33, 0.14);
  --shadow: 0 24px 70px rgba(72, 47, 36, 0.14);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(235, 111, 77, 0.12), transparent 25rem),
    var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(168px, 17vw, 205px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  font-size: 0.9rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.72);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms ease, background 160ms ease;
}

.login-button:hover,
.login-button:focus-visible {
  border-color: rgba(45, 37, 33, 0.3);
  background: var(--paper-strong);
}

.login-button[hidden] {
  display: none;
}

.language-switch {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.54);
  font-size: 0.82rem;
  font-weight: 750;
}

.account-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.account-menu[hidden] {
  display: none;
}

.account-menu span {
  max-width: 150px;
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.auth-notice {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 12px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(76, 155, 104, 0.28);
  border-radius: 14px;
  background: rgba(232, 247, 236, 0.88);
  color: #28613a;
  font-size: 0.86rem;
  font-weight: 650;
}

.auth-notice[hidden] {
  display: none;
}

.auth-notice.is-error {
  border-color: rgba(200, 79, 66, 0.28);
  background: rgba(252, 235, 231, 0.9);
  color: #8c3027;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  width: min(1180px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  padding: 70px 0 110px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h1 span {
  color: var(--accent);
}

.hero-description {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action {
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(45, 37, 33, 0.18);
  color: white;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.7);
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  min-height: 450px;
}

.world-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 38px;
}

.world-card-back {
  inset: 34px 12px 10px 36px;
  background: var(--cocoa);
  box-shadow: var(--shadow);
  transform: rotate(7deg);
}

.world-card-front {
  inset: 0 30px 35px 0;
  background: #a9d5cb;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

.world-sky {
  position: absolute;
  inset: 0 0 45%;
  background:
    radial-gradient(circle at 23% 22%, rgba(255, 255, 255, 0.82) 0 6%, transparent 6.5%),
    radial-gradient(circle at 72% 31%, rgba(255, 255, 255, 0.6) 0 9%, transparent 9.5%),
    linear-gradient(#91c9d5, #d6e9d5);
}

.world-ground {
  position: absolute;
  inset: 48% 0 0;
  background:
    linear-gradient(145deg, transparent 0 22%, rgba(255, 255, 255, 0.12) 22% 24%, transparent 24% 100%),
    var(--leaf);
  clip-path: polygon(0 18%, 28% 0, 58% 19%, 100% 1%, 100% 100%, 0 100%);
}

.world-character {
  position: absolute;
  left: 50%;
  bottom: 20%;
  width: 94px;
  height: 168px;
  transform: translateX(-50%);
}

.character-head,
.character-body {
  position: absolute;
  left: 50%;
  display: block;
  transform: translateX(-50%);
}

.character-head {
  z-index: 2;
  top: 0;
  width: 78px;
  height: 78px;
  border: 8px solid #3e2922;
  border-radius: 28px;
  background: #f1bb8c;
  box-shadow: inset 0 -10px rgba(143, 74, 49, 0.14);
}

.character-body {
  bottom: 0;
  width: 88px;
  height: 105px;
  border-radius: 30px 30px 16px 16px;
  background: var(--accent);
}

.world-chip {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.preparing-label {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.asset-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.asset-browser.has-pagination {
  grid-template-columns: 50px minmax(0, 1fr) 50px;
}

.asset-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.asset-browser.has-pagination .asset-grid {
  grid-column: 2;
}

.asset-page-arrow {
  display: grid;
  width: 50px;
  height: 72px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.82);
  box-shadow: 0 10px 28px rgba(72, 47, 36, 0.08);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.asset-page-prev {
  grid-column: 1;
}

.asset-page-next {
  grid-column: 3;
}

.asset-page-arrow:hover,
.asset-page-arrow:focus-visible {
  border-color: rgba(45, 37, 33, 0.3);
  background: var(--paper-strong);
  transform: scale(1.04);
}

.asset-page-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

.asset-page-arrow[hidden] {
  display: none;
}

.asset-page-label {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  text-align: center;
}

.asset-page-label[hidden] {
  display: none;
}

.asset-card {
  padding: 12px 12px 24px;
  border: 1px solid rgba(45, 37, 33, 0.09);
  border-radius: 26px;
  background: rgba(255, 250, 244, 0.78);
  box-shadow: 0 14px 40px rgba(72, 47, 36, 0.07);
}

.asset-thumbnail {
  position: relative;
  display: grid;
  min-height: 240px;
  margin-bottom: 20px;
  overflow: hidden;
  place-items: center;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.asset-thumbnail img {
  width: 100%;
  height: 240px;
  border-radius: inherit;
  object-fit: cover;
}

.asset-thumbnail.has-model {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.92), transparent 36%),
    linear-gradient(155deg, #efd8c9, #a9d5cb);
  color: var(--ink);
}

.asset-card-viewer {
  display: block;
  width: 100%;
  height: 240px;
  --poster-color: transparent;
  --progress-bar-color: var(--accent);
}

.asset-card-preview-status {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.9);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.asset-card-preview-status[hidden] {
  display: none;
}

.thumbnail-one {
  background: linear-gradient(145deg, #cc8067, #6c3f34);
}

.thumbnail-two {
  background: linear-gradient(145deg, #79a99d, #355a4a);
}

.thumbnail-three {
  background: linear-gradient(145deg, #7695bd, #3e496c);
}

.asset-card h3 {
  margin: 0 10px 8px;
  font-size: 1.12rem;
}

.asset-card p {
  margin: 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.asset-card .asset-meta {
  margin-top: 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 750;
}

.asset-preview-button {
  min-height: 42px;
  margin: 18px 10px 0;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.asset-preview-button:hover,
.asset-preview-button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.asset-preview-button:disabled {
  background: rgba(45, 37, 33, 0.1);
  color: var(--muted);
  cursor: default;
  transform: none;
}

.asset-preview-dialog {
  width: min(1040px, calc(100% - 32px));
  max-width: none;
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: var(--paper-strong);
  box-shadow: 0 32px 100px rgba(45, 37, 33, 0.32);
  color: var(--ink);
}

.asset-preview-dialog::backdrop {
  background: rgba(45, 37, 33, 0.68);
  backdrop-filter: blur(5px);
}

.asset-preview-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  min-height: 570px;
}

.asset-preview-close {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(45, 37, 33, 0.12);
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.9);
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.asset-preview-stage {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.95), transparent 38%),
    linear-gradient(155deg, #efd8c9, #a9d5cb);
}

.asset-preview-stage model-viewer {
  width: 100%;
  height: 100%;
  min-height: 570px;
  --poster-color: transparent;
  --progress-bar-color: var(--accent);
}

.asset-preview-status {
  position: absolute;
  left: 50%;
  bottom: 22px;
  margin: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.9);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  transform: translateX(-50%);
  white-space: nowrap;
}

.asset-preview-status[hidden] {
  display: none;
}

.asset-preview-copy {
  align-self: center;
  padding: 72px 42px 48px;
}

.asset-preview-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.asset-preview-description {
  color: var(--muted);
  line-height: 1.85;
}

.asset-preview-meta {
  margin-top: 24px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

.asset-preview-help {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.asset-report-button {
  min-height: 42px;
  margin-top: 20px;
  padding: 0 18px;
  border: 1px solid rgba(150, 55, 45, 0.42);
  border-radius: 999px;
  background: transparent;
  color: #923c35;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.asset-report-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.asset-report-form[hidden] {
  display: none;
}

.asset-report-form label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
}

.asset-report-form select,
.asset-report-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.asset-report-form textarea {
  resize: vertical;
}

.asset-report-actions {
  display: flex;
  gap: 10px;
}

.asset-report-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.asset-report-actions button:last-child {
  background: rgba(45, 37, 33, 0.1);
  color: var(--ink);
}

.asset-report-status {
  min-height: 1.5em;
  margin: 0;
  color: #923c35;
  font-size: 0.78rem;
  line-height: 1.6;
}

.asset-empty {
  grid-column: 1 / -1;
}

.mcp-promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  padding: clamp(48px, 7vw, 82px);
  overflow: hidden;
  border-radius: 38px;
  background:
    radial-gradient(circle at 86% 12%, rgba(235, 111, 77, 0.3), transparent 18rem),
    var(--ink);
  box-shadow: var(--shadow);
  color: var(--paper-strong);
}

.mcp-promo::after {
  position: absolute;
  right: -78px;
  bottom: -112px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 38%;
  content: "";
  transform: rotate(18deg);
}

.mcp-promo-copy,
.mcp-proof {
  position: relative;
  z-index: 1;
}

.mcp-promo-copy h2 {
  margin-bottom: 24px;
}

.mcp-promo-copy > p:not(.eyebrow) {
  margin-bottom: 30px;
  color: rgba(255, 250, 244, 0.72);
  line-height: 1.95;
}

.mcp-promo .primary-action {
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.mcp-proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.mcp-proof div {
  min-height: 132px;
  padding: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mcp-proof dt {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
}

.mcp-proof dd {
  margin: 0;
  color: rgba(255, 250, 244, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
}

.publish-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.publish-copy p:last-child {
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.95;
}

.publish-copy .auth-purpose {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 3px solid rgba(235, 111, 77, 0.45);
  font-size: 0.86rem;
}

.auth-purpose a,
.legal-main a {
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.publish-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.publish-flow li {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.publish-flow span {
  color: var(--accent-dark);
  font-family: Georgia, serif;
  font-size: 0.88rem;
}

.service-status {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  align-items: center;
  gap: 10px;
  margin: 0 auto 70px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c69a41;
  box-shadow: 0 0 0 4px rgba(198, 154, 65, 0.12);
}

.status-dot.is-online {
  background: #4c9b68;
  box-shadow: 0 0 0 4px rgba(76, 155, 104, 0.12);
}

.status-dot.is-offline {
  background: #c84f42;
  box-shadow: 0 0 0 4px rgba(200, 79, 66, 0.12);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px max(20px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.45);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  display: block;
  width: 152px;
  height: auto;
}

.site-footer small {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--accent-dark);
}

.legal-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 110px;
  overflow: visible;
}

.legal-hero {
  padding: 52px clamp(24px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 8%, rgba(235, 111, 77, 0.15), transparent 20rem),
    rgba(255, 250, 244, 0.78);
  box-shadow: 0 18px 55px rgba(72, 47, 36, 0.08);
}

.legal-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.08;
}

.legal-lead {
  max-width: 720px;
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.95;
}

.legal-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.legal-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 34px 0 16px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.46);
}

.legal-toc strong {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.legal-toc a {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--accent-dark);
}

.legal-section {
  padding: 42px 6px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.legal-section h2 {
  margin-bottom: 22px;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  letter-spacing: -0.035em;
}

.legal-section h3 {
  margin: 30px 0 12px;
  font-size: 1.05rem;
}

.legal-section p,
.legal-section li,
.legal-section dd {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.95;
}

.legal-section p:last-child,
.legal-section ul:last-child,
.legal-section ol:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.4rem;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-data-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.legal-data-list div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.5);
}

.legal-data-list dt {
  margin-bottom: 7px;
  font-weight: 800;
}

.legal-data-list dd {
  margin: 0;
}

.legal-note,
.deletion-card {
  margin: 24px 0;
  padding: 22px 24px;
  border-radius: 18px;
}

.legal-note {
  border: 1px solid rgba(84, 134, 107, 0.3);
  background: rgba(84, 134, 107, 0.08);
}

.deletion-card {
  border: 1px solid rgba(235, 111, 77, 0.32);
  background: rgba(235, 111, 77, 0.08);
}

.deletion-card h3 {
  margin-top: 0;
}

.legal-contact {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: white !important;
  text-decoration: none !important;
}

.legal-back {
  display: inline-flex;
  margin-top: 34px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .hero-visual {
    width: min(100%, 520px);
    min-height: 430px;
    margin: 0 auto;
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .asset-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) 1fr;
    column-gap: 20px;
  }

  .asset-thumbnail {
    grid-row: 1 / span 4;
    min-height: 230px;
    margin-bottom: 0;
  }

  .asset-card-viewer {
    height: 100%;
    min-height: 230px;
  }

  .asset-card h3 {
    align-self: end;
    margin-top: 14px;
  }

  .publish-section {
    grid-template-columns: 1fr;
  }

  .mcp-promo {
    grid-template-columns: 1fr;
  }

  .asset-preview-shell {
    grid-template-columns: 1fr;
  }

  .asset-preview-stage,
  .asset-preview-stage model-viewer {
    min-height: min(56dvh, 520px);
  }

  .asset-preview-copy {
    padding: 32px 28px 36px;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(100% - 28px, 1180px);
  }

  .brand-logo {
    width: 152px;
  }

  .site-nav > a {
    display: none;
  }

  .site-nav > .language-switch {
    display: inline-flex;
  }

  .login-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.78rem;
  }

  .account-menu span {
    max-width: 92px;
  }

  .hero,
  .section,
  .service-status {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 48px 0 76px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

  .hero-visual {
    min-height: 340px;
  }

  .world-card-front {
    right: 18px;
  }

  .world-card-back {
    left: 24px;
  }

  .section {
    padding: 76px 0;
  }

  .mcp-promo {
    width: min(100% - 28px, 1180px);
    padding: 42px 24px;
    border-radius: 26px;
  }

  .mcp-proof div {
    min-height: 110px;
    padding: 20px 16px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .asset-card {
    display: block;
  }

  .asset-browser,
  .asset-browser.has-pagination {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .asset-grid,
  .asset-browser.has-pagination .asset-grid {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .asset-page-arrow {
    width: 64px;
    height: 46px;
  }

  .asset-page-prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .asset-page-next {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .asset-thumbnail {
    min-height: 210px;
    margin-bottom: 20px;
  }

  .asset-card-viewer {
    height: 280px;
    min-height: 0;
  }

  .asset-preview-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 22px;
  }

  .asset-preview-shell {
    min-height: 0;
  }

  .asset-preview-stage,
  .asset-preview-stage model-viewer {
    min-height: 55dvh;
  }

  .asset-preview-copy {
    padding: 28px 22px 30px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-footer-links {
    justify-content: flex-start;
  }

  .legal-main {
    width: min(100% - 28px, 920px);
    padding: 34px 0 76px;
  }

  .legal-hero {
    padding: 36px 24px;
    border-radius: 24px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Official homepage and dedicated creation store */
.home-page .site-header, .store-page .site-header { gap: 24px; flex-wrap: wrap; }
.home-page .site-nav, .store-page .site-nav { flex-wrap: wrap; gap: 16px 24px; }
.site-nav [aria-current="page"] { color: var(--accent-dark); }
.app-hero.section { padding: 54px 0 72px; }
.app-intro { max-width: 900px; margin: 0 auto; text-align: center; }
.app-intro h1 { max-width: none; font-size: clamp(2.1rem, 4.7vw, 4rem); line-height: 1.3; letter-spacing: -0.045em; }
.app-intro .hero-description { max-width: 710px; margin: 0 auto 28px; }
.download-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 780px; margin: 0 auto 42px; text-align: left; }
.web-creator-link { text-align: center; margin: -22px 0 42px; }
.web-creator-link a { display: inline-block; padding: .85rem 1.25rem; border-radius: 12px; background: #a32110; color: white; font-weight: 750; }
.web-creator-link a:hover { background: #f03118; }
.windows-download, .android-announcement { display: grid; gap: 8px; padding: 22px 24px; border-radius: 18px; }
.windows-download { background: var(--accent-dark); color: white; box-shadow: 0 10px 28px rgba(185,67,46,.15); }
.windows-download:hover { background: #953524; }
.android-announcement { background: var(--paper-strong); border: 1px solid var(--line); }
.download-options span { font-size: .78rem; font-weight: 750; letter-spacing: .08em; }
.download-options strong { font-size: 1.05rem; }
.download-options small { font-size: .8rem; line-height: 1.6; }
.app-hero-screen, .home-store figure { margin: 0; min-width: 0; }
.app-screenshot { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.app-hero-screen .app-screenshot { box-shadow: var(--shadow); }
.app-screenshot img { display: block; width: 100%; height: auto; }
.app-screenshot span { display: block; padding: 10px 14px; font-size: .72rem; color: var(--muted); background: var(--paper-strong); }
.app-features.section { padding-top: 40px; }
.feature-lead { color: var(--muted); line-height: 1.9; margin-bottom: 36px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px 28px; }
.feature-card { min-width: 0; }
.feature-copy { padding: 24px 6px 0; }
.feature-copy .eyebrow { margin-bottom: 12px; }
.feature-copy h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin-bottom: 14px; }
.feature-copy > p:last-child, .home-store p:not(.eyebrow) { color: var(--muted); line-height: 1.9; }
.home-store { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 48px; border-top: 1px solid var(--line); }
.home-store h2 { font-size: clamp(1.8rem,3vw,2.8rem); margin-bottom: 24px; line-height: 1.4; }
.home-page .mcp-promo { margin-top: 24px; }
.store-page .store-section { padding-top: 48px; padding-bottom: 50px; }
.store-page h1 { font-size: clamp(2rem,4vw,3.5rem); line-height: 1.2; margin: 0; }
.store-intro { color: var(--muted); line-height: 1.8; margin-bottom: 32px; }
.store-page .asset-browser, .store-page .asset-browser.has-pagination { display: block; }
.store-page .asset-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.store-page .asset-card { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.store-page .asset-card > p:not(.asset-meta) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.store-page .asset-thumbnail { min-height: 0; aspect-ratio: 4 / 3; }
.store-page .asset-card-viewer { height: 100%; min-height: 0; }
.store-page .asset-preview-button { margin-top: auto; }
.store-page .asset-empty { grid-column: 1 / -1; }
.store-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 32px; }
.store-pagination .asset-page-label { margin: 0; }
.store-pagination button { font: inherit; cursor: pointer; }
.store-pagination button:disabled { opacity: .45; cursor: default; }
.store-pagination [hidden] { display: none; }
@media (max-width: 1000px) { .store-page .asset-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .home-page .site-header, .store-page .site-header { align-items: flex-start; }
  .home-page .site-nav, .store-page .site-nav { justify-content: flex-start; gap: 12px 18px; }
  .app-hero.section { padding-top: 32px; }
  .download-options, .feature-grid, .home-store { grid-template-columns: 1fr; }
  .download-options { max-width: 460px; }
  .home-store { gap: 28px; }
  .store-page .asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .store-pagination { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 480px) { .store-page .asset-grid { grid-template-columns: 1fr; } }
.ai-section { border-top: 1px solid var(--line); }
.ai-content { padding: 0; width: 100%; border: 0; align-items: start; }
.ai-methods article { margin-bottom: 28px; }
.ai-methods h3 { font-size: 1.2rem; margin-bottom: 10px; }
.guide-detail-link { display: inline-block; margin: 4px 0 12px; color: var(--accent-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 5px; line-height: 1.8; }
.ai-workflow.section { padding: 40px 0 80px; }
.ai-workflow h2 { line-height: 1.35; margin-bottom: 32px; }
.ai-workflow-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.ai-workflow-steps li { padding: 28px; border: 1px solid var(--line); background: var(--paper-strong); border-radius: 20px; }
.ai-workflow-steps span { font-size: 1.7rem; font-weight: 800; color: var(--accent-dark); }
.ai-workflow-steps h3 { font-size: 1.15rem; margin: 18px 0 12px; }
.ai-workflow-steps p, .ai-workflow-footer p { color: var(--muted); line-height: 1.9; }
.ai-workflow-footer { max-width: 800px; margin-top: 28px; }
@media (max-width: 760px) {
  .ai-workflow-steps { grid-template-columns: 1fr; }
  .home-page .site-nav a, .store-page .site-nav a { display: inline-flex; }
  .home-page .site-nav a[href='/mcp/'], .home-page .site-nav a[href='/api/'], .store-page .site-nav a[href='/mcp/'], .store-page .site-nav a[href='/api/'] { display: none; }
  .home-page .site-nav .login-button[hidden], .store-page .site-nav .login-button[hidden] { display: none; }
}
.creation-entrances { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; text-align: left; margin: 0 auto 28px; }
.creation-entrance { display: flex; flex-direction: column; align-items: start; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper-strong); }
.creation-entrance:hover { border-color: var(--accent-dark); }
.creation-entrance > span { color: var(--accent-dark); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.creation-entrance h2 { font-size: clamp(1.2rem,2.5vw,1.6rem); line-height: 1.5; letter-spacing: -.02em; margin: 12px 0; }
.creation-entrance p { line-height: 1.85; font-size: .92rem; color: var(--muted); }
.creation-entrance strong { color: var(--accent-dark); font-size: .88rem; margin-top: auto; line-height: 1.8; }
.creation-screens { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.creation-screens figure { margin: 0; min-width: 0; }
@media (max-width: 760px) { .creation-entrances, .creation-screens { grid-template-columns: 1fr; } }
.creation-entrances { grid-template-columns: repeat(3,minmax(0,1fr)); }
.app-intro { max-width: 1100px; }
.creation-entrance { padding: 24px; }
.creation-entrance h2 { font-size: clamp(1.1rem,2vw,1.4rem); }
#multiplayer { scroll-margin-top: 24px; }
@media (max-width: 760px) { .creation-entrances { grid-template-columns: 1fr; } }

/* A playful welcome with the app's original characters. */
.hero-welcome { display: grid; grid-template-columns: 150px minmax(0,1fr) 170px; align-items: center; gap: 16px; margin: 8px 0 24px; }
.app-intro .hero-welcome h1 { font-size: clamp(2rem,3.5vw,3rem); margin: 0; line-height: 1.4; }
.welcome-mascot-splash { display: block; width: 135px; height: auto; transform: rotate(-8deg); filter: drop-shadow(0 14px 12px rgba(107,68,53,.13)); }
@media (max-width: 760px) {
  .hero-welcome { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 0; }
  .welcome-mascot-splash { width: 82px; justify-self: end; margin-right: 16px; }
  .app-intro .hero-welcome h1 { grid-column: 1 / -1; grid-row: 2; font-size: clamp(1.65rem,5.3vw,2.4rem); }
  .home-page .app-hero.section { padding-top: 22px; }
}

.welcome-model { min-width: 0; border-radius: 30px; background: radial-gradient(ellipse at 50% 40%, #fbe5b1, transparent 68%); }
#welcome-model { display: block; width: 100%; height: 190px; touch-action: pan-y; --poster-color: transparent; }
#welcome-model-help { margin: 4px 0 8px; color: var(--accent-dark); font-size: .72rem; font-weight: 750; }
#welcome-model-status { font-size: .72rem; line-height: 1.6; }
#welcome-model-toggle { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-strong); color: var(--muted); font: inherit; font-size: .7rem; cursor: pointer; }
#welcome-model-toggle[hidden], #welcome-model-status[hidden] { display: none; }
#welcome-model-toggle:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
@media (max-width: 760px) {
  .welcome-model { grid-column: 2; grid-row: 1; width: 146px; justify-self: start; }
  #welcome-model { height: 140px; }
}

/* Platform marks keep download and release notices easy to recognize. */
.windows-download, .android-announcement { grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; align-content: center; }
.download-options .platform-logo { display: block; width: 40px; height: 40px; grid-column: 1; grid-row: 1 / 4; align-self: center; }
.download-options > * > span, .download-options > * > strong, .download-options > * > small { grid-column: 2; }
@media (max-width: 480px) {
  .windows-download, .android-announcement { padding: 20px; column-gap: 14px; }
  .download-options strong { font-size: .95rem; }
}
.home-menu-screen { margin: 0 auto 36px; width: 100%; text-align: left; }
