/* ==========================================================================
   링링 보카 (RingRing Vocab) — UI 재설계 1/4: 타이틀 화면 (style_title.css)
   Soft Claymorphism & Pastel Craft Design System
   Flow 원본 에셋(assets/flow/*) 및 런타임 최적화 조각(assets/ui/*) 기반
   ========================================================================== */

:root {
  /* Flow Asset Reference Registry (SOURCES.md 기준) */
  --flow-dori-ref: url('../assets/flow/01_dori_ref_sheet_alpha.png');
  --flow-dori-expressions: url('../assets/flow/02_dori_expressions_7_alpha.png');
  --flow-title-keyart: url('../assets/flow/03_title_keyart.png');
  --flow-map-ch1: url('../assets/flow/04_map_ch1_forest_cafe.png');
  --flow-map-ch2: url('../assets/flow/05_map_ch2_airport.png');
  --flow-map-ch3: url('../assets/flow/06_map_ch3_office_sunset.png');
  --flow-rings-sheet: url('../assets/flow/07_clay_rings_material_alpha.png');
  --flow-tiles-sheet: url('../assets/flow/08_letter_tile_blank_sheet_alpha.png');
  --flow-board-lavender: url('../assets/flow/09_board_bg_lavender_blue.png');
  --flow-board-peach: url('../assets/flow/10_board_bg_peach.png');
  --flow-board-mint: url('../assets/flow/11_board_bg_mint.png');
  --flow-clear-bg: url('../assets/flow/12_clear_celebration_bg.png');
  --flow-frames-sheet: url('../assets/flow/13_meaning_card_frames_alpha.png');
  --flow-flames-sheet: url('../assets/flow/14_streak_flames_5_alpha.png');
  --flow-daily-banner: url('../assets/flow/15_daily_challenge_banner.png');
  --flow-share-blue-pink: url('../assets/flow/16_share_card_bg_blue_pink.png');
  --flow-share-mint-yellow: url('../assets/flow/17_share_card_bg_mint_yellow.png');
  --flow-share-peach-lavender: url('../assets/flow/18_share_card_bg_peach_lavender.png');
  --flow-icons-sheet: url('../assets/flow/19_icons_hint_settings_book_shop_invite_alpha.png');
  --flow-dori-skins: url('../assets/flow/20_dori_skins_6_alpha.png');
  --flow-feature-graphic: url('../assets/flow/21_play_feature_graphic_1024x500.png');
  --flow-app-icon-a: url('../assets/flow/22_app_icon_a.png');
  --flow-app-icon-b: url('../assets/flow/23_app_icon_b.png');
  --flow-hero-books-a: url('../assets/flow/24_hero_books_a.png');
  --flow-hero-books-b: url('../assets/flow/25_hero_books_b.png');

  /* Color Palette — Warm Clay & Pastel Sanctuary */
  --bg-canvas: #faf5ee;
  --bg-card: #fffdf8;
  --bg-card-elevated: #ffffff;
  --ink-primary: #24383e;
  --ink-secondary: #4e676d;
  --ink-muted: #6c848a;

  /* Clay Tactile Surfaces & Shadows */
  --clay-teal: #2a6f6b;
  --clay-teal-dark: #1d524f;
  --clay-mint: #dff3ea;
  --clay-mint-border: #68a88d;
  --clay-lavender: #ede8fa;
  --clay-lavender-border: #c5bce6;
  --clay-peach: #fcebe2;
  --clay-cream: #fbf3e4;
  --clay-border: #dfd5c6;

  --shadow-clay-hero:
    0 10px 0 #d8cebe,
    0 20px 38px rgba(64, 54, 78, 0.16),
    inset 0 2px 0 rgba(255, 255, 255, 0.85);
  --shadow-clay-card:
    0 6px 0 #e5ddd0,
    0 10px 22px rgba(68, 60, 48, 0.08),
    inset 0 2px 0 #ffffff;
  --shadow-clay-btn:
    0 4px 0 #cbbfb0,
    0 6px 12px rgba(45, 58, 62, 0.09),
    inset 0 2px 0 #ffffff;
  --shadow-clay-primary:
    0 5px 0 var(--clay-teal-dark),
    0 8px 16px rgba(36, 91, 89, 0.24),
    inset 0 2px 0 rgba(255, 255, 255, 0.35);

  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, -apple-system, sans-serif;
  color: var(--ink-primary);
  background:
    radial-gradient(circle at 12% 6%, #ede6fb 0%, transparent 40%),
    radial-gradient(circle at 88% 15%, #e2f5ee 0%, transparent 42%),
    radial-gradient(circle at 50% 92%, #fbeee2 0%, transparent 45%),
    var(--bg-canvas);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink-primary);
}

main#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

h1 { font-size: 30px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }

p {
  margin: 0;
  line-height: 1.55;
}

small, .eyebrow {
  font-size: 13px;
  color: var(--ink-secondary);
}

button, input, select, summary, textarea {
  font: inherit;
  touch-action: manipulation;
}

button, summary {
  cursor: pointer;
}

button {
  min-height: 48px;
  border: 2px solid #e2d9cb;
  background: linear-gradient(180deg, #ffffff 0%, #f8f2e8 100%);
  border-radius: 16px;
  padding: 10px 16px;
  color: var(--ink-primary);
  font-weight: 700;
  box-shadow: var(--shadow-clay-btn);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}

button:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffffff 0%, #f3ebde 100%);
}

button:active:not(:disabled) {
  transform: translateY(3px) scale(0.985);
  box-shadow:
    0 1px 0 #cbbfb0,
    0 2px 4px rgba(45, 58, 62, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #356ec9;
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.52;
  cursor: default;
  box-shadow: none;
}

.icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
  filter: drop-shadow(0 2px 3px rgba(36, 56, 62, 0.14));
}

/* ==========================================================================
   1. 타이틀 키아트 히어로 배너 (header.title-art)
   SOURCES.md: 03_title_keyart (상단 20% 빈칸) + 22_app_icon_a (01_dori_ref_sheet 기준)
   ========================================================================== */
.title-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 336px;
  padding: 18px 16px 16px;
  margin-bottom: 16px;
  border-radius: 28px;
  border: 4px solid #fffdf9;
  background-color: #e9e3f1;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 252, 245, 0.78) 0%,
      rgba(255, 252, 245, 0.14) 28%,
      rgba(255, 252, 245, 0.04) 68%,
      rgba(36, 56, 62, 0.34) 100%
    ),
    url('../assets/ui/03_title_keyart.webp'),
    var(--flow-title-keyart);
  background-position: center, center 44%, center 44%;
  background-size: cover;
  box-shadow: var(--shadow-clay-hero);
  overflow: hidden;
  isolation: isolate;
}

.title-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.title-art .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  background: rgba(255, 253, 246, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #2c5f5b;
  box-shadow: 0 3px 10px rgba(45, 58, 62, 0.1);
}

.title-art .eyebrow::before {
  content: "🦉";
  font-size: 13px;
}

.title-edition-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #544b74;
  background: rgba(242, 237, 255, 0.9);
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(64, 54, 78, 0.1);
}

/* 타이틀 브랜드 카드 (상단 20% 빈칸 영역에 배치하여 도리 키아트 가림 최소화) */
.title-brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: auto;
  padding: 10px 14px;
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.92);
  border: 2px solid #ffffff;
  box-shadow:
    0 5px 0 rgba(219, 209, 194, 0.85),
    0 10px 20px rgba(40, 56, 62, 0.12);
  backdrop-filter: blur(6px);
}

.title-app-emblem {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(40, 56, 62, 0.18);
  background: #f5efe6;
}

.title-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.title-art h1 {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  font-size: 29px;
  font-weight: 900;
  line-height: 1.2;
  color: #1f353b;
  text-shadow: 0 1px 0 #ffffff;
}

.title-art h1 small {
  font-size: 11.5px;
  font-weight: 800;
  color: #635888;
  background: #ede7fb;
  border: 1px solid #d4c9f0;
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: middle;
}

.title-subcopy {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-secondary);
  line-height: 1.35;
}

/* 하단 읽기 가이드 리본 */
.title-guide-ribbon {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 124px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 253, 246, 0.94);
  border: 2px solid #ffffff;
  box-shadow:
    0 4px 0 #dfd5c5,
    0 8px 18px rgba(32, 46, 52, 0.16);
}

.ring-step-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ring-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 4px rgba(36, 56, 62, 0.08);
}

.ring-step-badge[data-ring-step="inner"] {
  background: #dff3ea;
  color: #1f5c48;
}

.ring-step-badge[data-ring-step="middle"] {
  background: #fce8df;
  color: #7c3f2c;
}

.ring-step-badge[data-ring-step="outer"] {
  background: #ebe6fa;
  color: #493d78;
}

.ring-step-arrow {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink-muted);
}

.title-guide-ribbon p,
.title-art > p:last-child {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ink-primary);
  line-height: 1.4;
}

/* ==========================================================================
   2. 소리 설정 및 아코디언 패널 공통 (#audio-panel, #save-panel, #art-panel)
   ========================================================================== */
details {
  margin: 14px 0;
  background: rgba(255, 253, 248, 0.95);
  border: 2px solid #e4dbc9;
  border-radius: 20px;
  padding: 6px 14px;
  box-shadow: var(--shadow-clay-card);
}

summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-primary);
  list-style: none;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 15px;
  color: var(--ink-muted);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(180deg);
}

.audio-controls-body,
.panel-body {
  padding: 6px 0 10px;
  border-top: 1.5px dashed #e6ddd0;
}

.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-primary);
}

.setting + .setting {
  border-top: 1px solid #f1eae0;
}

.setting input[type="range"] {
  min-height: 44px;
  width: 60%;
  accent-color: var(--clay-teal);
}

.setting input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--clay-teal);
}

#audio-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 6px 0 2px;
  text-align: right;
}

/* ==========================================================================
   3. 타이틀 홈 / 오늘의 챌린지 & 연속 학습 스트릭 (#stage-screen)
   SOURCES.md: 15_daily_challenge_banner, 14_streak_flames_5
   ========================================================================== */
#stage-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 12px;
}

.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

#stage-heading {
  font-size: 21px;
  font-weight: 850;
  color: var(--ink-primary);
}

.section-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--clay-teal);
  background: var(--clay-mint);
  border: 1.5px solid #b7e2cf;
  padding: 4px 10px;
  border-radius: 999px;
}

/* 오늘의 챌린지 배너 버튼 (15_daily_challenge_banner) */
.daily-banner {
  position: relative;
  width: 100%;
  min-height: 144px;
  padding: 20px 18px;
  text-align: left;
  border-radius: 24px;
  border: 3px solid #ffffff;
  background-color: #cfe6e7;
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.92) 0%, rgba(255, 253, 248, 0.65) 46%, rgba(255, 253, 248, 0) 78%),
    url('../assets/ui/15_daily_challenge_banner.webp'),
    var(--flow-daily-banner);
  background-position: center, right 52%, right 52%;
  background-size: cover;
  font-size: 21px;
  font-weight: 900;
  color: #1e373d;
  text-shadow: 0 1px 0 #ffffff;
  box-shadow:
    0 7px 0 #b8d3d4,
    0 14px 26px rgba(42, 86, 92, 0.16),
    inset 0 2px 0 #ffffff;
}

.daily-banner:hover:not(:disabled) {
  background-color: #d6ecee;
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.95) 0%, rgba(255, 253, 248, 0.7) 48%, rgba(255, 253, 248, 0) 80%),
    url('../assets/ui/15_daily_challenge_banner.webp'),
    var(--flow-daily-banner);
}

.daily-banner span {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #245b59;
  max-width: 190px;
  background: rgba(255, 249, 235, 0.95);
  border: 1.5px solid #ffffff;
  padding: 6px 11px;
  border-radius: 12px;
  margin-top: 10px;
  box-shadow: 0 3px 8px rgba(36, 56, 62, 0.1);
}

.daily-meta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#daily-description {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-secondary);
  padding: 0 4px;
}

#streak-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffdf7 0%, #fff3df 100%);
  border: 2px solid #f2dec0;
  font-size: 14.5px;
  font-weight: 800;
  color: #5a3e1b;
  box-shadow: 0 4px 0 #e9d2b0, 0 6px 14px rgba(90, 62, 27, 0.07);
}

#streak-flame {
  width: 34px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 5px rgba(214, 108, 36, 0.28));
}

/* ==========================================================================
   4. 챕터 선택기 & 월드맵 프리뷰 (.chapter-picker, .chapter-map, .map-nodes)
   ========================================================================== */
.chapter-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 2px solid #e4dbc9;
  border-radius: 20px;
  box-shadow: var(--shadow-clay-card);
}

.chapter-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink-primary);
}

.chapter-picker select {
  min-height: 48px;
  min-width: 96px;
  max-width: 140px;
  border: 2px solid #d5cbbd;
  background: #ffffff;
  border-radius: 14px;
  padding: 6px 12px;
  font-weight: 800;
  color: var(--ink-primary);
  box-shadow: inset 0 2px 4px rgba(36, 56, 62, 0.05);
}

.chapter-picker button {
  min-width: 52px;
  min-height: 48px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 900;
}

.stage-grid {
  display: block;
}

.chapter-map {
  position: relative;
  padding: 18px 14px 24px;
  border-radius: 26px;
  border: 3px solid #ffffff;
  background-color: #d4ecdb;
  background-size: cover;
  background-position: center;
  min-height: 540px;
  box-shadow:
    0 8px 0 #c8d9ce,
    0 16px 30px rgba(45, 68, 58, 0.14);
}

.chapter-map[data-theme="0"] {
  background-image:
    url('../assets/ui/04_map_ch1_forest_cafe.webp'),
    var(--flow-map-ch1);
}

.chapter-map[data-theme="1"] {
  background-image:
    url('../assets/ui/05_map_ch2_airport.webp'),
    var(--flow-map-ch2);
}

.chapter-map[data-theme="2"] {
  background-image:
    url('../assets/ui/06_map_ch3_office_sunset.webp'),
    var(--flow-map-ch3);
}

.chapter-map h3 {
  background: rgba(255, 252, 243, 0.94);
  border: 2px solid #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 0 16px;
  font-size: 16.5px;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 4px 10px rgba(36, 56, 62, 0.1);
}

.map-nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 36px;
}

.map-nodes button {
  background: rgba(255, 255, 246, 0.95);
  border: 2.5px solid #ffffff;
  border-radius: 22px;
  box-shadow:
    0 5px 0 rgba(98, 139, 123, 0.45),
    0 8px 16px rgba(36, 56, 62, 0.12);
  font-size: 16.5px;
  font-weight: 850;
  min-height: 68px;
  padding: 10px 8px;
  line-height: 1.45;
}

.map-nodes button:nth-child(2n) {
  transform: translateY(18px);
}

.map-nodes button:nth-child(2n):active:not(:disabled) {
  transform: translateY(20px) scale(0.97);
}

.map-nodes small {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-secondary);
}

/* ==========================================================================
   5. 저장 코드 패널 (#save-panel) & 도리 아틀리에 갤러리 (#art-panel)
   SOURCES.md: 01_dori_ref_sheet, 02_dori_expressions_7, 20_dori_skins_6,
               21_play_feature_graphic_1024x500, 23_app_icon_b, 24/25_hero_books
   ========================================================================== */
#storage-status {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

#save-panel label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

textarea#save-code {
  display: block;
  width: 100%;
  margin: 6px 0 10px;
  border: 2px solid #d5cbbd;
  border-radius: 14px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink-primary);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  resize: vertical;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.actions button {
  flex: 1;
}

#save-message {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--clay-teal);
  margin-top: 6px;
  min-height: 20px;
}

/* 도리 아틀리에 쇼케이스 (#art-panel) */
#art-panel {
  background: linear-gradient(180deg, #fffdf9 0%, #f8f2fc 100%);
  border-color: #dfd4ec;
}

.atelier-intro,
#art-panel .panel-body > p:first-child {
  font-size: 13.5px;
  font-weight: 700;
  color: #544975;
  margin-bottom: 10px;
}

.art-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.art-gallery img {
  width: 100%;
  height: 184px;
  object-fit: contain;
  border-radius: 16px;
  padding: 6px;
  background:
    radial-gradient(circle at 50% 45%, #ffffff 0%, #f3ece4 100%);
  border: 2px solid #ffffff;
  box-shadow:
    0 4px 0 #e2d8cc,
    0 6px 14px rgba(52, 44, 68, 0.08);
  transition: transform 0.2s ease;
}

.art-gallery img:hover {
  transform: translateY(-2px);
}

.feature-art {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 18px;
  border: 2.5px solid #ffffff;
  box-shadow:
    0 5px 0 #dfd5c6,
    0 10px 20px rgba(52, 44, 68, 0.12);
}

/* ==========================================================================
   6. 오류 화면 & 플레이/결과 화면 호환 규칙 (#load-error, #play-screen, footer)
   ========================================================================== */
#load-error {
  padding: 22px 18px;
  background: #fff9e9;
  border: 2px solid #ebd9b4;
  border-radius: 22px;
  box-shadow: var(--shadow-clay-card);
  text-align: center;
}

#load-error h2 {
  margin-bottom: 8px;
}

#load-error p {
  margin-bottom: 14px;
  color: var(--ink-secondary);
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.dori-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fffdf7;
  border-radius: 18px;
  padding: 6px 12px;
  min-height: 90px;
}

#puzzle-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ecf3fa url('../assets/ui/09_board_bg_lavender_blue.webp') center / cover;
  touch-action: none;
  user-select: none;
  overflow: hidden;
  isolation: isolate;
}

.letter-tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--tile-size, 32px);
  height: var(--tile-size, 32px);
  max-width: 34px;
  max-height: 34px;
  font-size: var(--tile-font, 18px);
  font-weight: 800;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.primary {
  width: 100%;
  margin: 8px 0;
  background: linear-gradient(180deg, #327c77 0%, #245b59 100%);
  color: #ffffff;
  border-color: #1e4d4b;
  box-shadow: var(--shadow-clay-primary);
}

footer {
  margin-top: 30px;
  padding-top: 12px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

/* ==========================================================================
   7. 반응형 및 접근성 미디어 쿼리 (360px 소형 화면 & 모션 감소 대응)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 360px) {
  main#app {
    padding: 12px 10px 36px;
  }

  .title-art {
    min-height: 308px;
    padding: 14px 12px;
  }

  .title-brand-card {
    padding: 8px 10px;
    gap: 10px;
  }

  .title-app-emblem {
    width: 48px;
    height: 48px;
  }

  .title-art h1 {
    font-size: 25px;
  }

  .title-guide-ribbon {
    margin-top: 96px;
    padding: 8px 10px;
  }

  .title-guide-ribbon p {
    font-size: 12px;
  }

  .daily-banner {
    min-height: 128px;
    padding: 16px 14px;
    font-size: 19px;
  }

  .map-nodes {
    gap: 16px 24px;
  }

  .art-gallery img {
    height: 156px;
  }
}
