/* Shared interface skin. Scenery/scroll layout stays in styles.css; every sign,
   card and action below uses the game's cut-corner panel construction. */
:root {
  --cream: #fff1cf;
  --muted: #afccc5;
  --panel: #18364a;
  --green: #aee39f;
  --gold: #f4c95d;
  --purple: #c79ae8;
  --line: #668e7f;
}

.pixel-panel,
.page-home .pixel-panel,
html:not(.no-live-world) .journey .scene-panel.pixel-panel {
  --panel-cut: 14px;
  --panel-stroke: 2px;
  --panel-accent: var(--line);
  --panel-fill: #102a3c;
  --panel-light: #345454;
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  filter: drop-shadow(0 3px 0 #071b2970);
}

.pixel-panel::before, .pixel-panel::after {
  --cut: var(--panel-cut);
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  pointer-events: none;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0,
    100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%,
    0 calc(100% - var(--cut)), 0 var(--cut));
}
.pixel-panel::before { z-index: -2; background: var(--panel-accent); }
.pixel-panel::after {
  --cut: calc(var(--panel-cut) - 1px);
  z-index: -1;
  inset: var(--panel-stroke);
  background:
    linear-gradient(90deg, transparent, var(--panel-light) 15% 85%, transparent) center 4px / calc(100% - 24px) 1px no-repeat,
    linear-gradient(180deg, #ffffff06, transparent 55%), var(--panel-fill);
}
:where(a, button, select, summary):focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 5px;
}
.pixel-icon { display: block; flex: none; width: 36px; height: 38px; color: var(--gold); }
.sr-only, .page-home .footer-inner > .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
html:not(.has-js) .world-loader { display: none; }
html:not(.has-js) .journey .scene-image { display: block; }

/* Connected tabs: unselected segments show the rail, not separate boxes. */
.site-header { gap: 12px; padding: 12px max(16px, env(safe-area-inset-left)); }
.page-home { --journey-header: 80px; }
.nav.pixel-panel { --panel-cut: 11px; display: flex; gap: 0; padding: 4px; }
.nav a {
  position: relative; display: grid; place-items: center; min-height: 44px;
  padding: 10px 24px; color: var(--muted); font-size: 12px;
  line-height: 1.4; letter-spacing: .07em; text-shadow: none;
  transition: color .15s ease, background .15s ease;
}
.nav a + a { border-left: 1px solid #668e7f50; }
.nav a:first-child { clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); }
.nav a:last-child { clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%); }
.nav a:hover { background: #668e7f22; color: var(--cream); text-shadow: none; }
.nav a[aria-current="location"], .nav a[aria-current="page"] { background: #385962; color: var(--cream); }
.nav a[aria-current]::after { content: ""; position: absolute; bottom: 0; left: 20%; right: 20%; height: 3px; background: var(--gold); }
.nav a:focus-visible { outline-offset: -3px; outline-color: var(--gold); }
.language-control.pixel-panel { --panel-cut: 10px; pointer-events: auto; }
.language {
  position: static; max-width: none; width: 60px; min-height: 52px; padding: 8px;
  transform: none; border: 0; background: none; font-size: 12px; cursor: pointer;
}

/* Large signs use the same quiet relief as in-game dialogs. */
.page-home .scene-panel.pixel-panel { padding: clamp(24px, 3.5vw, 40px); }
.page-home .collection-copy.pixel-panel { --panel-accent: #b69d5a; --panel-light: #625b40; }
.page-home .journey-stage:not(:last-child) { border-bottom: 1px solid #668e7f44; }
.collection { border-top: 0; }
.page-home .scene-mining h2, .page-home .scene-mission h2,
.page-home .collection-copy h2, .page-home .expansion-box h2 {
  font-size: clamp(28px, 3.6vw, 49px); line-height: 1.08; letter-spacing: -.04em;
  margin-block: 14px 20px; text-wrap: balance;
}
.page-home .section-lead { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; margin-bottom: 26px; }
.page-home .section-kicker { color: var(--green); font-size: 12px; line-height: 1.7; letter-spacing: .12em; }
.page-home .collection-copy .section-kicker { color: var(--gold); }
.page-home .hero h1 { font-size: clamp(46px, 6.7vw, 94px); }
.page-home .hero-lead { font-size: clamp(16px, 1.6vw, 21px); }
.page-home .hero-icon { border-radius: 12px; box-shadow: 0 0 0 2px var(--line), 0 5px 0 #071b2970; }

.page-home .world-gate.pixel-panel {
  --panel-accent: #b69d5a; --panel-light: #6f6747; --panel-fill: #18364a;
  padding: 30px 24px; transition: transform .16s ease;
}
.page-home .world-gate.pixel-panel:hover { --panel-accent: var(--gold); transform: translateY(-2px); box-shadow: none; }
.page-home .world-gate.pixel-panel:active { transform: translateY(2px); }
.page-home .world-gate.pixel-panel:focus-visible { box-shadow: none; }
.page-home .world-gate-diamond {
  display: grid; place-items: center; width: 66px; height: 66px; margin: 0 0 20px;
  border: 0; background: none; transform: none; box-shadow: none;
  animation: sign-arrow 2.4s steps(4, end) infinite;
}
.world-gate-diamond .pixel-icon { width: 46px; height: 49px; filter: drop-shadow(0 3px 0 #071b29); }
.page-home .world-gate small { color: var(--muted); font-size: 11px; }
.page-home .world-gate strong { font-size: 14px; line-height: 1.5; }
.page-home .store-platform.pixel-panel { --panel-cut: 9px; --panel-accent: #668e7f99; padding: 13px; opacity: .88; }
.page-home .store-platform small { font-size: 9px; line-height: 1.4; }
.page-home .store-platform strong { font-size: 14px; }
.page-home .store-symbol { font-size: 28px; }
.page-home .store-symbol-play { font-size: 22px; }

/* Cards are objects with a rim, an inner highlight and generous copy spacing. */
.page-home .grid { gap: 14px; }
.page-home .card.pixel-panel { --panel-cut: 12px; --panel-accent: #5e7871; --panel-fill: #1c3b4b; padding: 22px; }
.page-home .card:nth-child(2) { --panel-accent: #578091; }
.page-home .card:nth-child(3) { --panel-accent: #6a8e71; }
.page-home .card:nth-child(4) { --panel-accent: var(--gold); }
.page-home .card:hover { transform: none; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card:nth-child(2) .pixel-icon { color: var(--cyan); }
.card:nth-child(3) .pixel-icon { color: var(--green); }
.card:nth-child(4) .pixel-icon { color: var(--gold); }
.page-home .card-number { font-size: 12px; letter-spacing: .1em; color: #8fa8a3; }
.page-home .card h3 { font-size: 19px; line-height: 1.2; margin: 18px 0 10px; }
.page-home .card p { font-size: 15px; line-height: 1.6; }
.page-home .feature-list { gap: 12px; }
.page-home .feature.pixel-panel {
  --panel-cut: 11px; --panel-stroke: 1px; --panel-fill: #1c3b4b;
  display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center;
  gap: 20px; padding: 22px 24px;
}
.feature:nth-child(1) .pixel-icon { color: var(--green); }
.feature:nth-child(3) .pixel-icon { color: var(--purple); }
.feature:nth-child(4) .pixel-icon { color: var(--gold); filter: drop-shadow(0 0 6px #f4c95d20); }
.page-home .feature strong { font-size: 17px; line-height: 1.4; }
.feature p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.page-home .collection-copy .section-lead { margin-bottom: 0; }
.screens img { border-width: 2px; box-shadow: 0 6px 0 #071b2955; }

/* Confluences: purple is reserved for the expansion, with a restrained glow. */
.page-home .expansion-box.pixel-panel {
  --panel-cut: 20px; --panel-accent: #ab85c2; --panel-light: #725389;
  --panel-fill: #182d40; max-width: 980px; padding: clamp(28px, 4.5vw, 54px);
}
.expansion-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.confluence-gem { width: 64px; height: 72px; flex: none; animation: gem-glow 3.2s ease-in-out infinite; }
.gem-spark { animation: gem-spark 3.2s ease-in-out infinite; }
.page-home .expansion-heading .section-kicker { color: #e0b7f2; font-size: clamp(12px, 1.4vw, 16px); letter-spacing: .07em; }
.expansion-box h2 { color: #e0b7f2; }
.page-home .expansion-points { gap: 14px; margin-top: 28px; }
.page-home .expansion-points .pixel-panel {
  --panel-accent: #765e89; --panel-fill: #253348; --panel-light: #57496d;
  --panel-cut: 11px; --panel-stroke: 1px;
  display: flex; align-items: center; gap: 16px; padding: 22px;
  font-size: 16px; line-height: 1.5;
}
.expansion-points .pixel-icon { color: var(--purple); width: 28px; height: 30px; }
.confluence-orb { opacity: .4; border-width: 1px; }
.trust-icon { margin: 0 auto 24px; color: var(--green); width: 42px; height: 45px; }
/* Keep the footer in the final stage's flow, never anchored to body height. */
.page-home .journey-stage.trust { display: flex; flex-direction: column; gap: 32px; padding-bottom: 0; }
.page-home .trust .section-inner { margin-block: auto; padding-bottom: 0; }
.page-home .trust > .footer { position: relative; inset: auto; width: 100%; flex-shrink: 0; padding-inline: 0; }
.button.pixel-panel { --panel-fill: #28495a; padding: 18px 26px; min-height: 52px; line-height: 1.5; }
.button.pixel-panel:hover, .contact-box.pixel-panel:hover { --panel-accent: var(--green); transform: translateY(-2px); box-shadow: none; }
.button.pixel-panel:active { transform: translateY(2px); }

/* Static support/privacy pages share the panels without changing their copy. */
.contact-box.pixel-panel { --panel-accent: #b69d5a; --panel-light: #625b40; }
.faq { border: 0; display: grid; gap: 12px; }
.faq details.pixel-panel { --panel-cut: 12px; --panel-stroke: 1px; --panel-fill: #18364a; border: 0; background: none; }
.faq summary { padding: 24px; line-height: 1.5; }
.faq summary::marker { color: var(--gold); }
.faq details[open] { --panel-accent: #94b8a8; }
.faq p { padding-inline: 24px; }
.delete-box.pixel-panel { --panel-accent: #a46b63; --panel-fill: #302b38; --panel-light: #67464d; }
.policy-section.pixel-panel { --panel-stroke: 1px; --panel-fill: #142f40; }
.policy-section p { overflow-wrap: anywhere; }
.page h1 { line-height: .98; }
.page h2 { line-height: 1.15; }

/* Keep the studio logo already used in production, now as accessible markup. */
.footer-inner, .page-home .footer-inner { flex-flow: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.footer-links, .page-home .footer-links { justify-content: center; flex-wrap: wrap; gap: 12px; }
.footer-studio-link { display: block; flex: none; width: 86px; height: 86px; border-radius: 50%; }
.footer-logo-mark { display: block; width: 100%; height: 100%; overflow: visible; }
.footer-logo-orbit { transform-box: view-box; transform-origin: center; animation: footer-logo-orbit 28s linear infinite; }
.footer-links a, .page-home .footer-links a { display: inline-grid; place-items: center; min-height: 44px; padding: 6px 10px; font-size: 12px; }
.page-home.journey-at-end .journey-position { bottom: 156px; }
.journey-rail { right: 16px; border: 0; padding: 8px; gap: 4px; border-radius: 12px; background: #102a3ccc; box-shadow: 0 0 0 1px #668e7f88; }
.journey-rail button { width: 24px; height: 28px; border: 0; background: transparent; }
.journey-rail button::before { content: ""; position: absolute; width: 8px; height: 8px; left: 8px; top: 10px; border: 1px solid var(--line); background: var(--navy); }
.journey-rail button.is-passed, .journey-rail button.is-active { background: none; box-shadow: none; transform: none; animation: none; }
.journey-rail button.is-passed::before { background: var(--line); }
.journey-rail button.is-active::before { background: var(--gold); border-color: var(--cream); transform: rotate(45deg); box-shadow: 0 0 9px #f4c95d44; }
.journey-rail button:hover, .journey-rail button:focus-visible { transform: none; outline: 1px solid var(--cream); outline-offset: -2px; }
.journey-position { border-width: 1px; border-radius: 6px; background: #102a3ce6; }

@media (max-width: 900px) {
  .page-home .hero h1 { font-size: clamp(46px, 9vw, 76px); }
  .page-home .world-gate.pixel-panel { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; width: min(360px, 88vw); padding: 20px; text-align: left; justify-items: start; }
  .page-home .world-gate-diamond { grid-row: 1 / 3; width: 40px; height: 44px; margin: 0; align-self: center; }
  .world-gate-diamond .pixel-icon { width: 30px; height: 32px; }
  .page-home .world-gate small { display: block; margin-top: 7px; }
  .page-home .hero { gap: 28px; }
  .page-home .collection-copy { width: 100%; }
}
@media (max-width: 600px) {
  .page-home { --journey-header: 74px; }
  .site-header { gap: 8px; padding: 10px max(12px, env(safe-area-inset-left)); }
  .nav.pixel-panel { flex: 1; min-width: 0; padding: 4px; }
  .nav a { flex: 1; padding: 8px 5px; font-size: clamp(10px, 2.8vw, 12px); letter-spacing: 0; text-align: center; }
  .language { width: 48px; padding: 6px; min-height: 52px; font-size: 11px; }
  .page-home .journey-stage.hero, .page-home .journey-stage.section { padding: calc(var(--journey-header) + 22px) 16px 38px; }
  .page-home .hero h1 { font-size: clamp(41px, 11.2vw, 64px); }
  .page-home .hero-lead { font-size: 16px; line-height: 1.6; margin-block: 20px; }
  .page-home .hero .eyebrow { font-size: 11px; line-height: 1.7; }
  .page-home .world-gate.pixel-panel { width: 100%; max-width: 350px; padding: 20px 18px; }
  .page-home .store-platform.pixel-panel { padding: 12px 10px; }
  .page-home .store-platform strong { font-size: 13px; }
  .page-home .store-platform small { font-size: 8px; }
  .page-home .scene-panel.pixel-panel, .page-home .expansion-box.pixel-panel { padding: 26px 20px; }
  .page-home .scene-mining h2, .page-home .scene-mission h2,
  .page-home .collection-copy h2, .page-home .expansion-box h2 { font-size: clamp(27px, 7vw, 36px); margin-block: 14px 18px; }
  .page-home .section-lead { font-size: 15px; line-height: 1.65; margin-bottom: 24px; }
  .page-home .grid { grid-template-columns: 1fr; gap: 12px; }
  .page-home .card.pixel-panel { padding: 20px; }
  .page-home .card h3 { font-size: 20px; margin-top: 12px; }
  .page-home .card p, .feature p { font-size: 15px; }
  .page-home .feature.pixel-panel { grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 20px 16px; align-items: start; }
  .feature .pixel-icon { width: 28px; height: 30px; }
  .page-home .feature strong { font-size: 16px; }
  .page-home .feature-list { gap: 12px; }
  .page-home .collection-layout { gap: 30px; }
  .page-home .expansion-points { grid-template-columns: 1fr; gap: 12px; }
  .page-home .expansion-points .pixel-panel { font-size: 15px; padding: 20px; }
  .expansion-heading { gap: 12px; margin-bottom: 20px; }
  .confluence-gem { width: 48px; height: 54px; }
  .page-home .expansion-heading .section-kicker { font-size: 12px; }
  .page-home .trust .section-inner { padding: 0 6px; }
  .page-home .trust h2 { font-size: clamp(32px, 9vw, 46px); }
  .page-home .trust .section-lead { font-size: 16px; }
  .page-home .trust p:not(.section-lead) { line-height: 1.6; }
  .page { padding: 54px 20px 70px; }
  .page-intro { font-size: 16px; }
  .page h1 { font-size: clamp(36px, 11vw, 64px); letter-spacing: -.045em; }
  .page h2 { font-size: 26px; }
  .page .contact-box { padding: 24px 18px; }
  .contact-box strong { font-size: 14px; }
  .policy-section p, .delete-box p, .faq p { font-size: 15px; line-height: 1.75; }
  .delete-box { padding: 24px 20px; }
  .footer-studio-link { width: 70px; height: 70px; }
  /* A thin header progress line leaves mobile cards completely unobstructed. */
  .journey-position, .page-home.journey-at-end .journey-position {
    top: 70px; right: 12px; left: 12px; bottom: auto; height: 2px;
    padding: 0; border: 0; border-radius: 0; background: #668e7f44;
  }
  .journey-position b, .journey-position span { display: none; }
  .journey-position::after { height: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .confluence-gem { filter: drop-shadow(0 0 5px #c79ae833); }
}
@keyframes sign-arrow { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
@keyframes gem-glow { 0%, 100% { filter: drop-shadow(0 0 3px #c79ae833); } 50% { filter: drop-shadow(0 0 9px #c79ae877); } }
@keyframes gem-spark { 0%, 100% { opacity: .45; } 50% { opacity: .85; } }
@keyframes footer-logo-orbit { to { transform: rotate(360deg); } }

/* Keep all eleven language labels and longer translated navigation usable. */
.nav.pixel-panel, .nav a { min-width: 0; }
.nav a { hyphens: auto; overflow-wrap: anywhere; }
html:is(:lang(ja), :lang(zh)) .page-home h2,
html:is(:lang(ja), :lang(zh)) .page-home h3,
html:is(:lang(ja), :lang(zh)) .page h1 { line-height: 1.45; letter-spacing: .02em; }
html:is(:lang(ja), :lang(zh)) .language { font-family: inherit; }
html:lang(el) .page h1 { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  html:lang(el) .page-home .footer-links { flex-wrap: wrap; justify-content: center; }
  html:lang(el) .page-home .trust .section-inner { padding-bottom: 110px; }
  html:lang(ja) .language { font-size: 10px; padding-inline: 4px; }
}
