/* Pizza Boyz Arcade hub: one page linking to every game (brand: black / white / red, Bebas + Lato). */
/* No sideways scrolling: the page root clips horizontally. The body uses `clip` (NOT hidden): `overflow-x: hidden`
   would turn the body into its own scroll box, and with the shared `overscroll-behavior: none` phones then refuse
   to scroll the page at all. `clip` cuts off overflow without creating a scroll box. */
html.arcade-page { overflow-x: hidden; }
body.arcade {
  height: auto;
  min-height: 100%;
  overflow-x: clip;
  overscroll-behavior: auto;
  -webkit-user-select: auto;
  user-select: auto;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgb(var(--accent-rgb) / .28), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, .025) 34px 37px),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 255, 255, .02) 70px 73px),
    var(--black);
}
.arc { overflow-x: clip; max-width: 1120px; margin: 0 auto; padding: calc(var(--sat) + 26px) 16px calc(var(--sab) + 28px); display: flex; flex-direction: column; gap: 26px; }

/* Header: logo + slanted red ARCADE tag */
.arc-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.arc-logo { height: 50px; width: auto; animation: fade-in .8s ease both; }
.arc-title { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1; }
.arc-title span { display: inline-block; background: var(--accent); color: var(--on-accent); font-size: clamp(64px, 19vw, 120px); letter-spacing: 4px; padding: 10px 28px 2px; transform: skewX(-8deg) rotate(-2deg); box-shadow: 0 14px 40px rgb(var(--accent-rgb) / .45); animation: arc-stamp .7s .15s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes arc-stamp { from { opacity: 0; transform: skewX(-8deg) rotate(-2deg) scale(1.25); } to { opacity: 1; transform: skewX(-8deg) rotate(-2deg) scale(1); } }
.arc-sub { margin: 4px 0 0; max-width: 520px; font-size: 16px; line-height: 1.45; color: #d9d2d2; }
.arc-sub b { color: #fff; }

/* Game cards: phone screenshot + info. Stacked on phones, three across on big screens. */
.arc-games { display: grid; gap: 18px; }
.game-card { display: grid; grid-template-columns: 40% 1fr; gap: 16px; align-items: center; padding: 16px; background: #171313; border-top: 5px solid var(--accent); text-decoration: none; color: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .05); transition: transform .2s ease, box-shadow .2s ease; animation: pop-up .6s cubic-bezier(.2, 1.5, .4, 1) both; position: relative; overflow: hidden; }
.game-card:nth-child(1) { animation-delay: .35s; }
.game-card:nth-child(2) { animation-delay: .45s; }
.game-card:nth-child(3) { animation-delay: .55s; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgb(var(--accent-rgb) / .25), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.shot { position: relative; display: block; border-radius: 18px; border: 5px solid #000; box-shadow: 0 0 0 2px #3a3333, 0 14px 30px rgba(0, 0, 0, .6); overflow: hidden; aspect-ratio: 390 / 844; transform: rotate(-3deg); transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); background: #000; }
.game-card:nth-child(2) .shot { transform: rotate(2.5deg); }
.game-card:hover .shot { transform: rotate(0) scale(1.03); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot .new { position: absolute; top: 10px; right: -6px; background: var(--gold); color: var(--black); font-family: var(--display); font-size: 20px; letter-spacing: 1px; padding: 4px 12px 2px; transform: skewX(-8deg) rotate(6deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.kind { font-family: var(--display); font-size: 16px; letter-spacing: 2px; color: var(--accent); }
.name { margin: 0; font-weight: 400; font-family: var(--display); font-size: clamp(34px, 9.5vw, 46px); line-height: .92; letter-spacing: 1px; }
.name b { color: var(--on-accent); font-weight: 400; display: inline-block; background: var(--accent); padding: 2px 10px 0; margin-top: 4px; transform: skewX(-8deg); }
.blurb { margin: 0; font-size: 14px; line-height: 1.4; color: #cfc7c7; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; align-items: center; }
.name a { color: inherit; text-decoration: none; }
.play { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--black); font-family: var(--display); font-size: 24px; letter-spacing: 1.5px; padding: 9px 16px 6px; transform: skewX(-8deg); box-shadow: 0 5px 0 #c9c9c7; transition: background .15s, color .15s; }
.play i { font-style: normal; font-size: 30px; line-height: .6; }
.play:hover, .play:focus-visible { background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 0 var(--accent-d); }
.play:active { transform: skewX(-8deg) translateY(3px); box-shadow: 0 2px 0 #c9c9c7; }
.copy { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .35); font-family: var(--display); font-size: 18px; letter-spacing: 1px; padding: 7px 11px 5px; transform: skewX(-8deg); transition: border-color .15s, background .15s, color .15s; touch-action: manipulation; }
.copy > * { transform: skewX(8deg); }
.copy:hover { border-color: #fff; }
.copy.done { background: var(--green); border-color: var(--green); }
.arc-toast { position: fixed; left: 50%; bottom: calc(var(--sab) + 22px); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: #fff; color: var(--black); font-weight: 900; font-size: 14px; padding: 10px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: opacity .2s, transform .25s cubic-bezier(.2, 1.4, .4, 1); max-width: calc(100% - 32px); text-align: center; z-index: 5; }
.arc-toast.on { opacity: 1; transform: translate(-50%, 0); }

.arc-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; }
.arc-foot .tagline { font-family: var(--display); font-size: 26px; letter-spacing: 2px; }
.arc-foot .links { display: flex; gap: 18px; font-size: 14px; }
.arc-foot a { color: #fff; opacity: .85; text-underline-offset: 3px; }

@media (max-width: 380px) {
  .game-card { grid-template-columns: 38% 1fr; gap: 12px; padding: 12px; }
  .blurb { font-size: 13px; }
  .play { font-size: 21px; }
  .copy { font-size: 16px; padding: 6px 9px 4px; }
}
@media (min-width: 900px) {
  .arc { padding-top: 40px; gap: 34px; }
  .arc-logo { height: 60px; }
  /* up to three across; one or two cards sit centred */
  .arc-games { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
  .game-card { flex: 0 1 calc((100% - 48px) / 3); min-width: 0; grid-template-columns: 1fr; padding: 22px 22px 24px; }
  .shot { width: 72%; margin: 6px auto 8px; }
  .info { align-items: center; text-align: center; }
  .actions { justify-content: center; }
  .name { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-card, .arc-title span, .arc-logo { animation: none !important; }
}
