/* ==========================================================
   학생인권복지위원회 — Sky Journal Theme
   에디토리얼 저널 스타일 · 하늘색 팔레트 · 모바일 반응형
   ========================================================== */

:root {
  --bg: #f5fafd;
  --surface: #ffffff;
  --paper: #fdfeff;
  --sky: #7cc4e8;
  --sky-soft: #ddf0fa;
  --sky-pale: #eef7fc;
  --sky-deep: #2a7fb5;
  --blue: #1d5e8a;
  --ink: #14303f;
  --text: #3d5263;
  --muted: #74899a;
  --line: rgba(20, 48, 63, 0.18);
  --line-soft: rgba(20, 48, 63, 0.1);
  --cloud: #cfe8f6;
  --sun: #ffe3a8;
  --serif: "Noto Serif KR", "Georgia", serif;
  --sans: "Noto Sans KR", sans-serif;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 250, 253, 0.9);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-shell,
.header-inner {
  width: min(1480px, 100%);
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(90px, 1fr);
  gap: 24px;
  align-items: center;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 40px);
}

.header-inner {
  grid-template-columns: minmax(200px, 1fr) auto auto;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 1px;
}

.brand__text strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3.4vw, 52px);
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--sky-deep);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--sky-deep);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  justify-self: end;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.18s ease, color 0.18s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--ink);
  color: #fff;
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ----------------------------------------------------------
   Hero (home)
   ---------------------------------------------------------- */

.home-hero {
  display: flex;
  flex-direction: column;
}

.hero-shell {
  width: min(1380px, calc(100% - 48px));
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(480px, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 100px);
}

.hero-copy {
  max-width: 480px;
  justify-self: end;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--sky-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.hero-copy p:not(.eyebrow),
.page-hero p:not(.eyebrow),
.section-copy p,
.info-panel p,
.info-card p,
.contact-card p,
.faq-list p {
  color: var(--text);
  line-height: 1.85;
  word-break: keep-all;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 460px;
  margin: 22px 0 0;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Buttons */

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(42, 127, 181, 0.16);
}

.button--primary {
  background: var(--sky-soft);
}

.button--primary::after {
  content: "→";
  font-weight: 400;
  transition: transform 0.18s ease;
}

.button--primary:hover::after,
.button--primary:focus-visible::after {
  transform: translateX(4px);
}

.button--line,
.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--sky-deep);
}

.button--small {
  min-height: 40px;
  padding: 0 16px;
  border-color: var(--line);
  background: #fff;
  color: var(--sky-deep);
  font-size: 0.88rem;
}

/* Hero stats */

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3.4vw, 44px);
  margin: 38px 0 0;
}

.hero-stats div {
  min-width: 70px;
}

.hero-stats dt {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ----------------------------------------------------------
   Journal spread illustration
   ---------------------------------------------------------- */

.journal-showcase {
  min-width: 0;
}

.journal-spread {
  position: relative;
  width: min(100%, 740px);
  aspect-ratio: 1.46;
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  margin: 0 auto;
  border-radius: 6px;
  filter: drop-shadow(0 30px 40px rgba(20, 48, 63, 0.14));
  transform: rotate(0.4deg);
}

.journal-page {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line-soft);
  background: var(--paper);
  overflow: hidden;
}

.journal-page--left {
  border-radius: 8px 0 0 8px;
  box-shadow: inset -16px 0 26px rgba(20, 48, 63, 0.04);
}

.journal-page--right {
  display: grid;
  align-content: start;
  text-align: right;
  border-radius: 0 8px 8px 0;
  box-shadow: inset 16px 0 26px rgba(20, 48, 63, 0.04);
}

.page-label {
  width: 72px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: var(--sky-pale);
  color: var(--sky-deep);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.journal-page h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.9vw, 1.42rem);
  line-height: 1.3;
  font-weight: 600;
  word-break: keep-all;
}

.journal-page p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  line-height: 1.65;
  word-break: keep-all;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
}

.journal-grid article {
  min-height: 118px;
  padding: 12px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.journal-grid article:nth-child(2n) {
  border-right: 0;
}

.journal-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.journal-grid span {
  display: inline-flex;
  min-width: 36px;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 3px;
  background: var(--sky-soft);
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.journal-grid strong {
  display: block;
  color: var(--ink);
  font-size: clamp(0.76rem, 1.3vw, 0.92rem);
}

.journal-grid p {
  font-size: clamp(0.66rem, 1vw, 0.76rem);
}

.journal-rings {
  position: relative;
  display: grid;
  align-content: space-evenly;
  justify-items: center;
  padding: 8px 0;
  background: linear-gradient(90deg, #eef4f8 0%, #ffffff 50%, #e9f1f6 100%);
}

.journal-rings span {
  width: 32px;
  height: 9px;
  border: 2px solid rgba(20, 48, 63, 0.55);
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.week-label {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.journal-page--right img {
  width: min(32%, 110px);
  justify-self: end;
  margin: 10px 10px 6px 0;
  opacity: 0.85;
}

.journal-page--right h2 {
  max-width: 250px;
  justify-self: end;
}

/* 오른쪽 페이지 풍경 — 하늘과 구름 */

.window-scene {
  position: absolute;
  left: 13%;
  right: 0;
  bottom: 18%;
  height: 36%;
  border-radius: 8px 0 0 0;
  background: linear-gradient(160deg, var(--sky) 0%, var(--cloud) 70%, #e9f5fc 100%);
}

.window-scene::before {
  content: "";
  position: absolute;
  left: 12%;
  top: -50%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--sun) 0 44%, transparent 45%),
    radial-gradient(circle, rgba(255, 227, 168, 0.5) 0 68%, transparent 69%);
}

.window-scene span {
  position: absolute;
  width: 52px;
  height: 52px;
  top: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 8px 0 0 rgba(124, 196, 232, 0.5);
}

.window-scene span:nth-child(1) {
  left: 16%;
}

.window-scene span:nth-child(2) {
  left: 16%;
  top: 88px;
}

.window-scene span:nth-child(3) {
  left: 16%;
  top: 156px;
}

.page-stripes {
  position: absolute;
  left: 10%;
  right: 0;
  bottom: 0;
  height: 88px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.92) 0 8px, transparent 8px 18px),
    linear-gradient(135deg, #8fd0ee, #cfe8f6);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

/* ----------------------------------------------------------
   Keyword marquee strip
   ---------------------------------------------------------- */

.keyword-strip {
  --kw-gap: clamp(48px, 7vw, 110px);
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  background: var(--sky-pale);
}

.keyword-track {
  width: max-content;
  display: flex;
  animation: keyword-marquee 22s linear infinite;
}

.keyword-strip:hover .keyword-track {
  animation-play-state: paused;
}

.keyword-group {
  display: flex;
  align-items: center;
  gap: var(--kw-gap);
  padding: 26px var(--kw-gap) 26px 0;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.keyword-group span {
  flex: 0 0 auto;
}

@keyframes keyword-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ----------------------------------------------------------
   Sections
   ---------------------------------------------------------- */

.section {
  padding: clamp(56px, 8vw, 90px) 0;
}

.section--tight {
  padding-top: clamp(44px, 6vw, 64px);
}

.split-layout,
.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.section-copy,
.info-panel,
.info-card,
.contact-card,
.faq-list details,
.game-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.section-copy,
.info-panel,
.contact-card,
.faq-list details,
.game-card {
  padding: clamp(24px, 3.4vw, 40px);
}

.section-copy h2,
.info-panel h2,
.info-card h2,
.contact-card h2,
.game-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.feature-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-grid article,
.info-card {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-grid article:hover,
.info-card:hover,
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(42, 127, 181, 0.1);
}

.feature-grid span,
.info-card span,
.contact-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--sky-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature-grid h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
  word-break: keep-all;
}

/* Standalone section title + quick link cards */

.section-title {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.link-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(42, 127, 181, 0.12);
}

.link-card span {
  color: var(--sky-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.link-card h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.link-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  word-break: keep-all;
}

.link-card strong {
  margin-top: 10px;
  color: var(--sky-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

.link-card strong::after {
  content: " →";
  display: inline-block;
  transition: transform 0.18s ease;
}

.link-card:hover strong::after {
  transform: translateX(4px);
}

/* Notice band */

.notice-band {
  padding: 12px 0 clamp(56px, 7vw, 72px);
}

.notice-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--sky-soft), var(--sky-pale));
}

.notice-band p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  word-break: keep-all;
}

.notice-band a {
  flex: 0 0 auto;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.notice-band a:hover,
.notice-band a:focus-visible {
  background: var(--ink);
  color: #fff;
}

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

.page-hero {
  padding: clamp(28px, 5vw, 56px) 0 18px;
}

.page-hero__inner {
  min-height: 300px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(620px 280px at 86% 14%, rgba(124, 196, 232, 0.32), transparent 70%),
    radial-gradient(420px 240px at 8% 100%, rgba(207, 232, 246, 0.5), transparent 70%),
    linear-gradient(120deg, #ffffff 0%, var(--sky-pale) 100%);
}

.page-hero h1 {
  max-width: 960px;
  font-size: clamp(1.9rem, 3.7vw, 3.05rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  font-size: 1rem;
}

.steps,
.plain-list {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  line-height: 2.05;
  word-break: keep-all;
}

.steps li::marker {
  color: var(--sky-deep);
  font-weight: 700;
}

.plain-list li::marker {
  color: var(--sky-deep);
}

.info-panel--soft {
  background: linear-gradient(180deg, #ffffff 0%, var(--sky-pale) 100%);
}

.card-grid {
  grid-template-columns: repeat(2, 1fr);
}

.info-card h2 {
  font-size: 1.4rem;
}

.contact-card h2 {
  overflow-wrap: anywhere;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}

.contact-card h2 a {
  border-bottom: 1px solid rgba(42, 127, 181, 0.35);
  color: var(--sky-deep);
  transition: border-color 0.18s ease;
}

.contact-card h2 a:hover,
.contact-card h2 a:focus-visible {
  border-color: var(--sky-deep);
}

.contact-card p,
.info-card p {
  margin: 0;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  transition: box-shadow 0.2s ease;
}

.faq-list details[open] {
  box-shadow: 0 16px 30px rgba(42, 127, 181, 0.08);
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 34px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sky-deep);
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list p {
  margin: 14px 0 0;
}

/* ----------------------------------------------------------
   Games (쉬어가기)
   ---------------------------------------------------------- */

.game-section {
  padding-top: 24px;
}

.game-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.game-tab {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.game-tab.is-active {
  border-color: var(--sky-deep);
  background: var(--sky-soft);
  color: var(--blue);
}

.game-panel {
  display: none;
}

.game-panel.is-active {
  display: block;
}

.game-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.game-help {
  margin: 0 0 22px;
  padding: 16px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--sky-pale);
}

.game-help strong {
  display: block;
  margin-bottom: 8px;
  color: var(--sky-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.game-help ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.9;
  word-break: keep-all;
}

.game-help li::marker {
  color: var(--sky-deep);
}

.numble-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.numble-form input {
  min-height: 54px;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.numble-form input:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
}

.game-message {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 500;
}

.guess-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.guess-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--sky-pale);
  font-weight: 700;
}

.guess-item span:last-child {
  color: var(--blue);
}

.score-box {
  min-width: 92px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--sky-pale);
  text-align: center;
}

.score-box span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.score-box strong {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.board-2048 {
  width: min(100%, 430px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 1.5vw, 10px);
  padding: clamp(6px, 1.5vw, 10px);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--cloud);
}

.tile-2048 {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: clamp(1.1rem, 6vw, 1.9rem);
  font-weight: 800;
}

.tile-2048[data-value="2"] { background: #f4fafd; }
.tile-2048[data-value="4"] { background: #e2f2fb; }
.tile-2048[data-value="8"] { background: #c4e7f8; }
.tile-2048[data-value="16"] { background: #9bd7f2; }
.tile-2048[data-value="32"] { background: #6fc2e8; color: #fff; }
.tile-2048[data-value="64"] { background: #45a9d9; color: #fff; }
.tile-2048[data-value="128"],
.tile-2048[data-value="256"],
.tile-2048[data-value="512"] { background: var(--sky-deep); color: #fff; }
.tile-2048[data-value="1024"],
.tile-2048[data-value="2048"] { background: var(--blue); color: #fff; }

.reaction-pad {
  width: min(100%, 520px);
  min-height: clamp(180px, 34vw, 240px);
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--sky-soft);
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 6vw, 3.2rem);
  font-weight: 700;
}

.reaction-pad.is-waiting {
  background: #ffe7a8;
  color: #7a4a00;
}

.reaction-pad.is-ready {
  background: #85e0b4;
  color: #073b24;
}

.reaction-records {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.reaction-records span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 600;
}

.reaction-records strong {
  color: var(--blue);
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line-soft);
  background: var(--sky-pale);
  color: var(--text);
}

.footer-layout {
  min-height: 132px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
}

.footer-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  word-break: keep-all;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: flex-end;
  font-weight: 600;
}

.footer-links a {
  transition: color 0.18s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--sky-deep);
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1180px) {
  .header-shell {
    grid-template-columns: 1fr auto auto;
  }

  .site-nav {
    gap: clamp(14px, 2.4vw, 30px);
  }

  .hero-shell {
    grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
  }

  .journal-spread {
    width: min(100%, 640px);
  }
}

/* --- Tablet --- */

@media (max-width: 980px) {
  .header-shell,
  .header-inner {
    grid-template-columns: 1fr auto auto;
    min-height: 72px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 16px;
    border-top: 1px solid var(--line-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 6px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.95rem;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a.is-active {
    color: var(--sky-deep);
    background: var(--sky-pale);
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 52px;
  }

  .hero-copy {
    max-width: 660px;
    justify-self: start;
  }

  .journal-spread {
    width: min(100%, 720px);
  }

  .split-layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Mobile --- */

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-shell,
  .header-inner {
    width: 100%;
    padding: 0 16px;
    gap: 12px;
  }

  .brand__logo {
    width: 38px;
    height: 38px;
  }

  .brand__text strong {
    font-size: 0.95rem;
  }

  .brand__text small {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-shell {
    width: calc(100% - 32px);
    gap: 36px;
    padding: 44px 0 40px;
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 8.6vw, 2.7rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .hero-stats div {
    min-width: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
  }

  /* 저널을 세로로 쌓아 모바일 비율에 맞춤 */
  .journal-showcase {
    overflow-x: clip;
  }

  .journal-spread {
    aspect-ratio: auto;
    grid-template-columns: 1fr;
    transform: none;
    filter: drop-shadow(0 18px 26px rgba(20, 48, 63, 0.12));
  }

  .journal-page--left {
    border-radius: 10px 10px 0 0;
  }

  .journal-page--right {
    min-height: 360px;
    border-radius: 0 0 10px 10px;
  }

  .journal-rings {
    height: 34px;
    grid-template-columns: repeat(10, 1fr);
    align-content: center;
    padding: 0 12px;
    background: var(--paper);
    border-left: 1px solid var(--line-soft);
    border-right: 1px solid var(--line-soft);
  }

  .journal-rings span {
    width: 9px;
    height: 22px;
    border: 2px solid rgba(20, 48, 63, 0.45);
    border-top: 0;
    border-radius: 0 0 8px 8px;
  }

  .journal-rings span:nth-child(n + 11) {
    display: none;
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-grid article,
  .journal-grid article:nth-child(2n),
  .journal-grid article:nth-last-child(-n + 2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .journal-grid article:last-child {
    border-bottom: 0;
  }

  .keyword-strip {
    --kw-gap: 42px;
  }

  .keyword-group {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .section {
    padding: 44px 0;
  }

  .feature-grid,
  .card-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .notice-band__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .notice-band a {
    justify-content: center;
  }

  .page-hero__inner {
    min-height: 240px;
  }

  .game-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .game-tab {
    padding: 0 8px;
  }

  .numble-form {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

/* --- Small mobile --- */

@media (max-width: 430px) {
  .hero-copy h1,
  .page-hero h1 {
    font-size: 1.92rem;
  }

  .hero-copy > p:not(.eyebrow),
  .page-hero p:not(.eyebrow) {
    font-size: 0.96rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .journal-page {
    padding: 18px;
  }

  .journal-page--right {
    min-height: 320px;
  }

  .window-scene {
    left: 8%;
    height: 34%;
  }

  .window-scene span {
    width: 40px;
    height: 40px;
  }

  .window-scene span:nth-child(2) {
    top: 74px;
  }

  .window-scene span:nth-child(3) {
    top: 128px;
  }

  .page-stripes {
    height: 64px;
  }

  .game-card__head {
    display: grid;
    grid-template-columns: 1fr;
  }

}
