@font-face{font-family:"Fredoka";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/fredoka-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Fredoka";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/fredoka-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Fredoka";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/fredoka-latin-700-normal.woff2) format("woff2")}
/* Gem Keep site. Plain CSS, no framework. Palette follows docs/WEBSITE_DESIGN.md section 4. */
:root{--sky1:#a9dcff;--sky2:#e9f7ff;--grass:#6cc24a;--grass-d:#3f8f2a;--btn:#2f7d20;--btn-d:#1f5a14;--wood:#6b4a2b;--gold:#f5c542;--ink:#2b2f45;--teal:#18a999;--bg:#f4faff;--line:rgba(60,70,120,.15)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Fredoka","Trebuchet MS",system-ui,sans-serif;font-weight:500;color:var(--ink);background:var(--bg);line-height:1.5;font-size:18px}
img,svg{max-width:100%}
a{color:#0f5a78}
.wrap{max-width:1040px;margin:0 auto;padding:0 20px}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.skip{position:absolute;left:-999px}.skip:focus{left:8px;top:8px;background:#fff;padding:8px;z-index:9}
.top{background:linear-gradient(var(--sky1),var(--sky2));position:relative;overflow:hidden}
.nav{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;padding:12px 0;flex-wrap:wrap;position:relative;z-index:1}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:22px;color:var(--wood);text-decoration:none}
.brand img{width:40px;height:40px;border-radius:10px;box-shadow:0 3px 0 rgba(0,0,0,.15)}
.nav ul{display:flex;gap:6px 18px;list-style:none;margin:0;padding:0;font-size:17px;font-weight:600}
.nav ul a{color:var(--ink);text-decoration:none;padding:8px 2px;display:inline-block}
.nav ul a:hover{text-decoration:underline}
.cloud{position:absolute;background:#fff;border-radius:999px;opacity:.8;height:30px}
.cloud::before,.cloud::after{content:"";position:absolute;background:#fff;border-radius:50%}
.cloud::before{width:44px;height:44px;left:16px;top:-22px}.cloud::after{width:32px;height:32px;left:50px;top:-12px}
.c1{width:110px;top:90px;left:-130px}.c2{width:80px;top:190px;left:-100px}
.hero{padding-top:16px;padding-bottom:80px;text-align:center;position:relative;z-index:1}
.hero-grid{display:grid;gap:28px;align-items:center}
.ribbon{display:inline-block;background:var(--wood);color:#fff4d8;font-family:Cinzel,Georgia,serif;font-weight:700;letter-spacing:.12em;padding:6px 22px;border-radius:8px;box-shadow:0 4px 0 rgba(0,0,0,.2);font-size:18px}
.hero h1{font-size:clamp(34px,8vw,58px);line-height:1.05;margin:14px 0 10px;color:var(--wood);text-shadow:0 3px 0 rgba(255,255,255,.7)}
.lead{font-size:clamp(18px,3.6vw,21px);margin:0 auto 20px;max-width:34em}
.hero-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:16px;align-items:center}
.hills{position:absolute;left:0;right:0;bottom:-1px;height:56px;background:var(--bg);clip-path:ellipse(75% 100% at 50% 100%);z-index:1}
.phone{width:min(230px,62vw);aspect-ratio:9/16;margin:0 auto;border:8px solid #2b2f45;border-radius:34px;background:linear-gradient(#bfe6ff,#d9f3c4);box-shadow:0 10px 0 rgba(0,0,0,.15);display:grid;place-items:center;text-align:center;padding:14px;overflow:hidden}
.phone img{width:96px;height:96px;border-radius:22px;box-shadow:0 5px 0 rgba(0,0,0,.15)}
.phone p{margin:10px 0 0;font-size:15px;font-weight:600}
.btn{display:inline-block;padding:14px 26px;border-radius:16px;background:var(--btn);color:#fff;font-weight:700;font-size:20px;text-decoration:none;box-shadow:0 5px 0 var(--btn-d);border:0;cursor:pointer;font-family:inherit}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 var(--btn-d)}
.btn.alt{background:#fff;color:var(--wood);box-shadow:0 5px 0 rgba(60,70,120,.2)}
.btn:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #1b6fe0;outline-offset:2px}
.badge{display:inline-flex;align-items:center;gap:10px;background:#d5dbe6;color:var(--ink);border-radius:14px;padding:8px 18px;text-decoration:none;text-align:left;border:2px dashed #8a93a8;cursor:default}
.badge small{display:block;font-size:15px;line-height:1.1}
.badge b{display:block;font-size:18px;line-height:1.15}
.badge.live{background:#1c1f2e;color:#fff;border:2px solid #1c1f2e;cursor:pointer}
section{padding:44px 0}
section h2{font-size:clamp(28px,5vw,38px);color:var(--wood);margin:0 0 6px;text-align:center;line-height:1.15}
.sub{text-align:center;margin:0 auto 26px;max-width:34em}
.alt-bg{background:#e8f6e0}
.grid{display:grid;gap:16px}
.card{background:#fff;border-radius:22px;padding:20px;box-shadow:0 6px 0 var(--line)}
.card h3{margin:10px 0 4px;color:var(--wood);font-size:22px}
.card p{margin:4px 0;font-size:18px}
.clay{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;font-size:32px;box-shadow:inset 0 -6px 0 rgba(0,0,0,.18),inset 0 4px 0 rgba(255,255,255,.45),0 4px 0 rgba(0,0,0,.12)}
.k1{background:#c9f2d9}.k2{background:#ffe7a8}.k3{background:#d9e6ff}.k4{background:#ffd6e0}.k5{background:#ffd9c2}.k6{background:#d6f1ff}.k7{background:#fff0b8}
.step .n{width:36px;height:36px;border-radius:50%;background:var(--gold);color:var(--ink);font-weight:700;display:grid;place-items:center;box-shadow:0 3px 0 #c99a1d}
.gems{display:grid;grid-template-columns:repeat(4,1fr);gap:18px 8px;padding:10px 0 4px}
.gem{display:flex;flex-direction:column;align-items:center;text-align:center;font-weight:600;font-size:16px}
.gem svg{width:62px;height:70px;filter:drop-shadow(0 5px 0 rgba(43,47,69,.22)) drop-shadow(0 0 12px currentColor);transition:transform .15s}
.gem:hover svg{transform:translateY(-4px) scale(1.06)}
.g-ruby{color:#ff4d6d}.g-amber{color:#ffa23a}.g-topaz{color:#ffd93b}.g-peridot{color:#a6e22e}.g-emerald{color:#2ecc71}.g-aqua{color:#2fd9e8}.g-sapphire{color:#4d8bff}.g-amethyst{color:#a75bff}
.gem span{font-weight:500;font-size:15px}
@media(min-width:720px){.gems{grid-template-columns:repeat(8,1fr)}.gem svg{width:72px;height:82px}}
.tag{display:inline-block;font-size:14px;font-weight:700;border-radius:999px;padding:2px 10px;margin-bottom:6px;color:var(--ink)}
.free{background:#c5efb0}.soon{background:#ffe3a3}
.signup{background:linear-gradient(#fff,#f1fbe9);text-align:center}
form.wl{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:14px 0 6px}
form.wl input[type=email]{flex:1 1 240px;max-width:360px;padding:14px 16px;border-radius:14px;border:2px solid #7d8aa3;font-size:18px;font-family:inherit}
.hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.note{font-size:15px;margin:6px auto;max-width:34em}
.msg{min-height:1.4em;font-weight:600;margin-top:6px}.msg.ok{color:#21650f}.msg.err{color:#b3261e}
footer{background:var(--wood);color:#fbeedb;padding:28px 0;font-size:16px}
footer a{color:#fff}
footer .cols{display:flex;gap:16px 28px;flex-wrap:wrap;justify-content:space-between}
footer ul{list-style:none;padding:0;margin:0;display:flex;gap:6px 18px;flex-wrap:wrap}
footer .small{font-size:15px;opacity:.9}
.doc{padding:28px 20px 56px;max-width:760px}
.doc h1{color:var(--wood);font-size:clamp(30px,6vw,42px);margin:8px 0}
.doc h2{color:var(--wood);text-align:left;font-size:24px;margin:26px 0 4px}
.draft{background:#fff3cd;border:2px solid var(--gold);border-radius:12px;padding:12px 14px;font-size:16px}
@media(min-width:720px){
 .hero{padding-top:28px;padding-bottom:90px;text-align:left}
 .hero-grid{grid-template-columns:1.25fr 1fr}
 .hero .lead{margin-left:0}.hero-cta{justify-content:flex-start}
 .g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}.g2{grid-template-columns:repeat(2,1fr)}
}
@media(prefers-reduced-motion:no-preference){
 
 .cloud{animation:drift 60s linear infinite}.c2{animation-duration:90s}@keyframes drift{to{transform:translateX(130vw)}}
}

/* merging: the heart of the game */
.merge{background:linear-gradient(#fff,#f3f9ff)}
.gx{filter:drop-shadow(0 4px 0 rgba(43,47,69,.22)) drop-shadow(0 0 10px currentColor);width:54px;height:62px}
.gx.sm{width:44px;height:50px}.gx.big{width:84px;height:96px}
.eq{display:flex;align-items:center;justify-content:center;gap:14px;margin:6px 0 22px}
.eq .op{font-size:40px;font-weight:700;color:var(--wood)}
.ladder{display:flex;align-items:flex-end;justify-content:center;gap:4px 6px;padding:8px 0}
.rung{display:flex;flex-direction:column;align-items:center;font-size:13px;font-weight:600;min-width:0;flex:1 1 0}
.rung .s1{width:26px;height:30px}.rung .s2{width:32px;height:37px}.rung .s3{width:38px;height:44px}.rung .s4{width:44px;height:50px}.rung .s5{width:50px;height:57px}.rung .s6{width:56px;height:64px}.rung .s7{width:62px;height:71px}.rung .s8{width:70px;height:80px}
.center{text-align:center}.note.center{margin:6px auto 22px}
.mini{display:flex;gap:4px;align-items:center;min-height:54px}
.burst-h{margin:30px 0 12px;color:var(--wood);font-size:24px}
.bursts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:10px}
.bursts li{display:grid;grid-template-columns:44px 1fr;column-gap:12px;align-items:center;background:#fff;border-radius:16px;padding:8px 14px;box-shadow:0 4px 0 var(--line)}
.bursts li svg{grid-row:1/3}.bursts b{color:var(--wood);font-size:18px}.bursts span{font-size:15px}
@media(min-width:720px){.bursts{grid-template-columns:repeat(2,1fr)}.rung{font-size:15px}.gx{width:62px;height:70px}.gx.big{width:100px;height:114px}}
@media(min-width:960px){.bursts{grid-template-columns:repeat(4,1fr)}}

.rung em{display:none;font-style:normal}
@media(min-width:720px){.rung em{display:inline}}

/* feature icons: custom art, drawn larger than the tile */
.clay svg{width:50px;height:50px;filter:drop-shadow(0 3px 0 rgba(43,47,69,.25))}
.clay{width:68px;height:68px}

.btn small{display:block;font-size:14px;font-weight:600;line-height:1.2;opacity:.9}

.ribbon{font-size:18px;padding:8px 18px;letter-spacing:.04em}
.social{list-style:none;margin:0;padding:0;display:flex;gap:10px;flex-wrap:wrap;width:100%}
.social a{display:inline-block;padding:6px 14px;border-radius:999px;background:#fff;color:var(--wood);font-weight:700;text-decoration:none;box-shadow:0 3px 0 var(--line)}

/* aligned with the game: its Fredoka type, glossy candy buttons, white-rimmed cards, its own gem art */
body{font-family:"Fredoka","Nunito","Baloo 2",ui-rounded,"Segoe UI Rounded","Trebuchet MS",system-ui,sans-serif}
.f{font-family:"Fredoka","Arial Rounded MT Bold",Arial,sans-serif}
.logo-wrap{display:flex;justify-content:center;margin:2px 0 0}
.logo{width:min(250px,64vw);height:auto;overflow:visible;filter:drop-shadow(0 6px 8px rgba(40,50,110,.25))}
.logo text{font-family:"Fredoka","Arial Rounded MT Bold",Arial,sans-serif}
@media(min-width:760px){.logo-wrap{justify-content:flex-start}.logo{width:300px}}
.btn{background:linear-gradient(#7dff8f,#2fc84e 55%,#1d9c3a);border:3px solid #fff;box-shadow:0 6px 0 #17782e,0 10px 16px rgba(20,60,30,.3);text-shadow:0 2px 0 rgba(23,100,40,.55);border-radius:20px}
.btn:active{transform:translateY(3px);box-shadow:0 3px 0 #17782e}
.btn small{text-shadow:none;font-weight:600}
.card{background:linear-gradient(#fff,#eef2ff);border:3px solid #fff;box-shadow:0 5px 0 rgba(60,70,120,.2),0 10px 18px rgba(60,70,120,.1);border-radius:22px}
.gx{width:56px;height:54px;filter:drop-shadow(0 3px 0 rgba(43,47,69,.18)) drop-shadow(0 0 8px currentColor)}
.gx.sm{width:46px;height:44px}.gx.big{width:96px;height:92px}
.rung .s1{width:30px;height:29px}.rung .s2{width:36px;height:35px}.rung .s3{width:42px;height:40px}.rung .s4{width:48px;height:46px}.rung .s5{width:54px;height:52px}.rung .s6{width:60px;height:58px}.rung .s7{width:66px;height:64px}.rung .s8{width:74px;height:71px}
.bursts li{grid-template-columns:50px 1fr;border:3px solid #fff;background:linear-gradient(#fff,#f4f6ff);border-radius:18px;box-shadow:0 4px 0 rgba(60,70,120,.18)}
@media(min-width:720px){.gx{width:64px;height:62px}.gx.big{width:112px;height:108px}}
.gx{width:68px;height:66px}.gx.sm{width:54px;height:52px}.gx.big{width:112px;height:108px}
.rung .s1{width:38px;height:37px}.rung .s2{width:44px;height:42px}.rung .s3{width:50px;height:48px}.rung .s4{width:56px;height:54px}.rung .s5{width:62px;height:60px}.rung .s6{width:68px;height:66px}.rung .s7{width:74px;height:71px}.rung .s8{width:82px;height:79px}
@media(max-width:560px){.gx{width:52px;height:50px}.gx.big{width:84px;height:81px}.rung .s1{width:22px;height:21px}.rung .s2{width:26px;height:25px}.rung .s3{width:30px;height:29px}.rung .s4{width:34px;height:33px}.rung .s5{width:38px;height:37px}.rung .s6{width:42px;height:40px}.rung .s7{width:46px;height:44px}.rung .s8{width:50px;height:48px}}
@media(min-width:720px){.gx{width:76px;height:73px}.gx.big{width:128px;height:123px}}

/* two looks */
.looks{background:linear-gradient(#f3f9ff,#fff)}
.grid.g2{display:grid;gap:18px;grid-template-columns:1fr}
@media(min-width:720px){.grid.g2{grid-template-columns:1fr 1fr}}
.look{border-radius:24px;padding:22px 22px 20px;border:3px solid #fff;box-shadow:0 6px 0 rgba(60,70,120,.2),0 12px 20px rgba(60,70,120,.12)}
.look h3{margin:8px 0 4px;font-size:26px}.look p{margin:0}
.look.bright{background:linear-gradient(#bfe8ff,#d9f6c4);color:var(--ink)}.look.bright h3{color:var(--wood)}
.look.dark{background:linear-gradient(#3a3f2f,#171d12);color:#e8efd0;border-color:#59563e;box-shadow:0 6px 0 #0c1008,0 12px 20px rgba(0,0,0,.3)}.look.dark h3{color:#d9f070}
.gems-row{display:flex;gap:6px;min-height:76px;align-items:flex-end}
.look .gx{width:68px;height:66px}
.vet-h{margin:34px 0 10px;color:var(--wood);font-size:26px}
.vets{list-style:none;margin:0 auto;padding:0;max-width:760px;display:grid;gap:10px}
.vets li{background:#fff;border:3px solid #fff;border-radius:18px;padding:10px 16px;box-shadow:0 4px 0 rgba(60,70,120,.18);background:linear-gradient(#fff,#f4f6ff)}
.vets b{color:var(--wood)}

/* the game's own icons */
.ico{width:52px;height:52px;overflow:visible;filter:drop-shadow(0 3px 2px rgba(30,20,90,.3))}
.ico.sm{width:50px;height:50px}
.clay.mosaic{display:grid;grid-template-columns:repeat(3,1fr);gap:0;padding:4px}
.clay.mosaic .mini{width:19px;height:19px}
.stepvis{display:flex;align-items:center;gap:4px;margin:8px 0 2px;min-height:54px}
.stepvis .op{font-weight:700;font-size:24px;color:var(--wood);margin:0 2px}
.stepvis .gx{width:46px;height:44px}
@media(min-width:760px){.logo{width:240px}}

/* hero phone: the two looks cross-fade; still frame for reduced motion */
.phone{padding:0;position:relative;display:block;background:#222}
.phone .shot{position:absolute;inset:0;width:100%;height:100%;border-radius:0;box-shadow:none;object-fit:cover;object-position:top}
.phone .shot{opacity:0;animation:fadeLook 15s ease-in-out infinite}
.phone .s1{animation-delay:0s}.phone .s2{animation-delay:5s}.phone .s3{animation-delay:10s}
@keyframes fadeLook{0%{opacity:0}5%,28%{opacity:1}34%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.phone .shot{animation:none}.phone .s1{opacity:1}}
.lookshot{display:block;width:100%;height:230px;object-fit:cover;object-position:50% 12%;border-radius:16px;border:3px solid #fff;margin-bottom:8px;box-shadow:0 4px 0 rgba(0,0,0,.18)}
.phone{aspect-ratio:9/16;width:min(280px,70vw)}
.doc table.datamap{width:100%;border-collapse:collapse;font-size:15px;margin:12px 0}
.doc .datamap th,.doc .datamap td{border:1px solid rgba(0,0,0,.15);padding:8px 10px;text-align:left;vertical-align:top}
.doc .datamap th{background:#fff3cd}
@media (max-width:640px){.doc .datamap{font-size:14px}}
