/* start-page.css — the front door (landing.html) on the v2 house style, per the approved _start-v2 preview.
   Art on one side, one step at a time on the other. Phone-first, upright and sideways. */

body.v2 { min-height: 100dvh; }
.start [hidden], .bar [hidden] { display: none !important; }
.bar { position: fixed; left: 0; right: 0; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) var(--pad) 14px; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar .right { display: flex; gap: 8px; }
.bar select { appearance: none; height: 36px; padding: 0 14px; border-radius: 999px; font: 600 13px var(--ui); color: var(--ink); background: var(--glass); border: 1px solid var(--hair); }
/* a globe and an arrow, so it reads as the language menu at a glance */
.bar select { height: 38px; padding: 0 34px 0 38px; cursor: pointer; border-color: rgba(231,198,107,.35); background-color: rgba(22,18,12,.78); background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7c66b' stroke-width='1.8'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9s-1.3 6.3-3.8 9c-2.5-2.7-3.8-5.7-3.8-9s1.3-6.3 3.8-9z'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7c66b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-position: 13px center, right 13px center; background-size: 16px 16px, 12px 12px; }
.bar select:hover { border-color: rgba(255,230,163,.7); }
.start { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); overflow-x: clip; }

/* the art side */
.stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.fan { position: relative; width: clamp(150px, 15vw, 230px); aspect-ratio: 813 / 1185; transition: transform .8s var(--ease), width .8s var(--ease), opacity .6s; }
.fan .c { position: absolute; inset: 0; transition: transform .9s var(--ease); }
.fan .c .v2-tilt { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.fan .c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fan .c:nth-child(1) { transform: translateX(-118%) translateY(14%) rotate(-20deg) scale(.78); }
.fan .c:nth-child(2) { transform: translateX(-62%) translateY(5%) rotate(-10deg) scale(.88); }
.fan .c:nth-child(3) { z-index: 3; }
.fan .c:nth-child(4) { z-index: 2; transform: translateX(62%) translateY(5%) rotate(10deg) scale(.88); }
.fan .c:nth-child(5) { transform: translateX(118%) translateY(14%) rotate(20deg) scale(.78); }
.stage.gather .fan .c { transform: translateY(4%) scale(.94); }
.stage.gather .fan .c:nth-child(3) { transform: none; }
.deckbox { position: absolute; width: clamp(150px, 15vw, 220px); aspect-ratio: 813 / 1185; opacity: 0; transform: translateY(30px) scale(.9); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.deckbox > * { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 50px rgba(0,0,0,.6); }
.deckbox .v2-cardback:nth-child(1) { transform: translate(-14px, 10px) rotate(-8deg); }
.deckbox .v2-cardback:nth-child(2) { transform: translate(-6px, 4px) rotate(-3deg); }
.deckbox img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage.deck .fan { opacity: 0; transform: scale(.85); }
.stage.deck .deckbox { opacity: 1; transform: none; }

/* the step side */
.panel { position: relative; z-index: 2; display: grid; align-content: center; min-height: 0; padding: 96px var(--pad) 28px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; width: 100%; max-width: 460px; animation: stIn .55s var(--ease) both; }
@keyframes stIn { from { opacity: 0; transform: translateY(14px); } }
.step h1, .step h2, .step p { margin: 0; }
/* the kit's title is gradient text clipped to its own box, so it must fit the 460px column or the last letters vanish */
.step .v2-title { font-size: clamp(50px, 5vw, 80px); }
#signArea { display: contents; }
.dots { display: flex; gap: 6px; }
.dots span { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); transition: background .4s; }
.dots span.on { background: var(--hi); }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 4px; min-height: 44px; }
.proof div { display: grid; gap: 1px; }
.proof b { font: 900 24px/1.1 var(--display); letter-spacing: .02em; color: #f0cf72; font-variant-numeric: tabular-nums; }
.proof small { font-size: 12px; color: var(--muted); }
.cta { display: grid; gap: 10px; }
.cta .v2-btn, .cta .v2-btn-glass, .cta .v2-gold, .cta .v2-obsidian { width: 100%; }
/* the front door leads with the logo art; the bar's small logo steps aside while the big one is on screen */
.st-logo { margin: 0 0 -4px -12px; line-height: 0; }
.st-logo img { width: min(100%, 470px); height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.6)) drop-shadow(0 0 44px rgba(255,60,40,.16)); }
body:has(.s-welcome) .bar .v2-brand { visibility: hidden; }
.stage .fan, .stage .deckbox { z-index: 1; }
.stage .v2-keylight { --kl-size: min(1300px, 140vh); top: 50%; }
.fine { font-size: 13px; line-height: 1.5; color: var(--muted); }
.fine a, .linkish { color: var(--hi); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--hi) 40%, transparent); text-underline-offset: 3px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 700 11.5px/1.6 var(--display); letter-spacing: .09em; text-transform: uppercase; }
.links a { color: #d9bf82; }
.links a:hover { color: var(--hi); }
.live { display: inline-flex; align-items: center; gap: 9px; width: fit-content; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); background: var(--glass); border: 1px solid var(--hair); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #ff4a4a; box-shadow: 0 0 10px #ff4a4a; animation: v2pulse 2.2s ease-in-out infinite; }
.live b { color: var(--ink); }
.wallets { display: grid; gap: 8px; }
.wallet { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 18px; text-align: left;
  color: var(--ink); background: var(--glass); border: 1px solid var(--hair); transition: background .2s, transform .2s; }
.wallet:hover { background: var(--glass-2); transform: translateY(-1px); }
.wallet .logo { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; font-weight: 800; font-size: 17px; color: #fff; background: #2a2622; }
.wallet .logo img { width: 100%; height: 100%; object-fit: contain; }
.wallet b { display: block; font-size: 15.5px; }
.wallet small { font-size: 12.5px; color: var(--muted); }
.wallet .tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #062a16; background: var(--ok); }
.msg { max-height: 150px; overflow: auto; padding: 14px 16px; border-radius: 16px; font: 13px/1.55 var(--mono, ui-monospace, monospace); color: var(--ink-2); background: rgba(0,0,0,.35); border: 1px solid var(--hair); white-space: pre-wrap; overflow-wrap: anywhere; }
.safe { display: grid; gap: 8px; }
.safe div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.safe div::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--ok) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' stroke='%23062a16' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 13px no-repeat; }
.err { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; color: #ffd2c8; background: rgba(255,90,70,.12); border: 1px solid rgba(255,110,90,.3); }
.wait { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.spin { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.14); border-top-color: var(--hi); animation: stSpin .9s linear infinite; }
@keyframes stSpin { to { transform: rotate(360deg); } }
.gifts { display: grid; gap: 8px; }
.gift { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.06); animation: stIn .55s var(--ease) both; }
.gift .ico { width: 52px; height: 52px; display: grid; place-items: center; }
.gift .ico img { max-width: 48px; max-height: 52px; border-radius: 4px; }
.gift b { display: block; font-size: 15px; }
.gift small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.gift .amt { font-size: 18px; font-weight: 800; color: var(--ok); }
.howto { display: grid; gap: 10px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.howto li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; font-size: 14.5px; counter-increment: s; }
.howto li::before { content: counter(s); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 800; color: #160f03; background: linear-gradient(180deg, #fff, var(--hi)); }
.howto svg { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; fill: none; stroke: var(--hi); stroke-width: 2; margin: 0 2px; }
.choices { display: grid; gap: 10px; }
.choice { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; width: 100%; padding: 14px; border-radius: 22px; text-align: left; color: var(--ink);
  background: var(--glass); border: 1px solid var(--hair); transition: background .2s, transform .2s; }
.choice:hover { background: var(--glass-2); transform: translateY(-2px); }
.choice.main { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(255,255,255,.04)); border-color: color-mix(in srgb, var(--hi) 35%, transparent); }
.choice .pic { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.05); }
.choice .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.choice .pic img.contain { object-fit: contain; }
.choice b { display: block; font-size: 16px; }
.choice small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; max-width: 460px; margin-top: 34px; font-size: 12.5px; color: var(--faint); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--hi); }

/* phone, upright: art on top, steps below, the button always reachable */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .start { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .stage { height: 34vh; min-height: 210px; padding-top: 50px; }
  .start:not(.s-welcome) .stage { height: 140px; min-height: 140px; }
  .start:not(.s-welcome) .fan, .start:not(.s-welcome) .deckbox { width: 66px; }
  .fan, .deckbox { width: clamp(112px, 17vw, 180px); }
  .panel { align-content: start; padding: 10px var(--pad) calc(24px + env(safe-area-inset-bottom)); }
  .step { max-width: none; }
  .step .v2-title { font-size: clamp(46px, 9vw, 80px); }
  .foot { max-width: none; margin-top: 26px; }
}
/* phone, sideways: two columns, the step scrolls if it has to */
@media (orientation: landscape) and (max-height: 500px) {
  .start { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); height: 100dvh; }
  .stage { height: 100dvh; }
  .fan, .deckbox { width: 92px; }
  .panel { height: 100dvh; overflow: auto; align-content: start; padding: 58px 24px 20px; }
  .step { gap: 12px; }
  .panel .cta { position: sticky; bottom: -20px; z-index: 2; padding: 10px 0 20px; background: linear-gradient(180deg, rgba(7,6,5,0), #070605 35%); }
  /* on the wallet step the wallets are the actions, so nothing floats over them */
  .s-wallet .panel .cta { position: static; padding: 0; background: none; }
  .step .v2-title { font-size: 42px; }
  .st-logo img { width: 250px; }
  .v2-story { font-size: 18px; }
  .v2-gold { min-height: 52px; }
  .v2-obsidian { min-height: 46px; }
  .step .v2-h2 { font-size: 24px; }
  .proof b { font-size: 16px; }
  .bar { padding-top: 10px; padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .step, .gift, .spin, .live i { animation: none; }
}

/* the steps after the door in the same key art as the welcome: warm rows on a gold hairline, light that answers the pointer */
.wallet, .gift, .choice { background: linear-gradient(180deg, rgba(255,232,180,.07), rgba(0,0,0,.24)); border: 1px solid rgba(231,198,107,.2);
  box-shadow: inset 0 1px 0 rgba(255,240,200,.08); }
.wallet:hover, .choice:hover { background: linear-gradient(180deg, rgba(255,232,180,.12), rgba(0,0,0,.2)); border-color: rgba(255,230,163,.55);
  box-shadow: inset 0 1px 0 rgba(255,240,200,.14), 0 14px 34px rgba(0,0,0,.45), 0 0 24px rgba(231,198,107,.16); }
.choice.main { border-color: rgba(255,230,163,.6); box-shadow: inset 0 1px 0 rgba(255,240,200,.16), 0 0 0 3px rgba(231,198,107,.1), 0 18px 40px rgba(0,0,0,.5); }
.wallet .logo, .choice .pic { border: 1px solid rgba(231,198,107,.22); }
/* "Use" is the moment a wallet becomes the key to the account, so it is struck in the same gold as the buttons */
.wallet .tag { color: #1c1203; background: linear-gradient(180deg, #fff6d6, #e6b352); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.gift .amt { color: #f0cf72; text-shadow: 0 0 18px rgba(231,168,60,.35); }
.msg { border-color: rgba(231,198,107,.24); }
