/* STRIKE. Warm white page, one pale frame, ink type, one red telephone. */
:root {
  --page: #fbfaf8; --frame: #f3f2ee; --card: #ffffff; --ink: #121214; --ink-2: #3a3b40; --mute: #7a7c84;
  --line: #12121417; --line-2: #1212140b; --green: #12a874; --green-ink: #0b7c55; --red: #d8465d; --phone: #d2362b; --phone-deep: #9c2219;
  --gutter: clamp(14px, 2.2vw, 32px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
html { background: var(--page); }
body { background: var(--page); color: var(--ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.55; overflow-x: clip; }
::selection { background: var(--ink); color: #fff; }
* { scrollbar-color: #c9c8c2 transparent; }
::-webkit-scrollbar-thumb { background: #c9c8c2; background-clip: content-box; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
h1, h2 { font-weight: 650; letter-spacing: -0.055em; line-height: .94; margin: 0; text-wrap: balance; }

/* ------------------------------------------------------------------ nav */
.nav { position: relative; z-index: 20; height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 calc(var(--gutter) + 22px); }
.links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.links a { color: var(--ink); transition: opacity .2s; } .links a:hover { opacity: .55; }
.mark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.mark img { width: 30px; height: 30px; display: block; }
.mark span { font-weight: 700; font-size: 17px; letter-spacing: -0.03em; }
.btn { justify-self: end; display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; transition: transform .36s cubic-bezier(.2,.9,.25,1.35), background .25s; }
.btn:hover { transform: translateY(-2px); background: #26272c; }
/* the contract address next to the wallet button: click copies it */
.nav-r { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav-r .btn, .ca { white-space: nowrap; }
@media (max-width: 520px) { .nav .mark span { display: none; } .nav-r { gap: 6px; } .nav-r .btn { padding: 0 14px; font-size: 14px; } }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 16px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; transition: box-shadow .2s, transform .36s cubic-bezier(.2,.9,.25,1.35); }
.ca:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #12121433, 0 10px 24px -16px #12121466; }
.ca-k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--phone); font-weight: 600; }
.ca-v { font-size: 13px; letter-spacing: 0; }
.ca svg { width: 15px; height: 15px; color: var(--mute); }
.ca.copied .ca-v { color: var(--phone); }
.btn:active { transform: translateY(1px) scale(.97); transition-duration: 80ms; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 0 var(--gutter); }
.frame { position: relative; background: var(--frame); border-radius: 22px; }
.hero .frame { height: calc(100svh - 84px); min-height: 640px; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto auto auto; justify-items: center; padding: clamp(36px, 6vh, 76px) 24px clamp(22px, 3.2vh, 36px); }
/* the headline: plain and tight, with "calls" on a small red enamel label like the card in the middle of the dial */
.title { position: relative; z-index: 3; text-align: center; color: var(--ink); margin: 0; }
.title .ln { display: block; overflow: hidden; padding: 0 .04em .16em; margin-bottom: -.16em; }
.title .in { display: inline-block; animation: lineUp 1.1s cubic-bezier(.16,1,.3,1) both; }
.title .ln:nth-child(2) .in { animation-delay: .09s; }
.title.done .ln { overflow: visible; }
@keyframes lineUp { from { transform: translateY(112%); } to { transform: none; } }
.title { font-family: var(--f-sans); font-weight: 650; font-size: clamp(40px, min(6vw, 9.6vh), 96px); letter-spacing: -0.06em; line-height: .96; }
.title .hot { display: inline-block; color: #fff; padding: .02em .2em .08em; margin-right: .02em; border-radius: .22em; letter-spacing: -0.045em;
  background: linear-gradient(180deg, #e04a3e 0%, var(--phone) 48%, #b72a20 100%);
  box-shadow: inset 0 .03em 0 #ffffff59, inset 0 -.04em 0 #00000033, 0 .05em .12em #9c22194d; transform: rotate(-2deg); }

/* the coin gets its own row between the headline and the sentence; the script sizes it to fit */
.coin-wrap { position: relative; height: min(100%, 520px); aspect-ratio: 1; max-width: 86vw; margin: clamp(14px, 2.4vh, 28px) 0 clamp(8px, 1.6vh, 18px); z-index: 2; align-self: center; }
/* the phone: one Blender render, with dial and handset frames laid over it pixel for pixel */
/* the render has air above the handset; scale and lift it so the phone itself fills the coin-wrap box */
.phone { position: absolute; left: -12.5%; top: -19%; width: 125%; height: 125%; }
.phone img { position: absolute; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.ph-hero { inset: 0; width: 100%; height: 100%; }
.ph-frame { visibility: hidden; -webkit-mask: radial-gradient(closest-side, #000 86%, transparent 99%); mask: radial-gradient(closest-side, #000 86%, transparent 99%); }
.ph-frame.on { visibility: visible; }
.phone.shake { animation: ring .09s steps(2) infinite; }
@keyframes ring { 0% { translate: -1.2px 0; rotate: -.6deg } 100% { translate: 1.2px 0; rotate: .6deg } }
.ph-rings { position: absolute; inset: 0; pointer-events: none; z-index: -1; }   /* behind the phone, inside its own stacking context */
.ph-rings i { position: absolute; left: var(--rx0, 50%); top: var(--ry0, 20%); width: 0; height: 0; }
.ph-rings i::before { content: ""; position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--phone); opacity: 0; }
.phone.shake .ph-rings i::before { animation: wave 1.1s cubic-bezier(.2,.7,.2,1) infinite; animation-delay: calc(var(--n) * .28s); }
@keyframes wave { 0% { transform: scale(.4); opacity: .0 } 15% { opacity: .55 } 100% { transform: scale(2.6); opacity: 0 } }
.ph-holes { position: absolute; inset: 0; }
.ph-holes button { position: absolute; width: 8.4%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 0; background: transparent; cursor: pointer; padding: 0; }
.ph-holes button:focus-visible { outline: 2px solid var(--phone); outline-offset: 2px; }
.ph-holes button.on::after { content: ""; position: absolute; inset: 10%; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--phone), 0 0 16px #d2362b66; }


/* four equal cards, two on each side of the phone: market, strike, expiry, premium */
.cards { display: contents; }
.tk { position: absolute; z-index: 4; left: 0; top: 0; width: 228px; height: 100px; align-content: start; padding: 15px 18px 14px; border-radius: 16px; background: #fffffff2; box-shadow: 0 1px 0 #fff inset, 0 0 0 1px var(--line), 0 18px 40px -26px #12121455; display: grid; gap: 2px; }
.tk .k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 7px; }
.tk .k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--phone); }
.seg { margin: -5px -6px -5px auto; display: inline-flex; padding: 2px; border-radius: 999px; background: #1212140d; }
.seg button { border: 0; background: transparent; font: inherit; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; color: var(--mute); cursor: pointer; transition: background .2s, color .2s; }
.seg button.on { background: var(--ink); color: #fff; }
/* the coin picker in the Market card: a native select dressed like the expiry toggle */
.pick { margin: -5px -6px -5px auto; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; font: inherit; letter-spacing: .06em; color: #fff; cursor: pointer;
  padding: 3px 24px 3px 10px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center / 9px 6px; }
.pick:focus-visible { outline: 2px solid var(--phone); outline-offset: 2px; }
.pick option { color: var(--ink); background: #fff; }
.tk b { font-size: 26px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; color: var(--ink); white-space: nowrap; }
.tk .s { font-size: 12.5px; color: var(--mute); white-space: nowrap; }
.tk .s.mono { font-size: 12px; }
.tk.flash { animation: tkFlash .7s var(--ease); }
@keyframes tkFlash { 0% { box-shadow: 0 0 0 2px var(--phone), 0 18px 40px -26px #12121455 } 100% { box-shadow: 0 1px 0 #fff inset, 0 0 0 1px var(--line), 0 18px 40px -26px #12121455 } }

/* buying: size, button and the line that says what happened */
.buybar { display: flex; gap: 10px; align-items: center; justify-content: center; z-index: 4; flex-wrap: wrap; }
.size { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.size button { border: 0; background: transparent; font: 600 13px var(--f-sans); padding: 8px 13px; border-radius: 999px; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.size button.on { background: var(--ink); color: #fff; }
.buy-btn { justify-self: auto; height: 44px; padding: 0 22px; background: var(--phone); gap: 10px; border: 0; cursor: pointer; box-shadow: inset 0 1px 0 #ffffff40, 0 10px 24px -12px #9c2219aa; }
.buy-btn:hover { background: #c22d22; }
.buy-btn .mono { font-weight: 500; opacity: .9; }
.buy-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.buy-msg { min-height: 20px; margin: 8px 0 0; font-size: 13.5px; color: var(--mute); text-align: center; max-width: 620px; z-index: 4; }
.buy-msg.ok { color: var(--green-ink); } .buy-msg.err { color: #b3261e; }
#wallet-btn { border: 0; cursor: pointer; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; background: #1212140d; color: var(--ink-2); }
.pill.open { background: #d2362b1a; color: var(--phone-deep); } .pill.won { background: #12a8741f; color: var(--green-ink); }
#mine a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; font-size: 12px; margin-left: 6px; }
.lede { max-width: 520px; text-align: center; font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 2px 0 12px; z-index: 3; text-wrap: balance; }

/* ------------------------------------------------------------------ blocks below */
.block { padding: var(--gutter) var(--gutter) 0; }
.frame-plain { padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 72px); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 36px; }
.head h2 { font-size: clamp(36px, 4.4vw, 68px); }
.head p { color: var(--ink-2); max-width: 56ch; margin: 0; text-wrap: pretty; }
.sheet { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -36px #12121433; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 500; padding: 14px 18px; border-bottom: 1px solid var(--line); }
td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.coin-name { font-weight: 650; } .note { color: var(--mute); font-size: 12px; margin-left: 8px; }
.tagc { display: inline-block; padding: 2px 8px; border-radius: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; }
.tagc.call { color: var(--green-ink); } .tagc.put { color: #a3303f; } .tagc.vault { color: var(--ink-2); }
.pos { color: var(--green-ink); } .neg { color: var(--red); }
.buyb { background: var(--ink); color: #fff; border: 0; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; transition: transform .36s cubic-bezier(.2,.9,.25,1.35); }
.buyb:hover { transform: translateY(-1px); }
[data-k].up { animation: fUp .9s var(--ease); } [data-k].down { animation: fDown .9s var(--ease); }
@keyframes fUp { 0% { color: var(--green-ink) } 100% { color: inherit } } @keyframes fDown { 0% { color: var(--red) } 100% { color: inherit } }
tr.new { opacity: 0; transform: translateY(-8px); } tr.new.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--card); border-radius: 16px; padding: 22px 24px 24px; box-shadow: 0 0 0 1px var(--line); }
.step .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--phone); color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.step h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 8px; }
.step p { color: var(--mute); font-size: 14.5px; margin: 0; }
.wait { color: var(--mute); text-align: center; padding: 28px 18px !important; font-size: 14px; }
.vault-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vcard { background: var(--card); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.vcard:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 22px 50px -30px #12121455; }
.vcard header { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.vcard em { font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 4px; }
.vcard strong { font-size: clamp(36px, 3.6vw, 50px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-top: 10px; }
.vcard p { color: var(--mute); font-size: 14px; margin: 0; }
.vcard dl { margin: 8px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.vcard dl div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.vcard dt { color: var(--mute); } .vcard dd { margin: 0; }
.vcard.wait { grid-column: 1 / -1; }
.vcard footer { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }

.foot { padding: 40px calc(var(--gutter) + 22px) 32px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; font-size: 14px; }
.foot nav a:hover { opacity: .55; }
.fine { font-size: 12px; color: var(--mute); margin: 14px 0 0; }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 1100px) {
  .hero .frame { height: auto; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 44px; }
  .coin-wrap { height: auto; width: min(76vw, 440px); margin: 6px 0 0; }
  .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 520px); }
  .tk { position: static; width: auto; height: auto; min-width: 0; padding: 13px 14px 12px; }
  .tk b { font-size: clamp(16px, 4.6vw, 21px); }
  .tk .s { white-space: normal; font-size: 12px; }
  .seg button { padding: 3px 7px; }
  .title { font-size: clamp(34px, 10vw, 58px); }
  .steps { grid-template-columns: 1fr; }
  .links { display: none; }
  .nav { grid-template-columns: 1fr auto; padding: 0 calc(var(--gutter) + 10px); }
  .nav .mark { justify-self: start; }
  .ca { padding: 0 11px 0 12px; gap: 6px; } .ca svg { display: none; }
  .head, .vault-row { grid-template-columns: 1fr; }
  th:nth-child(3), td:nth-child(3), th:nth-child(4), td:nth-child(4) { display: none; }
  .note { display: none; }
  td, th { padding: 12px 10px; }
  .sheet { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { .vcard, .btn, .ca { transition: none; } .phone.shake, .phone.shake .ph-rings i::before, .title .in, .tk.flash { animation: none; } }
