/* Wake Up v2: the page is a sunrise. Night blue at the top, warm horizon at the bottom, the rooster's sun. */
@font-face { font-family: "Bricolage"; src: url(/assets/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
:root {
  --night: #0b1430; --dawn: #2a2350; --plum: #7a3d4f; --ember: #e8743b; --amber: #f6a94e;
  --ink: #fff7ec; --mut: #ecd9c8; --dim: #bfa9a0; --sun: #ffc857; --comb: #e5482d; --teal: #2a7f8f; --up: #7ef0b0; --dn: #ff9a8a;
  --glass: rgba(11, 20, 48, .52); --ln: rgba(255, 247, 236, .18);
  --f: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gl: max(18px, env(safe-area-inset-left, 0px)); --gr: max(18px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--night); color: var(--ink); font: 400 17px/1.55 var(--f); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 1260px; margin: 0 auto; padding-left: max(var(--gl), 3vw); padding-right: max(var(--gr), 3vw); }
.wrap.slim { max-width: 820px; }
.up { color: var(--up); } .dn { color: var(--dn); }

/* the sky behind the whole page */
.sky, .v-sky { position: absolute; inset: 0 0 auto 0; height: 100vh; min-height: 760px; z-index: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, #0b1430 0%, #2a2350 38%, #7a3d4f 62%, #e8743b 84%, #f6a94e 100%); }
.sky::after { content: ""; position: absolute; inset: auto 0 0 0; height: 220px; background: linear-gradient(transparent, var(--night)); }
.stars { position: absolute; inset: 0 0 50% 0; opacity: .75; animation: twinkle 5s ease-in-out infinite;
  background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 30% 8%, #fff, transparent), radial-gradient(1.2px 1.2px at 70% 14%, #fff, transparent), radial-gradient(1px 1px at 88% 24%, #fff, transparent), radial-gradient(1px 1px at 52% 30%, #fff, transparent), radial-gradient(1.3px 1.3px at 6% 40%, #fff, transparent), radial-gradient(1px 1px at 40% 22%, #fff, transparent), radial-gradient(1px 1px at 94% 6%, #fff, transparent); }
@keyframes twinkle { 50% { opacity: .45; } }
.sun { position: absolute; left: 50%; bottom: -200px; width: 620px; height: 620px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #fff1c4 0%, #ffc857 34%, rgba(255, 170, 80, 0) 70%); animation: rise 8s ease-in-out infinite alternate; }
@keyframes rise { to { transform: translate(-50%, -24px); } }
main, .nav, .foot { position: relative; z-index: 1; }

/* buttons */
.cta { display: inline-flex; align-items: center; justify-content: center; background: var(--sun); color: #3a1d00; border-radius: 14px; padding: 10px 18px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .1s, filter .15s; }
.cta:hover { filter: brightness(1.06); }
.cta:active { transform: scale(.97); }
.cta.big { padding: 15px 26px; font-size: 16.5px; border-radius: 16px; }
.cta.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ln); }
.cta.off { background: rgba(255, 247, 236, .12); color: var(--dim); cursor: default; filter: none; }
.cta.sm { display: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); transition: background .25s; }
.nav.solid { background: rgba(11, 20, 48, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-in { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; border-radius: 12px; }
.brand.sm { font-size: 17px; } .brand.sm img { width: 26px; height: 26px; border-radius: 8px; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--mut); }
.links a:hover { color: var(--sun); }
@media (max-width: 760px) {
  .links, .nav .cta:not(.sm) { display: none; }
  .nav .cta.sm { display: inline-flex; margin-left: auto; padding: 8px 13px; font-size: 13.5px; }
  .nav-in { height: 62px; } .brand { font-size: 19px; } .brand img { width: 32px; height: 32px; }
}

/* hero */
.hero { min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 32px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; flex: 1; gap: 20px; padding-top: 10px; }
.date { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); font-weight: 600; }
h1 { font-size: clamp(60px, 8vw, 112px); line-height: .92; font-weight: 800; letter-spacing: -.04em; font-stretch: 85%; margin: 14px 0 16px; text-wrap: balance; }
.lead { font-size: clamp(16px, 1.5vw, 19.5px); color: var(--mut); max-width: 520px; line-height: 1.5; margin-bottom: 26px; }
.roo-wrap { position: relative; height: min(560px, 62vh); }
.roo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 100%; width: auto; max-width: none; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); }
.row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.st { border-radius: 22px; padding: 18px; min-height: 240px; display: flex; flex-direction: column; text-align: left; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--ln); transition: transform .15s, border-color .15s; min-width: 0; }
.st:hover { transform: translateY(-4px); border-color: rgba(255, 200, 87, .6); }
.st .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); font-weight: 700; }
.st h3 { font-size: 23px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin: 8px 0; }
.st p { font-size: 14px; color: var(--mut); line-height: 1.45; }
.st .big { font-size: 42px; font-weight: 800; letter-spacing: -.03em; margin-top: auto; line-height: 1.05; }
.st .big small { display: block; font-size: 13.5px; font-weight: 600; color: var(--mut); letter-spacing: 0; }
.st .co { display: flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 700; min-width: 0; }
.st .co span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st .co em { margin-left: auto; font-style: normal; }
.st.hl { background: linear-gradient(160deg, rgba(255, 200, 87, .96), rgba(232, 116, 59, .96)); color: #2b1300; border: 0; }
.st.hl .k { color: #6b2a00; } .st.hl p, .st.hl .big small { color: #4b2200; }
.st.wait { opacity: .55; }
.dot { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #1b1030; }
@media (max-width: 1100px) { .row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .row .st:nth-child(n+4) { display: none; } }
@media (max-width: 760px) {
  .hero { min-height: 0; padding-bottom: 10px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); text-align: left; padding-top: 8px; }
  .roo-wrap { height: 300px; order: 2; margin-top: -10px; }
  .hero-copy .cta.big { width: 100%; }
  .row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 6px calc(-1 * max(var(--gr), 3vw)) 0 calc(-1 * max(var(--gl), 3vw)); padding: 0 max(var(--gr), 3vw) 6px max(var(--gl), 3vw); scrollbar-width: none; }
  .row::-webkit-scrollbar { display: none; }
  .row .st { flex: 0 0 74%; scroll-snap-align: start; min-height: 210px; display: flex !important; }
  .sun { width: 420px; height: 420px; bottom: -170px; }
}

/* sections */
.band { padding: 72px 0 0; }
.kick { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); font-weight: 700; margin-bottom: 8px; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -.035em; font-stretch: 88%; margin-bottom: 24px; }
.three { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.three li { background: rgba(255, 247, 236, .05); border: 1px solid var(--ln); border-radius: 22px; padding: 22px; }
.three span { font-size: 30px; display: block; margin-bottom: 8px; }
.three b { display: block; font-size: 19px; margin-bottom: 6px; }
.three p { color: var(--mut); font-size: 15px; }
.tok { display: flex; gap: 28px; align-items: center; border-radius: 30px; padding: 30px; background: linear-gradient(135deg, rgba(255, 200, 87, .18), rgba(232, 116, 59, .12)); border: 1px solid rgba(255, 200, 87, .45); }
.tok > img { width: 110px; height: 110px; border-radius: 26px; flex: none; }
.tok-c { flex: 1; min-width: 0; }
.tok h2 { margin-bottom: 6px; color: var(--sun); }
.tok p { color: var(--mut); }
.ca { display: flex; align-items: center; gap: 10px; margin-top: 16px; background: rgba(11, 20, 48, .7); border: 1px solid var(--ln); border-radius: 14px; padding: 8px 8px 8px 14px; min-width: 0; }
.ca code { flex: 1; min-width: 0; font: 500 13.5px ui-monospace, Menlo, monospace; color: var(--mut); overflow-wrap: anywhere; }
.ca.on code { color: var(--ink); }
.ca button { border: 1px solid var(--ln); border-radius: 10px; padding: 7px 13px; font-weight: 600; font-size: 13.5px; flex: none; }
.ca button:disabled { opacity: .35; cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
details { border-top: 1px solid var(--ln); }
details:last-of-type { border-bottom: 1px solid var(--ln); }
summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-size: 19px; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "☀"; position: absolute; right: 4px; top: 16px; color: var(--sun); transition: transform .3s; }
details[open] summary::after { transform: rotate(90deg); }
details p { color: var(--mut); padding-bottom: 20px; }
.foot { margin-top: 80px; border-top: 1px solid var(--ln); padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px)); color: var(--mut); font-size: 14.5px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; }
.foot a { color: var(--sun); }
@media (max-width: 760px) {
  .band { padding-top: 52px; }
  .three { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .three li { padding: 16px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 10px; }
  .three span { grid-row: 1 / 3; margin: 0; font-size: 26px; }
  .tok { flex-direction: column; text-align: center; padding: 24px 18px; gap: 14px; }
  .tok .btns { justify-content: center; } .tok .btns .cta { flex: 1 1 150px; }
  .foot { margin-top: 56px; }
}

/* story viewer */
.viewer { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; overflow: hidden; background: var(--night); animation: vin .25s ease both; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
@keyframes vin { from { opacity: 0; transform: scale(.98); } }
.v-sky { position: absolute; inset: 0; height: auto; min-height: 0; }
.v-top { position: relative; z-index: 3; padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gr) 0 var(--gl); max-width: 560px; width: 100%; margin: 0 auto; }
.v-bars { display: flex; gap: 4px; }
.v-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 247, 236, .3); overflow: hidden; }
.v-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.v-bars i.done b { width: 100%; }
.v-head { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.v-btn { margin-left: auto; border: 1px solid var(--ln); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; font-weight: 600; background: rgba(11, 20, 48, .4); position: relative; z-index: 4; }
.v-btn + .v-btn { margin-left: 0; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; }
.v-body { position: relative; z-index: 2; flex: 1; max-width: 560px; width: 100%; margin: 0 auto; padding: 26px var(--gr) 90px var(--gl); display: flex; flex-direction: column; }
.v-body .k { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); font-weight: 700; }
.v-body h2 { font-size: clamp(38px, 11vw, 58px); line-height: .98; margin: 12px 0 14px; }
.v-body p { font-size: 17px; color: var(--mut); line-height: 1.5; }
.v-big { font-size: clamp(64px, 20vw, 100px); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-top: 22px; }
.v-big small { display: block; font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--mut); margin-top: 6px; }
.v-coins { display: grid; gap: 8px; margin-top: 22px; }
.v-coin { display: flex; align-items: center; gap: 12px; background: rgba(11, 20, 48, .5); border: 1px solid var(--ln); border-radius: 18px; padding: 12px 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 0; }
.v-coin .dot { width: 42px; height: 42px; font-size: 13px; }
.v-coin div { min-width: 0; }
.v-coin b { display: block; font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-coin small { display: block; color: var(--mut); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-coin em { margin-left: auto; font-style: normal; font-size: 21px; font-weight: 800; flex: none; }
.v-end { margin-top: auto; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 4; }
.v-tap { position: absolute; top: 90px; bottom: 60px; z-index: 3; }
.v-tap.prev { left: 0; width: 30%; } .v-tap.next { right: 0; width: 70%; }
.v-hint { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 12.5px; color: rgba(255, 247, 236, .78); pointer-events: none; }
body.reading { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
