/* Arcade page only: slot cabinet, meters, reels, bonus dialog. Loaded after styles.css by arcade.html. */
.cabinet { position: relative; max-width: 740px; margin: 54px auto 0; padding: 18px clamp(10px, 3vw, 28px) 20px; color: var(--ink);
  background: linear-gradient(180deg, #3a2418 0%, #261710 60%, #1c110c 100%);
  box-shadow: 0 -4px 0 0 #a97a4c, 0 4px 0 0 #1a0f0a, -4px 0 0 0 #8a5d3c, 4px 0 0 0 #1a0f0a, 0 0 0 8px #0d0807, 0 18px 0 6px rgba(0, 0, 0, .3), 0 0 90px 10px rgba(255, 150, 40, .28), inset 0 0 60px rgba(0, 0, 0, .5); }
.marquee { margin: -34px auto 14px; width: min(86%, 440px); background: linear-gradient(180deg, #ffb347, #e8741a); color: #2a1004; text-align: center; padding: 10px 12px 8px;
  box-shadow: 0 -3px 0 0 #fff0c0, 0 3px 0 0 #7a2a0a, -3px 0 0 0 #fff0c0, 3px 0 0 0 #7a2a0a, 0 0 30px rgba(255, 170, 50, .75); }
.marquee span { font: 700 clamp(24px, 5vw, 36px)/1 var(--display); letter-spacing: .08em; }
.meters { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.meters li { background: #130c09; border: 2px solid var(--m, #e7c98a); padding: 6px 4px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; box-shadow: inset 0 0 14px rgba(0, 0, 0, .8), 0 0 14px color-mix(in srgb, var(--m, #e7c98a) 35%, transparent); }
.meters canvas { width: 28px; height: 28px; }
.meters .nm { font: 700 14px/1.1 var(--ui); color: var(--m, #ffe0a8); }
.meters .val { font: 700 clamp(17px, 3.4vw, 24px)/1.1 var(--ui); color: #fff3dc; font-variant-numeric: tabular-nums; }
.meters li.hit { animation: meterHit 1s ease-in-out 3; }
@keyframes meterHit { 50% { box-shadow: 0 0 0 4px var(--m), 0 0 26px var(--m), inset 0 0 14px rgba(0, 0, 0, .8); } }
.meters li.hit .val, .meters li.hit .nm { }
.meters.mini { margin-bottom: 10px; }
.reels-window { position: relative; padding: 10px; background: #0b0706; box-shadow: inset 0 0 0 3px #a97a4c, inset 0 0 0 6px #1c110c, 0 0 0 3px #0d0807; margin: 0 auto; width: fit-content; max-width: 100%; }
.reels { --cell: min(100px, calc((100vw - 86px) / 5)); display: flex; gap: 5px; }
.reel { width: var(--cell); height: calc(var(--cell) * 3); overflow: hidden; background: linear-gradient(180deg, #3a2a44, #2a1d33 50%, #3a2a44); position: relative; box-shadow: inset 0 0 18px rgba(0, 0, 0, .7); }
.strip { will-change: transform; }
.cell { width: var(--cell); height: var(--cell); display: flex; align-items: center; justify-content: center; position: relative; }
.cell img { width: 80%; height: 80%; display: block; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)); }
.cell.win { animation: winPulse .6s ease-in-out 4; background: radial-gradient(circle, rgba(255, 220, 120, .55), transparent 70%); }
.cell.win img { filter: drop-shadow(0 0 8px #ffd27a) drop-shadow(0 2px 0 rgba(0, 0, 0, .45)); }
.cell.bonus img { filter: drop-shadow(0 0 10px #fff09a); animation: winPulse .5s ease-in-out infinite; }
@keyframes winPulse { 50% { transform: scale(1.08); } }
.glass { position: absolute; inset: 10px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, 0) 28%), linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 22%, transparent 78%, rgba(0, 0, 0, .35)); }
.status { margin: 14px 0 10px; min-height: 3.2em; text-align: center; font-size: 17px; color: #fff3dc; background: rgba(0, 0, 0, .35); padding: 8px 10px; border: 2px solid rgba(231, 201, 138, .5); }
.controls { display: grid; grid-template-columns: 1fr 1fr auto 1fr; gap: 10px; align-items: end; }
.stat { display: flex; flex-direction: column; gap: 3px; align-items: center; background: #130c09; padding: 6px 6px 8px; border: 2px solid rgba(231, 201, 138, .5); min-height: 70px; justify-content: center; }
.stat span { font: 700 14px/1.15 var(--ui); color: #ffbe66; }
.stat output { font: 700 24px/1 var(--ui); color: #fff3dc; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 38px; height: 38px; background: #3a2418; color: #ffe0a8; border: 2px solid var(--gold); font: 700 22px/1 var(--ui); cursor: pointer; padding: 0; }
.stepper button:hover { background: #5a3722; }
.stepper output { min-width: 34px; text-align: center; }
.spin { align-self: stretch; min-width: 112px; min-height: 70px; background: radial-gradient(circle at 50% 30%, #ffd27a, #ff9f2e 55%, #b5400d); color: #2a1004; border: 0; cursor: pointer; font: 700 28px/1 var(--ui);
  box-shadow: 0 -4px 0 0 #fff0c0, 0 4px 0 0 #6b2208, -4px 0 0 0 #fff0c0, 4px 0 0 0 #6b2208, 0 8px 0 4px rgba(0, 0, 0, .4), 0 0 30px rgba(255, 150, 40, .6); }
.spin:hover:not(:disabled) { filter: brightness(1.1); }
.spin:active:not(:disabled) { transform: translateY(4px); }
.spin:disabled, .stepper button:disabled { opacity: .55; cursor: wait; }
.tools { text-align: center; margin: 14px 0 6px; font-size: 15px; color: var(--ink-soft); }
.howto { margin-top: 10px; background: rgba(0, 0, 0, .3); border: 2px solid rgba(231, 201, 138, .4); padding: 8px 14px; }
.howto summary { cursor: pointer; font: 600 17px/1.2 var(--ui); color: #ffe0a8; min-height: 32px; padding: 4px 0; }
.howto-body { font-size: 15.5px; padding-bottom: 6px; }
.paytable { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; }
.paytable li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.paytable img { width: 28px; height: 28px; image-rendering: pixelated; }
.fine { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* ---- bonus overlay ---- */
.bonus { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 12px; background: radial-gradient(circle at 50% 40%, rgba(60, 28, 6, .86), rgba(6, 3, 10, .94)); overflow-y: auto; }
.bonus[hidden] { display: none; }
.bonus-card { width: min(440px, 100%); background: linear-gradient(180deg, #2a1a12, #170e0a); padding: 16px 16px 14px; margin: auto; text-align: center;
  box-shadow: 0 -4px 0 0 #ffd27a, 0 4px 0 0 #ffd27a, -4px 0 0 0 #ffd27a, 4px 0 0 0 #ffd27a, 0 0 0 8px #0d0807, 0 0 80px rgba(255, 150, 40, .5); }
.bonus-card h2 { font-size: 34px; margin-bottom: 8px; color: #ffb347; text-shadow: 3px 3px 0 #6b2208; }
#pinball { height: clamp(220px, calc(100vh - 460px), 520px); height: clamp(220px, calc(100dvh - 460px), 520px); width: auto; max-width: 100%; aspect-ratio: 2 / 3; display: block; margin: 0 auto; background: #0b0d1a; box-shadow: 0 0 0 3px #a97a4c, 0 0 30px rgba(255, 150, 40, .35); }
.bonus .status { min-height: 3em; font-size: 16px; margin: 10px 0 6px; padding: 6px 8px; }
.bonus .actions { justify-content: center; margin: 10px 0 4px; gap: 10px; }
.bonus .fine { font-size: 13px; margin-top: 8px; }

@media (max-width: 860px) {
  .paytable { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .controls { grid-template-columns: 1fr 1.25fr 1fr; gap: 8px; }
  .spin { grid-column: 1 / -1; grid-row: 1; min-height: 64px; order: -1; }
  .stat { padding: 6px 2px 8px; }
  .stat span { font-size: 12.5px; text-align: center; }
  .stat output { font-size: 21px; }
  .meters { gap: 5px; }
  .meters .nm { font-size: 12.5px; }
  .meters canvas { width: 22px; height: 22px; }
  .marquee { margin-top: -30px; }
  .cabinet { margin-top: 48px; }
}

/* ---- page frame for arcade.html ---- */
.arcade-page main { padding-top: calc(var(--nav-h) + 118px); }
.arcade-top { padding-top: 40px; }
.backwrap { text-align: center; margin: -150px 0 80px; position: relative; z-index: 5; }
.back { text-decoration: none; }
.h2like { margin: 0 0 8px; font-size: clamp(27px, 4vw, 38px); line-height: 1.1; font-weight: 700; text-shadow: none; }
.h2like { color: var(--ink); }
.arcade-page .roots { padding-bottom: 40px; }
