/* エアホッケー対戦。ゲームセンターの台の世界: 地は照明を落としたゲームセンターの床の深い青緑（HSL 190° 彩度 40% 明度 20%）、
   主なボタンは円盤の山吹（濃い藍の文字）、縁は金属。明るい台の面と朱のマレットは遊ぶ物だけ。ホームの色は main.js の THEME（shell.home の theme）。
   部屋（party.js）の画面も同じ色の組を .ahp に置く。共通部品のボタンの大きさ（padding / font-size / min-*）は上書きしない */
:root {
  --floor: #1f4148;
  --band: #2b5a64;
  --line: #5f8f99;
  --face: #eaeef1;
  --ink: #eef5f6;
  --dark: #13202e;
  --rail: #2e3742;
  --steel: #2d5276;
  --red: #b8321e;
  --blue: #2d5276;
  --gold: #f0b400;
  --mute: #b9d3d8;
  --title: "RocknRoll One", "M PLUS 1p", sans-serif;
}
.ah, .ahp { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.ah, .ahp { background: var(--floor); color: var(--ink); font-family: "M PLUS 1p", sans-serif; }
.ahp { --ui-red: #f0b400; --ui-red-ink: #13202e; --ui-ink: #eef5f6; --ui-sub: #b9d3d8; --ui-card: #1f4148; }
.ah-canvas { position: absolute; left: 0; top: 0; touch-action: none; display: block; }
.ah [hidden], .ahp [hidden] { display: none !important; }

/* 小さなウィンドウ（共通の shell.panel）の中身: 中断・遊び方・詳しく・設定。見出しの下に台の縁と同じ金属の線 */
.ah .sh-box, .ahp .sh-box { box-shadow: 0 0 0 1.5px var(--line); }
.ah .sh-box header, .ahp .sh-box header { border-bottom: 3px solid var(--line); }
.ah .sh-tabs button[aria-selected="true"], .ahp .sh-tabs button[aria-selected="true"] { background: var(--gold); color: var(--dark); }
.ah .ah-now { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.ah .ah-rl { text-align: left; margin: 0; padding-left: 1.2em; line-height: 1.6; font-size: 18px; }

/* ホーム（共通の shell.home）。地と背景は theme / backdrop。左（縦は上）の絵は CPU 同士の見本（押しても何も起きない） */
.ah .ah-home { z-index: 5; }
.ah .ah-home .sh-art { background: var(--floor); pointer-events: none; box-shadow: 0 0 0 1.5px var(--line); }
/* オンラインの枠: 角は 6px まで、枠線は細く・余白を詰めて小さく */
.ah .ah-home .ui-entry { border-radius: 6px; border-width: 1.5px; border-color: var(--line); background: var(--band); color: var(--ink); padding: 12px 16px; box-shadow: none; }
.ah .ah-home .ui-entry .ui-note { font-size: .8rem !important; color: var(--mute); }
/* 下の段（遊び方・設定・記録・詳しく）: 収まらなければ折り返す（ボタンの大きさは共通のまま） */
.ah .ah-home .sh-foot { gap: 10px; flex-wrap: wrap; }
/* sub のボタン（相手をさがす・下の段・帯・設定）: 地より一段明るい青緑の面に細い線 */
.ah .sh-home .ui-btn.sub, .ah .sh-bar .ui-btn.sub, .ah .sh-box .ui-btn.sub, .ah .sh-rb .ui-btn.sub, .ahp .ui-btn.sub { background: var(--band); color: var(--ink); border: 1.5px solid #7fa9b2; box-shadow: none; }
.ah .sh-home .ui-btn.sub:hover, .ah .sh-bar .ui-btn.sub:hover, .ah .sh-box .ui-btn.sub:hover, .ah .sh-rb .ui-btn.sub:hover { background: #336a76; }
.ah .sh-home .sh-online .ui-btn:not(.sub), .ah .sh-home .sh-solo .ui-btn { border: 1.5px solid var(--dark); box-shadow: none; }
/* ひとりで遊ぶ: ボタンは 1 行のまま。スローの速さはボタンの下の行に小さく（2026-10-24） */
.ah .sh-home .sh-solo .ui-btn { white-space: nowrap; }
.ah .ah-slowtag { flex-basis: 100%; margin: -4px 0 0; font-size: 18px; font-weight: 800; color: var(--gold); white-space: nowrap; }
/* 遊んでいる最中の帯: 地より一段明るい青緑の帯に金属の線。主な操作のボタンはホームと同じ山吹 */
.ah .sh-bar { background: var(--band); color: var(--ink); border-bottom: 3px solid var(--line); }
.ah .sh-bar .sh-info2 { color: var(--ink); font-weight: 800; }
.ah .sh-acts .ui-btn:not(.sub), .ah .ah-res .sh-rb .ui-btn:not(.sub) { background: var(--gold); color: var(--dark); border: 1.5px solid var(--dark); box-shadow: none; }
.ah .ah-det { padding: 4px 0 0; }
.ah .ah-h { margin: 0 0 6px; font-weight: 800; color: var(--ink); }
.ah .ah-lvs, .ah .ah-opts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ah .ah-det [aria-pressed="true"] { outline: 3px solid var(--gold); outline-offset: 1px; }
/* 記録: CPU の段ごとの欄。枠は付けず地の色の差で分ける。勝ち数を大きく、下に負け・いまの連勝・最長連勝。選んでいる段は上に山吹の線 */
.ah .ah-recs { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; color: var(--ink); }
.ah .ah-rec { flex: 1 1 130px; min-width: 130px; padding: 10px 12px; background: var(--band); border-top: 4px solid transparent; box-sizing: border-box; }
.ah .ah-rec.now { border-top-color: var(--gold); }
.ah .ah-rl2 { margin: 0; font-weight: 800; font-size: 18px; white-space: nowrap; }
.ah .ah-rw { margin: 2px 0 6px; font-weight: 800; font-size: 18px; white-space: nowrap; }
.ah .ah-rw b { font: 400 44px/1.1 var(--title); color: var(--gold); margin-right: 4px; }
.ah .ah-rec dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 16px; white-space: nowrap; }
.ah .ah-rec dt { color: var(--mute); font-weight: 800; }
.ah .ah-rec dd { margin: 0; font-weight: 800; text-align: right; }

/* 結果（共通の shell.result）: 地はホームの床の色。見出しを判子のように押す。「次は CPU ○」は共通の結果のボタンの段に置く */
.ah .sh-result.ah-res { background: rgba(31, 65, 71, .96); }
.ah .sh-result li { border-radius: 6px; }
.ah .sh-result li.me { background: var(--band); }
.ah .ah-res h2 { color: var(--red); border: 7px double currentColor; padding: 0 30px 6px; background: var(--face); font-family: var(--title); font-size: 96px; line-height: 1.15; animation: stamp .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.ah .ah-res.lose h2 { color: var(--blue); animation-name: stampLose; }
.ah .ah-note { margin: 0; font-weight: 800; font-size: 20px; }
/* 「次は CPU ○」は周回の入口なので、共通の結果のボタン（26px）より一段大きく（2026-10-24） */
.ah .ah-res .ah-next { white-space: nowrap; font-size: 32px; padding: 18px 44px; }
@keyframes stamp { 0% { transform: scale(2.8) rotate(-18deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: scale(1) rotate(-6deg); opacity: 1; } }
@keyframes stampLose { 0% { transform: translateY(-40px) rotate(0); opacity: 0; } 100% { transform: translateY(0) rotate(3deg); opacity: 1; } }

/* 合言葉の部屋（party.js）: 競り合い帯は台の向こう側の縁 */
.ahp .band { position: absolute; display: flex; gap: 6px; align-items: center; justify-content: center; box-sizing: border-box; overflow: hidden; pointer-events: none; }
.ahp.portrait .band { left: 0; right: 0; top: 0; height: 64px; padding: 0 10px; }
.ahp.landscape .band { top: 0; bottom: 0; right: 0; width: 170px; flex-direction: column; padding: 10px 8px; }
.ahp .tag { display: inline-block; max-width: 100%; box-sizing: border-box; padding: 4px 9px; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dark); background: rgba(234, 238, 241, .92); border: 1.5px solid rgba(29, 42, 56, .25); transition: background .15s; }
.ahp.portrait .tag { max-width: 150px; }
.ahp .tag.me { border-color: var(--blue); }
.ahp .tag.hot { background: var(--gold); }
.ahp .tag.lose { color: var(--mute); background: var(--band); border-color: var(--line); }
.ahp .pwait { position: absolute; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ahp .pwait .ui-panel { pointer-events: auto; text-align: center; max-width: 92%; box-sizing: border-box; border-radius: 6px; box-shadow: none; background: var(--band); color: var(--ink); border: 1.5px solid var(--line); border-top: 4px solid var(--gold); }
.ahp .pwait .pt { margin: 0 0 8px; font: 400 26px/1.3 var(--title); }
.ahp .pwait .names { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.ahp .pwait .pnote { margin: 8px 0 0; font-weight: 800; }
.ahp .pmine { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; text-align: center; font-size: 18px; font-weight: 800; color: var(--ink); pointer-events: none; }
.ahp .drop { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pstamp { color: var(--red); border: 7px double currentColor; padding: 4px 24px 10px; text-align: center; background: rgba(234, 238, 241, .95); animation: stamp .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.pstamp b { display: block; font: 400 76px/1.1 var(--title); }
.pstamp span { display: block; font-weight: 800; font-size: 22px; color: var(--dark); }
.pstamp.lose { color: var(--blue); }
