/* ゲーセンの筐体。画像は使わず CSS だけで描く。
   筐体の色は --marquee（マーキーの色）と --marquee-2（グラデーションの相方）で、ゲームごとに変える。 */
.arcade{
  --neon-pink:#ff3fa4; --neon-cyan:#1ee3ff; --neon-yellow:#ffe14a;
}
.arcade-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.arcade-head .back{color:var(--ink);text-decoration:none;font-size:15px}
.arcade-head .back:hover{color:var(--gold)}
.arcade-title{
  margin:0;font-size:clamp(24px,6vw,34px);font-weight:400;letter-spacing:.08em;
  color:#fff;text-shadow:0 0 6px var(--neon-pink),0 0 14px var(--neon-pink);
}
.arcade-lead{margin:0;color:var(--dim)}

/* 筐体の並ぶ床 */
.floor{
  display:flex;flex-wrap:wrap;gap:28px;justify-content:center;align-items:flex-end;
  padding:28px 12px 0;
  background:
    linear-gradient(to bottom,transparent 82%,#0d0c1f 82%),
    repeating-linear-gradient(90deg,#241f45 0 24px,#2b2552 24px 48px);
  border-radius:8px;
}

/* ---------- 筐体 ---------- */
.cab{
  --marquee:#ff3fa4; --marquee-2:#ffe14a;
  width:min(100%,260px);display:flex;flex-direction:column;align-items:stretch;
  color:var(--ink);text-decoration:none;
}
.cab.big{width:min(100%,520px)}
a.cab{transition:transform .15s}
a.cab:hover,a.cab:focus-visible{transform:translateY(-4px)}
a.cab:focus-visible{outline:none}
a.cab:focus-visible .cab-body{outline:3px solid var(--gold);outline-offset:3px}
@media (prefers-reduced-motion:reduce){a.cab{transition:none}a.cab:hover,a.cab:focus-visible{transform:none}}

.cab-body{
  position:relative;
  background:linear-gradient(90deg,#1c1838 0 6%,#2e2858 6% 94%,#1c1838 94%);
  border:3px solid #0d0c1f;border-radius:10px 10px 4px 4px;
  box-shadow:0 0 0 2px #4a3f86,0 10px 0 #0d0c1f;
  padding:0 10px 10px;
}

/* 上部のマーキー（タイトルの帯） */
.marquee{
  margin:0 -10px 10px;padding:10px 8px;
  border-radius:8px 8px 0 0;border-bottom:3px solid #0d0c1f;
  background:linear-gradient(135deg,var(--marquee),var(--marquee-2));
  color:#fff;text-align:center;font-size:clamp(18px,4.5vw,24px);font-weight:400;letter-spacing:.12em;line-height:1.3;
  text-shadow:0 2px 0 rgba(0,0,0,.45),0 0 8px rgba(255,255,255,.6);
  box-shadow:inset 0 0 18px rgba(255,255,255,.35);
}

/* 画面（スクリーン） */
.cab-screen{
  position:relative;background:#000;border:6px solid #0d0c1f;border-radius:12px;
  box-shadow:inset 0 0 0 2px #3b3b58,0 0 14px rgba(30,227,255,.25);
  overflow:hidden;aspect-ratio:4/3;
}
.cab-screen::after{
  /* うっすら走査線 */
  content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(to bottom,rgba(255,255,255,.04) 0 1px,transparent 1px 3px);
}
.cab-screen canvas{display:block;width:100%;height:100%;touch-action:none;cursor:pointer}

/* 下部のコントロールパネル */
.panel{
  margin:12px -14px 0;padding:12px 16px 14px;
  background:linear-gradient(to bottom,#3a3370,#241f45);
  border:3px solid #0d0c1f;border-radius:6px 6px 2px 2px;
  transform:perspective(300px) rotateX(18deg);transform-origin:top;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.lever{position:relative;width:34px;height:34px;flex:none}
.lever::before{ /* 台座 */
  content:"";position:absolute;left:5px;right:5px;bottom:0;height:10px;border-radius:50%;background:#0d0c1f;
}
.lever::after{ /* 玉と軸 */
  content:"";position:absolute;left:10px;top:0;width:14px;height:14px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#ff9cc8,var(--marquee) 60%,#7a0f45);
  box-shadow:5px 12px 0 -5px #c8c8d8,5px 16px 0 -5px #c8c8d8;
}
.buttons{display:flex;gap:8px}
.btn{
  width:18px;height:18px;border-radius:50%;border:2px solid #0d0c1f;
  background:radial-gradient(circle at 35% 35%,#fff 0 12%,var(--c,#1ee3ff) 40%);
  box-shadow:0 3px 0 #0d0c1f;
}
.btn:nth-child(1){--c:var(--neon-pink)}
.btn:nth-child(2){--c:var(--neon-cyan)}
.btn:nth-child(3){--c:var(--neon-yellow)}
.coin{
  width:22px;height:30px;border-radius:3px;background:#0d0c1f;position:relative;flex:none;
}
.coin::after{content:"";position:absolute;left:10px;top:6px;width:2px;height:12px;background:#ffcf5a;box-shadow:0 0 4px #ffcf5a}

/* 一覧の筐体の下に出る説明 */
.cab-caption{margin:18px 0 0;text-align:center;font-size:14px;color:var(--dim)}

/* 遊ぶページ */
.play-help{margin:18px 0 0;color:var(--dim);font-size:14px;text-align:center}

/* ---------- 画面のプレビュー（一覧用） ----------
   .preview の中に、ゲームのタイトルと簡単な絵を置く。絵の部品はゲームごとに足す。 */
.preview{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px}
.preview-title{font-size:18px;color:#fff;text-shadow:0 0 6px var(--marquee)}
.preview-blink{font-size:12px;color:var(--neon-yellow);animation:blink 1s steps(2,start) infinite}
@keyframes blink{to{visibility:hidden}}
@media (prefers-reduced-motion:reduce){.preview-blink{animation:none}}

/* ブロック崩しのプレビュー */
.pv-bricks{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;width:78%}
.pv-bricks i{height:7px;border-radius:1px}
.pv-bricks i:nth-child(-n+6){background:#ff3fa4}
.pv-bricks i:nth-child(n+7):nth-child(-n+12){background:#ffe14a}
.pv-bricks i:nth-child(n+13){background:#1ee3ff}
.pv-bricks i.gone{visibility:hidden}
.pv-ball{width:6px;height:6px;border-radius:50%;background:#fff;margin:4px 0 0 18%}
.pv-paddle{width:26%;height:5px;border-radius:3px;background:#f4efe0;margin-left:8%}

/* 大怪獣一本勝負のプレビュー */
.pv-kaiju{
  position:relative;width:62%;height:44px;
  background:#4b3a78;
  clip-path:polygon(18% 0,30% 22%,40% 6%,60% 6%,70% 22%,82% 0,86% 34%,100% 52%,100% 100%,0 100%,0 52%,14% 34%);
}
.pv-core{position:absolute;width:7px;height:7px;border-radius:50%;background:#ff2e4d;box-shadow:0 0 4px #ff2e4d}
.pv-core.l{left:12%;top:56%}
.pv-core.r{right:12%;top:56%}
.pv-core.c{left:calc(50% - 5px);top:68%;width:10px;height:10px;box-shadow:0 0 0 2px rgba(30,227,255,.6),0 0 6px #ff2e4d}
.pv-shots{width:2px;height:16px;background:repeating-linear-gradient(to bottom,#ffe14a 0 4px,transparent 4px 8px)}
.pv-ship{
  width:12px;height:10px;background:#f4efe0;
  clip-path:polygon(50% 0,100% 100%,50% 75%,0 100%);
}
