/* v0.1.8 game catalog + labyrinth surfaces, entirely isolated. */
body[data-mode="home"] .mode-nav,body[data-mode="home"] .home-top,body[data-mode="home"] #open-help{display:none!important}
body[data-mode="home"] .top-actions{margin-left:auto}
.home-top{white-space:nowrap}.arena-head-actions .home-inline{min-width:0}
.game-library{width:100%;max-width:1490px;height:100%;min-height:0;margin:auto;border:1px solid var(--theme-border,#d6e0e8);border-radius:22px;background:var(--theme-main,#fff);padding:clamp(15px,2.5vw,42px);display:flex;flex-direction:column;gap:clamp(13px,2vh,22px);overflow:hidden;box-shadow:0 10px 28px #050e1b17}
.library-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;color:var(--theme-text,#22384f);flex:none}
.library-heading h2{font-size:clamp(1.4rem,2.8vw,2.7rem);letter-spacing:-.06em;line-height:1.12;margin:5px 0 11px}
.library-heading p{font-size:clamp(.72rem,1.2vw,1rem);color:var(--theme-muted,#60788b);max-width:690px;line-height:1.45}
.library-count{border:1px solid var(--theme-border,#d3dfe6);background:var(--theme-soft,#edf3f6);font-size:.8rem;border-radius:99px;padding:9px 14px;white-space:nowrap;font-weight:900}
.game-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2vw,24px);flex:1;min-height:0;align-items:stretch}
.catalog-card{min-width:0;min-height:0;padding:clamp(12px,1.6vw,27px);border:1px solid var(--theme-border,#c9dbe1);background:var(--theme-elev,#fff);color:var(--theme-text,#213b4f);border-radius:19px;display:flex;flex-direction:column;text-align:left;overflow:hidden;box-shadow:0 7px 18px #030e1b0e;transition:transform .17s,border-color .17s,box-shadow .17s}
.catalog-card:hover{transform:translateY(-3px);border-color:var(--theme-accent,#13877c);box-shadow:0 12px 22px #03111c1c}
.catalog-art{width:100%;flex:1;min-height:120px;max-height:350px;border-radius:15px;background:linear-gradient(140deg,#dcefee,#f0f7f5);color:#2b6a7f;display:grid;place-items:center;padding:clamp(8px,1.5vw,22px)}
.maze-catalog .catalog-art{background:linear-gradient(145deg,#fcebd9,#f8f4ee);color:#3c6780}
.catalog-art svg{height:90%;max-height:200px;width:auto;max-width:80%;filter:drop-shadow(0 9px 10px #0b34401b)}
.catalog-sudoku-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr);width:min(44%,225px);aspect-ratio:1;border:4px solid #274052;background:white;box-shadow:0 7px 14px #203b4d24;border-radius:4px;overflow:hidden}
.catalog-sudoku-grid i{display:grid;place-items:center;color:#2b4b64;font-weight:900;font-size:clamp(.7rem,2vw,1.6rem);font-style:normal;border-right:1px solid #bdcbd4;border-bottom:1px solid #bdcbd4;background:#f4f9f8}
.catalog-sudoku-grid i:nth-child(4n+2){border-right:3px solid #274052}.catalog-sudoku-grid i:nth-child(n+5):nth-child(-n+8){border-bottom:3px solid #274052}
.catalog-info{display:flex;flex-direction:column;gap:clamp(5px,1vh,9px);flex:none;padding-top:clamp(10px,1.8vh,20px)}
.catalog-number{color:var(--theme-accent,#0d8580);letter-spacing:.12em;font-weight:900;font-size:.64rem}
.catalog-info>strong{font-size:clamp(1.4rem,2vw,2rem);letter-spacing:-.045em;line-height:1.1}
.catalog-info>small{font-size:clamp(.75rem,.98vw,.95rem);line-height:1.4;color:var(--theme-muted,#667c8d)}
.catalog-features{font-size:clamp(.66rem,.84vw,.79rem);color:var(--theme-muted,#667c8d);font-weight:800}
.catalog-open{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--theme-border,#d7e5eb);padding-top:clamp(8px,1vh,13px);margin-top:2px;font-weight:900;color:var(--theme-accent,#087e80)}
.catalog-open b{display:grid;place-items:center;height:32px;width:32px;background:var(--theme-soft,#ecf6f5);border-radius:50%;font-size:1.2rem}
.library-footer{text-align:center;font-weight:750;color:var(--theme-muted,#617689);font-size:.69rem;flex:none}.library-footer span{margin:0 9px}
.maze-game{max-width:1820px}.maze-game-icon{display:grid;place-items:center;width:47px;height:47px;flex:none;border-radius:14px;background:#ddf5e9;color:#126e72;font-size:2rem;font-weight:900}
.maze-playground{background:var(--theme-main,#f8fcfa)}.maze-play-area{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;max-width:100%;width:100%;height:100%;min-height:0}
.maze-board{--maze-size:390px;--maze-n:11;width:var(--maze-size);height:var(--maze-size);aspect-ratio:1;flex:none;max-width:100%;display:grid;grid-template-columns:repeat(var(--maze-n),1fr);grid-template-rows:repeat(var(--maze-n),1fr);border:3px solid var(--theme-contrast,#234357);border-radius:9px;overflow:hidden;box-shadow:0 8px 20px #0219291c;touch-action:none;user-select:none;-webkit-user-select:none}
.maze-cell{padding:0;border:0;min-width:0;min-height:0;background:var(--theme-elev,#fff);color:var(--theme-text,#233a50);font-weight:900;font-size:clamp(.5rem,1.6vw,1.3rem);display:grid;place-items:center;touch-action:none;cursor:pointer;line-height:1}
.maze-cell.wall{background:var(--theme-contrast,#20374d);pointer-events:none;cursor:default}
.maze-cell.corridor{box-shadow:inset 0 0 0 .4px var(--theme-border,#d5e3e6)}
.maze-cell.traced{background:#b5eae0;color:#17594a}.maze-cell.current{background:#54c6b4;color:#123f3d;box-shadow:inset 0 0 0 2px #077365}
.maze-cell.entrance{background:#2fba94;color:#062f2c}.maze-cell.exit{background:#f9bd65;color:#784113}
.maze-cell.hinted{background:#fae78e!important;box-shadow:inset 0 0 0 3px #c08b24!important}
.maze-cell:disabled{opacity:1}.maze-controls{display:flex;justify-content:center;gap:8px;flex-wrap:nowrap}.maze-controls .btn{font-size:.85rem}
.maze-race-side .maze-race-board{--maze-size:320px;border-width:2px;box-shadow:0 0 0 4px var(--theme-elev,#fff)}
.maze-race-area{gap:8px}.maze-race-side .race-actions{margin-top:4px}
body[data-mode="race"][data-game="maze"] .race-setup .versus-graphic{font-size:2.9rem}
body[data-mode="race"][data-game="maze"] .race-setup .versus-graphic::first-letter{color:var(--theme-accent)}
html[data-theme="dark"] .catalog-art{background:linear-gradient(140deg,#1b4250,#274657);color:#c4eee7}
html[data-theme="dark"] .maze-catalog .catalog-art{background:linear-gradient(140deg,#574333,#3e4552);color:#f3c696}
html[data-theme="dark"] .maze-cell.traced{background:#185c63;color:#ecfffa}
html[data-theme="dark"] .maze-cell.current{background:#39a6a2;color:#061f27}
html[data-theme="dark"] .maze-cell.entrance{background:#279b7e;color:white}
html[data-theme="dark"] .maze-cell.exit{background:#d79a51;color:#161f24}
html[data-theme="dark"] .maze-cell.corridor{background:#293e52}
html[data-theme="dark"] .maze-cell.wall{background:#101b2a}
html[data-theme="dark"] .maze-cell.traced{background:#185c63}
html[data-theme="dark"] .maze-cell.current{background:#39a6a2}
html[data-theme="dark"] .maze-cell.entrance{background:#279b7e}
html[data-theme="dark"] .maze-cell.exit{background:#d79a51}
@media(max-width:900px){.game-library{padding:16px}.catalog-art{min-height:80px}.library-heading h2{font-size:1.5rem}.catalog-info>strong{font-size:1.35rem}}
@media(max-width:700px){.game-library{padding:11px;gap:8px}.library-heading h2{font-size:1.25rem;margin:3px 0 6px}.library-heading p{font-size:.65rem;line-height:1.24}.library-count{font-size:.6rem;padding:6px 8px}.game-catalog{gap:8px}.catalog-card{padding:9px;border-radius:12px}.catalog-art{min-height:72px;padding:7px;border-radius:8px}.catalog-info{gap:5px;padding-top:9px}.catalog-number{font-size:.48rem;letter-spacing:.03em}.catalog-info>strong{font-size:1.1rem}.catalog-info>small{font-size:.63rem;line-height:1.2}.catalog-features{font-size:.55rem}.catalog-open{font-size:.7rem;padding-top:7px}.catalog-open b{width:22px;height:22px}.library-footer{font-size:.59rem}.library-footer span{margin:0 4px}.maze-game-icon{height:35px;width:35px}.home-inline{padding:4px 7px;font-size:.7rem}.maze-play-area{gap:5px}.maze-controls{gap:4px}.maze-controls .btn{min-height:32px;padding:5px 8px;font-size:.69rem}}
@media(max-width:460px){.game-catalog{grid-template-columns:1fr;min-height:0}.catalog-card{flex-direction:row;align-items:stretch;gap:10px;min-height:0}.catalog-art{width:34%;max-height:none;min-height:0}.catalog-art svg{height:80px;width:80px}.catalog-sudoku-grid{width:70%}.catalog-info{flex:1;padding:0;justify-content:center}.catalog-info>strong{font-size:1.14rem}.catalog-info>small{font-size:.63rem}.catalog-features{font-size:.52rem}.catalog-open{margin-top:1px}.library-footer{font-size:.57rem}}
@media(max-height:540px){.game-library{padding:10px;gap:7px}.library-heading h2{font-size:1.15rem;margin:2px}.library-heading p{font-size:.62rem}.catalog-art{min-height:50px}.catalog-info{padding-top:5px;gap:3px}.catalog-info>strong{font-size:1.1rem}.catalog-info>small{font-size:.6rem}.catalog-open{padding-top:5px}.library-footer{display:none}.maze-play-area{gap:3px}.maze-controls .btn{min-height:27px;padding:3px 6px}}
@media(max-height:410px){.library-heading p{display:none}.catalog-art{max-height:70px}.catalog-card{flex-direction:row;gap:10px}.catalog-art{width:30%}.catalog-info{flex:1}.maze-game .arena-head{padding:3px 7px}.maze-game .arena-game-icon{display:none}}
/* Paper fallback: nine independent mazes, three rows by three columns, with clear corridors. */
@media print{
 .maze-print-sheet .sheet-head{height:29mm;min-height:29mm}
 .maze-print-sheet .sheet-head h1{font-size:19pt}
 .maze-print-body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));column-gap:3mm;row-gap:1.5mm;align-content:stretch;flex:1;min-height:0}
 .maze-paper-card{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:0;min-width:0;gap:1.4mm;padding:1mm .4mm;break-inside:avoid}
 .maze-paper-card strong{font-size:8pt;align-self:start;font-weight:850;padding-left:1mm;color:#222}
 .maze-paper-grid{width:57mm;max-width:100%;max-height:60mm;height:auto;aspect-ratio:1;display:block;flex-shrink:1}
}
/* Prevent stretched/empty catalog cards on short or narrow screens. */
@media(max-width:460px){
 .game-catalog{grid-template-rows:repeat(2,minmax(0,clamp(128px,25vh,215px)));align-content:center}
 .catalog-card{height:100%;align-self:center}
 .catalog-art{align-self:stretch;display:grid;place-items:center}
}
@media(max-height:450px) and (min-width:461px){
 .catalog-card{height:fit-content;max-height:180px;align-self:center}
 .catalog-art{flex:none;height:74px}
}


/* v0.1.11 — maze screen aligned to compact centered mockup */
.identity-title-line{display:flex;align-items:center;gap:12px;min-width:0}
.active-game-name{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:10px;background:#fff;color:#20374b;border:1px solid #d8e3ea;box-shadow:0 2px 0 #c9d5dd;font-size:clamp(1rem,1.5vw,1.2rem);font-weight:900;letter-spacing:-.03em;white-space:nowrap}
body[data-game="maze"][data-mode="class"] .active-game-name{display:inline-flex!important}
body[data-mode="home"] .active-game-name{display:none!important}
body[data-game="maze"][data-mode="class"] .maze-game{background:linear-gradient(180deg,#f8fbfc 0%,#f6f9fa 100%)}
body[data-game="maze"][data-mode="class"] .maze-game .arena-head{height:auto;padding:8px 18px 2px;justify-content:center;background:transparent;border-bottom:1px solid var(--theme-border,#dbe6e8)}
body[data-game="maze"][data-mode="class"] .maze-game .arena-game-brand{display:none}
body[data-game="maze"][data-mode="class"] .maze-game .arena-head-actions{width:100%;justify-content:center;gap:12px;flex-wrap:wrap}
body[data-game="maze"][data-mode="class"] .maze-game .arena-head-actions .btn{min-height:52px;padding:0 26px;border-radius:16px;font-size:1rem;box-shadow:0 3px 0 #c4d1da}
body[data-game="maze"][data-mode="class"] .maze-game .arena-head-actions .btn.primary{box-shadow:0 3px 0 #0e6667}
body[data-game="maze"][data-mode="class"] .maze-playground{padding:12px 18px 14px;background:#f7fafb}
body[data-game="maze"][data-mode="class"] .maze-playground::before,body[data-game="maze"][data-mode="class"] .maze-playground::after{display:none}
body[data-game="maze"][data-mode="class"] .maze-play-area{max-width:760px;margin:0 auto;gap:10px;padding-top:4px}
body[data-game="maze"][data-mode="class"] .maze-board{--maze-size:min(62vh,540px);border-width:4px;border-radius:18px;box-shadow:0 0 0 10px #f0f4f6,0 14px 34px #08203118;background:#fff}
body[data-game="maze"][data-mode="class"] .maze-cell.wall{background:#203a55}
body[data-game="maze"][data-mode="class"] .maze-cell.corridor{background:#ffffff;box-shadow:inset 0 0 0 .8px #cfd8de}
body[data-game="maze"][data-mode="class"] .maze-cell.traced{background:#d3f0e9;color:#164b48}
body[data-game="maze"][data-mode="class"] .maze-cell.current{background:#44bfa9;color:#0d3634;box-shadow:inset 0 0 0 2px #0f7266}
body[data-game="maze"][data-mode="class"] .maze-cell.entrance{background:#3fbea2;color:#0a2e2e}
body[data-game="maze"][data-mode="class"] .maze-cell.exit{background:#f4c166;color:#734515}
body[data-game="maze"][data-mode="class"] .maze-controls{width:100%;justify-content:center;gap:14px;flex-wrap:wrap}
body[data-game="maze"][data-mode="class"] .maze-controls .btn{min-width:154px;min-height:52px;border-radius:16px;font-size:1rem;box-shadow:0 3px 0 #c5d2da}
body[data-game="maze"][data-mode="class"] .maze-controls .btn.primary{box-shadow:0 3px 0 #0e6667}
body[data-game="maze"][data-mode="class"] #maze-feedback{width:min(100%,690px);min-height:30px;background:#ffffff;border-radius:999px;padding:6px 20px}
body[data-game="maze"][data-mode="class"] .maze-command-bar{margin-inline:auto;width:min(100%,760px)}
@media (max-width:900px){
 body[data-game="maze"][data-mode="class"] .maze-board{--maze-size:min(58vh,460px)}
 body[data-game="maze"][data-mode="class"] .maze-game .arena-head-actions .btn,body[data-game="maze"][data-mode="class"] .maze-controls .btn{min-width:130px;min-height:46px;font-size:.9rem;padding:0 16px}
 .active-game-name{font-size:.95rem;min-height:34px;padding:0 10px}
}
@media (max-width:620px){
 .identity-title-line{gap:8px}.active-game-name{display:none!important}
 body[data-game="maze"][data-mode="class"] .maze-playground{padding:8px 8px 10px}
 body[data-game="maze"][data-mode="class"] .maze-play-area{max-width:100%;gap:8px}
 body[data-game="maze"][data-mode="class"] .maze-board{--maze-size:min(54vh,78vw);border-radius:14px;box-shadow:0 0 0 6px #eef3f5,0 10px 24px #08203118}
 body[data-game="maze"][data-mode="class"] .maze-game .arena-head{padding:6px 10px 2px}
 body[data-game="maze"][data-mode="class"] .maze-game .arena-head-actions{gap:8px}
 body[data-game="maze"][data-mode="class"] .maze-game .arena-head-actions .btn,body[data-game="maze"][data-mode="class"] .maze-controls .btn{min-width:0;min-height:40px;padding:0 12px;border-radius:12px;font-size:.82rem}
 body[data-game="maze"][data-mode="class"] .maze-controls{gap:8px}
 body[data-game="maze"][data-mode="class"] #maze-feedback{font-size:.73rem;padding:5px 12px}
}

body[data-game="maze"][data-mode="class"] #maze-undo{display:none!important}
body[data-game="maze"][data-mode="class"] #maze-reset{order:1}
body[data-game="maze"][data-mode="class"] #maze-check{order:2}
body[data-game="maze"][data-mode="class"] #maze-hint{order:3}


/* v0.1.12 – Sudoku uses the same single-stage command hierarchy as Labyrinth.
   Only active Sudoku CLASS screen is affected. Race/A4/other games stay isolated. */
body[data-mode="class"][data-game="sudoku"] .sudoku-game .arena-head{
  height:auto; flex:none; justify-content:center; background:transparent;
  padding:8px 18px 2px; border-bottom:1px solid var(--theme-border,#dbe6e8);
}
body[data-mode="class"][data-game="sudoku"] .sudoku-game .arena-game-brand{display:none}
body[data-mode="class"][data-game="sudoku"] .sudoku-game .arena-head-actions{
  width:100%;justify-content:center;gap:12px;flex-wrap:nowrap;
}
body[data-mode="class"][data-game="sudoku"] .sudoku-game .arena-head-actions .btn{
  min-height:52px; padding:0 26px; border-radius:16px;
  font-size:1rem;box-shadow:0 3px 0 #c4d1da;
}
body[data-mode="class"][data-game="sudoku"] .sudoku-game .arena-head-actions .btn.primary{box-shadow:0 3px 0 #0e6667}
body[data-mode="class"][data-game="sudoku"] .sudoku-game .sudoku-playground{
  padding:12px 18px 14px;background:var(--theme-main,#f7fafb);
}
body[data-mode="class"][data-game="sudoku"] .sudoku-playground::before,
body[data-mode="class"][data-game="sudoku"] .sudoku-playground::after{display:none}
body[data-mode="class"][data-game="sudoku"] .sudoku-playground .arena-ornament{display:none}
body[data-mode="class"][data-game="sudoku"] .sudoku-playground .board-area{
  max-width:760px;margin:0 auto;gap:8px;padding-top:4px;
}
body[data-mode="class"][data-game="sudoku"] .sudoku-playground .sudoku-board{
  border-width:4px;border-radius:16px;
  box-shadow:0 0 0 9px var(--theme-soft,#f0f4f6),0 14px 34px #08203118;
}
body[data-mode="class"][data-game="sudoku"] .sudoku-playground .number-pad{gap:9px;min-height:43px}
body[data-mode="class"][data-game="sudoku"] .sudoku-playground .pad-number{width:50px;height:43px;border-radius:12px}
body[data-mode="class"][data-game="sudoku"] .sudoku-playground .game-actions{gap:12px;justify-content:center}
body[data-mode="class"][data-game="sudoku"] .sudoku-playground .game-actions .btn{
  min-width:114px;min-height:44px;border-radius:13px;font-size:.9rem;
}
body[data-mode="class"][data-game="sudoku"] .sudoku-playground #feedback{
  width:min(100%,690px);min-height:29px;border-radius:999px;padding:5px 16px;
}
/* Keep the classroom tool controls visible on short and narrow viewports. */
@media(max-width:900px){
 body[data-mode="class"][data-game="sudoku"] .sudoku-game .arena-head-actions .btn{
   min-height:46px;font-size:.9rem;padding:0 16px;
 }
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground .game-actions .btn{
   min-width:88px;min-height:39px;font-size:.82rem;padding:5px 10px;
 }
}
@media(max-width:700px){
 body[data-mode="class"][data-game="sudoku"] .sudoku-game .arena-head{padding:6px 10px 2px}
 body[data-mode="class"][data-game="sudoku"] .sudoku-game .arena-head-actions{gap:8px}
 body[data-mode="class"][data-game="sudoku"] .sudoku-game .arena-head-actions .btn{
   min-width:0;min-height:40px;padding:0 12px;border-radius:12px;font-size:.82rem;
 }
 body[data-mode="class"][data-game="sudoku"] .sudoku-game .arena-head-actions .btn span{display:inline}
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground{padding:6px 8px 9px}
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground .board-area{gap:6px;padding-top:2px}
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground .sudoku-board{
   border-radius:12px;box-shadow:0 0 0 5px var(--theme-soft,#eef3f5),0 7px 16px #08203116;
 }
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground .number-pad{gap:6px;min-height:36px}
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground .pad-number{width:42px;height:36px;border-radius:9px}
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground .game-actions{gap:5px}
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground .game-actions .btn{
   flex:1;min-width:0;min-height:35px;font-size:.72rem;padding:5px 3px;border-radius:9px;
 }
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground #feedback{min-height:22px;padding:4px 7px;font-size:.67rem}
}
@media(max-height:440px){
 body[data-mode="class"][data-game="sudoku"] .sudoku-game .arena-head{padding:2px 5px 0}
 body[data-mode="class"][data-game="sudoku"] .sudoku-game .arena-head-actions{gap:5px}
 body[data-mode="class"][data-game="sudoku"] .sudoku-game .arena-head-actions .btn{min-height:30px;padding:1px 8px;font-size:.69rem}
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground{padding:2px 5px 4px}
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground .board-area{gap:3px;padding-top:0}
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground .number-pad{min-height:26px;gap:4px}
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground .pad-number{height:26px;width:29px}
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground .game-actions .btn{min-height:26px;padding:2px 3px;font-size:.62rem}
 body[data-mode="class"][data-game="sudoku"] .sudoku-playground #feedback{min-height:17px;max-height:20px;font-size:.6rem}
}
/* Active-game name follows the complete dark palette, as do the maze surfaces. */
html[data-theme="dark"] .active-game-name{
  background:var(--theme-elev);color:var(--theme-text);
  border-color:var(--theme-border);box-shadow:0 2px 0 #101c2b;
}
html[data-theme="dark"] body[data-mode="class"][data-game="maze"] .maze-game .maze-playground{
  background:var(--theme-main);
}
html[data-theme="dark"] body[data-mode="class"][data-game="maze"] .maze-cell.wall{background:#101b2a}
html[data-theme="dark"] body[data-mode="class"][data-game="maze"] .maze-cell.corridor{
  background:#293e52;box-shadow:inset 0 0 0 .8px #466078;
}
html[data-theme="dark"] body[data-mode="class"][data-game="maze"] .maze-cell.traced{background:#185c63;color:#ecfffa}
html[data-theme="dark"] body[data-mode="class"][data-game="maze"] .maze-cell.current{background:#39a6a2;color:#061f27}
html[data-theme="dark"] body[data-mode="class"][data-game="maze"] .maze-cell.entrance{background:#279b7e;color:white}
html[data-theme="dark"] body[data-mode="class"][data-game="maze"] .maze-cell.exit{background:#d79a51;color:#161f24}

/* v0.1.14 — maze aligned to shared premium platform language */
body[data-game="maze"][data-mode="class"] .maze-board{--maze-size:min(72vh,560px);border-width:5px;border-radius:20px;box-shadow:0 8px 0 #b8c9d3,0 24px 36px #10283b14,0 0 0 10px #f7fbfd}
body[data-game="maze"][data-mode="class"] .maze-controls{gap:12px;justify-content:center}
body[data-game="maze"][data-mode="class"] .maze-controls .btn{min-width:168px;min-height:48px;border-radius:14px;font-size:.98rem;font-weight:900}
html[data-theme="dark"] body[data-game="maze"][data-mode="class"] .maze-board{box-shadow:0 10px 28px #00000038,0 0 0 10px #213342}
@media(max-width:1100px){body[data-game="maze"][data-mode="class"] .maze-board{--maze-size:min(62vh,500px)}body[data-game="maze"][data-mode="class"] .maze-controls .btn{min-width:150px;min-height:44px;font-size:.9rem}}
@media(max-width:700px){body[data-game="maze"][data-mode="class"] .maze-board{--maze-size:min(58vh,92vw);border-width:4px;border-radius:16px;box-shadow:0 6px 0 #b8c9d3,0 0 0 6px #f7fbfd}body[data-game="maze"][data-mode="class"] .maze-controls{gap:8px}body[data-game="maze"][data-mode="class"] .maze-controls .btn{min-width:132px;min-height:42px;font-size:.83rem}}
html[data-theme="dark"] body[data-game="maze"][data-mode="class"] .maze-board{background:#19293b}
