/* =====================================================================
   GAME IDEAS /game-ideas/ (design-review/all-pages-spec.md §4)
   Hero (cream, side doodles, filters) → rule-card table (blue) → Grind's Cup (yellow) → CTA (red)
   ===================================================================== */

/* ---------- G1. Hero ---------- */
.ghero .page-hero__center { grid-template-columns: 1fr 560px; gap: 24px; min-height: 640px; }
.ghero .page-hero__copy { padding: 52px 0 92px; }
.ghero .h-xl { margin: 18px 0 14px; }
.ghero .lead { margin: 0; }
.ghero__label { display: block; width: max-content; margin: 22px 0 0; font-family: var(--f-hand); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--red); transform: rotate(-2deg); }

/* Filter buttons (.fchip; .chip is the home poker chip) */
.filters.gfilters { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin: 12px 0 0; }
.fchip { min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink); font: 700 17px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, color .14s ease; }
.fchip:nth-child(1) { transform: rotate(-1.5deg); }
.fchip:nth-child(2) { transform: rotate(1deg); }
.fchip:nth-child(3) { transform: rotate(-1deg); }
.fchip:nth-child(4) { transform: rotate(1.5deg); }
.fchip:nth-child(5) { transform: rotate(-1deg); }
.fchip:hover { transform: rotate(0) translateY(-2px); box-shadow: 6px 6px 0 var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--red); transform: rotate(0) translateY(-3px); }

/* Three guys, nerd in the centre; their cut tucks under the blue band's torn top */
.ghero .games-hero__guys { position: relative; align-self: end; justify-self: end; display: flex; align-items: flex-end; justify-content: center;
  margin: 0 -10px -40px 0; }
.ghero .games-hero__guys img { position: relative; height: 420px; width: auto; max-width: none; margin: 0 -56px; }
.ghero .games-hero__guys img:nth-child(2) { height: 500px; z-index: 2; }
.ghero .games-hero__guys .g-biker { margin-left: 0; }
.ghero .games-hero__guys .g-surfer { margin-right: 0; }
.ghero .sbubble--gamesnerd { z-index: 3; left: -40px; top: -30px; transform: rotate(-4deg); }

/* ---------- G2. Rule-card table ---------- */
.rtable { z-index: 2; padding: 120px 0 140px; }
.rtable > .wrap { max-width: none; }
.gi-eb1 { left: calc(50% - 360px); top: -34px; width: 52px; height: 52px; background-image: url("../../img/goods-g1.svg"); }
.gi-eb2 { left: calc(50% + 200px); top: -20px; width: 36px; height: 36px; background-image: url("../../img/edge-star.svg"); }
.gi-eb3 { left: calc(50% + 420px); bottom: -36px; width: 64px; height: 64px; background-image: url("../../img/edge-heart.svg"); }

.rgrid { display: grid; grid-template-columns: repeat(3, 344px); justify-content: center; gap: 96px 56px; align-items: start; }
.rgrid > :nth-child(3n+1 of :not([hidden])) { transform: rotate(-1.5deg); }
.rgrid > :nth-child(3n+2 of :not([hidden])) { transform: rotate(1deg) translateY(48px); }
.rgrid > :nth-child(3n of :not([hidden])) { transform: rotate(-1deg); }

/* Card */
.rcard { --side: var(--pink); position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; padding: 14px 14px 28px;
  box-shadow: 12px 12px 0 -3px var(--side), 12px 12px 0 0 var(--ink); transition: translate .2s ease, box-shadow .2s ease; }
.rcard--yellow { --side: var(--yellow); }
.rcard--red { --side: var(--red); }
.rcard.game { display: block; gap: 0; }
.rcard[hidden] { display: none !important; }
.rcard:hover { translate: -3px -6px; box-shadow: 16px 16px 0 -3px var(--side), 16px 16px 0 0 var(--ink); }

/* Whole square art: no crop, no zoom */
.rcard__art { position: relative; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 14px; background: #FDF6EB; }
.rcard__pic { width: 100%; height: 100%; border-radius: 11px; overflow: hidden; }
.rcard__pic img { width: 100%; height: 100%; max-width: none; object-fit: contain; transform: none; transition: transform .3s ease; }
.rcard:hover .rcard__pic img { transform: scale(1.03); }
.rcard__tags { position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; transform: rotate(-5deg); transform-origin: 0 0; }
.rcard__tags .tag { font-size: 14px; }
.tag--red { background: var(--red); color: #fff; }

.rcard .rcard__ribbon { position: absolute; z-index: 3; left: -34px; right: -34px; bottom: -22px; margin: 0; transform: rotate(-3deg);
  background: var(--ink); color: var(--cream); font: 700 30px/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; text-align: center;
  padding: 10px 22px 8px; white-space: nowrap; clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); }
.rcard .rcard__ribbon .suit-pink { color: var(--pink); }

/* Facts: players · time · heat */
.rcard__facts { display: flex; justify-content: center; gap: 8px; margin: 46px 0 16px; }
.rcard__facts > span { display: inline-flex; align-items: center; gap: 5px; border: 2px solid var(--ink); border-radius: 999px; background: #fff;
  padding: 4px 12px; font: 700 15px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.rcard__facts svg { width: 22px; height: 22px; flex: none; }
.rcard__facts > .rcard__heat { color: var(--red); font-size: 17px; letter-spacing: 1px; padding: 3px 11px; }

.rcard .rcard__intro { font-size: 18px; line-height: 1.45; margin: 0 6px 14px; text-wrap: pretty; }
.rcard .rcard__how { display: block; width: max-content; margin: 0 6px 12px; font-family: var(--f-hand); font-weight: 700; font-size: 30px; line-height: 1;
  color: var(--red-dark); transform: rotate(-2deg); transform-origin: 0 50%; }

/* Steps: one per row, 19px, 56px icons */
.rcard .rsteps { list-style: none; margin: 0 6px; padding: 0; display: grid; gap: 12px; counter-reset: g; }
.rcard .rsteps li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; margin: 0; font: 600 19px/1.3 var(--f-body); }
.rsteps .ico { position: relative; width: 56px; height: 56px; border-radius: 14px; border: 3px solid var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--side);
  display: grid; place-items: center; }
.rsteps .ico svg { width: 34px; height: 34px; }
.rsteps .ico::after { counter-increment: g; content: counter(g); position: absolute; top: -10px; left: -10px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.rsteps b { font-weight: 700; }
.s-red { color: var(--red); }
.rcard .rcard__more { display: inline-block; margin: 18px 6px 0; }

/* 9th slot: the wildcard (home .dc recipe, 344 wide, stretched to the row) */
.rwild { position: relative; align-self: stretch; min-height: 760px; border-radius: 20px;
  background: #141414 radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.5px) 0 0 / 6px 6px;
  box-shadow: 0 0 0 5px var(--paper), 9px 9px 0 5px var(--ink); transition: translate .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s cubic-bezier(.2,.8,.2,1); }
.rwild__window { position: absolute; inset: 18px; border-radius: 12px; overflow: hidden; background: var(--yellow); }
.rwild__pip { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); font-size: 300px; line-height: 1; color: rgba(20,20,20,.10); }
.rwild__idx { position: absolute; z-index: 4; display: flex; flex-direction: column; align-items: center; line-height: .85;
  font-family: var(--f-display); font-weight: 700; font-size: 48px; color: var(--ink); }
.rwild__idx small { font-size: 26px; color: var(--red); }
.rwild__idx--tl { top: 28px; left: 28px; }
.rwild__idx--br { bottom: 28px; right: 28px; transform: rotate(180deg); }
.rwild__guy { position: absolute; z-index: 2; left: 50%; bottom: 250px; height: calc(100% - 238px); width: auto; max-width: none; transform: translateX(-50%);
  transform-origin: 50% 100%; transition: transform .22s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.rwild__plate { position: absolute; z-index: 5; left: 7%; width: 86%; bottom: 228px; transform: rotate(-3deg); background: var(--ink); color: var(--cream);
  border: 3px solid var(--paper); border-radius: 999px; text-align: center; font: 700 34px/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em;
  padding: 11px 14px 8px; white-space: nowrap; }
.rwild__tag { position: absolute; left: 14%; top: 0; transform: translateY(-60%) rotate(4deg); background: var(--red); color: #fff; font-family: var(--f-body); font-size: 14px; line-height: 1.5; }
.rwild .rwild__note { position: absolute; z-index: 5; left: 50%; bottom: 116px; width: 232px; margin: 0; transform: translateX(-50%) rotate(1.5deg);
  background: var(--ink); color: var(--cream); border-radius: 22px; padding: 10px 18px; text-align: center; font: 600 17px/1.3 var(--f-body); text-wrap: balance; }
.rwild__cta { position: absolute; z-index: 6; left: 50%; bottom: -22px; transform: translateX(-50%); }
.rwild__cta:hover { transform: translateX(-50%) translate(-2px, -2px); }
.rwild__cta:active { transform: translateX(-50%) translate(3px, 3px); }
.rwild:hover { translate: -3px -8px; box-shadow: 0 0 0 5px var(--paper), 14px 14px 0 5px var(--ink); }
.rwild:hover .rwild__guy { transform: translateX(-50%) translateY(-10px) scale(1.03); }

/* ---------- G3. Grind's Cup ---------- */
.gcup { z-index: 1; }
.gcup > .wrap { position: relative; z-index: 1; }
.gcup .section-head { margin-bottom: 0; }
.gcup .kicker { color: var(--red-dark); }
.ranks { display: grid; grid-template-columns: repeat(3, 300px); gap: 32px; justify-content: center; margin-top: 56px; }
.rank-card { position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 22px 24px 92px; min-height: 200px; transition: transform .2s ease; }
.rank-card:nth-child(3n+1) { transform: rotate(-1.5deg); }
.rank-card:nth-child(3n+2) { transform: rotate(1deg); }
.rank-card:nth-child(3n)   { transform: rotate(-1deg); }
/* colours step diagonally so no column is one colour */
.rank-card:nth-child(2), .rank-card:nth-child(4), .rank-card:nth-child(9) { background: var(--pink-soft); }
.rank-card:nth-child(3), .rank-card:nth-child(5), .rank-card:nth-child(7) { background: var(--blue-soft); }
.rank-card:hover { transform: rotate(0) translateY(-4px); }
.rank-card__idx { position: absolute; left: 14px; top: 18px; width: 64px; display: flex; flex-direction: column; align-items: center; line-height: .9;
  font-family: var(--f-display); font-weight: 700; }
.rank-card__idx b { font-size: 52px; }
.rank-card__idx--wide b { font-size: 40px; padding-top: 8px; }
.rank-card__idx span { font-size: 26px; }
.rank-card h3 { font-size: 30px; line-height: .95; margin: 0 0 8px; }
.rank-card p { margin: 0; font-size: 17px; line-height: 1.4; }

.spice__title { font-size: 48px; text-align: center; margin-top: 72px; }
.spice { display: flex; justify-content: center; align-items: flex-start; gap: 48px; margin-top: 44px; }
.spice .why-tag { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 420px; padding: 28px 28px 24px; }
.spice .why-tag:nth-child(1) { transform: rotate(-2deg); }
.spice .why-tag:nth-child(2) { transform: rotate(2deg); }
.spice .why-tag:hover { transform: rotate(0); }
.spice .why-tag h3 { padding-right: 0; font-size: 38px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.spice .why-tag p { font-size: 18px; line-height: 1.45; }
.spice__heat { font-family: var(--f-body); font-size: 20px; letter-spacing: 2px; color: var(--red); }
.spice__tag--hot { background: var(--red); color: var(--cream); }
.spice__tag--hot .spice__heat { color: var(--cream); }

/* ---------- G4. CTA ---------- */
.gcta { padding-bottom: 0; }
.gcta__head { position: relative; }
.gcta__head > *:not(.cta-burst) { position: relative; z-index: 1; }
.gcta .cta-crowd { position: relative; z-index: 1; margin-top: 40px; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1180px) {
  .ghero .page-hero__center { grid-template-columns: 1fr 440px; }
  .ghero .games-hero__guys img { height: 340px; margin: 0 -46px; }
  .ghero .games-hero__guys img:nth-child(2) { height: 410px; }
  .ghero .sbubble--gamesnerd { left: -60px; top: -60px; }
}
@media (max-width: 1140px) {
  .rgrid { grid-template-columns: repeat(2, 344px); gap: 90px 56px; }
  .rgrid > :nth-child(odd of :not([hidden]))  { transform: rotate(-1.5deg); }
  .rgrid > :nth-child(even of :not([hidden])) { transform: rotate(1deg) translateY(48px); }
  .ranks { grid-template-columns: repeat(2, 300px); }
}
@media (max-width: 900px) {
  .ghero .page-hero__center { grid-template-columns: 1fr; }
  .ghero .page-hero__copy { padding: 36px 0 10px; }
  .ghero__label { margin: 20px auto 0; }
  .filters.gfilters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 10px -20px 0; padding: 8px 20px 14px; }
  .fchip { flex: none; min-height: 46px; padding: 0 18px; font-size: 15px; }
  .ghero .games-hero__guys { justify-self: center; margin: 70px 0 -40px; }
  .ghero .games-hero__guys img { height: 240px; margin: 0 -34px; }
  .ghero .games-hero__guys img:nth-child(2) { height: 290px; }
  .ghero .sbubble--gamesnerd { left: -20px; top: -74px; width: 230px; height: 67px; font-size: 19px; }
  .spice { flex-direction: column; align-items: center; gap: 40px; }
  .spice .why-tag { width: min(420px, 100%); margin-top: 0; }
}
@media (max-width: 760px) {
  .rtable { padding: 100px 0 110px; }
  .rgrid { grid-template-columns: min(344px, 100%); gap: 80px; }
  .rgrid > * { transform: none !important; }
  .rgrid > :nth-child(odd of :not([hidden]))  { rotate: -1deg; }
  .rgrid > :nth-child(even of :not([hidden])) { rotate: 1deg; }
  .rwild { min-height: 720px; }
  .ranks { grid-template-columns: min(320px, 100%); }
  .gi-eb1 { left: 8%; } .gi-eb2 { left: 78%; } .gi-eb3 { left: 70%; }
}
@media (max-width: 420px) {
  .rcard .rcard__ribbon { font-size: 26px; left: -22px; right: -22px; }
  .rcard__facts { gap: 5px; } .rcard__facts > span { padding: 4px 8px; font-size: 14px; }
}

/* ---------- Polish ---------- */
.rcard .rsteps li > span:last-child { text-wrap: balance; }
.ghero .sbubble--gamesnerd { line-height: 1.05; }
.rwild__idx--br { transform: none; }
/* rank cards read as playing cards: a faint suit pip in the corner */
.rank-card { overflow: hidden; }
.rank-card::after { content: attr(data-suit); position: absolute; right: -10px; bottom: -34px; font-size: 120px; line-height: 1; color: rgba(20,20,20,.07); pointer-events: none; }
.rank-card:has(.s-red)::after { color: rgba(217,37,48,.12); }
.rank-card > * { position: relative; z-index: 1; }
.rank-card > .rank-card__idx { position: absolute; }
.ghero .page-hero__copy { min-width: 0; }
@media (max-width: 900px) {
  .ghero .page-hero__center { grid-template-columns: minmax(0, 1fr); }
  .ghero .lead { margin-inline: auto; }
}
/* Wide screens: keep copy and guys together, guys scale up a little (the cap comes from the global --hero-max system) */
.ghero { --hero-max: 1340px; }
@media (min-width: 1600px) {
  .ghero .page-hero__center { grid-template-columns: 1fr 640px; min-height: 700px; }
  .ghero .games-hero__guys img { height: 470px; margin: 0 -62px; }
  .ghero .games-hero__guys img:nth-child(2) { height: 560px; }
  .ghero .games-hero__guys .g-biker { margin-left: 0; }
  .ghero .games-hero__guys .g-surfer { margin-right: 0; }
}

/* ---------- N6. Filter bar: on the blue table, sticky under the header, with a live count ---------- */
.ghero__ctas { margin-top: 30px; }
.gbar__label { display: block; width: max-content; margin: 0 auto 14px; font-family: var(--f-hand); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--ink); transform: rotate(-2deg); }
.gbar { position: sticky; top: 100px; z-index: 6; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 22px;
  width: max-content; max-width: 100%; box-sizing: border-box; margin: 0 auto 84px; padding: 12px 26px 12px 14px;
  background: var(--cream); border-radius: 40px; box-shadow: 5px 5px 0 var(--ink); }
.gbar .filters.gfilters { margin: 0; justify-content: center; }
.gcount { margin: 0; font-family: var(--f-hand); font-weight: 700; font-size: 24px; line-height: 1; white-space: nowrap; color: var(--ink); }
.gcount b { color: var(--red); }
@media (max-width: 900px) {
  .ghero__ctas { justify-content: center; }
  /* phone: a full-bleed cream strip under the header (the legal-page TOC recipe), chips scroll, the count stays at the right */
  .gbar { top: 73px; width: auto; max-width: none; margin: 0 calc(var(--gutter) * -1) 64px; padding: 0; flex-wrap: nowrap; gap: 0;
    border-radius: 0; box-shadow: none; border-block: 3px solid var(--ink); }
  .gbar .filters.gfilters { flex: 1 1 auto; min-width: 0; justify-content: flex-start; margin: 0; padding: 12px 12px 16px var(--gutter); }
  .gcount { flex: none; padding: 0 var(--gutter) 0 10px; font-size: 20px; border-left: 2px dashed rgba(20,20,20,.25); }
  .gcount__pre { display: none; }
}

/* ---------- V2 round 2: a way to buy after the games (A8), sticky bar hides the cards sliding behind it (B8) ---------- */
.gshop { position: relative; z-index: 1; margin-top: 56px; }
.gshop .hand { font-size: 28px; margin-right: 12px; color: var(--ink); display: inline-block; transform: rotate(-2deg); }
.gcta__btns { justify-content: center; }
.gcta__btns .btn:not(.btn--cream) { box-shadow: 4px 4px 0 var(--paper); }
.gcta__btns .btn:not(.btn--cream):hover { box-shadow: 6px 6px 0 var(--paper); }
@media (max-width: 760px) { .gshop .hand { display: block; margin: 0 0 12px; } }
/* A full-width strip of table blue between the header and the stuck bar (and round its pill ends); not a fade */
.rtable { overflow-x: clip; }
@media (min-width: 901px) {
  .gbar { box-shadow: 5px 5px 0 var(--ink), 0 0 0 100vmax var(--blue); clip-path: inset(-14px -100vmax -10px -100vmax); }
}

/* V2 round 4 */
.gshop { margin-top: 112px; }
@media (max-width: 760px) { .gshop { margin-top: 56px; } }

/* Sticky filter bar: no cream pill, just the blue strip */
@media (min-width: 901px) {
  .gbar { background: var(--blue); box-shadow: 0 0 0 100vmax var(--blue); border-radius: 0; padding-inline: 0; }
}

/* Grind's Cup: hand-drawn line icons per rule (replace the faint suit watermark) */
.rank-card::after { content: none; }
.rank-card { padding-bottom: 74px; }
.rank-card__ico { position: absolute; right: 16px; bottom: 12px; width: 64px; height: 64px; transform: rotate(-6deg); }
.rank-card:nth-child(even) .rank-card__ico { transform: rotate(5deg); }
.spice__tag { position: relative; }
.spice__ico { position: absolute; right: 18px; top: -26px; width: 60px; height: 60px; transform: rotate(18deg); }
.spice__tag--hot .spice__ico { filter: invert(1); }
.spice__ico--2 { transform: rotate(-14deg); }
.rank-card { padding-bottom: 92px; }
.rank-card__ico { width: 86px; height: 86px; right: 14px; bottom: 8px; }
.spice__ico { width: 72px; height: 72px; top: -34px; right: 14px; transform: rotate(-10deg); }
.spice__ico--2 { transform: rotate(12deg); }

/* ===== Grind's Cup v2: tall playing cards with a monochrome hand-drawn scene each ===== */
.rank-card__ico { display: none; }
.rank-card--tall::after { content: attr(data-suit); position: absolute; right: -6px; bottom: -30px; font-size: 120px; line-height: 1; color: rgba(20,20,20,.07); pointer-events: none; }
@media (min-width: 901px) {
  .ranks:has(.rank-card--tall), .rank-grid:has(.rank-card--tall) { grid-template-columns: repeat(3, 300px); justify-content: center; gap: 44px 40px; }
}
.rank-card--tall { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 26px 34px; min-height: 0; aspect-ratio: 5 / 7.4; overflow: hidden; }
.rank-card--tall .rank-card__idx { left: 12px; top: 14px; width: 52px; }
.rank-card--tall .rank-card__idx b { font-size: 40px; } .rank-card--tall .rank-card__idx--wide b { font-size: 30px; padding-top: 6px; }
.rank-card--tall .rank-card__idx span { font-size: 22px; }
.rank-card--tall .rank-card__idx--br { left: auto; top: auto; right: 12px; bottom: 14px; transform: rotate(180deg); }
.rank-card__art { width: 82%; aspect-ratio: 1; margin: 8px auto 6px; display: grid; place-items: center; }
.rank-card__art img { width: 100%; height: 100%; object-fit: contain; }
.rank-card--tall h3 { font-size: 30px; margin: 0 0 8px; }
.rank-card--tall p { font-size: 15.5px; line-height: 1.42; padding: 0 6px; }
.rank-card--tall { aspect-ratio: auto; padding: 16px 22px 30px; }
.rank-card__art { width: 100%; margin: 14px auto 4px; }
.rank-card__art { width: 86%; margin: 40px auto 2px; }
.rank-card__art { width: 84%; margin: 34px auto 14px; }
.rank-card--tall .rank-card__idx span, .rank-card__idx span { font-size: 32px; margin-top: 2px; }

/* Hero v3: less empty space on top; bubble over the croupier, tail curling down to the host in the middle */
@media (min-width: 901px) {
  .ghero .page-hero__center { min-height: 0; align-items: end; }
  .ghero .page-hero__copy { padding: 34px 0 72px; align-self: center; }
  .ghero .sbubble--gamehost { width: 250px; height: 80px; left: 10px; top: -84px; transform: rotate(-4deg); }
  .ghero .sbubble--gamehost::before { left: -18.4%; top: -57.5%; width: 136.8%; height: 215%; background-image: url("../../img/bubble-gamehost.svg"); }
}
@media (min-width: 901px) { .ghero .page-hero__center { min-height: 610px; } .ghero .page-hero__copy { padding: 20px 0 60px; } }
@media (min-width: 1600px) { .ghero .page-hero__center { min-height: 680px; } }

/* ===== PHONE LAYOUT (≤760px) · mobile pass ===== */
/* Hero: the title gets dealt a hand (host, ref, croupier break out of three fanned cards).
   Table: the rule cards become a deck you flick; tap one and it turns over to its rules (inline script in _src/games.html).
   Grind's Cup: the rank cards are a swipe rail; a ring of ranks round the cup turns with it. CTA: the wedding party rises from the bottom. */
@keyframes m-gline-l { from { opacity: 0; transform: translateX(-40px) rotate(-3deg); } }
@keyframes m-gline-r { from { opacity: 0; transform: translateX(40px) rotate(3deg); } }
@keyframes m-gdeal { from { opacity: 0; transform: translateY(120px) rotate(18deg) scale(.8); } }
@keyframes m-gpop { from { opacity: 0; transform: scale(.3); } }
@keyframes m-gbadge { 0%, 100% { rotate: 10deg; } 50% { rotate: -3deg; } }
@keyframes m-gflip { 50% { rotate: y 90deg; } }
@keyframes m-gart { to { transform: scale(1.05) rotate(1deg); } }
@keyframes m-gshake { 25% { rotate: -12deg; } 50% { rotate: 10deg; } 75% { rotate: -6deg; } }
@media (max-width: 760px) {
  /* ---------- Hero ---------- */
  .ghero { background: var(--cream) url("../../img/hero-shapes-mobile.svg") center -40px / 100% auto no-repeat; }
  .ghero .page-hero__center { position: relative; display: flex; flex-direction: column; align-items: stretch; padding: 18px 0 0; text-align: left; }
  .ghero .page-hero__copy { display: contents; }
  .ghero .page-hero__copy .sticker { order: 1; align-self: flex-start; margin-left: 20px; rotate: -3deg; position: relative; z-index: 3; }
  .ghero .h-xl { order: 2; position: relative; z-index: 3; margin: 16px 0 0; padding: 0 20px; font-size: clamp(80px, 25vw, 108px); line-height: .82; text-align: left; animation: m-gline-l .85s var(--m-ease) both; }
  .ghero .h-xl .mark { display: table; margin: 2px 0 0 auto; animation: m-gline-r .85s var(--m-ease) .15s both; }
  .ghero .lead { order: 3; position: relative; z-index: 3; margin: 14px 0 0; padding: 0 20px; max-width: 16em; text-align: left; font-weight: 600; font-size: 18px; line-height: 1.35; }
  .m-gbadge { position: absolute; z-index: 4; right: 12px; top: 74px; width: 100px; height: auto; animation: m-gbadge 5s ease-in-out infinite; }
  .ghero .games-hero__guys { order: 4; position: relative; display: block; align-self: stretch; width: auto; height: 318px; margin: 4px 0 0; justify-self: auto; }
  .ghero .hero__ctas { order: 5; justify-content: center; margin: 24px 0 0; padding: 0 20px 72px; }
  .m-gframe { --w: 150px; --win: var(--yellow); position: absolute; left: 50%; bottom: 0; width: var(--w); margin-left: calc(var(--w) / -2); aspect-ratio: 5 / 7; border-radius: 14px;
    background: #141414 radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.5px) 0 0 / 6px 6px; box-shadow: 0 0 0 4px var(--paper), 6px 6px 0 4px var(--ink);
    transform-origin: 50% 100%; animation: m-gdeal .9s var(--m-spring) both; }
  .m-gframe::before { content: ""; position: absolute; inset: 10px; border-radius: 8px; background: var(--win); }
  .m-gframe::after { content: "\2663"; position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); font-size: 120px; line-height: 1; color: rgba(20,20,20,.1); }
  .m-gframe b { position: absolute; z-index: 1; top: 13px; left: 14px; display: flex; flex-direction: column; align-items: center; font-family: var(--f-display); font-size: 27px; line-height: .85; }
  .m-gframe b small { font-size: 17px; }
  .m-gframe--l { z-index: 1; rotate: -15deg; translate: -98px 8px; animation-delay: .3s; }
  .m-gframe--r { z-index: 1; --win: var(--pink); rotate: 15deg; translate: 98px 8px; animation-delay: .45s; }
  .m-gframe--r::after { content: "\2665"; color: rgba(217,37,48,.2); }
  .m-gframe--c { z-index: 3; --w: 176px; --win: var(--blue); translate: 0 -14px; animation-delay: .6s; }
  .m-gframe--c::after { content: "\2660"; }
  .ghero .games-hero__guys img, .ghero .games-hero__guys img:nth-child(2) { position: absolute; left: 50%; bottom: 10px; width: auto; height: 236px; max-width: none; margin: 0;
    transform-origin: 50% 100%; animation: m-gdeal .9s var(--m-spring) both; }
  .ghero .games-hero__guys .g-biker { z-index: 2; translate: calc(-50% - 98px) 0; rotate: -15deg; animation-delay: .3s; }
  .ghero .games-hero__guys .g-surfer { z-index: 2; translate: calc(-50% + 98px) 0; rotate: 15deg; animation-delay: .45s; }
  .ghero .games-hero__guys img.g-nerd:nth-child(2) { z-index: 4; bottom: 24px; height: 272px; translate: -50% 0; animation-delay: .6s; }
  .ghero .sbubble--gamesnerd { z-index: 5; left: 6px; top: -12px; width: 196px; height: 58px; font-size: 17px; animation: m-gpop .6s var(--m-spring) 1.2s both; }

  /* ---------- The deck of games ---------- */
  .rtable { padding-top: 112px; }
  .rgrid.m-deck { --cw: min(76vw, 300px); display: block; position: relative; width: var(--cw); height: calc(var(--cw) * 1.52); margin: -18px auto 0; perspective: 1400px;
    touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .rgrid.m-deck > * { position: absolute; inset: 0; margin: 0; min-height: 0; transform: none;
    transition: translate .5s var(--m-ease), rotate .5s var(--m-ease), scale .5s var(--m-ease), opacity .3s ease; }
  .rgrid.m-deck > [data-m-d="0"] { z-index: 9; translate: 0 0; rotate: 0deg; scale: 1; cursor: grab; }
  .rgrid.m-deck > [data-m-d="1"] { z-index: 8; translate: -16px 12px; rotate: -5deg; scale: .95; }
  .rgrid.m-deck > [data-m-d="2"] { z-index: 7; translate: 16px 22px; rotate: 5deg; scale: .9; }
  .rgrid.m-deck > [data-m-d="3"] { z-index: 6; translate: 0 30px; rotate: 0deg; scale: .85; opacity: 0; }
  .rgrid.m-deck.m-pull > [data-m-d="1"] { transition: none; translate: calc(-16px * (1 - var(--m-pull, 0))) calc(12px * (1 - var(--m-pull, 0)));
    rotate: calc(-5deg * (1 - var(--m-pull, 0))); scale: calc(.95 + .05 * var(--m-pull, 0)); }
  .rgrid.m-deck > .m-drag { transition: none; cursor: grabbing; }
  .rgrid.m-deck > .m-turning { animation: m-gflip .44s ease-in-out; }
  .rgrid.m-deck img { pointer-events: none; -webkit-user-drag: none; }

  /* a rule card: front = art + facts, back = the rules on ruled paper */
  .rgrid.m-deck .rcard { display: flex; flex-direction: column; padding: 12px; box-shadow: 8px 8px 0 -3px var(--side), 8px 8px 0 0 var(--ink); }
  .rgrid.m-deck .rcard:not([data-m-d="0"]) { box-shadow: 5px 5px 0 -3px var(--side), 5px 5px 0 0 rgba(20,20,20,.75); }
  .rgrid.m-deck .rcard__art { flex: none; }
  .rgrid.m-deck .rcard[data-m-d="0"]:not(.m-back) .rcard__pic img { animation: m-gart 7s ease-in-out infinite alternate; }
  .rgrid.m-deck .rcard .rcard__ribbon { font-size: 26px; left: -22px; right: -22px; }
  .rgrid.m-deck #higherlow .rcard__ribbon { font-size: 21px; padding-block: 12px 10px; }
  .rgrid.m-deck .rcard__facts { gap: 5px; margin: 40px 0 0; }
  .rgrid.m-deck .rcard__facts > span { padding: 4px 9px; font-size: 14px; }
  .rgrid.m-deck .rcard:not(.m-back) > :is(.rcard__intro, .rcard__how, .rsteps, .rcard__more, .m-flip--back) { display: none; }
  .m-flip { align-self: center; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--ink); color: var(--cream); box-shadow: 3px 3px 0 var(--side); font: 700 14px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
  .m-flip:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--side); }
  .m-flip span { font-size: 19px; }
  .rgrid.m-deck .rcard[data-m-d="0"] .m-flip:not(.m-flip--back) span { display: inline-block; animation: m-chipspin 2.6s var(--m-ease) 1s infinite; }
  .rgrid.m-deck .rcard.m-back { padding: 18px 16px 14px; background: var(--paper) repeating-linear-gradient(transparent 0 27px, rgba(126,178,221,.32) 27px 28px); background-position: 0 12px; }
  .rgrid.m-deck .rcard.m-back > :is(.rcard__art, .rcard__facts, .m-flip:not(.m-flip--back)) { display: none; }
  .rgrid.m-deck .rcard.m-back::before { content: attr(data-m-name); display: block; margin: 0 50px 10px 0; font: 700 30px/.92 var(--f-display); text-transform: uppercase; }
  .rgrid.m-deck .rcard.m-back .rcard__intro { margin: 0 0 8px; font-size: 16.5px; line-height: 1.38; font-weight: 600; }
  .rgrid.m-deck .rcard.m-back .rcard__how { margin: 0 0 12px; font-size: 27px; }
  .rgrid.m-deck .rcard .rsteps { margin: 0; gap: 10px; }
  .rgrid.m-deck .rcard .rsteps li { grid-template-columns: 42px 1fr; gap: 12px; font-size: 16px; line-height: 1.25; }
  .rgrid.m-deck .rsteps .ico { width: 42px; height: 42px; border-radius: 11px; border-width: 2.5px; }
  .rgrid.m-deck .rsteps .ico svg { width: 26px; height: 26px; }
  .rgrid.m-deck .rsteps .ico::after { width: 20px; height: 20px; top: -8px; left: -8px; font-size: 11px; }
  .rgrid.m-deck .rcard .rcard__more { align-self: flex-start; margin: 12px 0 0; }
  .m-flip--back { width: 46px; min-height: 46px; padding: 0; justify-content: center; font-size: 22px; }
  .rgrid.m-deck .rcard.m-back .m-flip--back { position: absolute; top: 12px; right: 12px; width: 42px; min-height: 42px; margin: 0; }

  /* the wildcard rides at the bottom of every filtered deck; the magician breaks out of his card */
  .rgrid.m-deck .rwild { border-radius: 16px; box-shadow: 0 0 0 4px var(--paper), 6px 6px 0 4px var(--ink); }
  .rgrid.m-deck .rwild:not([data-m-d="0"]) { box-shadow: 0 0 0 4px var(--paper), 4px 4px 0 4px rgba(20,20,20,.7); }
  .rgrid.m-deck .rwild__window { inset: 12px; }
  .rgrid.m-deck .rwild__pip { font-size: 200px; }
  .rgrid.m-deck .rwild__idx { font-size: 36px; } .rgrid.m-deck .rwild__idx small { font-size: 20px; }
  .rgrid.m-deck .rwild__idx--tl { top: 20px; left: 20px; }
  .rgrid.m-deck .rwild__idx--br { display: none; }
  .rgrid.m-deck .rwild__guy { bottom: 150px; height: calc(100% - 104px); }
  .rgrid.m-deck .rwild__plate { bottom: 128px; font-size: 25px; padding: 9px 10px 6px; }
  .rgrid.m-deck .rwild .rwild__note { bottom: 66px; width: 230px; font-size: 15px; padding: 8px 14px; }
  .rgrid.m-deck .rwild__cta { bottom: 16px; }

  .m-deckbar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 36px 0 0; }
  .m-dbtn { flex: none; width: 58px; height: 58px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
    background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 800 26px/1 var(--f-body); }
  .m-dbtn:active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--ink); }
  .m-dbtn--next { background: var(--red); color: #fff; }
  .m-deckbar__who { flex: 1; min-width: 0; max-width: 210px; min-height: 66px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .m-deckbar__name { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: .92; }
  .m-deckbar__count { font-family: var(--f-hand); font-weight: 700; font-size: 20px; color: var(--paper); text-shadow: 1px 1px 0 var(--ink); }
  .m-thumbs { display: flex; justify-content: center; gap: 6px; margin: 16px 0 0; }
  .m-thumb { flex: 0 1 36px; min-width: 0; aspect-ratio: 1; padding: 0; border: 0; border-radius: 9px; overflow: hidden; cursor: pointer; background: #FDF6EB;
    box-shadow: 2px 2px 0 var(--ink), 0 0 0 2px var(--ink); transition: translate .3s var(--m-spring), rotate .3s var(--m-spring), box-shadow .2s; }
  .m-thumb:nth-child(odd) { rotate: -4deg; } .m-thumb:nth-child(even) { rotate: 4deg; }
  .m-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .m-thumb span { display: grid; place-items: center; height: 100%; background: var(--ink); color: var(--yellow); font-size: 18px; }
  .m-thumb[aria-current="true"] { translate: 0 -8px; rotate: 0deg; box-shadow: 3px 3px 0 var(--red), 0 0 0 2px var(--ink); }
  .m-thumb[hidden] { display: none; }
  .gshop { margin-top: 44px; }

  /* ---------- Grind's Cup ---------- */
  .gcup > .wrap { display: flex; flex-direction: column; }
  .gcup .section-head { order: 1; }
  .m-ring { order: 2; position: relative; width: 280px; height: 280px; margin: 46px auto -66px; }
  .gcup .ranks { order: 3; --m-rail-pad: 15vw; gap: 10px; margin-top: 0; padding-top: 18px; z-index: 2; }
  .gcup .m-dots { order: 4; color: var(--ink); }
  .gcup .spice__title { order: 5; }
  .gcup .spice { order: 6; }
  .m-ring::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 2px dashed rgba(20,20,20,.35); }
  .m-ring__wheel { position: absolute; inset: 0; transition: rotate 1s var(--m-spring); }
  .m-ring__wheel span { position: absolute; left: 50%; top: 50%; width: 46px; height: 64px; margin: -32px 0 0 -23px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--paper); border: 2.5px solid var(--ink); border-radius: 7px; box-shadow: 2px 2px 0 var(--ink); font-family: var(--f-display); font-weight: 700; line-height: .85;
    transform: rotate(calc(var(--i) * 40deg)) translateY(-108px); transition: transform .5s var(--m-spring), background .25s, color .25s; }
  .m-ring__wheel b { font-size: 21px; }
  .m-ring__wheel i { font-style: normal; font-size: 17px; }
  .m-ring__wheel span.m-on { z-index: 2; background: var(--red); color: #fff; transform: rotate(calc(var(--i) * 40deg)) translateY(-122px) scale(1.3); }
  .m-ring__wheel span.m-on .s-red { color: var(--pink); }
  .m-ring__cup { position: absolute; left: 50%; top: 50%; width: 146px; height: 146px; margin: -73px 0 0 -73px; padding: 16px; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--paper); box-shadow: 0 0 0 3px var(--ink), 5px 5px 0 3px var(--ink); }
  .m-ring__cup img { width: 100%; height: 100%; object-fit: contain; }
  .m-ring__cup:active { scale: .94; }
  .m-ring__cup.m-shake img { animation: m-gshake .6s ease-in-out; }
  .gcup .rank-card--tall { width: 70vw; max-width: 290px; transform: none; }
  .gcup .rank-card__art { width: 72%; margin: 30px auto 8px; }
  .gcup .spice__title { margin-top: 54px; }
  .gcup .spice { flex-direction: column; align-items: stretch; gap: 0; margin-top: 26px; }
  .gcup .spice .why-tag { width: auto; max-width: none; margin: 0; rotate: -2deg; }
  .gcup .spice .why-tag:nth-child(2) { margin: -6px 0 0 10px; rotate: 2deg; z-index: 2; }
  .gcup .spice .why-tag h3 { font-size: 32px; }
  .gcup .spice .why-tag p { font-size: 16px; }

  /* ---------- CTA: the wedding party rises from the bottom ---------- */
  .gcta .h-lg { font-size: clamp(56px, 17vw, 72px); }
  .gcta__btns { flex-direction: column; align-items: stretch; gap: 14px; }
  .gcta__btns .btn { width: 100%; }
  .gcta .cta-crowd { position: relative; display: block; height: 330px; max-width: none; margin: 22px -20px 0; overflow: hidden; }
  .gcta .cta-crowd img, .gcta .cta-crowd img:nth-child(2) { position: absolute; bottom: -90px; width: 50vw; max-width: 240px; height: auto; margin: 0; }
  .gcta .cta-crowd img:nth-child(1) { z-index: 2; left: 50%; width: 56vw; margin-left: -28vw; bottom: -110px; }
  .gcta .cta-crowd img:nth-child(2) { left: -4vw; rotate: -5deg; }
  .gcta .cta-crowd img:nth-child(3) { right: -4vw; rotate: 5deg; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .rgrid.m-deck { --cw: min(70vw, 300px); }
  .rgrid.m-deck .rcard.m-back { padding: 14px 14px 12px; }
  .rgrid.m-deck .rcard.m-back .rcard__intro { font-size: 15px; line-height: 1.32; }
  .rgrid.m-deck .rcard.m-back .rcard__how { font-size: 23px; margin-bottom: 8px; }
  .rgrid.m-deck .rcard .rsteps { gap: 7px; }
  .rgrid.m-deck .rcard .rsteps li { grid-template-columns: 34px 1fr; gap: 10px; font-size: 14.5px; }
  .rgrid.m-deck .rsteps .ico { width: 34px; height: 34px; }
  .rgrid.m-deck .rsteps .ico svg { width: 22px; height: 22px; }
}

/* ===== Art-director review fixes (phone only, 2026-11-22) ===== */
@media (max-width: 760px) {
  .ghero { background-image: none; }
  .ghero .sbubble--gamesnerd { left: 0; top: 0; }
  .ghero .sbubble--gamesnerd::before { transform: scaleX(-1); }
}

/* Tablet (user, 2026-11-22): the filter chips wrap and centre, the game count goes underneath (the last chip was clipped) */
@media (min-width: 761px) and (max-width: 900px) {
  .gbar { flex-direction: column; align-items: center; }
  .gbar .gfilters { flex-wrap: wrap; justify-content: center; overflow: visible; width: 100%; padding: 12px 20px 8px; }
  .gbar .gcount { text-align: center; }
}
/* Tablet round 3 (user, 2026-11-22): Grind's Cup rule cards share the width (3 x 300px ran off both edges ~901-1060px) */
@media (min-width: 901px) and (max-width: 1060px) { #grindscup .ranks { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 22px; } #grindscup .rank-card { width: auto; min-width: 0; } }
/* Tablet round 3: the 3-column game grid (3 x 344px + gaps) was wider than the screen at 1141-1240px */
@media (min-width: 1141px) and (max-width: 1240px) { .rgrid { grid-template-columns: repeat(3, minmax(0, 344px)); column-gap: 24px; } }
