/* Garage page: the rewards page that bridges both worlds — the in-game garage on ink, sparks and badges on paper, the ladder on ink. */

/* Rarity colours: one hue per tier, with a darker ink for light surfaces. */
.gitem--common { --rc: #9aa3ad; --rc-ink: #5f6873; }
.gitem--rare { --rc: #5b9bf0; --rc-ink: #2667c9; }
.gitem--epic { --rc: #a97bf0; --rc-ink: #7445c9; }
.gitem--legendary { --rc: var(--gold); --rc-ink: #a87400; }
.gitem__r { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--rc); }
.gitem__r::before { content: ""; width: 12px; height: 7px; border-radius: 2px; background: currentColor; transform: skewX(var(--skew)); }
.s-paper .gitem__r, .s-white .gitem__r { color: var(--rc-ink); }

/* ── Hero: the real in-game garage on a monitor, over the start line ── */
.g-hero__bg { position: absolute; inset: 0 0 auto; height: 100%; z-index: -2; }
.g-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .34; }
.g-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 10%, rgba(7, 9, 11, .72) 55%, rgba(7, 9, 11, .5)), linear-gradient(180deg, rgba(7, 9, 11, .5), transparent 25%, rgba(7, 9, 11, .85) 55%, var(--ink) 80%); pointer-events: none; }
.g-hero::before { content: ""; position: absolute; right: -10%; top: -10%; width: 1100px; height: 900px; background: radial-gradient(closest-side, rgba(255, 46, 120, .16), transparent); pointer-events: none; z-index: 0; }
.g-hero > .wrap { padding-bottom: clamp(70px, 12vh, 130px); }
.g-hero__stage { position: relative; margin: clamp(10px, 3vh, 30px) auto 0; width: min(100%, 1180px); }
.g-hero__shot { margin: 0; }
.g-float { gap: 14px; }
.g-float img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; flex: none; background: #f2f4f5; }
.g-float-2 img { object-fit: contain; background: transparent; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.g-float-1 { left: clamp(-30px, -2vw, 14px); bottom: 12%; }
.g-float-2 { right: clamp(-30px, -2vw, 14px); top: 14%; animation-delay: -3s; }
@media (max-width: 700px) {
  .g-hero__stage { margin-bottom: 40px; }
  .g-hero__stage .phone-float { font-size: 12.5px; padding: 8px 12px 8px 8px; gap: 9px; }
  .g-float img { width: 38px; height: 38px; border-radius: 9px; }
  .g-float-1 { left: 6px; bottom: -40px; }
  .g-float-2 { right: 6px; top: -30px; }
}

/* ── Collection browser ───────────────────────────── */
.g-coll::before { content: ""; position: absolute; left: 50%; top: 20%; width: 1300px; height: 900px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 90, 60, .08), transparent); pointer-events: none; }
.g-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.g-legend li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-2); }
.g-legend li::before { content: ""; width: 14px; height: 8px; border-radius: 2px; background: var(--rc); transform: skewX(var(--skew)); }
.g-free { position: relative; display: grid; gap: 14px 24px; align-items: start; margin-bottom: clamp(34px, 5vh, 50px); padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r); border: 1px solid rgba(255, 46, 120, .4); background: radial-gradient(80% 120% at 0% 0%, rgba(255, 46, 120, .16), transparent 70%), rgba(255, 255, 255, .03); overflow: hidden; }
.g-free::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ride); }
.g-free > .chip { justify-self: start; }
.g-free h3 { color: var(--on-ink); }
.g-free p { color: var(--on-ink-2); margin-top: 8px; max-width: 70ch; }
@media (min-width: 800px) { .g-free { grid-template-columns: auto minmax(0, 1fr); } }
.g-tabs { margin-bottom: 34px; }
.g-tabs button { display: inline-flex; align-items: baseline; gap: 7px; }
.g-tabs small { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--faint); }
.gitems { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.gitem { position: relative; border-radius: 18px; border: 1px solid var(--ink-line); background: rgba(255, 255, 255, .03); overflow: hidden; transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease); animation: fp-fade .8s var(--ease) both; }
.gitem:nth-child(2) { animation-delay: .04s; } .gitem:nth-child(3) { animation-delay: .08s; } .gitem:nth-child(4) { animation-delay: .12s; } .gitem:nth-child(5) { animation-delay: .16s; } .gitem:nth-child(6) { animation-delay: .2s; } .gitem:nth-child(7) { animation-delay: .24s; } .gitem:nth-child(8) { animation-delay: .28s; } .gitem:nth-child(9) { animation-delay: .32s; }
.gitem::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rc); z-index: 1; }
.gitem:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--rc) 60%, transparent); box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--rc) 55%, transparent); }
.gitem__img { aspect-ratio: 4 / 3; background: #f2f4f5; overflow: hidden; }
.gitem__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gitem:hover .gitem__img img { transform: scale(1.07); }
.gitem__b { display: grid; gap: 6px; padding: 14px 16px 16px; }
.gitem__b h4 { font-size: 18px; letter-spacing: -.025em; line-height: 1.15; font-variation-settings: "wdth" 90; }
.gitem__p { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--ink-line); }
.gitem__p b { font-weight: 500; font-size: 14px; color: var(--on-ink); }
.gitem--legendary .gitem__p b { color: var(--gold); }
@media (max-width: 600px) {
  .gitems { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gitem__b { padding: 12px 12px 13px; }
  .gitem__b h4 { font-size: 15.5px; }
  .gitem__p { flex-direction: column; gap: 2px; font-size: 11px; }
  .gitem__p b { font-size: 13px; }
}
.g-ingame { display: grid; gap: 14px; margin-top: clamp(50px, 8vh, 90px); }
.g-ingame .frame { border: 1px solid var(--ink-line); }
.g-ingame .frame > img { object-position: 30% 50%; }
@media (min-width: 800px) {
  .g-ingame { grid-template-columns: 1.7fr 1fr; grid-template-rows: clamp(300px, 34vw, 520px) clamp(220px, 22vw, 340px); }
  .g-ingame__w { grid-column: 1 / -1; }
  .g-ingame .frame { height: 100%; }
}
@media (max-width: 799px) { .g-ingame .frame { aspect-ratio: 16 / 10; } }

/* ── Sparks ───────────────────────────────────────── */
.g-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(12px, 1.6vw, 22px); font-weight: 700; font-size: clamp(30px, 4.6vw, 70px); letter-spacing: -.045em; line-height: 1; font-variation-settings: "wdth" 86; margin-bottom: clamp(40px, 6vh, 64px); }
.g-formula__s { position: relative; z-index: 0; padding: 0 .12em; color: #fff; }
.g-formula__s::before { content: ""; position: absolute; inset: .1em 0 -.02em; background: var(--lime); transform: skewX(var(--skew)); border-radius: 4px; z-index: -1; }
.g-formula__op { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--faint); font-variation-settings: normal; }
.g-formula__c { display: inline-flex; align-items: baseline; gap: .25em; border: 1px solid var(--line); border-radius: 999px; padding: .16em .5em .2em; background: var(--white); }
.g-formula__c small { font-family: var(--mono); font-size: .24em; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.g-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .g-prices { grid-template-columns: 1fr 1fr; } }
.g-price { position: relative; display: grid; gap: 14px; align-content: start; padding: 24px 22px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.g-price::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rc); }
.g-price:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(7, 9, 11, .4); }
.g-price b { font-size: clamp(44px, 4.6vw, 72px); display: flex; align-items: baseline; gap: .12em; }
.g-price b small { font-size: .4em; color: var(--rc-ink); }
.g-price p { color: var(--mute); font-size: 14.5px; }
.g-calc-head { display: grid; gap: 16px; margin-bottom: 30px; }
@media (min-width: 1000px) { .g-calc-head { grid-template-columns: 1fr 420px; align-items: end; gap: 60px; } }

/* ── XP tables ────────────────────────────────────── */
.g-figs { margin-bottom: clamp(50px, 8vh, 90px); }
.g-figs b { color: var(--on-paper); }
.g-xp { display: grid; gap: 30px 60px; align-items: start; }
@media (min-width: 900px) { .g-xp { grid-template-columns: 1fr 1fr; } }
.g-xp table { width: 100%; border-collapse: collapse; }
.g-xp caption { text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding-bottom: 14px; }
.g-xp th { text-align: left; font-weight: 400; color: var(--mute); padding: 14px 16px 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.4; }
.g-xp td { text-align: right; font-family: var(--mono); font-size: 16px; font-weight: 500; padding: 14px 0; border-top: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
.g-xp td small { font-size: 11px; color: var(--faint); letter-spacing: .08em; }
.g-xp tr:last-child th, .g-xp tr:last-child td { border-bottom: 1px solid var(--line); }
.g-xp tr.hl th { color: var(--on-paper); font-weight: 600; }
.g-xp tr.hl th::before { content: ""; display: inline-block; width: 12px; height: 7px; margin-right: 10px; border-radius: 2px; background: var(--lime); transform: skewX(var(--skew)); vertical-align: middle; }
.g-xp tr.hl td { color: var(--lime-ink); }
.g-bike { margin-top: clamp(60px, 10vh, 110px); }
.g-credit { display: grid; gap: 18px; padding: 26px 28px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.g-credit > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; font-size: 15px; color: var(--mute); }
.g-credit b { font-family: var(--mono); font-weight: 500; color: var(--on-paper); }
.g-credit i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--paper-2); position: relative; overflow: hidden; }
.g-credit i::after { content: ""; position: absolute; inset: 0; background: var(--ride); transform-origin: left; transform: scaleX(var(--w)); transition: transform 1.6s var(--ease) .3s; border-radius: 6px; }
.js .g-credit:not(.is-in) i::after { transform: scaleX(0); }

/* ── Badges ───────────────────────────────────────── */
.g-badges { display: grid; gap: 50px; }
@media (min-width: 1000px) { .g-badges { grid-template-columns: 340px minmax(0, 1fr); gap: clamp(50px, 6vw, 96px); align-items: start; } .g-badges__phone { position: sticky; top: 110px; } }
.g-badges__phone { position: relative; display: grid; justify-items: center; }
.g-badges__phone .phone { width: min(310px, 72vw); }
.g-bfloat { right: -4%; top: 34%; }
@media (max-width: 600px) { .g-bfloat { right: 0; } }
.g-fams { display: grid; gap: 16px; }
@media (min-width: 700px) { .g-fams { grid-template-columns: 1fr 1fr; } }
.g-fam { display: grid; gap: 16px; align-content: start; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r); background: var(--white); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.g-fam:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(7, 9, 11, .35); }
.g-fam header { display: flex; align-items: baseline; gap: 14px; }
.g-fam header b { font-size: clamp(48px, 4.4vw, 68px); color: var(--lime-ink); }
.g-fam--ride header b { background: var(--ride); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-fam ul { list-style: none; margin: 0; padding: 0; display: grid; }
.g-fam li { display: grid; gap: 2px; padding: 11px 0; border-top: 1px solid var(--line); }
.g-fam li b { font-size: 15.5px; letter-spacing: -.01em; }
.g-fam li span { color: var(--mute); font-size: 14.5px; line-height: 1.45; }
.g-fam__note { font-size: 13.5px; color: var(--faint); line-height: 1.5; }

/* ── Ladder ───────────────────────────────────────── */
.g-ladder::before { content: ""; position: absolute; left: 50%; bottom: -30%; width: 1200px; height: 800px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 46, 120, .16), transparent); pointer-events: none; }
.g-ladder__notes { display: grid; gap: 14px; margin-top: 48px; }

/* ── Claiming ─────────────────────────────────────── */
.g-checks { display: grid; gap: 44px; margin-top: clamp(60px, 10vh, 110px); align-items: center; }
@media (min-width: 900px) { .g-checks { grid-template-columns: 300px minmax(0, 1fr); gap: clamp(50px, 7vw, 110px); } }
.g-checks__phone { display: grid; justify-items: center; }
.g-flags { list-style: none; margin: 0; padding: 0; display: grid; width: 100%; border-bottom: 1px solid var(--line); }
.g-flags li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--mute); font-size: 15.5px; }
.g-flags li::before { content: ""; width: 14px; height: 2px; margin-top: .8em; background: var(--pink); transform: skewX(var(--skew)); flex: none; }

/* ── Closing band ─────────────────────────────────── */
[data-page="garage"] .band .btn--line { border-color: rgba(255, 255, 255, .55); color: #fff; }
[data-page="garage"] .band .eyebrow::before { background: #fff; }
[data-page="garage"] .band__word { font-size: 19vw; }

/* Resets for the elements this page uses as containers. */
.g-ingame .frame { margin: 0; }
.g-ladder .ladder { margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .g-fam:last-child { grid-column: 1 / -1; } .g-fam:last-child ul { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
