/* OzGhosty's Arcade: comic-book look (thick ink outlines, halftone dots, tilted stickers). Same palette in light and dark. */
.arcade {
  --ink: #1b1b2f; --paper: #fff8e7; --sun: #ffd23f; --pink: #ff6b9d; --sea: #3ec1d3; --mint: #3ddc97; --sky: #8fd8ff;
  --comic: "Bangers", "Impact", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(27,27,47,.13) 1.4px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(180deg, var(--sky) 0%, #c9efff 38%, var(--paper) 70%);
  padding: 18px 0 48px;
  min-height: 70vh;
}
.arcade a { color: inherit; }
.arcade .muted { color: #55556b; }
.arcade .small { font-size: .85rem; }

/* ---------- home hero ---------- */
.ahero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding-top: 8px; }
.ahero-ghost img { width: 100%; height: auto; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(-1.5deg); background: #0c1730; }
.arcade-title { font-family: var(--comic); font-size: clamp(3rem, 9vw, 5.6rem); line-height: .9; letter-spacing: 2px; margin: 10px 0 12px; color: var(--sun);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); transform: rotate(-2deg); }
.arcade-title.sm { font-size: clamp(2.4rem, 7vw, 3.6rem); margin-top: 18px; }
.alead { font-size: 1.1rem; line-height: 1.5; font-weight: 600; max-width: 34ch; margin: 0 0 18px; }
.bubble { position: relative; display: inline-block; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 10px 16px; font-weight: 700; margin: 0; box-shadow: 4px 4px 0 var(--ink); }
.bubble::after { content: ""; position: absolute; left: 26px; bottom: -14px; width: 20px; height: 20px; background: #fff; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg) skew(10deg, 10deg); }
.btn-play { display: inline-block; font-family: var(--comic); font-size: 1.5rem; letter-spacing: 1px; color: var(--ink); background: var(--sun); border: 3px solid var(--ink); border-radius: 14px;
  padding: 8px 20px 6px; box-shadow: 4px 4px 0 var(--ink); text-decoration: none; transition: transform .08s, box-shadow .08s; }
.btn-play:hover, a:hover > .tile-body .btn-play { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-play:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-big { font-size: 2rem; padding: 10px 26px 8px; background: var(--pink); color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }

/* ---------- game tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 26px; margin-top: 34px; }
.tile { display: flex; flex-direction: column; background: #fff; border: 4px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(var(--r, 0deg)); text-decoration: none; transition: transform .12s; }
.tile-live:hover { transform: rotate(0deg) scale(1.02); }
.tile-art { display: block; aspect-ratio: 3 / 4; background: var(--c); border-bottom: 4px solid var(--ink); overflow: hidden; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 18px; background: var(--c); }
.tile-title { font-family: var(--comic); font-size: 2rem; letter-spacing: 1px; line-height: 1; }
.tile-tag { font-weight: 600; line-height: 1.4; }
.tile-best { font-size: .9rem; background: rgba(255,255,255,.7); border: 2px solid var(--ink); border-radius: 10px; padding: 4px 8px; }
.tile-body .btn-play { align-self: flex-start; background: #fff; }
.tile-soon .tile-art img { filter: saturate(.7) brightness(.9); }
.stamp { align-self: flex-start; font-family: var(--comic); font-size: 1.3rem; letter-spacing: 1px; color: #d12a2a; border: 3px solid #d12a2a; border-radius: 8px; padding: 2px 10px 0; transform: rotate(-6deg); background: rgba(255,255,255,.6); }
.about-strip p { margin: 36px auto 0; max-width: 60ch; text-align: center; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 12px 18px; box-shadow: 4px 4px 0 var(--ink); }

/* ---------- play page ---------- */
.play { padding-top: 0; }
.stage { position: relative; margin: 0 auto; width: min(100vw, calc((100dvh - 64px) * 9 / 16)); aspect-ratio: 9 / 16; max-height: calc(100dvh - 64px);
  background: #0c1730; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); touch-action: none; user-select: none; -webkit-user-select: none; }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.play-info { max-width: 760px; }
.panel { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 14px 18px; box-shadow: 5px 5px 0 var(--ink); margin: 18px 0; }
.panel h2 { font-family: var(--comic); font-size: 1.6rem; letter-spacing: 1px; margin: 0 0 8px; }
.panel p { line-height: 1.55; margin: 0; }
.scores { margin: 10px 0; padding-left: 0; list-style: none; counter-reset: s; }
.scores li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; padding: 6px 4px; border-bottom: 2px dashed rgba(27,27,47,.15); font-weight: 600; }
.scores li::before { content: counter(s); font-family: var(--comic); font-size: 1.3rem; width: 1.6em; text-align: center; }
.scores li:nth-child(1)::before { content: "🥇"; } .scores li:nth-child(2)::before { content: "🥈"; } .scores li:nth-child(3)::before { content: "🥉"; }
.scores li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.scores li.me { background: #fff3b0; border-radius: 8px; }
.scores li.muted::before { content: none; }
.seg-tabs { display: inline-flex; gap: 4px; background: #eee; border: 2px solid var(--ink); border-radius: 12px; padding: 3px; }
.seg-tabs button { border: 0; background: none; font: inherit; font-weight: 700; padding: 4px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.seg-tabs button[aria-pressed=true] { background: var(--sun); }
.link-btn { border: 0; background: none; font: inherit; color: #0a6fcc; cursor: pointer; text-decoration: underline; padding: 0; }
.mini-tiles { display: flex; gap: 12px; flex-wrap: wrap; }
.mini { display: flex; flex-direction: column; width: 120px; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.mini img { width: 100%; height: 150px; object-fit: cover; display: block; }
.mini span { font-family: var(--comic); font-size: 1.05rem; letter-spacing: .5px; padding: 6px 8px 4px; line-height: 1.1; }
.mini small { display: block; font-family: Inter, sans-serif; font-size: .7rem; color: #d12a2a; letter-spacing: 0; }

@media (max-width: 760px) {
  .ahero { grid-template-columns: 1fr; gap: 18px; }
  .ahero-text { order: -1; }
  .arcade { padding-top: 10px; }
  .play { padding-top: 0; }
  .stage { border: 0; }
}
