/* Color Meow Maze site: colors and fonts from the game (CatSkin). */
:root {
  --bg: #FDF6EC;
  --surface: #FFFFFF;
  --ink: #4B3226;
  --ink-soft: #8A7366;
  --line: #EFE3D3;
  --sky-soft: #EAF3FC;
  --lavender-soft: #F2EDFB;
  --sage-soft: #EDF6EA;
  --butter-soft: #FFF7DF;
  --pink-soft: #FDEDF1;
  --accent: #FF8FAB;
  --accent-ink: #B8375A;
  --accent-alt: #FFA95E;
  --strawberry: #F7A1B5;
  --butter: #F7DE7C;
  --mint: #93DCC6;
  --sky: #9CC3F2;
  --lavender: #C6A8EC;
  --peach: #F8AE8A;
  --radius: 22px;
  --shadow: 0 6px 0 rgba(75, 50, 38, .08), 0 18px 40px -18px rgba(75, 50, 38, .25);
  --max: 1080px;
}

* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  /* Rounded-square texture over pastel bands, like the game's level map. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Crect x='8' y='8' width='72' height='72' rx='18' fill='none' stroke='%23b08a6a' stroke-opacity='.12' stroke-width='3'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--sky-soft) 0%, var(--lavender-soft) 22%, var(--sage-soft) 45%, var(--butter-soft) 68%, var(--pink-soft) 100%);
  color: var(--ink);
  font: 400 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: "Fredoka", "Nunito", system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 10px; z-index: 10; }

/* Header */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.1rem; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 0 rgba(75, 50, 38, .15); }
.nav { display: flex; gap: 18px; font-weight: 700; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent-ink); }
@media (max-width: 640px) { .nav .opt { display: none; } }

/* Hero */
.hero { padding: 28px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-logo { width: min(360px, 80%); margin: 0 0 18px -6px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.lead strong { color: var(--ink); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 16px;
  border-radius: 16px; background: var(--ink); color: var(--bg); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store small { display: block; font-size: .72rem; opacity: .8; line-height: 1.1; }
.store span { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.12rem; line-height: 1.15; }
.store.soon { opacity: .55; pointer-events: none; }
.store.mine { outline: 3px solid var(--accent); outline-offset: 3px; }
.note { font-size: .92rem; color: var(--ink-soft); }
.board-card { position: relative; background: var(--surface); border-radius: 32px; padding: 22px; box-shadow: var(--shadow); }
.board-card svg { width: 100%; height: auto; display: block; }
.board-card .rule {
  margin: 14px 0 0; text-align: center; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem;
}
.float { position: absolute; width: 58px; animation: bob 3.2s ease-in-out infinite; }
.float.a { top: -22px; left: -18px; }
.float.b { bottom: 40px; right: -20px; animation-delay: -1.4s; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .hero-logo { margin-left: auto; margin-right: auto; }
  .hero-text { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .board-card { max-width: 440px; margin: 0 auto; }
  .float { width: 48px; }
  .float.a { left: -8px; }
  .float.b { right: -8px; }
}

/* Sections */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 34px; }
.section-head p { color: var(--ink-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px;
  font: 600 1.2rem "Fredoka", sans-serif; color: var(--ink); background: var(--c, var(--butter));
}
.step p { margin: 0; color: var(--ink-soft); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--c, var(--mint)); margin-bottom: 12px; }
.feature .ico img { width: 40px; height: 40px; object-fit: contain; }
.feature .ico svg { width: 32px; height: 32px; stroke: #4B3226; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.feature .ico svg .lens { fill: #4B3226; }
.feature .ico svg .shine { stroke: #FFFFFF; stroke-width: 1.2; }
.feature p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps, .features { grid-template-columns: 1fr; } }

.costumes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; max-width: 760px; margin: 0 auto; }
.costumes figure { margin: 0; background: var(--surface); border-radius: 18px; padding: 12px 8px 8px; box-shadow: var(--shadow); text-align: center; }
.costumes img { width: 72px; height: 60px; object-fit: contain; margin: 0 auto; }
.costumes figcaption { font-size: .8rem; font-weight: 700; color: var(--ink-soft); margin-top: 4px; }
.costumes .more { display: flex; flex-direction: column; justify-content: center; background: var(--pink-soft); box-shadow: none; border: 2px dashed var(--strawberry); }
.costumes .more span { font: 600 2.2rem/60px "Fredoka", sans-serif; color: var(--accent-ink); height: 60px; }
@media (max-width: 640px) { .costumes { grid-template-columns: repeat(3, 1fr); } }

.facts { max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 24px; }
.facts dl { margin: 0; display: grid; grid-template-columns: 11em 1fr; }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-weight: 800; }
.facts dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 560px) { .facts dl { grid-template-columns: 1fr; } .facts dt { border: 0; padding-bottom: 0; } }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.4rem/1 "Fredoka", sans-serif; color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 6px; }

.cta { text-align: center; }
.cta img { width: 180px; margin: 0 auto 12px; }
.cta .stores { justify-content: center; }

/* Footer */
.site-footer { padding: 34px 0 44px; border-top: 2px dashed var(--line); font-size: .95rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--ink-soft); }

/* Legal pages */
.legal { max-width: 780px; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: 34px clamp(18px, 5vw, 48px); margin: 12px auto 56px; }
.legal h1 { font-size: clamp(1.8rem, 4.4vw, 2.5rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .meta { color: var(--ink-soft); font-size: .95rem; }
.legal .summary { background: var(--bg); border-radius: 16px; padding: 16px 20px; margin: 20px 0; }
.legal .summary ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.legal table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--bg); }
