/* Home page: "go big" layer on top of style.css */

/* ---------- hero ---------- */
.page-home .site-head { position: fixed; left: 0; right: 0; }
.page-home .hx { padding-top: clamp(110px, 10vw, 140px); }
.hx {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  display: grid; align-items: center;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 10vw, 140px);
}
.hx-bg { position: absolute; inset: 0; z-index: -2; }
.hx-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.06); filter: blur(3px) saturate(1.1) brightness(0.8); }
.hx::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15,14,17,0.94) 0%, rgba(15,14,17,0.82) 34%, rgba(15,14,17,0.45) 66%, rgba(15,14,17,0.35) 100%),
    linear-gradient(0deg, var(--desk) 0%, rgba(24,23,27,0) 30%);
}
.hx-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.hx-copy { color: var(--paper); }
.hx-title {
  font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(4.4rem, 11.5vw, 10.5rem); line-height: 0.82; letter-spacing: -0.01em; margin: 0 0 20px;
}
.hx-title .y { color: var(--yellow); display: block; }
.hx-sub { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 34ch; margin: 0 0 30px; color: rgba(247,242,228,0.9); }
.hx-cta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.play-big { --c: var(--stamp-on-dark); font-size: clamp(1.4rem, 2.2vw, 1.8rem); padding: 1em 1.7em; }
.play-big:hover { background: #ad2812; }
.play-big svg { width: 1.1em; height: 1.1em; }
.hx-more { color: var(--paper); font-family: var(--f-display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 4px; }
.hx-more svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.hx-more:hover svg { transform: translateY(4px); }
.hx-note { margin: 14px 0 0; font-size: 0.88rem; color: rgba(247,242,228,0.62); }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--rot, -2deg)); }
  50% { transform: translateY(-16px) rotate(calc(var(--rot, -2deg) + 2deg)); }
}


.hx-stage { position: relative; aspect-ratio: 1 / 0.95; cursor: pointer; outline-offset: 8px; --rc: #e3b21f; }
.loot-glow { position: absolute; inset: 0 2% 10%; border-radius: 50%; background: radial-gradient(closest-side, var(--rc) 0%, transparent 100%); opacity: 0.7; filter: blur(24px); transition: background 0.6s var(--ease-out); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.5; } }
.loot-pad { position: absolute; left: 16%; right: 16%; bottom: 15%; height: 13%; border-radius: 50%; background: radial-gradient(closest-side, #2a2830 0%, #141317 100%); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 80%, #000), 0 0 40px 4px color-mix(in srgb, var(--rc) 45%, transparent), 0 26px 40px -10px rgba(0,0,0,0.7); transition: box-shadow 0.6s var(--ease-out); }
.loot-img { position: absolute; left: 50%; bottom: 21%; width: 78%; max-height: 66%; object-fit: contain; translate: -50% 0; filter: drop-shadow(0 22px 18px rgba(0,0,0,0.55)); animation: hover 5s ease-in-out infinite; z-index: 1; }
.loot-img.swap { animation: lootin 0.6s var(--ease-thunk), hover 5s ease-in-out 0.6s infinite; }
@keyframes hover { 50% { transform: translateY(-12px); } }
@keyframes lootin { from { opacity: 0; transform: translateY(-60px) scale(0.7) rotate(-8deg); } }
.loot-card { position: absolute; left: 50%; bottom: 0; translate: -50% 0; display: grid; justify-items: center; gap: 4px; text-align: center; z-index: 2; color: var(--paper); white-space: nowrap; }
.loot-tier { font-family: var(--f-display); font-stretch: 78%; font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; padding: 5px 12px 4px; border-radius: 999px; background: var(--rc); color: #0f0e11; transition: background 0.4s; }
.loot-name { font-family: var(--f-display); font-stretch: 66%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1; }
.loot-rate { font-size: 0.95rem; color: rgba(247,242,228,0.75); }
.loot-rate b { font-family: var(--f-display); font-stretch: 70%; font-weight: 900; font-size: 1.5rem; color: var(--yellow); margin-right: 4px; }
.loot-dots { position: absolute; top: 2%; right: 2%; display: flex; gap: 6px; }
.loot-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(247,242,228,0.25); transition: background 0.3s, transform 0.3s; }
.loot-dots i.on { background: var(--yellow); transform: scale(1.3); }

/* ---------- truck band ---------- */
.drive { position: relative; margin-top: -40px; z-index: 2; overflow-x: clip; }
main { overflow-x: clip; }
.drive-road { position: relative; height: clamp(150px, 18vw, 230px); overflow: hidden; }
.drive-truck {
  position: absolute; bottom: 6px; left: 0; width: clamp(300px, 34vw, 520px);
  transform: translateX(var(--tx, -40%)); will-change: transform;
  filter: drop-shadow(0 18px 14px rgba(0,0,0,0.5));
}
.drive-road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(90deg, var(--yellow) 0 60px, transparent 60px 110px); opacity: 0.85; }

/* ---------- section heads ---------- */
.big-head { margin-bottom: clamp(28px, 4vw, 52px); max-width: 980px; }
.big-title { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 6vw, 6rem); line-height: 0.86; color: var(--paper); margin: 0 0 16px; }
.big-title .y { color: var(--yellow); }
.big-head p { margin: 0; color: rgba(247,242,228,0.82); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 58ch; }

/* ---------- how a job goes: big steps ---------- */
.steps { display: grid; gap: clamp(48px, 7vw, 96px); list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.step:nth-child(even) .step-shot { order: 2; }
.step-shot { position: relative; }
.step-shot > img:first-child { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(0,0,0,0.7); background: #000; }
.step-shot .cut { position: absolute; width: 36%; height: auto; background: none; border-radius: 0; box-shadow: none; right: -6%; bottom: -14%; filter: drop-shadow(0 20px 16px rgba(0,0,0,0.55)); }
.step:nth-child(even) .step-shot .cut { right: auto; left: -6%; }
.step-n { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; font-size: clamp(5rem, 11vw, 9rem); line-height: 0.8; color: var(--yellow); display: block; margin-bottom: 8px; }
.step h3 { font-family: var(--f-display); font-stretch: 66%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 0.9; color: var(--paper); margin: 0 0 14px; }
.step p { margin: 0; color: rgba(247,242,228,0.82); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 40ch; }
.step .key { background: var(--paper); }
.step .hl { color: var(--yellow); font-weight: 700; }

/* ---------- showroom: 12 styles ---------- */
.showroom {
  position: relative; border-radius: 22px; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 58%, color-mix(in srgb, var(--rank, #8e5cf0) 55%, #18171b) 0%, #121115 72%);
  transition: background 0.6s var(--ease-out);
  padding: clamp(20px, 3vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(12px, 2vw, 28px); align-items: center;
  min-height: 620px;
}
.sr-info { color: var(--paper); align-self: start; padding-top: 10px; }
.sr-rank { color: rgba(247,242,228,0.7); font-size: 0.92rem; margin-left: 6px; }
.sr-name { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 5.4vw, 5rem); line-height: 0.86; margin: 6px 0 10px; }
.sr-tier { display: inline-block; font-family: var(--f-display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; padding: 5px 10px; border-radius: 4px; background: var(--rank, #8e5cf0); color: #0f0e11; }
.sr-rate { margin: 22px 0 0; }
.sr-rate b { display: block; font-family: var(--f-display); font-stretch: 70%; font-weight: 900; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 0.9; color: var(--yellow); }
.sr-rate span { color: rgba(247,242,228,0.7); font-size: 0.92rem; }
.sr-stage { position: relative; display: grid; place-items: center; }
.sr-stage::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 6%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,0.55), transparent); z-index: 0; }
.sr-stage img { position: relative; z-index: 1; width: min(100%, 560px); filter: drop-shadow(0 24px 20px rgba(0,0,0,0.5)); }
.sr-stage img.pop { animation: pop 0.55s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(-40px) scale(0.86) rotate(-6deg); } }
.sr-nav { display: flex; gap: 10px; justify-content: center; margin-top: 4px; position: relative; z-index: 2; }
.sr-arrow { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(247,242,228,0.5); background: rgba(0,0,0,0.25); color: var(--paper); cursor: pointer; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.sr-arrow:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.sr-arrow svg { width: 20px; height: 20px; }
.sr-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-self: center; }
.sr-type { aspect-ratio: 1; border-radius: 12px; border: 2px solid rgba(247,242,228,0.14); background: rgba(0,0,0,0.22); cursor: pointer; padding: 4px; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out); }
.sr-type img { width: 100%; height: 100%; object-fit: contain; }
.sr-type:hover { transform: translateY(-3px); border-color: rgba(247,242,228,0.4); }
.sr-type[aria-pressed="true"] { border-color: var(--yellow); background: rgba(255,210,31,0.14); }
.sr-ranks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; padding: 6px 2px 4px; }
.sr-chip { min-width: 0; display: grid; gap: 4px; justify-items: start; padding: 8px 10px; border-radius: 10px; border: 2px solid transparent; background: rgba(0,0,0,0.28); color: var(--paper); cursor: pointer; font: inherit; text-align: left; transition: background 0.2s, border-color 0.2s; }
.sr-chip i { width: 100%; height: 5px; border-radius: 3px; background: var(--c); }
.sr-chip span { font-family: var(--f-display); font-stretch: 78%; font-weight: 800; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.03em; line-height: 1; overflow-wrap: anywhere; }
.sr-chip small { font-size: 0.72rem; color: rgba(247,242,228,0.6); white-space: nowrap; }
.sr-chip:hover { background: rgba(0,0,0,0.45); }
.sr-chip[aria-pressed="true"] { border-color: var(--yellow); background: rgba(255,210,31,0.12); }

/* ---------- locations strip ---------- */
.strip-wrap { position: relative; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 30vw, 400px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 22px; scrollbar-width: thin; scrollbar-color: var(--yellow) transparent; }
.loc { scroll-snap-align: start; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; background: #0f0e11; color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.loc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.7s var(--ease-out); }
.loc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,9,12,0.95) 0%, rgba(10,9,12,0.55) 38%, rgba(10,9,12,0) 65%); }
.loc:hover img { transform: scale(1.06); }
.loc-body { padding: 18px 18px 18px; display: grid; gap: 6px; }
.loc-no { font-family: var(--f-num); color: var(--yellow); font-size: 0.85rem; font-weight: 700; }
.loc h3 { font-family: var(--f-display); font-stretch: 66%; font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 2.8vw, 2.6rem); line-height: 0.9; margin: 0; }
.loc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.loc-meta span { font-size: 0.78rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(247,242,228,0.14); }
.loc-meta .unlock { background: var(--yellow); color: var(--ink); }
.loc .stamp { position: absolute; top: 40%; left: 50%; translate: -50% -50%; font-size: 1.6rem; color: var(--yellow); mix-blend-mode: normal; }
.strip-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: -8px; }

/* ---------- creatures ---------- */
.critters { display: grid; grid-template-columns: 0.9fr 1fr 1.15fr; gap: clamp(14px, 2.4vw, 28px); align-items: end; border-bottom: 3px solid var(--yellow); padding-bottom: 18px; }
.critter { position: relative; color: var(--paper); text-align: center; }
.critter img { width: 100%; margin: 0 auto 6px; filter: drop-shadow(0 16px 14px rgba(0,0,0,0.55)); transition: transform 0.4s var(--ease-out); }
.critter:hover img { transform: translateY(-8px) rotate(-3deg) scale(1.04); }
.critter h3 { font-family: var(--f-display); font-stretch: 66%; font-weight: 900; text-transform: uppercase; font-size: 2.1rem; line-height: 0.9; margin: 0 0 6px; }
.critter p { margin: 0; color: rgba(247,242,228,0.75); font-size: 0.95rem; }
.critter .where { display: inline-block; margin-top: 10px; font-family: var(--f-display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--yellow); }

/* ---------- hall ---------- */
.hall-big { position: relative; border-radius: 22px; overflow: hidden; min-height: 560px; display: grid; align-items: end; isolation: isolate; }
.hall-big > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hall-big::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,9,12,0.92) 0%, rgba(10,9,12,0.6) 45%, rgba(10,9,12,0.1) 100%); }
.hall-in { padding: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 28px; align-items: end; }
.hall-in .big-title { font-size: clamp(3rem, 6.6vw, 6rem); }
.hall-in p { color: rgba(247,242,228,0.86); max-width: 46ch; margin: 0; font-size: 1.1rem; }
.hall-card { background: var(--yellow); color: var(--ink); padding: 16px 18px; transform: rotate(2deg); box-shadow: var(--shadow-sheet); }
.hall-card h3 { font-family: var(--f-display); font-stretch: 70%; font-weight: 900; text-transform: uppercase; font-size: 1.2rem; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin: 0 0 4px; }
.hall-card ul { list-style: none; margin: 0; padding: 0; }
.hall-card li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(22,19,15,0.18); }
.hall-card li:last-child { border-bottom: 0; }
.hall-card b { font-family: var(--f-display); font-stretch: 78%; font-weight: 800; text-transform: uppercase; font-size: 0.92rem; }
.hall-card span { font-family: var(--f-hand); color: var(--pen); font-size: 1.15rem; line-height: 1.2; text-align: right; }

/* ---------- board + discord ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: stretch; }
.discord-card { position: relative; border-radius: 22px; padding: clamp(24px, 3.6vw, 44px); background: #5865f2; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 360px; isolation: isolate; }
.discord-card h2 { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 0.86; margin: 0 0 12px; }
.discord-card p { margin: 0; max-width: 36ch; font-size: 1.08rem; }
.discord-card .mascot { position: absolute; right: -10px; bottom: -16px; width: 44%; max-width: 250px; z-index: -1; transform: rotate(-8deg); filter: drop-shadow(0 14px 12px rgba(0,0,0,0.35)); }
.discord-card .row { display: flex; flex-wrap: wrap; gap: 10px; }
.discord-card .stamp-btn { --c: #fff; color: #23272a; }
.discord-card .stamp-btn:hover { background: var(--yellow); }
.discord-card .stamp-btn[aria-disabled="true"] { --c: transparent; color: #fff; outline-color: #fff; }
.discord-card .stamp-btn[aria-disabled="true"] .soon { color: var(--yellow); }
.discord-card .stamp-btn--ghost { --c: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.discord-card .stamp-btn--ghost:hover { background: #fff; color: #23272a; }

/* ---------- final ---------- */
.final-big { position: relative; padding: clamp(90px, 12vw, 160px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.final-big .order { max-width: 820px; margin: 0 auto; transform: rotate(-0.6deg); position: relative; z-index: 2; }
.final-big .order h2 { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: 0.86; margin: 10px 0 18px; }
.final-big .order p { margin: 0; max-width: 48ch; }
.final-cut { position: absolute; z-index: 1; filter: drop-shadow(0 24px 18px rgba(0,0,0,0.55)); }
.final-cut.f1 { width: clamp(180px, 22vw, 340px); left: max(0px, calc(50% - 760px)); top: 14%; transform: rotate(-12deg); }
.final-cut.f2 { width: clamp(160px, 18vw, 280px); right: max(0px, calc(50% - 740px)); bottom: 8%; transform: rotate(10deg); }

/* ---------- reveal ---------- */
.js .rise { opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out); }
.js .rise.is-in { opacity: 1; transform: none; }
.js .slap { opacity: 0; transform: translate(40px, -30px) rotate(6deg); transition: opacity 0.4s var(--ease-out), transform 0.7s var(--ease-thunk); }
.js .slap.is-in { opacity: 1; transform: rotate(var(--settle, -0.6deg)); }
.hall-card.slap { --settle: 2deg; }
.js .pop-in { opacity: 0; transform: scale(0.6) translateY(30px); transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-thunk); }
.js .pop-in.is-in { opacity: 1; transform: none; }
.critter.pop-in:nth-child(2) { transition-delay: 0.12s; }
.critter.pop-in:nth-child(3) { transition-delay: 0.24s; }

/* ---------- responsive ---------- */
@media (min-width: 1061px) { .sr-ranks { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1060px) {
  .showroom { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .sr-types { grid-column: 1 / -1; grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .critters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hall-in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hx { min-height: 0; padding-top: 28px; }
  .hx-grid { grid-template-columns: 1fr; }
  .hx::before { background: linear-gradient(180deg, rgba(15,14,17,0.92) 0%, rgba(15,14,17,0.7) 50%, var(--desk) 100%); }
    .step { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-shot { order: 0; }
  .duo { grid-template-columns: 1fr; }
  .showroom { grid-template-columns: 1fr; min-height: 0; }
  .sr-info { text-align: center; }
  .critters { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 560px) {
  .hx-title { font-size: clamp(4rem, 21vw, 6rem); }
    .discord-card .stamp-btn { flex-wrap: wrap; }
  .sr-types { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .critters { grid-template-columns: 1fr 1fr; }
  .critter:last-child { grid-column: 1 / -1; }
  .critter:last-child img { width: 60%; }
  .loot-dots { display: none; }
  .step-shot .cut { width: 40%; right: -2%; }
  .step:nth-child(even) .step-shot .cut { left: -2%; }
  .final-cut { display: none; }
  .hall-big { min-height: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  .loot-img, .loot-glow { animation: none; }
  .js .slap, .js .pop-in { opacity: 1; transform: none; }
  .drive-truck { transform: translateX(10%); }
  .js .rise { opacity: 1; transform: none; }
}

.hl-link { color: var(--yellow); font-weight: 700; text-underline-offset: 0.2em; }
.hl-link:hover { color: var(--paper); }
