/* BoumBlocks website — same identity as the game: warm sky, slow sun rays, ink outlines, hard shadows. */
@font-face { font-family: "Bagel"; src: url(/fonts/Bagel.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url(/fonts/Fredoka-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url(/fonts/Fredoka-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
:root { --ink: #2a1650; --sun: #ffd23f; --tan: #ff8a1f; --tomato: #ff4d4d; --bubble: #ff5fa2; --lagoon: #19c3b2; --sky: #3ea6ff; --grape: #7b5cff; --mint: #2fd67b; --cream: #fff6e5; }
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; color: var(--ink); background: linear-gradient(180deg, #ff9a3c 0%, #ffc04a 45%, #ffd84a 100%); min-height: 100vh; overflow-x: hidden; position: relative; }
.rays { position: fixed; inset: -50vmax; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,244,214,.18) 0deg 10deg, transparent 10deg 20deg); animation: spin 120s linear infinite; pointer-events: none; z-index: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rays { animation: none; } }
header, main, footer { position: relative; z-index: 1; }
a { color: var(--ink); }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: "Bagel"; font-size: 28px; color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.brand img { border-radius: 14px; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.top nav { display: flex; gap: 10px; }
.top nav a { font-weight: 700; text-decoration: none; background: var(--cream); border: 4px solid var(--ink); border-radius: 999px; padding: 6px 16px; box-shadow: 0 4px 0 var(--ink); }
main { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }
h1, h2 { font-family: "Bagel", system-ui, sans-serif; font-weight: 400; line-height: 1.05; margin: .2em 0 .4em; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 30px 0 60px; }
.hero .logo { width: min(620px, 100%); height: auto; filter: drop-shadow(0 10px 0 rgba(42,22,80,.25)); }
.hero h1 { font-size: clamp(36px, 5vw, 62px); color: #fff; -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--ink); }
.hero h1 em { font-style: normal; color: var(--sun); }
.lead { font-size: 21px; line-height: 1.45; max-width: 560px; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 10px; }
.store { display: inline-flex; align-items: center; gap: 12px; background: #111; color: #fff; text-decoration: none; padding: 10px 22px 10px 16px; border-radius: 18px; border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); font-weight: 700; font-size: 22px; transition: transform .12s; }
.store:hover { transform: translateY(-3px) rotate(-1deg); }
.store:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.store small { display: block; font-size: 12px; font-weight: 600; opacity: .85; }
.store.soon { opacity: .85; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badges span { background: var(--cream); border: 4px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 700; box-shadow: 0 4px 0 var(--ink); }
.badges span:nth-child(1) { background: var(--mint); color: #fff; }
.phone { justify-self: center; position: relative; width: min(390px, 82vw); aspect-ratio: 390/844; border: 12px solid var(--ink); border-radius: 54px; background: var(--ink); box-shadow: 0 18px 0 rgba(42,22,80,.35); transform: rotate(3deg); animation: teeter 6s ease-in-out infinite; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 42px; display: block; }
.phone.small { width: min(320px, 74vw); }
@keyframes teeter { 0%,100% { transform: rotate(3deg); } 50% { transform: rotate(-2deg); } }
.feat { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; margin: 30px 0; background: var(--cream); border: 6px solid var(--ink); border-radius: 44px; box-shadow: 0 12px 0 var(--ink); padding: 36px; }
.feat.rev { grid-template-columns: 1.2fr .8fr; }
.feat.rev .phone { order: 2; }
.feat h2 { font-size: clamp(30px, 4vw, 48px); color: var(--tan); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.feat p { font-size: 21px; line-height: 1.5; }
.feat:nth-of-type(3) h2 { color: var(--bubble); } .feat:nth-of-type(4) h2 { color: var(--tomato); } .feat:nth-of-type(5) h2 { color: var(--lagoon); } .feat:nth-of-type(6) h2 { color: var(--grape); }
.cta { text-align: center; padding: 50px 0; }
.cta h2 { font-size: clamp(40px, 6vw, 72px); color: #fff; -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--ink); }
.cta .stores { justify-content: center; }
.pivo-wrap { width: 160px; margin: 0 auto; animation: hop 2.4s ease-in-out infinite; }
.pivo { width: 100%; height: auto; display: block; }
@keyframes hop { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.card { background: var(--cream); border: 6px solid var(--ink); border-radius: 40px; box-shadow: 0 12px 0 var(--ink); padding: clamp(22px, 5vw, 48px); max-width: 860px; margin: 24px auto; font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.card h1 { font-size: clamp(34px, 5vw, 52px); color: var(--tan); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; }
.card h2 { font-size: 26px; color: var(--grape); margin-top: 1.2em; }
.muted { opacity: .7; }
.btn { display: inline-block; background: var(--mint); color: #fff; text-decoration: none; font-family: "Bagel"; font-weight: 400; padding: 8px 20px; border-radius: 20px; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.btn.big { font-size: 30px; padding: 14px 34px; margin: 10px 0 6px; }
details { background: #fff; border: 4px solid var(--ink); border-radius: 22px; padding: 12px 18px; margin: 12px 0; box-shadow: 0 5px 0 var(--ink); }
summary { font-weight: 700; cursor: pointer; }
code { background: #fff; padding: 2px 8px; border-radius: 8px; border: 2px solid var(--ink); }
.invite { text-align: center; }
.invite .stores { justify-content: center; }
.code { font-size: 26px; } .code b { font-family: "Bagel"; font-weight: 400; color: var(--grape); letter-spacing: 2px; }
footer { text-align: center; padding: 30px 16px 40px; font-weight: 700; }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 10px; }
@media (max-width: 860px) {
  .hero, .feat, .feat.rev { grid-template-columns: 1fr; text-align: center; }
  .feat.rev .phone { order: 0; }
  .hero { padding-top: 10px; gap: 30px; }
  .lead { margin: 0 auto; }
  .stores, .badges { justify-content: center; }
  .feat { padding: 26px 18px; gap: 26px; }
  .top nav a { padding: 4px 12px; font-size: 15px; }
  .brand span { font-size: 22px; }
}
