:root { color-scheme: dark; --night: #08050d; --panel: #130b19; --panel2: #1e1327; --text: #fbf3f1; --soft: #c5b4c3; --rose: #ff9fb4; --coral: #ff6f4f; --line: #ffffff1f; --mark: #e0587a; --warn: #ffc27a;
  --show: "Bodoni Moda", "Didot", "Times New Roman", serif; --body: "Schibsted Grotesk", "Avenir Next", "Helvetica Neue", sans-serif; --side: clamp(18px, 4.5vw, 72px); }
* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 400 16px/1.5 var(--body); overflow-x: hidden; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; } ul { list-style: none; } a { color: inherit; }
h2, h3 { font-family: var(--show); font-weight: 500; line-height: 1.12; text-wrap: balance; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button, select, summary { cursor: pointer; } button:disabled, select:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
.no-gl #space { display: none; }
.no-gl body { background: radial-gradient(ellipse at 65% 85%, #000 0 12%, #ffb29a 12.6%, #7a2b52 20%, transparent 46%), var(--night) fixed; }

header { position: fixed; z-index: 4; inset: 0 0 auto; display: flex; align-items: center; gap: 16px; padding: 14px var(--side) 22px; background: linear-gradient(#08050d 45%, #08050dd9 70%, #08050d00); }
.brand { font: italic 500 30px/1 var(--show); text-decoration: none; }
.tag { color: var(--soft); font-size: 14px; }
nav { margin-left: auto; display: flex; align-items: center; gap: 24px; } nav a { text-decoration: none; } nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.button { display: inline-block; padding: 14px 24px; border: 0; border-radius: 4px; background: var(--rose); color: #260a16; font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none; transition: background .2s, box-shadow .2s; }
.button:hover:enabled, a.button:hover { background: #ffc3cf; box-shadow: 0 0 34px #ff7f9c70; }
.button.small { padding: 10px 16px; font-size: 15px; white-space: nowrap; }
.button.full { width: 100%; }
.button.ghost { background: #ffffff1a; color: var(--text); } .button.ghost:hover:enabled { background: #ffffff2b; box-shadow: none; }
.link { padding: 6px 0; border: 0; background: none; font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--coral); }
.note { color: var(--soft); font-size: 14px; } .note:empty { display: none; } .warn { color: var(--warn) !important; }
section { position: relative; } .at { position: absolute; width: 1px; pointer-events: none; }

/* Opening animation */
#intro { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; }
#introWord { margin-bottom: 14vh; font: 400 clamp(60px, 15vw, 230px)/1 var(--show); letter-spacing: -.03em; white-space: nowrap; } #introWord span { display: inline-block; opacity: 0; will-change: transform; }
#introSkip { position: absolute; right: var(--side); bottom: 24px; padding: 10px 0; }
.intro body { overflow: hidden; } .intro header, .intro main, .intro footer, .intro #toast { opacity: 0; visibility: hidden; }
.intro-out header, .intro-out main, .intro-out footer { animation: arrive 1.2s cubic-bezier(.16, 1, .3, 1) both; } .intro-out #intro { opacity: 0; pointer-events: none; transition: opacity .3s; }
@keyframes arrive { from { opacity: 0; } }
.intro-out .hero .copy > * { animation: lift 1.2s cubic-bezier(.16, 1, .3, 1) both; } .intro-out .hero .copy > :nth-child(2) { animation-delay: .1s; } .intro-out .hero .copy > :nth-child(n+3) { animation-delay: .2s; }
@keyframes lift { from { transform: translateY(26px); } }

/* Official X account and contract address */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; text-shadow: none; }
.official { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 14px; border-radius: 4px; background: #ffffff14; color: var(--soft); font-size: 15px; text-decoration: none; }
.official svg { width: 15px; height: 15px; fill: currentColor; } .official b { color: var(--text); } .official.live { color: var(--text); } a.official:hover { background: #ffffff2b; }
.official code { font: 14px/1.4 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; min-width: 0; } .official .link { padding: 2px 0; font-size: 15px; }
footer .tags { margin: 0 0 18px; }

/* Opening and story */
.hero, .story { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 90px var(--side) 60px; }
.hero .at { left: 69%; top: 8%; height: 84%; }
.copy { text-shadow: 0 0 30px #08050d, 0 0 10px #08050dcc; }
h1 { margin: 0; font: 400 clamp(52px, min(7.6vw, 15vh), 128px)/.98 var(--show); letter-spacing: -.03em; } h1 em { color: #ffd0c4; }
.hero .copy { max-width: 820px; } .hero p { max-width: 40ch; margin: 26px 0 30px; font-size: clamp(17px, 1.4vw, 21px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; text-shadow: none; }
.story { min-height: 115vh; } .story .at { left: 50%; top: 10%; height: 78%; }
.story .copy { max-width: 460px; } .story h2 { font-size: clamp(38px, 4.6vw, 72px); font-weight: 400; letter-spacing: -.02em; margin-bottom: 18px; } .story p { font-size: 19px; } .story .fine { margin-top: 18px; color: var(--soft); font-size: 14px; }
.story.left .at { left: 68%; } .story.right { justify-content: flex-end; } .story.right .at { left: 30%; }
.story.low { align-items: flex-start; padding-top: 15vh; } .story.low .at { top: 22%; height: 84%; left: 62%; }

/* Trading */
.grove { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(270px, 320px) 1fr minmax(310px, 350px); align-items: center; gap: 24px; padding: 78px var(--side) 24px; scroll-margin-top: 0; }
.grove .at { left: 49%; top: 9%; height: 86%; }
.panel, .ticket { background: #130b19f2; border-radius: 10px; padding: 20px; } .ticket { grid-column: 3; }
label, .amount span, .rootRow label { color: var(--soft); font-size: 14px; }
input, select, textarea { width: 100%; padding: 11px 13px; border: 1px solid #ffffff3a; border-radius: 4px; background: var(--panel2); font-size: 16px; line-height: 1.4; }
select { appearance: none; padding-right: 34px; background: var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c5b4c3' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 13px center; }
textarea { resize: vertical; }
.rootRow select { margin-top: 5px; font-weight: 700; }
.total { margin: 18px 0 14px; } .total strong { display: block; font: 400 46px/1 var(--show); font-variant-numeric: lining-nums; color: #ffc9b8; } .total span { color: var(--soft); font-size: 14px; }
.total.lit strong { animation: lit 1s ease-out; } @keyframes lit { 0% { color: #fff; text-shadow: 0 0 30px var(--coral); } }
#waitingBox { margin-bottom: 14px; font-size: 15px; }
.find { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; } .find input, .find select { padding: 9px 10px; font-size: 14px; } .find select { padding-right: 28px; background-position: right 10px center; }
#list { margin: 10px -8px 0; max-height: min(44vh, 420px); overflow-y: auto; scrollbar-color: #ffffff33 transparent; scrollbar-width: thin; }
#list button { display: flex; width: 100%; align-items: center; gap: 11px; padding: 8px; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 15px; }
#list button:hover { background: #ffffff10; } #list button[aria-pressed=true] { background: #ffffff1f; }
#list span { min-width: 0; } #list b, #list small { display: block; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #list small { color: var(--soft); font-size: 13px; }
#list .side { margin-left: auto; flex: none; color: #ffcabb; font-size: 13px; } .none { padding: 12px 8px; color: var(--soft); }
.face { flex: none; border-radius: 50%; display: block; }
.who { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; } .who > div { min-width: 0; } .who h2 { font-size: 25px; overflow-wrap: anywhere; } .who p { color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 6px; background: #ffffff12; }
.tabs button { padding: 9px; border: 0; border-radius: 4px; background: none; color: var(--soft); font-size: 15px; font-weight: 700; } .tabs button[aria-pressed=true] { background: var(--text); color: #1a0d1d; }
.amount { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 10px; padding: 11px 14px; border-radius: 6px; background: var(--panel2); }
.amount span { grid-column: 1 / -1; } .amount input { padding: 0; color: var(--text); border: 0; background: none; font-size: 28px; font-weight: 500; outline-offset: 6px; } .amount b { font-size: 16px; color: var(--text); } .amount output { grid-column: 1 / -1; font-size: 25px; font-weight: 500; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 12px; } .chips button { padding: 8px 4px; border: 1px solid var(--line); border-radius: 4px; background: none; font-size: 14px; } .chips button:hover { background: #ffffff12; } .chips button[aria-pressed=true] { border-color: var(--rose); color: #ffd3dc; }
#quote { transition: opacity .2s; } #quote.old { opacity: .55; } #quote div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; font-size: 15px; } #quote .big dd { font-size: 20px; }
dt { color: var(--soft); } dd { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
#qNote { margin-top: 8px; } #go { margin: 12px 0 8px; } #empty h2 { font-size: 28px; } #empty p { margin: 10px 0 18px; color: #e6d6df; }

/* Details */
.details, .launch, .know, footer { background: var(--night); }
.details { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2.1fr) minmax(220px, .9fr); gap: 44px; padding: 64px var(--side) 72px; }
.about h2 { font-size: 34px; overflow-wrap: anywhere; } .about > p { margin-top: 8px; color: #e0d0da; overflow-wrap: anywhere; } .address { font-size: 14px; } .address code { font: 13px/1.5 ui-monospace, Menlo, monospace; } .address .link { margin-left: 10px; font-size: 14px; }
.facts4 { margin-top: 18px; } .facts4 div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.claim { margin-top: 20px; } .claim p { margin-bottom: 10px; }
h3 { font-size: 22px; margin-bottom: 14px; }
.plot { position: relative; height: 300px; border-radius: 8px; background: var(--panel); touch-action: pan-y; } .plot svg { display: block; width: 100%; height: 100%; }
.plot text { fill: var(--soft); font: 13px var(--body); } .plot .grid { stroke: #ffffff14; } .plot .cross { stroke: #ffffff66; }
.plot .line { fill: none; stroke: var(--mark); stroke-width: 2; stroke-linejoin: round; } .plot .dot { fill: var(--mark); stroke: var(--panel); stroke-width: 2; }
#tip { position: absolute; top: 10px; padding: 8px 12px; border-radius: 6px; background: #35233f; pointer-events: none; white-space: nowrap; } #tip b, #tip span { display: block; font-size: 14px; line-height: 1.4; } #tip span { color: #dccbd9; }
figure details { margin-top: 10px; font-size: 15px; } .scroll { max-height: 260px; overflow: auto; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; } th, td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; } th { color: var(--soft); font-weight: 500; } th:last-child, td:last-child { text-align: right; }
#feed li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; } #feed small { margin: 0; color: var(--soft); font-size: 13px; } #feed .none { display: block; }

/* Launch */
.launch { padding: 60px var(--side) 80px; } .intro { max-width: 720px; margin-bottom: 34px; } .intro h2 { font-size: clamp(40px, 5vw, 72px); font-weight: 400; letter-spacing: -.02em; margin-bottom: 12px; } .intro p { color: #e0d0da; font-size: 18px; }
form { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 56px; }
.fields { display: grid; gap: 22px; align-content: start; } .fields label { display: block; margin-bottom: 7px; color: var(--text); font-size: 16px; font-weight: 500; } .two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
small { display: block; margin-top: 6px; color: var(--soft); font-size: 14px; } small:empty { display: none; } .error { color: #ff9d88; } [aria-invalid=true] { border-color: #ff8a70; }
#addBox { margin-top: 12px; } .add { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 10px 0 8px; } .add .button { padding: 11px 16px; }
aside { align-self: start; padding: 26px; border-radius: 10px; background: var(--panel2); position: sticky; top: 84px; }
.card { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; } .card img { flex: none; width: 112px; height: 112px; border-radius: 50%; } .card div { min-width: 0; } .card h3 { margin: 0 0 4px; font-size: 27px; overflow-wrap: anywhere; } .card p { color: var(--soft); overflow-wrap: anywhere; }
.checks { margin: 14px 0 20px; } .checks li { padding: 10px 0; border-top: 1px solid var(--line); color: #e6d8e0; } #formNote { margin-top: 12px; }
.know { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding: 20px var(--side) 72px; } .know h2 { font-size: 28px; margin-bottom: 12px; } .know p { color: #dccdd7; }
footer { padding: 24px var(--side) 90px; color: var(--soft); font-size: 14px; }

/* Dialogs and messages */
dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 26px; border: 0; border-radius: 12px; background: var(--panel2); color: var(--text); } dialog::backdrop { background: #050308cc; }
#done { width: min(860px, calc(100vw - 32px)); } #share { display: block; width: 100%; height: auto; margin-bottom: 20px; border-radius: 6px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; } .top h2 { font-size: 30px; overflow-wrap: anywhere; min-width: 0; }
#wallets { margin: 16px 0; display: grid; gap: 8px; } #wallets:empty { display: none; } #wallets button { display: flex; width: 100%; align-items: center; gap: 14px; padding: 13px 16px; border: 0; border-radius: 6px; background: #ffffff14; text-align: left; font-size: 16px; } #wallets button:hover:enabled { background: #ffffff24; } #wallets img { border-radius: 6px; } #wallets small { margin: 0; } #disconnect { margin-top: 12px; }
#toast { position: fixed; z-index: 9; left: 50%; bottom: 22px; transform: translateX(-50%); width: max-content; max-width: min(560px, calc(100vw - 28px)); padding: 14px 20px; border-radius: 8px; background: var(--text); color: #1d0f20; font-weight: 500; box-shadow: 0 10px 40px #000a; overflow: hidden; }
#toastBar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--mark); transition: width .5s; } #toast:not(.working) #toastBar { display: none; }
[hidden] { display: none !important; }

@media (max-width: 1180px) {
  .grove { grid-template-columns: 1fr 1fr; align-items: start; padding-top: 58vh; padding-top: 58svh; } .ticket { grid-column: 2; } .grove .at { left: 50%; top: 66px; height: 49vh; }
  .details { grid-template-columns: 1fr 1fr; } .details figure { grid-column: 1 / -1; grid-row: 1; }
  form, .know { grid-template-columns: 1fr; gap: 34px; } aside { position: static; }
}
@media (max-width: 700px) {
  header { gap: 12px; } .tag { font-size: 13px; line-height: 1.25; } nav .wide { display: none; }
  .hero { align-items: flex-end; padding-bottom: 34px; } .hero .at { left: 52%; top: 66px; height: 45%; } .hero .tags { margin-top: 20px; gap: 8px; } .hero .official { gap: 8px; padding: 7px 11px; font-size: 14px; } .hero .official code { font-size: 13px; } h1 { font-size: 14.2vw; } .hero p { margin: 16px 0 20px; }
  .story, .story.low { align-items: flex-end; justify-content: flex-start; padding: 60vh var(--side) 12vh; } .story .at, .story.left .at, .story.right .at, .story.low .at { left: 50%; top: 4%; height: 52%; } .story p { font-size: 17px; }
  .grove { grid-template-columns: 1fr; gap: 14px; padding-inline: 14px; padding-top: 50vh; padding-top: 50svh; } .ticket { grid-column: 1; grid-row: 1; } .grove .at { height: 41vh; } #list { max-height: 330px; }
  .details { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 44px; } .details figure { grid-row: auto; } .plot { height: 240px; }
  .two { grid-template-columns: 1fr; } .launch { padding-top: 84px; } aside, dialog { padding: 20px; } .card img { width: 84px; height: 84px; }
}
@media (max-height: 780px) and (min-width: 1181px) {
  .grove { padding-top: 66px; padding-bottom: 10px; } .panel, .ticket { padding: 14px 18px; } .who { margin-bottom: 10px; } #face { width: 44px; height: 44px; } .amount { padding: 6px 14px; } .amount input { font-size: 24px; } #quote div { padding: 2px 0; } .total { margin: 10px 0; } .total strong { font-size: 38px; } #list { max-height: 36vh; } #go { margin: 8px 0 4px; padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Name tags on the tree */
#tags { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s; overflow: hidden; }
#tags.on { opacity: 1; }
#tags .tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid #ffffff2e; border-radius: 999px; background: #120a19c4; color: var(--text); font: 600 12px/1 inherit; font-family: inherit; letter-spacing: .02em; white-space: nowrap; cursor: pointer; pointer-events: auto; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .2s, background .2s; will-change: transform; }
#tags .tag img { border-radius: 50%; }
#tags .tag:hover, #tags .tag.now { border-color: #ff9fb4; background: #2a1324e0; }
#tags .tag:focus-visible { outline: 2px solid #ff9fb4; outline-offset: 2px; }
#tags.on .tag { pointer-events: auto; }
#tags:not(.on) .tag { pointer-events: none; }
@media (max-width: 700px) { #tags .tag { font-size: 11px; padding: 3px 8px 3px 3px; } #tags .tag img { width: 16px; height: 16px; } }
.grove > :not(.at) { position: relative; z-index: 3; }
