/* v18.15: game hub, responsive game selector and optional EXTRA. */
.game-submenu { display:none; }
.game-selector-bar {
  display:flex; align-items:center; gap:6px; overflow-x:auto;
  margin:0 0 12px; padding:6px; background:#fff6fb; border:1px solid #f3d3e5;
  border-radius:14px; scrollbar-width:thin;
}
.game-picker { flex:none; white-space:nowrap; padding:7px 12px; border:1px solid transparent;
  background:transparent; border-radius:11px; color:#925172; font-size:12px; font-weight:700; }
.game-picker[aria-pressed="true"] { background:#e967a5; color:white; box-shadow:0 2px 5px #a33b6925; }
.game-picker-soon { flex:none; font-size:11px; color:#9c8190; padding:0 8px; }
.game-overview { padding:24px 18px 28px; text-align:center; }
.game-overview-label { color:#be6a9a; letter-spacing:.12em; font-size:11px; font-weight:800; margin:0; }
.game-overview h2 { color:#ae3d78; font-size:clamp(20px,4vw,27px); margin:5px 0; }
.game-overview > p:not(.game-overview-label) { color:#896a7b; font-size:13px; margin:0 0 17px; }
.game-overview-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; max-width:700px; margin:auto; }
.game-overview-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-width:0;
  min-height:150px; padding:16px 8px; border-radius:18px; border:2px solid #f1b7d3; background:linear-gradient(140deg,#fff,#ffe4f2);
  color:#844565; box-shadow:0 5px 12px #d491b51d; text-align:center; }
.game-overview-card strong { font-size:14px; }
.game-overview-card > span:not(.game-overview-icon) { font-size:11px; }
.game-overview-icon { font-size:36px; }
.game-overview-card .game-available { color:#a7386d; font-weight:900; }
.game-overview-unavailable { opacity:.64; filter:grayscale(.15); cursor:default; }
.game-levels-guide { margin:8px 0; color:#80546b; font-size:11px; line-height:1.55; }
.game-levels-guide summary { cursor:pointer; font-weight:800; color:#a13b77; padding:6px 0; }
.game-levels-guide ol { margin:5px 0; padding-left:19px; }
.game-levels-guide li { margin:3px 0; }
.game-levels-guide p { margin:4px 0; }
.game-mode-selector { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin:0 0 9px; }
.game-mode-selector button { min-height:32px; padding:5px 2px; border-radius:9px; border:1px solid #ead0dd;
  background:#fff; color:#974a71; font-size:11px; font-weight:800; }
.game-mode-selector button[aria-pressed=true] { background:#f7d3e7; border-color:#dc7eac; color:#9a2863; }
.game-mode-selector button:disabled { cursor:not-allowed; opacity:.58; }
.game-extra-button { background:linear-gradient(100deg,#b285e8,#8754ce) !important; border-color:#8151bb !important; color:#fff !important; }
#gamePage .game-card.is-extra { background:linear-gradient(150deg,#f4edff,#fcf5ff 50%,#fff8ff); border-color:#cdb1f1; }
#gamePage .game-card.is-extra .game-hdr { color:#864dc0; }
#gamePage .game-card.is-extra .game-setup { background:#f0e6fd; }
@media(max-width:560px) {
  .game-overview-cards { grid-template-columns:1fr; }
  .game-overview-card { min-height:104px; }
}
@media(min-width:1024px) {
  #gamePage #gameSelectorBar {display:none;}
  .tabs.tabs-four .game-submenu:not([hidden]) {
    display:flex; flex-direction:column; gap:3px;
    margin:-4px 3px 2px 16px; padding:1px 0 5px 10px; border-left:2px solid #f5d1e3;
    grid-column:1; min-width:0;
  }
  .tabs.tabs-four .game-subitem { display:block; width:100%; padding:9px 8px; border:0; border-radius:9px;
    background:none; color:#84556f; text-align:left; font-size:12px; font-weight:700; white-space:nowrap; }
  .tabs.tabs-four button.game-subitem:hover { background:#fff0f7; }
  .tabs.tabs-four .game-subitem[aria-current="page"] { background:#f8e1ee; color:#ac2d6d; }
  .tabs.tabs-four .game-subitem-soon { color:#af9aa6; font-weight:500; white-space:normal; font-size:10px; }
  #gamePage #gameOverview { grid-column:1/-1; grid-row:1; align-self:stretch; overflow:auto; }
  #gamePage #gameSetup { grid-template-rows:repeat(4,auto) minmax(0,1fr) auto; max-height:260px; }
  #gamePage .game-mode-selector { margin-bottom:5px; }
  #gamePage .game-mode-selector button {font-size:10px; padding:4px 1px; min-height:29px;}
  #gamePage #gameResult .game-result-actions { display:flex; flex-direction:column; gap:5px; }
  #gamePage .game-levels-guide { font-size:10px; }
}

/* v18.17: a soft, playful heading with system fonts; no extra font downloads. */
#gamePage .game-hdr .game-title-word {
  font-family:ui-rounded,'Hiragino Maru Gothic ProN','ヒラギノ丸ゴ ProN',
    'UD デジタル 教科書体 NP-B','Yu Gothic',Meiryo,sans-serif;
  font-weight:900; letter-spacing:.035em;
  color:#e84c95;
  -webkit-text-stroke:.2px currentColor;
  text-shadow:0 2px 0 #fff,0 4px 8px #f3a5ca88;
}
