/* ============================================================
   SlowPencil × Daelongtoon — brand hub
   Cream paper · charcoal ink · mustard accent · deep navy
   ============================================================ */

@font-face {
  font-family: "Gowun Batang";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/gowun-batang-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Gowun Batang";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/gowun-batang-bold.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

:root {
  --paper: #F6F1E7;
  --paper-2: #FCF8F0;
  --paper-3: #EFE9DC;
  --ink: #1F211E;
  --ink-soft: #3C3E38;
  --muted: #6E6C63;
  --line: #D9D1C0;
  --line-soft: #E6DFD0;
  --mustard: #C7952C;
  --mustard-deep: #9A6E17;
  --mustard-soft: #F0DCA8;
  --navy: #17263F;
  --navy-2: #1E3050;
  --green: #3F6349;
  --red: #A94836;
  --display: "Gowun Batang", "Nanum Myeongjo", "AppleMyungjo", "Batang", "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "IBM Plex Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --shadow-sm: 0 2px 0 rgba(31, 33, 30, .04), 0 10px 24px rgba(31, 33, 30, .06);
  --shadow-md: 0 18px 40px rgba(31, 33, 30, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(31, 33, 30, .028) 1px, transparent 1px);
  background-size: 4px 4px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--mustard-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--mustard-deep);
  outline-offset: 3px;
}

.wrap {
  width: min(1200px, calc(100% - 72px));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mustard-deep);
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .015em;
  line-height: 1;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.btn-ink:hover { background: #000; border-color: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper-2); }
.btn-sm { padding: 11px 17px; font-size: 12.5px; }

.text-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}
.text-link:hover { color: var(--mustard-deep); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 241, 231, .88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(31, 33, 30, .05); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .035em;
}
.brand-text small {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .16em;
  color: var(--muted);
}

.primary-nav { display: flex; justify-content: center; gap: 34px; }
.primary-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 13.5px;
  color: #4F4F48;
  transition: color .2s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right .28s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { right: 0; }

.header-tools { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(252, 248, 240, .6);
}
.lang-btn {
  min-width: 34px;
  padding: 5px 7px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--muted);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-btn.is-active { background: var(--ink); color: var(--paper-2); }

.header-cta { padding: 12px 18px; font-size: 12px; }

.menu-toggle { display: none; width: 42px; height: 42px; padding: 11px 9px; flex-direction: column; justify-content: center; gap: 6px; }
.menu-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}
.hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: 4%;
  width: 54vw;
  height: 54vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, rgba(240, 220, 168, .55), rgba(240, 220, 168, 0) 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 46%;
  height: 88%;
  background-image:
    linear-gradient(rgba(23, 38, 63, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 38, 63, .045) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 52px;
  align-items: center;
  padding-bottom: 76px;
}

.hero-title {
  margin-top: 20px;
  font-family: var(--display);
  font-size: clamp(2.9rem, 5.6vw, 5.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.hero-title .mark {
  display: inline;
  background-image: linear-gradient(transparent 61%, var(--mustard-soft) 61%, var(--mustard-soft) 93%, transparent 93%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .04em 0 0;
}
.title-dot { color: var(--ink); }
.hero-lede {
  max-width: 29em;
  margin: 28px 0 32px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--mustard);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--muted);
}

/* hero collage */

.hero-art {
  position: relative;
  height: 560px;
  min-width: 0;
}
.art-grid { position: absolute; inset: 0; }
.art-cover {
  position: absolute;
  margin: 0;
  padding: 7px;
  background: var(--paper-2);
  box-shadow: 0 24px 52px rgba(31, 33, 30, .2), 0 0 0 1px rgba(31, 33, 30, .06);
  transition: transform .5s var(--ease);
}
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-cover-1 { left: 2%; top: 3%; width: 46%; height: 62%; transform: rotate(-6deg); z-index: 1; }
.art-cover-1 img { object-position: 50% 36%; }
.art-cover-2 { right: 1%; top: 11%; width: 43%; height: 58%; transform: rotate(5deg); z-index: 2; }
.art-cover-3 { left: 34%; bottom: -4%; width: 37%; height: 52%; transform: rotate(-1.5deg); z-index: 3; }
.hero-art:hover .art-cover-1 { transform: rotate(-7.5deg) translateY(-5px); }
.hero-art:hover .art-cover-2 { transform: rotate(6.5deg) translateY(-4px); }
.hero-art:hover .art-cover-3 { transform: rotate(-.5deg) translateY(-6px); }

.art-card {
  position: absolute;
  left: -8%;
  bottom: 0;
  z-index: 4;
  width: 148px;
  padding: 13px 13px 11px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
}
.art-card-label,
.art-card-foot {
  display: block;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .16em;
  color: var(--muted);
}
.art-card-label { margin-bottom: 8px; color: var(--mustard-deep); }
.art-card-foot { margin-top: 8px; }
.mini-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.mini-grid i { display: block; aspect-ratio: 1; border: 1px solid var(--line); background: #FFFDF7; }
.mini-grid i.on { background: var(--ink); border-color: var(--ink); }

.art-stamp {
  position: absolute;
  right: -2%;
  bottom: 1%;
  z-index: 5;
  display: grid;
  place-content: center;
  width: 88px;
  height: 88px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: .1em;
  text-align: center;
  color: var(--ink);
  opacity: .72;
  transform: rotate(8deg);
}
.art-stamp b { font-weight: 700; }

/* marquee strip */

.strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.strip-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marquee 46s linear infinite;
  animation-delay: 3s;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: #7B786D;
  white-space: nowrap;
}
.strip-track i { width: 4px; height: 4px; border-radius: 50%; background: var(--mustard); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- generic sections ---------- */

.section { padding: 108px 0; }
.section-head { max-width: 820px; margin-bottom: 46px; }
.section-head h2 {
  margin-top: 13px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.95rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.025em;
}
.section-lede {
  max-width: 44em;
  margin-top: 14px;
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- about ---------- */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.about-card {
  position: relative;
  padding: 36px 38px 34px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}
.about-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 150px;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: .7;
  pointer-events: none;
}
.about-daelong { background: #F1EADB; }

.about-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.about-no { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.about-tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: #5A584F;
}
.about-card h3 {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.about-card h3 span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mustard-deep);
}
.about-card > p {
  max-width: 30em;
  margin: 18px 0 24px;
  font-size: 14.5px;
  color: #525149;
}
.about-list { border-top: 1px solid var(--line); }
.about-list li {
  position: relative;
  padding: 9px 0 9px 17px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: #4E4D46;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 5px;
  height: 5px;
  background: var(--mustard);
}

/* ---------- rebrand banner ---------- */

.reband {
  padding: 34px 0 36px;
  background: var(--mustard-soft);
  border-top: 1px solid #E2CB93;
  border-bottom: 1px solid #E2CB93;
}
.reband-inner {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr auto;
  align-items: center;
  gap: 40px;
}
.reband .eyebrow { color: #7C5C15; }
.reband h2 {
  margin-top: 7px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.reband-body { font-size: 13.5px; line-height: 1.75; color: #5A4A26; }
.reband .text-link { color: #5A4A26; white-space: nowrap; }

/* ---------- play ---------- */

.play {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.play-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
}
.play-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6A8F5E;
  box-shadow: 0 0 0 0 rgba(106, 143, 94, .55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(106, 143, 94, .5); }
  70% { box-shadow: 0 0 0 7px rgba(106, 143, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(106, 143, 94, 0); }
}

.games { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.game {
  display: flex;
  flex-direction: column;
  padding: 28px 30px 26px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.game-head h3 {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.game-head p { max-width: 30em; margin-top: 5px; font-size: 12.8px; line-height: 1.6; color: var(--muted); }
.game-badge {
  flex: none;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--mustard);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* nonogram */

.nono-wrap { display: flex; justify-content: center; margin: 30px 0 16px; }
.nono {
  --cell: 46px;
  display: grid;
  grid-template-columns: 50px repeat(5, var(--cell));
  grid-template-rows: 48px;
  grid-auto-rows: var(--cell);
  gap: 1px;
  padding: 1px;
  background: #BFB6A3;
  border: 1px solid #9C927E;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.nono-corner { grid-column: 1; grid-row: 1; background: var(--paper); }
.nono-col-clues { display: contents; }
.nono-col-clue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  padding-bottom: 5px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  color: #4E4D45;
}
.nono-clue span, .nono-col-clue span { line-height: 1.18; }
.nono-row-area { display: contents; }
.nono-row { display: contents; }
.nono-clue {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding-right: 10px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  color: #4E4D45;
}
.nono-cell {
  position: relative;
  padding: 0;
  margin: 0;
  border: 0;
  background: #FFFDF7;
  transition: background .12s linear;
}
.nono-cell:hover { background: #F4EAD2; }
.nono-cell.is-on { background: var(--ink); }
.nono-cell.is-x::before,
.nono-cell.is-x::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 13px; height: 1px;
  background: #A9A092;
  transform: translate(-50%, -50%) rotate(45deg);
}
.nono-cell.is-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.nono-cell.is-wrong { background: #E9C3B9; }
.nono-cell.is-wrong.is-on { background: var(--red); }
.nono.is-solved .nono-cell.is-on { background: var(--green); }

/* sudoku */

.sudoku-wrap { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 30px 0 16px; flex-wrap: wrap; }
.sudoku {
  display: grid;
  grid-template-columns: repeat(4, 54px);
  grid-template-rows: repeat(4, 54px);
  gap: 1px;
  padding: 1px;
  background: #BFB6A3;
  border: 2px solid var(--ink);
  user-select: none;
  -webkit-user-select: none;
}
.sudoku-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #FFFDF7;
  font-family: var(--mono);
  font-size: 21px;
  color: var(--navy);
  transition: background .12s linear;
}
.sudoku-cell:hover { background: #F4EAD2; }
.sudoku-cell.is-given { color: var(--ink); font-weight: 700; }
.sudoku-cell.is-selected { background: var(--mustard-soft); box-shadow: inset 0 0 0 2px var(--mustard-deep); }
.sudoku-cell.is-conflict { color: var(--red); background: #F3D8D1; }
.sudoku-cell.is-wrong-cell { color: var(--red); background: #F3D8D1; }
.sudoku-cell.box-r { box-shadow: inset -2px 0 0 var(--ink); }
.sudoku-cell.box-b { box-shadow: inset 0 -2px 0 var(--ink); }
.sudoku-cell.box-r.box-b { box-shadow: inset -2px 0 0 var(--ink), inset 0 -2px 0 var(--ink); }
.sudoku.is-solved .sudoku-cell { background: #EEF2E6; }
.sudoku.is-solved .sudoku-cell.is-given { background: #E3EAD8; }

.numpad { display: grid; grid-template-columns: repeat(2, 58px); gap: 6px; }
.numpad button {
  height: 50px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 17px;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.numpad button:hover { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.numpad-erase { grid-column: 1 / -1; height: 34px !important; font-family: var(--sans) !important; font-size: 11px !important; letter-spacing: .06em; }

.game-hint {
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: .03em;
  color: #8B877B;
}
.game-actions { display: flex; gap: 8px; margin-top: 16px; }
.game-result { min-height: 1.6em; margin-top: 12px; font-size: 12.8px; color: #57564E; }
.game-result.is-good { color: var(--green); font-weight: 600; }
.game-result.is-bad { color: var(--red); }
.game-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.game-cta a { color: var(--ink); border-bottom: 1px solid var(--mustard); padding-bottom: 2px; }
.game-cta a:hover { color: var(--mustard-deep); }

/* ---------- books ---------- */

.books-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
}
.books-head > div:first-child { max-width: 560px; }

.filters { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 3px; }
.filter {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  color: #57564E;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 20px;
}
.book-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper-2);
  scroll-margin-top: 110px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .25s linear;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.book-card.is-hidden { display: none; }

.book-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 3 / 4;
  padding: 20px 20px 0;
  background: var(--paper-3);
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(31, 33, 30, .18));
  transition: transform .5s var(--ease);
}
.book-card:hover .book-cover img { transform: translateY(-3px) scale(1.012); }

.book-tag {
  position: absolute;
  left: 11px;
  top: 11px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: rgba(252, 248, 240, .94);
  font-size: 9.5px;
  letter-spacing: .05em;
  color: #55544C;
}
.tag-dino { color: #3F6349; border-color: #C4D2C0; }
.tag-color { color: #8A5E3B; border-color: #DCC7B4; }
.tag-en { color: #455C7A; border-color: #C2CEDD; }

.book-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 17px; }
.book-body h3 {
  font-family: var(--display);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.015em;
}
.book-sub {
  margin: 4px 0 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mustard-deep);
}
.book-desc { flex: 1; font-size: 12.5px; line-height: 1.65; color: #5A5951; }
.book-price { margin: 13px 0 9px; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.store-row { display: flex; flex-wrap: wrap; gap: 5px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.3;
  color: #4C4B44;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.store:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.store span { opacity: .65; font-weight: 400; }
.book-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 9.5px;
  line-height: 1.5;
  color: #8B877B;
}
.filter-empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- goods ---------- */

.goods { background: var(--navy); color: #F3EEE2; padding: 112px 0; }
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.goods .eyebrow { color: var(--mustard-soft); }
.goods h2 {
  margin: 13px 0 18px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.025em;
}
.goods-lede { max-width: 33em; font-size: 14.5px; color: rgba(243, 238, 226, .7); }

.goods-visual { position: relative; z-index: 0; padding: 18px 0; }
.goods-cover {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .045);
  transform: rotate(-2deg);
  box-shadow: 0 32px 64px rgba(0, 0, 0, .38);
}
.goods-cover img { width: 100%; }
.float-sticker {
  position: absolute;
  z-index: 1;
  width: 148px;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .35));
  pointer-events: none;
}
.float-a { right: -13%; top: -12%; transform: rotate(9deg); }
.float-b { left: -9%; bottom: -16%; width: 118px; transform: rotate(-8deg); }

.shop-list { margin-top: 34px; border-top: 1px solid rgba(255, 255, 255, .16); }
.shop {
  display: grid;
  grid-template-columns: 108px 1fr auto 22px;
  align-items: center;
  gap: 14px;
  padding: 15px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  transition: background .22s var(--ease), padding-left .22s var(--ease);
}
.shop:hover { background: rgba(255, 255, 255, .055); padding-left: 12px; }
.shop-name { font-size: 14.5px; font-weight: 600; letter-spacing: .01em; }
.shop-meta { font-size: 11.5px; line-height: 1.5; color: rgba(243, 238, 226, .6); }
.shop-status {
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.shop-status.is-soon { color: #D8C69B; border-color: rgba(216, 198, 155, .45); }
.shop-status.is-open { color: #A9D3A1; border-color: rgba(169, 211, 161, .4); }
.shop-price { font-family: var(--mono); font-size: 11px; color: var(--mustard-soft); }
.shop-arrow { font-size: 15px; opacity: .45; transition: transform .22s var(--ease), opacity .22s var(--ease); }
.shop:hover .shop-arrow { transform: translateX(3px); opacity: .9; }
.goods-note { margin-top: 22px; font-size: 10.5px; line-height: 1.7; color: rgba(243, 238, 226, .42); }

/* ---------- news ---------- */

.news-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 56px; align-items: start; }
.news-list { border-top: 1px solid var(--ink); }
.news-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  column-gap: 24px;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}
.news-item time {
  grid-row: 1 / span 4;
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
}
.news-item h3 { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.news-item p { max-width: 40em; margin: 8px 0 13px; font-size: 13px; line-height: 1.72; color: #5A5951; }
.news-item .text-link { justify-self: start; }

.channel-card {
  position: sticky;
  top: 112px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.channel-card h3 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}
.channel-mail {
  display: block;
  margin: 15px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: -.01em;
  word-break: break-all;
}
.channel-mail:hover { color: var(--mustard-deep); border-color: var(--mustard-deep); }
.channel-desc { font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.channel-links { display: grid; gap: 1px; margin-top: 22px; background: var(--line); }
.channel-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  background: var(--paper-2);
  font-size: 12.5px;
  transition: color .2s var(--ease);
}
.channel-links a:hover { color: var(--mustard-deep); }
.channel-links small { font-family: var(--mono); font-size: 9px; color: var(--muted); }

/* ---------- footer ---------- */

.site-footer { padding: 42px 0 46px; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-brand strong { display: block; font-family: var(--display); font-size: 16px; letter-spacing: .02em; }
.footer-brand span { display: block; margin-top: 3px; font-family: var(--mono); font-size: 8px; letter-spacing: .18em; color: var(--muted); }
.footer-note { max-width: 28em; font-size: 10.5px; line-height: 1.7; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-family: var(--mono); font-size: 9px; letter-spacing: .02em; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-art { height: 500px; }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .goods-grid { gap: 44px; }
  .float-sticker { width: 120px; }
  .float-b { width: 104px; }
}

@media (max-width: 940px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .primary-nav { gap: 22px; }
  .header-cta { display: none; }

  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-copy { max-width: 660px; }
  .hero-art { width: min(100%, 540px); margin-inline: auto; height: 480px; }
  .hero::after { width: 100%; height: 46%; top: auto; bottom: 0; opacity: .7; }

  .section { padding: 86px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { padding: 32px 30px; }

  .reband-inner { grid-template-columns: 1fr; gap: 16px; }
  .reband .text-link { justify-self: start; }

  .games { grid-template-columns: 1fr; }
  .game { padding: 26px 24px 24px; }

  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .books-head { flex-direction: column; align-items: flex-start; }

  .goods { padding: 80px 0; }
  .goods-grid { grid-template-columns: 1fr; gap: 54px; }
  .goods-visual { width: min(100%, 600px); margin-inline: auto; }
  .float-a { right: -1%; top: -7%; width: 100px; }
  .float-b { left: -1%; bottom: -6%; width: 84px; }

  .news-grid { grid-template-columns: 1fr; gap: 40px; }
  .channel-card { position: static; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; grid-template-columns: auto auto 1fr; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text strong { font-size: 18px; }
  .brand-text small { display: none; }

  .menu-toggle { display: inline-flex; grid-column: 4; grid-row: 1; justify-self: end; }
  .header-inner { grid-template-columns: auto 1fr auto auto; gap: 10px; }
  .brand { grid-column: 1; grid-row: 1; }
  .header-tools { grid-column: 3; grid-row: 1; justify-self: end; gap: 8px; }
  .primary-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 18px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(31, 33, 30, .1);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
  .primary-nav a::after { display: none; }

  .hero-grid { padding-bottom: 58px; }
  .hero-title { font-size: clamp(2.45rem, 10.6vw, 3.5rem); }
  .hero-lede { font-size: 15px; margin: 22px 0 28px; }
  .hero-art { height: 400px; }
  .art-card { width: 126px; left: -1%; bottom: 10%; }
  .art-stamp { width: 72px; height: 72px; font-size: 7px; right: 0; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 34px; }
  .play-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  .nono { --cell: 36px; grid-template-columns: 40px repeat(5, var(--cell)); grid-template-rows: 40px; }
  .nono-clue { font-size: 10px; padding-right: 6px; }
  .nono-col-clue { font-size: 10px; padding-bottom: 4px; }
  .float-sticker { display: none; }
  .sudoku { grid-template-columns: repeat(4, 50px); grid-template-rows: repeat(4, 50px); }
  .numpad { grid-template-columns: repeat(2, 48px); }
  .numpad button { height: 44px; }

  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .book-cover { padding: 14px 14px 0; }
  .book-body { padding: 14px 14px 15px; }
  .book-body h3 { font-size: 16.5px; }
  .book-desc { font-size: 11.5px; }
  .store { padding: 5px 7px; font-size: 9.5px; }

  .shop { grid-template-columns: 88px 1fr auto 18px; gap: 10px; }
  .shop-meta { font-size: 10.5px; }
  .shop-status { display: none; }

  .news-item { grid-template-columns: 76px 1fr; column-gap: 16px; }
  .news-item h3 { font-size: 18px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-links { align-items: flex-start; }
}

@media (max-width: 520px) {
  .strip-track { display: none; }
  .strip::after {
    content: "PUZZLE BOOKS · PICTURE BOOKS · COLORING · GOODS";
    display: block;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .16em;
    text-align: center;
    color: #7B786D;
  }
  .hero-art { height: 350px; }
  .art-cover-1 { width: 48%; height: 60%; }
  .art-cover-2 { width: 44%; height: 56%; }
  .art-cover-3 { left: 42%; width: 36%; height: 50%; bottom: -4%; }
  .art-card { display: none; }
  .art-stamp { width: 62px; height: 62px; font-size: 6px; }

  .games { gap: 16px; }
  .game { padding: 22px 18px 20px; }
  .game-head h3 { font-size: 21px; }
  .nono { --cell: 33px; grid-template-columns: 36px repeat(5, var(--cell)); grid-template-rows: 38px; }
  .nono-clue { font-size: 9px; }
  .nono-col-clue { font-size: 9px; padding-bottom: 3px; }
  .sudoku-wrapper { gap: 18px; }
  .sudoku { grid-template-columns: repeat(4, 46px); grid-template-rows: repeat(4, 46px); }
  .numpad { grid-template-columns: repeat(2, 52px); }

  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .book-cover { aspect-ratio: 3 / 4; padding: 10px 10px 0; }
  .book-body { padding: 11px 11px 12px; }
  .book-body h3 { font-size: 14.5px; }
  .book-sub { margin: 3px 0 6px; font-size: 7px; letter-spacing: .08em; }
  .book-desc { font-size: 10.5px; line-height: 1.55; }
  .book-price { margin: 9px 0 7px; font-size: 11.5px; }
  .book-tag { left: 7px; top: 7px; padding: 2px 6px; font-size: 8px; }
  .store { padding: 4px 6px; font-size: 8.5px; }
  .book-note { margin-top: 7px; padding-top: 6px; font-size: 8.5px; }

  .shop { grid-template-columns: 1fr auto; row-gap: 4px; }
  .shop-meta { grid-column: 1 / -1; }
  .shop-arrow { display: none; }
  .shop-price { justify-self: end; }

  .news-item { grid-template-columns: 1fr; }
  .news-item time { grid-row: auto; margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip-track { animation: none; }
  .live-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .art-cover { transition: none; }
  * { scroll-behavior: auto !important; }
}
