/* NORA BEAT — ライブステージ × ジャケット主役（2026-09-28 全年齢向けに作り直し：A＋B 案）。
   暗いステージにメンバー 4 色のライト、えらんだ曲のジャケットをぼかした背景、ガラスのパネル。
   「ひらがな表示」（body.kids・小さい子向け）では 丸ゴシックと いまの言葉づかい */
:root {
  color-scheme: dark;
  --night: #07060c;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --panel-solid: rgba(16, 13, 26, 0.92);
  --line: rgba(255, 255, 255, 0.18);
  --line-faint: rgba(255, 255, 255, 0.09);
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.74);
  --ink-3: rgba(255, 255, 255, 0.5);
  --on-light: #1a0b10;
  /* 強調の色（もとの金色の役目）：RIKU のオレンジ */
  --gold: #ffb547;
  --gold-hi: #ffcf7a;
  --gold-lo: #e0932a;
  --gold-shadow: #7a4a16;
  --accent: linear-gradient(90deg, #ff5a86, #ffb547);
  --pink: #ff5a86;
  --seal: #e2423a;
  --haru: #ff7a8a;
  --riku: #ffb547;
  --tatsu: #5cc8ff;
  --jin: #9be564;
  --font-ui: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --font-display: 'Oswald', 'Bebas Neue', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --radius: 16px;
}
body.kids {
  --font-ui: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
button {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}
button:focus-visible,
.add-song:focus-within,
input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 曲ごとの背景（社歌・お店の歌）の映像。canvas の後ろ（js/backdrop.js） */
#backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  background: var(--night);
}
#backdrop[hidden] {
  display: none;
}
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* ---------- 画面の共通 ---------- */
.screen {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-inline: 16px;
  padding-block: calc(env(safe-area-inset-top, 0px) + 16px) calc(env(safe-area-inset-bottom, 0px) + 24px);
}
.screen > * {
  width: 100%;
  max-width: 560px;
  flex: none;
}
/* 縦に中央寄せ。はみ出すときは上から スクロールできるよう、justify-content ではなく前後の余白で寄せる */
.screen.center::before,
.screen.center::after,
#scr-result::before,
#scr-result::after {
  content: '';
  margin-block: auto;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font: 700 17px/1.1 var(--font-ui);
  color: var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
}
.btn.primary {
  color: var(--on-light);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 58%, #cf962f);
  box-shadow: 0 5px 0 var(--gold-shadow), 0 12px 24px rgba(0, 0, 0, 0.35);
}
.btn.primary:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--gold-shadow), 0 4px 10px rgba(0, 0, 0, 0.35);
}
.btn.big {
  min-height: 64px;
  padding: 0 44px;
  font-size: 21px;
}
.btn.small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}
.btn.ghost {
  background: var(--panel-soft);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn.ghost:active {
  background: rgba(227, 181, 82, 0.2);
}
.btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

.topbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
}
.topbar h2 {
  margin: 0;
  text-align: center;
  font: 700 20px/1.35 var(--font-ui);
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(10, 6, 24, 0.7);
}
.eyebrow {
  display: block;
  margin-bottom: 4px;
  font: 600 12px/1.2 var(--font-display);
  letter-spacing: 0.3em;
  color: var(--gold);
}
.diff-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.diff-head h2 {
  min-width: 0;
  text-align: left;
}
.jacket.md {
  width: 56px;
  height: 56px;
  border-radius: 9px;
}
.jacket.md span {
  font-size: 24px;
}
.jacket.lg {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.35);
}
.jacket-btn {
  position: relative;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.jacket-btn .jacket {
  display: grid;
}
.jacket-edit {
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-light);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
#diff-artist {
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
  word-break: normal;
}
#diff-title {
  word-break: normal;
}
.icon-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--panel-soft);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* ---------- タイトル ---------- */
#scr-title {
  justify-content: space-between;
}
.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-block: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: max(24px, 5vh);
}
.logo-seal {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 58px;
  height: 58px;
  border-radius: 7px;
  background: var(--seal);
  color: #fff3e6;
  font: 900 21px/1 var(--font-ui);
  box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 5px rgba(255, 243, 230, 0.9), 0 6px 14px rgba(40, 8, 8, 0.4);
  transform: rotate(-7deg);
  animation: seal-in 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) 0.1s both;
}
.logo-word {
  margin: 0;
  text-align: left;
  font: 700 clamp(40px, min(13vw, 11vh), 84px) / 0.92 var(--font-display);
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, #fff3cf 0%, var(--gold-hi) 38%, var(--gold) 72%, var(--gold-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(70, 34, 12, 0.5));
}
.logo-word em {
  display: block;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.36em;
}
.logo-kana {
  margin: -6px 0 0;
  font: 700 15px/1 var(--font-ui);
  letter-spacing: 0.4em;
  color: var(--ink-2);
}
.photo {
  position: relative;
  margin: 6px 0 0;
  width: min(58vw, 232px, 28vh);
  padding: 7px 7px 26px;
  border-radius: 3px;
  background: #fbf2df;
  transform: rotate(-2.5deg);
  box-shadow: 0 18px 40px rgba(8, 4, 20, 0.5);
  animation: photo-in 0.7s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1px;
}
.photo figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 5px;
  font: 700 11px/1 var(--font-display);
  letter-spacing: 0.24em;
  color: #4a3622;
}
.lead {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(10, 6, 24, 0.8);
}
.roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}
.roster li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.roster b {
  font: 700 15px/1 var(--font-display);
  letter-spacing: 0.12em;
  color: var(--c);
}
.roster span {
  font: 600 12px/1 var(--font-display);
  color: var(--ink-3);
}
.shape {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--c);
}
.shape.circle {
  border-radius: 50%;
}
.shape.diamond {
  transform: rotate(45deg) scale(0.8);
}
.shape.triangle {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.title .actions {
  margin-top: 8px;
}
.credit {
  margin: 0;
  text-align: center;
  font: 600 11px/1.4 var(--font-display);
  letter-spacing: 0.2em;
  color: var(--ink-3);
}
.credit a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 曲えらび ---------- */
.setlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.song {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.song-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-faint);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.08s ease;
}
.song-main:hover {
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.song-main:active {
  transform: scale(0.99);
}
.song.selected .song-main {
  box-shadow: inset 0 0 0 3px var(--gold), 0 0 24px rgba(227, 181, 82, 0.35);
}
.song-go {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 4px 12px;
}
.song-status {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-hi);
}
.song.fresh .song-main {
  box-shadow: inset 0 0 0 2px var(--gold);
}
.jacket {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--jk);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.jacket img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jacket span {
  font: 900 28px/1 var(--font-ui);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.song-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.song-title {
  word-break: normal;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.song-artist {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-bests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.best {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 2px;
  border-radius: 999px;
  background: rgba(255, 246, 228, 0.06);
  font: 700 12px/1 var(--font-display);
}
.best i {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--c);
  color: #1a1230;
  font: 900 11px/1 var(--font-ui);
  font-style: normal;
}
.best.none {
  color: var(--ink-3);
}
.song-del {
  flex: none;
  width: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--panel-soft);
  box-shadow: inset 0 0 0 1px var(--line-faint);
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.song-del.armed {
  background: var(--seal);
  color: #fff;
}
.add-song {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 2px dashed rgba(227, 181, 82, 0.6);
  background: rgba(227, 181, 82, 0.08);
  cursor: pointer;
}
.add-song .plus {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-light);
  font: 900 26px/1 var(--font-ui);
}
.add-song b {
  display: block;
  font-size: 17px;
}
.add-song small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
}
.fineprint {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  color: var(--ink-3);
}

/* ---------- むずかしさ ---------- */
.mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-faint);
}
.mode button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 700 16px/1.15 var(--font-ui);
  cursor: pointer;
}
.mode button small {
  display: block;
  font-size: 10px;
  font-weight: 500;
}
.mode button[aria-checked='true'] {
  background: var(--ink);
  color: #1a1230;
}
.players {
  display: grid;
  gap: 18px;
}
.player-tag {
  margin: 0 0 8px 4px;
  font: 700 13px/1 var(--font-display);
  letter-spacing: 0.24em;
  color: var(--gold);
}
.players.solo .player-tag {
  display: none;
}
.diffs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.diff {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  align-items: center;
  min-height: 100px;
  padding: 12px 14px 12px 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1.5px var(--line-faint);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}
.diff svg {
  grid-row: 1 / span 3;
  width: 38px;
  height: 52px;
}
.diff b {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--c);
}
.diff small {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}
.diff .diff-best {
  font: 700 12px/1.3 var(--font-display);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.diff[aria-pressed='true'] {
  background: var(--cs);
  box-shadow: inset 0 0 0 3px var(--c), 0 0 26px var(--cs);
}
.hint {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  text-wrap: balance;
}
@media (max-width: 759px) {
  .players.two .diff {
    min-height: 76px;
  }
  .players.two .diff small {
    display: none;
  }
  .players.two .diff svg {
    height: 44px;
  }
}
@media (min-width: 760px) {
  .screen > #players.two {
    max-width: 900px;
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 準備中 ---------- */
.loading {
  padding: 30px 24px;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
.loading p {
  margin: 0 0 14px;
  font-weight: 700;
}
.bounce {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.bounce i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  animation: bounce 0.9s ease-in-out infinite;
}
.bounce i:nth-child(2) {
  animation-delay: 0.12s;
}
.bounce i:nth-child(3) {
  animation-delay: 0.24s;
}
.bounce i:nth-child(4) {
  animation-delay: 0.36s;
}
.meter {
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 246, 228, 0.1);
}
.meter > div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--haru), var(--riku), var(--tatsu), var(--jin));
  transition: width 0.2s ease;
}
.sub {
  font-size: 13px;
  color: var(--ink-2);
}
.loading .sub {
  margin: 12px 0 0;
  font: 600 13px/1.4 var(--font-display);
  letter-spacing: 0.08em;
}

/* ---------- けっか（太鼓の達人の成績発表のように。紙の成績表に、はんこを押す） ---------- */
.screen > .result {
  max-width: 900px;
}
.result {
  display: grid;
  gap: 14px;
}
.res-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.res-title {
  padding: 6px 16px;
  border-radius: 12px;
  background: var(--seal);
  color: #fff3e6;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 0 #8d2718;
  transform: rotate(-2deg);
}
.res-song {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 246, 228, 0.1);
  box-shadow: inset 0 0 0 1.5px var(--line);
  text-align: center;
}
.res-song small {
  font-size: 11px;
  color: var(--gold);
}
.res-song b {
  font-size: 16px;
  word-break: normal;
  overflow-wrap: anywhere;
}
.res-panel {
  --pc: #e3b552;
  --paper: #fff7e8;
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--paper);
  color: #2b1d10;
  box-shadow: inset 0 0 0 3px var(--pc), 0 18px 40px rgba(6, 3, 18, 0.4);
}
.res-panel.p1 {
  --pc: #ff8f9f;
  --paper: #fff0ee;
}
.res-panel.p2 {
  --pc: #6cc4f2;
  --paper: #eef7ff;
}
.res-id {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.res-player {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--pc);
  color: #fff;
  font: 700 34px/1 var(--font-display);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.12);
}
.res-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.res-gauge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0 16px;
}
.gbar {
  position: relative;
  flex: 1;
  height: 18px;
  border-radius: 9px;
  background: #3a2f52;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.25);
}
.gbar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(2% - 1px), rgba(20, 12, 36, 0.35) calc(2% - 1px) 2%);
}
.gbar .ga,
.gbar .gb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 9px;
  background: #35d3ac;
}
.gbar .gb {
  border-radius: 0 9px 9px 0;
  background: #ffc933;
}
.gbar.full .ga,
.gbar.full .gb {
  background: linear-gradient(90deg, #ff7a8a, #ffb547, #9be564, #5cc8ff, #c58bff);
}
.gbar.full .gb {
  display: none;
}
.gbar.full .ga {
  width: 100% !important;
}
.gline {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: #2b1d10;
  z-index: 1;
}
.glabel {
  position: absolute;
  top: calc(100% + 3px);
  padding-left: 4px;
  font-size: 11px;
  font-weight: 900;
  color: #9a6a12;
  white-space: nowrap;
}
.gpct {
  position: absolute;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  font: 700 13px/1 var(--font-display);
  color: #2b1d10;
  white-space: nowrap;
}
.gsoul {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #cfc6dc;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}
.gsoul.on {
  background: var(--seal);
  box-shadow: 0 0 0 3px #ffe7c4, 0 0 18px rgba(255, 90, 60, 0.8);
}
.res-verdict {
  margin: -4px 0 0;
  font-size: 15px;
  font-weight: 900;
}
.res-verdict.ok {
  color: #c0441c;
}
.res-verdict.ng {
  color: #6c5a8a;
}
.res-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 10px;
}
.res-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 14px;
  background: #1c1530;
  color: #fff6e4;
}
.res-score .lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}
.res-score .num {
  font: 700 clamp(26px, 4.4vw, 38px) / 1 var(--font-display);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.res-counts,
.res-combo {
  margin: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(43, 29, 16, 0.1);
}
.res-counts div,
.res-combo div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.res-counts dt,
.res-combo dt {
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.res-counts dd,
.res-combo dd {
  margin: 0;
  font: 700 17px/1.35 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.k-perfect dt {
  color: #c8540a;
}
.k-great dt {
  color: #16808a;
}
.k-good dt {
  color: #4a8c2a;
}
.k-miss dt {
  color: #6c5a8a;
}
.res-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chip {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--c);
  color: #1a1230;
  font-size: 12px;
  font-weight: 900;
}
.stamp {
  width: 140px;
  height: auto;
  color: var(--seal);
  transform: rotate(-12deg);
  animation: stamp-in 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) 0.35s both;
}
.stars {
  margin: -4px 0 0;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: #e7a51b;
}
.stars .off {
  color: rgba(43, 29, 16, 0.15);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
  margin: 0;
}
.badges:empty {
  display: none;
}
.badge {
  padding: 5px 10px 3px;
  border-radius: 6px;
  font: 700 12px/1 var(--font-display);
  letter-spacing: 0.12em;
}
.badge.fc {
  background: linear-gradient(90deg, var(--haru), var(--riku), var(--tatsu), var(--jin));
  color: #1a1230;
}
.badge.ap {
  background: var(--gold-hi);
  color: var(--on-light);
}
.badge.new {
  background: var(--seal);
  color: #fff;
}
.crown {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-light);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--gold-shadow);
}
.crown:empty {
  display: none;
}
/* スマホ：縦に並べ、はんこは右上に押す */
@media (max-width: 719px) {
  .res-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 16px 14px 14px;
  }
  .res-song {
    flex-basis: 100%;
  }
  .res-id {
    flex-direction: row;
    min-height: 104px;
    padding-right: 104px;
  }
  .res-id .jacket.lg {
    width: 64px;
    height: 64px;
  }
  .res-player {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
  .res-stamp {
    position: absolute;
    top: 6px;
    right: 8px;
  }
  .stamp {
    width: 96px;
  }
  .stars {
    margin-top: -8px;
    font-size: 14px;
  }
  .res-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .res-score {
    grid-column: 1 / -1;
  }
}

/* ---------- PR（チラシのような紙の色で、ゲームの画面と見分けがつくように） ---------- */
.pr-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 40px 12px 12px;
  border-radius: 16px;
  background: #fbf2df;
  color: #2f2112;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(8, 4, 20, 0.4);
  transition: transform 0.08s ease;
}
.pr-card:active {
  transform: scale(0.99);
}
.pr-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.pr-card img {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
}
.pr-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pr-eye {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9a6a12;
}
.pr-title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}
.pr-text {
  font-size: 12px;
  line-height: 1.5;
  color: #5b4630;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pr-cta {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #a1461f;
}
.pr-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 7px 1px;
  border: 1px solid rgba(47, 33, 18, 0.45);
  border-radius: 4px;
  font: 700 10px/1.4 var(--font-display);
  letter-spacing: 0.1em;
  color: rgba(47, 33, 18, 0.7);
}

/* ---------- 演奏中 ---------- */
.pause-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + max(46px, 7vh));
  right: 12px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  pointer-events: auto;
  background: rgba(18, 12, 40, 0.55);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  cursor: pointer;
}
.pause-btn svg {
  width: 22px;
  height: 22px;
}

/* ---------- 重ねる窓 ---------- */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: auto;
  display: grid;
  place-items: center;
  padding-inline: 16px;
  padding-block: calc(env(safe-area-inset-top, 0px) + 16px) calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: rgba(8, 5, 20, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.panel {
  width: 100%;
  max-width: 380px;
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, 0.45);
}
.panel.wide {
  max-width: 460px;
}
.panel h2 {
  margin: 0 0 4px;
  text-align: center;
  font-size: 22px;
}
.field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-faint);
}
.field label {
  font-weight: 700;
}
.field output {
  font: 700 15px/1 var(--font-display);
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}
.field input[type='range'] {
  grid-column: 1 / -1;
  width: 100%;
  height: 32px;
  margin: 0;
  accent-color: var(--gold);
}
.field .btn,
.field .help {
  grid-column: 1 / -1;
}
.help {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}
.center {
  text-align: center;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
}
.toggle input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--gold);
}
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.calib-pad {
  align-self: center;
  width: 150px;
  height: 150px;
  margin: 6px 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3cf, var(--gold) 58%, #b27d1f);
  color: var(--on-light);
  font: 700 40px/1 var(--font-display);
  box-shadow: 0 8px 0 var(--gold-shadow), 0 16px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}
.calib-pad.hit {
  transform: translateY(6px);
  box-shadow: 0 2px 0 var(--gold-shadow), 0 6px 14px rgba(0, 0, 0, 0.4);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  z-index: 20;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 14px;
  background: #2a1f4f;
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}
.drop {
  position: absolute;
  inset: 12px;
  z-index: 30;
  display: grid;
  place-items: center;
  border: 3px dashed var(--gold);
  border-radius: 24px;
  background: rgba(12, 9, 30, 0.8);
  font-size: 22px;
  font-weight: 900;
  pointer-events: none;
}

/* ---------- 動き ---------- */
@keyframes seal-in {
  from {
    transform: rotate(-20deg) scale(1.7);
  }
  to {
    transform: rotate(-7deg) scale(1);
  }
}
@keyframes photo-in {
  from {
    transform: translateY(-14px) rotate(4deg);
  }
  to {
    transform: rotate(-2.5deg);
  }
}
@keyframes stamp-in {
  from {
    opacity: 0.2;
    transform: rotate(-2deg) scale(2.1);
  }
  to {
    opacity: 1;
    transform: rotate(-12deg) scale(1);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-14px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-seal,
  .photo,
  .stamp,
  .bounce i {
    animation: none !important;
  }
  .btn,
  .diff,
  .song-main {
    transition: none;
  }
}
@media (max-height: 640px) {
  .photo {
    display: none;
  }
}

/* ---------- つうしん対戦（2026-09-27） ---------- */
#btn-online {
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}
#btn-online small {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-2);
}
.net-banner {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(92, 200, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(92, 200, 255, 0.4);
  color: #bfe8ff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.net {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-faint);
  text-align: center;
}
.net-lead {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}
.net-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 380px;
  text-align: left;
  font-size: 14px;
  color: var(--ink-2);
}
.net-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.net-steps b {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-light);
  font: 700 14px/1 var(--font-display);
}
.net-actions {
  flex-direction: column;
  width: 100%;
}
.net-actions .btn {
  width: min(320px, 100%);
}
.net-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.net-code {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.net-code span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 72px;
  border-radius: 14px;
  background: var(--ink);
  color: #1a1230;
  font: 700 40px/1 var(--font-display);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.12);
}
.net-code.input span {
  background: rgba(255, 246, 228, 0.1);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.net-code.input span.cur {
  box-shadow: inset 0 0 0 3px var(--gold);
}
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(300px, 100%);
}
.keypad button {
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 246, 228, 0.1);
  box-shadow: inset 0 0 0 1.5px var(--line-faint);
  font: 700 26px/1 var(--font-display);
  cursor: pointer;
}
.keypad button:active {
  background: rgba(227, 181, 82, 0.25);
}
.keypad .del,
.keypad .go {
  font: 700 15px/1 var(--font-ui);
}
.keypad .go {
  background: var(--gold);
  color: var(--on-light);
}
.keypad button[disabled] {
  opacity: 0.35;
  cursor: default;
}
.net-players {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  width: min(320px, 100%);
}
.net-players li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 246, 228, 0.06);
  font-weight: 700;
  text-align: left;
}
.net-players li.wait {
  color: var(--ink-3);
}
.net-players b {
  flex: none;
  font: 700 14px/1 var(--font-display);
  letter-spacing: 0.1em;
  color: var(--gold);
}
.net-players li.wait b {
  color: var(--ink-3);
}
.net-msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
#btn-net-cancel {
  margin-top: 14px;
}
.res-player.jp {
  font: 700 17px/1.1 var(--font-ui);
  text-align: center;
}
.res-panel.res-waiting {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.85;
}
.res-wait {
  margin: 0;
  font-weight: 700;
  line-height: 1.6;
}
@media (max-width: 719px) {
  .res-player.jp {
    font-size: 12px;
  }
  .res-panel.res-waiting .res-id {
    min-height: 0;
    padding-right: 0;
  }
}

/* ---------- つうしん対戦のスタンプ（2026-09-27） ---------- */
.chat {
  position: fixed;
  right: 14px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
}
.chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #1a1230;
  font: 700 14px/1 var(--font-ui);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.chat-btn svg {
  width: 20px;
  height: 20px;
}
.chat-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(320px, calc(100vw - 28px));
  padding: 12px;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, 0.45);
}
.stamp-btn {
  min-height: 46px;
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 246, 228, 0.08);
  box-shadow: inset 3px 0 0 var(--c);
  color: var(--ink);
  font: 700 14px/1.3 var(--font-ui);
  cursor: pointer;
}
.stamp-btn:active {
  background: rgba(227, 181, 82, 0.25);
}
.bubble {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 70px);
  z-index: 31;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 22px;
  border-radius: 18px;
  background: var(--ink);
  color: #1a1230;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  white-space: nowrap;
}
.bubble small {
  font: 700 11px/1 var(--font-ui);
  color: #7a5516;
}
.bubble b {
  font: 900 18px/1.2 var(--font-ui);
}
.bubble.mine {
  background: var(--gold-hi);
}
.bubble.pop {
  animation: bubble-pop 0.35s cubic-bezier(0.2, 1.5, 0.4, 1);
}
@keyframes bubble-pop {
  from {
    transform: translateX(-50%) scale(0.6);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bubble.pop {
    animation: none;
  }
}
/* スタンプのボタンが下のボタンに重ならないように */
body.has-chat .screen {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
}

/* ---------- むずかしさ 5 だん・コンプリート（2026-09-27） ---------- */
.diff.wide {
  grid-column: 1 / -1;
}
.diff.locked {
  opacity: 0.55;
  cursor: default;
  filter: grayscale(0.6);
}
.complete-sum {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #d9c2ff;
}
.complete-mark {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px 2px;
  border-radius: 6px;
  background: #c08bff;
  color: #1a1230;
  font: 700 11px/1.2 var(--font-ui);
  vertical-align: 2px;
}
.badge.unlock {
  background: #c08bff;
  color: #1a1230;
  font-family: var(--font-ui);
  letter-spacing: 0.02em;
}
.badge.complete {
  background: linear-gradient(90deg, #c08bff, var(--gold-hi));
  color: #1a1230;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.06em;
}

/* ---------- ランキングと ひきつぎ（2026-09-27） ---------- */
.acct {
  display: grid;
  gap: 8px;
  padding: 12px 0 10px;
  border-top: 1px solid var(--line-faint);
}
.acct h3 {
  margin: 0;
  font-size: 15px;
  color: var(--gold);
}
.acct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.acct-row b {
  margin-left: 4px;
}
.acct-code {
  font: 700 16px/1 var(--font-display);
  letter-spacing: 0.14em;
}
.acct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.acct-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 246, 228, 0.1);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  font: 700 20px/1 var(--font-ui);
  text-align: center;
  -webkit-user-select: text;
  user-select: text;
}
.acct-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--gold);
}
.acct-err {
  margin: 0;
  min-height: 1.4em;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #ff9aa6;
}
.rank-song {
  margin: -6px 0 0;
  text-align: center;
  font-weight: 700;
  color: var(--ink-2);
}
.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.rank-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 246, 228, 0.08);
  box-shadow: inset 0 0 0 1.5px var(--c);
  color: var(--ink);
  font: 700 13px/1 var(--font-ui);
  cursor: pointer;
}
.rank-tab[aria-selected='true'] {
  background: var(--c);
  color: #1a1230;
}
.rank-body {
  display: grid;
  gap: 8px;
  min-height: 120px;
}
.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  max-height: min(46vh, 420px);
  overflow-y: auto;
}
.rank-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 246, 228, 0.05);
  font-size: 14px;
}
.rank-list li.me {
  background: rgba(227, 181, 82, 0.22);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.rk-place {
  font: 700 16px/1 var(--font-display);
  text-align: center;
  color: var(--ink-2);
}
.top1 .rk-place {
  color: #ffd84d;
}
.top2 .rk-place {
  color: #d9dde6;
}
.top3 .rk-place {
  color: #e0a26b;
}
.rk-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.rk-badge {
  font: 700 11px/1 var(--font-display);
  color: var(--gold-hi);
}
.rk-score {
  font: 700 15px/1 var(--font-display);
  letter-spacing: 0.04em;
}
.rank-me {
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--gold-hi);
}
.rank-line {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.linkish {
  border: 0;
  padding: 0;
  background: none;
  color: var(--gold-hi);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.song-go .song-status {
  flex: 1 1 auto;
  min-width: 0;
}

/* ---------- 曲の まとまり（タブ）・配信で聴く（2026-09-28） ---------- */
.pack-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: none;
}
.pack-tabs::-webkit-scrollbar {
  display: none;
}
.pack-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-faint);
  color: var(--ink-2);
  font: 700 15px/1 var(--font-ui);
  cursor: pointer;
}
.pack-tab small {
  font: 700 11px/1 var(--font-display);
  color: var(--ink-3);
}
.pack-tab[aria-selected='true'] {
  background: var(--ink);
  color: #1a1230;
}
.pack-tab[aria-selected='true'] small {
  color: #6b5a3a;
}
.song-go {
  flex-wrap: wrap;
}
.listen-btn {
  box-shadow: inset 0 0 0 1.5px #fa6b8a;
}
.listen-line {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
}

/* =====================================================================
   全年齢向けの作り直し（2026-09-28 社長：A 案ライブステージ ＋ B 案ジャケット主役）
   ここから下が いまの見た目。上の古い指定を 同じ名前で上書きしている
   ===================================================================== */

/* えらんだ曲のジャケットを ぼかして 画面いっぱいに（js/backdrop.js）。その上に canvas のライトと暗い幕 */
#jacket-bg {
  position: fixed;
  inset: -80px;
  background: var(--night) center / cover no-repeat;
  filter: blur(44px) saturate(1.25) brightness(0.92);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
#jacket-bg.on {
  opacity: 1;
}
/* 縦長の映像（社歌のリール）：横長の画面では まんなかに置き、左右は ジャケットのぼかしが見える */
@media (orientation: landscape) {
  #backdrop.tall {
    object-fit: contain;
    background: transparent;
  }
}

/* ボタン：主役はピンク→オレンジのグラデーション、ほかは細い枠 */
.btn {
  border-radius: 14px;
  font: 700 17px/1.1 var(--font-ui);
  letter-spacing: 0.04em;
}
.btn.primary {
  color: var(--on-light);
  background: var(--accent);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(255, 90, 134, 0.3);
}
.btn.primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 4px 14px rgba(255, 90, 134, 0.3);
}
.btn.big {
  min-height: 60px;
  font-size: 19px;
  letter-spacing: 0.1em;
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.26);
}
.btn.ghost:active {
  background: rgba(255, 255, 255, 0.12);
}
body.kids .btn {
  border-radius: 999px;
}
.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.topbar h2 {
  font: 900 22px/1.3 var(--font-ui);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.eyebrow {
  margin-bottom: 2px;
  font: 500 12px/1.3 var(--font-ui);
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* ---------- タイトル：バンドの写真を大きく、その下に ロゴとボタン ---------- */
#scr-title {
  padding-top: 0;
  justify-content: flex-start;
}
#scr-title .title {
  gap: 0;
  margin-block: 0 auto;
  text-align: left;
  align-items: stretch;
}
.hero {
  margin: 0 -16px;
  width: auto;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.02;
  object-fit: cover;
  object-position: center 28%;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
}
#scr-title .logo {
  position: relative;
  display: block;
  margin: -118px 0 0;
  padding: 0 6px;
}
.logo-word {
  text-align: left;
  font: 700 clamp(58px, 19vw, 100px) / 0.88 var(--font-display);
  letter-spacing: 0.01em;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #fff;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55));
}
.logo-word em {
  display: block;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--haru), var(--riku) 40%, var(--tatsu) 72%, var(--jin));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#scr-title .lead {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-shadow: none;
  text-wrap: pretty;
}
#scr-title .actions {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#scr-title .actions .btn {
  width: 100%;
  padding: 0 10px;
}
#btn-start {
  grid-column: 1 / -1;
}
#btn-online small {
  color: var(--ink-3);
}
#scr-title .roster {
  margin-top: 24px;
  justify-content: space-between;
  padding: 0 4px;
}
.roster b {
  font: 600 14px/1 var(--font-display);
  letter-spacing: 0.06em;
}
.roster span {
  font: 500 12px/1 var(--font-display);
}
.credit {
  font: 500 11px/1.4 var(--font-display);
  letter-spacing: 0.14em;
}
@media (max-height: 740px) {
  .hero img {
    aspect-ratio: 4 / 3;
  }
}
@media (min-width: 760px) {
  .hero {
    margin: 0;
  }
  .hero img {
    aspect-ratio: 16 / 10;
    border-radius: 0 0 24px 24px;
  }
}

/* ---------- 曲を選ぶ：下線のタブ、1 行ずつの曲、えらんだ曲は ガラスのカード ---------- */
.pack-tabs {
  gap: 20px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line-faint);
}
.pack-tab {
  min-height: 40px;
  padding: 0 0 2px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink-3);
  font: 700 15px/1 var(--font-ui);
}
.pack-tab small {
  color: var(--ink-3);
}
.pack-tab[aria-selected='true'] {
  background: none;
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--pink);
}
.pack-tab[aria-selected='true'] small {
  color: var(--gold);
}
.complete-sum {
  font-size: 12px;
  color: var(--ink-3);
}
.setlist {
  gap: 0;
}
.song {
  /* 横のすき間は残す（曲とボタンの行を分けて折り返すため） */
  column-gap: 8px;
  row-gap: 0;
  border-bottom: 1px solid var(--line-faint);
}
.song-main {
  gap: 12px;
  padding: 10px 6px;
  border-radius: 12px;
  background: none;
  box-shadow: none;
}
.song-main:hover {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.04);
}
.song.fresh .song-main {
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.jacket {
  width: 56px;
  height: 56px;
  border-radius: 8px;
}
.song-title {
  font-size: 16px;
  font-weight: 700;
}
.song.selected {
  margin: 8px 0;
  padding: 12px;
  border-bottom: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 16px 40px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.song.selected .song-main {
  padding: 0;
  box-shadow: none;
  background: none;
}
.song.selected .jacket {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
.song.selected .song-title {
  font-size: 19px;
  font-weight: 900;
}
.song-go {
  padding: 12px 0 0;
}
.song-status {
  color: var(--gold-hi);
}
.best {
  background: rgba(255, 255, 255, 0.06);
  font: 600 12px/1 var(--font-display);
  letter-spacing: 0.04em;
}
.best i {
  color: #120c1c;
  font: 700 11px/1 var(--font-ui);
}
.song-del {
  background: rgba(255, 255, 255, 0.05);
}
.add-song {
  border: 1.5px dashed rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
}
.add-song .plus {
  background: var(--accent);
}

/* ---------- 難易度 ---------- */
.mode {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}
.mode button {
  border-radius: 10px;
}
.player-tag {
  color: var(--pink);
}
.diff {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-faint);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.diff[aria-pressed='true'] {
  background: color-mix(in srgb, var(--c) 20%, rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 2px var(--c), 0 0 22px color-mix(in srgb, var(--c) 35%, transparent);
}
.diff .diff-best {
  font: 600 13px/1.3 var(--font-display);
  letter-spacing: 0.03em;
}

/* ---------- 準備中・重ねる窓 ---------- */
.loading,
.net {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line-faint);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.overlay {
  background: rgba(4, 3, 10, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.panel {
  border-radius: 20px;
  background: var(--panel-solid);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.field input[type='range'],
.toggle input {
  accent-color: var(--pink);
}
.toast {
  background: rgba(22, 18, 34, 0.96);
}
.drop {
  border-color: var(--pink);
  background: rgba(7, 6, 12, 0.85);
}
.pause-btn {
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.net-steps b,
.keypad .go {
  background: var(--accent);
}
.calib-pad {
  background: radial-gradient(circle at 35% 30%, #ffe0b0, #ffb547 55%, #ff5a86);
  box-shadow: 0 8px 0 #8a2a44, 0 16px 30px rgba(0, 0, 0, 0.4);
}
.calib-pad.hit {
  box-shadow: 0 2px 0 #8a2a44, 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* ---------- リザルト：大きな評価の文字、ガラスのパネル ---------- */
.res-title {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: 900 20px/1.2 var(--font-ui);
  letter-spacing: 0.06em;
  box-shadow: none;
  transform: none;
}
.res-song {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line-faint);
}
.res-song small {
  color: var(--ink-3);
}
.res-panel {
  --pc: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--pc), 0 18px 40px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.res-panel.p1 {
  --pc: rgba(255, 122, 138, 0.7);
  background: rgba(255, 122, 138, 0.08);
}
.res-panel.p2 {
  --pc: rgba(92, 200, 255, 0.7);
  background: rgba(92, 200, 255, 0.08);
}
.res-player {
  background: var(--accent);
  color: var(--on-light);
}
.gbar {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.gbar::after {
  background: repeating-linear-gradient(90deg, transparent 0 calc(2% - 1px), rgba(7, 6, 12, 0.35) calc(2% - 1px) 2%);
}
.gbar .ga {
  background: var(--accent);
}
.gline {
  background: #fff;
}
.glabel {
  color: var(--gold);
}
.gpct {
  color: var(--ink);
}
.gsoul {
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink-2);
}
.gsoul.on {
  background: var(--accent);
  color: var(--on-light);
  box-shadow: 0 0 18px rgba(255, 90, 134, 0.7);
}
.res-verdict.ok {
  color: var(--jin);
  letter-spacing: 0.08em;
}
.res-verdict.ng {
  color: var(--ink-3);
}
.res-score {
  background: rgba(0, 0, 0, 0.32);
  color: var(--ink);
}
.res-score .lbl {
  color: var(--ink-3);
}
.res-counts,
.res-combo {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-faint);
}
.res-counts dd,
.res-combo dd {
  font: 600 18px/1.35 var(--font-display);
  color: var(--ink);
}
.k-perfect dt {
  color: #ffd27a;
}
.k-great dt {
  color: #8fe3ff;
}
.k-good dt {
  color: #b9f5a0;
}
.k-miss dt {
  color: #b3acc9;
}
/* 評価の文字（ひらがな表示では はんこ） */
.rank-big {
  font: 700 clamp(96px, 18vw, 150px) / 0.9 var(--font-display);
  background: linear-gradient(180deg, #fff 0%, #ffcf7a 45%, #ffb547 62%, #ff5a86 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 120, 100, 0.45));
  animation: rank-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.3s both;
}
.rank-big.r-S {
  background: linear-gradient(180deg, #fff, #ffe9a6 40%, #9be564 70%, #5cc8ff);
  -webkit-background-clip: text;
  background-clip: text;
}
.rank-big.r-C,
.rank-big.r-D {
  background: linear-gradient(180deg, #fff, #cfcbe0 60%, #8a86a0);
  -webkit-background-clip: text;
  background-clip: text;
  filter: none;
}
@keyframes rank-in {
  from {
    opacity: 0;
    transform: scale(1.6);
  }
}
.stars {
  color: var(--gold);
}
.stars .off {
  color: rgba(255, 255, 255, 0.15);
}
.badge.new {
  background: var(--pink);
}
.badge.ap {
  background: #ffcf7a;
}
.crown {
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(255, 90, 134, 0.35);
}
@media (max-width: 719px) {
  .rank-big {
    font-size: 108px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rank-big {
    animation: none;
  }
}

/* ---------- ランキング・PR ほか ---------- */
.rank-list li {
  background: rgba(255, 255, 255, 0.05);
}
.rank-list li.me {
  background: rgba(255, 90, 134, 0.16);
  box-shadow: inset 0 0 0 1.5px var(--pink);
}
.acct-input {
  background: rgba(255, 255, 255, 0.08);
}
.acct-input:focus {
  box-shadow: inset 0 0 0 2px var(--pink);
}
.stamp-btn {
  background: rgba(255, 255, 255, 0.07);
}
.bubble.mine {
  background: #ffcf7a;
}

/* 曲を選ぶ（2026-09-28 社長「この形が綺麗」＝A＋B 案のモックアップの形）：
   ふつうの行は ジャケット・曲名・右に評価の丸。選んだ曲は カードに 大きなジャケット・難易度のチップ・横いっぱいのプレイ */
.song-meta {
  flex: 1;
}
.song-rank {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255, 181, 71, 0.7);
  color: var(--gold);
  font: 700 15px/1 var(--font-display);
}
.song.selected .song-go {
  display: grid;
  gap: 12px;
  padding: 14px 0 0;
}
.song-head {
  cursor: default;
}
.song-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.song-tools:not(:has(button)) .song-status:empty {
  display: none;
}
.song-tools .song-status:empty {
  display: none;
}
.song-tools .btn.small {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
}
.song-diffs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.sdiff {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 54px;
  padding: 6px 2px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1.5px transparent;
  color: var(--ink-2);
  font: 700 11px/1.2 var(--font-ui);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.sdiff b {
  font: 700 17px/1 var(--font-display);
  color: var(--c);
}
.sdiff[aria-checked='true'] {
  background: color-mix(in srgb, var(--c) 22%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--c);
  color: #fff;
}
.sdiff.locked {
  opacity: 0.4;
  cursor: default;
}
.song-play {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
  letter-spacing: 0.14em;
}

/* ---------- はじめて開いたとき：名前を決める（2026-09-29） ---------- */
.acct-later {
  display: block;
  margin: 12px auto 0;
  font-size: 13px;
  color: var(--ink-2);
}
.acct-later[hidden] {
  display: none;
}
#acct-help {
  white-space: pre-line;
  word-break: normal;
  line-break: strict;
}

/* ---------- 横スワイプ・←→ で まとまり（タブ）をかえたとき、一覧が その向きから入ってくる（2026-09-29） ---------- */
@keyframes pack-in-next {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: none; }
}
@keyframes pack-in-prev {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: none; }
}
#song-list.pack-in-next {
  animation: pack-in-next 0.22s ease-out;
}
#song-list.pack-in-prev {
  animation: pack-in-prev 0.22s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  #song-list.pack-in-next,
  #song-list.pack-in-prev {
    animation: none;
  }
}

/* ---------- 下のタブ・ランキング・地図（2026-09-29） ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 560px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 6px 8px calc(env(safe-area-inset-bottom, 0px) + 6px);
  background: rgba(12, 10, 20, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-faint);
  pointer-events: auto;
  z-index: 30;
}
@media (min-width: 560px) {
  .tabbar {
    bottom: 12px;
    border: 1px solid var(--line-faint);
    border-radius: 20px;
    padding-bottom: 6px;
  }
}
.tabbar .tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 52px;
  padding: 6px 4px 4px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink-3);
  font: 700 11px/1.2 var(--font-ui);
  cursor: pointer;
}
.tabbar .tab svg {
  width: 24px;
  height: 24px;
}
.tabbar .tab[aria-current='true'] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}
.tabbar .tab[aria-current='true'] svg {
  color: var(--gold);
}
.tabbar .tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
body.has-tabbar .screen {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
}

/* ランキングのタブ：曲ごとの じぶんの記録 */
.rk-songs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rk-pack {
  margin: 12px 2px 2px;
  font: 700 13px/1.3 var(--font-ui);
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.rk-song,
.place {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px 8px 8px;
  border: 0;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-faint);
  color: var(--ink);
  text-align: left;
  font: inherit;
}
.rk-song {
  cursor: pointer;
}
.rk-song:hover {
  background: rgba(255, 255, 255, 0.1);
}
.rk-jk {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}
.rk-t,
.place-t {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rk-t b,
.place-t b {
  font: 700 15px/1.35 var(--font-ui);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rk-t small,
.place-t small {
  font-size: 12px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rk-mine {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
}
.rk-mine i {
  font-style: normal;
}
.rk-mine b {
  font: 700 22px/1 var(--font-display);
  min-width: 18px;
  text-align: center;
}
.rk-mine.none {
  color: var(--ink-3);
}

/* 地図 */
.map-box {
  /* Leaflet の z-index（400〜1000）を 箱の中に とじこめる（設定などの窓より 前に 出さない） */
  position: relative;
  z-index: 0;
  isolation: isolate;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-faint);
  background: #1a1726;
}
#map-canvas {
  width: 100%;
  height: min(56vh, 420px);
  color: var(--ink-2);
  font-size: 13px;
}
.place-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.place {
  grid-template-columns: 48px 1fr;
}
.place-go {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.map-pop b {
  display: block;
  font-size: 13px;
}
.map-pop small {
  font-size: 12px;
  color: #555;
}

/* ---------- 新しい版の お知らせ（js/update.js・2026-09-30） ---------- */
.upd-bar {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 50%;
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 8px 8px 16px;
  border-radius: 16px;
  background: var(--panel-solid, #fff);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-faint), 0 10px 30px rgba(21, 50, 74, 0.2);
  font-size: 14px;
  font-weight: 700;
  pointer-events: auto;
  transform: translateX(-50%);
  animation: upd-in 0.35s ease-out;
}
.upd-bar[hidden] {
  display: none;
}
.upd-bar .btn {
  min-height: 38px;
  padding: 0 16px;
}
@keyframes upd-in {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
}
.app-ver {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-faint);
}
.app-ver p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-size: 12px;
  color: var(--ink-3);
}
.app-ver b {
  font-size: 13px;
  color: var(--ink-2);
}
/* 下のタブが出ている画面では、お知らせ（toast）を タブの上に（タブの裏に かくれていた） */
body.has-tabbar .toast {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
}
@media (min-width: 560px) {
  body.has-tabbar .toast {
    bottom: 96px;
  }
}

/* あそぶ ゲームの 切りかえ（NORA BEAT／しまのキッチン。js/kitchen.js・2026-10-01） */
.game-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.game-switch .gs { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .85); box-shadow: 0 3px 12px rgba(21, 50, 74, .1); text-align: left; cursor: pointer; color: inherit; font: inherit; }
.game-switch .gs img { width: 38px; height: 38px; flex: none; border-radius: 10px; object-fit: contain; }
.game-switch .gs span { min-width: 0; }
.game-switch .gs b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; }
/* NORA BEAT は 題字と 同じ 書体（Oswald）で。太い 和文ゴシックの 英字は 機械っぽく 見える（2026-10-01） */
.game-switch .gs[data-game="beat"] b { font: 600 17px/1.05 var(--font-display); letter-spacing: .08em; color: #1f5f73; }
.game-switch .gs small { display: block; font-size: 10.5px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-switch .gs.on { box-shadow: 0 0 0 2.5px #ff9a3c, 0 4px 14px rgba(255, 154, 60, .25); background: #fff; }

