@import url("../../css/cabinet.css");
:root { color-scheme: dark; --paper: #f4ebd7; --muted: #bdbbad; --gold: #edbf66; --mint: #99d5c7; --ink: #141b20; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--paper); background: #F5F7FD; font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; line-height: 1.85; }
a { color: var(--gold); text-underline-offset: .25em; }
a:hover { color: #ffe4a2; }
button, a, canvas { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b8fbea; outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 10; padding: .6rem 1rem; background: #101619; }
.skip-link:focus { top: 1rem; }
.page-header, main, footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
nav { display: flex; justify-content: space-between; gap: 1rem; padding: 25px 0; font-size: .8rem; }
nav span { color: var(--muted); letter-spacing: .14em; }
.page-header { text-align: center; padding-bottom: 25px; }
.eyebrow { font-size: .75rem; letter-spacing: .2em; color: var(--mint); font-weight: bold; }
.badge { display: inline-block; margin-left: 12px; border: 1px solid #7e998b; border-radius: 3px; padding: 2px 9px; color: var(--paper); letter-spacing: .12em; }
h1 { margin: 20px 0 0; color: var(--gold); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.25; letter-spacing: .06em; text-shadow: 0 3px #080f13; }
h1 small { display: block; font-size: .4em; color: var(--paper); margin-top: 14px; }
.lead { font-size: 1.15rem; margin-bottom: 0; }
.page-header > p:last-child { color: var(--muted); font-size: .9rem; }
#unity-canvas { display: block; width: 100%; height: 100%; border-radius: 9px; background: #050b0d; }
.loading { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px; border-radius: 9px; background: radial-gradient(ellipse, #193330, #071414); text-align: center; }
.loading p { margin: 0 0 10px; }
.loading-title { font-size: clamp(1.2rem, 3vw, 2.4rem); color: var(--gold); font-weight: bold; }
.loading label, #load-status { font: .75rem/1.8 monospace; color: var(--mint); }
progress { width: min(65%, 280px); height: 16px; margin: 12px 0; border: 1px solid var(--mint); padding: 3px; background: #0c191b; accent-color: var(--gold); }
progress::-webkit-progress-bar { background: #0c191b; }
progress::-webkit-progress-value { background: var(--gold); }
progress::-moz-progress-bar { background: var(--gold); }
#unity-warning { position: absolute; inset: 8px 8px auto; max-height: calc(100% - 16px); overflow: auto; font-size: .85rem; overflow-wrap: anywhere; z-index: 2; }
.error, .warning { padding: 12px; margin-bottom: 5px; border: 1px solid #efaf94; background: #48241e; color: #fff4ed; }
.warning { border-color: var(--gold); background: #3c321b; }
button { padding: 12px 17px; border: 1px solid #aaa18d; border-radius: 4px; background: #172220; color: var(--paper); font: inherit; font-size: .85rem; cursor: pointer; }
button:hover:enabled { background: #2b3b35; }
button:disabled { opacity: .5; cursor: wait; }
.play-note { text-align: center; color: var(--muted); font-size: .8rem; margin: 24px 0 55px; }
.about { border-top: 1px solid #54645a; padding-top: 28px; }
h2 { font-size: 1.35rem; color: var(--paper); margin: 8px 0 18px; }
.section-heading h2 { font-size: 1.8rem; }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; margin-top: 38px; }
li { margin-bottom: 12px; }
ol, ul { padding-left: 1.4rem; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; border-top: 1px solid #536259; padding-top: 20px; font-size: .9rem; }
dt { color: var(--gold); font-weight: bold; }
dd { margin: 0; }
.muted { color: var(--muted); font-size: .85rem; }
.notice { border-left: 3px solid var(--mint); padding: 12px 20px; background: #21312e; margin-top: 25px; font-size: .9rem; }
.notice h3 { font-size: 1rem; margin: 0; }
.notice p { margin: 8px 0; }
footer { border-top: 1px solid #54645a; margin-top: 55px; padding: 35px 0; text-align: center; }
.portal-link { display: inline-block; padding: 10px 24px; border: 1px solid #c6ab72; border-radius: 4px; }
footer p { color: var(--muted); font: .7rem/2 monospace; letter-spacing: .13em; margin-top: 25px; }
#unity-canvas:fullscreen { width: 100vw; height: 100vh; border-radius: 0; }
@media (max-width: 760px) {
  .page-header, main, footer { width: calc(100% - 24px); }
  nav span, .decor-controls, .speaker, .coin-slot, .desktop-break { display: none; }
  nav { padding: 18px 0; }
  .badge { margin-left: 5px; font-size: .65rem; }
  button { padding: 10px; font-size: .75rem; }
  .loading .eyebrow { display: none; }
  .loading p { margin-bottom: 4px; }
  .loading label, #load-status { font-size: .6rem; }
  progress { margin: 6px 0; height: 12px; }
  .play-note { margin-bottom: 35px; }
  .notes-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 25px; }
  dl { grid-template-columns: 1fr; gap: 3px; }
  dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Light page background shared with the corporate pages. */
body { color: #203047; }
body > .page-header a, footer .portal-link { color: #175a91; }
body > .page-header a:hover, footer .portal-link:hover { color: #217c94; }
.page-header h1 { color: #203047; text-shadow: none; }
.page-header h1 small, .about h2 { color: #203047; }
.page-header .eyebrow { color: #217c94; }
.page-header > p:last-child, .play-note, footer p, .about .muted { color: #4a5d70; }
.about dt { color: #175a91; }
.about .notice { background: #eef3f7; color: #203047; border-left-color: #217c94; }
body > .page-header a:focus-visible, footer a:focus-visible { outline-color: #175a91; }
