: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; }
.cabinet { border: 2px solid #53534c; border-radius: 22px 22px 10px 10px; padding: 17px 20px 0; background: linear-gradient(130deg, #3a3d3b, #202525 55%, #333734); box-shadow: 0 26px 45px #0008, inset 0 2px 0 #8b8c79; }
.cabinet-label { display: flex; justify-content: space-between; gap: 1rem; margin: 0 8px 12px; color: var(--gold); font: bold .7rem/1.6 monospace; letter-spacing: .15em; }
.power { color: var(--mint); }
.tabletop { padding: 25px 48px 20px; border: 2px solid #111816; border-radius: 14px; background: repeating-linear-gradient(2deg, #ffffff03 0 1px, transparent 1px 5px), linear-gradient(120deg, #514538, #2d2b26 35%, #3c352d); box-shadow: inset 0 0 0 5px #757265, inset 0 0 0 7px #1b2523, 0 4px 0 #111; }
.monitor-frame { padding: 17px 17px 0; background: #111715; border: 2px solid #5b6258; border-radius: 24px; box-shadow: 0 0 0 7px #161d1b, 0 0 0 8px #928977, inset 0 4px 10px #000; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #050b0d; border-radius: 9px; box-shadow: 0 0 18px #85d3be16; }
#unity-canvas { display: block; width: 100%; height: 100%; border-radius: 9px; background: #050b0d; }
.monitor-caption { display: flex; justify-content: space-between; padding: 7px 3px; color: #a4b2a6; font: .65rem/1.5 monospace; letter-spacing: .1em; }
.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; }
.control-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; }
.decor-controls { display: flex; align-items: center; gap: 15px; }
.joystick { width: 45px; height: 45px; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #ef9786, #9b3d36 65%, #482822); box-shadow: 0 12px 0 4px #101715, 0 14px 0 5px #75756a; margin-right: 20px; }
.arcade-button { width: 36px; height: 36px; border-radius: 50%; border: 4px solid #18201c; box-shadow: 0 4px 0 #101713, inset 0 2px 3px #fff6; }
.coral { background: #cd6c59; }
.gold { background: #d5ad58; }
.control-caption { color: var(--gold); font: .8rem/1.8 monospace; letter-spacing: .06em; }
.control-caption small { display: block; color: var(--muted); font-family: sans-serif; font-size: .75rem; }
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; }
.cabinet-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 28px; margin: 0 -20px; background: #171d1d; border-top: 2px solid #090f0f; border-radius: 0 0 8px 8px; color: #b1b5a8; font: .65rem/1.6 monospace; letter-spacing: .15em; }
.speaker { width: 85px; height: 24px; background: repeating-linear-gradient(90deg, #030807 0 3px, #343b34 3px 7px); border-radius: 5px; }
.coin-slot { width: 38px; height: 12px; border: 3px solid #62665a; background: #020605; }
.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; }
  .cabinet { padding: 12px 8px 0; border-radius: 12px; }
  .cabinet-label { font-size: .6rem; letter-spacing: .06em; margin-inline: 0; }
  .tabletop { padding: 10px; border-radius: 8px; box-shadow: inset 0 0 0 2px #757265; }
  .monitor-frame { padding: 5px 5px 0; border-radius: 10px; box-shadow: none; }
  .monitor-caption { font-size: .5rem; }
  .control-panel { padding: 12px 4px; gap: 8px; }
  .control-caption { font-size: .65rem; }
  .control-caption small { font-size: .6rem; }
  button { padding: 10px; font-size: .75rem; }
  .cabinet-base { margin-inline: -8px; padding: 12px 8px; justify-content: center; font-size: .55rem; }
  .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; }
