/* Doodle Musou site: notebook paper, ink lines, orange/blue actions, a little yellow highlighter (store/STORE_BRIEF.md 6.1). */
:root {
  --paper: #f7f2e6; --rule: #d3e1f5; --margin: #f2b8b8; --ink: #17171f; --soft: #4b4b58; --card: #fffdf7;
  --orange: #ff6b47; --blue: #3f8cff; --yellow: #ffde59; --grid: #e4e9f2; --shadow: rgba(23, 23, 31, .9);
  --body: "Jua", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --head: "Gaegu", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --fs: 18px; --lh: 1.6;
  color-scheme: light;
}
.l-ja { --body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
        --head: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif; --fs: 16.5px; --lh: 1.75; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1b21; --rule: #262e3d; --margin: #4b2a31; --ink: #f2efe6; --soft: #b8b6c3; --card: #24242c;
    --grid: #2d3340; --shadow: rgba(0, 0, 0, .55); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1b1b21; --rule: #262e3d; --margin: #4b2a31; --ink: #f2efe6; --soft: #b8b6c3; --card: #24242c;
  --grid: #2d3340; --shadow: rgba(0, 0, 0, .55); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: var(--fs); line-height: var(--lh);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, transparent 46px, var(--margin) 46px, var(--margin) 48px, transparent 48px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 33px, var(--rule) 33px, var(--rule) 34px);
  overflow-x: hidden;
}
@media (max-width: 640px) { body { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, var(--rule) 33px, var(--rule) 34px); } }
a { color: var(--blue); text-underline-offset: 3px; }
img, video, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; text-wrap: balance; }
.l-ko { word-break: keep-all; overflow-wrap: anywhere; }
.l-ja { line-break: strict; }
.l-ja h1, .l-ja h2, .l-ja h3 { font-weight: 800; letter-spacing: .01em; }
p { margin: .4em 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px 0 64px; } }

/* highlighter band, slightly wonky like the store captions */
.hl { background: linear-gradient(transparent 38%, var(--yellow) 38%, var(--yellow) 90%, transparent 90%);
      padding: 0 .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; color: inherit; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hl { background: linear-gradient(transparent 38%, rgba(255, 222, 89, .38) 38%, rgba(255, 222, 89, .38) 90%, transparent 90%); } }

/* top bar */
.top { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; max-width: 1120px; margin: 0 auto; padding: 12px 16px; }
@media (min-width: 700px) { .top { padding: 14px 28px 14px 64px; } }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.15em; }
.brand img { border-radius: 9px; border: 2px solid var(--ink); }
.nav { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: .9em; }
.nav a { color: var(--ink); text-decoration: none; border-bottom: 2px dashed transparent; }
.nav a:hover { border-bottom-color: var(--orange); }
.langs { margin-left: auto; display: flex; gap: 6px; }
.langs a { font-size: 15px; color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: 10px; padding: 1px 9px; background: var(--card); }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .nav { display: none; } }

/* buttons & badges */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 8px 20px; border: 3px solid var(--ink); border-radius: 16px;
       background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: 1.05em; text-decoration: none; box-shadow: 3px 4px 0 var(--shadow); cursor: pointer; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 5px 0 var(--shadow); }
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.btn.primary { background: var(--orange); color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, .shots:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badges.center { justify-content: center; }
.badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge img { height: 54px; width: auto; }
.fine { color: var(--soft); font-size: .8em; margin: .3em 0; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; padding-top: 18px; padding-bottom: 28px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.eyebrow { display: inline-block; font-size: .85em; font-weight: 700; color: var(--paper); background: var(--ink); border-radius: 8px; padding: 1px 10px; margin: 0 0 10px; transform: rotate(-1deg); }
.logo { font-size: clamp(56px, 10vw, 104px); font-weight: 700; letter-spacing: .02em; margin: 0 0 6px; line-height: 1.1; }
.l-ja .logo { font-size: clamp(46px, 8vw, 86px); }
.l-en .logo { font-size: clamp(44px, 6.6vw, 80px); white-space: nowrap; }
.l-en .logo.small { font-size: 40px; }
.logo .hl { padding: 0 .12em; }
.logo .last { position: relative; display: inline-block; }
.crown { position: absolute; width: .5em; height: .34em; left: 52%; top: -.2em; transform: translateX(-50%) rotate(12deg); overflow: visible; }
.crown path { fill: var(--yellow); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.logo.small { font-size: 46px; margin: 4px 0 0; }
.lead { font-family: var(--head); font-weight: 700; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.2; margin: 6px 0 10px; }
.l-ja .lead { font-weight: 800; font-size: clamp(26px, 3.8vw, 40px); }
.sub { color: var(--soft); max-width: 34em; }
.cta { display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: center; margin: 18px 0 6px; }
.hero-media { margin: 0; width: 100%; text-align: center; }
.hero-media figcaption { font-size: .78em; color: var(--soft); margin-top: 10px; }

.phone { position: relative; width: min(100%, 330px); aspect-ratio: 480 / 1040; margin: 0 auto; border: 5px solid var(--ink); border-radius: 34px;
         background: #f7f2e6; overflow: hidden; box-shadow: 8px 10px 0 var(--shadow); transform: rotate(1.2deg); }
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.phone.small { width: min(100%, 260px); transform: none; }
.vbtn { position: absolute; white-space: nowrap; font: inherit; font-size: 15px; font-weight: 700; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink);
        cursor: pointer; box-shadow: 2px 3px 0 var(--shadow); display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; }
.vbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vbtn svg path:first-child { fill: currentColor; }
.vbtn.sound { right: 12px; bottom: 12px; }
.vbtn.sound[aria-pressed="false"] .w { opacity: .25; }
.vbtn.play { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 18px; padding: 10px 18px; background: var(--orange); color: #fff; }

/* sections */
.block { padding-top: 56px; padding-bottom: 8px; }
.block h2 { font-size: clamp(32px, 4.6vw, 46px); font-weight: 700; }
.l-ja .block h2 { font-size: clamp(25px, 3.6vw, 36px); }
.h-sub { color: var(--soft); margin: 8px 0 22px; }
.aside { color: var(--soft); font-size: .85em; margin-top: 16px; max-width: 46em; }
.card { background: var(--card); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 4px 5px 0 var(--shadow); }
.card h3 { font-size: 1.5em; font-weight: 700; }
.l-ja .card h3 { font-size: 1.15em; }
.card p { margin: .3em 0 0; }

.media { position: relative; aspect-ratio: 16 / 10; border-radius: 13px; overflow: hidden; background: #efe8d6; border: 2px solid var(--ink); }
.media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.grid-paper { background-color: #fff;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grid-paper { background-color: #fbfaf6; --grid: #e4e9f2; } }
:root[data-theme="dark"] .grid-paper { background-color: #fbfaf6; --grid: #e4e9f2; }

/* doodles: the capture bot's real strokes, drawn in when scrolled into view */
.doodle { display: block; width: 100%; height: 100%; }
.doodle path { fill: none; stroke: #17171f; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .doodle path { stroke-dashoffset: 1; }
.js .doodle.drawn path { animation: draw .9s cubic-bezier(.5, .1, .4, 1) forwards; animation-delay: calc(var(--i) * .55s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .js .doodle path { stroke-dashoffset: 0; animation: none !important; } }
.draw-box { display: grid; place-items: center; }
.draw-box .doodle { width: auto; height: 86%; }
.note { position: absolute; left: 10px; bottom: 10px; width: 38%; max-width: 150px; aspect-ratio: 1; border: 2px solid #17171f; border-radius: 8px;
        box-shadow: 2px 3px 0 rgba(23, 23, 31, .35); transform: rotate(-4deg); padding: 6%; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.step { position: relative; padding: 14px 14px 18px; }
.step .media { margin-bottom: 12px; }
.num { position: absolute; z-index: 2; top: -14px; left: -10px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
       background: var(--orange); color: #fff; border: 3px solid var(--ink); font-family: "Gaegu", sans-serif; font-weight: 700; font-size: 26px; transform: rotate(-8deg); }
.step:nth-child(2) .num { background: var(--blue); }
.step:nth-child(3) .num { background: var(--yellow); color: #17171f; }

/* compare */
.cmp-row { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
@media (max-width: 760px) { .cmp-row { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 520px; } }
.cmp, .trait, .weapon { margin: 0; padding: 12px 12px 16px; }
.cmp figcaption, .trait figcaption, .weapon figcaption { padding: 10px 4px 0; }
.vs { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) rotate(-8deg); font-family: "Gaegu", sans-serif; font-weight: 700; font-size: 34px;
      background: var(--yellow); color: #17171f; border: 3px solid var(--ink); border-radius: 50%; width: 64px; height: 64px; display: grid; place-items: center; z-index: 2; }
@media (max-width: 760px) { .vs { display: none; } }

.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .row3 { grid-template-columns: minmax(0, 1fr); } }
.weapon h3 small { font-size: .62em; font-weight: 400; color: var(--soft); }
.weapon .sp { color: var(--soft); font-size: .88em; }
.weapon .sp b { color: var(--orange); }
.locked { margin-top: 22px; padding: 14px 18px; border-style: dashed; box-shadow: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.locked h3 { font-size: 1.05em; }
.locked ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
.locked li span { color: var(--soft); font-size: .85em; }

/* split sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.framed { box-shadow: 6px 8px 0 var(--shadow); border-width: 3px; transform: rotate(-1deg); }
.tag-new { display: inline-block; margin: 0 0 8px; padding: 0 12px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: .85em; border: 2px solid var(--ink); }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin: 6px 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }

.point { padding: 18px 18px 20px; }
.ico { display: block; width: 50px; height: 50px; margin-bottom: 8px; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.point:nth-child(1) .ico svg { stroke: var(--orange); } .point:nth-child(2) .ico svg { stroke: var(--blue); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; }
.chips li { border: 2px solid var(--ink); background: var(--card); border-radius: 999px; padding: 3px 14px; font-size: .9em; }
.chips li:nth-child(3n+1) { border-color: var(--orange); } .chips li:nth-child(3n+2) { border-color: var(--blue); }

/* screenshots: 4x2 grid inside the content column; a snap strip (next one peeking) on narrower screens */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.shots a { display: block; }
.shots img { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 18px; background: #fff; display: block; box-shadow: 3px 4px 0 var(--shadow); }
@media (max-width: 959px) {
  .shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px -16px 0; padding: 4px 16px 18px; scroll-padding: 0 16px; }
  .shots > img, .shots > a { flex: 0 0 min(42%, 260px); min-width: 0; scroll-snap-align: start; }
}
@media (min-width: 700px) and (max-width: 959px) { .shots { margin: 18px -28px 0 -64px; padding: 4px 28px 18px 64px; scroll-padding: 0 28px 0 64px; } }
@media (max-width: 520px) { .shots > img, .shots > a { flex-basis: 62%; } }

/* web demo */
.phone.demo { transform: rotate(-1deg); }
.phone iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center;
          border-radius: 28px; }
.poster .doodle { width: 46%; height: auto; margin-bottom: 8px; }
.poster .fine { color: #17171f; background: rgba(255, 255, 255, .85); border-radius: 8px; padding: 0 8px; }

/* trailer (YouTube, loaded on click) */
.yt { position: relative; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; max-width: 880px; }
.yt iframe, .yt-btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-btn { background: #000 center / cover; cursor: pointer; font: inherit; }
.yt-btn span { display: inline-block; background: var(--orange); color: #fff; border: 3px solid #17171f; border-radius: 16px; padding: 8px 18px; font-weight: 700; font-size: 1.1em; }

/* final */
.final { text-align: center; padding-top: 64px; padding-bottom: 40px; }
.final .app-icon { border-radius: 22px; border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--shadow); }
.final h2 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 18px; }
.l-ja .final h2 { font-size: clamp(22px, 3.2vw, 30px); }
.foot { padding: 28px 0 44px; color: var(--soft); font-size: .8em; border-top: 2px dashed var(--rule); text-align: center; }
.foot p { font-size: .85em; margin-top: 8px; }

/* press */
.press-head { padding-top: 16px; max-width: 820px; }
.press-head h2 { font-size: 34px; margin: 4px 0; }
.dl { padding: 18px 20px; margin: 16px 0; }
.dl-list { margin: 10px 0 0; padding-left: 22px; }
.press-media { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; margin: 28px 0; }
@media (max-width: 760px) { .press-media { grid-template-columns: minmax(0, 1fr); } }
.press-media figure { margin: 0; }
.press-video figcaption { font-size: .85em; color: var(--soft); text-align: center; margin-top: 10px; }
.press-key { position: relative; }
.press-key img:first-child { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 16px; display: block; }
.press-icon { width: 120px; height: 120px; margin-top: 16px; border-radius: 26px; border: 3px solid var(--ink); }
.press-sheet { padding: 18px 22px; }
.press-sheet h2 { font-size: 1.4em; margin: 22px 0 6px; }
.facts { width: 100%; border-collapse: collapse; font-size: .92em; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px dashed var(--rule); }
.facts th { white-space: nowrap; width: 1%; padding-right: 16px; }
@media (max-width: 560px) { .facts th { white-space: normal; } }
.facts td { overflow-wrap: anywhere; }
code { font-size: .85em; }
