/* Loadout cards: shared styles for /cards and /cards-order */

  :root { --rec: #ff3d2e; --bg: #070707; --line: rgba(255,255,255,.12); --mute: rgba(255,255,255,.55); --gold: #f1cf6b; }
  * { box-sizing: border-box; }
  html, body { margin: 0; background: var(--bg); color: #fff; font-family: 'JetBrains Mono', monospace; -webkit-tap-highlight-color: transparent; }
  body { min-height: 100dvh; display: flex; justify-content: center; overflow-x: hidden; }
  .app { position: relative; width: 100%; max-width: 480px; min-height: 100dvh; }
  .scr { display: none; min-height: 100dvh; padding: 14px 16px 120px; }
  .scr.on { display: block; animation: fade .4s ease-out; }
  @keyframes fade { from { opacity: 0; transform: translateY(8px); } }
  header { display: flex; justify-content: space-between; align-items: center; height: 40px; }
  .lo { display: flex; align-items: center; gap: 9px; font: 900 20px/1 'Archivo'; }
  .lo svg { width: 22px; height: 22px; }
  .drop { font-size: 10px; letter-spacing: .18em; color: var(--mute); text-align: right; line-height: 1.5; white-space: nowrap; }
  .drop b { color: #fff; display: block; font-size: 12px; }
  button { font-family: inherit; cursor: pointer; }
  .btn { width: 100%; border: 0; border-radius: 14px; padding: 18px; font: 800 14px 'JetBrains Mono'; letter-spacing: .14em; color: #fff; background: var(--rec); box-shadow: 0 10px 30px rgba(255,61,46,.35); }
  .btn.ghost { background: #151515; box-shadow: 0 0 0 1px var(--line); }
  .btn.save { background: #f1cf6b; color: #1a1200; box-shadow: 0 10px 30px rgba(241,207,107,.25); } /* "save everything": gold, so it stands apart from the red */
  .btn small { display: block; font-size: 10px; letter-spacing: .12em; opacity: .7; margin-top: 4px; font-weight: 700; }

  /* HOME */
  .hero { position: relative; height: 470px; margin: 4px -16px 0; overflow: hidden; perspective: 1400px; }
  .hero .glowbg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(241,207,107,.22), transparent 70%); }
  .hero .spin { position: absolute; left: 50%; top: 24px; width: 290px; height: 419px; margin-left: -145px; transform-style: preserve-3d; animation: spin 7s ease-in-out infinite; }
  .hero .spin canvas { width: 100%; height: 100%; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.7); }
  @keyframes spin { 0%, 100% { transform: rotateY(-16deg) rotateX(6deg); } 50% { transform: rotateY(16deg) rotateX(-4deg); } }
  .hero .sheen { position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 48%, transparent 60%); mix-blend-mode: overlay; animation: sheen 3.5s ease-in-out infinite; background-size: 250% 100%; }
  @keyframes sheen { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
  h1.big { margin: 6px 0 0; font: 900 64px/0.86 'Archivo'; font-stretch: 68%; letter-spacing: -.01em; text-transform: uppercase; }
  h1.big em { font-style: normal; color: var(--rec); }
  .lead { margin: 12px 0 18px; font: 500 14px/1.55 'Archivo'; color: rgba(255,255,255,.75); }
  .stack { display: grid; gap: 10px; }
  .what { margin: 26px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .what div { text-align: center; font-size: 9px; letter-spacing: .1em; color: var(--mute); }
  .what i { display: block; height: 44px; border-radius: 10px; margin-bottom: 6px; background: #151515; box-shadow: 0 0 0 1px var(--line); font-style: normal; font-size: 22px; line-height: 44px; }

  /* FIND */
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .ath { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; background: #111; box-shadow: 0 0 0 1px var(--line); border: 0; padding: 0; color: #fff; text-align: left; }
  .ath img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ath span { position: absolute; left: 10px; bottom: 10px; right: 10px; font: 800 11px/1.4 'JetBrains Mono'; letter-spacing: .1em; text-shadow: 0 1px 6px #000; }
  .ath.more { display: grid; place-items: center; text-align: center; font: 700 11px/1.5 'JetBrains Mono'; color: var(--mute); letter-spacing: .08em; padding: 12px; }
  .back { background: none; border: 0; color: var(--mute); font: 700 11px 'JetBrains Mono'; letter-spacing: .15em; padding: 0; }
  h2 { margin: 10px 0 0; font: 900 40px/0.9 'Archivo'; font-stretch: 70%; text-transform: uppercase; }

  /* FORGE */
  #forge { padding-top: 30px; }
  .forge-img { position: relative; width: 100%; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: #111; }
  .forge-img img, .forge-img canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .forge-img .scanwrap { position: absolute; inset: 0; z-index: 3; animation: scan 1.6s cubic-bezier(.6,0,.4,1) infinite alternate; will-change: transform; }
  .forge-img .scanl { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rec); box-shadow: 0 0 22px 7px rgba(255,61,46,.7); }
  @keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(0); } }
  .forge-img .cutglow { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
  .steps { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
  .steps li { font: 700 12px 'JetBrains Mono'; letter-spacing: .1em; color: rgba(255,255,255,.3); display: flex; gap: 10px; align-items: center; transition: color .3s; }
  .steps li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
  .steps li.now { color: #fff; } .steps li.now::before { border-color: var(--rec); background: var(--rec); box-shadow: 0 0 10px var(--rec); animation: blink .5s steps(1) infinite; }
  .steps li.done { color: rgba(255,255,255,.7); } .steps li.done::before { background: #fff; border-color: #fff; }
  @keyframes blink { 50% { opacity: .3; } }
  .flash { position: fixed; inset: 0; background: #fff; pointer-events: none; opacity: 0; z-index: 30; }
  .flash.go { animation: flash .9s ease-out; }
  @keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

  /* LOADOUT */
  .who { display: grid; gap: 8px; margin-top: 6px; }
  .namebox { display: flex; align-items: center; gap: 10px; background: #121212; border-radius: 12px; padding: 4px 4px 4px 14px; box-shadow: 0 0 0 1px var(--line); }
  .namebox label { font: 700 10px 'JetBrains Mono'; letter-spacing: .2em; color: var(--mute); white-space: nowrap; }
  .namebox input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 800 16px 'JetBrains Mono'; letter-spacing: .12em; text-transform: uppercase; padding: 12px 4px; }
  .namebox input::placeholder { color: rgba(255,255,255,.3); }
  .chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; background: #121212; border: 0; box-shadow: 0 0 0 1px var(--line); color: var(--mute); border-radius: 99px; padding: 9px 13px; font: 800 11px 'JetBrains Mono'; letter-spacing: .12em; }
  .chip.on { background: #fff; color: #000; }
  .chips .lbl { flex: none; align-self: center; font: 700 10px 'JetBrains Mono'; letter-spacing: .2em; color: var(--mute); }

  .inspect { position: relative; height: 560px; margin: 8px -16px 0; perspective: 1200px; display: grid; place-items: center; touch-action: none; user-select: none; }
  .inspect .aura { position: absolute; inset: 10% 5%; background: radial-gradient(ellipse at 50% 45%, var(--aura, rgba(241,207,107,.28)), transparent 65%); filter: blur(10px); }
  .card3d { position: relative; width: 340px; height: 491px; transform-style: preserve-3d; will-change: transform; }
  .card3d .slab { inset: 2px; width: auto; height: auto; border-radius: 12px; opacity: clamp(0, calc(var(--side, 0) * 4 - .2), 1); background: linear-gradient(90deg, var(--e2, #8a5a12), var(--e1, #f1cf6b) 50%, var(--e2, #8a5a12)); }
  #loadout { touch-action: pan-y; }
  .card3d > * { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 13px; }
  .card3d canvas.c { box-shadow: 0 40px 70px rgba(0,0,0,.75); }
  .card3d .holo { mix-blend-mode: color-dodge; opacity: var(--holo, .4); pointer-events: none;
    background: repeating-linear-gradient(calc(var(--mx, .5) * 90deg + 100deg), rgba(255,0,90,.35) 0 6%, rgba(255,200,0,.35) 6% 12%, rgba(0,255,170,.35) 12% 18%, rgba(0,160,255,.35) 18% 24%, rgba(200,0,255,.35) 24% 30%);
    background-size: 300% 300%; background-position: calc(var(--mx, .5) * 100%) calc(var(--my, .5) * 100%);
    -webkit-mask-image: radial-gradient(ellipse at calc(var(--mx,.5) * 100%) calc(var(--my,.5) * 100%), #000 0%, rgba(0,0,0,.25) 45%, transparent 75%); }
  .card3d .glare { pointer-events: none; mix-blend-mode: overlay; background: radial-gradient(circle at calc(var(--mx, .5) * 100%) calc(var(--my, .5) * 100%), rgba(255,255,255,.75), rgba(255,255,255,0) 45%); }
  .card3d canvas.embers { pointer-events: none; clip-path: inset(13% 8% 22% 8% round 45% 45% 0 0); }
  .card3d .wmk { pointer-events: none; overflow: hidden; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 30px 22px; transform: none; }
  .card3d .wmk span { font: 800 11px 'JetBrains Mono'; letter-spacing: .3em; color: rgba(255,255,255,.18); transform: rotate(-28deg); white-space: nowrap; }
  .hint { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font: 700 10px 'JetBrains Mono'; letter-spacing: .25em; color: var(--mute); }
  .tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
  .tier { border: 0; border-radius: 12px; padding: 11px 6px 9px; background: #121212; box-shadow: 0 0 0 1px var(--line); color: #fff; text-align: center; }
  .tier b { display: block; font: 900 13px 'Cinzel'; letter-spacing: .08em; }
  .tier span { display: block; font: 700 10px 'JetBrains Mono'; color: var(--mute); margin-top: 4px; letter-spacing: .06em; }
  .tier.on { box-shadow: 0 0 0 2px var(--tc), 0 0 22px color-mix(in srgb, var(--tc) 40%, transparent); }
  .tier i { display: block; font-style: normal; font: 800 9px 'JetBrains Mono'; color: var(--rec); margin-top: 3px; letter-spacing: .1em; }

  .sect { margin: 26px 0 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: baseline; }
  .sect h3 { margin: 0; font: 900 26px/1 'Archivo'; font-stretch: 72%; text-transform: uppercase; }
  .sect span { font: 700 10px 'JetBrains Mono'; letter-spacing: .15em; color: var(--mute); }
  .slots { display: grid; gap: 10px; }
  .slot { display: grid; grid-template-columns: 86px 1fr auto; gap: 12px; align-items: center; background: #101010; border-radius: 14px; padding: 9px; box-shadow: 0 0 0 1px var(--line); }
  .slot .th { width: 86px; height: 86px; border-radius: 10px; overflow: hidden; background: #1a1a1a; position: relative; border: 0; padding: 0; }
  .slot .th canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
  .slot b { display: block; font: 900 18px/1.05 'Archivo'; font-stretch: 78%; text-transform: uppercase; }
  .slot p { margin: 4px 0 0; font: 500 11px/1.4 'Archivo'; color: var(--mute); }
  .slot .eq { border: 0; border-radius: 10px; padding: 11px 10px; font: 800 11px 'JetBrains Mono'; letter-spacing: .1em; background: #1d1d1d; color: #fff; min-width: 74px; }
  .slot.on { box-shadow: 0 0 0 1.5px var(--rec); }
  .slot.on .eq { background: var(--rec); }
  .slot .eq small { display: block; font-size: 9px; opacity: .7; margin-top: 2px; }

  .bar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(7,7,7,0), #070707 28%); z-index: 10; display: none; }
  .bar.on { display: block; }
  .bar .row { display: flex; justify-content: space-between; font: 700 10px 'JetBrains Mono'; letter-spacing: .15em; color: var(--mute); margin-bottom: 8px; }
  .bar .row b { color: #fff; }

  .styles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; background: #121212; padding: 4px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
  .styles button { border: 0; border-radius: 9px; padding: 10px; background: none; color: var(--mute); font: 800 11px 'JetBrains Mono'; letter-spacing: .14em; }
  .styles button.on { background: #fff; color: #000; }
  .face { position: absolute; inset: 0; border-radius: 13px; overflow: hidden; isolation: isolate; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .face > * { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 13px; }
  .face.back { transform: rotateY(180deg); }
  .cardctl { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; margin: 2px 0 10px; }
  .cardctl .btn { padding: 14px 8px; font-size: 11px; }
  .cardctl .btn.on { background: #1d1d1d; box-shadow: 0 0 0 1.5px var(--rec); }
  .backinfo { margin-top: 14px; } .backinfo .namebox { margin-top: 10px; } .backinfo input { font-size: 13px; }
  .ptitle small { font: 700 11px 'JetBrains Mono'; letter-spacing: .14em; color: var(--mute); vertical-align: middle; margin-left: 6px; }
  .feed { display: grid; gap: 22px; }
  .item { background: #0e0e0e; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
  .item .ih { display: flex; justify-content: space-between; align-items: flex-end; padding: 14px 14px 10px; }
  .item .ih b { font: 900 24px/1 'Archivo'; font-stretch: 72%; text-transform: uppercase; }
  .item .ih p { margin: 4px 0 0; font: 500 11px/1.4 'Archivo'; color: var(--mute); }
  .item .ih span { font: 900 20px 'Archivo'; white-space: nowrap; margin-left: 10px; }
  .item .pv { display: block; width: 100%; border: 0; padding: 0; background: #111; cursor: zoom-in; }
  .item .pv canvas { display: block; width: 100%; height: auto; }
  .item .pv.flx { display: grid; grid-template-columns: 1fr .6fr; gap: 10px; padding: 12px; align-items: center; background: #0b0b0b; }
  .item .pv.flx canvas:last-child { border-radius: 14px; }
  .item .pv.stk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #0b141a; padding: 8px; }
  .item .ia { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding: 10px; }
  .item .ia .btn { padding: 13px 8px; font-size: 11px; }
  .item.on { box-shadow: 0 0 0 1.5px var(--rec); }
  .item.on .ia .eq { background: #1d1d1d; box-shadow: 0 0 0 1.5px var(--rec); }
  .btn.story { margin: 0 0 6px; background: linear-gradient(90deg, #ff3d2e, #ff7a1a, #e8197a); }
  .binder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .binder .bc { position: relative; aspect-ratio: 900/1300; border-radius: 8px; overflow: hidden; background: #111; box-shadow: 0 0 0 1px var(--line); }
  .binder .bc canvas { width: 100%; height: 100%; display: block; }
  .binder .bc span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 4px 5px; text-align: center; font: 800 9px 'JetBrains Mono'; letter-spacing: .12em; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
  .binder .bc.you { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(241,207,107,.4); }
  .binder .bc.lock canvas { filter: grayscale(1) brightness(.35); }
  .binder .bc.lock::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; font: 900 40px 'Cinzel'; color: rgba(241,207,107,.6); }
  .reveal { position: fixed; inset: 0; z-index: 35; background: radial-gradient(ellipse at 50% 45%, #1b1408, #050505 70%); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; perspective: 1400px; overflow: hidden; }
  .reveal.on { display: flex; }
  .reveal .rays, .reveal .burst, .reveal .burst i, .hero .glowbg, .hero .sheen, .inspect .aura, .forge-img .scanwrap { pointer-events: none; }
  .reveal .rcard, .reveal .rtap, .reveal .rbanner, .reveal #rgo { position: relative; z-index: 2; }
  .reveal .rays { position: absolute; left: 50%; top: 45%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; background: repeating-conic-gradient(rgba(241,207,107,.13) 0 6deg, transparent 6deg 18deg); animation: rot 18s linear infinite; -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 60%); opacity: .5; transition: opacity .6s; }
  .reveal.open .rays { opacity: 1; animation-duration: 6s; }
  @keyframes rot { to { transform: rotate(360deg); } }
  .rcard { position: relative; width: 270px; height: 390px; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.2,.9,.25,1.15); cursor: pointer; }
  .rcard .rf { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.8); }
  .rcard .rf canvas { width: 100%; height: 100%; display: block; }
  .rcard .real { transform: rotateY(180deg); }
  .rcard.idle { animation: hover 2.2s ease-in-out infinite; }
  @keyframes hover { 0%, 100% { transform: translateY(0) rotateZ(-1deg); box-shadow: none; } 50% { transform: translateY(-10px) rotateZ(1deg); } }
  .rcard.shake { animation: shake .5s linear; }
  @keyframes shake { 0%, 100% { transform: translate(0); } 20% { transform: translate(-6px, 2px) rotate(-2deg); } 40% { transform: translate(6px, -2px) rotate(2deg); } 60% { transform: translate(-4px, 1px) rotate(-1deg); } 80% { transform: translate(4px, -1px) rotate(1deg); } }
  .rcard.open { transform: rotateY(180deg) scale(1.08); }
  .rtap { font: 800 12px 'JetBrains Mono'; letter-spacing: .3em; color: var(--gold); animation: blink 1s steps(1) infinite; }
  .rbanner { text-align: center; opacity: 0; transform: translateY(20px); transition: all .5s .9s; }
  .reveal.open .rbanner { opacity: 1; transform: none; }
  .rbanner b { display: block; font: 900 40px/1 'Cinzel'; letter-spacing: .08em; background: linear-gradient(180deg, #fff6d0, #f1cf6b 55%, #a8741f); -webkit-background-clip: text; color: transparent; }
  .rbanner span { font: 800 11px 'JetBrains Mono'; letter-spacing: .2em; color: var(--mute); }
  #rgo { opacity: 0; pointer-events: none; transition: opacity .4s 1.6s; } .reveal.open #rgo { opacity: 1; pointer-events: auto; }
  .reveal.open .rtap { display: none; }
  .burst { position: absolute; left: 50%; top: 45%; width: 0; height: 0; }
  .burst i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #ffe6a0; box-shadow: 0 0 10px #ffcf6b; animation: fly 1.2s cubic-bezier(.1,.8,.3,1) forwards; }
  @keyframes fly { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
  #sview video { width: 100%; max-height: 72dvh; border-radius: 12px; background: #000; }
  .styles button small { display: block; font-size: 10px; letter-spacing: .1em; opacity: .65; margin-top: 3px; }
  ul.gets { list-style: none; margin: 0; padding: 12px 14px 2px; display: grid; gap: 6px; font: 600 11px/1.4 'JetBrains Mono'; color: rgba(255,255,255,.78); }
  ul.gets li::before { content: '✓  '; color: var(--rec); font-weight: 800; }
  .cardgets { background: #0e0e0e; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 4px; padding-bottom: 10px; }
  .cardgets ul.gets::before { content: 'YOUR CARD COMES AS'; display: block; font: 800 10px 'JetBrains Mono'; letter-spacing: .2em; color: var(--gold); margin-bottom: 4px; }
  .modal .view.duo { display: grid; grid-template-columns: 1fr .6fr; gap: 8px; align-items: center; }
  .modal .view.duo canvas { width: 100%; height: auto; }
  canvas, video { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
  .inspect { touch-action: pan-y; }
  .cardwrap { position: relative; transform-style: preserve-3d; }
  .face.front { transform: translateZ(2.5px); } .face.back { transform: rotateY(180deg) translateZ(2.5px); }
  .cshadow { position: absolute; left: 50%; bottom: 22px; width: 280px; height: 34px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.75), transparent 70%); filter: blur(6px); transform: translateX(-50%); pointer-events: none; }
  .inspect.holo .aura { background: conic-gradient(from 0deg, rgba(255,61,138,.35), rgba(255,210,63,.35), rgba(61,255,197,.35), rgba(61,155,255,.35), rgba(195,61,255,.35), rgba(255,61,138,.35)); border-radius: 50%; inset: 14% 8%; filter: blur(40px); animation: rot 9s linear infinite; }
  .inspect .aura { animation: breathe 3.6s ease-in-out infinite; }
  @keyframes breathe { 50% { opacity: .65; transform: scale(.96); } }
  .arts { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
  .arts span { font: 800 10px 'JetBrains Mono'; letter-spacing: .2em; color: var(--mute); margin-right: 4px; }
  .arts button { flex: 1; border: 0; border-radius: 99px; padding: 9px 6px; background: #121212; box-shadow: 0 0 0 1px var(--line); color: var(--mute); font: 800 10px 'JetBrains Mono'; letter-spacing: .1em; }
  .arts button.on { background: var(--gold); color: #1a1205; box-shadow: none; }
  .arts button.busy { animation: blink .6s steps(1) infinite; }
  .inspect::after { content: 'PAINTING YOUR CARD'; position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 99px; background: rgba(0,0,0,.6);
    font: 800 11px 'JetBrains Mono'; letter-spacing: .22em; color: var(--gold); opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; }
  .inspect.busy::after { opacity: 1; animation: blink .8s steps(1) infinite; }
  .arts { flex-wrap: nowrap; } .arts button { padding: 9px 4px; font-size: 9.5px; letter-spacing: .06em; }
  /* viewer + sheet */
  .modal { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 20; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 16px; gap: 12px; }
  .modal.on { display: flex; animation: fade .25s; }
  .modal .view { max-width: 448px; width: 100%; max-height: 74dvh; display: flex; justify-content: center; }
  .modal .view canvas { max-width: 100%; max-height: 74dvh; border-radius: 10px; }
  .modal .view video { max-width: 100%; max-height: 66dvh; border-radius: 10px; background: #000; }
  .modal .view.stk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #0b141a; border-radius: 14px; padding: 10px; }
  .modal .view.stk canvas { width: 100%; height: auto; }
  .modal .acts { display: flex; gap: 8px; width: 100%; max-width: 448px; }
  .modal .acts .btn { padding: 14px; font-size: 12px; }
  .sheet { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 25; display: none; align-items: flex-end; justify-content: center; }
  .sheet.on { display: flex; }
  .sheet .card { width: 100%; max-width: 480px; background: #121212; border-radius: 22px 22px 0 0; padding: 22px 18px calc(26px + env(safe-area-inset-bottom)); animation: up .3s ease-out; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
  .sheet h4 { margin: 0 0 4px; font: 900 32px/1 'Archivo'; font-stretch: 72%; text-transform: uppercase; }
  .sheet p { font: 500 12px/1.6 'Archivo'; color: var(--mute); margin: 0 0 14px; }
  .sheet ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; font: 600 12px 'JetBrains Mono'; }
  .sheet li { display: flex; justify-content: space-between; } .sheet li span { color: var(--mute); }
  .demo { font: 800 10px 'JetBrains Mono'; color: var(--rec); letter-spacing: .15em; margin-bottom: 10px; }
  /* readability pass: plain sans for everything people read, bigger sizes, less letter-spacing */
  h1.big { font-size: 48px; line-height: .92; }
  .btn { font: 800 15px/1.2 'Archivo'; letter-spacing: .03em; }
  .btn small { font: 600 12px/1.3 'Archivo'; letter-spacing: .01em; opacity: .8; margin-top: 5px; }
  .lead { font-size: 15px; }
  .drop { font: 600 11px/1.4 'Archivo'; letter-spacing: .06em; } .drop b { font: 800 13px 'JetBrains Mono'; }
  .back { font: 700 14px 'Archivo'; letter-spacing: .02em; color: rgba(255,255,255,.7); }
  .what { grid-template-columns: repeat(3, 1fr); gap: 10px; } .what div { font: 600 12px 'Archivo'; letter-spacing: 0; }
  .ath span { font: 800 13px/1.3 'Archivo'; letter-spacing: .02em; } .ath.more { font: 600 13px/1.5 'Archivo'; letter-spacing: 0; }
  .steps li { font: 700 14px 'Archivo'; letter-spacing: .02em; }
  .hint { font: 600 13px 'Archivo'; letter-spacing: .01em; }
  .panel { margin-top: 18px; background: #0e0e0e; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); padding: 16px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; } .prow { min-width: 0; }
  .ptitle { margin: 0; font: 900 26px/1 'Archivo'; font-stretch: 72%; text-transform: uppercase; }
  .rl { font: 700 13px 'Archivo'; color: rgba(255,255,255,.75); margin-bottom: 8px; }
  .panel .namebox { padding: 2px 4px 2px 14px; } .panel .namebox input { font: 700 17px 'Archivo'; letter-spacing: .03em; text-transform: none; }
  .panel .chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; gap: 7px; }
  .chip.own { background: none; box-shadow: 0 0 0 1.5px dashed; border: 1.5px dashed rgba(255,255,255,.35); box-shadow: none; color: #fff; }
  .chip.own.on { background: #fff; color: #000; border-color: #fff; }
  .note { margin-top: 8px; font: 500 13px/1.45 'Archivo'; color: rgba(255,255,255,.6); }
  .chip { font: 700 13px 'Archivo'; letter-spacing: .03em; padding: 10px 15px; }
  .arts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; } .arts button { font: 800 13px 'Archivo'; letter-spacing: .04em; padding: 12px 6px; border-radius: 12px; }
  .styles { margin: 0; } .styles button { font: 800 13px 'Archivo'; letter-spacing: .04em; } .styles button small { font: 600 12px 'Archivo'; letter-spacing: 0; }
  .tiers { margin: 0; } .tier span { font: 700 13px 'Archivo'; letter-spacing: 0; color: rgba(255,255,255,.75); } .tier i { font: 700 11px 'Archivo'; letter-spacing: 0; }
  .backinfo .namebox label { font: 700 11px 'Archivo'; letter-spacing: .06em; min-width: 74px; } .backinfo input { font: 600 15px 'Archivo' !important; text-transform: none !important; letter-spacing: 0 !important; }
  .cardgets { margin: 14px 0 10px; } .cardgets ul.gets::before { content: 'Your card comes with'; font: 800 13px 'Archivo'; letter-spacing: .01em; margin-bottom: 6px; }
  ul.gets { font: 500 14px/1.45 'Archivo'; gap: 7px; }
  .sect span { font: 600 12px 'Archivo'; letter-spacing: .01em; }
  .item .ih p { font-size: 14px; color: rgba(255,255,255,.7); } .item .ia .btn, .cardctl .btn, .modal .acts .btn { font-size: 14px; }
  .binder .bc span { font: 800 11px 'Archivo'; letter-spacing: .03em; }
  .bar .row { font: 700 13px 'Archivo'; letter-spacing: .02em; }
  .sheet p { font-size: 15px; } .sheet ul { font: 600 14px 'Archivo'; } .demo { font: 800 12px 'Archivo'; letter-spacing: .06em; }
  .sheet .tip { margin: -2px 0 4px; font: 500 13px/1.45 'Archivo'; color: rgba(255,255,255,.6); text-align: center; }
  .rtap { font: 800 15px 'Archivo'; letter-spacing: .08em; } .rbanner span { font: 700 13px 'Archivo'; letter-spacing: .06em; }
  .inspect::after { font: 800 13px 'Archivo'; letter-spacing: .08em; content: 'DRAWING YOUR CARD…'; }
  .toast { font: 700 13px/1.35 'Archivo' !important; letter-spacing: .02em !important; white-space: normal !important; }
  .toast { pointer-events: none; max-width: 90vw; white-space: nowrap; text-align: center; position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: #fff; color: #000; font: 800 11px 'JetBrains Mono'; letter-spacing: .1em; padding: 10px 14px; border-radius: 99px; z-index: 40; display: none; }

/* ---- site version additions ---- */
.lo { text-decoration: none; color: #fff; }
/* home: what you get, in plain words */
.got { margin: 22px 0 0; padding: 16px; border-radius: 16px; background: #101010; box-shadow: 0 0 0 1px var(--line); text-align: left; }
.gotrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 800 17px 'Archivo'; color: #fff; }
.gotrow span { font: 800 15px 'Archivo'; color: var(--gold); white-space: nowrap; }
.got p { margin: 4px 0 14px; font: 500 14px/1.5 'Archivo'; color: rgba(255,255,255,.75); }
.got p em { font-style: normal; font-weight: 800; color: #2bd96b; }
.got p b { color: #fff; }
.got p.digital { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: rgba(255,255,255,.6); }
/* maker: the free things, right under the card */
.freebie { margin: 12px 0 4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; }
.freebie b { width: 100%; text-align: center; font: 800 11px 'JetBrains Mono'; letter-spacing: .15em; color: #2bd96b; }
.freebie span { padding: 6px 10px; border-radius: 99px; background: rgba(43,217,107,.1); box-shadow: 0 0 0 1px rgba(43,217,107,.35); font: 700 13px 'Archivo'; color: #fff; }
/* order page: what you got */
.gotlist { margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: #101010; box-shadow: 0 0 0 1px var(--line); text-align: left; }
.gotlist h3 { margin: 0 0 8px; font: 900 20px 'Archivo'; font-stretch: 75%; text-transform: uppercase; }
.gotlist div { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 6px 0; font: 600 15px 'Archivo'; color: #fff; }
.gotlist div + div { border-top: 1px solid rgba(255,255,255,.06); }
.gotlist i { font-style: normal; } .gotlist b { color: #2bd96b; } .gotlist em { font: 800 11px 'JetBrains Mono'; letter-spacing: .1em; font-style: normal; color: #2bd96b; }
/* questions */
.faq { margin: 22px 0 0; text-align: left; }
.faq h3 { margin: 0 0 8px; font: 900 22px 'Archivo'; font-stretch: 75%; text-transform: uppercase; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 28px 14px 0; position: relative; font: 700 15px/1.35 'Archivo'; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 11px; font: 700 20px 'Archivo'; color: var(--gold); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 14px; font: 500 14px/1.55 'Archivo'; color: rgba(255,255,255,.75); }
.home-note { margin: 14px 0 0; font: 500 13px/1.5 'Archivo'; color: rgba(255,255,255,.55); text-align: center; }
.how { margin: 26px 0 0; display: grid; gap: 10px; }
.how div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font: 500 14px/1.45 'Archivo'; color: rgba(255,255,255,.8); }
.how b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #151515; box-shadow: 0 0 0 1px var(--line); font: 800 14px 'Archivo'; color: var(--rec); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.grid3 .ath { aspect-ratio: 2/3; border-radius: 12px; }
.tier[disabled] { opacity: .45; cursor: not-allowed; }
.emailbox { display: grid; gap: 6px; margin: 0 0 14px; }
.emailbox label { font: 700 13px 'Archivo'; color: rgba(255,255,255,.75); }
.emailbox input { width: 100%; border: 0; border-radius: 12px; padding: 15px 14px; background: #1b1b1b; box-shadow: 0 0 0 1px var(--line); color: #fff; font: 600 16px 'Archivo'; outline: 0; }
.emailbox input:focus { box-shadow: 0 0 0 1.5px var(--rec); }
.emailbox small { font: 500 12px/1.45 'Archivo'; color: rgba(255,255,255,.5); }
.sheet .err { color: #ff8a80; font: 600 13px 'Archivo'; margin: -4px 0 10px; min-height: 1em; }
.secure { margin-top: 10px; font: 600 12px 'Archivo'; color: rgba(255,255,255,.45); text-align: center; }
.card3d .slab { inset: 2px; width: auto; height: auto; border-radius: 12px; opacity: clamp(0, calc(var(--side, 0) * 4 - .2), 1); background: linear-gradient(90deg, var(--e2, #8a5a12), var(--e1, #f1cf6b) 50%, var(--e2, #8a5a12)); }
#loadout { touch-action: pan-y; }
.card3d { will-change: transform; transition: none; }/* ---- guidance: welcome back, what to do now, find your card ---- */
.pv.drawing { position: relative; }
.pv.drawing > * { opacity: .3; transition: opacity .2s; }
.pv.drawing::after { content: 'DRAWING YOUR STICKERS…'; position: absolute; inset: 0; display: grid; place-items: center; font: 800 13px 'JetBrains Mono'; letter-spacing: .12em; color: #fff; }
.thlabel { margin: 4px 14px 7px; font: 700 11px 'JetBrains Mono'; letter-spacing: .15em; color: var(--mute); }
.item .chips.thchips { margin: 0 14px 14px; padding: 0; flex-wrap: wrap; overflow: visible; gap: 7px; }
.notice { margin: 10px 0 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255,61,46,.12); box-shadow: 0 0 0 1px rgba(255,61,46,.45); font: 600 15px/1.45 'Archivo'; color: #fff; }
.notice b { display: block; font-weight: 900; text-transform: uppercase; margin-bottom: 4px; }
.notice[hidden] { display: none; }
.welcome { margin: 10px 0 4px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(241,207,107,.16), rgba(255,61,46,.12)); box-shadow: 0 0 0 1px rgba(241,207,107,.35); }
.welcome > b { display: block; font: 900 20px 'Archivo'; font-stretch: 75%; text-transform: uppercase; margin-bottom: 10px; }
.wbtns { display: grid; gap: 8px; }
.wbtns .btn { padding: 14px; font-size: 14px; }
.guide { margin: 16px 0 0; padding: 14px; border-radius: 14px; background: #0e0e0e; box-shadow: 0 0 0 1.5px rgba(255,61,46,.5); display: grid; gap: 10px; }
.guide > b { font: 900 18px 'Archivo'; font-stretch: 75%; text-transform: uppercase; color: var(--rec); }
.gstep { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font: 500 14px/1.45 'Archivo'; color: rgba(255,255,255,.82); }
.gstep i { font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1d1d1d; font: 800 13px 'Archivo'; color: #fff; }
.gstep.done i { background: #4ade80; color: #000; } .gstep.done i::after { content: ''; } .gstep.done { color: rgba(255,255,255,.5); }
.gstep u { text-decoration-color: var(--rec); text-underline-offset: 3px; }
.linkbox { display: flex; gap: 8px; align-items: center; margin: 4px 0 2px; padding: 6px 6px 6px 14px; border-radius: 12px; background: #121212; box-shadow: 0 0 0 1px var(--line); }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px 'JetBrains Mono'; color: #fff; }
.linkbox button { flex: none; border: 0; border-radius: 9px; padding: 10px 14px; background: #fff; color: #000; font: 800 13px 'Archivo'; cursor: pointer; }
.stk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; border-radius: 14px; background: #0b141a; }
.stk-grid button { border: 0; padding: 0; background: none; cursor: pointer; aspect-ratio: 1; border-radius: 10px; }
.stk-grid button:active { transform: scale(.94); }
.stk-grid img { width: 100%; height: 100%; object-fit: contain; display: block; }
.howto { margin-top: 10px; padding: 14px; border-radius: 14px; background: #101010; box-shadow: 0 0 0 1px var(--line); font: 500 14px/1.5 'Archivo'; color: rgba(255,255,255,.85); }
.howto b.h { display: block; font: 800 13px 'Archivo'; letter-spacing: .08em; color: var(--gold); margin: 6px 0 4px; }
.howto ol { margin: 0; padding-left: 20px; } .howto li { margin: 3px 0; }
.sec2 { margin-top: 26px; } .sec2 h3 { margin: 0 0 8px; font: 900 22px 'Archivo'; font-stretch: 72%; text-transform: uppercase; }
/* sheets: the page behind stays put while the keyboard is open */
html.lock, html.lock body { overflow: hidden; }
.sheet { overscroll-behavior: contain; }
.sheet .card { max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* ---- computers: card on the left (stays in view), choices on the right; home in two columns. Phones unchanged. ---- */
@media (min-width: 1000px) {
  .app { max-width: 1120px; }
  .scr { padding: 18px 40px 140px; }
  #home .homegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 10px; }
  #home .hero { height: 620px; margin: 0; }
  #home .hero .spin { width: 380px; height: 549px; margin-left: -190px; top: 30px; }
  #home h1.big { font-size: 64px; }
  #home .stack { max-width: 460px; }
  #find .grid3 { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  #forge { max-width: 520px; margin: 0 auto; }
  #loadout { display: grid; grid-template-columns: 470px 1fr; column-gap: 48px; align-items: start; }
  #loadout > header { grid-column: 1 / -1; }
  #loadout .cardcol { position: sticky; top: 16px; }
  #loadout .inspect { margin: 0; }
  #loadout .ctrlcol { padding-top: 6px; min-width: 0; }
  #loadout .guide { margin-top: 0; }
  #loadout .feed { grid-template-columns: 1fr 1fr; }
  .bar { max-width: 1120px; padding-left: 40px; padding-right: 40px; display: none; }
  .bar.on { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
  .bar .row { margin: 0; gap: 14px; }
  .bar .btn { width: auto; min-width: 360px; }
  .sheet { align-items: center; } .sheet .card { border-radius: 22px; max-width: 460px; }
}
/* laptops with short screens: shrink the card so the buttons, the free extras and "use my whole photo" stay above the bottom bar */
/* (zoom, not scale: the card's layout box shrinks too, so it stays centred above the buttons and the "drag to spin" line) */
@media (min-width: 1000px) and (max-height: 960px) { #loadout .inspect { height: 500px; } #loadout .cardwrap { zoom: .84; } }
@media (min-width: 1000px) and (max-height: 860px) { #loadout .inspect { height: 440px; } #loadout .cardwrap { zoom: .74; } }
@media (min-width: 1000px) and (max-height: 760px) { #loadout .inspect { height: 380px; } #loadout .cardwrap { zoom: .6; } #loadout .freebie { margin-top: 8px; } }
a.btn { display: block; text-align: center; text-decoration: none; color: #fff; }
.wbtns a.btn { color: #fff; text-decoration: none; }
@media (min-width: 1000px) { .welcome { display: flex; align-items: center; gap: 20px; } .welcome[hidden] { display: none; } .welcome > b { margin: 0; } .wbtns { grid-auto-flow: column; } }
/* nothing may ever be wider than the screen */
html, body { overflow-x: clip; }
.app, .scr, .panel, .feed, .item, .ctrlcol, .cardcol { min-width: 0; max-width: 100%; }
.backopts { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 12; border: 0; border-radius: 99px; padding: 12px 20px;
  background: #fff; color: #000; font: 800 14px 'Archivo'; box-shadow: 0 10px 30px rgba(0,0,0,.6); cursor: pointer; animation: popin .3s ease-out; }
.backopts[hidden] { display: none; }
@keyframes popin { from { opacity: 0; transform: translate(-50%, 12px); } }

.got .launch{margin:-2px 0 12px;padding:10px 12px;border-radius:12px;background:linear-gradient(90deg,rgba(241,207,107,.16),rgba(255,61,46,.12));box-shadow:inset 0 0 0 1.5px #f1cf6b;color:#f1cf6b;font:800 13px/1.3 Archivo,sans-serif;letter-spacing:.04em}
.got .launch small{display:block;margin-top:3px;color:#e8e2cf;font:500 12px/1.35 Archivo,sans-serif;letter-spacing:0}
.got .launch[hidden]{display:none}
.launchtop{margin:4px 0 10px;padding:9px 12px;border-radius:999px;text-align:center;background:rgba(255,61,46,.14);box-shadow:inset 0 0 0 1.5px #ff3d2e;color:#fff;font:700 11.5px/1.2 'JetBrains Mono',monospace;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.launchtop b{color:#f1cf6b}
.launchtop[hidden]{display:none}
/* Shiny Holo stands out: moving rainbow border + rainbow letters (Hein couldn't find it, 14 Nov) */
@keyframes holoshift { to { background-position: 0 0, 300% 0; } }
.styles button[data-s="holo"] { border: 2px solid transparent; color: #fff; background: linear-gradient(#141414, #141414) padding-box, linear-gradient(110deg, #ff3d8a, #ffd23d, #3dffb5, #3db5ff, #b23dff, #ff3d8a, #ffd23d) border-box; background-size: auto, 300% 100%; animation: holoshift 5s linear infinite; box-shadow: 0 0 18px rgba(178,61,255,.25); }
.styles button[data-s="holo"] .rb { background: linear-gradient(110deg, #ff7ab0, #ffe27a, #7affd0, #7ad0ff, #d07aff, #ff7ab0); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holoshift 5s linear infinite; }
.styles button[data-s="holo"] small { color: #e6dcff; opacity: .9; }
.styles button[data-s="holo"].on { color: #000; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(110deg, #ff3d8a, #ffd23d, #3dffb5, #3db5ff, #b23dff, #ff3d8a, #ffd23d) border-box; background-size: auto, 300% 100%; box-shadow: 0 0 22px rgba(178,61,255,.45); }
.styles button[data-s="holo"].on .rb { background-image: linear-gradient(110deg, #d4145a, #c58a00, #00a37a, #0074c8, #8a14c8, #d4145a); }
.styles button[data-s="holo"].on small { color: #333; }
@media (prefers-reduced-motion: reduce) { .styles button[data-s="holo"], .styles button[data-s="holo"] .rb { animation: none; } }
