    /* ============================================================
   U-30 学生ポーカー選手権 — Public Portal
   Brand: 手描きマーカー × パンク × グラフィティ（緑ベース）
   Colors: green base + punk pops (red / yellow / orange paint)
   ============================================================ */
    :root {
      --primary: #0e5a37;
      --accent: #ec3b26;
      --accent-light: #fdeae7;
      --gold: #f5c400;
      --gold-light: #fbf3da;
      --blue: #1f7a8c;
      --blue-light: #e8f4f6;
      --green: #1ea64c;
      --green-light: #eafaef;
      --green-deep: #0a3d26;
      --surface: #ffffff;
      --surface-alt: #eef6ef;
      --border: #d9e7dd;
      --text: #15281f;
      --text-secondary: #4f6357;
      --text-light: #84978a;
      --suit-spade: #0f3460;
      --suit-heart: #e94560;
      --suit-diamond: #c9a84c;
      --suit-club: #16a34a;
      --tab-height: 64px;
      --header-height: 124px;
      --day-tabs-height: 52px;
      --safe-bottom: env(safe-area-inset-bottom, 0px);
      --safe-top: env(safe-area-inset-top, 0px);
      --safe-left: env(safe-area-inset-left, 0px);
      --safe-right: env(safe-area-inset-right, 0px);
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      -webkit-text-size-adjust: 100%;
    }

    body {
      font-family: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', system-ui, sans-serif;
      background: var(--surface-alt);
      color: var(--text);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      padding-bottom: calc(var(--tab-height) + var(--safe-bottom));
    }

    .pixel-font {
      font-family: 'Press Start 2P', monospace;
    }

    .en {
      font-family: 'Inter', sans-serif;
    }

    /* ── Page Transitions ── */
    #main-content {
      transition: opacity .18s ease, transform .18s ease;
    }

    #main-content.page-leaving {
      opacity: 0;
      transform: translateY(6px);
    }

    #main-content.page-entering {
      opacity: 0;
      transform: translateY(-4px);
    }

    @media (prefers-reduced-motion: reduce) {

      #main-content,
      #main-content.page-leaving,
      #main-content.page-entering {
        transition: none;
        transform: none;
        opacity: 1;
      }
    }

    /* ── PWA Install Banner ── */
    #pwa-install-banner {
      position: fixed;
      left: calc(12px + var(--safe-left));
      right: calc(12px + var(--safe-right));
      bottom: calc(var(--tab-height) + var(--safe-bottom) + 12px);
      z-index: 90;
      background: #0e5a37;
      color: #ffd84d;
      border-radius: 14px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 216, 77, .35) inset;
      padding: 12px 14px;
      display: none;
      align-items: center;
      gap: 12px;
      font-family: 'Noto Sans JP', sans-serif;
      transform: translateY(20px);
      opacity: 0;
      transition: opacity .3s ease, transform .3s ease;
      pointer-events: none;
    }

    #pwa-install-banner.pwa-show {
      display: flex;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .pwa-install-icon {
      flex: 0 0 40px;
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .pwa-install-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .pwa-install-text {
      flex: 1 1 auto;
      min-width: 0;
      font-size: 12px;
      line-height: 1.4;
      color: #fff;
    }

    .pwa-install-text strong {
      display: block;
      color: #ffd84d;
      font-size: 13px;
      font-weight: 700;
      margin-bottom: 2px;
    }

    .pwa-install-actions {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex-shrink: 0;
    }

    .pwa-install-btn {
      background: #ffd84d;
      color: #0e5a37;
      border: none;
      padding: 8px 14px;
      min-height: 36px;
      border-radius: 18px;
      font-size: 12px;
      font-weight: 700;
      font-family: 'Noto Sans JP', sans-serif;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    .pwa-install-btn:active {
      transform: scale(.96);
    }

    .pwa-install-dismiss {
      background: transparent;
      color: rgba(255, 255, 255, .7);
      border: none;
      padding: 4px 10px;
      min-height: 28px;
      font-size: 11px;
      font-weight: 600;
      font-family: 'Noto Sans JP', sans-serif;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

    @media (max-width: 360px) {
      #pwa-install-banner {
        padding: 10px 12px;
        gap: 8px;
      }

      .pwa-install-icon {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
      }

      .pwa-install-text {
        font-size: 11px;
      }
    }

    /* ── Toast ── */
    #toast-container {
      position: fixed;
      left: 50%;
      bottom: calc(72px + env(safe-area-inset-bottom, 0px));
      transform: translateX(-50%);
      z-index: 99999;
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: none;
    }

    .toast {
      background: rgba(21, 51, 100, .95);
      color: #ffd84d;
      padding: 10px 18px;
      border-radius: 24px;
      font-size: 13px;
      font-weight: 600;
      font-family: 'Noto Sans JP', sans-serif;
      box-shadow: 0 6px 22px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 216, 77, .3) inset;
      opacity: 0;
      transform: translateY(10px) scale(.96);
      transition: opacity .22s ease, transform .22s ease;
      white-space: nowrap;
    }

    .toast.toast-show {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    .toast.toast-success {
      color: #bfffcf;
      box-shadow: 0 6px 22px rgba(0, 0, 0, .45), 0 0 0 1px rgba(22, 163, 74, .5) inset;
    }

    .toast.toast-warn {
      color: #ffd1a8;
      box-shadow: 0 6px 22px rgba(0, 0, 0, .45), 0 0 0 1px rgba(249, 115, 22, .5) inset;
    }

    /* ── Splash Screen ── */
    #splash {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: var(--primary);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: opacity 0.6s, visibility 0.6s;
    }

    #splash.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    #splash .splash-logo-img {
      width: 82%;
      max-width: 360px;
      height: auto;
      margin-bottom: 16px;
      animation: splashLogoBounce 1.6s ease-in-out infinite;
    }

    @keyframes splashLogoBounce {

      0%,
      100% {
        transform: translateY(0) scale(1);
      }

      50% {
        transform: translateY(-6px) scale(1.02);
      }
    }

    #splash .tagline {
      color: var(--text-light);
      font-size: 12px;
      margin-top: 8px;
    }

    /* ── Splash Stage（中央枠 + 両サイドにU-30キャラ） ── */
    #splash .splash-stage {
      position: relative;
      width: min(440px, 92vw);
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    #splash .splash-chara {
      position: absolute;
      pointer-events: none;
      object-fit: contain;
      transform: rotate(var(--rot, 0deg));
      filter: drop-shadow(7px 11px 9px rgba(0, 0, 0, .5));
      animation: charaFloat3d var(--dur, 3s) ease-in-out var(--delay, 0s) infinite;
      will-change: transform, filter;
    }
    /* 左右に大きく・四隅に配置（--rotで個別の傾き、--dur/--delayで個別の浮遊） */
    #splash .sc-lt { left: -52px; top: -54px;    width: 144px; --rot: -12deg; --dur: 3.1s; --delay: 0s; }
    #splash .sc-lb { left: -60px; bottom: -18px; width: 168px; --rot: 8deg;   --dur: 3.7s; --delay: .45s; }
    #splash .sc-rt { right: -56px; top: -46px;   width: 154px; --rot: 11deg;  --dur: 3.3s; --delay: .2s; }
    #splash .sc-rb { right: -50px; bottom: -10px; width: 130px; --rot: -9deg; --dur: 2.8s; --delay: .65s; }

    /* 浮遊＋わずかな拡縮＋影が伸びる＝立体っぽい浮き */
    @keyframes charaFloat3d {
      0%, 100% {
        transform: translateY(0) rotate(var(--rot)) scale(1);
        filter: drop-shadow(7px 11px 8px rgba(0, 0, 0, .5));
      }
      50% {
        transform: translateY(-16px) rotate(calc(var(--rot) + 4deg)) scale(1.04);
        filter: drop-shadow(12px 24px 16px rgba(0, 0, 0, .32));
      }
    }

    /* 狭幅では少し小さく・内側へ（はみ出し過ぎ防止） */
    @media (max-width: 380px) {
      #splash .sc-lt { width: 116px; left: -34px; top: -46px; }
      #splash .sc-lb { width: 138px; left: -40px; bottom: -10px; }
      #splash .sc-rt { width: 124px; right: -38px; top: -40px; }
      #splash .sc-rb { width: 104px; right: -32px; bottom: -6px; }
    }

    /* ── ローディングゲージ（U-30パンク: カラーテープ風） ── */
    #splash .bar-wrap {
      position: relative;
      width: 240px;
      height: 16px;
      background: rgba(0, 0, 0, 0.28);
      border: 2px solid rgba(255, 255, 255, 0.9);
      border-radius: 3px;
      margin-top: 30px;
      overflow: hidden;
      transform: rotate(-1.5deg);
      box-shadow: 0 5px 16px rgba(0, 0, 0, 0.4);
    }

    #splash .bar {
      height: 100%;
      width: 0%;
      background: repeating-linear-gradient(45deg, #f0811f 0 11px, #f5c400 11px 22px);
      transition: width 0.3s ease;
    }

    #splash .pct {
      color: #fff;
      font-size: 16px;
      font-weight: 900;
      letter-spacing: .1em;
      margin-top: 14px;
      font-family: 'Inter', sans-serif;
      transform: rotate(-1.5deg);
      text-shadow: 0 2px 4px rgba(0, 0, 0, .4);
    }
    #splash .pct::before {
      content: 'NOW LOADING ';
      color: #f5c400;
      font-size: 11px;
      letter-spacing: .14em;
    }

    /* ── Header ── */
    .app-header {
      position: relative;
      overflow: hidden;
      background: #176a30;
      height: calc(var(--header-height) + var(--safe-top));
      padding-top: var(--safe-top);
      display: flex;
      align-items: center;
      justify-content: center;
      padding-left: calc(12px + var(--safe-left));
      padding-right: calc(12px + var(--safe-right));
      padding-bottom: 2px;
      gap: 8px;
    }

    main {
      padding-top: 0;
    }

    /* ロゴ周りを走り回るキャラ */
    .logo-runner {
      position: absolute;
      bottom: 2px;
      left: 0;
      width: 56px;
      height: 56px;
      z-index: 4;
      pointer-events: none;
      /* 左から駆け足で入ってきて、学生ポーカー選手権の横で静止 */
      animation: runnerRunIn 2s cubic-bezier(.34, 0, .26, 1) forwards;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4));
    }
    .logo-runner img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
      transform-origin: 50% 88%;
      /* 走り込み中だけ駆け足(5回=2s)→以降は静止して軽く呼吸 */
      animation: dogGallop .4s ease-in-out 5, dogRest 2.8s ease-in-out 2s infinite;
    }
    @keyframes runnerRunIn {
      0%   { left: -64px; }
      100% { left: calc(50% - 108px); }
    }
    /* 駆け足（バウンディング）: 蹴り出しで伸び上がり、着地で縮む */
    @keyframes dogGallop {
      0%   { transform: translateY(0)    rotate(0deg)  scale(1, 1); }
      25%  { transform: translateY(-8px) rotate(-7deg) scale(1.06, .94); }
      50%  { transform: translateY(-1px) rotate(0deg)  scale(1, 1); }
      72%  { transform: translateY(-4px) rotate(6deg)  scale(.95, 1.05); }
      100% { transform: translateY(0)    rotate(0deg)  scale(1, 1); }
    }
    /* 静止後の軽い呼吸 */
    @keyframes dogRest {
      0%, 100% { transform: translateY(0) scale(1, 1); }
      50% { transform: translateY(-1px) scale(1.02, .98); }
    }
    @media (prefers-reduced-motion: reduce) {
      .logo-runner, .logo-runner img { animation: none !important; }
    }

    .app-header .header-slot {
      display: flex;
      align-items: center;
      gap: 6px;
      flex: 0 0 auto;
    }

    .app-header .header-slot.left {
      justify-content: flex-start;
    }

    .app-header .header-slot.right {
      justify-content: flex-end;
    }

    .app-header .header-center {
      flex: 1 1 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
    }

    .app-header .header-title {
      font-family: 'Press Start 2P', cursive;
      font-size: 18px;
      letter-spacing: 2px;
      color: var(--gold);
      text-shadow: 2px 2px 0 var(--blue), 3px 3px 0 rgba(0, 0, 0, 0.8);
      white-space: nowrap;
    }

    .header-logo-img {
      /* ヘッダー縦幅いっぱいに大きく表示（U-30ロゴ） */
      height: calc(var(--header-height) - 8px);
      max-height: calc(var(--header-height) - 4px);
      max-width: min(400px, 92vw);
      width: auto;
      display: block;
      object-fit: contain;
      transition: transform 0.2s;
    }

    @keyframes logo-pulse {
      0% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.12);
      }

      100% {
        transform: scale(1);
      }
    }

    .header-logo-img.logo-pulse {
      animation: logo-pulse 0.8s ease-in-out infinite;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

    .app-header .partner-logo {
      display: block;
      height: clamp(24px, 8vw, 34px);
      max-height: calc(var(--header-height) - 16px);
      width: auto;
      object-fit: contain;
      flex-shrink: 0;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transform-origin: bottom center;
    }

    @keyframes chara-jump {
      0% {
        transform: translateY(0) scale(1, 1);
      }

      15% {
        transform: translateY(0) scale(1.1, 0.85);
      }

      30% {
        transform: translateY(-12px) scale(0.95, 1.1);
      }

      50% {
        transform: translateY(-14px) scale(0.95, 1.1);
      }

      70% {
        transform: translateY(0) scale(1.05, 0.9);
      }

      85% {
        transform: translateY(-3px) scale(1, 1.02);
      }

      100% {
        transform: translateY(0) scale(1, 1);
      }
    }

    .partner-logo.jumping {
      animation: chara-jump 0.45s ease-out;
    }

    /* ヘッダーキャラ昇天 */
    @keyframes chara-ascend {
      0% {
        transform: translateY(0);
        opacity: 1;
      }

      40% {
        transform: translateY(-20px);
        opacity: 1;
      }

      100% {
        transform: translateY(-120vh);
        opacity: 0;
      }
    }

    .partner-logo.chara-ascend {
      animation: chara-ascend 0.8s ease-in forwards !important;
    }

    /* 降臨キャラ */
    .ascension-title {
      position: absolute;
      top: 22%;
      left: 50%;
      transform: translateX(-50%);
      color: #f5c800;
      font-size: clamp(16px, 4.5vw, 24px);
      font-weight: 700;
      text-align: center;
      white-space: nowrap;
      letter-spacing: 0.05em;
      text-shadow: 0 0 12px rgba(245, 200, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5);
      opacity: 0;
      animation: ascension-title-in 1.5s 1s ease-out forwards;
      z-index: 2;
    }

    @keyframes ascension-title-in {
      0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
      }

      100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }

    .ascension-chara {
      position: absolute;
      top: 50%;
      left: 50%;
      width: clamp(180px, 55vw, 300px);
      height: auto;
      object-fit: contain;
      transform: translate(-50%, -150vh);
      opacity: 0;
      animation: chara-descend 4.5s 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards,
        chara-descend-pulse 0.8s 0.3s ease-in-out infinite;
      filter: drop-shadow(0 0 40px rgba(233, 69, 96, 0.5));
      z-index: 1;
    }

    @keyframes chara-descend {
      0% {
        transform: translate(-50%, -150vh);
        opacity: 0;
      }

      30% {
        opacity: 1;
      }

      70% {
        transform: translate(-50%, -45%);
        opacity: 1;
      }

      85% {
        transform: translate(-50%, -52%);
        opacity: 1;
      }

      100% {
        transform: translate(-50%, -50%);
        opacity: 1;
      }
    }

    @keyframes chara-descend-pulse {
      0% {
        filter: drop-shadow(0 0 40px rgba(233, 69, 96, 0.5)) drop-shadow(0 0 15px rgba(255, 200, 100, 0.3)) scale(1);
      }

      50% {
        filter: drop-shadow(0 0 60px rgba(233, 69, 96, 0.8)) drop-shadow(0 0 30px rgba(255, 220, 120, 0.6)) scale(1.06);
      }

      100% {
        filter: drop-shadow(0 0 40px rgba(233, 69, 96, 0.5)) drop-shadow(0 0 15px rgba(255, 200, 100, 0.3)) scale(1);
      }
    }

    /* キラキラパーティクル */
    .sparkle {
      position: absolute;
      pointer-events: none;
      z-index: 2;
      animation-fill-mode: forwards;
    }

    .sparkle-star {
      width: 100%;
      height: 100%;
      background: radial-gradient(circle, #fff 0%, rgba(255, 220, 130, 0.8) 30%, transparent 70%);
      border-radius: 50%;
    }

    .sparkle-cross {
      width: 100%;
      height: 100%;
      position: relative;
    }

    .sparkle-cross::before,
    .sparkle-cross::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 40%, rgba(255, 255, 255, 0.9) 60%, transparent);
      transform-origin: center;
    }

    .sparkle-cross::before {
      width: 100%;
      height: 2px;
      transform: translate(-50%, -50%);
    }

    .sparkle-cross::after {
      width: 2px;
      height: 100%;
      transform: translate(-50%, -50%);
    }

    @keyframes sparkle-float {
      0% {
        opacity: 0;
        transform: translate(0, 0) scale(0) rotate(0deg);
      }

      20% {
        opacity: 1;
        transform: translate(var(--sx), var(--sy)) scale(1) rotate(90deg);
      }

      60% {
        opacity: 0.8;
        transform: translate(calc(var(--sx)*2), calc(var(--sy)*2)) scale(0.7) rotate(180deg);
      }

      100% {
        opacity: 0;
        transform: translate(calc(var(--sx)*3), calc(var(--sy)*3)) scale(0) rotate(360deg);
      }
    }

    /* 降臨画面「戻る」ボタン */
    .ascension-back-btn {
      position: absolute;
      bottom: max(env(safe-area-inset-bottom, 20px), 40px);
      left: 50%;
      transform: translateX(-50%) scale(0.8);
      padding: 14px 48px;
      background: #f5c800;
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      border: none;
      border-radius: 30px;
      cursor: pointer;
      z-index: 10;
      letter-spacing: 2px;
      opacity: 0;
      animation: ascension-btn-in 0.5s ease-out forwards;
      -webkit-tap-highlight-color: transparent;
      box-shadow: 0 4px 16px rgba(245, 200, 0, 0.4);
    }

    .ascension-back-btn:active {
      opacity: 0.8;
      transform: translateX(-50%) scale(0.95);
    }

    @keyframes ascension-btn-in {
      0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
      }

      100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
      }
    }

    @media (max-width: 360px) {
      .app-header .header-title {
        font-size: 14px;
        letter-spacing: 1px;
      }

      .app-header .partner-logo {
        height: 24px;
      }

      .header-logo-img {
        max-width: 55vw;
      }
    }

    /* ── Freeze Overlay — 群演出 (Easter Egg) ── */
    .freeze-overlay {
      position: fixed;
      inset: 0;
      z-index: 99999;
      background: #000;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      overflow: hidden;
    }

    .freeze-overlay.active {
      visibility: visible;
      pointer-events: auto;
      animation: freeze-blackout 0.6s ease-out forwards;
    }

    .freeze-overlay.fade-out {
      animation: freeze-out 1s ease-in forwards;
    }

    @keyframes freeze-blackout {
      0% {
        opacity: 0;
      }

      20% {
        opacity: 1;
      }

      40% {
        opacity: 0.3;
      }

      55% {
        opacity: 1;
      }

      70% {
        opacity: 0.6;
      }

      100% {
        opacity: 1;
      }
    }

    @keyframes freeze-out {
      0% {
        opacity: 1;
      }

      100% {
        opacity: 0;
        visibility: hidden;
      }
    }

    /* 走るキャラ共通 */
    .stampede-chara {
      position: absolute;
      width: 48px;
      height: 48px;
      object-fit: contain;
      pointer-events: none;
      /* iOS Safari/Chrome 対策: 可視性と変換の初期値を明示 */
      visibility: visible;
      transform: translateX(0) scaleX(-1);
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      /* 跳ねながら走る */
      animation-timing-function: linear;
      animation-fill-mode: both;
    }

    @keyframes stampede-run {
      0% {
        transform: translateX(0) translateY(0) scaleX(-1);
      }

      5% {
        transform: translateX(-11vw) translateY(-10px) scaleX(-1);
      }

      10% {
        transform: translateX(-22vw) translateY(0) scaleX(-1);
      }

      15% {
        transform: translateX(-33vw) translateY(-12px) scaleX(-1);
      }

      20% {
        transform: translateX(-44vw) translateY(0) scaleX(-1);
      }

      25% {
        transform: translateX(-55vw) translateY(-10px) scaleX(-1);
      }

      30% {
        transform: translateX(-66vw) translateY(0) scaleX(-1);
      }

      35% {
        transform: translateX(-77vw) translateY(-12px) scaleX(-1);
      }

      40% {
        transform: translateX(-88vw) translateY(0) scaleX(-1);
      }

      45% {
        transform: translateX(-99vw) translateY(-10px) scaleX(-1);
      }

      50% {
        transform: translateX(-110vw) translateY(0) scaleX(-1);
      }

      55% {
        transform: translateX(-121vw) translateY(-12px) scaleX(-1);
      }

      60% {
        transform: translateX(-132vw) translateY(0) scaleX(-1);
      }

      65% {
        transform: translateX(-143vw) translateY(-10px) scaleX(-1);
      }

      70% {
        transform: translateX(-154vw) translateY(0) scaleX(-1);
      }

      75% {
        transform: translateX(-165vw) translateY(-12px) scaleX(-1);
      }

      80% {
        transform: translateX(-176vw) translateY(0) scaleX(-1);
      }

      85% {
        transform: translateX(-187vw) translateY(-10px) scaleX(-1);
      }

      90% {
        transform: translateX(-198vw) translateY(0) scaleX(-1);
      }

      95% {
        transform: translateX(-209vw) translateY(-12px) scaleX(-1);
      }

      100% {
        transform: translateX(-220vw) translateY(0) scaleX(-1);
      }
    }

    /* 群予告メッセージ */
    .stampede-msg {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.8);
      font-size: 15px;
      font-weight: 700;
      color: rgba(255, 255, 255, 0.9);
      white-space: nowrap;
      text-shadow: 0 0 20px rgba(180, 160, 130, 0.6);
      opacity: 0;
      animation: stampede-msg-in 0.6s ease-out forwards;
      z-index: 100;
    }

    @keyframes stampede-msg-in {
      0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
      }

      50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.04);
      }

      100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }
    }

    /* 砂埃パーティクル */
    .stampede-dust {
      position: absolute;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(180, 160, 130, 0.7);
      pointer-events: none;
      will-change: transform, opacity;
      animation-fill-mode: forwards;
    }

    @keyframes dust-puff {
      0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
      }

      30% {
        transform: translate(8px, -10px) scale(2);
        opacity: 0.5;
      }

      60% {
        transform: translate(18px, -18px) scale(3);
        opacity: 0.25;
      }

      100% {
        transform: translate(28px, -24px) scale(4);
        opacity: 0;
      }
    }

    /* ── Freeze演出（隠しコマンド用） ── */
    .freeze-title {
      position: absolute;
      top: 22%;
      left: 50%;
      transform: translateX(-50%);
      color: #ffffff;
      font-size: clamp(14px, 4vw, 20px);
      font-weight: 700;
      text-align: center;
      white-space: nowrap;
      letter-spacing: 0.08em;
      text-shadow: 0 0 12px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
      opacity: 0;
      z-index: 2;
    }

    .freeze-overlay.active .freeze-title {
      animation: freeze-title-in 1.5s 1.2s ease-out forwards;
    }

    @keyframes freeze-title-in {
      0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
      }

      100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }

    .freeze-chara {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.9);
      width: clamp(120px, 35vw, 200px);
      height: auto;
      object-fit: contain;
      opacity: 0;
      pointer-events: none;
      z-index: 1;
    }

    .freeze-overlay.active .freeze-chara {
      animation: chara-emerge 2.5s 0.8s ease-out forwards;
    }

    @keyframes chara-emerge {
      0% {
        opacity: 0;
        filter: brightness(0);
        transform: translate(-50%, -50%) scale(0.9);
      }

      30% {
        opacity: 0.3;
        filter: brightness(0.3) drop-shadow(0 0 20px rgba(80, 160, 255, 0.3));
        transform: translate(-50%, -50%) scale(0.95);
      }

      60% {
        opacity: 0.85;
        filter: brightness(0.8) drop-shadow(0 0 40px rgba(80, 160, 255, 0.4));
        transform: translate(-50%, -50%) scale(1);
      }

      100% {
        opacity: 1;
        filter: brightness(1) drop-shadow(0 0 50px rgba(80, 160, 255, 0.5));
        transform: translate(-50%, -50%) scale(1);
      }
    }

    .freeze-flare {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 0;
      height: 2px;
      background: radial-gradient(ellipse at center, rgba(80, 160, 255, 0.9) 0%, rgba(40, 100, 255, 0.4) 40%, transparent 70%);
      box-shadow: 0 0 30px 10px rgba(60, 140, 255, 0.5), 0 0 80px 20px rgba(40, 100, 255, 0.3), 0 0 160px 40px rgba(30, 80, 255, 0.15);
      opacity: 0;
      pointer-events: none;
    }

    .freeze-overlay.active .freeze-flare {
      animation: flare-expand 1.2s 0.3s ease-out forwards;
    }

    @keyframes flare-expand {
      0% {
        width: 0;
        height: 2px;
        opacity: 0;
      }

      20% {
        width: 120vw;
        height: 3px;
        opacity: 1;
      }

      50% {
        width: 140vw;
        height: 4px;
        opacity: 0.8;
      }

      100% {
        width: 100vw;
        height: 2px;
        opacity: 0.2;
      }
    }

    /* ═══════════════════════════════════════════
       群予告 (月背景 + logo_a)
       ═══════════════════════════════════════════ */

    .freeze-overlay.yokoku-mode {
      background:
        radial-gradient(ellipse at 30% 55%, rgba(60, 90, 150, 0.55) 0%, rgba(10, 14, 32, 0.0) 55%),
        radial-gradient(ellipse at 70% 30%, rgba(140, 60, 120, 0.25) 0%, rgba(10, 14, 32, 0.0) 60%),
        linear-gradient(180deg, #050814 0%, #0d1230 45%, #040616 100%);
    }

    /* 星空（box-shadow で大量ドット） */
    .yokoku-stars {
      position: absolute;
      top: 0;
      left: 0;
      width: 2px;
      height: 2px;
      background: transparent;
      opacity: 0;
      animation: yokoku-stars-in 1.8s 0.1s ease-out forwards;
      box-shadow:
        12vw 8vh 0 0.5px #fff,
        25vw 14vh 0 0.5px rgba(255, 255, 255, 0.7),
        38vw 6vh 0 0.5px #fff,
        52vw 11vh 0 0.5px rgba(200, 220, 255, 0.8),
        63vw 18vh 0 0.5px #fff,
        77vw 9vh 0 0.5px rgba(255, 255, 255, 0.6),
        88vw 22vh 0 0.5px #fff,
        5vw 28vh 0 0.5px rgba(255, 255, 255, 0.5),
        18vw 34vh 0 0.5px #fff,
        31vw 40vh 0 0.5px rgba(220, 230, 255, 0.7),
        44vw 26vh 0 0.5px #fff,
        56vw 44vh 0 0.5px rgba(255, 255, 255, 0.8),
        72vw 38vh 0 0.5px rgba(180, 200, 255, 0.6),
        85vw 48vh 0 0.5px #fff,
        95vw 32vh 0 0.5px rgba(255, 255, 255, 0.5),
        8vw 52vh 0 0.5px #fff,
        22vw 58vh 0 0.5px rgba(255, 255, 255, 0.7),
        36vw 68vh 0 0.5px rgba(200, 220, 255, 0.8),
        49vw 56vh 0 0.5px #fff,
        62vw 72vh 0 0.5px rgba(255, 255, 255, 0.6),
        78vw 64vh 0 0.5px #fff,
        91vw 78vh 0 0.5px rgba(220, 230, 255, 0.5),
        3vw 82vh 0 0.5px #fff,
        15vw 88vh 0 0.5px rgba(255, 255, 255, 0.7),
        28vw 76vh 0 0.5px rgba(180, 200, 255, 0.8),
        41vw 92vh 0 0.5px #fff,
        55vw 84vh 0 0.5px rgba(255, 255, 255, 0.6),
        68vw 95vh 0 0.5px #fff,
        82vw 90vh 0 0.5px rgba(200, 220, 255, 0.5),
        94vw 62vh 0 0.5px #fff,
        10vw 16vh 0 1px #fff,
        33vw 50vh 0 1px #fff,
        60vw 80vh 0 1px #fff,
        75vw 25vh 0 1px rgba(255, 255, 255, 0.9),
        20vw 70vh 0 1px #fff;
    }

    @keyframes yokoku-stars-in {
      0% {
        opacity: 0;
      }

      100% {
        opacity: 1;
      }
    }

    /* 月本体（画面中央に大きく配置） */
    .yokoku-moon {
      position: absolute;
      top: 50%;
      left: 50%;
      width: clamp(320px, 85vmin, 780px);
      height: clamp(320px, 85vmin, 780px);
      border-radius: 50%;
      background:
        radial-gradient(circle at 32% 30%,
          #eaf2ff 0%,
          #bcd2ef 18%,
          #6e93c7 42%,
          #2f5490 70%,
          #0f1f44 100%);
      box-shadow:
        0 0 80px 15px rgba(120, 170, 240, 0.45),
        0 0 200px 60px rgba(70, 130, 220, 0.3),
        inset -30px -40px 100px rgba(0, 10, 30, 0.5);
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.4);
      filter: blur(8px);
      animation: yokoku-moon-in 1.6s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
      z-index: 1;
    }

    /* 月のクレーター */
    .yokoku-moon::before,
    .yokoku-moon::after {
      content: '';
      position: absolute;
      border-radius: 50%;
      background: radial-gradient(circle at 40% 40%, rgba(20, 40, 80, 0.55), rgba(50, 80, 130, 0.15));
      box-shadow: inset 2px 3px 4px rgba(0, 10, 30, 0.35);
    }

    .yokoku-moon::before {
      width: 14%;
      height: 14%;
      top: 22%;
      left: 58%;
    }

    .yokoku-moon::after {
      width: 9%;
      height: 9%;
      top: 62%;
      left: 28%;
    }

    @keyframes yokoku-moon-in {
      0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.4);
        filter: blur(10px);
      }

      60% {
        opacity: 1;
        filter: blur(0);
      }

      100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
      }
    }

    /* logo_a — 月の右下寄りに重ねて配置 */
    .yokoku-chara {
      position: absolute;
      top: 62%;
      left: 60%;
      width: clamp(220px, 55vmin, 500px);
      height: auto;
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.55) rotate(6deg);
      filter: drop-shadow(0 16px 36px rgba(80, 160, 255, 0.0)) brightness(0.35);
      animation: yokoku-chara-in 1.8s 1.2s cubic-bezier(0.18, 0.8, 0.22, 1) forwards;
      pointer-events: none;
      z-index: 3;
    }

    @keyframes yokoku-chara-in {
      0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.55) rotate(6deg);
        filter: drop-shadow(0 16px 36px rgba(80, 160, 255, 0)) brightness(0.35);
      }

      40% {
        opacity: 1;
      }

      100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        filter: drop-shadow(0 16px 36px rgba(120, 190, 255, 0.65)) brightness(1);
      }
    }

    /* logo_a 背後のオーラ（右下寄り / 月とキャラの中間レイヤ） */
    .yokoku-aura {
      position: absolute;
      top: 62%;
      left: 60%;
      width: clamp(280px, 70vmin, 620px);
      height: clamp(280px, 70vmin, 620px);
      border-radius: 50%;
      background: radial-gradient(circle,
          rgba(150, 210, 255, 0.35) 0%,
          rgba(90, 150, 230, 0.18) 40%,
          rgba(40, 80, 160, 0.0) 70%);
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.6);
      animation: yokoku-aura-in 1.4s 1.4s ease-out forwards;
      pointer-events: none;
      z-index: 2;
      mix-blend-mode: screen;
    }

    @keyframes yokoku-aura-in {
      0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
      }

      100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }
    }

    /* 群予告タイトル */
    .yokoku-title {
      position: absolute;
      top: 12%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: #fff;
      font-family: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
      font-weight: 700;
      font-size: clamp(16px, 4.2vw, 30px);
      letter-spacing: 0.08em;
      text-align: center;
      text-shadow:
        0 0 10px rgba(150, 210, 255, 0.9),
        0 0 24px rgba(80, 160, 255, 0.55),
        0 2px 6px rgba(0, 10, 30, 0.7);
      opacity: 0;
      animation: yokoku-title-in 1.2s 0.8s ease-out forwards;
      pointer-events: none;
      z-index: 4;
      max-width: 92vw;
      white-space: nowrap;
    }

    @keyframes yokoku-title-in {
      0% {
        opacity: 0;
        transform: translate(-50%, -30%) scale(1.15);
        letter-spacing: 0.35em;
      }

      60% {
        opacity: 1;
      }

      100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        letter-spacing: 0.08em;
      }
    }

    /* ── Tab Bar ── */
    .tab-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: calc(var(--tab-height) + var(--safe-bottom));
      padding-bottom: var(--safe-bottom);
      background: #fff;
      display: flex;
      border-top: 1px solid var(--border);
      z-index: 100;
      box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    }

    .tab-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      cursor: pointer;
      color: var(--text-light);
      transition: color 0.2s;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      /* button/a の既定スタイル解除 */
      background: transparent;
      border: none;
      padding: 0;
      margin: 0;
      font: inherit;
      text-decoration: none;
    }

    .tab-item.active {
      color: var(--accent);
    }

    .tab-item.active .tab-indicator {
      position: absolute;
      top: 0;
      left: 20%;
      right: 20%;
      height: 2.5px;
      background: var(--accent);
      border-radius: 0 0 2px 2px;
    }

    .tab-icon {
      font-size: 20px;
      position: relative;
    }

    .tab-label {
      font-size: 10px;
      font-weight: 600;
      font-family: 'Inter', sans-serif;
      letter-spacing: 0.5px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
      text-align: center;
    }

    /* 長いラベル（メインスケジュール / トーナメントリスト）は少しだけ小さく */
    .tab-item[aria-label="メインスケジュール"] .tab-label,
    .tab-item[aria-label="トーナメントリスト"] .tab-label {
      font-size: 9px;
      letter-spacing: 0;
    }

    .tab-svg-icon {
      width: 22px;
      height: 22px;
      object-fit: contain;
      display: block;
      opacity: 0.45;
      transition: opacity 0.2s;
    }

    .tab-item.active .tab-svg-icon {
      opacity: 1;
    }

    /* ── Page Container ── */
    main {
      min-height: 100vh;
    }

    .page {
      display: none;
      animation: pageFadeIn 0.3s ease;
    }

    .page.active {
      display: block;
    }

    @keyframes pageFadeIn {
      from {
        opacity: 0;
        transform: translateY(8px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ── Banner Slider ── */
    .banner-slider {
      position: relative;
      background: #000;
      overflow: hidden;
      line-height: 0;
    }

    .banner-track {
      display: flex;
      will-change: transform;
    }

    .banner-slide {
      flex: 0 0 100%;
      width: 100%;
      aspect-ratio: 3 / 2;
      background: #000;
    }

    .banner-slide img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .banner-dots {
      position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 6px;
      line-height: 1;
    }

    .banner-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.4);
      transition: background 0.2s, transform 0.2s;
    }

    .banner-dot.active {
      background: #fff;
      transform: scale(1.3);
    }

    /* ── Promo Strip ── */
    .promo-strip {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin: 12px 16px 0;
      padding: 12px 16px;
      background: #f5c800;
      border-radius: 10px;
      text-decoration: none;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: opacity 0.15s;
    }

    .promo-strip:active {
      opacity: 0.8;
    }

    .promo-strip-text {
      font-size: 14px;
      font-weight: 700;
      color: #0a1929;
      letter-spacing: 0.5px;
    }

    .promo-strip-arrow {
      font-size: 18px;
      font-weight: 700;
      color: #0a1929;
      line-height: 1;
    }

    /* ── Day Tabs ── */
    .day-tabs {
      display: flex;
      background: #fff;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: var(--header-height);
      z-index: 50;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x proximity;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain;
    }

    .day-tabs::-webkit-scrollbar {
      display: none;
    }

    .day-tab {
      flex: 0 0 20%;
      scroll-snap-align: start;
      padding: 10px 4px;
      text-align: center;
      cursor: pointer;
      border-bottom: 2.5px solid transparent;
      transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      user-select: none;
      position: relative;
      /* 非アクティブ: 浮き上がり（凸） */
      background: linear-gradient(180deg, #fff 0%, #f4f5f7 100%);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .day-tab:active {
      /* 押し込み（凹） */
      background: linear-gradient(180deg, #ecedf0 0%, #f4f5f7 100%);
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
      transform: scale(0.97);
    }

    .day-tab.active {
      border-bottom-color: var(--accent);
      /* 選択中: 沈み込み（凹） */
      background: linear-gradient(180deg, #fdf0f3 0%, #fff5f7 100%);
      box-shadow: inset 0 2px 6px rgba(233, 69, 96, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.04);
    }

    .day-tab .day-date {
      font-family: 'Inter', sans-serif;
      font-size: 15px;
      font-weight: 700;
      color: var(--text-light);
    }

    .day-tab.active .day-date {
      color: var(--text);
    }

    .day-tab .day-name {
      font-family: 'Inter', sans-serif;
      font-size: 10px;
      font-weight: 600;
      color: var(--text-light);
      text-transform: uppercase;
    }

    .day-tab.active .day-name {
      color: var(--accent);
    }

    .day-suit {
      font-size: 14px;
      line-height: 1;
      margin-bottom: 2px;
      display: block;
    }

    .day-tab+.day-tab {
      border-left: 1px solid var(--border);
    }

    /* ALL view: day divider */
    .all-day-divider {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 16px 16px 6px;
      margin-top: 4px;
    }

    .all-day-divider:first-child {
      margin-top: 0;
    }

    .all-day-suit {
      font-size: 16px;
      line-height: 1;
    }

    .all-day-label {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.5px;
    }

    /* ── Section Title ── */
    .section-header {
      padding: 20px 16px 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .section-header .section-icon {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: #fff;
      flex-shrink: 0;
    }

    .section-header h2 {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 1px;
      color: var(--text);
      text-transform: uppercase;
    }

    .section-header .event-count {
      font-size: 11px;
      color: var(--text-light);
      font-weight: 400;
      margin-left: auto;
    }

    /* ── Tournament Card ── */
    .card-list {
      padding: 0 12px 16px;
    }

    /* スケジュール最下部: 過去プレイヤーズガイド (PDF) への外部リンク（ピル型） */
    .past-pg-section {
      padding: 4px 16px 28px;
      display: flex;
      justify-content: center;
    }

    .past-pg-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      max-width: 360px;
      padding: 14px 24px;
      background: var(--gold);
      color: var(--primary);
      border-radius: 9999px;
      text-decoration: none;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: 0.2px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      transition: transform 0.1s, opacity 0.15s;
      -webkit-tap-highlight-color: transparent;
    }

    .past-pg-link:active {
      transform: scale(0.97);
      opacity: 0.88;
    }

    .past-pg-arrow {
      font-size: 14px;
      font-weight: 700;
      line-height: 1;
    }

    .tournament-card {
      background: #fff;
      border-radius: 14px;
      margin-bottom: 12px;
      overflow: hidden;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
      border: 1px solid var(--border);
      transition: transform 0.15s;
      position: relative;
    }

    .card-cancelled-overlay {
      position: absolute;
      inset: 0;
      background: rgba(185, 28, 28, 0.90);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
    }

    .card-cancelled-label {
      font-size: 36px;
      font-weight: 900;
      color: #fff;
      letter-spacing: 0.2em;
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    }

    .tournament-card:active {
      transform: scale(0.985);
    }

    .card-top {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
    }

    .card-num {
      font-family: 'Press Start 2P', monospace;
      font-size: 9px;
      color: var(--accent);
      background: var(--accent-light);
      padding: 4px 8px;
      border-radius: 6px;
      white-space: nowrap;
    }

    .card-name {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      flex: 1;
    }

    .card-badges {
      display: flex;
      gap: 6px;
    }

    .card-badge {
      font-size: 9px;
      font-weight: 700;
      padding: 3px 7px;
      border-radius: 4px;
      font-family: 'Inter', sans-serif;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .badge-open {
      background: var(--green-light);
      color: var(--green);
    }

    .badge-closed {
      background: #fef2f2;
      color: #dc2626;
    }

    .badge-ticket {
      background: var(--gold-light);
      color: #92700c;
    }

    .badge-live {
      background: var(--accent);
      color: #fff;
    }

    .badge-cancelled {
      background: #ffedd5;
      color: #7c2d12;
    }

    .card-body {
      padding: 12px 14px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .card-info-item {}

    .card-info-label {
      font-size: 10px;
      color: var(--text-light);
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .card-info-value {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      margin-top: 1px;
    }

    .card-info-sub {
      font-size: 11px;
      font-weight: 500;
      color: var(--text-muted);
      margin-top: 2px;
      letter-spacing: 0;
    }

    /* ── Filter Bar ── */
    .filter-bar {
      background: var(--surface-alt);
      border-bottom: 1px solid var(--border);
      padding: 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .filter-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .filter-label {
      font-family: 'Inter', sans-serif;
      font-size: 9px;
      font-weight: 700;
      color: var(--text-light);
      letter-spacing: 1px;
      text-transform: uppercase;
      flex-shrink: 0;
      width: 36px;
    }

    .filter-chips {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .filter-chip {
      padding: 8px 14px;
      min-height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 20px;
      border: 1.5px solid var(--border);
      background: #fff;
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-secondary);
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
      white-space: nowrap;
    }

    /* GAME chips active */
    .filter-chip.fc-nlh.active {
      background: #dbeafe;
      color: #1d4ed8;
      border-color: #1d4ed8;
    }

    .filter-chip.fc-mix.active {
      background: var(--green-light);
      color: var(--green);
      border-color: var(--green);
    }

    .filter-chip.fc-sate.active {
      background: var(--gold-light);
      color: #92700c;
      border-color: #92700c;
    }

    /* PRICE chips active */
    .filter-chip.fc-price.active {
      background: var(--accent-light);
      color: var(--accent);
      border-color: var(--accent);
    }

    /* ルール確認ボタン */
    .rules-check-bar {
      padding: 10px 16px 4px;
    }

    .rules-check-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      width: 100%;
      padding: 10px 16px;
      background: var(--primary);
      border: none;
      border-radius: 10px;
      color: var(--gold);
      font-size: 13px;
      font-weight: 700;
      font-family: 'Inter', 'Noto Sans JP', sans-serif;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: opacity 0.15s;
    }

    .rules-check-btn::before {
      content: '♠';
      font-size: 14px;
    }

    .rules-check-btn:active {
      opacity: 0.75;
    }

    /* ルールモーダル */
    .rules-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.72);
      z-index: 300;
      align-items: flex-end;
      justify-content: center;
    }

    .rules-modal-overlay.active {
      display: flex;
    }

    .rules-modal-content {
      background: #fff;
      border-radius: 20px 20px 0 0;
      width: 100%;
      max-width: 430px;
      max-height: 88vh;
      overflow-y: auto;
      animation: modalSlideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
      position: relative;
    }

    .rules-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px 12px;
      border-bottom: 1px solid #f1f5f9;
      position: sticky;
      top: 0;
      background: #fff;
      z-index: 1;
    }

    .rules-modal-title {
      font-size: 15px;
      font-weight: 700;
      color: #1e293b;
      margin: 0;
    }

    .rules-modal-close {
      background: none;
      border: none;
      font-size: 18px;
      color: #94a3b8;
      cursor: pointer;
      padding: 4px 8px;
      line-height: 1;
      -webkit-tap-highlight-color: transparent;
    }

    .rules-modal-body {
      padding: 16px 20px 40px;
    }

    .rules-section {
      margin-bottom: 24px;
    }

    .rules-section:last-child {
      margin-bottom: 0;
    }

    .rules-section-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--accent, #e11d48);
      margin: 0 0 8px;
      padding-bottom: 4px;
      border-bottom: 1.5px solid var(--accent-light, #ffe4e6);
    }

    .rules-section p {
      font-size: 13px;
      line-height: 1.7;
      color: #334155;
      margin: 0 0 8px;
    }

    .rules-section p:last-child {
      margin-bottom: 0;
    }

    .rules-ol {
      padding-left: 20px;
      margin: 0;
    }

    .rules-ol li {
      font-size: 13px;
      line-height: 1.7;
      color: #334155;
      margin-bottom: 10px;
    }

    .rules-ol li:last-child {
      margin-bottom: 0;
    }

    .rules-ol a {
      color: var(--accent, #e11d48);
      text-decoration: underline;
    }

    /* フィルター適用中の件数バナー */
    .filter-result-bar {
      padding: 6px 16px;
      background: var(--blue-light);
      font-size: 11px;
      font-weight: 600;
      color: var(--blue);
      font-family: 'Inter', sans-serif;
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .filter-result-bar.visible {
      display: flex;
    }

    .filter-clear-btn {
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      font-weight: 700;
      color: var(--blue);
      background: #fff;
      border: 1px solid var(--blue);
      border-radius: 14px;
      padding: 4px 12px 4px 8px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      min-height: 28px;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      transition: background .12s, color .12s;
    }

    .filter-clear-btn:hover {
      background: var(--blue);
      color: #fff;
    }

    .filter-clear-btn:active {
      transform: scale(.96);
    }

    .filter-clear-btn::before {
      content: '✕';
      font-size: 10px;
      line-height: 1;
    }

    /* GAME タグ */
    .card-game-tag {
      display: inline-block;
      font-size: 9px;
      font-weight: 700;
      font-family: 'Inter', sans-serif;
      letter-spacing: 0.8px;
      padding: 3px 8px;
      border-radius: 4px;
      text-transform: uppercase;
      flex-shrink: 0;
    }

    .game-nlh {
      background: #dbeafe;
      color: #1d4ed8;
    }

    .game-sate {
      background: var(--gold-light);
      color: #92700c;
    }

    .game-mix {
      background: var(--green-light);
      color: var(--green);
    }

    .card-winner {
      margin: 0 14px 12px;
      background: linear-gradient(135deg, var(--primary), var(--blue));
      border-radius: 10px;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .card-winner .trophy {
      font-size: 18px;
    }

    .card-winner .cw-label {
      font-size: 9px;
      color: var(--gold);
      font-family: 'Inter', sans-serif;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .card-winner .cw-name {
      font-size: 14px;
      color: #fff;
      font-weight: 700;
    }

    /* X / Gallery tabs → external links (no in-app pages) */

    /* ── Modal ── */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.72);
      z-index: 200;
      align-items: flex-end;
      justify-content: center;
    }

    .modal-overlay.active {
      display: flex;
    }

    .modal-content {
      background: #fff;
      border-radius: 20px 20px 0 0;
      width: 100%;
      max-width: 430px;
      max-height: 88vh;
      overflow-y: auto;
      animation: modalSlideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
      position: relative;
      touch-action: pan-y;
      will-change: transform;
    }

    .modal-content.is-dragging {
      transition: none !important;
      animation: none !important;
    }

    .modal-content.is-closing {
      transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
      animation: none !important;
    }

    @keyframes modalSlideUp {
      from {
        transform: translateY(100%);
      }

      to {
        transform: translateY(0);
      }
    }

    /* スワイプダウンで閉じるためのハンドル（モーダル上端） */
    .modal-handle {
      display: block;
      position: sticky;
      top: 0;
      width: 100%;
      height: 18px;
      background: var(--primary);
      z-index: 5;
      cursor: grab;
      touch-action: none;
    }

    .modal-handle::before {
      content: '';
      position: absolute;
      top: 7px;
      left: 50%;
      transform: translateX(-50%);
      width: 44px;
      height: 4px;
      border-radius: 2px;
      background: rgba(255, 255, 255, 0.45);
    }

    .modal-handle:active {
      cursor: grabbing;
    }

    /* モーダルヘッダー */
    .modal-header {
      background: var(--primary);
      padding: 20px 48px 18px 16px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      position: relative;
    }

    /* 閉じるボタン（右上） */
    .modal-close-x {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 32px;
      height: 32px;
      background: rgba(255, 255, 255, 0.15);
      border: none;
      border-radius: 50%;
      color: #fff;
      font-size: 18px;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

    .modal-header .mh-num {
      font-family: 'Press Start 2P', monospace;
      font-size: 9px;
      color: var(--accent);
      background: rgba(233, 69, 96, 0.18);
      padding: 5px 8px;
      border-radius: 6px;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .modal-header .mh-info {
      flex: 1;
    }

    .modal-header .mh-name {
      font-size: 18px;
      font-weight: 800;
      color: #fff;
      line-height: 1.3;
    }

    .modal-header .mh-badge {
      margin-top: 8px;
    }

    /* モーダル優勝者セクション */
    .modal-winner {
      background: linear-gradient(135deg, var(--primary) 0%, #1a2a4a 100%);
      padding: 20px 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      border-bottom: 2px solid var(--gold, #f5c842);
    }

    .modal-winner-label {
      font-family: 'Press Start 2P', monospace;
      font-size: 9px;
      color: var(--gold, #f5c842);
      letter-spacing: 2px;
    }

    .modal-winner-photo-wrap {
      width: 100%;
      border-radius: 12px;
      overflow: hidden;
      border: 2px solid var(--gold, #f5c842);
      box-shadow: 0 0 20px rgba(245, 200, 66, 0.35);
      background: #0f3460;
    }

    .modal-winner-photo {
      width: 100%;
      height: auto;
      display: block;
      object-fit: contain;
    }

    .modal-winner-name {
      font-size: 18px;
      font-weight: 800;
      color: #fff;
      letter-spacing: 0.5px;
    }

    /* モーダル本文 */
    .modal-body {
      padding: 0 16px calc(24px + var(--safe-bottom));
    }

    .modal-section {
      padding: 18px 0;
      border-bottom: 1px solid var(--border);
    }

    .modal-section:last-child {
      border-bottom: none;
    }

    .modal-section-title {
      font-family: 'Press Start 2P', monospace;
      font-size: 9px;
      color: var(--accent);
      letter-spacing: 1px;
      margin-bottom: 14px;
      text-transform: uppercase;
    }

    .modal-apply-wrap {
      padding: 16px 0 4px;
      display: flex;
      justify-content: center;
    }

    .modal-apply-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      max-width: 360px;
      padding: 14px 24px;
      background: var(--accent);
      color: #fff;
      border-radius: 9999px;
      text-decoration: none;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: 0.4px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      transition: transform 0.1s, opacity 0.15s;
      -webkit-tap-highlight-color: transparent;
    }

    .modal-apply-btn:active {
      transform: scale(0.97);
      opacity: 0.88;
    }

    .modal-info-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .modal-info-item .mi-label {
      font-size: 10px;
      color: var(--text-light);
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .modal-info-item .mi-value {
      font-size: 18px;
      font-weight: 800;
      color: var(--text);
      margin-top: 3px;
    }

    .modal-info-item .mi-value-sub {
      font-size: 12px;
      font-weight: 500;
      color: var(--text-muted);
      margin-top: 4px;
      letter-spacing: 0;
    }

    /* プレイヤーズガイド: ピンチズーム対応 */
    .pg-zoomer {
      position: relative;
      overflow: hidden;
      border-radius: 10px;
      background: #f1f5f9;
      touch-action: pan-y;
      -webkit-user-select: none;
      user-select: none;
    }

    .pg-zoomer+.pg-zoomer {
      margin-top: 10px;
    }

    .pg-zoomer.is-zoomed {
      touch-action: none;
    }

    .pg-zoomer .pg-img {
      display: block;
      width: 100%;
      height: auto;
      transform-origin: 0 0;
      transform: translate(0, 0) scale(1);
      -webkit-user-drag: none;
      -webkit-touch-callout: none;
      pointer-events: auto;
      will-change: transform;
    }

    /* ズーム可能を示す右下バッジ（ズーム中は自動的に非表示） */
    .pg-zoomer::after {
      content: "🔍 ピンチで拡大";
      position: absolute;
      right: 8px;
      bottom: 8px;
      background: rgba(17, 24, 39, 0.62);
      color: rgba(255, 255, 255, 0.95);
      font-size: 10px;
      font-weight: 600;
      padding: 4px 10px;
      border-radius: 999px;
      pointer-events: none;
      letter-spacing: 0.02em;
      -webkit-backdrop-filter: blur(4px);
      backdrop-filter: blur(4px);
      transition: opacity 0.2s ease;
      z-index: 1;
      line-height: 1.4;
    }

    .pg-zoomer.is-zoomed::after {
      opacity: 0;
    }

    /* 初回のみ表示されるピンチズームの案内トースト */
    .pg-zoom-hint-toast {
      position: fixed;
      left: 50%;
      top: calc(env(safe-area-inset-top, 0px) + 16px);
      transform: translate(-50%, -16px);
      background: rgba(17, 24, 39, 0.92);
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      padding: 10px 16px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
      opacity: 0;
      transition: opacity 0.28s ease, transform 0.28s ease;
      z-index: 500;
      pointer-events: none;
    }

    .pg-zoom-hint-toast.visible {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    /* カードをタップ可能に */
    .tournament-card {
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      transition: transform 0.12s, box-shadow 0.12s;
    }

    .tournament-card:active {
      transform: scale(0.97);
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    /* イベントリスト切替フェード */
    #card-list-wrap {
      transition: opacity 0.16s ease;
      will-change: opacity;
      position: relative;
    }

    #card-list-wrap.fading {
      opacity: 0;
    }

    /* ── Skeleton UI ── */
    @keyframes skeleton-shimmer {
      0% {
        background-position: -200% 0;
      }

      100% {
        background-position: 200% 0;
      }
    }

    .skeleton {
      background: linear-gradient(90deg,
          rgba(0, 0, 0, .06) 0%,
          rgba(0, 0, 0, .12) 50%,
          rgba(0, 0, 0, .06) 100%);
      background-size: 200% 100%;
      animation: skeleton-shimmer 1.4s ease-in-out infinite;
      border-radius: 6px;
      color: transparent !important;
      user-select: none;
      pointer-events: none;
    }

    .skeleton-card {
      background: #fff;
      border-radius: 12px;
      padding: 16px 14px;
      margin-bottom: 8px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
      display: flex;
      gap: 12px;
      align-items: flex-start;
    }

    .skeleton-card .sk-num {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      flex-shrink: 0;
    }

    .skeleton-card .sk-body {
      flex: 1 1 auto;
    }

    .skeleton-card .sk-line {
      height: 14px;
      margin-bottom: 8px;
      border-radius: 4px;
    }

    .skeleton-card .sk-line-w80 {
      width: 80%;
    }

    .skeleton-card .sk-line-w60 {
      width: 60%;
    }

    .skeleton-card .sk-line-w40 {
      width: 40%;
      height: 11px;
    }

    .skeleton-list {
      padding: 4px 0;
    }

    @media (prefers-reduced-motion: reduce) {
      .skeleton {
        animation: none;
      }
    }

    /* 画像ロード前プレースホルダ */
    img.img-loading {
      background: linear-gradient(90deg,
          rgba(21, 51, 100, .08) 0%,
          rgba(21, 51, 100, .16) 50%,
          rgba(21, 51, 100, .08) 100%);
      background-size: 200% 100%;
      animation: skeleton-shimmer 1.4s ease-in-out infinite;
    }

    /* ── Bookmark Star Button ── */
    .card-bookmark-btn {
      background: none;
      border: none;
      padding: 8px;
      min-width: 44px;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
      flex-shrink: 0;
      color: #d1d5db;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      transition: color 0.15s, transform 0.15s;
    }

    .card-bookmark-btn.bookmarked {
      color: var(--gold);
    }

    .card-bookmark-btn:active {
      transform: scale(1.3);
    }

    .card-bookmark-btn.bm-pop {
      animation: bm-pop .38s cubic-bezier(.34, 1.56, .64, 1);
    }

    @keyframes bm-pop {
      0% {
        transform: scale(1);
      }

      30% {
        transform: scale(1.45) rotate(-14deg);
      }

      60% {
        transform: scale(.9) rotate(6deg);
      }

      100% {
        transform: scale(1) rotate(0deg);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .card-bookmark-btn.bm-pop {
        animation: none;
      }
    }

    /* ── Bookmark Tab Badge ── */
    .tab-badge {
      position: absolute;
      top: 4px;
      right: 50%;
      transform: translateX(calc(50% + 8px));
      background: var(--accent);
      color: #fff;
      font-size: 9px;
      font-weight: 700;
      min-width: 16px;
      height: 16px;
      border-radius: 8px;
      padding: 0 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Inter', sans-serif;
      pointer-events: none;
    }

    .tab-icon {
      position: relative;
      display: inline-block;
    }

    /* ── Bookmark Page ── */
    .bm-page-header {
      background: var(--primary);
      padding: 28px 20px 20px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .bm-page-header .bm-icon {
      font-size: 24px;
    }

    .bm-page-header h1 {
      font-family: 'Press Start 2P', monospace;
      font-size: 12px;
      color: #fff;
      letter-spacing: 2px;
    }

    .bm-page-header .bm-count {
      margin-left: auto;
      font-size: 11px;
      color: rgba(255, 255, 255, 0.5);
      font-family: 'Inter', sans-serif;
    }

    .bm-day-group {
      padding: 16px 12px 0;
    }

    .bm-day-label {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
    }

    .bm-day-label .bm-suit {
      width: 26px;
      height: 26px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      color: #fff;
      flex-shrink: 0;
    }

    .bm-day-label span {
      font-family: 'Inter', sans-serif;
      font-size: 12px;
      font-weight: 700;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .bm-empty {
      text-align: center;
      padding: 80px 20px 40px;
      color: var(--text-light);
    }

    .bm-empty .bm-empty-icon {
      font-size: 52px;
      margin-bottom: 14px;
    }

    .bm-empty p {
      font-size: 14px;
      line-height: 1.7;
    }


    /* ── Main Schedule Page ── */
    .ms-page-header {
      background: var(--primary);
      padding: 28px 20px 20px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .ms-page-header .ms-icon {
      font-size: 24px;
    }

    .ms-page-header h1 {
      font-family: 'Press Start 2P', monospace;
      font-size: 12px;
      color: #fff;
      letter-spacing: 2px;
    }

    .ms-page-header .ms-count {
      margin-left: auto;
      font-size: 11px;
      color: rgba(255, 255, 255, 0.5);
      font-family: 'Inter', sans-serif;
    }

    .ms-lead {
      padding: 14px 16px 4px;
      font-size: 12px;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    /* ── カードリスト ── */
    .ms-list-wrap {
      padding: 8px 16px 24px;
    }

    .ms-day-group {
      margin-top: 18px;
    }

    .ms-day-group:first-child {
      margin-top: 0;
    }

    .ms-day-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding-bottom: 8px;
      margin-bottom: 10px;
      border-bottom: 2px solid var(--border);
    }

    .ms-day-date {
      font-family: 'Inter', sans-serif;
      font-size: 18px;
      font-weight: 800;
      color: var(--primary);
      letter-spacing: 0.3px;
    }

    .ms-day-dow {
      margin-left: 8px;
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: 1px;
    }

    .ms-day-count {
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      color: var(--text-secondary);
      letter-spacing: 0.3px;
    }

    .ms-card {
      display: flex;
      align-items: stretch;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
      margin-bottom: 8px;
      cursor: pointer;
      overflow: hidden;
      transition: transform 0.1s ease, box-shadow 0.12s ease, background-color 0.12s ease;
      -webkit-tap-highlight-color: transparent;
    }

    .ms-card:last-child {
      margin-bottom: 0;
    }

    .ms-card:hover {
      background-color: rgba(20, 50, 100, 0.035);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }

    .ms-card:active {
      transform: scale(0.985);
      background-color: rgba(20, 50, 100, 0.07);
    }

    .ms-card-time {
      flex: 0 0 auto;
      width: 68px;
      padding: 12px 8px 12px 14px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
    }

    .ms-time-main {
      font-family: 'Inter', sans-serif;
      font-size: 16px;
      font-weight: 800;
      color: var(--text);
      line-height: 1.1;
    }

    .ms-time-main.is-empty {
      color: var(--text-secondary);
      opacity: 0.5;
    }

    .ms-time-label {
      font-family: 'Inter', sans-serif;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 1.5px;
      color: var(--text-secondary);
      margin-top: 4px;
    }

    .ms-card-body {
      flex: 1 1 auto;
      min-width: 0;
      padding: 12px 14px;
      border-left: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .ms-card-venue-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.35;
      word-break: normal;
      overflow-wrap: break-word;
    }

    .ms-card-station {
      margin-top: 4px;
      font-size: 11px;
      color: var(--text-secondary);
      line-height: 1.3;
    }

    /* ── 会場詳細モーダル（中央表示） ── */
    .ms-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.72);
      z-index: 250;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .ms-modal-overlay.active {
      display: flex;
    }

    .ms-modal-card {
      background: #fff;
      border-radius: 20px;
      width: 100%;
      max-width: 360px;
      max-height: 88vh;
      overflow-y: auto;
      position: relative;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
      animation: msModalPop 0.22s cubic-bezier(0.32, 0.72, 0, 1);
    }

    @keyframes msModalPop {
      from {
        transform: scale(0.92);
        opacity: 0;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    .ms-modal-header {
      background: var(--primary);
      color: #fff;
      padding: 18px 52px 16px 20px;
      position: relative;
      border-radius: 20px 20px 0 0;
    }

    .ms-modal-venue {
      font-size: 16px;
      font-weight: 700;
      line-height: 1.35;
      word-break: break-word;
    }

    .ms-modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 32px;
      height: 32px;
      border-radius: 16px;
      border: none;
      background: rgba(255, 255, 255, 0.18);
      color: #fff;
      font-size: 15px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      line-height: 1;
    }

    .ms-modal-close:hover {
      background: rgba(255, 255, 255, 0.28);
    }

    .ms-modal-body {
      padding: 18px 20px 22px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* 日程・Start・Close のヒーローブロック */
    .ms-modal-when {
      display: flex;
      align-items: stretch;
      gap: 10px;
      background: #f6f6fb;
      border-radius: 14px;
      padding: 10px;
    }

    .ms-modal-date-chip {
      flex: 0 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: var(--primary);
      color: #fff;
      border-radius: 10px;
      padding: 8px 14px;
      min-width: 64px;
    }

    .ms-modal-date-md {
      font-family: 'Inter', sans-serif;
      font-size: 22px;
      font-weight: 800;
      line-height: 1;
      letter-spacing: 0.5px;
    }

    .ms-modal-date-dow {
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-top: 5px;
      opacity: 0.85;
    }

    .ms-modal-time-cells {
      flex: 1 1 auto;
      display: flex;
      align-items: stretch;
      background: #fff;
      border-radius: 10px;
      border: 1px solid rgba(26, 26, 46, 0.06);
      min-width: 0;
    }

    .ms-modal-time-cell {
      flex: 1 1 50%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 8px 6px;
      min-width: 0;
    }

    .ms-modal-time-cell + .ms-modal-time-cell {
      border-left: 1px solid rgba(26, 26, 46, 0.06);
    }

    .ms-modal-time-label {
      font-family: 'Inter', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1px;
      color: var(--text-secondary);
      text-transform: uppercase;
    }

    .ms-modal-time-value {
      font-family: 'Inter', sans-serif;
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
      margin-top: 2px;
      line-height: 1.2;
    }

    .ms-modal-time-value.is-placeholder {
      color: var(--text-secondary);
      opacity: 0.6;
      font-size: 13px;
      font-weight: 600;
    }

    /* アイコン付きの行（住所・X アカウント） */
    .ms-modal-row {
      display: flex;
      gap: 12px;
      align-items: flex-start;
    }

    .ms-modal-row-icon {
      flex: 0 0 auto;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--accent-light);
      color: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 1px;
    }

    .ms-modal-row-content {
      flex: 1 1 auto;
      min-width: 0;
      padding-top: 4px;
    }

    .ms-modal-row-text {
      font-size: 14px;
      color: var(--text);
      line-height: 1.55;
      word-break: break-word;
    }

    .ms-modal-row-text.is-placeholder {
      color: var(--text-secondary);
      opacity: 0.6;
    }

    /* 経路ボタン（行内に配置） */
    .ms-modal-route-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 10px;
      padding: 8px 14px;
      border-radius: 999px;
      border: none;
      background: var(--accent);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.3px;
      cursor: pointer;
      white-space: nowrap;
      text-decoration: none;
      transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
      box-shadow: 0 2px 6px rgba(233, 69, 96, 0.28);
    }

    .ms-modal-route-btn:hover {
      opacity: 0.92;
      box-shadow: 0 3px 10px rgba(233, 69, 96, 0.38);
    }

    .ms-modal-route-btn:active {
      transform: translateY(1px);
    }

    /* X アカウントのリンク表示 */
    .ms-modal-x-link {
      display: inline-block;
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      color: var(--accent);
      text-decoration: none;
      font-weight: 600;
      border-bottom: 1px solid rgba(233, 69, 96, 0.35);
      padding-bottom: 1px;
      transition: opacity 0.12s ease, border-color 0.12s ease;
    }

    .ms-modal-x-link:hover {
      opacity: 0.85;
      border-bottom-color: var(--accent);
    }

    .ms-modal-x-link:active {
      opacity: 0.7;
    }

    .ms-modal-x-link.is-placeholder {
      color: var(--text-secondary);
      opacity: 0.6;
      border-bottom-color: transparent;
    }

    /* 狭幅端末での微調整 */
    @media (max-width: 360px) {
      .ms-list-wrap {
        padding: 8px 12px 24px;
      }

      .ms-day-date {
        font-size: 16px;
      }

      .ms-card-time {
        width: 60px;
        padding: 10px 6px 10px 12px;
      }

      .ms-time-main {
        font-size: 15px;
      }

      .ms-card-body {
        padding: 10px 12px;
      }

      .ms-card-venue-name {
        font-size: 12.5px;
      }
    }

    /* PC（サイドバー表示時）の調整 */
    @media (min-width: 960px) {
      .ms-lead {
        font-size: 13px;
      }
    }


    /* ── Lucky Hand Section ── */
    .lucky-inner-card {
      background: #fff;
      border-radius: 14px;
      padding: 28px 16px 24px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .lucky-card-area {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      width: 100%;
    }

    .lucky-cards-row {
      display: flex;
      gap: 16px;
      justify-content: center;
    }

    .playing-card {
      width: 80px;
      height: 116px;
      border-radius: 8px;
      perspective: 700px;
      cursor: pointer;
      filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45));
    }

    .playing-card-inner {
      width: 100%;
      height: 100%;
      position: relative;
      transform-style: preserve-3d;
      transition: transform .65s cubic-bezier(.4, 0, .2, 1);
    }

    .playing-card.flipped .playing-card-inner {
      transform: rotateY(180deg);
    }

    .playing-card-front,
    .playing-card-back {
      position: absolute;
      inset: 0;
      border-radius: 8px;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    /* ── カード裏面（クラシックバイシクル風） ── */
    .playing-card-back {
      background: #1a56a0;
      overflow: hidden;
    }

    .playing-card-back::before {
      content: '';
      position: absolute;
      inset: 5px;
      border: 2px solid rgba(255, 255, 255, .55);
      border-radius: 4px;
    }

    .playing-card-back::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0, rgba(255, 255, 255, .07) 1px, transparent 0, transparent 50%),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0, rgba(255, 255, 255, .07) 1px, transparent 0, transparent 50%);
      background-size: 8px 8px;
    }

    /* ── カード表面（クラシックスタンダード） ── */
    .playing-card-front {
      background: #fff;
      transform: rotateY(180deg);
      border: 1px solid #bbb;
      box-sizing: border-box;
      overflow: hidden;
    }

    .card-corner {
      position: absolute;
      display: flex;
      flex-direction: column;
      align-items: center;
      line-height: 1;
      gap: 0px;
      padding: 4px;
    }

    .card-corner.top {
      top: 0;
      left: 0;
    }

    .card-corner.bottom {
      bottom: 0;
      right: 0;
      transform: rotate(180deg);
    }

    .card-rank {
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 18px;
      font-weight: 700;
      line-height: 1;
      letter-spacing: -1px;
    }

    .card-suit-sm {
      font-size: 12px;
      line-height: 1.1;
    }

    .card-suit-center {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 40px;
      line-height: 1;
    }

    .card-red {
      color: #c8102e;
    }

    .card-black {
      color: #000;
    }

    .lucky-draw-btn {
      background: var(--gold);
      color: var(--primary);
      border: none;
      border-radius: 24px;
      padding: 12px 32px;
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: .5px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .1s, opacity .1s;
    }

    .lucky-draw-btn:active {
      transform: scale(.95);
      opacity: .85;
    }

    .lucky-btn-row {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      width: 100%;
    }

    .lucky-share-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: #000;
      color: #fff;
      border: none;
      border-radius: 24px;
      padding: 10px 22px;
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .3px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .1s, opacity .15s;
      box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    }

    .lucky-share-btn img {
      width: 14px;
      height: 14px;
      object-fit: contain;
      display: block;
      filter: invert(1);
    }

    .lucky-share-btn:hover {
      opacity: .85;
    }

    .lucky-share-btn:active {
      transform: scale(.95);
      opacity: .7;
    }

    .lucky-share-btn[hidden] {
      display: none;
    }

    .lucky-result {
      text-align: center;
      min-height: 36px;
      transition: opacity .3s;
    }

    .lucky-result-msg {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* ── Interview Section ── */
    .interview-wrap {
      position: relative;
      margin: 0 -8px;
    }

    /* 右側のフェード：まだ続くことを暗示 */
    .interview-wrap::after {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 14px;
      width: 40px;
      background: linear-gradient(90deg, rgba(245, 245, 240, 0) 0%, rgba(245, 245, 240, .95) 100%);
      pointer-events: none;
      opacity: 1;
      transition: opacity .2s ease;
    }

    .interview-wrap.at-end::after {
      opacity: 0;
    }

    /* スクロール進捗バー */
    .interview-progress {
      position: relative;
      height: 3px;
      background: rgba(21, 51, 100, .08);
      border-radius: 2px;
      margin: 2px 14px 0;
      overflow: hidden;
    }

    .interview-progress-fill {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 30%;
      background: linear-gradient(90deg, var(--blue), var(--gold));
      border-radius: 2px;
      transition: left .08s linear, width .08s linear;
    }

    .interview-scroll {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      padding: 4px 8px 12px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .interview-scroll::-webkit-scrollbar {
      display: none;
    }

    .interview-card {
      flex: 0 0 auto;
      width: 200px;
      background: #fff;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
      text-decoration: none;
      color: inherit;
      scroll-snap-align: start;
      display: flex;
      flex-direction: column;
      transition: transform .15s ease, box-shadow .15s ease;
      position: relative;
    }

    .interview-card:active {
      transform: scale(.97);
    }

    .interview-card-thumb {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 10;
      background: #eee center / cover no-repeat;
      overflow: hidden;
    }

    .interview-card-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .interview-card-num {
      position: absolute;
      top: 8px;
      left: 8px;
      background: #e94560;
      color: #fff;
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      font-weight: 900;
      padding: 3px 8px;
      border-radius: 999px;
      letter-spacing: .05em;
      box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    }

    .interview-card-body {
      padding: 10px 12px 12px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex: 1;
    }

    .interview-card-name {
      font-size: 14px;
      font-weight: 800;
      color: #111;
      line-height: 1.3;
    }

    /* 優勝者名は見出し直下に表示（下部の🏆行は廃止） */
    .interview-card-winner {
      font-size: 12px;
      font-weight: 600;
      color: #4f6357;
      margin-top: 2px;
    }

    .interview-card-arrow {
      position: absolute;
      right: 8px;
      bottom: 8px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #0e5a37;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      line-height: 1;
      font-weight: 700;
    }

    /* ── Freeze interview card ── */
    .interview-card-freeze {
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

    .interview-card-thumb-freeze {
      background: #0a1929;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .interview-card-thumb-freeze img {
      width: 60%;
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 0 12px rgba(80, 160, 255, 0.4));
    }

    /* ── Home Background Overlay ── */
    .home-bg-overlay {
      display: none;
    }

    /* ── Section Block（共通：色付き背景ブロック） ── */
    .section-block {
      background: #0e5a37;
      border-radius: 20px;
      margin: 0 0 24px;
      padding: 40px 0 36px;
      position: relative;
      overflow: hidden;
    }

    .section-block-label {
      font-family: 'Inter', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .15em;
      color: rgba(255, 255, 255, .5);
      text-transform: uppercase;
      margin: 0 0 6px;
      padding: 0 24px;
    }

    .section-block-title {
      font-family: 'Inter', sans-serif;
      font-size: 22px;
      font-weight: 900;
      color: #fff;
      margin: 0 0 24px;
      letter-spacing: -.3px;
      padding: 0 24px;
    }

    .section-block-inner {
      padding: 0 16px;
    }

    /* ── Section rhythm（スート別アクセント） ── */
    .section-block {
      --suit-color: #f5c800;
      --suit-glyph: '♦';
    }

    .section-block.interview-section {
      --suit-color: #ec008c;
      --suit-glyph: '♠';
    }

    .section-block.interview-section::before {
      display: none;
    }

    .section-block.floormap-section {
      --suit-color: #1bb0e6;
      --suit-glyph: '♦';
    }

    .floormap-img {
      width: 100%;
      border-radius: 12px;
      display: block;
    }

    .section-block.venue-section {
      --suit-color: #ff7a00;
      --suit-glyph: '♥';
    }

    .section-block.follow-section {
      --suit-color: #ffe000;
      --suit-glyph: '♦';
    }

    .section-block.lucky-section {
      --suit-color: #16a34a;
      --suit-glyph: '♣';
    }

    .section-block.games-section {
      --suit-color: #16a34a;
      --suit-glyph: '♣';
    }

    /* ── Countdown Section (Neon) ── */
    .countdown-section {
      --neon-gold: #ffd84d;
      margin: 16px 12px 8px;
      padding: 24px 14px 22px;
      border-radius: 18px;
      background: #0e5a37;
      /* ヘッダーと同色 */
      border: 1px solid rgba(255, 216, 77, .4);
      box-shadow:
        0 8px 28px rgba(0, 0, 0, .45),
        0 0 24px rgba(255, 216, 77, .12) inset;
      position: relative;
      overflow: hidden;
      text-align: center;
    }

    /* 走査線 */
    .countdown-section::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: repeating-linear-gradient(0deg,
          rgba(255, 255, 255, 0) 0,
          rgba(255, 255, 255, 0) 2px,
          rgba(255, 216, 77, .035) 2px,
          rgba(255, 216, 77, .035) 3px);
      pointer-events: none;
    }

    /* グロー輪郭 */
    .countdown-section::after {
      content: '';
      position: absolute;
      inset: -1px;
      border-radius: 18px;
      padding: 1px;
      background: linear-gradient(135deg, rgba(255, 216, 77, .6), rgba(255, 216, 77, .15), rgba(255, 216, 77, .6));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
      opacity: .7;
    }

    .countdown-label {
      position: relative;
      font-family: 'Inter', sans-serif;
      font-size: 10px;
      letter-spacing: 5px;
      color: var(--neon-gold);
      font-weight: 800;
      margin-bottom: 6px;
      text-shadow:
        0 0 6px rgba(255, 216, 77, .85),
        0 0 14px rgba(255, 216, 77, .6),
        0 0 28px rgba(255, 216, 77, .3);
      animation: neon-flicker 4.2s ease-in-out infinite;
    }

    .countdown-title {
      position: relative;
      font-family: 'Noto Sans JP', sans-serif;
      font-size: 13px;
      color: var(--neon-gold);
      font-weight: 600;
      margin-bottom: 16px;
      letter-spacing: 2px;
      text-shadow: 0 0 8px rgba(255, 216, 77, .4);
    }

    .countdown-grid {
      position: relative;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      margin: 0 auto;
      max-width: 340px;
      width: 100%;
      box-sizing: border-box;
    }

    .countdown-cell {
      position: relative;
      background: rgba(10, 22, 52, .85);
      /* ヘッダー色を少し暗めにして数字を浮かせる */
      border: 1px solid rgba(255, 216, 77, .4);
      border-radius: 10px;
      padding: 12px 4px 9px;
      box-shadow:
        0 0 12px rgba(255, 216, 77, .18),
        0 0 0 1px rgba(255, 216, 77, .08) inset;
    }

    .countdown-cell::after {
      content: '';
      position: absolute;
      top: 0;
      left: 8px;
      right: 8px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--neon-gold), transparent);
      opacity: .6;
    }

    .countdown-num {
      font-family: 'Inter', sans-serif;
      font-size: 30px;
      font-weight: 800;
      line-height: 1;
      color: var(--neon-gold);
      letter-spacing: -1px;
      font-variant-numeric: tabular-nums;
      text-shadow:
        0 0 6px rgba(255, 216, 77, .9),
        0 0 14px rgba(255, 216, 77, .6),
        0 0 26px rgba(255, 216, 77, .35);
    }

    .countdown-unit {
      font-family: 'Inter', sans-serif;
      font-size: 9px;
      letter-spacing: 2.5px;
      color: rgba(255, 216, 77, .75);
      margin-top: 8px;
      font-weight: 700;
      text-shadow: 0 0 6px rgba(255, 216, 77, .35);
    }

    .countdown-date {
      position: relative;
      margin-top: 16px;
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      letter-spacing: 3px;
      color: var(--neon-gold);
      text-shadow: 0 0 8px rgba(255, 216, 77, .4);
    }

    .countdown-date::before,
    .countdown-date::after {
      content: '◆';
      color: var(--neon-gold);
      margin: 0 10px;
      font-size: 8px;
      vertical-align: middle;
      text-shadow: 0 0 8px var(--neon-gold);
    }

    /* LIVE 状態 — より強いゴールドの脈動 */
    .countdown-section.countdown-live .countdown-label {
      animation: neon-pulse 1.1s ease-in-out infinite;
    }

    /* 終了状態 — ミュート */
    .countdown-section.countdown-ended .countdown-num {
      color: rgba(255, 216, 77, .35);
      text-shadow: none;
    }

    .countdown-section.countdown-ended .countdown-label {
      animation: none;
      color: rgba(255, 216, 77, .55);
      text-shadow: 0 0 8px rgba(255, 216, 77, .25);
    }

    @keyframes neon-flicker {

      0%,
      92%,
      100% {
        opacity: 1;
      }

      93% {
        opacity: .55;
      }

      94% {
        opacity: 1;
      }

      95% {
        opacity: .7;
      }

      96% {
        opacity: 1;
      }
    }

    @keyframes neon-pulse {

      0%,
      100% {
        opacity: 1;
        filter: brightness(1);
      }

      50% {
        opacity: .85;
        filter: brightness(1.25);
      }
    }

    @media (prefers-reduced-motion: reduce) {

      .countdown-label,
      .countdown-section.countdown-live .countdown-label {
        animation: none;
      }
    }

    @media (min-width: 768px) {
      .countdown-section {
        margin: 20px auto 12px;
        max-width: 520px;
      }

      .countdown-num {
        font-size: 36px;
      }
    }

    /* 上部のスート色ストライプ */
    .section-block::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, transparent 0%, var(--suit-color) 25%, var(--suit-color) 75%, transparent 100%);
      opacity: .9;
      pointer-events: none;
    }

    /* 右上にうっすらスートグリフを配置してリズム感を出す */
    .section-block::after {
      content: var(--suit-glyph);
      position: absolute;
      top: 18px;
      right: 20px;
      font-size: 64px;
      line-height: 1;
      color: var(--suit-color);
      opacity: .08;
      pointer-events: none;
      font-family: 'Segoe UI Symbol', 'Apple Symbols', sans-serif;
    }

    /* ラベルをスート色で彩り、先頭にスートマーク */
    .section-block-label {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--suit-color);
    }

    .section-block-label::before {
      content: var(--suit-glyph);
      font-size: 11px;
      line-height: 1;
    }

    /* セクション同士の間隔を少し広げて、各ブロックを独立した存在に */
    .section-block+.section-block {
      margin-top: 8px;
    }

    /* ============================================ */
    /* 色反転：白 → 紺 → 白 → 紺 の交互リズム        */
    /*   インタビュー : 白                            */
    /*   フロアマップ : 紺                            */
    /*   アクセス     : 白                            */
    /*   フォロー     : 紺                            */
    /*   ゲーム       : 白                            */
    /*   ラッキー     : 紺                            */
    /* ============================================ */
    .section-block.interview-section,
    .section-block.venue-section,
    .section-block.games-section {
      background: #f5f5f0;
      color: #111;
      box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
    }

    .section-block.interview-section .section-block-title,
    .section-block.venue-section .section-block-title,
    .section-block.games-section .section-block-title {
      color: #0a3d26;
    }

    .section-block.interview-section::after,
    .section-block.venue-section::after,
    .section-block.games-section::after {
      opacity: .14;
    }

    /* インタビュー：白背景上で白カードが埋もれないよう、輪郭を強化 */
    .section-block.interview-section .interview-card {
      box-shadow: 0 4px 14px rgba(21, 51, 100, .18);
      border: 1px solid rgba(21, 51, 100, .08);
    }

    /* フォロー：アイコンのみのシンプル構成なので反転処理は不要 */

    /* ── Games Section（アーケード風 START GAME） ── */
    .games-cta-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
      padding: 16px 16px 12px;
    }

    .games-cta-lead {
      margin: 0;
      font-size: 12px;
      line-height: 1.6;
      color: rgba(255, 255, 255, .55);
      text-align: center;
      letter-spacing: .2px;
    }

    .games-cta-btn {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      width: 100%;
      max-width: 340px;
      min-height: 96px;
      background: var(--primary);
      color: var(--gold);
      border: 2px solid var(--gold);
      border-radius: 10px;
      padding: 14px 22px;
      font-family: 'Press Start 2P', 'Courier New', monospace;
      line-height: 1;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      box-shadow:
        inset 0 0 0 2px var(--primary),
        inset 0 0 0 4px var(--gold),
        0 0 0 1px rgba(245, 200, 0, .35),
        0 0 22px rgba(245, 200, 0, .55),
        0 0 56px rgba(245, 200, 0, .3);
      animation: gamesCtaGlow 2.6s ease-in-out infinite;
      transition: transform .12s ease;
      text-transform: uppercase;
    }

    .games-cta-btn:active {
      transform: translateY(2px) scale(.985);
      animation-play-state: paused;
    }

    .games-cta-label {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      color: var(--gold);
      letter-spacing: 3px;
      line-height: 1;
      text-shadow: 0 0 6px rgba(245, 200, 0, .4);
      flex: 1;
    }

    .games-cta-line {
      display: block;
      font-size: 20px;
      letter-spacing: 3px;
      line-height: 1;
    }

    .games-cta-arrow {
      font-size: 22px;
      color: #d7ec5e;
      line-height: 1;
      filter: drop-shadow(0 0 5px rgba(215, 236, 94, .65));
      flex-shrink: 0;
    }

    @keyframes gamesCtaGlow {

      0%,
      100% {
        box-shadow:
          inset 0 0 0 2px var(--primary),
          inset 0 0 0 4px var(--gold),
          0 0 0 1px rgba(245, 200, 0, .35),
          0 0 22px rgba(245, 200, 0, .5),
          0 0 56px rgba(245, 200, 0, .25);
      }

      50% {
        box-shadow:
          inset 0 0 0 2px var(--primary),
          inset 0 0 0 4px var(--gold),
          0 0 0 1px rgba(245, 200, 0, .55),
          0 0 34px rgba(245, 200, 0, .85),
          0 0 72px rgba(245, 200, 0, .45);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .games-cta-btn {
        animation: none;
      }
    }

    /* ── SPADIE GAMES ページ ── */
    .games-root {
      background: var(--primary);
      color: #fff;
      min-height: calc(100vh - var(--tab-height) - var(--safe-bottom));
      /* body が --surface-alt（白系）なので、ゲームページの見た目をネイビーに統一 */
      /* 万一、子要素がビューポートを超えても横スクロールさせないための保険 */
      overflow-x: hidden;
      max-width: 100%;
    }

    .games-page-header {
      background: var(--primary);
      padding: 20px 16px 16px;
      /* 左（戻る）／中（タイトル）／右（サウンドトグル）を 3 カラム grid で配置し、
         タイトルが常に画面中央に来るようにする（flex + margin:auto だと
         左右アイテムの幅差でタイトルがズレるため） */
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 10px;
      position: relative;
    }

    /* 戻るボタンは左寄せ、サウンドトグルは右寄せ */
    .games-page-header > .games-back-btn { justify-self: start; }
    .games-page-header > .sg-sound-toggle { justify-self: end; }

    .games-back-btn {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, .25);
      color: #fff;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      letter-spacing: .3px;
    }

    .games-back-btn:active {
      transform: scale(.96);
      opacity: .85;
    }

    .games-page-title {
      font-family: 'Press Start 2P', monospace;
      font-size: 12px;
      color: #fff;
      letter-spacing: 2px;
      margin: 0;
      justify-self: center;
      text-align: center;
      white-space: nowrap;
    }

    .games-page-body {
      padding: 24px 16px 80px;
      min-height: 60vh;
      /* スマホで子要素が画面幅を超えないように保険をかける */
      max-width: 100%;
      overflow-x: hidden;
      box-sizing: border-box;
    }

    /* ────────────────────────────────────────────────
       ゲーム詳細ページ（colormatch / perfectstop /
       tapbattle / luckyclover / emoheart）用のコンパクト化。
       SPADIE のヘッダーと下タブバーは表示したまま、
       ゲーム要素を縦方向に圧縮して、画面内に収める。
       ──────────────────────────────────────────────── */

    /* ゲーム詳細ページの games-page-header は詰める（タイトル帯は短く） */
    body.is-game-detail .games-page-header {
      padding: 10px 16px 6px;
    }

    body.is-game-detail .games-page-body {
      /* 上下の余白を削って、ゲームを縦方向に詰める */
      padding: 8px 16px 12px;
      min-height: 0;
    }

    /* 各ゲーム共通：縦方向を詰める（gap と上下 padding を圧縮） */
    body.is-game-detail .ps-start,
    body.is-game-detail .ps-play,
    body.is-game-detail .ps-result,
    body.is-game-detail .tb-start,
    body.is-game-detail .tb-play,
    body.is-game-detail .tb-result,
    body.is-game-detail .lc-start,
    body.is-game-detail .lc-play,
    body.is-game-detail .lc-result,
    body.is-game-detail .eh-start,
    body.is-game-detail .eh-play,
    body.is-game-detail .eh-result,
    body.is-game-detail .gt-start,
    body.is-game-detail .gt-play,
    body.is-game-detail .gt-result,
    body.is-game-detail .sc-select,
    body.is-game-detail .sc-battle,
    body.is-game-detail .sc-clear {
      gap: 10px;
      padding: 8px 12px 6px;
    }

    /* タイトルを少しコンパクトに */
    body.is-game-detail .ps-title,
    body.is-game-detail .tb-title,
    body.is-game-detail .lc-title,
    body.is-game-detail .eh-title {
      font-size: 14px;
      line-height: 1.4;
    }

    /* リードテキスト（説明）を詰める */
    body.is-game-detail .ps-lead,
    body.is-game-detail .tb-lead,
    body.is-game-detail .lc-lead,
    body.is-game-detail .eh-lead {
      font-size: 11px;
      line-height: 1.6;
    }

    /* BEST 表記もコンパクトに */
    body.is-game-detail .ps-best,
    body.is-game-detail .tb-best,
    body.is-game-detail .lc-best,
    body.is-game-detail .eh-best {
      font-size: 9px;
    }

    /* START ボタンの余白を圧縮 */
    body.is-game-detail .ps-start-btn,
    body.is-game-detail .tb-start-btn,
    body.is-game-detail .lc-start-btn,
    body.is-game-detail .eh-start-btn {
      padding: 12px 22px;
      font-size: 13px;
    }

    /* PerfectStop: ステージのアスペクト比を低くして高さを節約 */
    body.is-game-detail .ps-stage {
      aspect-ratio: 1.8 / 1;
      max-width: 320px;
      gap: 10px;
      padding: 12px;
    }
    body.is-game-detail .ps-char {
      width: 64px;
      height: 64px;
    }
    body.is-game-detail .ps-time {
      font-size: 22px;
    }
    body.is-game-detail .ps-stop-btn {
      padding: 14px 22px;
      min-width: 180px;
      font-size: 18px;
    }
    body.is-game-detail .ps-mode-btn {
      padding: 10px 8px;
    }
    body.is-game-detail .ps-mode-btn-title { font-size: 12px; }
    body.is-game-detail .ps-mode-btn-sub   { font-size: 10px; }

    /* TapBattle: タップエリアを小さく */
    body.is-game-detail .tb-tap-area {
      max-width: 240px;
      border-radius: 16px;
      padding: 10px;
    }
    body.is-game-detail .tb-char {
      width: 80px;
      height: 80px;
    }
    body.is-game-detail .tb-tap-hint { font-size: 14px; }

    /* LuckyClover: パッドをコンパクトに */
    body.is-game-detail .lc-pad {
      max-width: 260px;
      gap: 10px;
    }

    /* EmoHeart: ステージをコンパクトに */
    body.is-game-detail .eh-stage {
      max-width: 320px;
    }

    /* ── さらに iPhone SE 系（高さ 700px 以下）では追い込み ── */
    @media (max-height: 700px) {
      body.is-game-detail .games-page-header { padding: 6px 16px 4px; }
      body.is-game-detail .games-page-body   { padding: 4px 16px 8px; }
      body.is-game-detail .ps-start,
      body.is-game-detail .ps-play,
      body.is-game-detail .ps-result,
      body.is-game-detail .tb-start,
      body.is-game-detail .tb-play,
      body.is-game-detail .tb-result,
      body.is-game-detail .lc-start,
      body.is-game-detail .lc-play,
      body.is-game-detail .lc-result,
      body.is-game-detail .eh-start,
      body.is-game-detail .eh-play,
      body.is-game-detail .eh-result,
      body.is-game-detail .sc-select,
      body.is-game-detail .sc-battle,
      body.is-game-detail .sc-clear {
        gap: 8px;
        padding: 4px 12px 4px;
      }
      body.is-game-detail .ps-stage { aspect-ratio: 2 / 1; max-width: 300px; }
      body.is-game-detail .ps-char { width: 54px; height: 54px; }
      body.is-game-detail .ps-time { font-size: 20px; }
      body.is-game-detail .ps-stop-btn { padding: 12px 20px; min-width: 160px; font-size: 16px; }
      body.is-game-detail .tb-tap-area { max-width: 200px; }
      body.is-game-detail .tb-char { width: 68px; height: 68px; }
      body.is-game-detail .lc-pad { max-width: 220px; gap: 8px; }
      body.is-game-detail .eh-stage { max-width: 280px; }

      /* リード（説明）はさらに短く */
      body.is-game-detail .ps-lead,
      body.is-game-detail .tb-lead,
      body.is-game-detail .lc-lead,
      body.is-game-detail .eh-lead { font-size: 10px; line-height: 1.5; }
    }

    /* ── SPADIE GAMES ゲーム一覧 ── */
    .games-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-width: 480px;
      margin: 0 auto;
    }

    .games-list-card {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px;
      background: rgba(255, 255, 255, .04);
      border: 1px solid rgba(245, 200, 0, .25);
      border-radius: 12px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease, background .15s, border-color .15s, box-shadow .2s;
      text-align: left;
      width: 100%;
      color: inherit;
      font: inherit;
    }

    .games-list-card:active {
      transform: scale(.985);
      background: rgba(255, 255, 255, .08);
      border-color: rgba(245, 200, 0, .55);
      box-shadow: 0 0 16px rgba(245, 200, 0, .25);
    }

    .games-list-card-thumbs {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 3px;
      width: 68px;
      height: 68px;
      flex-shrink: 0;
      background: var(--primary);
      border-radius: 8px;
      padding: 4px;
      border: 1px solid rgba(255, 255, 255, .1);
    }

    .games-list-card-thumbs img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
    }

    /* 1 枚アイコン用バリアント — 大きく中央配置 */
    .games-list-card-thumbs.is-single {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6px;
    }

    .games-list-card-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-width: 0;
    }

    .games-list-card-title {
      /* Latin（SPADIE 等）と日本語の両方を同じフォントで描画して大きさを揃える
         （pixel font の Press Start 2P は日本語が描けず、フォールバックで不揃いになるため使わない） */
      font-family: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', system-ui, sans-serif;
      font-size: 14px;
      font-weight: 700;
      color: var(--gold);
      letter-spacing: .8px;
      line-height: 1.4;
    }

    .games-list-card-desc {
      font-size: 12px;
      color: rgba(255, 255, 255, .6);
      line-height: 1.5;
    }

    .games-list-card-arrow {
      font-size: 26px;
      color: var(--gold);
      font-weight: 700;
      flex-shrink: 0;
      line-height: 1;
      opacity: .85;
    }


    /* ── SPADIE Champions（sc = spadie champions） ── */
    .sc-select,
    .sc-battle,
    .sc-clear {
      width: 100%;
      max-width: 480px;
      margin: 0 auto;
      box-sizing: border-box;
    }

    .sc-select {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      padding: 18px 0 22px;
      text-align: center;
    }

    .sc-logo-lockup {
      width: 100%;
      border: 1px solid rgba(245, 200, 0, .28);
      border-radius: 12px;
      padding: 18px 14px 16px;
      background:
        radial-gradient(circle at 20% 10%, rgba(233, 69, 96, .28), transparent 32%),
        radial-gradient(circle at 84% 18%, rgba(22, 163, 74, .22), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
      box-shadow: 0 0 24px rgba(245, 200, 0, .12);
    }

    .sc-kicker,
    .sc-best,
    .sc-battle-top,
    .sc-message,
    .sc-clear-stamp,
    .sc-clear-meta {
      font-family: 'Press Start 2P', monospace;
    }

    .sc-kicker {
      color: rgba(255, 255, 255, .72);
      font-size: 9px;
      letter-spacing: 1.5px;
      margin-bottom: 10px;
    }

    .sc-title {
      margin: 0;
      font-family: 'Press Start 2P', monospace;
      color: var(--gold);
      font-size: 22px;
      line-height: 1.35;
      letter-spacing: 2px;
      text-shadow: 0 0 16px rgba(245, 200, 0, .55);
    }

    .sc-best {
      color: rgba(255, 255, 255, .72);
      font-size: 10px;
      letter-spacing: 1.2px;
    }

    .sc-best span {
      color: var(--gold);
      font-size: 15px;
      margin: 0 4px;
    }

    .sc-rule-card {
      width: 100%;
      display: grid;
      gap: 12px;
      padding: 14px;
      border-radius: 12px;
      background:
        linear-gradient(180deg, rgba(245, 200, 0, .09), rgba(255, 255, 255, .04)),
        rgba(255, 255, 255, .05);
      border: 1px solid rgba(245, 200, 0, .34);
      text-align: left;
      box-shadow: inset 0 0 18px rgba(245, 200, 0, .05), 0 0 18px rgba(245, 200, 0, .08);
    }

    .sc-rule-title,
    .sc-rule-caption {
      font-family: 'Press Start 2P', monospace;
      color: var(--gold);
      font-size: 9px;
      letter-spacing: 1.5px;
    }

    .sc-rule-flow {
      display: grid;
      gap: 7px;
    }

    .sc-rule-step {
      display: grid;
      grid-template-columns: 26px minmax(0, 1fr);
      gap: 8px;
      align-items: center;
      min-width: 0;
      padding: 8px;
      border-radius: 10px;
      background: rgba(0, 0, 0, .20);
      border: 1px solid rgba(255, 255, 255, .08);
      color: rgba(255, 255, 255, .82);
      font-size: 12px;
      line-height: 1.45;
    }

    .sc-rule-step b {
      width: 24px;
      height: 24px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      background: var(--gold);
      color: var(--primary);
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      line-height: 1;
      box-shadow: 0 0 12px rgba(245, 200, 0, .36);
    }

    .sc-rule-step span {
      min-width: 0;
    }

    .sc-rule-step strong {
      color: #ffe26b;
      font-weight: 900;
    }

    .sc-rule-caption {
      margin-top: 2px;
      color: rgba(245, 200, 0, .88);
      font-size: 8px;
    }

    .sc-rule-matchups {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 7px;
    }

    .sc-rule-move {
      display: grid;
      gap: 4px;
      min-width: 0;
      padding: 9px 6px;
      border-radius: 9px;
      border: 1px solid rgba(255, 255, 255, .11);
      text-align: center;
    }

    .sc-rule-raise { background: linear-gradient(180deg, rgba(233, 69, 96, .36), rgba(0, 0, 0, .24)); }
    .sc-rule-call { background: linear-gradient(180deg, rgba(51, 132, 255, .34), rgba(0, 0, 0, .24)); }
    .sc-rule-bluff { background: linear-gradient(180deg, rgba(22, 163, 74, .34), rgba(0, 0, 0, .24)); }

    .sc-rule-move b {
      color: #fff;
      font-family: 'Press Start 2P', monospace;
      font-size: 8px;
      line-height: 1.2;
      overflow-wrap: anywhere;
    }

    .sc-rule-move small {
      color: rgba(255, 255, 255, .72);
      font-size: 10px;
      line-height: 1.1;
    }

    .sc-rule-move strong {
      color: #ffe26b;
      font-size: 10px;
      line-height: 1.3;
    }

    .sc-rule-goals {
      display: grid;
      gap: 5px;
      color: rgba(255, 255, 255, .82);
      font-size: 12px;
      line-height: 1.45;
    }

    .sc-rule-goals span {
      position: relative;
      padding-left: 16px;
    }

    .sc-rule-goals span::before {
      content: '';
      position: absolute;
      left: 2px;
      top: .62em;
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: var(--gold);
      box-shadow: 0 0 8px rgba(245, 200, 0, .55);
    }

    .sc-roster {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      width: 100%;
    }

    .sc-select-card {
      min-width: 0;
      display: grid;
      gap: 6px;
      place-items: center;
      padding: 12px 8px;
      background: rgba(255, 255, 255, .05);
      border: 2px solid rgba(255, 255, 255, .1);
      border-radius: 10px;
      color: #fff;
      cursor: pointer;
      font: inherit;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease, border-color .15s, box-shadow .2s, background .15s;
    }

    .sc-select-card.is-active {
      border-color: var(--gold);
      background: rgba(245, 200, 0, .13);
      box-shadow: 0 0 18px rgba(245, 200, 0, .28);
    }

    .sc-select-card:active {
      transform: scale(.97);
    }

    .sc-select-img {
      width: 70px;
      height: 70px;
      object-fit: contain;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .32));
      pointer-events: none;
    }

    .sc-select-name {
      color: var(--gold);
      font-weight: 800;
      font-size: 13px;
      line-height: 1.2;
    }

    .sc-select-meta {
      color: rgba(255, 255, 255, .72);
      font-size: 11px;
      line-height: 1.35;
    }

    .sc-select-stats {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 5px;
      font-size: 9px;
      color: rgba(255, 255, 255, .62);
    }

    .sc-select-stats b {
      font-weight: 800;
    }

    .sc-start-btn,
    .sc-sub-btn {
      font-family: 'Press Start 2P', 'Courier New', monospace;
      letter-spacing: 1.6px;
      border-radius: 7px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease, opacity .15s;
    }

    .sc-start-btn {
      margin-top: 2px;
      padding: 15px 20px;
      background: var(--primary);
      color: var(--gold);
      border: 3px solid var(--gold);
      font-size: 12px;
      box-shadow:
        0 0 0 3px var(--primary),
        0 0 0 4px rgba(245, 200, 0, .85),
        0 0 20px rgba(245, 200, 0, .45);
      animation: gamesCtaGlow 2.6s ease-in-out infinite;
    }

    .sc-sub-btn {
      padding: 11px 16px;
      background: transparent;
      color: rgba(255, 255, 255, .75);
      border: 1px solid rgba(255, 255, 255, .26);
      font-size: 9px;
    }

    .sc-start-btn:active,
    .sc-sub-btn:active {
      transform: scale(.97);
      opacity: .86;
    }

    .sc-battle {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 2px 0 calc(86px + var(--safe-bottom));
      min-height: calc(100vh - 142px - var(--safe-bottom));
    }

    body.is-game-detail .sc-battle {
      padding: 2px 0 calc(86px + var(--safe-bottom));
    }

    .sc-battle-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      color: rgba(255, 255, 255, .7);
      font-size: 9px;
      letter-spacing: 1px;
    }

    .sc-battle-top span,
    .sc-score-now strong,
    .sc-pot strong {
      color: var(--gold);
    }

    .sc-score-now,
    .sc-pot {
      border: 1px solid rgba(245, 200, 0, .32);
      border-radius: 999px;
      padding: 6px 9px;
      background: rgba(245, 200, 0, .08);
      white-space: nowrap;
    }

    .sc-win-rule {
      margin-top: -2px;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(0, 0, 0, .24);
      border: 1px solid rgba(255, 255, 255, .08);
      color: rgba(255, 255, 255, .78);
      font-size: 11px;
      line-height: 1.35;
      text-align: center;
    }

    .sc-fighter {
      display: grid;
      grid-template-columns: 96px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      min-height: 118px;
      padding: 10px;
      border: 1px solid rgba(255, 255, 255, .11);
      border-radius: 12px;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
        rgba(13, 24, 52, .74);
      position: relative;
      overflow: hidden;
      transform-origin: center;
      will-change: transform, filter;
    }

    .sc-fighter::before {
      content: '';
      position: absolute;
      inset: -40% -10% auto auto;
      width: 150px;
      height: 150px;
      background: radial-gradient(circle, rgba(245, 200, 0, .18), transparent 64%);
      pointer-events: none;
    }

    .sc-enemy {
      border-color: rgba(233, 69, 96, .34);
      background:
        linear-gradient(135deg, rgba(233, 69, 96, .15), rgba(255, 255, 255, .02)),
        rgba(34, 18, 40, .72);
    }

    .sc-player {
      border-color: rgba(22, 163, 74, .30);
      background:
        linear-gradient(135deg, rgba(22, 163, 74, .13), rgba(255, 255, 255, .02)),
        rgba(12, 34, 45, .76);
    }

    .sc-portrait-wrap {
      position: relative;
      z-index: 1;
      aspect-ratio: 1 / 1;
      border-radius: 10px;
      display: grid;
      place-items: center;
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(255, 255, 255, .12);
      box-shadow: inset 0 0 18px rgba(255, 255, 255, .05);
      overflow: hidden;
    }

    .sc-role-badge {
      position: absolute;
      left: 5px;
      top: 5px;
      z-index: 1;
      padding: 3px 5px;
      border-radius: 4px;
      background: rgba(0, 0, 0, .45);
      color: rgba(255, 255, 255, .8);
      font-family: 'Press Start 2P', monospace;
      font-size: 6px;
      letter-spacing: .8px;
    }

    .sc-portrait {
      width: 78%;
      height: 78%;
      object-fit: contain;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      filter: drop-shadow(0 8px 13px rgba(0, 0, 0, .34));
      animation: scFloat 1.4s ease-in-out infinite;
      pointer-events: none;
    }

    @keyframes scFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
    }

    .sc-player.is-attacking {
      z-index: 3;
      animation: scPlayerLunge .38s ease-out;
    }

    .sc-enemy.is-attacking {
      z-index: 3;
      animation: scEnemyLunge .38s ease-out;
    }

    .sc-fighter.is-damaged {
      animation: scDamageShake .48s cubic-bezier(.2, .8, .2, 1);
      filter: brightness(1.22) saturate(1.2);
    }

    .sc-fighter.is-special-caster {
      z-index: 4;
      animation: scSpecialCaster .72s ease-out;
      filter: brightness(1.28) saturate(1.25);
    }

    .sc-fighter.is-special-hit {
      animation: scSpecialDamage .72s ease-out;
      border-color: rgba(255, 226, 107, .72);
      box-shadow: 0 0 26px rgba(245, 200, 0, .28);
    }

    .sc-fighter.is-clashing {
      animation: scClashBump .42s ease-out;
    }

    .sc-hit-spark,
    .sc-attack-trail,
    .sc-damage-pop,
    .sc-clash-chip {
      position: absolute;
      z-index: 4;
      pointer-events: none;
    }

    .sc-hit-spark {
      inset: 12px;
      border-radius: inherit;
      background:
        radial-gradient(circle at 32% 50%, rgba(255, 255, 255, .95), transparent 9%),
        radial-gradient(circle at 46% 36%, rgba(255, 226, 107, .9), transparent 12%),
        linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .86) 48%, transparent 64%);
      mix-blend-mode: screen;
      animation: scHitSpark .42s ease-out both;
    }

    .sc-hit-spark.is-special {
      inset: 0;
      background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .98), transparent 12%),
        radial-gradient(circle at 52% 50%, rgba(255, 226, 107, .92), transparent 32%),
        repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 255, 255, .42) 15px 18px);
      animation: scSpecialSpark .72s ease-out both;
    }

    .sc-damage-pop {
      right: 14px;
      top: 14px;
      padding: 5px 8px;
      border-radius: 8px;
      color: #fff;
      background: rgba(233, 69, 96, .92);
      border: 2px solid rgba(255, 255, 255, .75);
      font-family: 'Press Start 2P', monospace;
      font-size: 14px;
      line-height: 1;
      text-shadow: 0 2px 0 rgba(0, 0, 0, .34);
      box-shadow: 0 0 18px rgba(233, 69, 96, .55);
      animation: scDamagePop .72s ease-out both;
    }

    .sc-damage-pop.is-special {
      right: 10px;
      top: 10px;
      color: var(--primary);
      background: #ffe26b;
      box-shadow: 0 0 24px rgba(245, 200, 0, .72);
      animation-duration: .88s;
    }

    .sc-attack-trail {
      left: -20%;
      right: -20%;
      top: 46%;
      height: 16px;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), rgba(245, 200, 0, .86), transparent);
      mix-blend-mode: screen;
      opacity: 0;
    }

    .sc-player .sc-attack-trail {
      transform: rotate(-12deg);
      animation: scTrailUp .42s ease-out both;
    }

    .sc-enemy .sc-attack-trail {
      transform: rotate(12deg);
      animation: scTrailDown .42s ease-out both;
    }

    .sc-attack-trail.is-special {
      height: 30px;
      top: 40%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .98), #ffe26b, rgba(255, 255, 255, .98), transparent);
      box-shadow: 0 0 24px rgba(245, 200, 0, .72);
      animation-duration: .68s;
    }

    .sc-clash-chip {
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      padding: 5px 8px;
      border-radius: 999px;
      color: var(--primary);
      background: var(--gold);
      border: 2px solid rgba(255, 255, 255, .72);
      font-family: 'Press Start 2P', monospace;
      font-size: 9px;
      box-shadow: 0 0 16px rgba(245, 200, 0, .62);
      animation: scClashChip .54s ease-out both;
    }

    .sc-special-screen-flash {
      position: absolute;
      inset: -10px;
      z-index: 7;
      pointer-events: none;
      background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .88), transparent 18%),
        linear-gradient(135deg, rgba(255, 226, 107, .50), rgba(233, 69, 96, .25), rgba(22, 163, 74, .22));
      mix-blend-mode: screen;
      animation: scScreenFlash .84s ease-out both;
    }

    .sc-special-cutin,
    .sc-clash-burst {
      position: absolute;
      left: 50%;
      z-index: 9;
      pointer-events: none;
      text-align: center;
      font-family: 'Press Start 2P', monospace;
    }

    .sc-special-cutin {
      top: 48%;
      width: min(92%, 390px);
      display: grid;
      gap: 8px;
      padding: 16px 14px;
      border-radius: 12px;
      color: var(--primary);
      background: linear-gradient(180deg, #fff6b8, var(--gold));
      border: 3px solid #fff;
      box-shadow: 0 0 0 4px rgba(21, 51, 100, .78), 0 0 34px rgba(245, 200, 0, .72);
      transform: translate(-50%, -50%) scale(.92);
      animation: scSpecialCutin .86s ease-out both;
    }

    .sc-special-cutin small {
      font-size: 8px;
      letter-spacing: 2px;
    }

    .sc-special-cutin strong {
      font-size: 15px;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .sc-special-cutin span {
      color: rgba(21, 51, 100, .78);
      font-family: 'Inter', 'Hiragino Sans', system-ui, sans-serif;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0;
      line-height: 1.3;
    }

    .sc-clash-burst {
      top: 45%;
      display: grid;
      gap: 5px;
      padding: 10px 14px;
      border-radius: 999px;
      color: var(--primary);
      background: #ffe26b;
      border: 2px solid #fff;
      box-shadow: 0 0 22px rgba(245, 200, 0, .64);
      transform: translate(-50%, -50%);
      animation: scClashBurst .54s ease-out both;
    }

    .sc-clash-burst strong {
      font-size: 10px;
      line-height: 1;
    }

    .sc-clash-burst span {
      font-size: 9px;
      line-height: 1;
    }

    @keyframes scPlayerLunge {
      0% { transform: translateY(0) scale(1); }
      36% { transform: translateY(-11px) scale(1.03); }
      100% { transform: translateY(0) scale(1); }
    }

    @keyframes scEnemyLunge {
      0% { transform: translateY(0) scale(1); }
      36% { transform: translateY(11px) scale(1.03); }
      100% { transform: translateY(0) scale(1); }
    }

    @keyframes scDamageShake {
      0%, 100% { transform: translateX(0); }
      18% { transform: translateX(-7px); }
      34% { transform: translateX(8px); }
      50% { transform: translateX(-5px); }
      66% { transform: translateX(4px); }
    }

    @keyframes scSpecialCaster {
      0% { transform: scale(1); }
      32% { transform: scale(1.05); filter: brightness(1.55); }
      100% { transform: scale(1); }
    }

    @keyframes scSpecialDamage {
      0%, 100% { transform: translateX(0) scale(1); filter: brightness(1); }
      18% { transform: translateX(-10px) scale(1.03); filter: brightness(1.8); }
      34% { transform: translateX(9px) scale(.98); }
      52% { transform: translateX(-7px) scale(1.02); }
      70% { transform: translateX(5px) scale(1); }
    }

    @keyframes scClashBump {
      0%, 100% { transform: scale(1); }
      45% { transform: scale(1.025); filter: brightness(1.22); }
    }

    @keyframes scHitSpark {
      0% { opacity: 0; transform: scale(.62) rotate(-8deg); }
      18% { opacity: 1; }
      100% { opacity: 0; transform: scale(1.24) rotate(8deg); }
    }

    @keyframes scSpecialSpark {
      0% { opacity: 0; transform: scale(.7) rotate(-10deg); }
      22% { opacity: 1; }
      100% { opacity: 0; transform: scale(1.35) rotate(12deg); }
    }

    @keyframes scDamagePop {
      0% { opacity: 0; transform: translateY(8px) scale(.7); }
      18% { opacity: 1; transform: translateY(0) scale(1.08); }
      100% { opacity: 0; transform: translateY(-24px) scale(1); }
    }

    @keyframes scTrailUp {
      0% { opacity: 0; transform: translateY(18px) rotate(-12deg) scaleX(.4); }
      24% { opacity: .92; }
      100% { opacity: 0; transform: translateY(-22px) rotate(-12deg) scaleX(1.05); }
    }

    @keyframes scTrailDown {
      0% { opacity: 0; transform: translateY(-18px) rotate(12deg) scaleX(.4); }
      24% { opacity: .92; }
      100% { opacity: 0; transform: translateY(22px) rotate(12deg) scaleX(1.05); }
    }

    @keyframes scClashChip {
      0% { opacity: 0; transform: translate(-50%, -50%) scale(.68); }
      24% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
      100% { opacity: 0; transform: translate(-50%, -70%) scale(1); }
    }

    @keyframes scScreenFlash {
      0% { opacity: 0; }
      16% { opacity: .95; }
      100% { opacity: 0; }
    }

    @keyframes scSpecialCutin {
      0% { opacity: 0; transform: translate(-50%, -50%) scale(.72) skewX(-10deg); }
      18% { opacity: 1; transform: translate(-50%, -50%) scale(1.04) skewX(-3deg); }
      72% { opacity: 1; transform: translate(-50%, -50%) scale(1) skewX(0); }
      100% { opacity: 0; transform: translate(-50%, -50%) scale(1.08) skewX(4deg); }
    }

    @keyframes scClashBurst {
      0% { opacity: 0; transform: translate(-50%, -50%) scale(.72); }
      24% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
      100% { opacity: 0; transform: translate(-50%, -78%) scale(1); }
    }

    .sc-fighter-info {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
      position: relative;
      z-index: 1;
    }

    .sc-name-row,
    .sc-chip-row,
    .sc-trait-row {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 8px;
      min-width: 0;
    }

    .sc-fighter-name {
      color: #fff;
      font-weight: 900;
      font-size: 15px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sc-fighter-short {
      color: var(--gold);
      font-family: 'Press Start 2P', monospace;
      font-size: 8px;
      letter-spacing: .8px;
      flex-shrink: 0;
    }

    .sc-hp {
      height: 9px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .12);
      overflow: hidden;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    }

    .sc-hp-fill {
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #16a34a, #f5c800);
      transition: width .24s ease;
    }

    .sc-hp-fill.is-danger {
      background: linear-gradient(90deg, #e94560, #ff8a80);
      box-shadow: 0 0 10px rgba(233, 69, 96, .52);
    }

    .sc-chip-row,
    .sc-trait-row {
      color: rgba(255, 255, 255, .62);
      font-size: 10px;
      line-height: 1.3;
    }

    .sc-chip-row strong,
    .sc-trait-row span {
      color: var(--gold);
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
    }

    .sc-chip-row small,
    .sc-trait-row small {
      color: rgba(255, 255, 255, .65);
      font-size: 10px;
    }

    .sc-speech {
      min-height: 28px;
      padding: 6px 8px;
      border-radius: 8px;
      color: rgba(255, 255, 255, .88);
      background: rgba(0, 0, 0, .22);
      font-size: 11px;
      line-height: 1.45;
    }

    .sc-vs-panel {
      display: grid;
      grid-template-columns: 64px minmax(0, 1fr) 64px;
      align-items: stretch;
      gap: 7px;
      padding: 8px;
      border-radius: 12px;
      background:
        linear-gradient(90deg, rgba(233, 69, 96, .16), rgba(245, 200, 0, .18), rgba(22, 163, 74, .14)),
        rgba(0, 0, 0, .20);
      border: 1px solid rgba(245, 200, 0, .22);
    }

    .sc-read-box {
      display: grid;
      gap: 5px;
      align-content: center;
      justify-items: center;
      padding: 6px 4px;
      color: rgba(255, 255, 255, .72);
      font-family: 'Press Start 2P', monospace;
      font-size: 6px;
      letter-spacing: .4px;
      text-align: center;
      border-radius: 9px;
      background: rgba(0, 0, 0, .18);
    }

    .sc-read-count {
      color: var(--gold);
      font-size: 9px;
      line-height: 1;
    }

    .sc-pips,
    .sc-gauge {
      display: flex;
      gap: 4px;
    }

    .sc-pip,
    .sc-gauge-cell {
      width: 13px;
      height: 13px;
      border-radius: 4px;
      background: rgba(255, 255, 255, .12);
      border: 1px solid rgba(255, 255, 255, .12);
    }

    .sc-pip.is-on,
    .sc-gauge-cell.is-on {
      background: var(--gold);
      border-color: #ffe26b;
      box-shadow: 0 0 10px rgba(245, 200, 0, .6);
    }

    .sc-reveal {
      min-height: 72px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      padding: 10px 8px;
      border-radius: 12px;
      background: rgba(0, 0, 0, .30);
      border: 1px solid rgba(255, 255, 255, .13);
      text-align: center;
      font-family: 'Press Start 2P', monospace;
      letter-spacing: .7px;
      color: rgba(255, 255, 255, .82);
      box-shadow: inset 0 0 18px rgba(255, 255, 255, .04);
    }

    .sc-reveal-card {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .sc-reveal-card small {
      color: rgba(255, 255, 255, .55);
      font-size: 7px;
      line-height: 1;
    }

    .sc-reveal-card span {
      color: #fff;
      font-size: 12px;
      line-height: 1.2;
      overflow-wrap: anywhere;
      text-shadow: 0 0 10px rgba(255, 255, 255, .22);
    }

    .sc-reveal-center {
      min-width: 52px;
      display: grid;
      gap: 6px;
      justify-items: center;
      align-content: center;
    }

    .sc-reveal-center strong {
      color: var(--gold);
      font-size: 18px;
      line-height: 1;
      text-shadow: 0 0 16px rgba(245, 200, 0, .65);
    }

    .sc-reveal-center em {
      display: inline-grid;
      place-items: center;
      min-height: 20px;
      padding: 4px 6px;
      border-radius: 999px;
      background: rgba(245, 200, 0, .13);
      color: #ffe26b;
      border: 1px solid rgba(245, 200, 0, .25);
      font-family: 'Inter', 'Hiragino Sans', system-ui, sans-serif;
      font-style: normal;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0;
      line-height: 1;
      white-space: nowrap;
    }

    .sc-reveal.is-win {
      border-color: rgba(22, 163, 74, .70);
      background:
        linear-gradient(180deg, rgba(22, 163, 74, .22), rgba(0, 0, 0, .30));
      box-shadow: 0 0 18px rgba(22, 163, 74, .34);
    }

    .sc-reveal.is-win .sc-reveal-center em {
      background: rgba(22, 163, 74, .22);
      color: #8cffb1;
      border-color: rgba(22, 163, 74, .50);
    }

    .sc-reveal.is-lose {
      border-color: rgba(233, 69, 96, .72);
      background:
        linear-gradient(180deg, rgba(233, 69, 96, .22), rgba(0, 0, 0, .30));
      box-shadow: 0 0 18px rgba(233, 69, 96, .34);
    }

    .sc-reveal.is-lose .sc-reveal-center em {
      background: rgba(233, 69, 96, .24);
      color: #ff9bac;
      border-color: rgba(233, 69, 96, .55);
    }

    .sc-reveal.is-draw {
      border-color: rgba(245, 200, 0, .62);
      background:
        linear-gradient(180deg, rgba(245, 200, 0, .18), rgba(0, 0, 0, .30));
    }

    .sc-reveal.is-special {
      color: #ffe26b;
      border-color: rgba(245, 200, 0, .72);
      box-shadow: 0 0 22px rgba(245, 200, 0, .42);
      animation: scSpecialFlash .45s ease-out;
    }

    @keyframes scSpecialFlash {
      0% { transform: scale(.94); filter: brightness(1.8); }
      100% { transform: scale(1); filter: brightness(1); }
    }

    .sc-message {
      min-height: 28px;
      display: grid;
      place-items: center;
      padding: 6px 10px;
      border-radius: 999px;
      color: var(--gold);
      background: rgba(0, 0, 0, .24);
      border: 1px solid rgba(245, 200, 0, .20);
      font-size: 9px;
      letter-spacing: 1px;
      text-align: center;
    }

    .sc-outcome-banner {
      display: grid;
      gap: 5px;
      min-height: 56px;
      place-items: center;
      padding: 10px 12px;
      border-radius: 13px;
      text-align: center;
      background: rgba(0, 0, 0, .26);
      border: 2px solid rgba(255, 255, 255, .10);
      box-shadow: inset 0 0 18px rgba(255, 255, 255, .04);
    }

    .sc-outcome-banner strong {
      font-family: 'Press Start 2P', monospace;
      font-size: 14px;
      letter-spacing: 1.5px;
      line-height: 1.2;
      color: var(--gold);
      text-shadow: 0 0 14px rgba(245, 200, 0, .45);
    }

    .sc-outcome-banner span {
      color: rgba(255, 255, 255, .82);
      font-size: 12px;
      line-height: 1.45;
    }

    .sc-outcome-banner.is-win {
      border-color: rgba(22, 163, 74, .64);
      background: linear-gradient(180deg, rgba(22, 163, 74, .22), rgba(0, 0, 0, .22));
      box-shadow: 0 0 18px rgba(22, 163, 74, .26);
    }

    .sc-outcome-banner.is-win strong {
      color: #8cffb1;
      text-shadow: 0 0 16px rgba(22, 163, 74, .58);
    }

    .sc-outcome-banner.is-lose {
      border-color: rgba(233, 69, 96, .68);
      background: linear-gradient(180deg, rgba(233, 69, 96, .23), rgba(0, 0, 0, .22));
      box-shadow: 0 0 18px rgba(233, 69, 96, .26);
    }

    .sc-outcome-banner.is-lose strong {
      color: #ff9bac;
      text-shadow: 0 0 16px rgba(233, 69, 96, .58);
    }

    .sc-outcome-banner.is-draw {
      border-color: rgba(245, 200, 0, .58);
      background: linear-gradient(180deg, rgba(245, 200, 0, .18), rgba(0, 0, 0, .22));
    }

    .sc-outcome-banner.is-special {
      border-color: rgba(245, 200, 0, .74);
      background: linear-gradient(180deg, rgba(255, 226, 107, .25), rgba(0, 0, 0, .22));
      box-shadow: 0 0 22px rgba(245, 200, 0, .36);
    }

    .sc-controls {
      position: sticky;
      bottom: calc(var(--tab-height) + var(--safe-bottom) + 8px);
      z-index: 8;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      padding: 8px;
      border-radius: 14px;
      background: rgba(10, 18, 38, .88);
      border: 1px solid rgba(255, 255, 255, .12);
      backdrop-filter: blur(6px);
      box-shadow: 0 -8px 24px rgba(0, 0, 0, .20);
    }

    @media (min-width: 900px) {
      .sc-controls {
        bottom: 10px;
      }
    }

    .sc-move-btn,
    .sc-special-btn {
      min-width: 0;
      min-height: 58px;
      display: grid;
      place-items: center;
      gap: 3px;
      padding: 9px 5px;
      border-radius: 10px;
      border: 2px solid rgba(255, 255, 255, .15);
      color: #fff;
      font: inherit;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .1s ease, box-shadow .15s, filter .15s;
    }

    .sc-move-btn:active,
    .sc-special-btn:active {
      transform: translateY(2px) scale(.97);
    }

    .sc-raise {
      background: linear-gradient(180deg, #e94560, #8f1f38);
      box-shadow: 0 0 14px rgba(233, 69, 96, .32);
    }

    .sc-call {
      background: linear-gradient(180deg, #3384ff, #173d90);
      box-shadow: 0 0 14px rgba(51, 132, 255, .30);
    }

    .sc-bluff {
      background: linear-gradient(180deg, #16a34a, #0d5e31);
      box-shadow: 0 0 14px rgba(22, 163, 74, .30);
    }

    .sc-move-label,
    .sc-special-btn span {
      font-family: 'Press Start 2P', monospace;
      font-size: 9px;
      letter-spacing: .8px;
      line-height: 1.2;
      overflow-wrap: anywhere;
    }

    .sc-move-sub,
    .sc-special-btn small {
      color: rgba(255, 255, 255, .78);
      font-size: 9px;
      line-height: 1.25;
      text-align: center;
    }

    .sc-special-btn {
      grid-column: 1 / -1;
      min-height: 48px;
      background: rgba(255, 255, 255, .06);
    }

    .sc-special-btn.is-ready {
      color: var(--primary);
      border-color: #ffe26b;
      background: linear-gradient(180deg, #fff3a3, var(--gold));
      box-shadow: 0 0 22px rgba(245, 200, 0, .5);
      animation: scSpecialReady 1s ease-in-out infinite;
    }

    .sc-special-btn.is-ready small {
      color: rgba(21, 51, 100, .78);
    }

    .sc-move-btn:disabled,
    .sc-special-btn:disabled {
      opacity: .55;
      cursor: default;
      filter: grayscale(.25);
    }

    @keyframes scSpecialReady {
      0%, 100% { filter: brightness(1); }
      50% { filter: brightness(1.12); }
    }

    .sc-clear {
      min-height: 66vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      text-align: center;
      padding: 22px 12px 96px;
    }

    .sc-clear-stamp {
      color: var(--gold);
      font-size: 18px;
      letter-spacing: 2px;
      text-shadow: 0 0 14px rgba(245, 200, 0, .6);
    }

    .sc-clear-img {
      width: 120px;
      height: 120px;
      object-fit: contain;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35));
    }

    .sc-clear-title {
      color: #fff;
      font-size: 18px;
      font-weight: 900;
    }

    .sc-clear-meta {
      color: rgba(255, 255, 255, .7);
      font-size: 10px;
      letter-spacing: 1px;
    }

    .sc-clear-meta span {
      color: var(--gold);
      font-size: 18px;
    }

    @media (max-width: 370px) {
      .sc-title { font-size: 18px; }
      .sc-select-img { width: 60px; height: 60px; }
      .sc-rule-matchups { gap: 5px; }
      .sc-rule-step { grid-template-columns: 24px minmax(0, 1fr); font-size: 11px; padding: 7px; }
      .sc-rule-move { padding: 8px 4px; }
      .sc-rule-move b { font-size: 7px; }
      .sc-rule-move small,
      .sc-rule-move strong { font-size: 9px; }
      .sc-fighter { grid-template-columns: 82px minmax(0, 1fr); min-height: 108px; }
      .sc-vs-panel { grid-template-columns: 54px minmax(0, 1fr) 54px; gap: 5px; }
      .sc-read-box { font-size: 5px; padding: 5px 2px; }
      .sc-read-count { font-size: 8px; }
      .sc-reveal { min-height: 68px; gap: 5px; padding: 8px 5px; }
      .sc-reveal-card span { font-size: 10px; }
      .sc-reveal-center { min-width: 46px; }
      .sc-reveal-center strong { font-size: 15px; }
      .sc-reveal-center em { font-size: 9px; padding: 4px 5px; }
      .sc-outcome-banner { min-height: 50px; padding: 8px 10px; }
      .sc-outcome-banner strong { font-size: 11px; }
      .sc-outcome-banner span { font-size: 11px; }
      .sc-damage-pop { font-size: 11px; right: 8px; top: 8px; }
      .sc-special-cutin { width: min(94%, 320px); padding: 13px 10px; }
      .sc-special-cutin strong { font-size: 12px; }
      .sc-special-cutin span { font-size: 11px; }
      .sc-move-label, .sc-special-btn span { font-size: 8px; }
      .sc-move-sub, .sc-special-btn small { font-size: 8px; }
      body.is-game-detail .sc-battle { padding-bottom: calc(78px + var(--safe-bottom)); }
    }

    @media (prefers-reduced-motion: reduce) {
      .sc-start-btn,
      .sc-portrait,
      .sc-special-btn.is-ready,
      .sc-reveal.is-special,
      .sc-player.is-attacking,
      .sc-enemy.is-attacking,
      .sc-fighter.is-damaged,
      .sc-fighter.is-special-caster,
      .sc-fighter.is-special-hit,
      .sc-fighter.is-clashing,
      .sc-hit-spark,
      .sc-attack-trail,
      .sc-damage-pop,
      .sc-clash-chip,
      .sc-special-screen-flash,
      .sc-special-cutin,
      .sc-clash-burst {
        animation: none;
      }

      .sc-hit-spark,
      .sc-attack-trail,
      .sc-special-screen-flash {
        display: none;
      }
    }



    /* SPADIE Champions: hide footer navigation while a run is in progress. */
    body.is-spadie-champions-playing {
      padding-bottom: 0 !important;
    }

    body.is-spadie-champions-playing .tab-bar {
      display: none !important;
    }

    /* SPADIE Champions: battle mode uses the whole viewport and hides global nav. */
    body.is-spadie-champions-battle {
      padding-bottom: 0 !important;
      overflow: hidden !important;
      background: var(--primary);
    }

    body.is-spadie-champions-battle .app-header,
    body.is-spadie-champions-battle .tab-bar {
      display: none !important;
    }

    body.is-spadie-champions-battle main {
      height: 100dvh;
      min-height: 100dvh;
      padding-top: 0 !important;
      overflow: hidden !important;
    }

    body.is-spadie-champions-battle .games-root {
      height: 100dvh;
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    body.is-spadie-champions-battle .games-page-header {
      flex: 0 0 auto;
      min-height: calc(38px + var(--safe-top));
      padding: calc(6px + var(--safe-top)) 10px 4px;
      grid-template-columns: 42px minmax(0, 1fr) 42px;
      gap: 6px;
    }

    body.is-spadie-champions-battle .games-back-btn {
      min-height: 28px;
      padding: 4px 9px;
      font-size: 11px;
    }

    body.is-spadie-champions-battle .games-page-title {
      min-width: 0;
      max-width: 100%;
      font-size: 10px;
      letter-spacing: 1.2px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    body.is-spadie-champions-battle .sg-sound-toggle {
      right: 10px;
      width: 28px;
      height: 28px;
      border-radius: 7px;
    }

    body.is-spadie-champions-battle .games-page-body {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      padding: 4px 10px 6px;
      overflow: hidden;
    }

    body.is-spadie-champions-battle #sc-body {
      width: 100%;
      min-height: 0;
      height: 100%;
      flex: 1 1 auto;
      display: flex;
    }

    body.is-spadie-champions-battle .sc-battle {
      width: min(100%, 480px);
      height: 100%;
      min-height: 0;
      max-height: 100%;
      gap: 5px;
      padding: 0 !important;
      overflow: hidden;
      justify-content: stretch;
    }

    body.is-spadie-champions-battle .sc-battle-top {
      min-height: 20px;
      font-size: 8px;
      line-height: 1;
    }

    body.is-spadie-champions-battle .sc-score-now,
    body.is-spadie-champions-battle .sc-pot {
      padding: 5px 7px;
    }

    body.is-spadie-champions-battle .sc-win-rule {
      display: none;
    }

    body.is-spadie-champions-battle .sc-fighter {
      grid-template-columns: clamp(62px, 17vw, 82px) minmax(0, 1fr);
      gap: 7px;
      height: clamp(92px, 17dvh, 110px);
      min-height: 0;
      padding: 7px;
      border-radius: 10px;
    }

    body.is-spadie-champions-battle .sc-portrait-wrap {
      border-radius: 8px;
    }

    body.is-spadie-champions-battle .sc-fighter-info {
      gap: 4px;
    }

    body.is-spadie-champions-battle .sc-fighter-name {
      font-size: 13px;
    }

    body.is-spadie-champions-battle .sc-fighter-short {
      font-size: 7px;
    }

    body.is-spadie-champions-battle .sc-chip-row,
    body.is-spadie-champions-battle .sc-trait-row,
    body.is-spadie-champions-battle .sc-chip-row small,
    body.is-spadie-champions-battle .sc-trait-row small {
      font-size: 9px;
      line-height: 1.15;
    }

    body.is-spadie-champions-battle .sc-chip-row strong,
    body.is-spadie-champions-battle .sc-trait-row span {
      font-size: 9px;
    }

    body.is-spadie-champions-battle .sc-hp {
      height: 7px;
    }

    body.is-spadie-champions-battle .sc-speech {
      min-height: 22px;
      max-height: 32px;
      padding: 4px 6px;
      font-size: 10px;
      line-height: 1.25;
      overflow: hidden;
    }

    body.is-spadie-champions-battle .sc-vs-panel {
      grid-template-columns: 56px minmax(0, 1fr) 56px;
      gap: 5px;
      padding: 5px;
      border-radius: 10px;
    }

    body.is-spadie-champions-battle .sc-read-box {
      gap: 4px;
      padding: 5px 3px;
      font-size: 5px;
      border-radius: 8px;
    }

    body.is-spadie-champions-battle .sc-read-count {
      font-size: 8px;
    }

    body.is-spadie-champions-battle .sc-pip,
    body.is-spadie-champions-battle .sc-gauge-cell {
      width: 11px;
      height: 11px;
      border-radius: 3px;
    }

    body.is-spadie-champions-battle .sc-reveal {
      min-height: clamp(56px, 10dvh, 66px);
      gap: 5px;
      padding: 6px 5px;
      border-radius: 9px;
    }

    body.is-spadie-champions-battle .sc-reveal-card small {
      font-size: 6px;
    }

    body.is-spadie-champions-battle .sc-reveal-card span {
      font-size: 10px;
    }

    body.is-spadie-champions-battle .sc-reveal-center {
      min-width: 44px;
      gap: 4px;
    }

    body.is-spadie-champions-battle .sc-reveal-center strong {
      font-size: 15px;
    }

    body.is-spadie-champions-battle .sc-reveal-center em {
      min-height: 18px;
      padding: 3px 5px;
      font-size: 9px;
    }

    body.is-spadie-champions-battle .sc-outcome-banner {
      min-height: 42px;
      gap: 3px;
      padding: 6px 9px;
      border-radius: 10px;
    }

    body.is-spadie-champions-battle .sc-outcome-banner strong {
      font-size: 10px;
      letter-spacing: 1px;
    }

    body.is-spadie-champions-battle .sc-outcome-banner span {
      font-size: 10px;
      line-height: 1.25;
    }

    body.is-spadie-champions-battle .sc-controls {
      position: static;
      bottom: auto;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 5px;
      padding: 5px;
      border-radius: 11px;
      flex: 0 0 auto;
    }

    body.is-spadie-champions-battle .sc-move-btn,
    body.is-spadie-champions-battle .sc-special-btn {
      min-height: 42px;
      gap: 2px;
      padding: 6px 4px;
      border-radius: 8px;
    }

    body.is-spadie-champions-battle .sc-special-btn {
      min-height: 36px;
    }

    body.is-spadie-champions-battle .sc-move-label,
    body.is-spadie-champions-battle .sc-special-btn span {
      font-size: 8px;
      letter-spacing: .5px;
    }

    body.is-spadie-champions-battle .sc-move-sub,
    body.is-spadie-champions-battle .sc-special-btn small {
      font-size: 8px;
      line-height: 1.15;
    }

    @media (max-height: 620px) {
      body.is-spadie-champions-battle .games-page-header {
        min-height: calc(34px + var(--safe-top));
        padding: calc(4px + var(--safe-top)) 8px 3px;
      }

      body.is-spadie-champions-battle .games-page-title {
        font-size: 9px;
        letter-spacing: .8px;
      }

      body.is-spadie-champions-battle .games-page-body {
        padding: 3px 8px 4px;
      }

      body.is-spadie-champions-battle .sc-battle {
        gap: 4px;
      }

      body.is-spadie-champions-battle .sc-fighter {
        grid-template-columns: 58px minmax(0, 1fr);
        height: 84px;
        gap: 6px;
        padding: 5px;
      }

      body.is-spadie-champions-battle .sc-role-badge,
      body.is-spadie-champions-battle .sc-trait-row,
      body.is-spadie-champions-battle .sc-speech {
        display: none;
      }

      body.is-spadie-champions-battle .sc-vs-panel {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        padding: 4px;
      }

      body.is-spadie-champions-battle .sc-reveal {
        min-height: 52px;
        padding: 5px 4px;
      }

      body.is-spadie-champions-battle .sc-outcome-banner {
        min-height: 38px;
        padding: 5px 7px;
      }

      body.is-spadie-champions-battle .sc-move-btn,
      body.is-spadie-champions-battle .sc-special-btn {
        min-height: 38px;
        padding: 5px 3px;
      }

      body.is-spadie-champions-battle .sc-special-btn {
        min-height: 32px;
      }
    }

    /* ── 色違いタップ（gt = game tiles） ── */
    .gt-start {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 24px;
      padding: 40px 16px 16px;
      text-align: center;
    }

    .gt-title {
      font-family: 'Press Start 2P', monospace;
      font-size: 18px;
      color: var(--gold);
      letter-spacing: 2px;
      text-shadow: 0 0 8px rgba(245, 200, 0, .35);
      margin: 0;
      line-height: 1.5;
    }

    .gt-lead {
      font-size: 13px;
      line-height: 1.9;
      color: rgba(255, 255, 255, .75);
      margin: 0;
    }

    .gt-start-btn {
      font-family: 'Press Start 2P', 'Courier New', monospace;
      letter-spacing: 2px;
      border-radius: 6px;
      padding: 16px 28px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease;
      background: var(--primary);
      color: var(--gold);
      border: 3px solid var(--gold);
      font-size: 14px;
      box-shadow:
        0 0 0 3px var(--primary),
        0 0 0 4px rgba(245, 200, 0, .85),
        0 0 20px rgba(245, 200, 0, .45);
      animation: gamesCtaGlow 2.6s ease-in-out infinite;
      text-transform: uppercase;
    }

    .gt-start-btn:active {
      transform: translateY(2px) scale(.985);
      animation-play-state: paused;
    }

    .gt-secondary-btn {
      font-family: 'Press Start 2P', 'Courier New', monospace;
      letter-spacing: 2px;
      border-radius: 6px;
      padding: 12px 22px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease, opacity .15s;
      background: transparent;
      color: rgba(255, 255, 255, .75);
      border: 1px solid rgba(255, 255, 255, .3);
      font-size: 10px;
    }

    .gt-secondary-btn:active {
      transform: scale(.96);
      opacity: .85;
    }

    .gt-hud {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      font-family: 'Press Start 2P', monospace;
      font-size: 9px;
      color: rgba(255, 255, 255, .8);
      letter-spacing: 1.5px;
      padding: 0 4px;
    }

    .gt-hud .gt-num {
      color: var(--gold);
      font-size: 12px;
      margin: 0 2px;
    }

    .gt-progress {
      height: 4px;
      background: rgba(255, 255, 255, .08);
      border-radius: 999px;
      overflow: hidden;
      margin: 10px 0 18px;
    }

    .gt-progress-bar {
      height: 100%;
      background: linear-gradient(90deg, var(--gold), #ffe26b);
      transition: width .4s ease;
    }

    .gt-grid {
      display: grid;
      /* minmax(0, 1fr) にしておかないと、中の img の intrinsic width が
         グリッドアイテムの min-width: auto と相互作用してビューポートを
         超える幅にふくらむ（iOS Safari で顕著）。 */
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
      margin: 0 auto;
      max-width: 380px;
      width: 100%;
      box-sizing: border-box;
    }

    .gt-tile {
      aspect-ratio: 1 / 1;
      background: rgba(255, 255, 255, .04);
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: 8px;
      padding: 6px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .1s ease, background .15s, border-color .15s, box-shadow .2s;
      display: flex;
      align-items: center;
      justify-content: center;
      /* Grid item の自動 min-size を殺して、1fr 列の幅に従わせる */
      min-width: 0;
      min-height: 0;
    }

    .gt-tile img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      pointer-events: none;
      user-select: none;
      -webkit-user-drag: none;
    }

    .gt-tile:active {
      transform: scale(.94);
    }

    .gt-tile.gt-correct {
      background: rgba(22, 163, 74, .28);
      border-color: #16a34a;
      box-shadow: 0 0 14px rgba(22, 163, 74, .55);
      animation: gtPulse .5s ease-out;
    }

    .gt-tile.gt-wrong {
      background: rgba(233, 69, 96, .22);
      border-color: var(--accent);
      animation: gtShake .32s ease-in-out;
    }

    .gt-tile.gt-reveal {
      background: rgba(245, 200, 0, .18);
      border-color: var(--gold);
      box-shadow: 0 0 14px rgba(245, 200, 0, .5);
    }

    @keyframes gtPulse {
      0% { transform: scale(.94); }
      50% { transform: scale(1.06); }
      100% { transform: scale(1); }
    }

    @keyframes gtShake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-5px); }
      50% { transform: translateX(5px); }
      75% { transform: translateX(-3px); }
    }

    .gt-result {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
      padding: 32px 16px 16px;
      text-align: center;
    }

    .gt-result-rank {
      font-family: 'Press Start 2P', monospace;
      font-size: 22px;
      color: var(--gold);
      letter-spacing: 3px;
      text-shadow: 0 0 12px rgba(245, 200, 0, .5);
      margin: 0;
    }

    .gt-result-score {
      font-family: 'Press Start 2P', monospace;
      font-size: 14px;
      color: rgba(255, 255, 255, .85);
      letter-spacing: 2px;
    }

    .gt-result-score .gt-num {
      color: var(--gold);
      font-size: 28px;
      margin: 0 4px;
    }

    .gt-result-btns {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      align-items: center;
      margin-top: 14px;
    }

    @media (prefers-reduced-motion: reduce) {
      .gt-start-btn { animation: none; }
    }

    /* ── ぴったりストップ（ps = perfect stop） ── */
    .ps-start,
    .ps-play,
    .ps-result {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      padding: 28px 16px 16px;
      text-align: center;
      /* スマホで子要素が画面幅を超えないように */
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      overflow-x: hidden;
    }

    .ps-title {
      font-family: 'Press Start 2P', monospace;
      font-size: 18px;
      color: var(--gold);
      letter-spacing: 2px;
      text-shadow: 0 0 8px rgba(245, 200, 0, .35);
      margin: 0;
      line-height: 1.5;
    }

    .ps-lead {
      font-size: 13px;
      line-height: 1.9;
      color: rgba(255, 255, 255, .78);
      margin: 0;
    }

    .ps-mode-select {
      width: 100%;
      max-width: 360px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .ps-mode-label {
      font-family: 'Press Start 2P', monospace;
      font-size: 9px;
      color: rgba(255, 255, 255, .6);
      letter-spacing: 1.5px;
    }

    .ps-mode-btns {
      display: grid;
      /* minmax(0, 1fr) で min-content によるはみ出しを抑止 */
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 10px;
    }

    .ps-mode-btn {
      background: rgba(255, 255, 255, .04);
      border: 2px solid rgba(245, 200, 0, .25);
      border-radius: 10px;
      padding: 14px 8px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: background .15s, border-color .15s, box-shadow .2s, transform .1s;
      color: inherit;
      font: inherit;
      display: flex;
      flex-direction: column;
      gap: 6px;
      align-items: center;
      /* Grid item の min-width: auto を殺す */
      min-width: 0;
    }

    .ps-mode-btn:active {
      transform: scale(.97);
    }

    .ps-mode-btn.selected {
      background: rgba(245, 200, 0, .12);
      border-color: var(--gold);
      box-shadow: 0 0 14px rgba(245, 200, 0, .35);
    }

    .ps-mode-btn-title {
      font-family: 'Press Start 2P', monospace;
      font-size: 13px;
      color: var(--gold);
      letter-spacing: 2px;
    }

    .ps-mode-btn-sub {
      font-size: 11px;
      color: rgba(255, 255, 255, .75);
      letter-spacing: .5px;
    }

    .ps-best {
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      color: rgba(255, 255, 255, .65);
      letter-spacing: 1.5px;
    }

    .ps-best .ps-best-num {
      color: var(--gold);
      margin-left: 6px;
    }

    .ps-start-btn {
      font-family: 'Press Start 2P', 'Courier New', monospace;
      letter-spacing: 2px;
      border-radius: 6px;
      padding: 16px 28px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease;
      background: var(--primary);
      color: var(--gold);
      border: 3px solid var(--gold);
      font-size: 14px;
      box-shadow:
        0 0 0 3px var(--primary),
        0 0 0 4px rgba(245, 200, 0, .85),
        0 0 20px rgba(245, 200, 0, .45);
      text-transform: uppercase;
      margin-top: 4px;
    }

    .ps-start-btn:active {
      transform: translateY(2px) scale(.985);
    }

    .ps-target {
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      color: rgba(255, 255, 255, .7);
      letter-spacing: 2px;
    }

    .ps-target .ps-target-num {
      color: var(--gold);
      font-size: 14px;
      margin-left: 6px;
    }

    .ps-stage {
      position: relative;
      width: 100%;
      max-width: 380px;
      aspect-ratio: 1.25 / 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 18px;
      background: rgba(255, 255, 255, .03);
      border: 1px solid rgba(245, 200, 0, .22);
      border-radius: 14px;
      padding: 18px;
    }

    .ps-char {
      width: 96px;
      height: 96px;
      object-fit: contain;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      animation: psCharBounce 0.9s ease-in-out infinite;
      pointer-events: none;
      user-select: none;
    }

    @keyframes psCharBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }

    .ps-time {
      font-family: 'Press Start 2P', monospace;
      font-size: 28px;
      letter-spacing: 3px;
      color: var(--gold);
      text-shadow: 0 0 10px rgba(245, 200, 0, .45);
      font-variant-numeric: tabular-nums;
    }

    .ps-time .ps-time-unit {
      font-size: 14px;
      color: rgba(255, 255, 255, .7);
      margin-left: 4px;
      letter-spacing: 1px;
    }

    .ps-hidden-hint {
      font-size: 11px;
      color: rgba(255, 255, 255, .55);
      letter-spacing: 1px;
      line-height: 1.6;
    }

    .ps-stop-btn {
      font-family: 'Press Start 2P', 'Courier New', monospace;
      letter-spacing: 3px;
      border-radius: 10px;
      padding: 22px 28px;
      min-width: 220px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .08s ease, box-shadow .15s;
      background: var(--accent, #e94560);
      color: #fff;
      border: 3px solid #fff;
      font-size: 22px;
      box-shadow:
        0 0 0 3px var(--accent, #e94560),
        0 0 0 4px rgba(255, 255, 255, .5),
        0 0 24px rgba(233, 69, 96, .55);
      text-transform: uppercase;
      animation: psStopPulse 1s ease-in-out infinite;
    }

    .ps-stop-btn:active {
      transform: translateY(2px) scale(.97);
      animation-play-state: paused;
    }

    @keyframes psStopPulse {
      0%, 100% {
        box-shadow:
          0 0 0 3px var(--accent, #e94560),
          0 0 0 4px rgba(255, 255, 255, .45),
          0 0 22px rgba(233, 69, 96, .5);
      }
      50% {
        box-shadow:
          0 0 0 3px var(--accent, #e94560),
          0 0 0 4px rgba(255, 255, 255, .8),
          0 0 38px rgba(233, 69, 96, .85);
      }
    }

    .ps-result-rank {
      font-family: 'Press Start 2P', monospace;
      font-size: 26px;
      color: var(--gold);
      letter-spacing: 3px;
      text-shadow: 0 0 14px rgba(245, 200, 0, .55);
      margin: 0;
    }

    .ps-result-rank.ps-rank-perfect {
      color: #c9e84b;
      text-shadow: 0 0 18px rgba(201, 232, 75, .75);
    }

    .ps-result-rank.ps-rank-d {
      color: var(--accent, #e94560);
      text-shadow: 0 0 12px rgba(233, 69, 96, .55);
    }

    .ps-result-time {
      font-family: 'Press Start 2P', monospace;
      font-size: 18px;
      color: #fff;
      letter-spacing: 2px;
      font-variant-numeric: tabular-nums;
    }

    .ps-result-time .ps-num {
      color: var(--gold);
      font-size: 26px;
      margin: 0 2px;
    }

    .ps-result-error {
      font-size: 13px;
      color: rgba(255, 255, 255, .8);
      letter-spacing: 1px;
      font-variant-numeric: tabular-nums;
    }

    .ps-result-error .ps-num {
      color: var(--gold);
      font-family: 'Press Start 2P', monospace;
      font-size: 15px;
      margin: 0 4px;
    }

    .ps-best-flag {
      font-family: 'Press Start 2P', monospace;
      font-size: 11px;
      color: #c9e84b;
      letter-spacing: 2px;
      padding: 6px 14px;
      border: 1px solid rgba(201, 232, 75, .6);
      border-radius: 999px;
      background: rgba(201, 232, 75, .1);
      animation: psBestFlash 1.2s ease-in-out infinite;
    }

    @keyframes psBestFlash {
      0%, 100% { opacity: 1; }
      50% { opacity: .55; }
    }

    .ps-result-btns {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      align-items: center;
      margin-top: 10px;
    }

    @media (prefers-reduced-motion: reduce) {
      .ps-start-btn,
      .ps-stop-btn,
      .ps-char,
      .ps-best-flag {
        animation: none;
      }
    }

    /* ── タップカウンター対決（tb = tap battle） ── */
    .tb-start,
    .tb-play,
    .tb-result {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
      padding: 28px 16px 16px;
      text-align: center;
      /* スマホで子要素が画面幅を超えないように */
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      overflow-x: hidden;
    }

    .tb-title {
      font-family: 'Press Start 2P', monospace;
      font-size: 18px;
      color: var(--gold);
      letter-spacing: 2px;
      text-shadow: 0 0 8px rgba(245, 200, 0, .4);
      margin: 0;
      line-height: 1.5;
    }

    .tb-lead {
      font-size: 13px;
      line-height: 1.9;
      color: rgba(255, 255, 255, .78);
      margin: 0;
    }

    .tb-best {
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      color: rgba(255, 255, 255, .65);
      letter-spacing: 1.5px;
    }

    .tb-best .tb-best-num {
      color: var(--gold);
      font-size: 14px;
      margin: 0 6px;
    }

    .tb-start-btn {
      font-family: 'Press Start 2P', 'Courier New', monospace;
      letter-spacing: 2px;
      border-radius: 6px;
      padding: 16px 28px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease;
      background: var(--primary);
      color: var(--gold);
      border: 3px solid var(--gold);
      font-size: 14px;
      box-shadow:
        0 0 0 3px var(--primary),
        0 0 0 4px rgba(245, 200, 0, .85),
        0 0 20px rgba(245, 200, 0, .45);
      text-transform: uppercase;
    }

    .tb-start-btn:active {
      transform: translateY(2px) scale(.985);
    }

    .tb-hud {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      max-width: 380px;
      gap: 12px;
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      color: rgba(255, 255, 255, .8);
      letter-spacing: 1.5px;
      padding: 0 6px;
    }

    .tb-hud .tb-hud-num {
      color: var(--gold);
      font-size: 18px;
      margin-left: 6px;
      font-variant-numeric: tabular-nums;
    }

    .tb-hud .tb-hud-num.tb-count-num {
      font-size: 22px;
      text-shadow: 0 0 10px rgba(245, 200, 0, .45);
    }

    .tb-tap-area {
      position: relative;
      width: 100%;
      max-width: 320px;
      aspect-ratio: 1 / 1;
      background: radial-gradient(ellipse at center, rgba(245, 200, 0, .18) 0%, rgba(245, 200, 0, .06) 55%, rgba(245, 200, 0, 0) 85%);
      border: 3px solid var(--gold);
      border-radius: 20px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      touch-action: none;            /* 2 本指ピンチ/スクロール抑止 */
      user-select: none;
      -webkit-user-select: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px;
      box-shadow:
        inset 0 0 24px rgba(245, 200, 0, .2),
        0 0 0 1px rgba(245, 200, 0, .35),
        0 0 28px rgba(245, 200, 0, .35);
      transition: transform .06s ease, box-shadow .15s;
      color: inherit;
      font: inherit;
    }

    .tb-tap-area:active {
      transform: scale(.985);
      box-shadow:
        inset 0 0 38px rgba(245, 200, 0, .35),
        0 0 0 1px rgba(245, 200, 0, .55),
        0 0 44px rgba(245, 200, 0, .55);
    }

    .tb-tap-area.tb-disabled {
      pointer-events: none;
      opacity: .55;
      filter: grayscale(.35);
    }

    .tb-char {
      width: 120px;
      height: 120px;
      object-fit: contain;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      pointer-events: none;
      user-select: none;
      -webkit-user-drag: none;
      animation: tbCharPulse 1s ease-in-out infinite;
    }

    @keyframes tbCharPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.06); }
    }

    .tb-tap-hint {
      font-family: 'Press Start 2P', monospace;
      font-size: 18px;
      color: var(--gold);
      letter-spacing: 3px;
      text-shadow: 0 0 10px rgba(245, 200, 0, .55);
      pointer-events: none;
      animation: tbHintBlink 0.8s ease-in-out infinite;
    }

    @keyframes tbHintBlink {
      0%, 100% { opacity: 1; }
      50% { opacity: .55; }
    }

    .tb-multi-hint {
      font-size: 11px;
      color: rgba(255, 255, 255, .6);
      letter-spacing: 1px;
      max-width: 320px;
      line-height: 1.6;
    }

    .tb-result-rank {
      font-family: 'Press Start 2P', monospace;
      font-size: 26px;
      color: var(--gold);
      letter-spacing: 3px;
      text-shadow: 0 0 14px rgba(245, 200, 0, .55);
      margin: 0;
    }

    .tb-result-rank.tb-rank-legend {
      color: #c9e84b;
      text-shadow: 0 0 18px rgba(201, 232, 75, .75);
    }

    .tb-result-rank.tb-rank-d {
      color: var(--accent, #e94560);
      text-shadow: 0 0 12px rgba(233, 69, 96, .55);
    }

    .tb-result-count {
      font-family: 'Press Start 2P', monospace;
      font-size: 14px;
      color: rgba(255, 255, 255, .85);
      letter-spacing: 2px;
    }

    .tb-result-count .tb-num {
      color: var(--gold);
      font-size: 34px;
      margin: 0 6px;
      text-shadow: 0 0 10px rgba(245, 200, 0, .45);
    }

    .tb-result-rate {
      font-size: 12px;
      color: rgba(255, 255, 255, .7);
      letter-spacing: 1px;
      font-variant-numeric: tabular-nums;
    }

    .tb-best-flag {
      font-family: 'Press Start 2P', monospace;
      font-size: 11px;
      color: #c9e84b;
      letter-spacing: 2px;
      padding: 6px 14px;
      border: 1px solid rgba(201, 232, 75, .6);
      border-radius: 999px;
      background: rgba(201, 232, 75, .1);
      animation: tbBestFlash 1.2s ease-in-out infinite;
    }

    @keyframes tbBestFlash {
      0%, 100% { opacity: 1; }
      50% { opacity: .55; }
    }

    .tb-result-btns {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      align-items: center;
      margin-top: 8px;
    }

    @media (prefers-reduced-motion: reduce) {
      .tb-start-btn,
      .tb-char,
      .tb-tap-hint,
      .tb-best-flag {
        animation: none;
      }
    }

    /* ── 覚えて！ラッキークローバー（lc = lucky clover） ── */
    .lc-start,
    .lc-play,
    .lc-result {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
      padding: 24px 16px 16px;
      text-align: center;
      /* スマホで子要素が画面幅を超えないように */
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      overflow-x: hidden;
    }

    .lc-title {
      font-family: 'Press Start 2P', monospace;
      font-size: 16px;
      color: var(--gold);
      letter-spacing: 2px;
      text-shadow: 0 0 8px rgba(245, 200, 0, .4);
      margin: 0;
      line-height: 1.6;
    }

    .lc-lead {
      font-size: 13px;
      line-height: 1.9;
      color: rgba(255, 255, 255, .78);
      margin: 0;
    }

    .lc-best {
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      color: rgba(255, 255, 255, .65);
      letter-spacing: 1.5px;
    }

    .lc-best .lc-best-num {
      color: var(--gold);
      font-size: 14px;
      margin: 0 6px;
    }

    .lc-start-btn {
      font-family: 'Press Start 2P', 'Courier New', monospace;
      letter-spacing: 2px;
      border-radius: 6px;
      padding: 16px 28px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease;
      background: var(--primary);
      color: var(--gold);
      border: 3px solid var(--gold);
      font-size: 14px;
      box-shadow:
        0 0 0 3px var(--primary),
        0 0 0 4px rgba(245, 200, 0, .85),
        0 0 20px rgba(245, 200, 0, .45);
      text-transform: uppercase;
    }

    .lc-start-btn:active {
      transform: translateY(2px) scale(.985);
    }

    .lc-hud {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      max-width: 360px;
      gap: 12px;
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      color: rgba(255, 255, 255, .8);
      letter-spacing: 1.5px;
      padding: 0 6px;
    }

    .lc-hud .lc-hud-num {
      color: var(--gold);
      font-size: 16px;
      margin: 0 6px;
      font-variant-numeric: tabular-nums;
    }

    .lc-phase-label {
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      color: var(--gold);
      letter-spacing: 2px;
      min-height: 14px;
    }

    .lc-phase-label.lc-phase-watch {
      color: #d7ec5e;
      animation: lcPhaseBlink 0.6s ease-in-out infinite;
    }

    @keyframes lcPhaseBlink {
      0%, 100% { opacity: 1; }
      50% { opacity: .5; }
    }

    .lc-pad {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 14px;
      width: 100%;
      max-width: 340px;
      box-sizing: border-box;
      touch-action: manipulation;
    }

    .lc-btn {
      position: relative;
      aspect-ratio: 1 / 1;
      border-radius: 18px;
      border: 2px solid rgba(245, 200, 0, .3);
      background: rgba(255, 255, 255, .04);
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .1s ease, background .15s, border-color .15s, box-shadow .2s, filter .15s;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
      overflow: hidden;
      /* Grid item の自動 min-size を殺す */
      min-width: 0;
      min-height: 0;
    }

    .lc-btn img {
      width: 76%;
      height: 76%;
      object-fit: contain;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      pointer-events: none;
      user-select: none;
      -webkit-user-drag: none;
      filter: saturate(.7) brightness(.8);
      transition: filter .15s, transform .15s;
    }

    /* 4 色バリエーション — クローバーに hue-rotate で差別化 */
    .lc-btn-0 img { filter: hue-rotate(0deg) saturate(.7) brightness(.8); }
    .lc-btn-1 img { filter: hue-rotate(90deg) saturate(.75) brightness(.8); }
    .lc-btn-2 img { filter: hue-rotate(180deg) saturate(.75) brightness(.8); }
    .lc-btn-3 img { filter: hue-rotate(270deg) saturate(.75) brightness(.8); }

    .lc-btn:active {
      transform: scale(.96);
    }

    .lc-btn.lc-lit {
      border-color: var(--gold);
      background: rgba(245, 200, 0, .16);
      box-shadow:
        inset 0 0 22px rgba(245, 200, 0, .35),
        0 0 24px rgba(245, 200, 0, .55);
      transform: scale(1.04);
    }

    .lc-btn.lc-lit img {
      transform: scale(1.1);
    }

    .lc-btn-0.lc-lit img { filter: hue-rotate(0deg) saturate(1.5) brightness(1.25) drop-shadow(0 0 6px rgba(245, 200, 0, .6)); }
    .lc-btn-1.lc-lit img { filter: hue-rotate(90deg) saturate(1.5) brightness(1.25) drop-shadow(0 0 6px rgba(245, 200, 0, .6)); }
    .lc-btn-2.lc-lit img { filter: hue-rotate(180deg) saturate(1.5) brightness(1.25) drop-shadow(0 0 6px rgba(245, 200, 0, .6)); }
    .lc-btn-3.lc-lit img { filter: hue-rotate(270deg) saturate(1.5) brightness(1.25) drop-shadow(0 0 6px rgba(245, 200, 0, .6)); }

    .lc-btn.lc-wrong {
      border-color: var(--accent, #e94560);
      background: rgba(233, 69, 96, .22);
      box-shadow: 0 0 18px rgba(233, 69, 96, .5);
      animation: lcShake .32s ease-in-out;
    }

    @keyframes lcShake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-5px); }
      50% { transform: translateX(5px); }
      75% { transform: translateX(-3px); }
    }

    .lc-btn[aria-disabled="true"] {
      cursor: default;
      opacity: .9;
    }

    .lc-hint {
      font-size: 11px;
      color: rgba(255, 255, 255, .55);
      letter-spacing: 1px;
      max-width: 320px;
      line-height: 1.6;
    }

    .lc-result-rank {
      font-family: 'Press Start 2P', monospace;
      font-size: 26px;
      color: var(--gold);
      letter-spacing: 3px;
      text-shadow: 0 0 14px rgba(245, 200, 0, .55);
      margin: 0;
    }

    .lc-result-rank.lc-rank-legend {
      color: #c9e84b;
      text-shadow: 0 0 18px rgba(201, 232, 75, .75);
    }

    .lc-result-rank.lc-rank-d {
      color: var(--accent, #e94560);
      text-shadow: 0 0 12px rgba(233, 69, 96, .55);
    }

    .lc-result-score {
      font-family: 'Press Start 2P', monospace;
      font-size: 14px;
      color: rgba(255, 255, 255, .85);
      letter-spacing: 2px;
    }

    .lc-result-score .lc-num {
      color: var(--gold);
      font-size: 32px;
      margin: 0 6px;
      text-shadow: 0 0 10px rgba(245, 200, 0, .45);
    }

    .lc-best-flag {
      font-family: 'Press Start 2P', monospace;
      font-size: 11px;
      color: #c9e84b;
      letter-spacing: 2px;
      padding: 6px 14px;
      border: 1px solid rgba(201, 232, 75, .6);
      border-radius: 999px;
      background: rgba(201, 232, 75, .1);
      animation: lcBestFlash 1.2s ease-in-out infinite;
    }

    @keyframes lcBestFlash {
      0%, 100% { opacity: 1; }
      50% { opacity: .55; }
    }

    .lc-result-btns {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      align-items: center;
      margin-top: 8px;
    }

    @media (prefers-reduced-motion: reduce) {
      .lc-start-btn,
      .lc-phase-label.lc-phase-watch,
      .lc-best-flag {
        animation: none;
      }
    }

    /* ── 進め！エモーショナルハート（eh = emo heart, endless runner） ── */
    .eh-start,
    .eh-play,
    .eh-result {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 18px;
      padding: 24px 16px 16px;
      text-align: center;
      /* スマホで子要素が画面幅を超えないように */
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      overflow-x: hidden;
    }

    .eh-title {
      font-family: 'Press Start 2P', monospace;
      font-size: 16px;
      color: var(--gold);
      letter-spacing: 2px;
      text-shadow: 0 0 8px rgba(245, 200, 0, .4);
      margin: 0;
      line-height: 1.6;
    }

    .eh-lead {
      font-size: 13px;
      line-height: 1.9;
      color: rgba(255, 255, 255, .78);
      margin: 0;
    }

    .eh-best {
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      color: rgba(255, 255, 255, .65);
      letter-spacing: 1.5px;
    }

    .eh-best .eh-best-num {
      color: var(--gold);
      font-size: 14px;
      margin: 0 6px;
    }

    .eh-start-btn {
      font-family: 'Press Start 2P', 'Courier New', monospace;
      letter-spacing: 2px;
      border-radius: 6px;
      padding: 16px 28px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease;
      background: var(--primary);
      color: var(--gold);
      border: 3px solid var(--gold);
      font-size: 14px;
      box-shadow:
        0 0 0 3px var(--primary),
        0 0 0 4px rgba(245, 200, 0, .85),
        0 0 20px rgba(245, 200, 0, .45);
      text-transform: uppercase;
    }

    .eh-start-btn:active {
      transform: translateY(2px) scale(.985);
    }

    .eh-hud {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      max-width: 360px;
      gap: 12px;
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      color: rgba(255, 255, 255, .8);
      letter-spacing: 1.5px;
      padding: 0 6px;
    }

    .eh-hud .eh-hud-num {
      color: var(--gold);
      font-size: 16px;
      margin: 0 6px;
      font-variant-numeric: tabular-nums;
    }

    .eh-combo {
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      letter-spacing: 1px;
      color: rgba(255, 255, 255, .55);
      transition: color .12s ease, text-shadow .12s ease, transform .12s ease;
      min-height: 12px;
    }

    .eh-combo-active {
      color: var(--gold);
      text-shadow:
        0 0 6px rgba(245, 200, 0, .8),
        0 0 10px rgba(245, 200, 0, .4);
      animation: ehComboPulse 1.1s ease-in-out infinite;
    }

    @keyframes ehComboPulse {
      0%, 100% { transform: scale(1); }
      50%      { transform: scale(1.06); }
    }

    .eh-stage {
      position: relative;
      width: 100%;
      max-width: 360px;
      aspect-ratio: 360 / 220;
      background:
        linear-gradient(180deg, rgba(245, 200, 0, .04) 0%, rgba(245, 200, 0, 0) 70%),
        radial-gradient(ellipse at 50% 110%, rgba(245, 200, 0, .12) 0%, rgba(245, 200, 0, 0) 60%);
      border: 2px solid rgba(245, 200, 0, .4);
      border-radius: 14px;
      overflow: hidden;
      box-shadow:
        inset 0 0 22px rgba(245, 200, 0, .12),
        0 0 22px rgba(245, 200, 0, .25);
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      touch-action: none;
      user-select: none;
      -webkit-user-select: none;
      padding: 0;
      color: inherit;
      font: inherit;
      transition: transform .06s ease;
    }

    .eh-stage:active {
      transform: scale(.997);
    }

    .eh-canvas {
      display: block;
      width: 100%;
      height: 100%;
      image-rendering: pixelated;
      image-rendering: crisp-edges;
    }

    .eh-overlay-score {
      position: absolute;
      top: 8px;
      right: 12px;
      font-family: 'Press Start 2P', monospace;
      font-size: 12px;
      color: var(--gold);
      letter-spacing: 1.5px;
      text-shadow: 0 0 6px rgba(245, 200, 0, .55);
      font-variant-numeric: tabular-nums;
      pointer-events: none;
    }

    .eh-overlay-hint {
      position: absolute;
      bottom: 10px;
      left: 0;
      right: 0;
      text-align: center;
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      color: rgba(255, 255, 255, .7);
      letter-spacing: 1.5px;
      pointer-events: none;
      animation: ehHintBlink 1.1s ease-in-out infinite;
    }

    @keyframes ehHintBlink {
      0%, 100% { opacity: 1; }
      50% { opacity: .35; }
    }

    .eh-hint {
      font-size: 11px;
      color: rgba(255, 255, 255, .55);
      letter-spacing: 1px;
      max-width: 320px;
      line-height: 1.6;
    }

    .eh-result-rank {
      font-family: 'Press Start 2P', monospace;
      font-size: 26px;
      color: var(--gold);
      letter-spacing: 3px;
      text-shadow: 0 0 14px rgba(245, 200, 0, .55);
      margin: 0;
    }

    .eh-result-rank.eh-rank-legend {
      color: #c9e84b;
      text-shadow: 0 0 18px rgba(201, 232, 75, .75);
    }

    .eh-result-rank.eh-rank-d {
      color: var(--accent, #e94560);
      text-shadow: 0 0 12px rgba(233, 69, 96, .55);
    }

    .eh-result-score {
      font-family: 'Press Start 2P', monospace;
      font-size: 14px;
      color: rgba(255, 255, 255, .85);
      letter-spacing: 2px;
    }

    .eh-result-score .eh-num {
      color: var(--gold);
      font-size: 32px;
      margin: 0 6px;
      text-shadow: 0 0 10px rgba(245, 200, 0, .45);
    }

    .eh-best-flag {
      font-family: 'Press Start 2P', monospace;
      font-size: 11px;
      color: #c9e84b;
      letter-spacing: 2px;
      padding: 6px 14px;
      border: 1px solid rgba(201, 232, 75, .6);
      border-radius: 999px;
      background: rgba(201, 232, 75, .1);
      animation: ehBestFlash 1.2s ease-in-out infinite;
    }

    @keyframes ehBestFlash {
      0%, 100% { opacity: 1; }
      50% { opacity: .55; }
    }

    .eh-result-btns {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      align-items: center;
      margin-top: 8px;
    }

    @media (prefers-reduced-motion: reduce) {
      .eh-start-btn,
      .eh-overlay-hint,
      .eh-best-flag {
        animation: none;
      }
    }

    /* ── SPADIE GAMES 共通コンポーネント（sg = spadie games） ── */
    /* サウンドトグル（ゲームページヘッダー右） */
    .sg-sound-toggle {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      width: 32px;
      height: 32px;
      border: 1px solid rgba(255, 255, 255, .2);
      background: rgba(255, 255, 255, .04);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease, background .15s;
      padding: 0;
    }
    .sg-sound-toggle:active { transform: translateY(-50%) scale(.92); }
    .sg-sound-toggle.is-off { opacity: .55; }
    .sg-sound-icon {
      font-size: 15px;
      line-height: 1;
      filter: grayscale(.1);
    }
    .games-page-header { position: relative; }

    /* 統合ランキングパネル（GAMES一覧ページの先頭） */
    .sg-ranking-panel {
      margin: 0 auto 18px;
      max-width: 480px;
      background: linear-gradient(180deg, rgba(245, 200, 0, .10), rgba(22, 163, 74, .06));
      border: 1px solid rgba(245, 200, 0, .35);
      border-radius: 12px;
      padding: 14px 14px 10px;
      box-shadow: 0 0 22px rgba(245, 200, 0, .12);
    }
    .sg-ranking-head {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 10px;
      margin-bottom: 8px;
    }
    .sg-ranking-label {
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      letter-spacing: 2px;
      color: var(--gold);
    }
    .sg-ranking-total {
      font-family: 'Press Start 2P', monospace;
      color: #fff;
      font-size: 11px;
      letter-spacing: 1.5px;
    }
    .sg-ranking-total-num {
      font-size: 22px;
      color: var(--gold);
      margin-right: 3px;
      text-shadow: 0 0 10px rgba(245, 200, 0, .55);
    }
    .sg-ranking-total small {
      font-size: 10px;
      color: rgba(255, 255, 255, .6);
      margin-left: 2px;
    }
    .sg-ranking-bar {
      height: 6px;
      background: rgba(255, 255, 255, .08);
      border-radius: 999px;
      overflow: hidden;
      margin-bottom: 10px;
    }
    .sg-ranking-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--gold), #ffe26b);
      transition: width .5s ease;
      box-shadow: 0 0 10px rgba(245, 200, 0, .55);
    }
    .sg-ranking-list {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .sg-rank-row {
      display: grid;
      grid-template-columns: 20px 1fr auto 56px;
      align-items: center;
      gap: 8px;
      padding: 4px 2px;
      font-size: 11px;
      color: rgba(255, 255, 255, .85);
      border-bottom: 1px dashed rgba(255, 255, 255, .06);
    }
    .sg-rank-row:last-child { border-bottom: none; }
    .sg-rank-suit {
      font-size: 14px;
      color: var(--gold);
      text-align: center;
    }
    .sg-rank-name {
      font-size: 11px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .sg-rank-best {
      font-family: 'Press Start 2P', monospace;
      font-size: 10px;
      color: rgba(255, 255, 255, .75);
      letter-spacing: .5px;
    }
    .sg-rank-pts {
      font-family: 'Press Start 2P', monospace;
      font-size: 11px;
      color: var(--gold);
      text-align: right;
    }
    .sg-rank-pts small {
      font-size: 8px;
      color: rgba(245, 200, 0, .7);
      margin-left: 1px;
    }

    /* 共通結果画面 */
    .sg-result {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      padding: 28px 16px 80px; /* 固定フッターのぶんだけ下を空ける（タブバーは games-page-body の padding-bottom が吸収） */
      text-align: center;
    }
    .sg-result-rank {
      font-family: 'Press Start 2P', monospace;
      font-size: 26px;
      color: var(--gold);
      letter-spacing: 3px;
      text-shadow: 0 0 14px rgba(245, 200, 0, .55);
      margin: 6px 0 0;
    }
    .sg-result-rank.sg-rank-perfect {
      color: #ffe26b;
      text-shadow: 0 0 18px rgba(255, 226, 107, .85);
      animation: sgPerfectPulse 1s ease-in-out infinite;
    }
    .sg-result-rank.sg-rank-d {
      color: rgba(255, 255, 255, .55);
      text-shadow: none;
    }
    @keyframes sgPerfectPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.06); }
    }
    .sg-result-primary {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }
    .sg-result-primary-label {
      font-family: 'Press Start 2P', monospace;
      font-size: 9px;
      color: rgba(255, 255, 255, .6);
      letter-spacing: 2px;
    }
    .sg-result-primary-value {
      font-family: 'Press Start 2P', monospace;
      font-size: 18px;
      color: #fff;
      letter-spacing: 1.5px;
    }
    .sg-result-primary-value .sg-num {
      color: var(--gold);
      font-size: 30px;
      margin-right: 4px;
      text-shadow: 0 0 10px rgba(245, 200, 0, .4);
    }
    .sg-result-primary-unit {
      font-size: 13px;
      color: rgba(255, 255, 255, .7);
      margin-left: 2px;
    }
    .sg-result-secondary {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .sg-result-secondary-row {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
    }
    .sg-result-secondary-label {
      font-family: 'Press Start 2P', monospace;
      font-size: 8px;
      color: rgba(255, 255, 255, .55);
      letter-spacing: 1.5px;
    }
    .sg-result-secondary-value {
      font-family: 'Press Start 2P', monospace;
      font-size: 13px;
      color: rgba(255, 255, 255, .85);
    }
    .sg-best-flag {
      margin-top: 4px;
      padding: 8px 16px;
      background: linear-gradient(180deg, #ffe26b, var(--gold));
      color: var(--primary);
      font-family: 'Press Start 2P', monospace;
      font-size: 13px;
      letter-spacing: 2px;
      border-radius: 6px;
      box-shadow: 0 0 24px rgba(245, 200, 0, .65);
      animation: sgBestFlag .6s ease-out, sgBestFlagShine 1.8s ease-in-out infinite .6s;
    }
    @keyframes sgBestFlag {
      0% { transform: scale(.5) rotate(-6deg); opacity: 0; }
      60% { transform: scale(1.14) rotate(2deg); opacity: 1; }
      100% { transform: scale(1) rotate(0deg); opacity: 1; }
    }
    @keyframes sgBestFlagShine {
      0%, 100% { box-shadow: 0 0 24px rgba(245, 200, 0, .65); }
      50% { box-shadow: 0 0 32px rgba(255, 226, 107, .9); }
    }
    .sg-extra-btns {
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 100%;
      align-items: center;
      margin-top: 2px;
    }
    .sg-extra-btn {
      font-family: 'Press Start 2P', monospace;
      letter-spacing: 2px;
      border-radius: 6px;
      padding: 10px 18px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease, opacity .15s;
      background: transparent;
      color: rgba(255, 255, 255, .72);
      border: 1px solid rgba(255, 255, 255, .28);
      font-size: 9px;
    }
    .sg-extra-btn:active { transform: scale(.96); opacity: .85; }

    /* 結果画面フッター（fixed、タブバーの直上に固定） */
    .sg-result-footer {
      position: fixed;
      left: 0;
      right: 0;
      bottom: calc(var(--tab-height) + var(--safe-bottom));
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 8px;
      align-items: center;
      padding: 10px 12px;
      background: linear-gradient(180deg, rgba(26, 35, 60, 0), rgba(26, 35, 60, .92) 30%, rgba(26, 35, 60, .98));
      backdrop-filter: blur(4px);
      border-top: 1px solid rgba(255, 255, 255, .06);
      z-index: 50;
    }
    @media (min-width: 900px) {
      /* PC はタブバーが無い構造なので一番下に固定 */
      .sg-result-footer { bottom: 0; }
    }
    .sg-back-btn,
    .sg-share-btn,
    .sg-restart-btn {
      font-family: 'Press Start 2P', monospace;
      border-radius: 6px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform .12s ease, opacity .15s;
      letter-spacing: 1.5px;
      padding: 10px 12px;
      font-size: 10px;
    }
    .sg-back-btn {
      background: transparent;
      color: rgba(255, 255, 255, .75);
      border: 1px solid rgba(255, 255, 255, .25);
    }
    .sg-share-btn {
      background: #000;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, .2);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      justify-content: center;
    }
    .sg-share-x {
      font-family: 'Inter', 'Hiragino Sans', system-ui, sans-serif;
      font-weight: 900;
      font-size: 14px;
      letter-spacing: 0;
    }
    .sg-restart-btn {
      background: var(--primary);
      color: var(--gold);
      border: 2px solid var(--gold);
      font-size: 10px;
      padding: 10px 14px;
      box-shadow: 0 0 0 2px var(--primary), 0 0 14px rgba(245, 200, 0, .45);
      animation: sgRestartGlow 2.4s ease-in-out infinite;
    }
    .sg-back-btn:active,
    .sg-share-btn:active,
    .sg-restart-btn:active { transform: scale(.96); opacity: .88; }
    @keyframes sgRestartGlow {
      0%, 100% { box-shadow: 0 0 0 2px var(--primary), 0 0 14px rgba(245, 200, 0, .45); }
      50% { box-shadow: 0 0 0 2px var(--primary), 0 0 22px rgba(245, 200, 0, .8); }
    }

    /* 紙吹雪（BEST更新時） */
    .sg-confetti-host {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      overflow: hidden;
      z-index: 4;
    }
    .sg-confetti-piece {
      position: absolute;
      top: -12px;
      width: 8px;
      height: 14px;
      opacity: 0;
      animation: sgConfettiFall linear forwards;
    }
    @keyframes sgConfettiFall {
      0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
      10%  { opacity: 1; }
      100% { transform: translateY(560px) rotate(720deg); opacity: 0; }
    }

    /* カウントダウン（3→2→1→GO） */
    .sg-countdown-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(14, 22, 44, .74);
      backdrop-filter: blur(2px);
      z-index: 100;
      pointer-events: none;
    }
    .sg-countdown-num {
      font-family: 'Press Start 2P', monospace;
      font-size: 72px;
      color: var(--gold);
      letter-spacing: 4px;
      text-shadow: 0 0 30px rgba(245, 200, 0, .8);
      line-height: 1;
    }
    .sg-countdown-num.sg-countdown-pop {
      animation: sgCountPop .5s ease-out;
    }
    .sg-countdown-num.sg-countdown-go {
      color: #ffe26b;
      font-size: 56px;
    }
    @keyframes sgCountPop {
      0%   { transform: scale(.4); opacity: 0; }
      55%  { transform: scale(1.18); opacity: 1; }
      100% { transform: scale(1); opacity: 1; }
    }
    .games-page-body { position: relative; }

    @media (prefers-reduced-motion: reduce) {
      .sg-restart-btn,
      .sg-best-flag,
      .sg-result-rank.sg-rank-perfect,
      .sg-confetti-piece,
      .sg-countdown-num {
        animation: none;
      }
    }

    /* ── Venue Section ── */
    .venue-card {
      background: #fff;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
    }

    .venue-info {
      padding: 14px 16px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .venue-info .vi-pin {
      font-size: 18px;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .venue-info .vi-name {
      font-size: 14px;
      font-weight: 700;
      color: #111;
      margin-bottom: 4px;
    }

    .venue-info .vi-zip {
      font-size: 11px;
      color: #888;
      font-family: 'Inter', sans-serif;
      margin-bottom: 2px;
    }

    .venue-info .vi-address {
      font-size: 12px;
      color: #555;
      line-height: 1.6;
    }

    .venue-map {
      width: 100%;
      height: 200px;
      border: none;
      display: block;
      border-top: 1px solid #eee;
    }

    .venue-map-link {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 12px;
      font-size: 12px;
      font-weight: 700;
      color: var(--accent);
      font-family: 'Inter', sans-serif;
      text-decoration: none;
      border-top: 1px solid #eee;
      background: #fff;
      min-height: 44px;
    }

    .venue-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      border-top: 1px solid #eee;
      background: #fff;
    }

    .venue-action-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 12px 8px;
      min-height: 44px;
      font-size: 12px;
      font-weight: 700;
      color: var(--accent);
      font-family: 'Inter', 'Hiragino Sans', sans-serif;
      text-decoration: none;
      background: transparent;
      border: none;
      border-right: 1px solid #eee;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    .venue-action-btn:last-child {
      border-right: none;
    }

    .venue-action-btn:active {
      background: #f5f5f5;
    }

    /* ── Follow Section（アイコンのみ横並び） ── */
    .follow-row {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 36px;
      padding: 12px 0 4px;
    }

    .follow-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      text-decoration: none;
      transition: transform .15s ease, opacity .15s ease;
    }

    .follow-icon img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .follow-icon:hover {
      transform: translateY(-2px);
    }

    .follow-icon:active {
      opacity: .6;
    }

    /* ── スクロール滑らか化 ── */
    html {
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
    }

    /* ページ描画をGPUレイヤーへ */
    .page.active {
      will-change: auto;
      transform: translateZ(0);
    }

    /* HOME: 最下部の余白を紺で塗りつぶし（最後の section-block の下の白を消す） */
    .page:has(.lucky-section) {
      display: flex;
      flex-direction: column;
      min-height: 100%;
    }

    .page:has(.lucky-section)>.section-block:last-of-type {
      margin-bottom: 0;
    }

    .page:has(.lucky-section)::after {
      content: '';
      flex: 1 1 auto;
      min-height: 0;
      background: #0e5a37;
      margin-top: -1px;
      /* 最後のセクションとの間に髪の毛隙間が出ないように */
    }

    /* モーダルのスクロールがボディに伝播しない */
    .modal-content {
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }

    /* タブのちらつき防止 */
    .day-tab {
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }


    /* ── Utilities ── */
    .container {
      max-width: 480px;
      margin: 0 auto;
    }

    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: var(--text-light);
    }

    .empty-state .empty-icon {
      font-size: 48px;
      margin-bottom: 12px;
    }

    .empty-state p {
      font-size: 14px;
      margin-bottom: 16px;
    }

    .empty-state-action {
      background: var(--blue);
      color: #fff;
      border: none;
      border-radius: 22px;
      padding: 10px 22px;
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      min-height: 44px;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      transition: transform .1s, background .15s;
      box-shadow: 0 3px 12px rgba(15, 52, 96, .3);
    }

    .empty-state-action:hover {
      background: #0a2548;
    }

    .empty-state-action:active {
      transform: scale(.96);
    }

    /* ── Desktop adaptation ── */
    #pc-deco-right {
      display: none;
    }

    #pc-main-logo {
      display: none;
    }

    .pc-marquee {
      display: none;
    }

    /* ── PC Marquee（上下で無限に流れるテキスト） ── */
    @keyframes pc-marquee-ltr {
      from {
        transform: translateX(-50%);
      }

      to {
        transform: translateX(0%);
      }
    }

    @keyframes pc-marquee-rtl {
      from {
        transform: translateX(0%);
      }

      to {
        transform: translateX(-50%);
      }
    }

    /* ══════════════════════════════════════════
   Tablet/PC レイアウト共通変数
   画面幅に応じてレイアウトが破綻しないよう
   全ての PC 装飾配置を CSS 変数で統一管理
   ══════════════════════════════════════════ */
    /* スマホUI統一のため旧PCフレーム/サイドバー設計は無効化（never-match） */
    @media (min-width: 100000px) {
      :root {
        /* 端末フレーム（スマホ風） */
        --pc-frame-w: min(400px, calc(100vw - 32px));
        /* サイドバー（左タブ・右デコ）最小幅
           「トーナメントリスト」「メインスケジュール」のラベルが途切れないよう幅を確保 */
        --pc-sidebar-w: clamp(240px, 24vw, 300px);
        /* 端末フレームとサイドバーの余白 */
        --pc-gap: clamp(12px, 2vw, 32px);
        /* ロゴとサイドバーの余白 */
        --pc-logo-gap: clamp(8px, 1.5vw, 32px);
        /* 片側に必要な空間 = サイドバー + gap */
        --pc-side-min: calc(var(--pc-sidebar-w) + var(--pc-gap));
      }

      html,
      body {
        height: 100%;
      }

      body {
        background: #0a3d26;
        padding-bottom: 0;
        overflow: hidden;
        /* 本体スクロールを止めて #app 内でスクロール */
      }

      /* PC/タブレットではヘッダー非表示 */
      .app-header {
        display: none !important;
      }

      /* 上下に流れる無限マーキー */
      .pc-marquee {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        width: 100vw;
        overflow: hidden;
        pointer-events: none;
        z-index: 1;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
      }

      .pc-marquee--top {
        top: 0;
      }

      .pc-marquee--bottom {
        bottom: 0;
      }

      .pc-marquee-track {
        display: flex;
        width: max-content;
        white-space: nowrap;
        will-change: transform;
      }

      .pc-marquee--top .pc-marquee-track {
        animation: pc-marquee-ltr 90s linear infinite;
      }

      .pc-marquee--bottom .pc-marquee-track {
        animation: pc-marquee-rtl 90s linear infinite;
      }

      .pc-marquee-item {
        flex: 0 0 auto;
        padding: 18px 48px;
        font-family: 'Inter', 'Noto Sans JP', sans-serif;
        font-size: clamp(28px, 4.2vw, 64px);
        font-weight: 900;
        letter-spacing: .04em;
        line-height: 1;
        color: transparent;
        -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
        text-stroke: 1.5px rgba(255, 255, 255, 0.55);
        user-select: none;
      }

      .pc-marquee-item .dot {
        display: inline-block;
        margin: 0 22px;
        color: rgba(255, 255, 255, 0.55);
        -webkit-text-stroke: 0;
      }

      /* #app は角丸の長方形フレームのみ（スマホっぽい外枠だけ） */
      #app {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: var(--pc-frame-w);
        max-width: 400px;
        height: min(840px, calc(100vh - 40px));
        min-height: unset;
        margin: 0;
        background: var(--surface-alt);
        border-radius: 36px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
        z-index: 10;
      }

      /* main を内部スクロール領域にする */
      main {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-top: 0;
        -webkit-overflow-scrolling: touch;
        /* 端で止めて、バウンス・ボディへのスクロール伝播を防ぐ */
        overscroll-behavior: none;
        overscroll-behavior-y: none;
      }

      /* day-tabs の sticky 基準はヘッダー不在につき 0 */
      .day-tabs {
        top: 0 !important;
      }

      /* PC 左サイドメインロゴ（タブバーの左・上下中央）
     中央の端末フレーム(--pc-frame-w)・サイドバー(--pc-sidebar-w)・余白(--pc-gap, --pc-logo-gap)
     を累積した位置に配置。幅は使用可能空間を超えないよう min() でクランプ */
      #pc-main-logo {
        display: block;
        position: fixed;
        top: 50%;
        /* 画面中央から左へ: フレーム半分 + 余白 + サイドバー + ロゴ余白 */
        right: calc(50% + (var(--pc-frame-w) / 2) + var(--pc-gap) + var(--pc-sidebar-w) + var(--pc-logo-gap));
        transform: translateY(-50%);
        /* ロゴ幅 = 「左側空き領域 - サイドバー - 余白 - 最低マージン」を超えない */
        width: min(220px,
            calc((100vw - var(--pc-frame-w)) / 2 - var(--pc-gap) - var(--pc-sidebar-w) - var(--pc-logo-gap) - 24px));
        height: auto;
        z-index: 50;
        user-select: none;
        cursor: pointer;
        transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), filter .25s ease;
        transform-origin: center center;
        will-change: transform;
      }

      /* 画面が狭い場合はロゴを隠して破綻を防ぐ（端末フレーム+両サイドバー+ロゴ2つ分） */
      @media (max-width: 1279px) {
        #pc-main-logo {
          display: none !important;
        }
      }

      #pc-main-logo:hover {
        transform: translateY(-50%) scale(1.08);
        filter: drop-shadow(0 6px 24px rgba(255, 216, 77, .35));
      }

      #pc-main-logo:focus-visible {
        outline: 3px solid #ffd84d;
        outline-offset: 6px;
        border-radius: 12px;
        transform: translateY(-50%) scale(1.08);
      }

      #pc-main-logo:active {
        transform: translateY(-50%) scale(.96);
      }

      #pc-main-logo.spinning {
        animation: pc-main-logo-spin .9s cubic-bezier(.34, 1.56, .64, 1);
      }

      @keyframes pc-main-logo-spin {
        0% {
          transform: translateY(-50%) rotate(0deg) scale(1);
        }

        50% {
          transform: translateY(-50%) rotate(180deg) scale(1.12);
        }

        100% {
          transform: translateY(-50%) rotate(360deg) scale(1);
        }
      }

      /* PC: タブバーを左側縦型メニューに変更
     端末フレーム(--pc-frame-w)の左隣にサイドバー(--pc-sidebar-w)を配置 */
      .tab-bar {
        position: fixed;
        top: 50%;
        left: auto;
        right: calc(50% + (var(--pc-frame-w) / 2) + var(--pc-gap));
        bottom: auto;
        transform: translateY(-50%);
        width: var(--pc-sidebar-w);
        min-width: 240px;
        max-width: 300px;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 18px 14px;
        border-top: none;
        border: 2px solid #0a3d26;
        border-radius: 20px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
        gap: 4px;
      }

      /* 画面が極端に狭い場合はサイドタブを隠してスマホ表示にフォールバック
         サイドバー幅を広げたので、フレーム+gap+サイドバーが左半分に収まる閾値まで引き上げる */
      @media (max-width: 940px) {
        body {
          overflow: auto !important;
        }

        .app-header {
          display: flex !important;
        }

        .tab-bar {
          position: fixed !important;
          top: auto !important;
          bottom: 0 !important;
          left: 0 !important;
          right: 0 !important;
          transform: none !important;
          width: auto !important;
          min-width: 0 !important;
          max-width: none !important;
          height: calc(var(--tab-height) + var(--safe-bottom)) !important;
          flex-direction: row !important;
          border-radius: 0 !important;
          border: none !important;
          border-top: 1px solid var(--border) !important;
          padding: 0 !important;
          box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06) !important;
          background: #fff !important;
        }

        #app {
          position: static !important;
          transform: none !important;
          width: 100% !important;
          max-width: 100% !important;
          height: auto !important;
          min-height: 100vh !important;
          border-radius: 0 !important;
          box-shadow: none !important;
          background: var(--surface-alt) !important;
        }

        #pc-deco-right {
          display: none !important;
        }

        .pc-marquee {
          display: none !important;
        }

        main {
          padding-top: calc(var(--header-height) + var(--safe-top)) !important;
        }
      }

      .tab-bar .tab-item {
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 14px 14px;
        border-radius: 12px;
        width: 100%;
        color: #0e5a37;
        font-weight: 700;
      }

      .tab-bar .tab-item:hover {
        background: #eef3fa;
      }

      .tab-bar .tab-item.active {
        background: #eef3fa;
        color: var(--accent);
      }

      .tab-bar .tab-item .tab-icon {
        font-size: 22px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }

      .tab-bar .tab-item .tab-svg-icon {
        width: 28px;
        height: 28px;
        opacity: 0.8;
      }

      .tab-bar .tab-item.active .tab-svg-icon {
        opacity: 1;
      }

      .tab-bar .tab-item .tab-label {
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0;
        /* PC サイドバーでは省略せず全文表示 */
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
      }

      /* モーダルは #app の transform により #app 内に収まる */
      .modal-overlay {
        max-width: unset;
        left: 0;
        transform: none;
      }

      /* ── PC Right Deco Panel ──
     端末フレーム(--pc-frame-w)の右隣に配置。画面幅が足りなければ縮退 */
      #pc-deco-right {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        left: calc(50% + (var(--pc-frame-w) / 2) + var(--pc-gap));
        width: calc((100vw - var(--pc-frame-w)) / 2 - var(--pc-gap) * 2);
        max-width: 600px;
        min-width: 220px;
        max-height: calc(100vh - 80px);
      }

      /* デコパネル用の余白が確保できない画面幅では非表示 */
      @media (max-width: 1100px) {
        #pc-deco-right {
          display: none !important;
        }
      }

      .pc-deco-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 16px;
        width: 100%;
        height: 100%;
        max-height: calc(100vh - 100px);
        padding: 8px;
        box-sizing: border-box;
      }

      .pc-deco-cell {
        position: relative;
        overflow: visible;
        min-height: 0;
        cursor: pointer;
        perspective: 600px;
      }

      .pc-deco-card {
        width: 100%;
        height: 100%;
        border-radius: 14px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.08);
        transform-style: preserve-3d;
        transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
        will-change: transform;
      }

      .pc-deco-cell:hover .pc-deco-card {
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
      }

      .pc-deco-bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        pointer-events: none;
      }

      /* キャラクター：カード上端から飛び出す */
      .pc-deco-chara {
        position: absolute;
        bottom: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(60%) scale(0.7);
        width: 75%;
        z-index: 20;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
        filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
        object-fit: contain;
      }

      .pc-deco-cell:hover .pc-deco-chara {
        opacity: 1;
        transform: translateX(-50%) translateY(-30%) scale(1.05);
      }

      /* 下段（3番目・4番目）は下方向に飛び出す */
      .pc-deco-grid>.pc-deco-cell:nth-child(3) .pc-deco-chara,
      .pc-deco-grid>.pc-deco-cell:nth-child(4) .pc-deco-chara {
        bottom: auto;
        top: 50%;
        transform: translateX(-50%) translateY(-60%) scale(0.7);
      }

      .pc-deco-grid>.pc-deco-cell:nth-child(3):hover .pc-deco-chara,
      .pc-deco-grid>.pc-deco-cell:nth-child(4):hover .pc-deco-chara {
        transform: translateX(-50%) translateY(30%) scale(1.05);
      }
    }

    /* ═══════════════════════════════════════════
   アクセシビリティ関連
   ═══════════════════════════════════════════ */

    /* スクリーンリーダー専用テキスト（視覚的には隠す） */
    .sr-only {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }

    /* スキップリンク（キーボード/スクリーンリーダー向け） */
    .skip-to-main {
      position: fixed;
      top: 8px;
      left: 50%;
      transform: translateX(-50%) translateY(-200%);
      z-index: 10000;
      background: #0e5a37;
      color: #ffd84d;
      padding: 10px 18px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      font-family: 'Noto Sans JP', sans-serif;
      text-decoration: none;
      box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
      transition: transform .2s ease;
    }

    .skip-to-main:focus {
      transform: translateX(-50%) translateY(0);
      outline: 3px solid #ffd84d;
      outline-offset: 3px;
    }

    /* キーボード操作時のフォーカスリング（マウス操作時には出さない） */
    :focus {
      outline: none;
    }

    a:focus-visible,
    button:focus-visible,
    [role="button"]:focus-visible,
    .tab-item:focus-visible,
    .day-tab:focus-visible,
    .follow-icon:focus-visible,
    .interview-card:focus-visible,
    .lucky-draw-btn:focus-visible,
    .modal-close-x:focus-visible,
    .banner-dots>*:focus-visible,
    .venue-map-link:focus-visible {
      outline: 3px solid #ffd84d;
      outline-offset: 3px;
      border-radius: 6px;
    }

    .tab-item:focus-visible {
      outline-offset: -3px;
      border-radius: 10px;
    }

    .interview-card:focus-visible {
      outline-offset: 4px;
    }

    /* ラベルのコントラスト：スート色アクセントが付くので個別指定（色は section-block 側で上書き） */

    /* 画像が遷移中のガタつき防止 */
    img {
      max-width: 100%;
    }

    /* モーション抑制ユーザー向け：アニメーション停止 */
    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
      }

      /* マーキューは完全停止 */
      .pc-marquee-track {
        animation: none !important;
        transform: none !important;
      }

      /* バナースライダーの自動めくりは JS 側で止めるのが理想だが、
     アニメーション無効化で視覚上は瞬間切替になる */
      .banner-track {
        transition: none !important;
      }

      /* ラッキーハンドのカードめくり等の装飾的な動きも即時反映 */
      .playing-card-inner {
        transition: none !important;
      }

      /* PC デコ画像のホバー浮き上がりも静止 */
      .pc-deco-card,
      .pc-deco-chara {
        transition: none !important;
      }

      /* メインロゴの回転・拡大は無効化（translateY(-50%) の静的変形は保持） */
      #pc-main-logo {
        transition: none !important;
        animation: none !important;
        transform: translateY(-50%) !important;
      }
    }

    /* ============================================================
       ひみつのじゅもん — 入口トリガー（SPADIE 占いの下）
       ============================================================ */
    .secret-trigger-wrap {
      display: flex;
      justify-content: center;
      margin: -8px 0 24px;
    }

    .secret-trigger {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      min-width: 96px;
      padding: 8px 18px;
      background: transparent;
      color: var(--text-light);
      border: 1.5px dashed var(--text-light);
      border-radius: 9999px;
      font-family: 'Courier New', 'MS Gothic', 'Osaka-Mono', monospace;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: 4px;
      cursor: pointer;
      opacity: 0.6;
      -webkit-tap-highlight-color: transparent;
      transition: opacity 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
    }

    .secret-trigger:hover,
    .secret-trigger:focus-visible {
      opacity: 1;
      color: var(--primary);
      border-color: var(--primary);
      outline: none;
    }

    .secret-trigger:active {
      transform: scale(0.96);
    }

    /* ============================================================
       ひみつのじゅもん — ドラクエ風 8bit 入力モーダル
       #secret ハッシュ起動 → じゅもん入力 → 正解時に写真を表示
       ============================================================ */
    .spell-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.85);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 16px;
      /* iOS safe-area 対応 */
      padding-top: calc(16px + env(safe-area-inset-top, 0px));
      padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .spell-overlay.active {
      display: flex;
    }

    .spell-window {
      background: #000;
      color: #fff;
      border: 3px solid #fff;
      border-radius: 8px;
      box-shadow: 0 0 0 6px #000, 0 0 0 9px #fff, 0 16px 40px rgba(0, 0, 0, 0.6);
      padding: 24px 22px;
      width: 100%;
      max-width: 360px;
      font-family: 'Courier New', 'DotGothic16', 'MS Gothic', 'Osaka-Mono', monospace;
      font-weight: 700;
      letter-spacing: 1px;
      line-height: 1.7;
    }

    .spell-title {
      font-size: 13px;
      color: #ffe04d;
      margin: 0 0 10px;
      letter-spacing: 2px;
    }

    .spell-text {
      font-size: 15px;
      line-height: 1.8;
      min-height: 3.2em;
      margin: 0 0 14px;
      white-space: pre-wrap;
    }

    .spell-text .caret {
      display: inline-block;
      width: 0.6em;
      height: 1em;
      background: #fff;
      vertical-align: -2px;
      margin-left: 2px;
      animation: spell-caret 0.9s steps(2, end) infinite;
    }

    @keyframes spell-caret {

      0%,
      50% {
        opacity: 1;
      }

      50.01%,
      100% {
        opacity: 0;
      }
    }

    .spell-input {
      width: 100%;
      background: #000;
      color: #fff;
      border: 2px solid #fff;
      border-radius: 4px;
      padding: 10px 12px;
      font-family: inherit;
      font-size: 16px;
      /* iOS ズーム回避のため 16px 以上 */
      font-weight: 700;
      letter-spacing: 2px;
      outline: none;
      box-sizing: border-box;
      -webkit-appearance: none;
      ime-mode: active;
    }

    .spell-input:focus {
      border-color: #ffe04d;
      box-shadow: 0 0 0 2px rgba(255, 224, 77, 0.25);
    }

    .spell-btns {
      display: flex;
      gap: 10px;
      margin-top: 14px;
    }

    .spell-btn {
      flex: 1 1 0;
      background: #000;
      color: #fff;
      border: 2px solid #fff;
      border-radius: 4px;
      padding: 10px 8px;
      font-family: inherit;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 2px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: transform 0.08s, background 0.15s, color 0.15s;
    }

    .spell-btn:hover,
    .spell-btn:focus-visible {
      background: #ffe04d;
      color: #000;
      outline: none;
    }

    .spell-btn:active {
      transform: scale(0.96);
    }

    .spell-btn.primary {
      color: #ffe04d;
      border-color: #ffe04d;
    }

    .spell-btn.primary:hover,
    .spell-btn.primary:focus-visible {
      background: #ffe04d;
      color: #000;
    }

    .spell-window.shake {
      animation: spell-shake 0.4s;
    }

    @keyframes spell-shake {

      0%,
      100% {
        transform: translateX(0);
      }

      20% {
        transform: translateX(-6px);
      }

      40% {
        transform: translateX(6px);
      }

      60% {
        transform: translateX(-4px);
      }

      80% {
        transform: translateX(4px);
      }
    }

    /* ── 写真モーダル（正解時） ── */
    .spell-photo-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.94);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 2100;
      padding: 16px;
    }

    .spell-photo-overlay.active {
      display: flex;
    }

    .spell-photo-wrap {
      position: relative;
      max-width: 100%;
      max-height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .spell-photo-img {
      max-width: 100%;
      max-height: calc(100vh - 160px);
      max-height: calc(100svh - 160px);
      object-fit: contain;
      border-radius: 6px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
      animation: spell-photo-pop 0.35s cubic-bezier(0.18, 0.9, 0.32, 1.2);
    }

    @keyframes spell-photo-pop {
      0% {
        transform: scale(0.6);
        opacity: 0;
      }

      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    .spell-photo-close {
      position: absolute;
      top: -8px;
      right: -8px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #fff;
      color: #000;
      border: none;
      font-size: 22px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
      -webkit-tap-highlight-color: transparent;
    }

    .spell-photo-caption {
      position: absolute;
      top: 100%;
      margin-top: 12px;
      left: 0;
      right: 0;
      text-align: center;
      color: #ffe04d;
      font-family: 'Courier New', 'DotGothic16', 'MS Gothic', 'Osaka-Mono', monospace;
      font-weight: 700;
      font-size: 20px;
      letter-spacing: 3px;
      line-height: 1.4;
    }

    /* ============================================================
       スマホUI統一: PC幅でも「電話幅の中央カラム + 下タブ」で表示する。
       （90%以上がスマホ閲覧のため、PC専用レイアウトは廃止）
       ============================================================ */
    @media (min-width: 481px) {
      body {
        background: var(--surface-alt);
      }
      /* ヘッダー・本体は #app(電話幅) に収め中央寄せ */
      #app {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
      }
      /* 下タブバーも電話幅で中央寄せ */
      .tab-bar {
        width: 480px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
      }
    }

    /* ============================================================
       U-30 パンク装飾（緑ベース × ペンキ/マーカー/スプラッター）
       ============================================================ */
    /* セクション右上の card-suit を colorful splatter に置換（グラフィティ感） */
    .section-block::after {
      content: '' !important;
      width: 128px;
      height: 96px;
      top: 6px !important;
      right: 4px !important;
      font-size: 0 !important;
      color: transparent !important;
      background: url('img/deco/splatter.webp') right top / contain no-repeat;
      opacity: .5 !important;
      transform: rotate(4deg);
    }

    /* セクションタイトル下に手描きマーカーの走り書き（パンク） */
    .section-block-title {
      position: relative;
    }
    .section-block-title::after {
      content: '';
      display: block;
      width: 104px;
      height: 15px;
      margin-top: 8px;
      background: url('img/deco/marker_9.webp') left center / contain no-repeat;
      /* ダーク(緑)セクション向けに黒→白へ反転 */
      filter: brightness(0) invert(1);
      opacity: .92;
    }
    /* ライト系セクションは黒マーカーのまま（反転しない） */
    .section-block.interview-section .section-block-title::after,
    .section-block.venue-section .section-block-title::after,
    .section-block.games-section .section-block-title::after {
      filter: none;
      opacity: .85;
    }

    /* ラベル先頭の card-suit マークは撤去（パンクはマーカーに委ねる） */
    .section-block-label::before {
      display: none !important;
    }

    /* 上部アクセントバーを少し太く・パンクに */
    .section-block::before {
      height: 5px !important;
      opacity: 1 !important;
    }

    /* ============================================================
       U-30 Arcane Punk v2 — ペンキを主役に / グリッティ
       ============================================================ */
    /* 背景: 緑は1系統に統一・明度を抑える ＋ 黒の落書き（ポスター調）。ホームのみ。 */
    body[data-page="home"] {
      background:
        url('img/deco/splatter_black.webp') -70px 10% / 280px auto no-repeat fixed,
        url('img/deco/splatter_black.webp') 40% 94% / 320px auto no-repeat fixed,
        radial-gradient(140% 105% at 50% -5%, #1f8038 0%, #176a30 55%, #114f25 100%) fixed,
        #176a30 !important;
    }
    /* 他ページ（リスト等）はライト緑を維持して可読性確保 */
    body:not([data-page="home"]) {
      background: var(--surface-alt) !important;
    }
    /* ダーク系セクションは“黒バナー”寄りの極深緑（ポスター調・ビビッド緑背景に映える） */
    .section-block {
      background: #0c2417;
      border-radius: 16px;
      border: 2px solid rgba(0,0,0,.25);
    }

    /* 見出しラベル = ペンキで殴り描いたタグ（主役のペンキ） */
    .section-block-label {
      position: relative;
      display: inline-block !important;
      color: #fff !important;
      font-size: 13px !important;
      font-weight: 900 !important;
      letter-spacing: .1em;
      line-height: 1;
      padding: 9px 18px 13px !important;
      margin: 0 0 10px 18px !important;
      background: url('img/deco/paint_orange.webp') center / 100% 100% no-repeat;
      filter: drop-shadow(0 3px 5px rgba(0,0,0,.45));
      transform: rotate(-2.5deg);
      text-shadow: 0 1px 2px rgba(0,0,0,.4);
    }
    .interview-section .section-block-label,
    .follow-section  .section-block-label { background-image: url('img/deco/paint_red.webp'); }
    .floormap-section .section-block-label { background-image: url('img/deco/paint_yellow.webp'); color:#1a1206 !important; text-shadow:none; }
    .venue-section   .section-block-label { background-image: url('img/deco/paint_orange.webp'); }

    /* 右上スプラッターを大きく・濃く（はみ出させる） */
    .section-block::after {
      width: 200px !important;
      height: 150px !important;
      top: -16px !important;
      right: -18px !important;
      opacity: .9 !important;
      transform: rotate(8deg);
    }

    /* ヒーロー: ラッパーにペンキを付与（スライダー自体はクリップ維持＝PC崩れ防止） */
    .hero-wrap { position: relative; }
    .hero-wrap::after {
      content: '';
      position: absolute;
      left: -8px; bottom: -26px;
      width: 200px; height: 150px;
      background: url('img/deco/splatter.webp') left bottom / contain no-repeat;
      transform: scaleX(-1) rotate(-6deg);
      pointer-events: none;
      z-index: 4;
      filter: drop-shadow(0 4px 6px rgba(0,0,0,.4));
    }
    .hero-wrap::before {
      content: '';
      position: absolute;
      left: 0; right: 0; bottom: -16px;
      height: 60px;
      background: url('img/deco/paint_yellow.webp') center bottom / 240px 100% repeat-x;
      transform: scaleY(-1);
      pointer-events: none;
      z-index: 3;
      filter: drop-shadow(0 6px 4px rgba(0,0,0,.3));
    }

    /* CTA = 赤ペンキのボタン（殴り描き） */
    .promo-strip {
      background: url('img/deco/paint_red.webp') center / 100% 100% no-repeat !important;
      border-radius: 0 !important;
      padding: 16px 18px 20px !important;
      transform: rotate(-1deg);
      filter: drop-shadow(0 4px 8px rgba(0,0,0,.35));
    }
    .promo-strip-text, .promo-strip-arrow {
      color: #fff !important;
      text-shadow: 0 2px 3px rgba(0,0,0,.45);
      font-weight: 900 !important;
    }

    /* タイトル下マーカーをより太く・走り書き感UP */
    .section-block-title::after {
      width: 130px;
      height: 18px;
      opacity: 1;
    }

    /* セクションごとに手描きモチーフを出し分け（単調な→を脱却） */
    .interview-section .section-block-title::after {   /* 優勝者インタビュー = 王冠 */
      background-image: url('img/deco/marker_14.webp');
      width: 60px; height: 36px; margin-top: 6px;
    }
    .floormap-section .section-block-title::after {    /* フロアマップ = 星 */
      background-image: url('img/deco/marker_1.webp');
      width: 40px; height: 36px; margin-top: 6px;
    }
    .venue-section .section-block-title::after {       /* アクセス = マーカー非表示 */
      display: none !important;
    }
    .follow-section .section-block-title::after {      /* フォロー = ハート */
      background-image: url('img/deco/marker_11.webp');
      width: 46px; height: 36px; margin-top: 6px;
    }

    /* 右上のチップ(スプラッター)をセクション別に U-30 公式キャラへ置換（立体＋揺れ） */
    .section-block.interview-section::after,
    .section-block.floormap-section::after,
    .section-block.venue-section::after,
    .section-block.follow-section::after,
    .section-block.tournament-section::after {
      width: 116px !important;
      height: 116px !important;
      top: 4px !important;
      right: 6px !important;
      opacity: .95 !important;
      background-position: right top;
      background-size: contain;
      transform: rotate(var(--crot, 0deg));
      filter: drop-shadow(4px 8px 6px rgba(0, 0, 0, .38));
      animation: charaBob var(--cdur, 4s) ease-in-out var(--cdelay, 0s) infinite;
      will-change: transform, filter;
    }
    .section-block.interview-section::after  { background-image: url('img/character/u30/lion.webp'); --crot: 5deg;  --cdur: 4.2s; --cdelay: 0s; }
    .section-block.floormap-section::after   { background-image: url('img/character/u30/tori.webp'); --crot: -6deg; --cdur: 3.6s; --cdelay: .3s; }
    .section-block.venue-section::after      { background-image: url('img/character/u30/inu.webp');  --crot: 4deg;  --cdur: 4.6s; --cdelay: .15s; }
    .section-block.follow-section::after     { background-image: url('img/character/u30/neko.webp'); --crot: -5deg; --cdur: 3.9s; --cdelay: .5s; }
    .section-block.tournament-section::after { background-image: url('img/character/u30/ryu.webp') !important; --crot: 6deg; --cdur: 4.0s; --cdelay: .2s; }

    /* ふわっと揺れる（立体感のための上下＋わずかな傾き＋影伸び） */
    @keyframes charaBob {
      0%, 100% {
        transform: translateY(0) rotate(var(--crot));
        filter: drop-shadow(4px 8px 6px rgba(0, 0, 0, .38));
      }
      50% {
        transform: translateY(-10px) rotate(calc(var(--crot) - 3deg));
        filter: drop-shadow(7px 16px 11px rgba(0, 0, 0, .26));
      }
    }

    /* 動きを抑える設定のユーザーには静止 */
    @media (prefers-reduced-motion: reduce) {
      #splash .splash-chara,
      .section-block.interview-section::after,
      .section-block.floormap-section::after,
      .section-block.venue-section::after,
      .section-block.follow-section::after,
      .section-block.tournament-section::after {
        animation: none !important;
      }
    }
    .tournament-section .section-block-title::after { /* トーナメント = 星バースト */
      background-image: url('img/deco/marker_7.webp');
      width: 56px; height: 34px; margin-top: 6px;
    }

    /* ── トーナメントリスト 枠付き縦並び ── */
    .tl-frame {
      background: #fff;
      border: 2px solid rgba(0,0,0,.18);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(0,0,0,.28);
    }
    /* Pick up: テーマ別グループ見出し */
    .tl-group + .tl-group { border-top: 6px solid var(--surface-alt); }
    .tl-group-head {
      display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
      padding: 12px 14px 10px 16px;
      background: linear-gradient(90deg, rgba(14,90,55,.12), rgba(14,90,55,.02));
      border-left: 5px solid var(--primary);
      border-bottom: 1px solid #eee;
    }
    .tl-group-title { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 15px; color: var(--primary); letter-spacing: .01em; }
    .tl-group-sub { font-size: 11px; font-weight: 700; color: var(--text-light); }
    .tl-empty {
      padding: 30px 16px;
      text-align: center;
      color: #7a8a80;
      font-size: 13px;
      font-weight: 700;
    }
    .tl-row {
      display: flex;
      align-items: center;
      gap: 12px;
      width: 100%;
      padding: 13px 14px;
      background: #fff;
      border: none;
      border-bottom: 1px solid #eee;
      text-align: left;
      cursor: pointer;
      font-family: inherit;
      -webkit-tap-highlight-color: transparent;
    }
    .tl-row:last-child { border-bottom: none; }
    .tl-row:active { background: #f5f5f0; }
    .tl-num {
      flex: 0 0 auto;
      min-width: 44px;
      padding: 5px 8px;
      background: var(--primary);
      color: #fff;
      font-weight: 900;
      font-size: 13px;
      border-radius: 8px;
      text-align: center;
      line-height: 1.2;
    }
    .tl-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .tl-name { font-weight: 800; font-size: 14px; color: var(--text); line-height: 1.3; }
    .tl-meta { font-size: 11px; color: #7a8a80; }
    .tl-arrow { flex: 0 0 auto; color: #c2c2c2; font-size: 18px; font-weight: 700; }
    .tl-more {
      display: block;
      text-align: right;
      margin-top: 12px;
      padding-right: 6px;
      color: #fff;
      font-weight: 800;
      font-size: 13px;
      text-decoration: none;
    }
    .tl-more:active { opacity: .7; }

    /* フロアマップ画像（縦長を全幅表示） */
    .floormap-img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 10px;
    }

    /* ── アクセス 文字情報 ── */
    .access-info {
      margin: 0 0 16px;
      padding: 2px;
    }
    .access-list {
      list-style: none;
      margin: 0 0 14px;
      padding: 0;
    }
    .access-list li {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 4px 8px;
      padding: 10px 2px;
      border-bottom: 1px dashed rgba(14, 90, 55, .25);
      font-size: 14px;
      color: #15281f;
      line-height: 1.5;
    }
    .access-list li:last-child { border-bottom: none; }
    .ac-station { font-weight: 900; color: var(--primary); }
    .ac-walk { font-weight: 700; }
    .ac-line { width: 100%; font-size: 12px; color: #5a6b60; }
    .access-note {
      font-size: 12px;
      line-height: 1.7;
      color: #7a4a12;
      background: rgba(245, 196, 0, .16);
      border-left: 4px solid var(--gold);
      border-radius: 0 8px 8px 0;
      padding: 10px 12px;
    }

    /* ── SNS 公式アカウント ボタン ── */
    .sns-btn {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px 14px;
      border-radius: 14px;
      text-decoration: none;
      margin-bottom: 12px;
      border: 2px solid rgba(255, 255, 255, .18);
      box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
      transition: transform .12s ease, filter .12s ease;
    }
    .sns-btn:last-child { margin-bottom: 0; }
    .sns-btn:active { transform: scale(.985); filter: brightness(1.05); }
    .sns-x  { background: #111; }
    .sns-ig { background: linear-gradient(105deg, #515bd4 0%, #8134af 28%, #dd2a7b 62%, #f58529 100%); }

    .sns-ic {
      flex: 0 0 auto;
      width: 44px;
      height: 44px;
      border-radius: 11px;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    }
    .sns-ic img { width: 26px; height: 26px; object-fit: contain; display: block; }

    .sns-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .sns-name {
      color: #fff;
      font-weight: 900;
      font-size: 15px;
      line-height: 1.25;
      letter-spacing: .01em;
    }
    .sns-handle { color: rgba(255, 255, 255, .78); font-size: 12px; font-weight: 600; }

    .sns-cta {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 2px;
      color: #111;
      background: #fff;
      font-weight: 900;
      font-size: 12px;
      padding: 7px 12px;
      border-radius: 999px;
    }
    .sns-arrow { font-size: 14px; line-height: 1; }

    /* SNS見出しは右上キャラに被らないよう右側を空ける */
    .follow-section .section-block-title {
      padding-right: 120px;
      font-size: 20px;
      line-height: 1.35;
    }

    /* ════════ 右上メニュー（ハンバーガー＋全画面ドロワー） ════════ */
    /* モンスト風: ≡＋MENU の固定フローティングボタン（スクロール追従） */
    .menu-btn {
      position: fixed;
      top: calc(12px + var(--safe-top));
      right: calc(14px + var(--safe-right));
      z-index: 200;
      width: 52px;
      height: 52px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      background: rgba(12, 36, 23, .8);
      border: 2px solid rgba(255, 255, 255, .85);
      border-radius: 13px;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
      -webkit-backdrop-filter: blur(4px);
      backdrop-filter: blur(4px);
    }
    .menu-btn:active { transform: scale(.94); }
    .menu-btn-lines { display: flex; flex-direction: column; gap: 4px; width: 22px; }
    .menu-btn-lines span { display: block; height: 2.5px; border-radius: 2px; background: #fff; }
    .menu-btn-text { color: #fff; font-size: 8px; font-weight: 900; letter-spacing: .12em; line-height: 1; }
    /* PC（中央480カラム）ではカラム右端に合わせる */
    @media (min-width: 481px) {
      .menu-btn { right: calc(50% - 240px + 14px); }
    }

    .menu-overlay {
      position: fixed;
      inset: 0;
      z-index: 9998;
      background:
        url('img/deco/splatter_black.webp') right -40px / 320px auto no-repeat,
        rgba(8, 34, 18, .975);
      opacity: 0;
      visibility: hidden;
      transition: opacity .25s ease, visibility .25s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .menu-overlay.open { opacity: 1; visibility: visible; }
    .menu-panel { width: min(440px, 90vw); position: relative; }
    .menu-close {
      position: fixed;
      top: calc(16px + var(--safe-top));
      right: 16px;
      width: 44px; height: 44px;
      border-radius: 50%;
      background: #fff; color: #15281f;
      border: none; cursor: pointer;
      font-size: 20px; font-weight: 900;
      display: flex; align-items: center; justify-content: center;
    }
    .menu-event {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin: 0 0 20px 4px;
      padding-bottom: 16px;
      border-bottom: 2px solid rgba(255, 255, 255, .18);
    }
    .menu-event-title {
      color: var(--gold);
      font-family: 'Inter', sans-serif;
      font-weight: 900;
      letter-spacing: .12em;
      font-size: 15px;
    }
    .menu-event-date {
      color: #fff;
      font-family: 'Inter', sans-serif;
      font-weight: 900;
      font-size: 22px;
      letter-spacing: .01em;
    }
    .menu-event-date small { font-size: 13px; font-weight: 700; opacity: .85; }
    .menu-list { list-style: none; margin: 0; padding: 0; }
    .menu-list li { border-bottom: 1px solid rgba(255, 255, 255, .16); }
    .menu-list a {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 18px 6px;
      color: #fff;
      text-decoration: none;
      font-size: 20px;
      font-weight: 900;
      letter-spacing: .02em;
    }
    .menu-list a:active { color: var(--gold); }
    .menu-no { color: #56c35a; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 900; }
    .menu-sns { display: flex; gap: 14px; margin-top: 26px; padding-left: 4px; }
    .menu-sns a {
      width: 46px; height: 46px; border-radius: 12px;
      background: #fff; display: flex; align-items: center; justify-content: center;
    }
    .menu-sns img { width: 24px; height: 24px; object-fit: contain; }

    /* 固定ヘッダー分のスクロール余白（メニューからの移動先が隠れない） */
    .section-block { scroll-margin-top: calc(var(--safe-top) + 14px); }

    /* ════════ FAQ（よくある質問・アコーディオン） ════════ */
    .section-block.faq-section { background: #f5f5f0; color: #111; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
    .section-block.faq-section .section-block-title { color: #0a3d26; }
    .section-block.faq-section .section-block-title::after { filter: none; opacity: .85; }
    .section-block.faq-section::after {
      background-image: url('img/character/u30/gorilla.webp');
      width: 116px !important; height: 116px !important;
      top: 4px !important; right: 6px !important; opacity: .95 !important;
      background-position: right top; background-size: contain;
      --crot: -4deg; --cdur: 4.3s; --cdelay: .1s;
      filter: drop-shadow(4px 8px 6px rgba(0,0,0,.3));
      animation: charaBob var(--cdur) ease-in-out var(--cdelay) infinite;
    }
    .faq-list { display: flex; flex-direction: column; gap: 10px; }
    .faq-item {
      background: #fff;
      border: 1px solid rgba(0, 0, 0, .1);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    }
    .faq-item summary {
      list-style: none;
      cursor: pointer;
      position: relative;
      padding: 14px 46px 14px 16px;
      font-weight: 800;
      font-size: 14px;
      color: #15281f;
      line-height: 1.45;
    }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after {
      content: '+';
      position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
      font-size: 22px; font-weight: 900; line-height: 1;
      color: var(--primary);
    }
    .faq-item[open] summary::after { content: '−'; }
    .faq-a {
      padding: 2px 16px 16px;
      font-size: 13px;
      line-height: 1.75;
      color: #4f6357;
    }

    /* インタビュー「そのほかを見る」リンク */
    .iv-more {
      display: block;
      text-align: right;
      margin-top: 14px;
      padding-right: 6px;
      color: var(--primary);
      font-weight: 800;
      font-size: 13px;
      text-decoration: none;
    }
    .iv-more:active { opacity: .7; }

    /* ════════ サイトフッター（モンスト風: 中央ロゴ＋リンク） ════════ */
    .site-footer {
      background: #16181c;
      color: #c9ccd2;
      text-align: center;
      padding: 40px 22px calc(30px + var(--tab-height) + var(--safe-bottom));
    }
    .footer-logo {
      width: 168px;
      max-width: 60%;
      height: auto;
      display: block;
      margin: 0 auto 26px;
    }
    .footer-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 14px 26px;
      margin: 0 auto 24px;
      max-width: 420px;
    }
    .footer-links a {
      color: #e6e8ec;
      font-size: 13px;
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
    }
    .footer-links a:active { color: var(--gold); }
    .footer-copy {
      margin: 0;
      color: #6b7079;
      font-size: 11px;
      letter-spacing: .04em;
    }

    /* ════════ PC（web）拡張: 中央カラムを広げ＋一部を多カラム化 ════════ */
    @media (min-width: 980px) {
      #app { max-width: 900px !important; }
      .menu-btn { right: calc(50% - 450px + 14px); }

      /* 下タブバーを本体幅(900px)に合わせ、2項目を中央のヨコ型ピルで表示
         （481px の width:480px 固定を上書き。本体は900pxなのにバーだけ480pxで
          狭く見える不整合を解消し、PCでも収まりよく中央寄せにする） */
      .tab-bar {
        width: min(900px, calc(100vw - 24px));
        justify-content: center;
        gap: 18px;
        padding: 0 16px;
      }
      .tab-item {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 9px;
        min-width: 200px;
        max-width: 280px;
        padding: 10px 22px;
        border-radius: 999px;
        transition: color .2s, background .2s;
      }
      .tab-item:hover { color: var(--accent); background: rgba(14, 90, 55, .07); }
      .tab-item.active { background: rgba(14, 90, 55, .10); }
      .tab-item .tab-icon { font-size: 22px; }
      .tab-item .tab-svg-icon { width: 24px; height: 24px; }
      .tab-item .tab-label { font-size: 13px; letter-spacing: .02em; }
      /* PC では長いラベルも縮小しない */
      .tab-item[aria-label="メインスケジュール"] .tab-label,
      .tab-item[aria-label="トーナメントリスト"] .tab-label {
        font-size: 13px;
        letter-spacing: .02em;
      }

      /* ヒーローはPCでは横長にして高さを抑える */
      .banner-slide { aspect-ratio: 21 / 9; }

      /* 優勝者インタビュー: 横スクロール → 2カラムグリッド */
      .interview-scroll {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        overflow: visible;
        scroll-snap-type: none;
        padding: 4px 4px 8px;
      }
      .interview-card { width: auto; }
      .interview-progress { display: none; }
      .interview-wrap::after { display: none; }

      /* よくある質問: 2カラム */
      .faq-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        align-items: start;
      }
    }

    /* ════════ U-30 トーナメントリスト（jopt参照） ════════ */
    .u30-tl { padding: 16px 14px 28px; }
    .u30-tl-head { margin: 0 4px 16px; }
    .u30-tl-title { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 22px; color: var(--text); letter-spacing: -.2px; }
    .u30-tl-sub { font-size: 12px; font-weight: 800; color: var(--primary); letter-spacing: .06em; margin-top: 2px; }

    .u30-day { margin-bottom: 22px; }
    .u30-day-head {
      display: flex; align-items: baseline; gap: 10px;
      padding: 6px 4px 12px; border-bottom: 2px solid rgba(14, 90, 55, .18); margin-bottom: 12px;
    }
    .u30-day-no { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 18px; color: var(--primary); letter-spacing: .04em; }
    .u30-day-date { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 18px; color: var(--primary); letter-spacing: .04em; }
    .u30-day-count { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--text-light); }

    .u30-cards { display: flex; flex-direction: column; gap: 8px; }

    /* ── アコーディオンカード（JOPT表示方法・U-30配色） ── */
    .u30-card {
      background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
      transition: box-shadow .18s ease, border-color .18s ease;
    }
    .u30-card.is-open { box-shadow: 0 6px 18px rgba(14, 90, 55, .14); border-color: rgba(14, 90, 55, .35); }
    .u30-card.is-main { border-left: 5px solid var(--primary); background: linear-gradient(100deg, rgba(14, 90, 55, .08), rgba(14, 90, 55, .02) 60%, #fff); }
    .u30-card.is-main.is-open { box-shadow: 0 6px 18px rgba(14, 90, 55, .2); }

    /* 終了カード（リザルト反映済み）: JOPT同様にグレーアウト。ただし RESULT 導線は dim しない。 */
    .u30-card.is-finished { background: #f4f5f4; border-color: rgba(0,0,0,.08); }
    .u30-card.is-finished.is-main { background: #f1f3f1; border-left-color: #9aa39d; }
    .u30-card.is-finished .u30-c-no { filter: grayscale(1); opacity: .5; }
    .u30-card.is-finished .u30-c-body { filter: grayscale(.55); opacity: .5; }
    /* ヘッダー右の「🏁 RESULT」チップ（明るく=タップ導線） */
    .u30-c-finchip { display: inline-flex; align-items: center; gap: 3px; padding: 4px 9px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }

    .u30-card-head {
      width: 100%; display: flex; gap: 11px; align-items: flex-start; text-align: left;
      background: none; border: 0; cursor: pointer; padding: 12px 13px; font: inherit;
      -webkit-tap-highlight-color: transparent; transition: background .15s ease;
    }
    .u30-card-head:hover { background: rgba(14, 90, 55, .04); }
    .u30-card-head:active { background: rgba(14, 90, 55, .07); }

    .u30-c-no {
      flex: 0 0 auto; min-width: 42px; padding: 6px 8px; border-radius: 9px; margin-top: 1px;
      font-family: 'Inter', sans-serif; font-weight: 900; font-size: 13px; text-align: center; line-height: 1.1;
    }
    .u30-c-body { flex: 1 1 auto; min-width: 0; }
    .u30-c-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
    .u30-c-game {
      flex: 0 0 auto; font-family: 'Inter', sans-serif; font-weight: 900; font-size: 10px; letter-spacing: .06em;
      color: #fff; background: var(--primary); padding: 2px 7px; border-radius: 6px;
    }
    .u30-c-game[data-g="NLH"] { background: #1d6fd8; }
    .u30-c-game[data-g="NL"], .u30-c-game[data-g="PL"], .u30-c-game[data-g="FL"], .u30-c-game[data-g="MIX"], .u30-c-game[data-g="PLO"] { background: #0f9b8e; }
    .u30-c-game[data-g="SAT"] { background: #64748b; }
    .u30-c-game[data-g="OTHER"] { background: #8b8ea0; }
    .u30-c-name { font-weight: 800; font-size: 14px; color: var(--text); line-height: 1.3; }
    .u30-c-money { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-top: 6px; font-size: 12px; color: var(--text-secondary); }
    .u30-c-fee { font-weight: 800; color: var(--text); }
    .u30-c-chips { color: var(--text-secondary); }
    .u30-c-dot { color: var(--text-light); }

    .u30-c-times { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 74px; }
    .u30-c-tline { display: grid; grid-template-columns: auto auto; gap: 6px; align-items: baseline; }
    .u30-c-tl-lbl { font-size: 9px; color: var(--text-light); letter-spacing: .02em; }
    .u30-c-tl-val { font-weight: 900; font-size: 13px; color: var(--primary); font-variant-numeric: tabular-nums; }
    .u30-c-tline-reg .u30-c-tl-lbl { color: var(--accent); opacity: .85; }
    .u30-c-tline-reg .u30-c-tl-val { color: var(--accent); font-weight: 800; }

    .u30-c-chev { flex: 0 0 auto; width: 15px; height: 15px; color: var(--text-light); margin-top: 4px; transition: transform .2s ease; }
    .u30-card.is-open .u30-c-chev { transform: rotate(180deg); }

    /* ── 展開詳細（タブ + セクション） ── */
    .u30-c-detail { padding: 0 13px 14px; border-top: 1px solid var(--border); }
    .u30-tabbar { display: flex; gap: 6px; margin: 12px 0; }
    .u30-tab {
      flex: 1 1 0; padding: 8px 4px; border: 0; border-radius: 8px; cursor: pointer;
      font-family: 'Inter', sans-serif; font-weight: 900; font-size: 11px; letter-spacing: .06em;
      background: var(--surface-alt); color: var(--text-light); transition: background .15s, color .15s;
    }
    .u30-tab:hover { color: var(--text-secondary); }
    .u30-tab.active { background: var(--primary); color: #fff; box-shadow: 0 2px 6px rgba(14, 90, 55, .25); }

    .u30-sec { background: rgba(14, 90, 55, .045); border-radius: 10px; padding: 11px 12px; margin-bottom: 9px; }
    .u30-sec:last-child { margin-bottom: 0; }
    .u30-sec-title { font-weight: 900; font-size: 13px; color: var(--primary); margin-bottom: 5px; letter-spacing: .02em; }
    .u30-sec-prize { background: var(--gold-light); }
    .u30-sec-prize .u30-sec-title { color: #9a7400; }
    .u30-row { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 3px 0; font-size: 13px; }
    .u30-row-l { color: var(--text-secondary); }
    .u30-row-v { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
    .u30-gtd { font-weight: 900; color: var(--accent); }

    .u30-prep { display: flex; flex-direction: column; gap: 6px; padding: 30px 14px; text-align: center; color: var(--text-light); font-weight: 800; font-size: 14px; }
    .u30-prep-sub { font-size: 11px; font-weight: 600; color: var(--text-light); opacity: .8; }
    .u30-sec-prep { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; padding: 2px 0; font-weight: 800; font-size: 13px; color: var(--text-light); }
    .u30-sec-prep .u30-prep-sub { font-size: 11px; font-weight: 600; }

    /* Prize（Players Guide 反映）: 順位別の賞金・バウチャー一覧 */
    .u30-prize-list { margin-top: 6px; border-top: 1px dashed rgba(154, 116, 0, .28); }
    .u30-prize-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 13px; border-bottom: 1px solid rgba(154, 116, 0, .12); }
    .u30-prize-item:last-child { border-bottom: 0; }
    .u30-prize-rank { font-weight: 800; color: #9a7400; white-space: nowrap; }
    .u30-prize-val { font-weight: 700; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
    .u30-prize-disc { margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(154, 116, 0, .18); font-size: 11px; line-height: 1.55; color: var(--text-secondary); white-space: pre-line; }

    /* Notes（大会別ルール/注記） */
    .u30-notes { margin: 2px 0 0; padding-left: 17px; }
    .u30-notes li { font-size: 12px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 3px; }
    .u30-notes li:last-child { margin-bottom: 0; }

    /* Rule（チーム戦フォーマット等・改行保持のブロック表示） */
    .u30-rule { margin-top: 2px; font-size: 12px; line-height: 1.7; color: var(--text-secondary); white-space: pre-line; }

    /* STRUCTURE テーブル（Players Guide 反映） */
    .u30-st-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; border: 1px solid rgba(14, 90, 55, .14); }
    .u30-st-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
    .u30-st-tbl thead th { position: sticky; top: 0; background: var(--primary); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .02em; padding: 7px 10px; text-align: right; white-space: nowrap; }
    .u30-st-tbl thead th:first-child { text-align: center; }
    .u30-st-tbl tbody td { padding: 6px 10px; text-align: right; border-top: 1px solid rgba(14, 90, 55, .08); white-space: nowrap; }
    .u30-st-tbl tbody tr:nth-child(even) td { background: rgba(14, 90, 55, .035); }
    .u30-st-lv { text-align: center !important; font-weight: 800; color: var(--primary); }
    .u30-st-bl { font-weight: 700; color: var(--text); }
    .u30-st-tbl tr.u30-st-break td { text-align: center; background: var(--gold-light) !important; color: #9a7400; font-weight: 800; font-size: 11px; letter-spacing: .04em; padding: 4px 10px; }
    .u30-st-tbl tr.u30-st-eod td { text-align: center; background: rgba(14, 90, 55, .12) !important; color: var(--primary); font-weight: 800; font-size: 11px; letter-spacing: .04em; padding: 5px 10px; }

    /* RESULT（Day 通過者＋スタック / JOPT 同等: メトリクス＋検索＋並べ替え＋1位ハイライト） */
    .u30-rs-metrics { display: flex; gap: 8px; margin-bottom: 10px; }
    .u30-rs-metric { flex: 1; background: rgba(14, 90, 55, .05); border: 1px solid rgba(14, 90, 55, .12); border-radius: 10px; padding: 8px 6px; text-align: center; }
    .u30-rs-metric-l { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; color: var(--text-light); margin-bottom: 2px; }
    .u30-rs-metric-v { display: block; font-size: 15px; font-weight: 900; color: var(--primary); font-variant-numeric: tabular-nums; }
    .u30-rs-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
    .u30-rs-search { flex: 1; min-width: 0; height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; border: 1px solid rgba(14, 90, 55, .25); background: #fff; color: var(--text); }
    .u30-rs-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 90, 55, .12); }
    .u30-rs-sort { display: inline-flex; border: 1px solid rgba(14, 90, 55, .22); border-radius: 9px; overflow: hidden; flex: none; }
    .u30-rs-sortbtn { border: 0; background: #fff; color: var(--text-secondary); font-size: 11.5px; font-weight: 800; padding: 8px 10px; cursor: pointer; white-space: nowrap; }
    .u30-rs-sortbtn + .u30-rs-sortbtn { border-left: 1px solid rgba(14, 90, 55, .18); }
    .u30-rs-sortbtn.is-on { background: var(--primary); color: #fff; }

    .u30-rs-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; border: 1px solid rgba(14, 90, 55, .14); }
    .u30-rs-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
    .u30-rs-tbl thead th { position: sticky; top: 0; background: var(--primary); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .02em; padding: 7px 10px; text-align: left; white-space: nowrap; }
    .u30-rs-tbl thead th:first-child { text-align: center; width: 40px; }
    .u30-rs-tbl thead th:last-child { text-align: right; }
    .u30-rs-tbl tbody td { padding: 6px 10px; border-top: 1px solid rgba(14, 90, 55, .08); white-space: nowrap; }
    .u30-rs-tbl tbody tr:nth-child(even) td { background: rgba(14, 90, 55, .035); }
    .u30-rs-rk { text-align: center; font-weight: 800; color: var(--primary); }
    .u30-rs-nm { font-weight: 700; color: var(--text); width: 100%; white-space: normal; }
    .u30-rs-ch { text-align: right; font-weight: 700; color: var(--text); }
    /* 1位ハイライト（金） */
    .u30-rs-tbl tbody tr.is-top td { background: var(--gold-light) !important; }
    .u30-rs-tbl tbody tr.is-top .u30-rs-ch { color: #9a7400; font-weight: 900; }
    .u30-rs-medal { font-size: 13px; }
    /* 検索: ヒット強調 / 非ヒットは薄く */
    .u30-rs-tbl tbody tr.is-hit td { background: #fff7d6 !important; }
    .u30-rs-tbl tbody tr.is-hit .u30-rs-nm { color: #9a7400; }
    .u30-rs-tbl tbody tr.is-dim { opacity: .38; }

    .u30-ring {
      margin-top: 12px; padding: 11px 13px; background: rgba(14, 90, 55, .07);
      border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0;
      font-size: 12px; color: var(--text-secondary); line-height: 1.6;
    }
    .u30-tl-empty { padding: 44px 16px; text-align: center; color: var(--text-light); font-weight: 700; }

    @media (min-width: 980px) {
      .u30-tl { max-width: 760px; margin: 0 auto; }
    }
