:root {
  color-scheme: dark;
  --page: #101110;
  --panel: #161815;
  --line: #2b2e25;
  --ink: #f4f5ea;
  --muted: #a8aa9d;
  --lime: #e8fa43;
  --green: #a4f25b;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Manrope', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; min-height: 100dvh; color: var(--ink); background: var(--page); font-family: var(--body); font-size: 14px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1112px, calc(100% - 80px)); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.topbar { border-bottom: 1px solid #252822; background: #121410; }
.topbar-inner { height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--lime); color: #1b200e; border-radius: 8px; transform: rotate(-7deg); }
.brand-mark .icon { stroke-width: 2; }
.brand-word { color: var(--lime); font: italic 900 29px/.9 var(--display); letter-spacing: .1px; }
.brand-word span + span { color: var(--green); }
.navigation { display: flex; align-items: center; gap: 7px; }
.navigation a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; border: 1px solid transparent; border-radius: 8px; color: #a8a99d; font-size: 13px; font-weight: 800; white-space: nowrap; transition: background .18s, color .18s, border .18s; }
.navigation .icon { width: 17px; height: 17px; }
.navigation a:hover { color: var(--ink); background: #1e2119; }
.navigation a[aria-current] { color: var(--lime); background: #252918; border-color: #3a4122; }
.profile { justify-self: end; display: flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; color: #b9bcac; font-size: 12px; font-weight: 800; }
.profile-avatar { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #363b2a; border-radius: 50%; background: #23281c; color: var(--green); }
.profile-avatar .icon { width: 15px; height: 15px; }
#profile-name { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

.main { margin-top: 34px; }
.drop-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); grid-template-rows: auto 1fr; min-height: 458px; overflow: hidden; isolation: isolate; padding: 40px 45px 35px; border: 1px solid #3c422a; border-radius: 22px; background: radial-gradient(ellipse at 76% 60%, #222b0f 0%, #1a2010 34%, transparent 69%), #171a13; }
.stage-grid { position: absolute; inset: 0; z-index: -2; opacity: .35; background-image: linear-gradient(#68724524 1px, transparent 1px), linear-gradient(90deg, #68724524 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(118deg, transparent 20%, #000 74%); }
.drop-copy, .drop-actions { position: relative; z-index: 1; }
.live-tag { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; background: #222c18; border: 1px solid #3b5328; border-radius: 5px; color: #b3f78a; font: 600 10px/1.2 var(--mono); letter-spacing: .14em; }
.live-tag i, .eyebrow i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.live-tag i { box-shadow: 0 0 0 3px #a4f25b19; }
.live-tag.is-claimed { color: #babbac; border-color: #42472f; background: #25271b; }
.live-tag.is-claimed i { background: #a4a585; box-shadow: none; }
h1, h2 { font-family: var(--display); font-style: italic; font-weight: 900; }
.drop-copy h1 { margin: 13px 0 13px -3px; font-size: clamp(70px, 8.05vw, 114px); line-height: .79; letter-spacing: -.024em; white-space: nowrap; }
h1 em { color: var(--lime); font-style: inherit; }
h1 em span { color: var(--green); }
.drop-copy p { color: #b0b2a4; margin-top: 20px; line-height: 1.55; font-size: 14px; font-weight: 600; }
.drop-art { position: absolute; z-index: -1; inset: 0 -1px 0 auto; width: 65%; display: grid; place-items: center; pointer-events: none; }
.hero-picture { position: absolute; display: block; inset: 50% auto auto 54%; width: 100%; transform: translate(-50%, -50%); mix-blend-mode: screen; mask-image: radial-gradient(ellipse 60% 58% at 51% 48%, #000 57%, transparent 95%); }
.hero-picture > img { display: block; width: 100%; max-height: 535px; object-fit: contain; animation: bob 5.5s ease-in-out infinite; }
.orbit { position: absolute; left: 55%; top: 52%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid #b9f44627; border-radius: 50%; }
.orbit-outer { width: min(65%, 438px); border-style: dashed; }
.orbit-inner { width: min(59%, 397px); }
.art-plus { position: absolute; font: 400 18px/1 var(--mono); color: #9cac63; }
.art-plus-one { right: 11%; top: 13%; }
.art-plus-two { left: 29%; bottom: 12%; }
.art-id { position: absolute; right: 23px; bottom: 18px; color: #a2aa79; font: 500 9px/1 var(--mono); letter-spacing: .14em; white-space: nowrap; }
.art-id span { color: var(--lime); }
.drop-stage.is-opening .hero-picture img { animation: windup .5s ease-in-out infinite alternate; opacity: .16; filter: blur(2px); }
.drop-reel { position: absolute; z-index: 3; left: 55%; top: 50%; width: clamp(180px, 25vw, 270px); aspect-ratio: 1; display: grid; place-items: center; transform: translate(-50%, -50%); border: 1px solid #d5f64b66; border-radius: 50%; background: radial-gradient(circle, #303b19ed 0%, #171d10e8 61%, #171d1000 72%); box-shadow: 0 0 55px #b5e83b2b, inset 0 0 30px #b5e83b16; }
.drop-reel[hidden] { display: none; }
.reel-orbit { position: absolute; inset: 9%; border: 1px dashed #d8f56a70; border-radius: 50%; animation: reel-spin 5s linear infinite; }
.reel-orbit::before, .reel-orbit::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 13px var(--lime); }
.reel-orbit::before { top: 8%; left: 18%; }
.reel-orbit::after { right: 12%; bottom: 17%; background: var(--green); box-shadow: 0 0 13px var(--green); }
.drop-reel > img { position: relative; z-index: 1; width: 66%; height: 66%; object-fit: contain; mix-blend-mode: screen; filter: drop-shadow(0 10px 24px #0009); }
.drop-reel > img.reel-pop { animation: reel-pop .19s cubic-bezier(.2,.8,.25,1.3); }
.reel-label { position: absolute; z-index: 2; bottom: 7%; left: 50%; transform: translateX(-50%); padding: 6px 10px; white-space: nowrap; border: 1px solid #596b2d; border-radius: 5px; background: #171d10; color: var(--lime); font: 600 9px/1 var(--mono); letter-spacing: .16em; }
.drop-reel.is-settled { border-color: #b6f45b; box-shadow: 0 0 75px #a4f25b55, inset 0 0 38px #a4f25b25; }
.drop-reel.is-settled > img { animation: gift-in .38s cubic-bezier(.16,.7,.3,1.3) both; }
.drop-reel.is-settled .reel-orbit { animation-duration: 1.3s; border-color: #a4f25b; }
@keyframes reel-spin { to { transform: rotate(360deg); } }
@keyframes reel-pop { from { opacity: .55; transform: scale(.72) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes bob { 0%, 100% { transform: translateY(3px) rotate(-.45deg); } 50% { transform: translateY(-8px) rotate(.55deg); } }
@keyframes windup { from { transform: translateY(0) scale(.98) rotate(-2deg); } to { transform: translateY(-9px) scale(1.025) rotate(2deg); } }

.drop-actions { grid-column: 1; align-self: start; width: min(100%, 315px); padding-top: 23px; }
.button { min-height: 43px; padding: 0 15px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 800; line-height: 1.15; transition: background .18s, transform .18s, border .18s; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { background: var(--lime); color: #1b2010; }
.button-primary:hover:not(:disabled) { background: #f2ff82; }
.button-primary:disabled { color: #b6b99e; border-color: #42482b; background: #2b301e; }
.button-neutral { color: var(--green); background: #252d1c; border-color: #424e2a; }
.button-neutral:hover:not(:disabled) { background: #333f23; }
.open-button { display: flex; width: 100%; justify-content: flex-start; min-height: 55px; padding: 0 15px; gap: 12px; font-size: 15px; box-shadow: inset 0 -3px 0 #666a282e; }
.button-arrow { margin-left: auto; }
.reset-line { display: flex; align-items: center; gap: 8px; margin: 12px 0 0 2px; white-space: nowrap; color: #a3a78f; font: 500 10px/1 var(--mono); letter-spacing: .09em; }
.reset-line .icon { width: 15px; height: 15px; color: #9fa885; }
.reset-line strong { margin-left: 2px; color: #ecefce; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.reset-line b { color: #a7b962; font-weight: 500; }
.bonus-button { margin-top: 12px; min-height: 36px; }
.bonus-button .icon { width: 16px; height: 16px; }
.inline-error { color: #f3a490; font-size: 12px; margin-top: 9px; }

.possible { margin-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #a0a78c; font: 600 10px/1.2 var(--mono); letter-spacing: .16em; }
.eyebrow i { width: 5px; height: 5px; border-radius: 1px; background: var(--lime); transform: rotate(45deg); }
.section-heading h2 { font-size: 38px; line-height: .96; letter-spacing: .006em; margin: 5px 0 0 -1px; }
.section-count { color: #9a9d8a; font: 500 10px/1.15 var(--mono); letter-spacing: .12em; white-space: nowrap; margin-bottom: 2px; }
.section-count span, .footer-divider { color: #667b36; margin-inline: 3px; }
.reward-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.reward-card { --tone: #e8bc81; --tint: #392d21; --card-line: #413729; position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 124px; overflow: hidden; padding: 9px 12px 9px 8px; border: 1px solid var(--card-line); border-radius: 13px; background: linear-gradient(106deg, var(--tint), #1a1b17 54%); }
.tone-amber { --tone: #e8bc81; --tint: #392d21; --card-line: #413729; }
.tone-pink { --tone: #f5919e; --tint: #392226; --card-line: #452e32; }
.tone-lime { --tone: #d1ee76; --tint: #30391c; --card-line: #3d4928; }
.reward-card::before { content: ''; position: absolute; left: 0; inset-block: 38% 38%; width: 2px; background: var(--tone); border-radius: 0 2px 2px 0; opacity: .8; }
.reward-art { height: 100px; position: relative; display: grid; place-items: center; isolation: isolate; }
.reward-art::before { content: ''; position: absolute; inset: 12px 16px; border: 1px dashed var(--tone); border-radius: 50%; opacity: .24; z-index: -1; transform: rotate(-14deg); }
.reward-art img, .reveal-art img { display: block; width: 106px; height: 100px; object-fit: contain; mix-blend-mode: screen; mask-image: radial-gradient(ellipse at center, #000 55%, transparent 81%); }
.reward-copy { min-width: 0; }
.reward-copy h3 { color: #efeee5; font-size: 16px; font-weight: 800; line-height: 1.15; margin-top: 7px; }
.rarity { display: inline-flex; align-items: center; color: var(--tone); font: 600 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.rarity::before { content: ''; width: 5px; height: 5px; margin-right: 6px; background: currentColor; border-radius: 1px; transform: rotate(45deg); }
.reward-note { font: 500 10px/1.2 var(--mono); color: #a5a695; margin-top: 7px; }
.reward-index { color: var(--tone); opacity: .48; position: absolute; top: 9px; right: 10px; font: 500 9px/1 var(--mono); }
.footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 26px; padding: 16px 0 23px; border-top: 1px solid #252822; color: #828675; letter-spacing: .1em; font: 500 9px/1.5 var(--mono); }
.footer-brand { color: #c1c6ab; }

.subpage { min-height: min(560px, 72vh); }
.subpage-heading { padding: 21px 0 30px; }
.subpage-heading h1 { font-size: clamp(53px, 8vw, 97px); line-height: .86; letter-spacing: -.018em; margin: 13px 0 12px -2px; }
.subpage-heading p, .invite-card p, .empty-panel p, .dialog-content p { color: var(--muted); line-height: 1.6; }
.subpage-toolbar { align-items: center; margin: 3px 0 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { background: #1c1f18; border: 1px solid #303626; border-radius: 7px; padding: 8px 12px; font-size: 12px; font-weight: 800; color: #acb099; }
.filters button[aria-pressed='true'], .filters button:hover { color: var(--lime); background: #282f19; border-color: #49532a; }
.empty-panel { display: grid; justify-items: center; text-align: center; gap: 10px; min-height: 270px; align-content: center; border: 1px dashed #394129; border-radius: 15px; background: radial-gradient(ellipse at 50% 0%, #232b17, #161914 75%); padding: 18px; }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: #313c1d; color: var(--lime); border: 1px solid #4d5b29; }
.empty-panel h2, .invite-card h2 { font-size: 37px; line-height: .95; }
.empty-panel .button { margin-top: 4px; }
.friends-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 15px; }
.invite-card, .referral-card { background: #191d15; border: 1px solid #373f2a; border-radius: 16px; padding: 24px; min-width: 0; }
.invite-card { background: radial-gradient(ellipse at 0% 0%, #28331a, #191d15 60%); }
.invite-card .eyebrow { margin: 15px 0 7px; }
.invite-card p { margin-top: 9px; }
.invite-control { display: flex; gap: 8px; margin-top: 15px; }
.invite-control input { min-width: 0; width: 100%; background: #141711; color: var(--ink); border: 1px solid #3c452c; border-radius: 8px; padding: 0 12px; min-height: 43px; font: 500 11px/1 var(--mono); }
.invite-control button { white-space: nowrap; }
.invite-control .icon { width: 16px; height: 16px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--green); font-size: 12px; font-weight: 800; min-height: 33px; }
.text-button:hover { text-decoration: underline; }
.text-button .icon { width: 15px; height: 15px; }
.invite-card .text-button { margin-top: 6px; }
.referral-card dl { margin: 14px 0 7px; }
.referral-card dl div { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid #33392a; padding: 8px 0; color: #c9cbbc; }
.referral-card dd { margin: 0; color: var(--lime); font: italic 800 28px/1 var(--display); }

.reward-dialog { width: min(400px, calc(100% - 30px)); border: 1px solid #566238; border-radius: 18px; background: #1b2015; color: var(--ink); padding: 0; overflow: hidden; }
.reward-dialog[open] { animation: dialog-in .28s cubic-bezier(.18,.77,.31,1.25); }
.reward-dialog::backdrop { background: #0a0c08c9; backdrop-filter: blur(5px); }
.dialog-content { position: relative; display: grid; justify-items: center; gap: 8px; padding: 25px 24px 14px; background: radial-gradient(ellipse at 50% 36%, var(--tint, #2e391b), transparent 66%); }
.icon-button { min-width: 34px; min-height: 34px; padding: 0; display: grid; place-items: center; background: #252c20; border: 1px solid #404c31; border-radius: 7px; color: #c0c8ad; }
.icon-button .icon { width: 17px; height: 17px; }
.dialog-close { position: absolute; top: 10px; right: 10px; }
.reveal-art { display: grid; place-items: center; width: 165px; height: 150px; margin-top: 3px; isolation: isolate; }
.reveal-art img { width: 155px; height: 145px; animation: gift-in .55s cubic-bezier(.16,.7,.3,1.3) both; }
.dialog-content h2 { font-size: 49px; line-height: .94; }
.dialog-content .button { margin-top: 7px; }
.confetti { position: absolute; inset: 30% auto auto 50%; width: 7px; height: 10px; background: var(--particle); z-index: 2; pointer-events: none; animation: scatter .77s ease-out both; }
.toast { position: fixed; z-index: 6; right: max(22px, calc((100vw - 1112px) / 2)); bottom: 18px; max-width: min(365px, calc(100% - 34px)); padding: 12px 15px; color: var(--ink); background: #282e20; border: 1px solid #505c36; border-radius: 9px; box-shadow: 0 7px 20px #0a0c099e; font-weight: 700; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gift-in { from { opacity: 0; transform: translateY(27px) scale(.38) rotate(-12deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes scatter { from { opacity: 1; transform: translate(0,0) rotate(0); } to { opacity: 0; transform: translate(var(--travel-x), var(--travel-y)) rotate(var(--spin)); } }

@media (max-width: 940px) {
  .shell { width: calc(100% - 56px); }
  .drop-stage { min-height: 420px; padding: 36px 32px 27px; }
  .drop-art { width: 66%; }
  .hero-picture { width: 112%; }
  .reward-card { grid-template-columns: 83px minmax(0, 1fr); gap: 8px; padding-inline: 5px 9px; min-height: 109px; }
  .reward-art { height: 83px; }
  .reward-art img { width: 83px; height: 83px; }
  .reward-art::before { inset: 12px 8px; }
  .reward-copy h3 { font-size: 14px; }
}

@media (max-width: 690px) {
  body { padding-bottom: calc(61px + env(safe-area-inset-bottom)); }
  .shell { width: calc(100% - 32px); }
  .topbar-inner { height: 62px; grid-template-columns: 1fr 1fr; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark .icon { width: 19px; height: 19px; }
  .brand-word { font-size: 27px; }
  .navigation { position: fixed; z-index: 4; inset: auto 0 0; height: calc(61px + env(safe-area-inset-bottom)); gap: 5px; padding: 6px max(12px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right)); justify-content: space-around; background: #161912; border-top: 1px solid #313725; }
  .navigation a { flex: 1; flex-direction: column; gap: 3px; min-height: 46px; padding: 4px 5px; font-size: 10px; }
  .navigation .icon { width: 17px; height: 17px; }
  .main { margin-top: 16px; }
  .drop-stage { min-height: auto; grid-template: auto auto auto / minmax(0, 1fr); padding: 25px 23px 19px; border-radius: 17px; background: radial-gradient(ellipse at 52% 61%, #242e12 0%, #1b2112 42%, transparent 75%), #171a13; }
  .drop-copy h1 { font-size: clamp(63px, 13vw, 100px); margin-top: 13px; }
  .drop-copy p { margin-top: 13px; line-height: 1.45; font-size: 13px; }
  .drop-art { position: relative; width: 100%; height: clamp(200px, 57vw, 295px); inset: auto; margin: -5px 0 -6px; }
  .hero-picture { width: min(121%, 520px); left: 49%; }
  .hero-picture > img { max-height: 365px; }
  .drop-reel { left: 50%; top: 50%; width: min(66vw, 245px); }
  .orbit { left: 50%; }
  .orbit-outer { width: min(68%, 265px); }
  .orbit-inner { width: min(60%, 237px); }
  .art-plus-one { right: 4%; top: 14%; }
  .art-plus-two { left: 8%; bottom: 13%; }
  .art-id { bottom: 8px; right: 1px; font-size: 7px; }
  .drop-actions { width: 100%; padding-top: 5px; }
  .open-button { min-height: 49px; }
  .reset-line { justify-content: center; margin-top: 11px; }
  .bonus-button { width: 100%; }
  .possible { margin-top: 25px; }
  .section-heading h2 { font-size: 32px; }
  .reward-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .reward-card { display: flex; min-height: 143px; flex-direction: column; align-items: center; padding: 5px 4px 10px; text-align: center; gap: 1px; background: linear-gradient(160deg, var(--tint), #1a1b17 70%); }
  .reward-art { width: 100%; height: 68px; }
  .reward-art::before { inset: 8px max(2px, calc((100% - 57px) / 2)); }
  .reward-art img { width: 74px; height: 69px; }
  .reward-copy h3 { font-size: 12px; margin-top: 5px; }
  .reward-note { font-size: 9px; margin-top: 6px; }
  .reward-index { font-size: 8px; top: 6px; right: 6px; }
  .friends-grid { grid-template-columns: 1fr; }
  .subpage-heading { padding-top: 15px; }
  .footer { margin-top: 22px; padding-bottom: 18px; }
  .toast { right: 17px; bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 355px) {
  .drop-stage { padding-inline: 17px; }
  .drop-copy h1 { font-size: 57px; }
  .section-count { font-size: 8px; letter-spacing: .06em; }
  .invite-card, .referral-card { padding: 17px; }
  .filters button { padding-inline: 8px; }
}

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

@media (prefers-reduced-motion: reduce) {
  .reel-orbit, .drop-reel > img.reel-pop, .drop-reel.is-settled > img { animation: none !important; }
}
