/* ============ Monterra Bay ============ */
:root {
  --bg: #0e0a07;
  --bg-2: #140e09;
  --panel: #17110c;
  --panel-solid: #18110c;
  --tile: rgba(255, 240, 220, 0.045);
  --tile-hover: rgba(255, 240, 220, 0.08);
  --line: rgba(255, 235, 210, 0.08);
  --line-2: rgba(255, 235, 210, 0.14);
  --text: #f4ece2;
  --muted: #9b8f84;
  --dim: #6c625a;
  --orange: #f7a046;
  --orange-2: #ff8a1f;
  --orange-deep: #c9621c;
  --ink: #1a1009;
  --radius: 3px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 3px; }

.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.link { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Background layers ---------- */
#scene {
  position: fixed; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated;
  z-index: -3;
  transition: opacity 1s var(--ease), filter 1s var(--ease);
}
body:not(.is-home) #scene { opacity: .32; filter: saturate(.7) blur(1px); }
.vignette {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 70% 60%, transparent 30%, rgba(8, 5, 3, .75) 100%),
    linear-gradient(90deg, rgba(10, 7, 4, .85) 0%, rgba(10, 7, 4, .2) 45%, transparent 70%);
}
body:not(.is-home) .vignette { background: radial-gradient(120% 90% at 50% 40%, rgba(14,10,7,.4), rgba(8,5,3,.9)); }
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-1%,3%)} 100%{transform:translate(0,0)} }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 3px; border: 1px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; user-select: none;
  transform: translate(var(--bx), var(--by));
  transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .3s;
}
.btn:active { transform: translate(var(--bx), var(--by)) scale(.96); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn--lg { height: 54px; font-size: 18px; }
.btn--block { width: 100%; }
.btn--ghost { background: rgba(14, 10, 7, .55); border-color: var(--line-2); }
.btn--ghost:hover { border-color: rgba(247, 160, 70, .55); color: #fff; }
.btn--primary { background: var(--orange); color: var(--ink); box-shadow: 0 0 0 0 rgba(247, 160, 70, 0); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0; transition: background-position .7s var(--ease);
}
.btn--primary:hover { background-color: #ffb15c; box-shadow: 0 8px 30px -6px rgba(247, 160, 70, .55); }
.btn--primary:hover::after { background-position: 0 0; }
.btn:disabled { background: rgba(255,255,255,.07); color: var(--dim); cursor: not-allowed; box-shadow: none; }
.btn:disabled::after { display: none; }
.badge {
  position: absolute; top: -8px; right: -8px;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: #fff3e4; color: var(--ink); font-size: 12px; line-height: 22px; letter-spacing: 0;
  box-shadow: 0 0 0 3px var(--bg);
}
.bump { animation: bump .5s var(--spring); }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.18) rotate(-4deg)} 100%{transform:scale(1)} }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) 12px;
}
.topbar__right { display: flex; gap: 10px; justify-content: flex-end; }
.topbar__right .btn { min-width: 132px; }
.back { opacity: 0; pointer-events: none; transform: translateX(-10px); transition: opacity .3s, transform .3s var(--ease); }
body:not(.is-home) .back { opacity: 1; pointer-events: auto; transform: none; }
.brand { display: block; width: 72px; transition: transform .4s var(--spring); }
.brand:hover { transform: translateY(-3px) rotate(-4deg) scale(1.06); }
.brand.spin { animation: spin 1s var(--spring); }
@keyframes spin { to { transform: rotateY(720deg); } }
.logo { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 18px rgba(247, 140, 50, .35)); overflow: visible; }

/* ---------- Views ---------- */
main { flex: 1; position: relative; padding: 0 var(--gutter); }
.view { display: none; }
.view.is-active { display: block; }
.reveal { opacity: 0; transform: translateY(18px); }
.view.is-active .reveal { animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(44px, 6vw, 76px); line-height: .9; letter-spacing: .01em;
  margin: 16px 0 26px;
}
[data-split] .ch { display: inline-block; opacity: 0; transform: translateY(60%) rotate(6deg); }
.view.is-active [data-split] .ch { animation: chIn .6s var(--spring) forwards; animation-delay: calc(var(--c) * 35ms); }
@keyframes chIn { to { opacity: 1; transform: none; } }

/* ---------- Home ---------- */
.home {
  min-height: calc(100dvh - 160px);
  display: grid;
  grid-template-columns: 1fr minmax(300px, 400px);
  align-items: center;
  gap: 40px;
  position: relative;
}

.menu { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-left: 14px; }
.menu__item {
  position: relative;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(42px, 5.4vw, 68px); line-height: 1.04; letter-spacing: .005em;
  color: rgba(244, 236, 226, .38);
  transition: color .3s, transform .45s var(--spring), letter-spacing .45s var(--ease);
}
.menu__item span { display: inline-block; position: relative; }
.menu__item::before {
  content: ""; position: absolute; left: -16px; top: 18%; bottom: 18%; width: 4px; border-radius: 2px;
  background: var(--orange); transform: scaleY(0); transition: transform .35s var(--spring);
}
.menu__item.is-active, .menu__item:hover, .menu__item:focus-visible { color: var(--text); transform: translateX(14px); }
.menu__item.is-active::before { transform: scaleY(1); }

.home-card { padding: 28px; align-self: end; margin-bottom: 9vh; overflow: hidden; position: relative; }
.home-card h2 { font-family: var(--display); font-size: 34px; line-height: 1; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .01em; }
.home-card p { color: #cdc2b6; margin: 0 0 20px; font-size: 16px; max-width: 34ch; }
.home-card__body > * { animation: cardIn .45s var(--ease) both; }
.home-card__body > *:nth-child(2) { animation-delay: .05s; }
.home-card__body > *:nth-child(3) { animation-delay: .1s; }
.home-card__body > *:nth-child(4) { animation-delay: .15s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

.ip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--orange); color: var(--ink); border-radius: 3px; padding: 10px 10px 10px 18px;
  font-weight: 600; font-size: 16px; position: relative; overflow: hidden;
  cursor: pointer; border: 0; width: 100%; text-align: left;
  transition: transform .25s var(--spring), box-shadow .3s;
}
.ip:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(247,160,70,.6); }
.ip__btn {
  background: rgba(26,16,9,.14); border-radius: 3px; padding: 7px 12px; font-size: 13px; font-weight: 600;
  transition: background .2s;
}
.ip:hover .ip__btn { background: rgba(26,16,9,.24); }
.ip.copied .ip__btn { background: var(--ink); color: var(--orange); }
.mini-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.mini-list li { display: flex; gap: 10px; align-items: center; color: #cdc2b6; font-size: 15px; }
.mini-list li::before { content: ""; width: 6px; height: 6px; background: var(--orange); flex: none; }
.pill { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .05em; padding: 2px 8px; border-radius: 3px; background: var(--orange); color: var(--ink); }
.pill--ghost { background: rgba(255,255,255,.07); color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  padding: 22px var(--gutter) max(22px, env(safe-area-inset-bottom));
  font-size: 13px; color: var(--muted);
}
@keyframes blink { 50% { opacity: 0; } }
.legal { margin: 0; display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Split layout (guide / notes / shop) ---------- */
.split { display: grid; grid-template-columns: 270px 1fr; gap: 44px; align-items: start; }
.split .page-title { font-size: clamp(44px, 4.3vw, 60px); white-space: nowrap; }
.split__side { position: sticky; top: 90px; }
.split__main { padding-top: 14px; min-width: 0; }
.subnav { display: flex; flex-direction: column; gap: 2px; }
.subnav :is(button, a) {
  all: unset; cursor: pointer; position: relative;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 21px; line-height: 1.2;
  color: rgba(244,236,226,.42); padding: 5px 0 5px 14px;
  transition: color .25s, transform .35s var(--spring);
}
.subnav :is(button, a)::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; background: var(--orange); border-radius: 2px; transform: scaleY(0); transition: transform .3s var(--spring); }
.subnav :is(button, a):hover { color: #e6ddd2; transform: translateX(4px); }
.subnav :is(button, a).is-active { color: var(--text); }
.subnav :is(button, a).is-active::before { transform: scaleY(1); }
.subnav :is(button, a):focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.subnav .tick { width: 16px; height: 16px; border-radius: 4px; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-size: 11px; transform: scale(0); transition: transform .4s var(--spring); }
.subnav .done .tick { transform: scale(1); }
.subnav--notes button { flex-direction: column; align-items: flex-start; gap: 0; }
.subnav--notes small { font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--dim); }

.progress { margin: -8px 0 22px; padding: 0 0 0 14px; }
.progress__row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.progress__row b { color: var(--text); }
.progress__track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress__track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange-deep), var(--orange)); border-radius: 3px; transition: width .6s var(--spring); }

/* Guide */
.guide, .notes { padding: 30px; max-width: 760px; }
.guide h2, .notes h2 { font-family: var(--display); text-transform: uppercase; font-size: 34px; line-height: 1; margin: 0 0 14px; }
.guide > p, .notes > p { color: #cdc2b6; margin: 0 0 20px; max-width: 62ch; }
.guide .swap, .notes .swap { animation: cardIn .45s var(--ease) both; }
.tasks { display: grid; gap: 8px; margin-bottom: 4px; }
.task {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  background: var(--tile); border-radius: 3px; cursor: pointer; user-select: none;
  transition: background .2s, transform .3s var(--spring);
}
.task:hover { background: var(--tile-hover); transform: translateX(4px); }
.task input { position: absolute; opacity: 0; pointer-events: none; }
.box { width: 20px; height: 20px; border-radius: 3px; border: 2px solid var(--orange); flex: none; display: grid; place-items: center; transition: background .25s, transform .4s var(--spring); }
.box svg { width: 12px; height: 12px; stroke: var(--ink); stroke-width: 3.5; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s .1s var(--ease); }
.task input:checked + .box { background: var(--orange); transform: rotate(-8deg) scale(1.08); }
.task input:checked + .box svg { stroke-dashoffset: 0; }
.task input:checked ~ span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(247,160,70,.6); }
.task input:focus-visible + .box { outline: 2px solid var(--orange); outline-offset: 3px; }
.guide-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.kbd-list { display: grid; gap: 8px; }
.kbd-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--tile); border-radius: 3px; flex-wrap: wrap; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--orange); background: rgba(247,160,70,.1); border: 1px solid rgba(247,160,70,.25); padding: 3px 8px; border-radius: 3px; cursor: copy; transition: background .2s; }
.kbd:hover { background: rgba(247,160,70,.2); }
.rules { counter-reset: r; display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.rules li { counter-increment: r; display: flex; gap: 14px; padding: 12px 14px; background: var(--tile); border-radius: 3px; }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--display); font-weight: 700; color: var(--orange); font-size: 18px; line-height: 1.3; }
.rules b { display: block; }
.rules span { color: var(--muted); font-size: 14px; }

/* Notes */
.notes__meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.notes h2 { font-size: clamp(32px, 4vw, 44px); }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.feat > div {
  background: var(--tile); border-radius: 3px; padding: 14px 14px 16px; position: relative; overflow: hidden;
  transition: background .25s, transform .35s var(--spring);
}
.feat > div:hover { background: var(--tile-hover); transform: translateY(-3px); }
.feat b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 18px; letter-spacing: .02em; margin-bottom: 2px; }
.feat span { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: block; }
.locked { text-align: center; padding: 40px 10px 20px; }
.locked .lock { font-size: 44px; display: inline-block; animation: wobble 2.4s var(--ease) infinite; }
@keyframes wobble { 0%,70%,100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 85% { transform: rotate(10deg); } 92% { transform: rotate(-5deg); } }
.countdown { display: flex; justify-content: center; gap: 10px; margin: 18px 0 8px; }
.countdown div { background: var(--tile); border-radius: 3px; padding: 10px 14px; min-width: 70px; }
.countdown b { display: block; font-family: var(--display); font-size: 32px; line-height: 1; color: var(--orange); }
.countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- Shop ---------- */
.split--shop { grid-template-columns: 270px 1fr; }
.shop { padding: 26px; }
.shop__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.shop__head h2 { font-family: var(--display); text-transform: uppercase; font-size: 30px; margin: 0; line-height: 1; }
.seg { display: inline-flex; background: rgba(255,255,255,.05); border-radius: 3px; padding: 3px; position: relative; }
.seg button { all: unset; cursor: pointer; position: relative; z-index: 1; padding: 6px 14px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .25s; }
.seg button.is-active { color: var(--ink); }
.seg .seg__pill { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 3px; background: var(--orange); transition: transform .4s var(--spring), width .4s var(--spring); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column;
  background: var(--tile); border: 1px solid var(--line); border-radius: 3px; padding: 10px;
  transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), border-color .3s, background .3s;
  transform-style: preserve-3d;
}
.card:hover { border-color: rgba(247,160,70,.35); background: rgba(255,240,220,.06); transition: transform .1s linear, border-color .3s, background .3s; }
.card.is-pop { background: rgba(247,160,70,.05); border-color: rgba(247,160,70,.45); }
.card__art { height: 110px; border-radius: 3px; background: rgba(0,0,0,.25); display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; position: relative; }
.card__art svg { width: 62px; height: 62px; transform: translateZ(30px); transition: transform .5s var(--spring); filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.card:hover .card__art svg { transform: translateZ(30px) translateY(-6px) scale(1.12) rotate(-5deg); }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px; }
.card h3 { font-family: var(--display); text-transform: uppercase; font-size: 21px; margin: 0; line-height: 1.1; }
.card ul { list-style: none; padding: 0 4px; margin: 6px 0 14px; color: var(--muted); font-size: 13.5px; flex: 1; }
.buy {
  all: unset; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 3px; border: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 15px;
  transition: background .2s, color .2s, border-color .2s, transform .3s var(--spring);
}
.buy small { font-size: 12px; color: var(--muted); transition: color .2s; }
.buy:hover, .card.is-pop .buy { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.buy:hover small, .card.is-pop .buy small { color: rgba(26,16,9,.65); }
.buy:active { transform: scale(.96); }
.buy:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.buy.added { background: #67d46b !important; border-color: #67d46b !important; color: var(--ink) !important; }

.cart { margin-top: 26px; padding: 16px; }
.cart__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cart__head b { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 16px; }
.chip { font-size: 12px; background: rgba(247,160,70,.15); color: var(--orange); padding: 2px 8px; border-radius: 3px; }
.cart__list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; max-height: 200px; overflow: auto; }
.cart__list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; padding: 6px 8px; background: var(--tile); border-radius: 3px; animation: cardIn .35s var(--ease); }
.cart__list button, .x { all: unset; cursor: pointer; color: var(--dim); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 4px; transition: color .2s, background .2s; }
.cart__list button:hover, .x:hover { color: var(--text); background: rgba(255,255,255,.08); }
.cart__empty { color: var(--dim); font-size: 13px; padding: 4px 0; }
.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 3px;
  background: rgba(0,0,0,.28); border: 1px solid var(--line-2); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(247,160,70,.12); background: rgba(0,0,0,.4); }
.input.err, .btn.err { border-color: #e2553f; animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.cart .input { margin-bottom: 10px; }

.flyer { position: fixed; z-index: 95; pointer-events: none; width: 40px; height: 40px; }
.flyer svg, .flyer img { width: 100%; height: 100%; object-fit: contain; }
.card__art img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transform: translateZ(30px); transition: transform .5s var(--spring); filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.card:hover .card__art img { transform: translateZ(30px) translateY(-4px) scale(1.06); }
.summary__list .thumb img, .cmp-icon img, .cmp-bar__thumbs img { width: 80%; height: 80%; object-fit: contain; }
.shop__state { padding: 8px 2px 4px; }
#payBtn.is-busy { opacity: .7; pointer-events: none; }
.discord-login { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.discord-login__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.discord-login__user { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.discord-login__user img { width: 28px; height: 28px; border-radius: 50%; }

/* ---------- Checkout ---------- */
.page-title--wide { margin-top: 10px; }
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
.checkout__main { display: grid; gap: 16px; }
.step { padding: 22px; }
.step__title { display: flex; align-items: center; gap: 12px; font-family: var(--display); text-transform: uppercase; font-size: 24px; letter-spacing: .02em; margin: 0 0 18px; line-height: 1; }
.num { width: 26px; height: 26px; border-radius: 3px; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-size: 17px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #cdc2b6; }
.field > span { padding-left: 2px; }
.gift-field { margin-top: 12px; animation: cardIn .4s var(--ease); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: #cdc2b6; cursor: pointer; line-height: 1.45; }
.check input { position: absolute; opacity: 0; }
.check i { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--line-2); background: rgba(0,0,0,.3); flex: none; margin-top: 1px; position: relative; transition: background .2s, border-color .2s, transform .35s var(--spring); }
.check i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--spring); }
.check input:checked + i { background: var(--orange); border-color: var(--orange); transform: scale(1.1); }
.check input:checked + i::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 2px; }
.pay { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.pay button {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 3px; background: var(--tile); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; transition: border-color .25s, background .25s, transform .3s var(--spring);
}
.pay button:hover { background: var(--tile-hover); transform: translateY(-2px); }
.pay button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.pay .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--dim); position: relative; flex: none; transition: border-color .2s; }
.pay .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform .35s var(--spring); }
.pay button[aria-checked="true"] { border-color: var(--orange); background: rgba(247,160,70,.08); }
.pay button[aria-checked="true"] .radio { border-color: var(--orange); }
.pay button[aria-checked="true"] .radio::after { transform: scale(1); }
.summary { padding: 22px; position: sticky; top: 90px; display: grid; gap: 16px; }
.summary .step__title { margin-bottom: 0; }
.summary__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.summary__list li { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--tile); border-radius: 3px; animation: cardIn .35s var(--ease); }
.summary__list .thumb { width: 38px; height: 38px; border-radius: 3px; background: rgba(0,0,0,.3); display: grid; place-items: center; flex: none; }
.summary__list .thumb svg { width: 26px; height: 26px; }
.summary__list .meta { flex: 1; min-width: 0; }
.summary__list .meta b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 16px; line-height: 1.1; }
.summary__list .meta small { color: var(--muted); font-size: 12px; }
.summary__list .price { font-family: var(--display); font-weight: 700; font-size: 15px; }
.summary__empty { color: var(--muted); font-size: 14px; padding: 14px; text-align: center; border: 1px dashed var(--line-2); border-radius: 3px; }
.inline { display: flex; gap: 8px; }
.inline .btn { height: 44px; }
.summary__rows { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.summary__rows div { display: flex; justify-content: space-between; }
.summary__rows .total { color: var(--text); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 22px; margin-top: 4px; }
.summary__rows .total span:last-child { color: var(--orange); }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro__inner { text-align: center; }
.intro__logo { width: 140px; margin: 0 auto 18px; animation: drop .9s var(--spring) both; }
@keyframes drop { from { transform: translateY(-80px) scale(.4) rotate(-20deg); opacity: 0; } }
.intro__bar { width: 200px; height: 4px; background: rgba(255,255,255,.08); margin: 18px auto 10px; border-radius: 2px; overflow: hidden; }
.intro__bar i { display: block; height: 100%; width: 0; background: var(--orange); animation: load 1.3s .3s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }
.intro__hint { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- Beloningen ---------- */
.lead { color: #cdc2b6; max-width: 60ch; margin: -10px 0 24px; font-size: 16px; }
main:has(.view--thanks.is-active) { display: flex; flex-direction: column; }
.view--thanks.is-active { display: flex; flex: 1; align-items: center; justify-content: center; }
.thanks { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 0; }
.thanks .lead { margin: 0 auto 28px; }
.rewards { display: grid; gap: 16px; max-width: 720px; }
.reward { padding: 24px; }
.reward__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.reward h2 { font-family: var(--display); text-transform: uppercase; font-size: 30px; line-height: 1; margin: 0; }
.reward > p { margin: 0 0 18px; }
.reward > p.small { margin: 16px 0 0; }
.pill--dev { background: transparent; color: var(--orange); border: 1px dashed rgba(247,160,70,.6); }
.votes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.votes li { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 14px; background: var(--tile); border: 1px solid var(--line); border-radius: 3px; }
.vote__num { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--orange); width: 18px; }
.vote__meta { flex: 1; min-width: 0; }
.vote__meta b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 17px; line-height: 1.1; }
.vote__meta small { color: var(--muted); font-size: 12.5px; }
.free-link {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px;
  border: 1px dashed rgba(247,160,70,.45); border-radius: 3px; transition: background .2s, border-color .2s;
}
.free-link:hover { background: rgba(247,160,70,.07); border-color: var(--orange); }
.free-link b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 16px; letter-spacing: .03em; line-height: 1.1; }
.free-link small { color: var(--muted); font-size: 12.5px; }
.free-link > span:nth-child(2) { flex: 1; }
.free-link__arrow { color: var(--orange); transition: transform .3s var(--spring); }
.free-link:hover .free-link__arrow { transform: translateX(4px); }

/* ---------- Compare ---------- */
.cmp { display: flex; align-items: center; gap: 8px; padding: 0 4px; margin: -4px 0 10px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; width: max-content; }
.cmp input { position: absolute; opacity: 0; }
.cmp i { width: 15px; height: 15px; border: 1.5px solid var(--dim); border-radius: 3px; position: relative; transition: background .2s, border-color .2s; }
.cmp i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--spring); }
.cmp input:checked + i { background: var(--orange); border-color: var(--orange); }
.cmp input:checked + i::after { transform: rotate(45deg) scale(1); }
.cmp input:checked ~ span { color: var(--text); }
.cmp input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 2px; }
.cmp:hover { color: var(--text); }
.cmp-all { all: unset; cursor: pointer; margin-left: auto; font-size: 13px; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 3px; transition: color .2s, border-color .2s; }
.cmp-all:hover { color: var(--text); border-color: rgba(247,160,70,.55); }
.cmp-all:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.cmp-bar {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 59; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 12px;
  background: var(--panel); border: 1px solid rgba(247,160,70,.45); border-radius: 3px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.7); animation: barIn .4s var(--spring);
  max-width: calc(100vw - 32px);
}
@keyframes barIn { from { opacity: 0; transform: translate(-50%, 20px); } }
.cmp-bar__thumbs { display: flex; }
.cmp-bar__thumbs span { width: 34px; height: 34px; display: grid; place-items: center; background: #0f0b08; border: 1px solid var(--line-2); border-radius: 3px; margin-left: -6px; }
.cmp-bar__thumbs span:first-child { margin-left: 0; }
.cmp-bar__thumbs svg { width: 24px; height: 24px; }
.cmp-bar__text { font-size: 14px; color: #cdc2b6; white-space: nowrap; }
.cmp-bar__clear { all: unset; cursor: pointer; font-size: 13px; color: var(--muted); padding: 4px 6px; }
.cmp-bar__clear:hover { color: var(--text); }
body.has-cmp main { padding-bottom: 90px; }
.modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,5,3,.75); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal__box { position: relative; width: min(980px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; padding: 22px; animation: miniIn .35s var(--spring); }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal__head h2 { font-family: var(--display); text-transform: uppercase; font-size: 30px; margin: 0; line-height: 1; }
body.modal-open { overflow: hidden; }
.cmp-table-wrap { overflow: auto; margin: 0 -4px; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 6px 0; min-width: 520px; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 12px; font-weight: 400; }
.cmp-table tbody th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); width: 110px; padding-left: 4px; }
.cmp-table thead th { padding-top: 6px; }
.cmp-table thead th:not(:first-child), .cmp-table td { background: var(--tile); }
.cmp-table thead th:not(:first-child) { border-radius: 3px 3px 0 0; }
.cmp-table tbody tr:last-child td { border-radius: 0 0 3px 3px; }
.cmp-table tbody tr td { border-top: 1px solid var(--line); }
.cmp-icon { display: grid; place-items: center; height: 70px; background: rgba(0,0,0,.25); border-radius: 3px; margin-bottom: 10px; }
.cmp-icon svg { width: 46px; height: 46px; }
.cmp-table thead b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 20px; line-height: 1.1; margin-bottom: 4px; }
.cmp-table ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; color: #cdc2b6; font-size: 14px; }
.cmp-table ul li::before { content: "✓ "; color: var(--orange); }
.cmp-price { margin-bottom: 6px; }
.cmp-price b { font-family: var(--display); font-size: 20px; }
.cmp-price small { display: block; color: var(--muted); font-size: 12px; }
.buy--sm { width: 100%; box-sizing: border-box; font-size: 14px; }

/* ---------- Floating cart ---------- */
body.has-fab .footer { padding-right: calc(var(--gutter) + 84px); }
.fab {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--orange); color: var(--ink);
  box-shadow: 0 14px 34px -8px rgba(247,160,70,.6), 0 0 0 6px rgba(247,160,70,.12);
  animation: fabIn .5s var(--spring);
  transition: transform .3s var(--spring), background .2s;
}
.fab:hover { background: #ffb15c; transform: translateY(-3px) scale(1.05); }
.fab .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.fab__count {
  position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 3px;
  background: #fff3e4; color: var(--ink); font-family: var(--display); font-size: 14px; line-height: 24px;
  box-shadow: 0 0 0 3px var(--bg);
}
.fab[aria-expanded="true"] { transform: scale(.92); }
@keyframes fabIn { from { transform: scale(0) rotate(-30deg); opacity: 0; } }
.mini-cart {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(max(20px, env(safe-area-inset-bottom)) + 76px); z-index: 61;
  width: min(360px, calc(100vw - 32px)); padding: 18px; display: grid; gap: 14px;
  background: var(--panel); border-color: var(--line-2); box-shadow: 0 20px 40px -12px rgba(0,0,0,.7);
  transform-origin: bottom right; animation: miniIn .35s var(--spring);
}
@keyframes miniIn { from { opacity: 0; transform: translateY(12px) scale(.92); } }
.mini-cart__head { display: flex; align-items: center; gap: 10px; }
.mini-cart__head b { font-family: var(--display); text-transform: uppercase; font-size: 22px; letter-spacing: .02em; flex: 1; }
.mini-cart__list { max-height: min(300px, 45vh); overflow: auto; }
.mini-cart__total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 20px; }
.mini-cart__total span:last-child { color: var(--orange); }
.mini-cart__more { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: -4px; }
.mini-cart__more:hover { color: var(--text); }
@media (max-width: 600px) {
  .fab { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .mini-cart { right: 16px; bottom: 84px; }
  .cmp-bar { left: 16px; right: 84px; transform: none; max-width: none; gap: 8px; bottom: 20px; }
  @keyframes barIn { from { opacity: 0; transform: translateY(20px); } }
  .cmp-bar__text { white-space: normal; font-size: 12.5px; flex: 1; line-height: 1.25; }
  .cmp-bar__thumbs { display: none; }
  .cmp-all { margin-left: 0; }
  .modal__box { padding: 16px; }
  .toast { bottom: 88px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 96;
  transform: translate(-50%, 140%); opacity: 0;
  background: #fff3e4; color: var(--ink); padding: 12px 18px; border-radius: 3px;
  font-weight: 600; font-size: 14px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
  transition: transform .45s var(--spring), opacity .3s; max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pay { grid-template-columns: repeat(3, 1fr); }
  .checkout { grid-template-columns: 1fr 320px; }
  .feat { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .home { grid-template-columns: 1fr; align-content: center; gap: 30px; padding-top: 50px; min-height: auto; }
  .home-card { align-self: stretch; margin-bottom: 10px; }
  .split, .split--shop { grid-template-columns: 1fr; gap: 0; }
  .split__side { position: static; }
  .page-title { margin: 10px 0 18px; }
  .subnav {
    flex-direction: row; overflow-x: auto; gap: 8px; padding: 2px 2px 10px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
    scrollbar-width: none; scroll-snap-type: x proximity;
  }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav :is(button, a) { flex: none; font-size: 16px; padding: 8px 14px; border-radius: 3px; border: 1px solid var(--line-2); background: rgba(14,10,7,.55); scroll-snap-align: start; }
  .subnav :is(button, a)::before { display: none; }
  .subnav :is(button, a).is-active { background: var(--orange); color: var(--ink); border-color: var(--orange); }
  .subnav :is(button, a):hover { transform: none; }
  .subnav .tick { width: 14px; height: 14px; }
  .subnav :is(button, a).is-active .tick { background: var(--ink); color: var(--orange); }
  .subnav .tick { display: none; }
  .subnav .done .tick { display: grid; }
  .subnav--notes button { flex-direction: row; align-items: baseline; gap: 8px; }
  .progress { padding: 0; margin: 0 0 14px; }
  .split__main { padding-top: 6px; }
  .cart { margin: 0 0 14px; order: 3; }
  .split--shop .split__side { display: flex; flex-direction: column; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .topbar { padding-top: max(14px, env(safe-area-inset-top)); }
  .hide-sm { display: none; }
  .topbar__right .btn { min-width: 0; width: 40px; padding: 0; }
  .topbar__right .btn span { display: none; }
  .btn--sm { height: 38px; padding: 0 12px; font-size: 14px; }
  .topbar .back span { display: none; }
  .brand { width: 56px; }
  .home { padding-top: 56px; gap: 24px; }
  .menu { padding-left: 12px; }
  .menu__item { font-size: clamp(40px, 13vw, 56px); }
  .menu__item.is-active, .menu__item:hover { transform: translateX(8px); }
  .home-card { padding: 22px; }
  .home-card h2 { font-size: 28px; }
  .guide, .notes, .shop, .step, .summary { padding: 18px; }
  .guide h2 { font-size: 28px; }
  .feat { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card__art { height: 90px; }
  .grid-2 { grid-template-columns: 1fr; }
  .pay { grid-template-columns: 1fr 1fr; }
  .pay button:last-child:nth-child(odd) { grid-column: span 2; }
  .footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .legal { gap: 6px 16px; font-size: 12px; }
  .countdown div { min-width: 60px; padding: 8px 10px; }
  .countdown b { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { animation: none; }
}

/* =========================================================
   Pixel frames: stepped corners + bevel, like an in-game GUI
   (9x9 SVG, sliced in thirds; every SVG unit renders as 3px)
   ========================================================= */
:root {
  --notch: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px);
  --frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='7' height='7' fill='%2318110c' fill-opacity='.95'/%3E%3Cpath fill='%23342519' d='M2 1h5v1H2zM1 2h1v5H1z'/%3E%3Cpath fill='%230b0806' d='M2 7h5v1H2zM7 2h1v5H7z'/%3E%3Cpath fill='%23040302' d='M2 0h5v1H2zM2 8h5v1H2zM0 2h1v5H0zM8 2h1v5H8zM1 1h1v1H1zM7 1h1v1H7zM1 7h1v1H1zM7 7h1v1H7z'/%3E%3C/svg%3E");
  --frame-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='7' height='7' fill='%23211811'/%3E%3Cpath fill='%233d2c1d' d='M2 1h5v1H2zM1 2h1v5H1z'/%3E%3Cpath fill='%23120d09' d='M2 7h5v1H2zM7 2h1v5H7z'/%3E%3Cpath fill='%23070504' d='M2 0h5v1H2zM2 8h5v1H2zM0 2h1v5H0zM8 2h1v5H8zM1 1h1v1H1zM7 1h1v1H7zM1 7h1v1H1zM7 7h1v1H7z'/%3E%3C/svg%3E");
  --frame-accent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='7' height='7' fill='%23261a10'/%3E%3Cpath fill='%235a3a1c' d='M2 1h5v1H2zM1 2h1v5H1z'/%3E%3Cpath fill='%23140d07' d='M2 7h5v1H2zM7 2h1v5H7z'/%3E%3Cpath fill='%23f7a046' d='M2 0h5v1H2zM2 8h5v1H2zM0 2h1v5H0zM8 2h1v5H8zM1 1h1v1H1zM7 1h1v1H7zM1 7h1v1H1zM7 7h1v1H7z'/%3E%3C/svg%3E");
}

.panel {
  background: none;
  border: 9px solid transparent;
  border-radius: 0;
  border-image: var(--frame) 3 fill / 9px stretch;
  box-shadow: none;
}
.mini-cart, .cmp-bar, .modal__box { box-shadow: none; filter: drop-shadow(0 18px 26px rgba(0,0,0,.65)); }
.cmp-bar { border: 9px solid transparent; border-image: var(--frame-accent) 3 fill / 9px stretch; background: none; padding: 0 0 0 4px; }

.card {
  background: none; border: 6px solid transparent; border-radius: 0;
  border-image: var(--frame-card) 3 fill / 6px stretch;
}
.card:hover, .card.is-pop { border-image-source: var(--frame-accent); background: none; }
.card__art { border-radius: 0; clip-path: var(--notch); }

/* tiles, buttons and fields get the same stepped corner */
.task, .feat > div, .kbd-row, .rules li, .votes li, .summary__list li, .cart__list li, .pay button,
.countdown div, .cmp-icon, .summary__list .thumb, .cmp-bar__thumbs span,
.btn, .ip, .ip__btn, .input, .buy, .seg, .seg .seg__pill, .cmp-all, .free-link, .pill, .chip, .num, .kbd, .toast, .day {
  border-radius: 0; clip-path: var(--notch);
}
.cmp-table thead th:not(:first-child), .cmp-table tbody tr:last-child td { border-radius: 0; }

/* chunky "pressable" buttons */
.btn--primary { box-shadow: inset 0 -3px 0 rgba(90, 40, 8, .45), inset 0 3px 0 rgba(255, 236, 200, .35); }
.btn--primary:hover { box-shadow: inset 0 -3px 0 rgba(90, 40, 8, .45), inset 0 3px 0 rgba(255, 236, 200, .45); }
.btn--primary:active { box-shadow: inset 0 3px 0 rgba(90, 40, 8, .45); }
.btn--ghost { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), inset 0 3px 0 rgba(255, 235, 210, .05); background: rgba(14, 10, 7, .85); }
.ip { box-shadow: inset 0 -3px 0 rgba(90, 40, 8, .4), inset 0 3px 0 rgba(255, 236, 200, .35); }
.ip:hover { box-shadow: inset 0 -3px 0 rgba(90, 40, 8, .4), inset 0 3px 0 rgba(255, 236, 200, .45); }
.input:focus { box-shadow: inset 0 0 0 1px var(--orange); }

/* count badge sits inside the button so the notch can't clip it */
.btn .badge { position: static; box-shadow: none; margin-left: 2px; background: var(--ink); color: var(--orange); border-radius: 0; height: 20px; line-height: 20px; min-width: 20px; font-size: 12px; }

/* floating cart: pixel square instead of a circle */
.fab { border-radius: 0; clip-path: var(--notch); box-shadow: inset 0 -4px 0 rgba(90,40,8,.45), inset 0 4px 0 rgba(255,236,200,.35); }
.fab__count { top: 5px; right: 5px; min-width: 20px; height: 20px; line-height: 20px; font-size: 12px; padding: 0 5px; border-radius: 0; background: var(--ink); color: var(--orange); box-shadow: none; }

/* square checkbox/radio markers */
.box, .check i, .cmp i, .pay .radio, .pay .radio::after, .subnav .tick { border-radius: 0; }

@media (max-width: 900px) {
  .subnav :is(button, a) { border-radius: 0; clip-path: var(--notch); }
}
@media (max-width: 600px) {
  .btn .badge { display: none; }
}
/* let the scrollable sub-navigation shrink inside the grid */
.split > *, .checkout > *, .rewards > * { min-width: 0; }

/* ---------- Vote icon in the top bar ---------- */
.topbar__right { align-items: center; }
.icon-link {
  display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted);
  transition: color .2s, transform .35s var(--spring);
}
.icon-link .ico { width: 22px; height: 22px; stroke-width: 2; }
.icon-link:hover, .icon-link:focus-visible { color: var(--orange); transform: translateY(-2px) rotate(-8deg); }
@media (max-width: 600px) { .icon-link { width: 34px; } }

/* ---------- Footer legal links ---------- */
.legal a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(155,143,132,.35); text-underline-offset: 3px; transition: color .2s; }
.legal a:hover { color: var(--orange); }

/* ---------- Legal documents ---------- */
.doc { padding: 30px; max-width: 820px; }
.doc__meta { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.doc__intro { font-size: 17px; color: var(--text); margin: 0 0 22px; max-width: 62ch; }
.doc__toc { list-style: none; counter-reset: t; padding: 14px 16px; margin: 0 0 30px; background: var(--tile); clip-path: var(--notch); columns: 2; column-gap: 24px; }
.doc__toc li { counter-increment: t; break-inside: avoid; padding: 3px 0; font-size: 14px; }
.doc__toc li::before { content: counter(t, decimal-leading-zero) "  "; font-family: var(--display); color: var(--orange); font-weight: 700; }
.doc__toc a { color: #cdc2b6; }
.doc__toc a:hover { color: var(--orange); }
.doc__sec { scroll-margin-top: 90px; padding-top: 22px; border-top: 1px solid var(--line); margin-top: 22px; }
.doc__sec:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.doc__sec h2 { display: flex; align-items: baseline; gap: 12px; font-family: var(--display); text-transform: uppercase; font-size: 24px; line-height: 1.1; margin: 0 0 10px; }
.doc__sec h2 span { color: var(--orange); font-size: 18px; }
.doc__sec p, .doc__sec li { color: #cdc2b6; max-width: 66ch; }
.doc__sec p { margin: 0 0 10px; }
.doc__sec ul { margin: 0 0 10px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.doc__sec ul li { padding-left: 16px; position: relative; }
.doc__sec ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--orange); }
.doc__sec b { color: var(--text); font-weight: 600; }
@media (max-width: 600px) {
  .doc { padding: 18px; }
  .doc__toc { columns: 1; }
  .doc__intro { font-size: 16px; }
}
/* long legal titles must fit the 270px side column */
#legalTitle { font-size: clamp(40px, 3.7vw, 46px); }

/* ---------- Top bar background on scroll ---------- */
.topbar { transition: background .25s, box-shadow .25s, padding .25s; }
body.scrolled .topbar {
  background: rgba(14, 10, 7, .97);
  box-shadow: 0 3px 0 #050302, 0 12px 24px -12px rgba(0, 0, 0, .8);
  padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 10px;
}

/* ---------- Compare popup: never wider than the screen ---------- */
.modal { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.modal__box { min-width: 0; max-width: 100%; }
.cmp-table-wrap { min-height: 0; overscroll-behavior: contain; }
@media (max-width: 600px) {
  .modal { padding: 0; align-items: end; }
  .modal__box { width: 100%; max-height: 88dvh; padding: 14px 12px 16px; border-bottom-width: 0; animation: sheetIn .35s var(--ease); }
  @keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
  .modal__head h2 { font-size: 26px; }
  .cmp-table-wrap { margin: 0 -12px; padding: 0 12px; scroll-snap-type: x mandatory; scroll-padding: 0 12px; }
  .cmp-table { min-width: 0; width: max-content; border-spacing: 8px 0; margin-left: -8px; }
  .cmp-table th:first-child { display: none; }
  .cmp-table thead th, .cmp-table td { width: 62vw; max-width: 240px; min-width: 150px; scroll-snap-align: start; padding: 10px; }
  .cmp-table td[data-label]:not([data-label=""])::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  }
  .cmp-icon { height: 56px; }
  .cmp-table thead b { font-size: 18px; }
}

/* ---------- Centre the panel on the page (under the logo); side menu stays left ---------- */
@media (min-width: 901px) {
  .split:not(.split--shop) .split__main { padding-top: clamp(14px, 4vh, 48px); }
  .split:not(.split--shop) .split__main > .panel { width: 100%; max-width: 820px; margin: 0 auto; }
}
@media (min-width: 1280px) {
  /* an empty column on the right, as wide as the menu, keeps the middle column centred on the page */
  .split:not(.split--shop) { grid-template-columns: 270px minmax(0, 1fr) 270px; }
}

/* pixel lock icon on the locked patch note */
.locked .lock { color: var(--orange); }
.locked .lock .ico { width: 44px; height: 44px; stroke-width: 2.4; stroke-linecap: square; stroke-linejoin: miter; }

/* footer: legal links on the left */
.legal--links a { font-size: 14px; color: #cdc2b6; }
@media (max-width: 600px) { .legal--links a { font-size: 13px; } }

/* ---------- Cart sits under the product panel ---------- */
.split__main .cart {
  margin-top: 16px; padding: 18px;
  display: grid; gap: 12px 16px; align-items: end;
  grid-template-columns: minmax(0, 1fr) 240px 200px;
  grid-template-areas: "head head head" "list name btn";
}
.split__main .cart .cart__head { grid-area: head; margin: 0; }
.split__main .cart .cart__list { grid-area: list; margin: 0; align-self: start; }
.split__main .cart .input { grid-area: name; margin: 0; }
.split__main .cart #toCheckout { grid-area: btn; height: 44px; }
@media (max-width: 900px) {
  .split__main .cart { grid-template-columns: 1fr; grid-template-areas: "head" "list" "name" "btn"; margin: 14px 0 0; }
}

/* cart rows only as wide as what's in them */
.cart__list { justify-items: start; grid-template-columns: minmax(0, 1fr); }
.cart__list li { width: max-content; max-width: 100%; gap: 16px; padding-right: 6px; }

/* ---------- Minecraft head inside the name fields ---------- */
.name-wrap { position: relative; display: block; min-width: 0; }
.name-wrap .input { padding-left: 50px; }
.name-wrap::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 28px; height: 28px; transform: translateY(-50%);
  background: rgba(255, 235, 210, .06); box-shadow: inset 0 0 0 1px var(--line-2); pointer-events: none;
}
.mc-head {
  position: absolute; left: 10px; top: 50%; z-index: 1; width: 28px; height: 28px;
  image-rendering: pixelated; pointer-events: none;
  opacity: 0; transform: translateY(-50%) scale(.5) rotate(-20deg);
  transition: opacity .2s, transform .45s var(--spring);
}
.mc-head.show { opacity: 1; transform: translateY(-50%) scale(1) rotate(0); }
.split__main .cart .name-wrap { grid-area: name; }
