/* iShoot: dark steel like the original's chrome, the red-orange title
   colour as accent. Only the framework's tokens are overridden, plus the
   board, the shop and the dock controls. */
:root {
  --bg: #121418;
  --bg-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(230, 90, 30, .22), transparent 70%),
    linear-gradient(180deg, #23272e, var(--bg) 60%, #08090b);
  --accent: #f0582a;
  --accent-2: #ff8a3c;
  --accent-ink: #fff;
  --accent-dk: #9a2a08;
  --bar: rgba(16, 18, 22, .92);
  --bar-line: rgba(240, 88, 42, .3);
  --turn-glow: rgba(240, 88, 42, .45);
  --table: #050607;
  --link: #c2410c;
}

.ish-logo { font-family: Anton, Impact, sans-serif; letter-spacing: .02em;
  background: linear-gradient(180deg, #ffb347 0%, #f0582a 45%, #b01d0a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .05em 0 #000); }
.logo-img { height: 1.6em; width: auto; image-rendering: auto; }
.hero-logo.logo-img { height: auto; width: min(80vw, 330px); }

/* the board: the iPhone screen (480 × 320), as large as it fits; during a
   game the framework's bars give way, like the full-screen original (its
   MENU button opens the framework menu). */
body.ish-fullscreen.in-game .slot-top, body.ish-fullscreen.in-game .slot-dock { display: none; }
body.ish-fullscreen.in-game .game-main { background: #000; }
body.ish-board-open .slot-over .overlay:not(.clear) { display: none; }
.ish-board { position: absolute; inset: 0; display: grid; place-items: center; container-type: size; background: #000; }
.ish-frame { position: relative; width: min(100cqw, 150cqh); aspect-ratio: 3 / 2; background: #000; overflow: hidden; }
.ish-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.ish-frame.shopping .ish-canvas { visibility: hidden; }
.ish-board.locked .ish-frame { filter: blur(6px) brightness(.4); }
.ish-auth { position: absolute; inset: 0; display: none; place-items: center; padding: 16px; }
.ish-board.locked .ish-auth { display: grid; }
.ish-auth-in { max-width: 420px; text-align: center; }

/* overlays in the original's coordinates: a 480 × 320 layer, scaled */
.ish-ui { position: absolute; left: 0; top: 0; width: 480px; height: 320px; transform-origin: 0 0; pointer-events: none;
  font-family: Helvetica, Arial, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
.ish-ui > * { pointer-events: auto; }
.ish-frame.shopping .ish-ui { background: url(/orig/Shop.png) 0 0 / 480px 320px no-repeat, #1b1f26; }
.ish-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.ish-at { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; }
.ish-at.left { transform: translate(0, -50%); }
.ish-t20 { font-size: 20px; }
.ish-t18 { font-size: 18px; }
.ish-t16 { font-size: 16px; }
.ish-cash { transform: translate(-100%, -50%); }
.ish-btn { position: absolute; transform: translate(-50%, -50%); width: 173px; height: 42px; padding: 0; border: 0; border-radius: 0; box-shadow: none;
  background: center / 100% 100% no-repeat transparent; color: #fff; font: 18px Helvetica, Arial, sans-serif; cursor: pointer; }
.ish-btn[style*="cta_120"] { width: 127px; }
.ish-btn:active, .ish-btn.on { filter: brightness(1.35); }
/* the framework's buttons sink when pressed (translateY); the original's
   only light up, and these are placed by their transform */
.ish-btn:active { transform: translate(-50%, -50%); box-shadow: none; }
.ish-rbtn:active, .ish-alert button:active { transform: none; box-shadow: none; }
.ish-rbtn:not(:disabled):active { filter: brightness(1.35); }
.ish-shoplist { position: absolute; left: 31px; top: 43px; width: 418px; height: 220px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.ish-shoplist::-webkit-scrollbar { display: none; }
.ish-row { position: relative; height: 43px; background: url(/orig/ShopLine.png) 0 0 / 418px 43px no-repeat; font-size: 17px; }
.ish-row > span { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; }
.ish-rname { left: 10px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.ish-rprice { right: calc(418px - 290px); }
.ish-rcount { right: calc(418px - 340px); }
.ish-rbtn { position: absolute; left: 360px; top: 0; width: 46px; height: 42px; padding: 0 0 2px; border: 0; border-radius: 0; box-shadow: none;
  background: url(/orig/TinyButton.png) 0 0 / 100% 100% no-repeat transparent; color: #fff; font: bold 22px Helvetica, Arial, sans-serif; cursor: pointer; }
.ish-rbtn:disabled { opacity: .4; cursor: default; }
.ish-alert { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 284px; padding: 14px 16px 10px; text-align: center;
  background: rgba(6, 18, 52, .92); border: 2px solid rgba(255,255,255,.85); border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.6); font-size: 15px; }
.ish-alert b { display: block; font-size: 17px; margin-bottom: 6px; }
.ish-alert p { margin: 0 0 10px; color: #fff; }
.ish-alert-row { display: flex; gap: 8px; }
.ish-alert button { width: 100%; padding: 6px; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; background: rgba(255,255,255,.18); box-shadow: none; color: #fff; font: bold 16px Helvetica, Arial, sans-serif; }
.ish-chip { font-size: .75rem; opacity: .9; }
