@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --navy: #0E2A47; --muted: #35556F;
  --mint: #97FCE4; --mint-hi: #DBFFF6; --mint-deep: #37BFA2; --mint-dark: #2FAE93;
  --sky: #9ED6FF; --sky-hi: #D9F0FF; --sky-deep: #5AAEEA;
  --white: #FFFFFF;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; color: var(--navy); overflow-x: hidden;
  font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 1.05rem; line-height: 1.55;
  background: linear-gradient(180deg, #C4E8FF 0%, #E2F5FF 30%, #E6FFF8 70%, #D2FBF0 100%);
}
a { color: var(--navy); }
a:hover { color: #1F6FB5; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; }
h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 72px; padding-bottom: 72px; position: relative; z-index: 1; }
.sub { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.floaters { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.floaters > * { position: absolute; left: 0; top: 0; will-change: transform; }
.bubble { border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 12%, rgba(255,255,255,.55) 13% 30%, rgba(151,252,228,.35) 60%, rgba(158,214,255,.45) 100%); border: 1.5px solid rgba(255,255,255,.9); }

/* glossy surfaces */
.glass {
  background: rgba(255,255,255,.62); border: 2px solid rgba(255,255,255,.95); border-radius: 28px;
  box-shadow: 0 14px 34px rgba(14,42,71,.10), inset 0 2px 0 rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px;
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--navy); text-decoration: none;
  border-radius: 999px; border: 2px solid var(--b); background: linear-gradient(180deg, var(--hi), var(--lo));
  box-shadow: 0 6px 0 var(--b), inset 0 3px 0 rgba(255,255,255,.75); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 0 var(--b), inset 0 3px 0 rgba(255,255,255,.75); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--b), inset 0 3px 0 rgba(255,255,255,.75); }
.btn-mint { --hi: #C6FFF2; --lo: #7CEFD3; --b: var(--mint-deep); }
.btn-sky { --hi: var(--sky-hi); --lo: var(--sky); --b: var(--sky-deep); }
.btn-white { --hi: #fff; --lo: #EAF4FB; --b: #A9C4D8; }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: 1.05rem; }
.btn[aria-disabled="true"] { opacity: .65; cursor: default; }

/* header */
.top { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 18px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.7rem; }
.brand img { width: 54px; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.top nav a { text-decoration: none; font-weight: 800; padding: 10px 2px; }

/* hero */
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; padding-top: 32px; padding-bottom: 48px; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.7); border: 2px solid #fff; font-weight: 800; font-size: .95rem; color: var(--muted); }
.hero-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; position: relative; z-index: 1; }
h1 { margin: 0; font-family: var(--display); line-height: .95; }
.jelly-word {
  display: block; font-weight: 700; font-size: clamp(4.2rem, 10vw, 8.5rem); letter-spacing: -1px;
  background: linear-gradient(180deg, #E4FFF9 0%, var(--mint) 45%, #4FD1B2 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px var(--mint-deep); filter: drop-shadow(0 6px 0 var(--mint-dark)) drop-shadow(0 16px 18px rgba(47,174,147,.3));
}
.h1-sub { display: block; margin-top: 14px; font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.lede { max-width: 520px; font-size: 1.15rem; color: var(--muted); }
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-radius: 20px; width: 100%; max-width: 560px; }
.ca-label { font-family: var(--display); font-weight: 700; color: var(--mint-dark); }
.ca code { flex: 1; min-width: 170px; font-size: .95rem; font-weight: 700; word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ca-copy { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--sky-deep); background: linear-gradient(180deg, var(--sky-hi), var(--sky)); font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--navy); cursor: pointer; }
.ca-copy:disabled { border-color: #B7C6D2; background: #E4ECF2; color: #51677A; cursor: not-allowed; }
.toast { min-height: 1.5em; font-weight: 800; color: var(--mint-dark); }

.playground { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
#jelly { width: 100%; height: clamp(300px, 42vw, 480px); touch-action: none; cursor: grab; display: block; }
#jelly.grabbing { cursor: grabbing; }
.play-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.hint, .count { font-weight: 800; color: var(--muted); }
.poke { min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 2px solid var(--mint-deep); background: linear-gradient(180deg, #C6FFF2, #7CEFD3); box-shadow: 0 4px 0 var(--mint-deep), inset 0 2px 0 rgba(255,255,255,.75); font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--navy); cursor: pointer; }
.poke:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--mint-deep); }

.cloud { position: absolute; z-index: 0; height: 44px; border-radius: 999px; background: #fff; opacity: .8; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 46%; height: 150%; left: 14%; top: -70%; }
.cloud::after { width: 36%; height: 120%; right: 14%; top: -45%; }
.c1 { width: 190px; top: 2%; left: 42%; } .c2 { width: 130px; top: 70%; left: -3%; opacity: .6; } .c3 { width: 160px; top: 12%; right: -2%; opacity: .65; }

/* meet */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 24px; }
.card { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card img { width: 120px; }
.card p { color: var(--muted); }
.fee-line { font-weight: 800; color: var(--mint-dark) !important; }

/* hang-out */
.line-wrap { position: relative; margin-top: 18px; }
.rope { position: absolute; top: 0; left: 0; width: 100%; height: 40px; }
.hangers { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 26px; padding-top: 14px; }
.hang { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; will-change: transform; }
.string { width: 3px; background: var(--sky-deep); border-radius: 2px; }
.pin { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--sky) 60%, var(--sky-deep)); margin-bottom: -3px; z-index: 1; }
.flip { width: 168px; height: 226px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 800px; font: inherit; color: inherit; border-radius: 24px; }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.3,1.4,.5,1); transform-style: preserve-3d; }
.flip[aria-pressed="true"] .flip-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 24px; border: 2px solid #fff; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 12px 24px rgba(14,42,71,.14), inset 0 3px 0 rgba(255,255,255,.8); }
.front { background: linear-gradient(180deg, #fff, var(--bg, #DDF3FF)); }
.back { background: linear-gradient(180deg, #C6FFF2, #8FF2DA); transform: rotateY(180deg); }
.face img { width: 112px; }
.face b { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.15; text-align: center; }
.face small { font-weight: 800; font-size: .8rem; color: var(--muted); }

/* buy */
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.steps li { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.steps p { color: var(--muted); }
.num { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-weight: 700; font-size: 1.4rem; background: radial-gradient(circle at 35% 28%, #E4FFF9, var(--mint) 55%, #5AD9BC); border: 2px solid var(--mint-deep); }
.chart { margin-top: 24px; padding: 14px; }
.chart iframe { width: 100%; height: 26rem; border: 0; border-radius: 18px; display: block; }

/* community + footer */
.community { padding: 36px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.community p { color: var(--muted); margin-bottom: 18px; }
.community img { width: 100%; max-width: 300px; justify-self: center; }
footer { position: relative; z-index: 1; background: rgba(255,255,255,.7); border-top: 2px solid #fff; }
.foot { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; font-size: .9rem; color: var(--muted); }

/* shared */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.duo-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.fine { font-size: .9rem; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; width: 100%; max-width: 360px; }
.field input { min-height: 50px; padding: 10px 16px; border-radius: 16px; border: 2px solid var(--sky-deep); background: #fff; font: inherit; color: var(--navy); }

/* pocket minty */
.device { justify-self: center; width: min(340px, 100%); padding: 22px 22px 26px; border-radius: 40px 40px 56px 40px; background: linear-gradient(160deg, #fff, #CFE9FB); border: 2px solid #fff; box-shadow: 0 10px 0 #9CC8EA, 0 26px 40px rgba(14,42,71,.18), inset 0 3px 0 #fff; }
.lcd { border-radius: 22px; padding: 12px; background: #C9F7E6; border: 3px solid var(--navy); box-shadow: inset 0 6px 12px rgba(14,42,71,.14); }
.lcd-top { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: 1px; }
.lcd-stage { position: relative; height: 170px; display: grid; place-items: center; overflow: hidden; }
.lcd-stage img { width: 150px; }
.lcd-stage img.boing { animation: boing .5s; }
.lcd-stage img.nom { animation: nom .5s; }
.candle { position: absolute; top: -30px; left: 50%; width: 12px; height: 26px; margin-left: -6px; border-radius: 3px; background: #2BB34A; border: 2px solid var(--navy); animation: fall .55s ease-in forwards; }
@keyframes fall { to { transform: translateY(105px) scale(.4); opacity: 0; } }
@keyframes boing { 0% { transform: scale(1,1); } 30% { transform: scale(1.25,.72); } 60% { transform: scale(.88,1.14); } 100% { transform: scale(1,1); } }
@keyframes nom { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.bars { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; font-weight: 800; font-size: .85rem; }
.bar { height: 12px; border-radius: 999px; border: 2px solid var(--navy); background: #fff; overflow: hidden; }
.bar i { display: block; height: 100%; width: 50%; background: var(--mint-deep); transition: width .4s; }
.dbtns { display: flex; justify-content: space-around; margin-top: 18px; }
.dbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--navy); }
.dcap { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, #C6FFF2, #7CEFD3); border: 2px solid var(--mint-deep); box-shadow: 0 5px 0 var(--mint-deep), inset 0 3px 0 rgba(255,255,255,.8); }
.dbtn:active .dcap { transform: translateY(4px); box-shadow: 0 1px 0 var(--mint-deep); }
.pet-msg { padding: 10px 16px; border-radius: 16px; background: rgba(255,255,255,.7); border: 2px solid #fff; font-weight: 800; }

/* badge */
.lanyard { display: flex; justify-content: center; min-height: 420px; }
.badge-hang { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; will-change: transform; }
.strap { width: 120px; height: 110px; display: block; margin-bottom: -4px; }
.id-card { width: 230px; padding: 16px 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 26px; border: 2px solid #fff; background: linear-gradient(180deg, #fff 0%, #DDF3FF 55%, #C6FFF2 100%); box-shadow: 0 16px 30px rgba(14,42,71,.18), inset 0 3px 0 #fff; cursor: pointer; }
.id-top { font-family: var(--display); font-weight: 700; letter-spacing: 3px; color: var(--mint-dark); }
.id-card img { width: 150px; }
.id-name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; text-align: center; word-break: break-word; }
.id-no { font-weight: 800; font-size: .9rem; color: var(--muted); }
.id-foot { margin-top: 4px; padding-top: 8px; border-top: 2px dashed #9CC8EA; width: 100%; text-align: center; font-weight: 800; font-size: .8rem; color: var(--muted); }

@media (max-width: 880px) {
  .duo { grid-template-columns: 1fr; gap: 24px; }
  .lanyard { min-height: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .playground { order: -1; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy .row { justify-content: center; }
  .ca code { text-align: left; }
  .community { grid-template-columns: 1fr; text-align: center; }
  .community .row { justify-content: center; }
  .top { justify-content: center; }
  .c1 { left: 60%; }
  .hangers { gap: 14px; }
  .flip { width: 150px; height: 210px; }
  .face img { width: 96px; }
  .face b { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flip-inner, .btn { transition: none; }
}
