/* The interactive demo keeps its game logic and muted category colors.
   This layer brings its reading surfaces and entry into WILL.OS. */
:root{
  --md-primary:#315d64;--md-primary-light:#5f8983;--md-primary-dark:#183840;
  --md-secondary:#7b8568;--md-secondary-light:#a8b899;--md-secondary-dark:#4d604f;
  --md-tertiary:#416f71;--md-tertiary-light:#78a099;--md-tertiary-dark:#264c50;
  --md-surface:#e5ece4;--md-surface-dim:#d9e2d8;--md-surface-container:#f0f0e3;
  --md-surface-container-high:#e6eadf;--md-on-surface:#243e44;
  --md-on-surface-variant:#597377;--md-outline:#b6c5bb;--md-outline-variant:#a5b6ae;
  --ui-ink:#1c3940;--ui-ink-soft:#2b535b;--ui-canvas:#cbdcd5;
  --ui-panel:#e9ebde;--ui-panel-soft:#dfe7dc;--ui-line:#a7beb660;--ui-muted:#577478;
  --ui-focus:#315e6a;--shadow-card:0 18px 42px #203f4423;
  --radius-sm:3px;--radius-md:4px;--radius-lg:5px;
  --cat-blue:#95b8bd;--cat-blue-bg:#dbe7e2;
  --cat-pink:#c4abb7;--cat-pink-bg:#e8dfe1;
  --cat-yellow:#d2c69c;--cat-yellow-bg:#eee9d3;
  --cat-green:#a8c6b0;--cat-green-bg:#e1eadc;
  --cat-orange:#d5af96;--cat-orange-bg:#f0e2d5;
  --cat-purple:#a9adc3;--cat-purple-bg:#e4e4eb;
}
body{background:radial-gradient(circle at 75% 0%,#d8e8df 0%,#bed4d2 65%,#acc9cf 100%);color:var(--ui-ink)}
#app-header{background:#1b3a41;border-bottom:1px solid #7ca39b60;box-shadow:0 8px 24px #17323928}
#app-header h1{font-family:Georgia,serif;font-weight:400;letter-spacing:-.04em}
.product-edition-badge{border-color:#b3c9be70;background:#d6e3d8;color:#28565c;border-radius:2px;font-family:Consolas,monospace;font-size:10px;letter-spacing:.1em}
.panel-card,#board-area,.modal{background:#ebece0;border-color:var(--ui-line);box-shadow:0 14px 35px #294f5420}
#modal-content{background:#edf0e5;color:var(--ui-ink);border:1px solid #9cb5a9;border-radius:4px;box-shadow:0 20px 60px #102b3450}
#modal-footer button{background:#2b535b!important;color:#f2f4e9!important;border-radius:3px!important}
#modal-footer button:nth-child(n+2){background:#dfe7dc!important;color:#24484f!important}
#board-header{background:#e9ede3;border-bottom-color:var(--ui-line)}
#board-container{background:linear-gradient(145deg,#dbe6dc,#cbded4)}
.board-cell{border-radius:4px;box-shadow:0 2px 6px #244a4c20}
.board-header-round,.board-header-info{border-radius:2px}
.mode-switch,.mode-btn,.student-item,.roll-call-display,.current-player-display,.dice-area,.ranking-item{border-radius:3px!important}
.btn-add-student,.btn-batch-import,.btn-roll-call,.btn-roll-dice,.btn-next-round{border-radius:3px!important}
.btn-add-student,.btn-batch-import{background:#edf0e5!important;border-color:#9db8af!important}
.mode-btn.active{background:#f2f2e6!important}
#welcome-screen{background:radial-gradient(circle at 72% 22%,#36666a 0%,transparent 32%),linear-gradient(135deg,#102b34 0%,#1d4851 58%,#365c5a 100%);padding:70px 20px 42px}
#welcome-screen::before{background-image:linear-gradient(#d0e1d615 1px,transparent 1px),linear-gradient(90deg,#d0e1d615 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(#000,transparent 90%)}
.will-return{position:absolute!important;z-index:3!important;top:24px;left:30px;color:#c7dad1;text-decoration:none;font:600 11px/1.4 Consolas,monospace;letter-spacing:.1em}
.will-return:hover{text-decoration:underline;text-underline-offset:5px}
.will-return:focus-visible{outline:2px solid #dfece1;outline-offset:5px}
.welcome-index{color:#a9c7be;font:600 11px/1.4 Consolas,monospace;letter-spacing:.18em;margin-bottom:28px}
#welcome-logo{font:400 clamp(52px,8vw,104px)/1.02 Georgia,serif;letter-spacing:-.07em;text-shadow:none;margin:0 0 14px}
#welcome-logo span{font-family:Consolas,monospace;letter-spacing:.03em;font-weight:400}
#welcome-subtitle{color:#d1e1d7;font-size:17px;letter-spacing:.03em;margin-bottom:14px}
#welcome-btn-start{background:#e5ebdd;color:#1d4148;border:1px solid #f2f4e8;border-radius:2px;box-shadow:8px 8px 0 #071e2940!important;font-weight:650;letter-spacing:.04em}
#welcome-btn-start:hover{background:#f4f4e9;transform:translateY(-2px)}
#welcome-features{border-top:1px solid #b9d2c346;border-bottom:1px solid #b9d2c346;padding:16px 0;gap:26px}
#welcome-features .feature-icon{font-size:20px;filter:saturate(.35)}
.welcome-option-block{border-radius:3px;background:#e6eee910;border-color:#c5ded43c;backdrop-filter:blur(4px)}
.wp-preset-btn,.wp-theme-chip{border-radius:2px}
.experience-note{background:transparent;border:0;border-top:1px solid #b9d2c346;border-radius:0;color:#c7d9d1}
#welcome-bg-toggle{color:#d4e2da!important}
@media(max-width:700px){.will-return{left:18px;top:18px}.welcome-index{margin-bottom:16px}#welcome-screen{padding-top:68px}#welcome-features{gap:14px;flex-wrap:wrap;justify-content:center}#welcome-logo{font-size:clamp(40px,12vw,66px)}}
@media(prefers-reduced-motion:reduce){#welcome-screen::before{animation:none}}

/* Keep the main action available as soon as the page is ready. */
#welcome-btn-start{animation:none;opacity:1}.will-return{min-height:44px;display:inline-flex;align-items:center}
