/* Bonodoku site: the game's own palette and chunky, cozy UI. */
:root {
  --ink: #3e3a7a;
  --body: #4a3f6b;
  --soft: #5e5480;
  --cream: #fff8ee;
  --peach: #fbe7d6;
  --butter: #f8cd4f;
  --butter-top: #ffe27a;
  --butter-deep: #e9ae2b;
  --lavender: #b9aeeb;
  --lavender-top: #c9bfff;
  --lavender-deep: #8f80d6;
  --mint: #b8edc8;
  --pink: #ffc6d6;
  --card: rgba(255, 255, 255, .92);
  --radius: 26px;
  --font: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--font); color: var(--body); line-height: 1.55; font-size: 17px;
  background: var(--peach) linear-gradient(180deg, #fdf0e3 0%, #fbe3d0 100%) fixed;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 5vw, 44px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 12px; z-index: 10; }
.skip:focus { left: 16px; }

/* Logo: deep ink with a white outline, like the game title. */
.logo { font-weight: 900; color: var(--ink); text-decoration: none; letter-spacing: -.01em;
  text-shadow: 0 0 0 #fff, 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff, 0 6px 14px rgba(62,58,122,.22); }

/* Header */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); background: rgba(253, 240, 227, .78); border-bottom: 1px solid rgba(62,58,122,.08); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.top .logo { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.top .logo img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 6px rgba(62,58,122,.2); }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.top nav a { text-decoration: none; font-weight: 800; color: var(--body); font-size: 16px; }
.top nav a.btn { color: #5a3d00; }
@media (max-width: 720px) { .top nav a:not(.btn) { display: none; } }

/* Chunky game buttons */
.btn { --top: var(--butter-top); --face: var(--butter); --edge: var(--butter-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px;
  border-radius: 18px; font-weight: 900; font-size: 18px; color: #5a3d00; text-decoration: none; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--top), var(--face)); box-shadow: 0 5px 0 var(--edge), 0 10px 18px rgba(62,58,122,.18);
  transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge), 0 4px 8px rgba(62,58,122,.18); }
.btn.small { min-height: 40px; padding: 6px 16px; font-size: 16px; border-radius: 14px; }
.btn.lavender { --top: var(--lavender-top); --face: var(--lavender); --edge: var(--lavender-deep); color: #2c2560; }
.btn.cream { --top: #fff; --face: #fff6e8; --edge: #e3d3bd; color: var(--ink); }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; min-height: 60px; padding: 10px 20px; border-radius: 16px;
  background: #1d1a3a; color: #fff; text-decoration: none; box-shadow: 0 5px 0 #0c0a1f, 0 10px 20px rgba(29,26,58,.25); }
.store svg { width: 28px; height: 28px; flex: none; fill: #fff; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 800; font-size: 19px; }
.store small { font-size: 12px; font-weight: 700; opacity: .8; letter-spacing: .02em; }
.store[aria-disabled="true"] { cursor: default; }
.soon a { display: inline-block; padding: 8px 0; }
.soon { display: inline-block; margin-top: 12px; font-weight: 800; color: var(--soft); font-size: 15px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url(/img/bg-cozy.webp) center 30% / cover no-repeat; opacity: .55; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, #fbe7d6); z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding: 56px 0 72px; }
.hero h1 { font-size: clamp(54px, 9vw, 104px); margin-bottom: .1em; }
.hero .tag { font-size: clamp(22px, 3.2vw, 30px); font-weight: 900; color: var(--body); margin-bottom: .6em; line-height: 1.25; }
.hero .lede { font-size: 19px; max-width: 34em; }
.phone { position: relative; justify-self: center; width: min(330px, 80vw); }
.phone .frame { border-radius: 42px; padding: 12px; background: #fff; box-shadow: 0 30px 60px rgba(62,58,122,.25), 0 0 0 1px rgba(62,58,122,.08); }
.phone .frame img { border-radius: 32px; }
.phone .buddy { position: absolute; width: 44%; left: -26%; bottom: 4%; filter: drop-shadow(0 12px 18px rgba(62,58,122,.22)); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .hero .lede { margin-inline: auto; }
  .hero .stores { justify-content: center; }
  .phone .buddy { left: -14%; }
}

/* Sections */
section { padding: 72px 0; }
.center { text-align: center; }
.kicker { display: inline-block; font-weight: 900; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #6b5fc4;
  background: rgba(255,255,255,.75); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: 0 6px 0 rgba(62,58,122,.07), 0 14px 30px rgba(62,58,122,.08); }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }

/* How to play */
.play { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .play { grid-template-columns: 1fr; } }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rules li { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border-radius: 22px; padding: 16px 18px; box-shadow: 0 4px 0 rgba(62,58,122,.07); }
.rules .n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #5a3d00;
  background: linear-gradient(var(--butter-top), var(--butter)); box-shadow: 0 3px 0 var(--butter-deep); }
.rules b { color: var(--ink); display: block; font-size: 19px; }
.board { width: min(420px, 100%); margin-inline: auto; aspect-ratio: 1; display: grid; grid-template-columns: repeat(5, 1fr);
  border: 5px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 14px 30px rgba(62,58,122,.18); background: #fff; }
.board div { position: relative; border: 1px solid rgba(62,58,122,.12); }
.board img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.r-p { background: #f6c9c9; } .r-b { background: #bcd4f2; } .r-l { background: #ccc6f2; } .r-y { background: #f5e6a7; } .r-g { background: #b9e3c6; }
.board .wt { border-top: 4px solid var(--ink); } .board .wl { border-left: 4px solid var(--ink); }
.board .wb { border-bottom: 4px solid var(--ink); } .board .wr { border-right: 4px solid var(--ink); }
.caption { text-align: center; font-weight: 800; color: var(--soft); margin-top: 14px; font-size: 15px; }

/* Features */
.feature img { width: 96px; height: 96px; margin-bottom: 10px; }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; }
.costumes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 26px; }
.costumes img { width: 84px; height: 84px; filter: drop-shadow(0 6px 8px rgba(62,58,122,.18)); }

/* Screenshots */
.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 26px; margin-inline: -16px; }
.shots figure { flex: 0 0 min(250px, 70vw); margin: 0; scroll-snap-align: center; }
.shots img { border-radius: 30px; border: 8px solid #fff; box-shadow: 0 16px 30px rgba(62,58,122,.18); }
.shots figcaption { text-align: center; font-weight: 800; margin-top: 10px; color: var(--body); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 20px; padding: 4px 22px; box-shadow: 0 4px 0 rgba(62,58,122,.07); }
.faq summary { cursor: pointer; list-style: none; font-weight: 900; color: var(--ink); font-size: 19px; padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--lavender-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 12px; }

/* Download band */
.band { background: linear-gradient(180deg, #e9e3ff, #f6f1ff); border-radius: 36px; padding: 48px 28px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.band img { width: 190px; }
@media (max-width: 720px) { .band { grid-template-columns: 1fr; text-align: center; } .band img { margin-inline: auto; } .band .stores { justify-content: center; } }

/* Footer */
footer { padding: 40px 0 56px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { font-weight: 800; display: inline-block; padding: 10px 2px; }

/* Legal and support pages */
.doc { max-width: 820px; margin: 40px auto 20px; background: var(--card); border-radius: 30px; padding: clamp(24px, 5vw, 56px); box-shadow: 0 8px 0 rgba(62,58,122,.06), 0 18px 40px rgba(62,58,122,.08); }
.doc h1 { font-size: clamp(34px, 6vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 1.8em; }
.doc h3 { font-size: 19px; margin-top: 1.3em; }
.doc .meta { color: var(--soft); font-weight: 700; }
.doc li { margin-bottom: .5em; }
.doc .caps { text-transform: uppercase; font-size: 15px; }
.doc .note { background: #f3efff; border-radius: 18px; padding: 16px 20px; }
.toc { columns: 2; gap: 24px; padding-left: 20px; }
@media (max-width: 600px) { .toc { columns: 1; } }
.notfound { text-align: center; padding: 80px 0; }
.notfound img { width: 220px; margin: 0 auto 20px; }

.spaced { margin-top: 30px; }
.flat { margin: 0; }
