/* css/site.css: the landing page (and 404). Ancient Greece in daylight: marble and parchment surfaces, Aegean blue and
   gold, terracotta accents, a meander (Greek key) frieze, laurel sprigs. Cinzel for headings and the wordmark, Nunito
   for everything a visitor reads. Palette and fonts: ELYPET.md. */
@font-face { font-family: Cinzel; src: url(../fonts/Cinzel-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Cinzel; src: url(../fonts/Cinzel-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(../fonts/Nunito-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Nunito; src: url(../fonts/Nunito-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(../fonts/Nunito-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: Nunito; src: url(../fonts/Nunito-900.woff2) format('woff2'); font-weight: 900; font-display: swap; }
:root {
  --marble: #F4EFE4; --marble2: #FBF8F1; --parch: #EADFC8; --ink: #2B2620; --ink2: rgba(43,38,32,.7); --line: rgba(43,38,32,.15);
  --aegean: #1F5FA8; --deep: #12395F; --sea: #5BB6C9; --terra: #C4643A; --olive: #7C8B4A; --laurel: #4F6B3A;
  --gold: #C9A23A; --gold2: #E2C063;
  --head: Cinzel, 'Trajan Pro', Georgia, serif;
  --shadow: 0 4px 0 var(--deep);
  /* a thin gold rule just inside a card's border */
  --rule: inset 0 0 0 4px var(--marble2), inset 0 0 0 5px rgba(201,162,58,.7);
  /* the meander frieze: two rules with a Greek key between them, deep blue on marble or gold on deep blue */
  --key-deep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 22H24M0 2H24M4 22V6H20V18H8V10H16V14H12' fill='none' stroke='%2312395F' stroke-width='2'/%3E%3C/svg%3E");
  --key-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 22H24M0 2H24M4 22V6H20V18H8V10H16V14H12' fill='none' stroke='%23E2C063' stroke-width='2'/%3E%3C/svg%3E");
  /* a laurel sprig pointing right (mirrored for the left side) */
  --sprig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 28'%3E%3Cpath fill='%23C9A23A' d='M8 17.5Q14 16.1 15.3 8.6Q8.2 11.4 8 17.5ZM8 17.5Q11.3 22.7 18.8 21.5Q13.9 15.7 8 17.5ZM18.2 15.2Q23.7 14.4 25.5 7.6Q18.8 9.7 18.2 15.2ZM18.2 15.2Q20.7 20.2 27.7 19.7Q23.6 14 18.2 15.2ZM28.6 13.8Q33.7 13.5 35.9 7.5Q29.6 8.8 28.6 13.8ZM28.6 13.8Q30.5 18.5 36.9 18.6Q33.6 13.1 28.6 13.8ZM39.3 13.2Q43.9 13.3 46.3 8Q40.6 8.8 39.3 13.2ZM39.3 13.2Q40.7 17.6 46.5 18.2Q43.9 13 39.3 13.2ZM50.3 13.5Q54.4 13.8 57 9.3Q51.8 9.6 50.3 13.5ZM50.3 13.5Q51.3 17.5 56.4 18.4Q54.5 13.6 50.3 13.5ZM56 14Q58.4 16.9 62.5 14.7Q59 11.7 56 14Z'/%3E%3Cpath fill='none' stroke='%23C9A23A' stroke-width='1.7' stroke-linecap='round' d='M3 19Q28 11 57 14'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--marble); color: var(--ink); font: 500 17px/1.55 Nunito, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: .02em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); color: var(--deep); }
.sub { font-size: 18.5px; color: var(--ink2); font-weight: 700; margin: 12px auto 30px; max-width: 640px; }
.sec-head { text-align: center; }
/* a heading between two laurel sprigs */
.laurel { display: inline-flex; align-items: center; gap: 16px; }
.laurel::before, .laurel::after { content: ''; width: clamp(46px, 6.4vw, 78px); aspect-ratio: 64 / 28; background: var(--sprig) center / contain no-repeat; flex: none; }
.laurel::before { transform: scaleX(-1); }
.frieze { height: 18px; background: var(--key-deep) left center / 18px 18px repeat-x; }
.frieze.gold { background-image: var(--key-gold); }

/* nav: marble over the live island, a gold rule inside */
.nav { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 10; width: min(1120px, calc(100% - 24px)); display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 12px; background: rgba(251,248,241,.96); border: 2px solid var(--deep); border-radius: 14px; box-shadow: var(--rule), var(--shadow); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px var(--head); color: var(--deep); letter-spacing: .04em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav nav a { text-decoration: none; font-weight: 800; font-size: 15px; color: var(--ink); }
.nav nav a:hover { color: var(--aegean); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.nav .xnav { display: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--deep); background: var(--marble2); display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--deep); text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: 900 18px Nunito, system-ui, sans-serif; padding: 13px 26px; border: 2px solid var(--deep); border-radius: 12px; background: var(--aegean); color: var(--marble2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), var(--shadow); transition: transform .08s, box-shadow .08s, background .15s; }
.cta:hover { background: #2569B8; }
.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--deep); }
.cta.ghost { background: var(--marble2); color: var(--deep); }
.cta.ghost:hover { background: #fff; }
.cta.gold { background: var(--gold2); color: var(--ink); }
.cta.small { font-size: 15px; padding: 8px 18px; border-radius: 10px; }

/* hero: the island, live, and a marble card with a meander frieze along its top */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--sea); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-card { position: absolute; left: max(20px, calc((100% - 1120px) / 2)); bottom: max(40px, 9vh); width: min(540px, calc(100% - 40px)); background: linear-gradient(165deg, var(--marble2), var(--marble) 70%); border: 2px solid var(--deep); border-radius: 16px; box-shadow: var(--rule), 0 6px 0 var(--deep), 0 24px 48px rgba(18,57,95,.22); padding: 40px 30px 24px; overflow: hidden; }
.hero-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: var(--deep) var(--key-gold) left center / 18px 18px repeat-x; border-bottom: 2px solid var(--gold); }
.kicker { margin: 0 0 8px; font-weight: 900; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.hero h1 { font-size: clamp(56px, 8vw, 92px); letter-spacing: .03em; color: var(--deep); }
.lede { font-size: 18px; margin: 10px 0 22px; color: #3E372F; }
.hero .row { display: flex; gap: 12px; flex-wrap: wrap; }
.wallet-note { margin: 14px 0 0; font-weight: 800; font-size: 15px; color: var(--ink); }
.live { margin: 10px 0 0; font-weight: 800; font-size: 14px; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.live::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--olive); border: 1.5px solid var(--deep); flex: none; }

/* the Elypets: parchment, a marble stage */
.tufts-sec { padding: 92px 0 84px; background: var(--parch); position: relative; }
.tufts-sec::before, .coin::before, .coin::after { content: ''; position: absolute; left: 0; right: 0; height: 18px; background: var(--key-deep) left center / 18px 18px repeat-x; }
.tufts-sec::before { top: 0; }
.rar-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; justify-content: center; }
.rar-filter button { font: 800 14px Nunito, system-ui, sans-serif; border: 2px solid var(--deep); border-radius: 999px; padding: 7px 16px; background: var(--marble2); cursor: pointer; color: var(--deep); min-height: 38px; }
.rar-filter button:hover { background: #fff; }
.rar-filter button.on { background: var(--deep); color: var(--marble2); }
.tuftgrid { position: relative; background: radial-gradient(ellipse at 50% 0%, var(--marble2), var(--marble) 70%); border: 2px solid var(--deep); border-radius: 16px; box-shadow: var(--rule), var(--shadow); overflow: hidden; }
.tuftgrid canvas { display: block; width: 100%; touch-action: pan-y; }
.mg-labels { position: absolute; left: 0; top: 0; right: 0; pointer-events: none; }
.mg-label { position: absolute; text-align: center; padding: 0 4px; line-height: 1.15; }
.mg-label b { display: block; font: 700 clamp(13px, 1.2vw, 15.5px) var(--head); color: var(--deep); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-label span { display: block; margin-top: 3px; font: 800 11.5px Nunito, system-ui, sans-serif; color: rgba(43,38,32,.58); white-space: nowrap; }
.tip { position: absolute; z-index: 2; pointer-events: none; width: 230px; background: var(--marble2); border: 2px solid var(--deep); border-radius: 12px; box-shadow: 0 3px 0 var(--deep), 0 12px 24px rgba(18,57,95,.18); padding: 10px 12px; font-size: 13.5px; }
.tip b { font: 700 16px var(--head); display: block; color: var(--deep); letter-spacing: .02em; }
.tip i { font: 800 13px Nunito, system-ui, sans-serif; font-style: normal; color: var(--terra); display: block; margin: 2px 0 6px; }
.rar { display: inline-block; font: 900 11px Nunito, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1.5px solid var(--deep); color: var(--ink); }
.rar.common { background: #EDE6D6; } .rar.uncommon { background: #DCE6C2; } .rar.rare { background: #CFE6EE; } .rar.epic { background: #DED6EE; } .rar.legend { background: #F3DC92; }

/* how the island works */
.how { padding: 84px 0 92px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.cards article { position: relative; background: linear-gradient(170deg, var(--marble2), var(--marble)); border: 2px solid var(--deep); border-radius: 14px; box-shadow: var(--rule), var(--shadow); padding: 22px 20px 22px; }
.cards article::before { content: ''; position: absolute; left: 20px; right: 20px; top: -2px; height: 4px; background: var(--gold); border-radius: 0 0 3px 3px; }
.cards img { width: 56px; height: 56px; }
.cards h3 { font-size: 19px; margin: 10px 0 8px; color: var(--deep); }
.cards p { margin: 0; color: #3E372F; font-size: 15.5px; }

/* $ELYPET: a deep Aegean band between two gold friezes */
.coin { position: relative; padding: 96px 0 92px; background: var(--deep); color: var(--marble); }
.coin::before { top: 0; background-image: var(--key-gold); background-color: #0E2E4D; }
.coin::after { bottom: 0; background-image: var(--key-gold); background-color: #0E2E4D; }
.coin h2 { color: var(--marble2); }
.coin .sub { color: rgba(244,239,228,.78); }
.coin .laurel::before, .coin .laurel::after { filter: brightness(1.18); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 2px solid var(--gold); border-radius: 14px; overflow: hidden; background: var(--marble2); color: var(--ink); box-shadow: 0 4px 0 #0A2540; }
.tiers > div { padding: 20px 18px; border-right: 1.5px solid rgba(201,162,58,.45); }
.tiers > div:last-child { border-right: 0; }
.tiers b { display: block; font: 700 17px var(--head); margin-bottom: 8px; color: var(--deep); letter-spacing: .02em; }
.tiers span { font-size: 15px; color: #3E372F; }
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.flow > div { background: rgba(244,239,228,.07); border: 1.5px solid rgba(226,192,99,.5); border-radius: 14px; padding: 20px 22px; }
.flow > .wide { grid-column: 1 / -1; }
.flow h3 { font-size: 19px; margin-bottom: 8px; color: var(--gold2); }
.flow p { margin: 0; font-size: 15.5px; color: rgba(244,239,228,.88); }
.ca { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #0A2540; color: var(--marble2); border: 1.5px solid var(--gold); border-radius: 12px; padding: 12px 16px; font-weight: 800; }
.ca > span { font: 700 14px var(--head); color: var(--gold2); letter-spacing: .06em; }
.ca code { font: 700 14px ui-monospace, Menlo, monospace; word-break: break-all; color: #F6E7C3; }
.ca code.soon { font: 700 15px Nunito, system-ui, sans-serif; color: var(--marble); word-break: normal; }
.ca .cta { margin-left: auto; }
.fine { font-size: 13px; color: rgba(244,239,228,.66); font-weight: 700; margin-top: 14px; }

.foot { position: relative; padding: 36px 0 40px; font-weight: 800; font-size: 14px; background: var(--parch); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot .fbrand { display: inline-flex; align-items: center; gap: 10px; color: var(--deep); }
.foot .fbrand img { width: 28px; height: 28px; border-radius: 7px; }
.foot .links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot .links a { text-decoration: none; color: var(--deep); }
.foot .links a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.foot .credits { flex-basis: 100%; order: 3; font-weight: 700; font-size: 12.5px; color: rgba(43,38,32,.64); }

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .tiers > div:nth-child(2) { border-right: 0; }
  .tiers > div:nth-child(-n+2) { border-bottom: 1.5px solid rgba(201,162,58,.45); }
  .nav nav { gap: 14px; }
}
@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav .xnav { display: grid; margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { font-size: 20px; }
  .brand img { width: 30px; height: 30px; }
  .hero { min-height: 640px; }
  .hero-card { left: 12px; right: 12px; width: auto; bottom: 16px; padding: 32px 18px 18px; border-radius: 14px; }
  .hero-card::before { height: 14px; background-size: 14px 14px; }
  .lede { font-size: 15.5px; margin: 8px 0 16px; }
  .hero h1 { font-size: 50px; }
  .hero .row { flex-wrap: nowrap; gap: 10px; }
  .hero .row .cta { flex: 1; font-size: 16px; padding: 12px 10px; }
  .cards, .tiers, .flow { grid-template-columns: 1fr; }
  .tiers > div { border-right: 0; border-bottom: 1.5px solid rgba(201,162,58,.45); }
  .tiers > div:last-child { border-bottom: 0; }
  .tufts-sec { padding: 64px 0 56px; }
  .how { padding: 60px 0 64px; }
  .coin { padding: 66px 0 62px; }
  .sub { font-size: 16.5px; margin-bottom: 22px; }
  .laurel { gap: 10px; }
  .ca .cta { margin-left: 0; }
}

/* music: the toggle (js/play/music.js) and the "now playing" label */
.music-btn .ico { width: 22px; height: 22px; }
.music-btn.is-on .ico { animation: music-bob .7s ease-in-out infinite alternate; }
.music-btn[aria-pressed="false"] .ico { opacity: .55; }
@keyframes music-bob { from { transform: translateY(1px) rotate(-6deg); } to { transform: translateY(-2px) rotate(6deg); } }
.music-chip { position: fixed; z-index: 60; pointer-events: none; display: grid; gap: 1px; max-width: min(280px, calc(100vw - 16px)); padding: 8px 12px 9px; background: var(--marble2); color: var(--ink); border: 2px solid var(--deep); border-radius: 10px; box-shadow: 0 3px 0 var(--deep); font: 600 13px/1.25 Nunito, system-ui, sans-serif; opacity: 0; transform: translateY(-4px) scale(.98); transition: opacity .25s ease, transform .25s ease; }
.music-chip.is-on { opacity: 1; transform: none; }
.music-chip-k { font: 900 10.5px/1 Nunito, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }
.music-chip b { font: 700 14px/1.25 var(--head); color: var(--deep); letter-spacing: .02em; }
.music-chip-a { font-size: 12px; color: rgba(43,38,32,.62); }
@media (prefers-reduced-motion: reduce) { .music-btn.is-on .ico { animation: none; } .music-chip { transition: none; } html { scroll-behavior: auto; } }
.music-nav { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--deep); background: var(--marble2); display: grid; place-items: center; cursor: pointer; padding: 0; }
@media (max-width: 760px) { .nav .xnav + .music-nav { margin-left: 0; } }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 20px; background: var(--parch); }
.lost-card { position: relative; width: min(460px, 100%); background: var(--marble2); border: 2px solid var(--deep); border-radius: 16px; box-shadow: var(--rule), var(--shadow); padding: 40px 26px 28px; overflow: hidden; }
.lost-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: var(--deep) var(--key-gold) left center / 18px 18px repeat-x; border-bottom: 2px solid var(--gold); }
.lost-card img { width: 96px; height: 96px; border-radius: 22px; }
.lost-card h2 { margin: 14px 0 8px; font-size: 30px; }
.lost-card .sub { margin: 0 auto 22px; }
