/* =========================================
   뚱냥클릭커 - 전체 스타일
   기본 테마 + 겨울 얼음왕국 테마
========================================= */

:root {
  --ink: #40343a;
  --muted: #9b8c94;
  --pink: #ff8eae;
  --pink-dark: #f46e98;
  --pink-light: #fff0f5;
  --cream: #fffaf4;
  --purple: #a998d9;
  --line: #f1e7e8;
  --shadow: 0 12px 35px rgba(94, 64, 78, .07);
  --surface: #ffffff;
  --page-bg: #fffaf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Noto Sans KR", sans-serif;
  transition: background .35s, color .35s;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(120, 184, 226, .45);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

/* =========================================
   상단 바
========================================= */

.topbar {
  height: 72px;
  padding: 0 4.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  border: 0;
  background: none;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font: 25px "Jua", sans-serif;
}

.brand-icon {
  font-size: 30px;
}

.top-info {
  display: flex;
  gap: 22px;
  color: #8e7d85;
  font-size: 13px;
  align-items: center;
}

.top-info b {
  color: #e77a9b;
}

/* =========================================
   전체 레이아웃
========================================= */

.app-layout {
  display: flex;
  min-height: calc(100vh - 72px);
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  padding: 30px 17px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.side-profile {
  text-align: center;
  padding: 12px 5px 27px;
  border-bottom: 1px dashed var(--line);
}

.mini-cat {
  width: 78px;
  height: 78px;
  border-radius: 27px;
  background: #fff0f4;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 28px;
  color: #b27b8d;
}

.side-profile strong {
  display: block;
  font: 20px "Jua", sans-serif;
}

.side-profile span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}

.side-nav {
  display: grid;
  gap: 9px;
  margin-top: 27px;
}

.nav-btn {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 14px 15px;
  border-radius: 13px;
  color: #82727a;
  font-weight: 700;
  transition: .2s;
}

.nav-btn:hover,
.nav-btn.active {
  color: #df668b;
  background: #fff0f5;
  transform: translateX(3px);
}

.sidebar-bottom {
  margin-top: auto;
  text-align: center;
  color: #b5a5ab;
  font-size: 12px;
  padding-top: 30px;
}

.paw {
  display: block;
  margin-top: 9px;
  font-size: 19px;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 42px clamp(22px, 5vw, 70px) 70px;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

/* =========================================
   페이지 공통
========================================= */

.page {
  display: none;
  animation: pageIn .35s ease both;
}

.page.active {
  display: block;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font: 34px "Jua", sans-serif;
  letter-spacing: -.5px;
  margin-bottom: 9px;
}

h1 span {
  font-family: sans-serif;
}

.eyebrow {
  color: #e985a3;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 900;
  margin: 0 0 9px;
}

.sub-text,
.page-heading p:last-child {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

.page-heading {
  margin-bottom: 28px;
}

.page-heading h1 {
  margin-bottom: 8px;
}

/* =========================================
   버튼
========================================= */

.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 12px;
  padding: 13px 19px;
  font-weight: 800;
  transition: .2s;
}

.primary-btn {
  background: var(--pink);
  color: white;
  box-shadow: 0 5px 0 #e97899;
}

.primary-btn:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #e97899;
}

.primary-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #e97899;
}

.secondary-btn {
  background: #f5efff;
  color: #8c79b9;
}

.secondary-btn:hover {
  background: #ebe2ff;
}

.small {
  padding: 9px 14px;
  font-size: 12px;
  border-radius: 10px;
}

.back-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 9px 14px;
  color: #95828c;
  font-size: 12px;
  font-weight: 800;
}

.back-btn:hover {
  background: #fff0f5;
  color: #df6f93;
}

/* =========================================
   홈 - 환영 영역
========================================= */

.welcome-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}

.date-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 16px;
  color: #9a8790;
  font-size: 12px;
  white-space: nowrap;
}

.hero-card {
  min-height: 265px;
  border-radius: 26px;
  padding: 35px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  background: linear-gradient(115deg, #ffeaf1, #fff3e9 75%, #f5edff);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-label {
  color: #d77c98;
  font-size: 12px;
  font-weight: 800;
}

.hero-copy h2 {
  font: 31px "Jua", sans-serif;
  margin: 9px 0;
}

.hero-copy p {
  color: #9b7887;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero-cat-wrap {
  position: relative;
  width: 240px;
  height: 210px;
  display: grid;
  place-items: center;
}

.hero-cat {
  position: relative;
  width: 145px;
  height: 160px;
  animation: catFloat 2.8s ease-in-out infinite;
}

.cat-face {
  position: absolute;
  width: 125px;
  height: 105px;
  background: #fff;
  border: 3px solid #9c8184;
  border-radius: 47% 47% 43% 43%;
  top: 12px;
  left: 10px;
  z-index: 2;
  box-shadow: inset 0 -7px #f8e6e6;
}

.cat-ears i {
  position: absolute;
  width: 42px;
  height: 48px;
  background: #fff;
  border: 3px solid #9c8184;
  top: 0;
  border-radius: 10px 35px 5px 5px;
  transform: rotate(-13deg);
}

.cat-ears i:first-child {
  left: 12px;
}

.cat-ears i:last-child {
  right: 9px;
  transform: rotate(13deg) scaleX(-1);
}

.cat-eye {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 50%;
  background: #51434a;
  top: 43px;
}

.cat-eye.left {
  left: 36px;
}

.cat-eye.right {
  right: 36px;
}

.cat-blush {
  position: absolute;
  top: 59px;
  width: 17px;
  height: 8px;
  border-radius: 50%;
  background: #ffb4c7;
}

.cat-blush.left {
  left: 15px;
}

.cat-blush.right {
  right: 15px;
}

.cat-nose {
  position: absolute;
  left: 58px;
  top: 60px;
  width: 8px;
  height: 6px;
  background: #e78ba5;
  border-radius: 50%;
}

.cat-mouth {
  position: absolute;
  top: 62px;
  left: 52px;
  color: #76535d;
  font: 19px "Jua", sans-serif;
}

.cat-body {
  position: absolute;
  width: 112px;
  height: 65px;
  border: 3px solid #9c8184;
  background: white;
  border-radius: 50% 50% 35% 35%;
  left: 17px;
  top: 98px;
}

.cat-tail {
  position: absolute;
  width: 49px;
  height: 32px;
  border: 9px solid white;
  border-right-color: #9c8184;
  border-top-color: #9c8184;
  border-radius: 50%;
  right: -5px;
  bottom: 2px;
  transform: rotate(15deg);
}

.hero-ground {
  position: absolute;
  width: 180px;
  height: 18px;
  background: #e7c9d4;
  border-radius: 50%;
  bottom: 7px;
  opacity: .45;
}

.hero-spark {
  position: absolute;
  color: #eaa2b8;
  font-size: 30px;
  animation: sparkle 1.8s infinite;
}

.spark-one {
  left: 10px;
  top: 23px;
}

.spark-two {
  right: 4px;
  bottom: 35px;
  animation-delay: .7s;
}

@keyframes catFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: .35;
    transform: scale(.8) rotate(0);
  }

  50% {
    opacity: 1;
    transform: scale(1.2) rotate(20deg);
  }
}

/* =========================================
   홈 - 대시보드
========================================= */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 34px 0 17px;
}

.section-heading h2 {
  font: 23px "Jua", sans-serif;
  margin-bottom: 4px;
}

.section-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.pill,
.game-tag {
  border-radius: 30px;
  padding: 7px 12px;
  color: #d77998;
  background: #fff0f5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .7px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 15px;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 21px;
  min-width: 0;
}

.dash-icon {
  font-size: 22px;
  margin-bottom: 11px;
}

.dash-title {
  color: #8f7f86;
  font-size: 12px;
  font-weight: 700;
}

.big-number {
  font: 31px "Jua", sans-serif;
  margin: 8px 0 13px;
}

.big-number small {
  color: #aa9ba1;
  font: 12px "Noto Sans KR", sans-serif;
}

.muted {
  color: #ac9da3;
  font-size: 11px;
  line-height: 1.6;
}

.progress-track {
  height: 9px;
  background: #f6edf0;
  border-radius: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff9cb8, #ffc4a8);
  border-radius: inherit;
  transition: width .4s;
}

.timer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.timer-actions span {
  color: #ad9da4;
  font-size: 11px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.shortcut-card {
  text-align: left;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 19px;
  background: var(--surface);
  display: grid;
  gap: 6px;
  transition: .2s;
  color: var(--ink);
}

.shortcut-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #ffd0dd;
}

.shortcut-card > span {
  font-size: 25px;
}

.shortcut-card b {
  font: 18px "Jua", sans-serif;
}

.shortcut-card small {
  color: #a6969d;
  font-size: 11px;
}

.shortcut-card i {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #e887a4;
  font-style: normal;
}

/* =========================================
   타자연습
========================================= */

.practice-panel,
.key-training-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 25px;
  box-shadow: var(--shadow);
}

.practice-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mode-group {
  display: inline-flex;
  background: #f8f3f4;
  border-radius: 12px;
  padding: 4px;
  gap: 3px;
}

.mode-btn {
  border: 0;
  background: transparent;
  padding: 9px 17px;
  border-radius: 9px;
  color: #a29399;
  font-size: 12px;
  font-weight: 800;
}

.mode-btn.active {
  color: #df6f93;
  background: var(--surface);
  box-shadow: 0 2px 7px #e9dfe2;
}

.question-card {
  text-align: center;
  background: #fff8f5;
  border: 1px dashed #f4d8d8;
  border-radius: 18px;
  padding: 35px 15px;
  margin: 22px 0 17px;
}

.question-label {
  color: #b29ba2;
  font-size: 12px;
}

.typing-question {
  font: 38px "Jua", sans-serif;
  margin: 15px 0 8px;
  color: #59464e;
  overflow-wrap: anywhere;
}

.typing-hint {
  color: #b09fa5;
  font-size: 12px;
}

.typing-input-wrap {
  position: relative;
}

.typing-input-wrap input,
.game-answer-row input {
  width: 100%;
  padding: 17px 90px 17px 18px;
  border: 2px solid #f3e7e9;
  background: var(--surface);
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
}

.typing-input-wrap input:focus,
.game-answer-row input:focus {
  border-color: #ff9bb8;
  box-shadow: 0 0 0 4px #fff0f5;
}

.enter-hint {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #c1aeb6;
  font-size: 10px;
  font-weight: 900;
}

.typing-feedback {
  min-height: 28px;
  text-align: center;
  padding: 12px 0 4px;
  color: #b18d9c;
  font-size: 12px;
  font-weight: 700;
}

.typing-feedback.good {
  color: #3f9678;
}

.typing-feedback.bad {
  color: #d65e76;
}

.practice-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
}

.practice-stats div {
  text-align: center;
  border-right: 1px solid var(--line);
}

.practice-stats div:last-child {
  border: 0;
}

.practice-stats span,
.practice-stats small {
  display: block;
  color: #ac9da3;
  font-size: 10px;
}

.practice-stats b {
  font: 24px "Jua", sans-serif;
  display: inline-block;
  margin: 5px 3px;
}

.tip-card {
  background: #fff4e9;
  border-radius: 13px;
  padding: 15px 18px;
  margin-top: 17px;
  color: #a98a72;
  font-size: 12px;
}

/* =========================================
   코딩 타자 교실
========================================= */

.coding-learning-section {
  margin-top: 42px;
}

.coding-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.coding-section-heading h2 {
  font: 25px "Jua", sans-serif;
  margin-bottom: 7px;
}

.coding-section-heading p:last-child {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}

.coding-beginner-badge {
  background: #f0f8ff;
  color: #5b8eb8;
  border-radius: 30px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.coding-mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.coding-mode-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 13px;
  text-align: left;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: .2s;
}

.coding-mode-card:hover,
.coding-mode-card.selected {
  border-color: #b6d8f1;
  background: #f5faff;
  transform: translateY(-2px);
}

.coding-mode-icon {
  font-size: 25px;
}

.coding-mode-card b {
  font-size: 12px;
}

.coding-mode-card small {
  color: #8f8087;
  font-size: 10px;
  line-height: 1.6;
}

.coding-mode-card em {
  font-size: 9px;
  font-style: normal;
  color: #5c91bc;
  font-weight: 800;
}

.coding-practice-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 23px;
}

.coding-practice-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.coding-current-level {
  color: #5f8fb8;
  font-size: 10px;
  font-weight: 900;
}

.coding-practice-top h3 {
  font: 21px "Jua", sans-serif;
  margin: 7px 0 0;
}

.coding-round {
  background: #eff7ff;
  color: #5b8eb8;
  border-radius: 30px;
  padding: 7px 12px;
  font-size: 11px;
  white-space: nowrap;
}

.coding-progress-track {
  height: 7px;
  border-radius: 20px;
  background: #edf3f8;
  overflow: hidden;
  margin: 18px 0;
}

.coding-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #9ac9ec, #b8d9f2);
  transition: width .3s;
}

.coding-question-label {
  color: #8f8087;
  font-size: 11px;
}

.coding-prompt {
  padding: 20px;
  border-radius: 13px;
  background: #1d354d;
  color: #e4f4ff;
  font: 16px Consolas, monospace;
  overflow-wrap: anywhere;
  line-height: 1.8;
}

.coding-explanation {
  color: #798c9c;
  font-size: 11px;
  margin: 13px 0;
  line-height: 1.7;
}

.coding-answer-row {
  display: flex;
  gap: 9px;
}

.coding-answer-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d9e7f2;
  border-radius: 11px;
  padding: 13px;
  outline: none;
  font-family: Consolas, monospace;
  background: var(--surface);
  color: var(--ink);
}

.coding-answer-row input:focus {
  border-color: #9bc6e6;
}

.coding-feedback {
  color: #8f8087;
  font-size: 11px;
  min-height: 25px;
  margin-top: 13px;
}

.coding-feedback.good {
  color: #3f9678;
  font-weight: 700;
}

.coding-feedback.bad {
  color: #d65e76;
  font-weight: 700;
}

.coding-next-button {
  margin-top: 5px;
}

.coding-session-result {
  text-align: center;
  padding: 20px 0 5px;
}

.coding-result-emoji {
  font-size: 42px;
}

.coding-session-result h3 {
  font: 24px "Jua", sans-serif;
  margin: 9px 0;
}

.coding-session-result p {
  color: var(--muted);
  font-size: 12px;
}

.coding-wrong-notes {
  text-align: left;
  margin: 15px 0;
}

.coding-wrong-note {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.coding-choice-tip {
  margin-top: 13px;
  color: #8f8087;
  font-size: 11px;
}

/* =========================================
   코딩 백과사전
========================================= */

.dictionary-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 24px;
}

.dictionary-search-row {
  position: relative;
}

.dictionary-search-row input {
  width: 100%;
  padding: 15px 48px 15px 17px;
  border: 1px solid #e6dce1;
  border-radius: 12px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
}

.dictionary-search-row input:focus {
  border-color: #a9cde9;
}

.dictionary-search-row > span {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 25px;
  color: #9e94ad;
}

.dictionary-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 17px 0;
}

.dictionary-filter {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  color: #8d7e86;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 800;
}

.dictionary-filter.active {
  color: #4f85b0;
  background: #eff7ff;
  border-color: #b7d7f0;
}

.dictionary-result-count {
  color: #96878e;
  font-size: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.dictionary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 15px;
}

.dictionary-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  background: var(--surface);
}

.dictionary-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.dictionary-category {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff7ff;
  color: #5389b5;
}

.dictionary-item h3 {
  font: 17px "Jua", sans-serif;
  margin-bottom: 6px;
}

.dictionary-item p {
  color: #8c7d85;
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 0;
}

.dictionary-item code {
  color: #4880ad;
  background: #eff7ff;
  padding: 3px 6px;
  border-radius: 5px;
}

.dictionary-item details {
  margin-top: 8px;
}

.dictionary-item summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #5f92bc;
}

.dictionary-item details p {
  margin-top: 6px;
}

.dictionary-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 35px 10px;
  color: #96878e;
  font-size: 12px;
}

/* =========================================
   미니게임 선택
========================================= */

.game-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.game-select-card {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  text-align: left;
  color: var(--ink);
  transition: .25s;
}

.game-select-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 17px 35px #9b73801a;
  border-color: #f6c6d3;
}

.game-card-art {
  height: 205px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.treat-art {
  background: linear-gradient(135deg, #ffe3e9, #fff0d9);
}

.art-cat {
  font-size: 88px;
  filter: drop-shadow(0 10px 5px #dca7b866);
  animation: catFloat 2.5s infinite;
}

.art-treat {
  position: absolute;
  font-size: 40px;
  right: 24%;
  top: 28%;
  animation: treatBob 1.5s infinite;
}

.art-cloud {
  position: absolute;
  top: 25px;
  left: 18%;
  color: white;
  font-size: 28px;
}

.art-star {
  position: absolute;
  bottom: 28px;
  right: 18%;
  font-size: 30px;
}

@keyframes treatBob {
  0%,
  100% {
    transform: translateY(0) rotate(-10deg);
  }

  50% {
    transform: translateY(-13px) rotate(12deg);
  }
}

.key-art {
  background: linear-gradient(135deg, #e9e4ff, #e1f2ff);
}

.mini-keyboard {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 5px;
  transform: rotate(-8deg);
}

.mini-keyboard span {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 7px;
  background: white;
  box-shadow: 0 4px #c9c1e3;
  color: #8d80bd;
  font: 15px "Jua", sans-serif;
}

.mini-keyboard span:nth-child(3n) {
  background: #ffb7ce;
  color: white;
}

.key-art-cat {
  position: absolute;
  right: 15%;
  bottom: 16px;
  font-size: 54px;
}

.code-art {
  background: linear-gradient(135deg, #e5f2ff, #e9e5ff);
}

.code-art-symbol {
  font: 65px "Jua", sans-serif;
  color: #6f95bd;
}

.code-art-cat {
  position: absolute;
  right: 17%;
  bottom: 15px;
  font-size: 54px;
}

.code-art-star {
  position: absolute;
  left: 17%;
  top: 25px;
  font-size: 27px;
}

.game-card-content {
  padding: 22px;
}

.game-card-content h2 {
  font: 23px "Jua", sans-serif;
  margin: 12px 0 8px;
}

.game-card-content p {
  min-height: 45px;
  color: #8c7d85;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.game-card-bottom {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #9c8d94;
  font-size: 10px;
}

.game-card-bottom b {
  color: #df7796;
  font-size: 11px;
}

/* =========================================
   게임 공통
========================================= */

.game-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.active-game-heading {
  text-align: center;
  margin-bottom: 22px;
}

.active-game-heading h1 {
  font-size: 29px;
}

.active-game-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

/* =========================================
   츄르 게임
========================================= */

.treat-game {
  max-width: 850px;
  margin: 0 auto;
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  margin-bottom: 12px;
  padding: 13px 8px;
}

.game-hud div {
  text-align: center;
  border-right: 1px solid var(--line);
}

.game-hud div:last-child {
  border: 0;
}

.game-hud span {
  display: block;
  color: #9c8d94;
  font-size: 10px;
}

.game-hud b {
  font: 24px "Jua", sans-serif;
  display: inline-block;
  margin: 3px 3px 0;
  color: #54434b;
}

.game-hud small {
  color: #9e8f96;
  font-size: 10px;
}

.game-arena {
  height: 340px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(#dff4ff 0%, #fff4dc 75%, #f8d9b9 100%);
  border: 1px solid #e8e7df;
}

.arena-sun {
  position: absolute;
  top: 22px;
  right: 12%;
  font-size: 38px;
}

.arena-cloud {
  position: absolute;
  font-size: 40px;
  opacity: .7;
  animation: cloudDrift 8s linear infinite;
}

.cloud-a {
  top: 40px;
  left: 10%;
}

.cloud-b {
  top: 90px;
  left: 57%;
  animation-delay: -4s;
}

@keyframes cloudDrift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100px);
  }
}

.arena-hill {
  position: absolute;
  bottom: 40px;
  width: 70%;
  height: 110px;
  background: #b9dca9;
  border-radius: 50% 50% 0 0;
}

.hill-a {
  left: -20%;
}

.hill-b {
  right: -25%;
  height: 85px;
  background: #a7d29c;
}

.arena-ground-line {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 53px;
  background: repeating-linear-gradient(90deg, #d5b88e 0 35px, #dfc69f 35px 70px);
  border-top: 6px solid #a8cf91;
}

.runner-cat {
  position: absolute;
  z-index: 3;
  left: 14%;
  bottom: 37px;
  width: 85px;
  height: 90px;
  transition: left .35s, transform .25s;
}

.runner-cat.jump .runner-body {
  transform: translateY(-24px) scale(1.06);
}

.runner-cat.hit .runner-body {
  transform: rotate(-8deg) scale(0.95);
}

.runner-body {
  font-size: 68px;
  filter: drop-shadow(0 5px 2px #8b6c6240);
  transform-origin: bottom center;
  transition: transform .2s ease;
}

.runner-shadow {
  width: 62px;
  height: 10px;
  background: #725f4b44;
  border-radius: 50%;
  margin: -2px auto;
}

.falling-item {
  position: absolute;
  top: 26%;
  right: 25%;
  font-size: 35px;
  z-index: 4;
  transition: transform .25s ease, top .35s ease;
}

.falling-item.drop {
  animation: itemBounce 1.2s ease-in-out infinite alternate;
}

@keyframes itemBounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(18px);
  }
}

.arena-message {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffffd9;
  border-radius: 30px;
  padding: 8px 15px;
  font-size: 11px;
  color: #5b4c54;
  font-weight: 700;
  white-space: nowrap;
  z-index: 5;
}

.arena-start,
.arena-result {
  position: absolute;
  z-index: 10;
  inset: 0;
  background: rgba(255, 255, 255, .88);
  color: #40343a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.start-emoji,
.result-emoji {
  font-size: 47px;
}

.arena-start h3,
.arena-result h2 {
  font: 26px "Jua", sans-serif;
  margin: 9px 0;
}

.arena-start p,
.arena-result p {
  color: #7c6d75;
  font-size: 12px;
  margin-bottom: 17px;
  white-space: pre-line;
}

.arena-result .secondary-btn {
  margin-top: 12px;
}

.game-word-panel {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 20px;
  text-align: center;
}

.game-word-panel > span {
  color: #9c8d94;
  font-size: 11px;
}

#gameWord {
  font: 30px "Jua", sans-serif;
  margin: 9px 0 14px;
}

.game-answer-row {
  display: flex;
  gap: 10px;
}

.game-answer-row input {
  flex: 1;
  min-width: 0;
}

#gameFeedback {
  margin: 12px 0 0;
  color: #8c7d85;
  font-size: 11px;
}

/* =========================================
   키캡 연구소
========================================= */

.key-training-panel {
  max-width: 1000px;
  margin: 0 auto;
}

.key-game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.key-score {
  color: #8c7d85;
  font-size: 12px;
}

.key-score b {
  color: #568cb8;
  font: 20px "Jua", sans-serif;
}

.keycap-customize-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  padding: 13px;
  background: #faf8ff;
  border-radius: 13px;
}

.keycap-theme-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.keycap-theme-picker > span {
  color: #8c7d85;
  font-size: 11px;
  font-weight: 800;
  margin-right: 4px;
}

.keycap-theme-btn,
.keycap-sound-btn {
  border: 1px solid #dfd7ea;
  border-radius: 30px;
  padding: 8px 12px;
  background: #ffffff;
  color: #7c6e85;
  font-size: 10px;
  font-weight: 800;
}

.keycap-theme-btn.active {
  background: #eaf5ff;
  color: #4986b5;
  border-color: #a6d0ee;
}

.keycap-sound-btn {
  background: #ffffff;
  color: #5c83a8;
}

.key-prompt {
  text-align: center;
  background: #f8f5ff;
  border-radius: 17px;
  padding: 21px;
  margin: 20px 0;
}

.key-prompt > span {
  color: #8d7ea3;
  font-size: 12px;
}

#keyTarget {
  font: 54px "Jua", sans-serif;
  color: #6d669e;
  margin: 5px 0;
}

.key-prompt p {
  color: #978ba6;
  font-size: 11px;
  margin: 0;
}

.keyboard-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 12px 4px 20px;
}

.keyboard {
  position: relative;
  min-width: 620px;
  width: 100%;
  background: #eae6f3;
  border: 1px solid #d8d1e5;
  border-radius: 16px;
  padding: 15px;
  display: grid;
  gap: 7px;
  box-shadow: 0 8px 0 #d4cde1;
}

.key-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.key {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #6a627d;
  box-shadow: 0 4px 0 #c9c3d6;
  font-size: 13px;
  font-weight: 900;
  position: relative;
  transition: .1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.key small {
  position: absolute;
  right: 5px;
  bottom: 4px;
  font-size: 8px;
  color: #9d96ab;
}

.key:hover {
  background: #f2f9ff;
}

.key:active,
.key.pressed {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #c9c3d6;
}

.key.target,
.key.target-key {
  background: #a9d8f4;
  color: #2f6994;
  box-shadow: 0 4px 0 #78b6dc;
  animation: keyPulse 1s infinite;
}

@keyframes keyPulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.1);
  }
}

.key.wide {
  flex: 1.6;
}

.key.extra-wide {
  flex: 1.9;
  font-size: 10px;
}

.space-key {
  flex: 5;
  font-size: 10px;
  letter-spacing: 2px;
}

.key-feedback {
  text-align: center;
  color: #8d7ea3;
  font-size: 12px;
  font-weight: 700;
  min-height: 25px;
  margin-top: 13px;
}

.key-feedback.good {
  color: #3f9678;
}

.key-feedback.bad {
  color: #d65e76;
}

.key-game-bottom {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #8c7d85;
  font-size: 10px;
}

/* 고양이 키캡 테마 */

.keyboard.theme-kitty {
  background: #fcecf3;
  border-color: #f4cbdc;
  box-shadow: 0 8px 0 #ecc4d5;
}

.keyboard.theme-kitty .key {
  background: #fff8fc;
  color: #965f7d;
  box-shadow: 0 4px 0 #e8bfd2;
}

.keyboard.theme-kitty .key.target,
.keyboard.theme-kitty .key.target-key {
  background: #b9e0fa;
  color: #376e96;
  box-shadow: 0 4px 0 #82b9dc;
}

/* =====================================
   겨울 얼음 자판 + 고양이 발자국
===================================== */

.ice-sparkles {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.ice-sparkles span {
  position: absolute;
  color: #ffffff;
  text-shadow: 0 0 10px #8ae4ff, 0 0 18px #3aa6dc;
  animation: iceTwinkle 2.2s ease-in-out infinite;
}

.ice-sparkles span:nth-child(1) {
  left: 12px;
  top: 8px;
  font-size: 14px;
  animation-delay: 0s;
}

.ice-sparkles span:nth-child(2) {
  left: 28%;
  top: 6px;
  font-size: 13px;
  animation-delay: .5s;
}

.ice-sparkles span:nth-child(3) {
  right: 22%;
  top: 8px;
  font-size: 14px;
  animation-delay: 1s;
}

.ice-sparkles span:nth-child(4) {
  left: 16px;
  bottom: 10px;
  font-size: 15px;
  animation-delay: 1.4s;
}

@keyframes iceTwinkle {
  0%,
  100% {
    opacity: .45;
    transform: scale(.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.22);
  }
}

.ice-paw-trail {
  display: none;
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: 8px;
  width: 126px;
  height: 92px;
  pointer-events: none;
  transform: rotate(-18deg);
}

.ice-paw-trail span {
  position: absolute;
  color: #f2fcff;
  font-size: 20px;
  opacity: .92;
  filter: drop-shadow(0 2px 5px rgba(24, 96, 148, 0.55));
}

.ice-paw-trail span:nth-child(1) {
  left: 4px;
  bottom: 4px;
  transform: rotate(-14deg) scale(0.92);
}

.ice-paw-trail span:nth-child(2) {
  left: 34px;
  bottom: 24px;
  transform: rotate(8deg) scale(0.96);
}

.ice-paw-trail span:nth-child(3) {
  left: 66px;
  bottom: 42px;
  transform: rotate(-10deg) scale(1);
}

.ice-paw-trail span:nth-child(4) {
  left: 96px;
  bottom: 62px;
  transform: rotate(12deg) scale(1.04);
}

#keyboard.theme-ice .ice-sparkles,
#keyboard.theme-ice .ice-paw-trail {
  display: block;
}

#keyboard.theme-ice {
  padding: 22px 16px 25px;
  overflow: hidden;
  border: 2px solid #9bdcf8;
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 82% 16%, rgba(255, 255, 255, 0.85) 0%, transparent 30%),
    radial-gradient(ellipse at 18% 85%, rgba(164, 232, 255, 0.65) 0%, transparent 35%),
    linear-gradient(145deg, #dff7ff, #a9e2fc 54%, #ccefff);
  box-shadow:
    inset 0 2px 16px rgba(255, 255, 255, 0.9),
    0 8px 0 #6caed0,
    0 18px 35px rgba(3, 29, 66, 0.35);
}

#keyboard.theme-ice .key {
  color: #144366;
  border: 1px solid #a5dff5;
  border-radius: 11px 11px 15px 15px;
  background: linear-gradient(155deg, #ffffff, #e4f8ff 58%, #b3e6fa);
  box-shadow: 0 5px 0 #75b9da, 0 7px 12px rgba(35, 93, 128, 0.22);
}

#keyboard.theme-ice .key small {
  color: #4f8fae;
}

#keyboard.theme-ice .key.target,
#keyboard.theme-ice .key.target-key {
  color: #ffffff;
  border-color: #ffffff;
  background: linear-gradient(145deg, #7be2ff, #2a8ec9);
  box-shadow: 0 5px 0 #1f6f9f, 0 0 18px rgba(166, 239, 255, 0.9);
}

#keyboard.theme-ice .key.target small,
#keyboard.theme-ice .key.target-key small {
  color: #eafaff;
}

#keyboard.theme-ice .key.pressed {
  transform: translateY(5px);
  background: linear-gradient(145deg, #ffffff, #8de1ff);
  box-shadow: 0 0 0 2px #ffffff, 0 1px 0 #5ba6ce, 0 0 22px #8ce8ff;
}

#keyboard.theme-ice .key.wrong-key {
  background: linear-gradient(145deg, #dcebff, #a3c6e8);
  border-color: #7eaed2;
}

/* =========================================
   코드 퍼즐 게임
========================================= */

.code-game-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 25px;
  border-radius: 21px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.code-game-hud {
  display: flex;
  justify-content: space-between;
  color: #8c7d85;
  font-size: 12px;
  margin-bottom: 12px;
}

.code-game-hud b {
  color: #568cb8;
  font-size: 18px;
}

.code-game-progress {
  height: 7px;
  background: #edf3f8;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 23px;
}

#codeGameProgressFill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #9ac9ec, #b8d9f2);
  transition: width .3s;
}

.code-game-category {
  display: inline-block;
  color: #4f85b0;
  background: #eff7ff;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 900;
}

#codeGamePrompt {
  font: 23px "Jua", sans-serif;
  margin: 16px 0 20px;
  line-height: 1.5;
}

.code-game-options {
  display: grid;
  gap: 10px;
}

.code-option,
.code-game-option {
  border: 1px solid #e2dced;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  background: var(--surface);
  color: #5c5269;
  font-family: Consolas, monospace;
  transition: .2s;
}

.code-option:hover,
.code-game-option:hover {
  border-color: #9bc6e6;
  background: #f5faff;
}

.code-option.correct,
.code-game-option.correct {
  border-color: #6ab696;
  background: #eaf9f2;
  color: #2f7d5d;
  font-weight: 700;
}

.code-option.wrong,
.code-option.incorrect,
.code-game-option.wrong,
.code-game-option.incorrect {
  border-color: #e68c98;
  background: #fff0f2;
  color: #b84c5c;
  font-weight: 700;
}

.code-game-feedback {
  min-height: 25px;
  margin: 15px 0;
  color: #8c7d85;
  font-size: 12px;
  line-height: 1.6;
}

.code-game-feedback.good {
  color: #3f9678;
  font-weight: 700;
}

.code-game-feedback.bad {
  color: #d65e76;
  font-weight: 700;
}

.code-game-result {
  text-align: center;
  padding: 20px 0;
}

.code-game-result h2 {
  font: 25px "Jua", sans-serif;
}

.code-game-result p {
  color: #8c7d85;
  font-size: 12px;
}

.code-game-review {
  text-align: left;
  margin: 15px 0;
}

/* =========================================
   나의 기록
========================================= */

.record-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  margin-bottom: 17px;
}

.record-toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.record-toolbar-copy b {
  font: 19px "Jua", sans-serif;
}

.record-toolbar-copy span {
  color: #8c7d85;
  font-size: 11px;
}

.record-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.record-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.record-card > span {
  font-size: 23px;
}

.record-card small {
  color: #8c7d85;
  font-size: 11px;
}

.record-card b {
  font: 25px "Jua", sans-serif;
  overflow-wrap: anywhere;
}

.record-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 17px 0;
  padding: 17px;
  border-radius: 15px;
  background: #fff4f7;
}

.record-note > span {
  font-size: 29px;
}

.record-note b {
  font: 16px "Jua", sans-serif;
}

.record-note p {
  margin: 5px 0 0;
  color: #8f7782;
  font-size: 11px;
}

.daily-record-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.daily-record-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.daily-record-heading h2 {
  font: 22px "Jua", sans-serif;
  margin-bottom: 5px;
}

.daily-record-heading p {
  color: #8c7d85;
  font-size: 11px;
  margin: 0;
}

.daily-record-badge {
  background: #fff0f5;
  color: #d77998;
  border-radius: 30px;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-record-list {
  display: grid;
  gap: 12px;
}

.daily-record-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  background: #fffdfd;
}

.daily-record-date {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.daily-record-date b {
  font: 16px "Jua", sans-serif;
}

.daily-record-date span {
  color: #8c7d85;
  font-size: 11px;
  font-weight: 700;
}

.daily-record-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.daily-record-categories > div {
  background: #faf7f9;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.daily-record-categories > div span {
  color: #8c7d85;
  font-size: 10px;
}

.daily-record-categories > div b {
  font: 14px "Jua", sans-serif;
  color: #4f4048;
}

.daily-record-categories > div small {
  color: #9c8d94;
  font-size: 10px;
}

.daily-record-empty-note {
  display: block;
  margin-top: 8px;
  color: #9c8d94;
  font-size: 11px;
}

.empty-record {
  text-align: center;
  color: #9c8d94;
  font-size: 12px;
  padding: 30px 10px;
}

/* =========================================
   설정
========================================= */

.settings-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
}

.setting-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.setting-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #eff8ff;
  border-radius: 14px;
  font-size: 24px;
  flex-shrink: 0;
}

.setting-copy b {
  font: 18px "Jua", sans-serif;
}

.setting-copy p {
  color: #8c7d85;
  font-size: 11px;
  line-height: 1.6;
  margin: 5px 0 0;
}

.switch-control {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  flex-shrink: 0;
}

.switch-control input {
  display: none;
}

.switch-slider {
  width: 48px;
  height: 27px;
  background: #d9d3da;
  border-radius: 30px;
  position: relative;
  transition: .25s;
}

.switch-slider::after {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  background: white;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: .25s;
  box-shadow: 0 2px 5px #0002;
}

.switch-control input:checked + .switch-slider {
  background: #58a9dc;
}

.switch-control input:checked + .switch-slider::after {
  transform: translateX(21px);
}

.switch-label {
  color: #7c6e76;
  font-size: 11px;
  font-weight: 800;
}

.winter-preview {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: space-between;
  background: linear-gradient(110deg, #10375e, #1a5482, #153663);
  border: 1px solid #59a8d6;
  border-radius: 15px;
  padding: 17px;
  color: #eaf8ff;
}

.winter-preview > span:first-child {
  font-size: 31px;
}

.winter-preview > span:last-child {
  color: #9ce0ff;
  font-size: 20px;
}

.winter-preview b {
  font: 15px "Jua", sans-serif;
  letter-spacing: 1px;
}

.winter-preview p {
  color: #bfe6fa;
  font-size: 10px;
  margin: 5px 0 0;
}

/* =====================================
   깊은 남색·푸른색 겨울왕국 테마
===================================== */

body.winter-theme {
  --ink: #143959;
  --muted: #4e7b9e;
  --line: #9cd2f0;
  --surface: #edf9ff;
  --page-bg: #071a36;
  --shadow: 0 12px 32px rgba(2, 15, 44, 0.45);
  background:
    radial-gradient(ellipse at 16% 12%, #23669a, transparent 36%),
    radial-gradient(ellipse at 82% 20%, #254e86, transparent 38%),
    linear-gradient(180deg, #06162e, #0a264b 48%, #113a66);
  background-attachment: fixed;
  color: #e9f7ff;
}

/* 눈 덮인 얼음 산맥 실루엣 */
body.winter-theme::before {
  content: "";
  position: fixed;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38vh;
  pointer-events: none;
  opacity: .34;
  background: linear-gradient(180deg, #68b8e8, #071a36);
  clip-path: polygon(
    0 58%, 8% 43%, 13% 56%, 20% 25%,
    25% 49%, 32% 36%, 39% 61%, 47% 17%,
    53% 48%, 60% 32%, 67% 58%, 74% 20%,
    81% 52%, 88% 35%, 94% 58%, 100% 42%,
    100% 100%, 0 100%
  );
}

/* 오로라 빛 */
body.winter-theme::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 8%, rgba(142, 238, 255, 0.24), transparent 36%),
    radial-gradient(ellipse at 78% 18%, rgba(133, 168, 255, 0.2), transparent 38%);
}

body.winter-theme .app-shell {
  position: relative;
  z-index: 1;
}

body.winter-theme .topbar,
body.winter-theme .sidebar {
  color: #eaf8ff;
  background: linear-gradient(135deg, #092140, #113761);
  border-color: #3c6e99;
  box-shadow: 0 8px 24px rgba(2, 13, 33, 0.65);
}

body.winter-theme .brand,
body.winter-theme .top-info,
body.winter-theme .top-info b,
body.winter-theme .side-profile strong,
body.winter-theme .sidebar-bottom {
  color: #eaf8ff;
}

body.winter-theme .side-profile span {
  color: #aed2ed;
}

body.winter-theme .mini-cat {
  background: rgba(138, 214, 255, 0.18);
  color: #9fe2ff;
  border: 1px solid rgba(159, 226, 255, 0.35);
}

body.winter-theme .nav-btn {
  color: #c8e6fa;
}

body.winter-theme .nav-btn:hover,
body.winter-theme .nav-btn.active {
  color: #ffffff;
  background: linear-gradient(100deg, #1d5d8c, #2d78a8);
}

body.winter-theme .page-heading h1,
body.winter-theme .page-heading p,
body.winter-theme .welcome-row h1,
body.winter-theme .welcome-row .sub-text,
body.winter-theme .section-heading h2,
body.winter-theme .coding-section-heading h2 {
  color: #eaf8ff;
}

body.winter-theme .section-heading p,
body.winter-theme .coding-section-heading p:last-child,
body.winter-theme .coding-choice-tip {
  color: #b7d9f0;
}

body.winter-theme .eyebrow {
  color: #8ee0ff;
}

body.winter-theme .date-chip {
  background: rgba(15, 48, 84, 0.85);
  border-color: #497da8;
  color: #d6efff;
}

body.winter-theme .hero-card {
  background: linear-gradient(120deg, #113966, #1a4f85 68%, #163769);
  border: 1px solid #599ec9;
  color: #eef9ff;
}

body.winter-theme .hero-label {
  color: #96e2ff;
}

body.winter-theme .hero-copy h2 {
  color: #ffffff;
}

body.winter-theme .hero-copy p {
  color: #c6e6fb;
}

body.winter-theme .hero-ground {
  background: #8fd3f4;
  opacity: .55;
}

body.winter-theme .hero-spark {
  color: #9ee3ff;
}

body.winter-theme .dash-card,
body.winter-theme .shortcut-card,
body.winter-theme .practice-panel,
body.winter-theme .question-card,
body.winter-theme .coding-mode-card,
body.winter-theme .coding-practice-card,
body.winter-theme .dictionary-panel,
body.winter-theme .dictionary-item,
body.winter-theme .game-select-card,
body.winter-theme .game-hud,
body.winter-theme .game-word-panel,
body.winter-theme .key-training-panel,
body.winter-theme .code-game-panel,
body.winter-theme .record-toolbar,
body.winter-theme .record-card,
body.winter-theme .daily-record-panel,
body.winter-theme .daily-record-card,
body.winter-theme .settings-panel {
  color: #143959;
  background: linear-gradient(145deg, #f3fbff, #d8f0ff);
  border-color: #88c5e6;
  box-shadow: 0 10px 26px rgba(2, 15, 44, 0.35);
}

body.winter-theme .record-note {
  color: #143959;
  background: linear-gradient(135deg, #dff3ff, #c5e8fc);
  border: 1px solid #86c4e6;
}

body.winter-theme .record-note p {
  color: #346287;
}

body.winter-theme .daily-record-categories > div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #b9dff4;
}

body.winter-theme .primary-btn {
  background: #3d98ce;
  color: #ffffff;
  box-shadow: 0 5px 0 #246f9c;
}

body.winter-theme .primary-btn:hover {
  background: #2b85bc;
  box-shadow: 0 7px 0 #246f9c;
}

body.winter-theme .secondary-btn,
body.winter-theme .back-btn {
  background: #d8efff;
  color: #1d4e75;
  border-color: #8ec9e9;
}

body.winter-theme .pill,
body.winter-theme .game-tag,
body.winter-theme .coding-beginner-badge,
body.winter-theme .coding-round,
body.winter-theme .daily-record-badge,
body.winter-theme .daily-record-category,
body.winter-theme .code-game-category,
body.winter-theme .dictionary-category {
  background: #cbeaff;
  color: #1b4f78;
}

body.winter-theme .progress-track,
body.winter-theme .coding-progress-track,
body.winter-theme .code-game-progress {
  background: #b9def5;
}

body.winter-theme .progress-fill,
body.winter-theme .coding-progress-fill,
body.winter-theme #codeGameProgressFill {
  background: linear-gradient(90deg, #3b98cf, #78c7f2);
}

body.winter-theme .typing-question {
  color: #123757;
}

body.winter-theme .typing-input-wrap input,
body.winter-theme .game-answer-row input,
body.winter-theme .coding-answer-row input,
body.winter-theme .dictionary-search-row input {
  background: #ffffff;
  color: #143959;
  border-color: #8ec8e8;
}

body.winter-theme .typing-input-wrap input:focus,
body.winter-theme .game-answer-row input:focus {
  border-color: #469ed3;
  box-shadow: 0 0 0 4px rgba(105, 187, 236, 0.35);
}

body.winter-theme .tip-card {
  background: linear-gradient(120deg, #164470, #1f5a8f);
  border: 1px solid #599ec9;
  color: #e6f6ff;
}

body.winter-theme .mode-group {
  background: #cce9fb;
}

body.winter-theme .mode-btn {
  color: #36648a;
}

body.winter-theme .mode-btn.active {
  background: #ffffff;
  color: #16456c;
}

body.winter-theme .coding-prompt {
  background: #091e38;
  color: #def4ff;
  border: 1px solid #3f78a6;
}

body.winter-theme .key-prompt {
  background: #dff3ff;
  border: 1px solid #96cdeb;
}

body.winter-theme .key-prompt > span,
body.winter-theme .key-prompt p {
  color: #3d6d94;
}

body.winter-theme #keyTarget {
  color: #164870;
}

body.winter-theme .keycap-customize-bar {
  background: #dff3ff;
  border: 1px solid #9ad0ee;
}

body.winter-theme .keycap-theme-btn,
body.winter-theme .keycap-sound-btn {
  background: #ffffff;
  color: #1d4e75;
  border-color: #8ec8e8;
}

body.winter-theme .keycap-theme-btn.active {
  background: #2f88be;
  color: #ffffff;
  border-color: #2672a1;
}

body.winter-theme .switch-label {
  color: #143959;
}

/* 겨울 테마 게임 아레나 */
body.winter-theme .game-arena {
  background: linear-gradient(#0e335d 0%, #246499 68%, #88c8e8 100%);
  border-color: #6ab0d8;
}

body.winter-theme .arena-hill {
  background: #77badc;
}

body.winter-theme .hill-b {
  background: #59a2c8;
}

body.winter-theme .arena-ground-line {
  background: repeating-linear-gradient(90deg, #b6dff4 0 35px, #d4effc 35px 70px);
  border-color: #7cc0e2;
}

body.winter-theme .game-arena::after {
  content: "❄";
  position: absolute;
  top: 28%;
  right: 14%;
  font-size: 28px;
  color: #ffffff;
  opacity: .85;
}

/* 눈사람 & 눈송이 레이어 */
.snowman-decoration {
  display: none;
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 12px;
  font-size: 54px;
  pointer-events: none;
  filter: drop-shadow(0 5px 10px rgba(2, 15, 44, 0.55));
  animation: snowmanWiggle 3.2s ease-in-out infinite;
}

body.winter-theme .snowman-decoration {
  display: block;
}

@keyframes snowmanWiggle {
  0%,
  100% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(4deg);
  }
}

.snow-layer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  overflow: hidden;
  pointer-events: none;
}

body.winter-theme .snow-layer {
  display: block;
}

.snowflake {
  position: absolute;
  top: -15px;
  display: block;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(164, 226, 255, 0.9);
  animation: snow-fall linear infinite;
}

@keyframes snow-fall {
  from {
    transform: translate3d(0, -15px, 0);
  }

  to {
    transform: translate3d(35px, 110vh, 0);
  }
}

/* =========================================
   반응형 - 태블릿
========================================= */

@media (max-width: 1100px) {
  .sidebar {
    width: 190px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .main-content {
    padding: 35px 28px 60px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .goal-card {
    grid-column: 1 / -1;
  }

  .coding-mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .record-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .daily-record-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================
   반응형 - 작은 태블릿 / 모바일
========================================= */

@media (max-width: 760px) {
  .topbar {
    height: 62px;
    padding: 0 17px;
  }

  .brand {
    font-size: 21px;
    gap: 7px;
  }

  .brand-icon {
    font-size: 25px;
  }

  .top-info {
    gap: 10px;
    font-size: 10px;
  }

  .app-layout {
    display: block;
    min-height: calc(100vh - 62px);
  }

  .sidebar {
    width: 100%;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 62px;
    z-index: 20;
  }

  .side-profile,
  .sidebar-bottom {
    display: none;
  }

  .side-nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    margin: 0;
    padding: 2px 0;
    scrollbar-width: none;
  }

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 11px;
  }

  .nav-btn:hover,
  .nav-btn.active {
    transform: none;
  }

  .main-content {
    padding: 27px 17px 50px;
  }

  h1 {
    font-size: 28px;
  }

  .welcome-row {
    align-items: flex-start;
  }

  .date-chip {
    font-size: 10px;
    padding: 8px 10px;
  }

  .hero-card {
    min-height: 225px;
    padding: 25px 20px;
    border-radius: 20px;
  }

  .hero-copy h2 {
    font-size: 25px;
  }

  .hero-copy p {
    max-width: 190px;
    font-size: 11px;
    line-height: 1.6;
  }

  .hero-cat-wrap {
    width: 145px;
    transform: scale(.8);
    transform-origin: center right;
    margin-right: -10px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .goal-card {
    grid-column: 1 / -1;
  }

  .dash-card {
    padding: 16px;
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .shortcut-card {
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    padding: 14px;
  }

  .shortcut-card > span {
    grid-row: span 2;
  }

  .shortcut-card b {
    font-size: 16px;
  }

  .shortcut-card small {
    grid-column: 2;
  }

  .shortcut-card i {
    right: 16px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .practice-panel,
  .key-training-panel {
    padding: 16px;
  }

  .practice-toolbar {
    flex-wrap: wrap;
  }

  .mode-btn {
    padding: 8px 12px;
  }

  .question-card {
    padding: 27px 12px;
  }

  .typing-question {
    font-size: 30px;
  }

  .practice-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 15px;
  }

  .practice-stats div:nth-child(2) {
    border: 0;
  }

  .practice-stats div:nth-child(3),
  .practice-stats div:nth-child(4) {
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .game-select-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .game-card-art {
    height: 175px;
  }

  .game-card-content {
    padding: 17px;
  }

  .coding-mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coding-section-heading {
    align-items: flex-start;
  }

  .coding-practice-card {
    padding: 17px;
  }

  .dictionary-list {
    grid-template-columns: 1fr;
  }

  .record-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .record-share-actions {
    width: 100%;
  }

  .record-share-actions button {
    flex: 1;
  }

  .record-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .record-card {
    padding: 14px;
  }

  .record-card b {
    font-size: 21px;
  }

  .daily-record-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setting-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .winter-preview {
    align-items: flex-start;
  }

  .winter-preview > span:last-child {
    display: none;
  }

  #keyboard.theme-ice {
    padding: 12px 7px 15px;
  }

  #keyboard.theme-ice .key {
    min-height: 47px;
    border-radius: 7px 7px 10px 10px;
    box-shadow: 0 3px 0 #75b9da;
  }

  .ice-paw-trail {
    right: 6px;
    bottom: 6px;
    transform: scale(.74) rotate(-18deg);
    transform-origin: bottom right;
  }

  .snowman-decoration {
    font-size: 40px;
    right: 8px;
    bottom: 8px;
  }
}

/* =========================================
   반응형 - 휴대폰
========================================= */

@media (max-width: 480px) {
  .topbar {
    padding: 0 12px;
  }

  .top-info {
    gap: 7px;
    font-size: 9px;
  }

  .main-content {
    padding: 23px 12px 40px;
  }

  .welcome-row {
    flex-direction: column;
    gap: 10px;
  }

  .welcome-row h1 {
    font-size: 25px;
  }

  .date-chip {
    align-self: flex-start;
  }

  .hero-card {
    min-height: 195px;
    padding: 22px 15px;
  }

  .hero-copy h2 {
    font-size: 22px;
  }

  .hero-copy p {
    max-width: 160px;
    font-size: 10px;
  }

  .hero-cat-wrap {
    width: 110px;
    margin-right: -15px;
    transform: scale(.65);
  }

  .hero-copy .primary-btn {
    padding: 10px 12px;
    font-size: 10px;
  }

  .section-heading {
    margin-top: 27px;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .dashboard-grid {
    gap: 8px;
  }

  .dash-card {
    padding: 13px;
  }

  .dash-icon {
    font-size: 19px;
  }

  .big-number {
    font-size: 25px;
  }

  .timer-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .practice-toolbar {
    gap: 8px;
  }

  .practice-toolbar .mode-group {
    width: 100%;
    justify-content: center;
  }

  .typing-input-wrap input {
    padding: 15px 70px 15px 12px;
    font-size: 13px;
  }

  .practice-stats b {
    font-size: 21px;
  }

  .coding-mode-grid {
    gap: 8px;
  }

  .coding-mode-card {
    padding: 12px 10px;
  }

  .coding-mode-card b {
    font-size: 11px;
  }

  .coding-mode-card small {
    font-size: 9px;
  }

  .coding-answer-row {
    flex-direction: column;
  }

  .coding-answer-row .primary-btn {
    width: 100%;
  }

  .game-hud {
    padding: 11px 3px;
  }

  .game-hud b {
    font-size: 19px;
  }

  .game-arena {
    height: 290px;
  }

  .game-word-panel {
    padding: 15px;
  }

  .game-answer-row {
    flex-direction: column;
  }

  .game-answer-row input {
    padding: 13px;
  }

  .key-game-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .keycap-customize-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .keycap-theme-picker {
    align-items: flex-start;
  }

  .keycap-theme-picker > span {
    width: 100%;
  }

  .key-game-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .code-game-panel {
    padding: 17px;
  }

  #codeGamePrompt {
    font-size: 20px;
  }

  .record-grid {
    gap: 8px;
  }

  .record-card {
    padding: 12px;
  }

  .record-card > span {
    font-size: 20px;
  }

  .record-card small {
    font-size: 9px;
  }

  .record-card b {
    font-size: 19px;
  }

  .daily-record-panel {
    padding: 15px;
  }

  .daily-record-heading {
    align-items: flex-start;
  }

  .daily-record-heading h2 {
    font-size: 19px;
  }

  .daily-record-card {
    padding: 11px;
  }

  .daily-record-date {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .daily-record-categories {
    grid-template-columns: 1fr;
  }

  .record-share-actions {
    flex-direction: column;
  }

  .record-share-actions button {
    width: 100%;
  }

  .setting-copy {
    align-items: flex-start;
  }

  .setting-copy b {
    font-size: 16px;
  }
}

/* =========================================
   모션 최소화 설정
========================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ==========================================
   뚱냥클릭커 WINTER SPECIAL UPDATE
   기존 style.css 맨 아래에 추가
========================================== */

/* 겨울 테마 색상 */

body.winter-theme {
  --ink: #294c70;
  --muted: #65829f;
  --surface: rgba(245, 251, 255, .88);
  --page-bg: #dcebf8;
  --line: rgba(130, 177, 211, .4);
  --pink: #78acd8;
  --pink-dark: #568fbe;
  --pink-light: #e6f4ff;
  --shadow: 0 12px 35px rgba(60, 106, 153, .12);

  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 0%,
      #ffffff 0%, transparent 48%),
    radial-gradient(ellipse at 10% 65%,
      #f5fbff 0%, transparent 40%),
    linear-gradient(160deg,
      #c4d9ec 0%,
      #e7f2fc 45%,
      #b7d2eb 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* 겨울 배경의 눈 언덕 */

body.winter-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(ellipse at 10% 110%,
      #fff 0%, #eef7ff 25%, transparent 26%),
    radial-gradient(ellipse at 55% 120%,
      #fff 0%, #e4f1fc 32%, transparent 33%),
    radial-gradient(ellipse at 100% 110%,
      #f8fcff 0%, #cfe4f6 28%, transparent 29%);
}

/* 겨울 배경의 반짝이는 빛 */

body.winter-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background-image:
    radial-gradient(circle,
      rgba(255,255,255,.95) 1px,
      transparent 4px),
    radial-gradient(circle,
      rgba(255,255,255,.7) 2px,
      transparent 7px);

  background-size: 83px 97px, 157px 181px;
  animation: winterTwinkle 5s ease-in-out infinite;
}

@keyframes winterTwinkle {
  0%, 100% {
    opacity: .4;
  }

  50% {
    opacity: .95;
  }
}

body.winter-theme .app-shell {
  position: relative;
  z-index: 1;
  background: transparent;
}

body.winter-theme .app-layout,
body.winter-theme .main-content {
  background: transparent;
}

/* ==========================================
   서리 유리 스타일 메뉴
========================================== */

body.winter-theme .topbar,
body.winter-theme .sidebar {
  background: rgba(240, 249, 255, .76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-color: rgba(255, 255, 255, .9);

  box-shadow:
    0 5px 25px rgba(73, 113, 155, .09),
    inset 0 1px 0 white;
}

body.winter-theme .brand,
body.winter-theme .side-profile strong {
  color: #345d84;
}

body.winter-theme .nav-btn {
  color: #52718e;
  transition: .25s;
}

body.winter-theme .nav-btn:hover,
body.winter-theme .nav-btn.active {
  color: #326a9c;
  background: linear-gradient(
    135deg, #ffffff, #cde5fa
  );

  box-shadow:
    0 4px 12px rgba(91, 146, 191, .13),
    inset 0 1px 0 white;
}

body.winter-theme .mini-cat {
  background: linear-gradient(
    145deg, white, #cce4f7
  );

  border: 2px solid white;

  box-shadow:
    0 5px 12px #b7d0e5,
    inset 0 -5px 8px #c1daed;
}

body.winter-theme .top-info,
body.winter-theme .top-info b,
body.winter-theme .sidebar-bottom {
  color: #527b9f;
}

/* ==========================================
   겨울 홈 화면
========================================== */

body.winter-theme .hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  background:
    radial-gradient(circle at 75% 15%,
      white, transparent 35%),
    linear-gradient(130deg,
      #d9edff,
      #f5fbff 55%,
      #b6d7f0);

  border: 2px solid rgba(255,255,255,.95);

  box-shadow:
    0 15px 40px rgba(69, 120, 165, .14),
    inset 0 0 30px rgba(255,255,255,.6);
}

body.winter-theme .hero-card::before {
  content: "❄";
  position: absolute;
  right: 7%;
  top: -65px;
  font-size: 260px;
  line-height: 1;
  color: rgba(255,255,255,.5);
  z-index: -1;
  animation: crystalRotate 35s linear infinite;
}

body.winter-theme .hero-card::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -85px;
  width: 120%;
  height: 145px;
  background: #f8fcff;
  border-radius: 50%;
  z-index: -1;
  box-shadow: 0 -8px 20px rgba(255,255,255,.7);
}

@keyframes crystalRotate {
  to {
    transform: rotate(360deg);
  }
}

body.winter-theme .hero-copy h2 {
  color: #315c84;
}

body.winter-theme .hero-copy p,
body.winter-theme .hero-label,
body.winter-theme .eyebrow {
  color: #648eb2;
}

body.winter-theme .hero-ground {
  background: #9abbd9;
  filter: blur(5px);
}

body.winter-theme .hero-spark {
  color: white;
  text-shadow:
    0 0 8px #fff,
    0 0 15px #77baff;
}

body.winter-theme .hero-cat {
  filter: drop-shadow(
    0 8px 10px rgba(75, 119, 163, .18)
  );
}

/* 고양이 겨울 목도리 */

body.winter-theme .cat-body::after {
  content: "";
  position: absolute;
  top: 3px;
  left: -3px;
  width: 108px;
  height: 16px;
  border-radius: 8px;

  background: repeating-linear-gradient(
    90deg,
    #7baedb 0px,
    #7baedb 10px,
    #a9d0ee 10px,
    #a9d0ee 15px
  );

  box-shadow: 0 3px 0 #6596bf;
}

/* ==========================================
   겨울 카드 디자인
========================================== */

body.winter-theme .dash-card,
body.winter-theme .shortcut-card,
body.winter-theme .practice-panel,
body.winter-theme .question-card,
body.winter-theme .coding-mode-card,
body.winter-theme .coding-practice-card,
body.winter-theme .dictionary-panel,
body.winter-theme .dictionary-item,
body.winter-theme .game-select-card,
body.winter-theme .game-hud,
body.winter-theme .game-word-panel,
body.winter-theme .key-training-panel,
body.winter-theme .code-game-panel,
body.winter-theme .record-toolbar,
body.winter-theme .record-card,
body.winter-theme .daily-record-panel,
body.winter-theme .daily-record-card,
body.winter-theme .settings-panel {
  color: #345575;

  background: linear-gradient(
    145deg,
    rgba(255,255,255,.94),
    rgba(227,241,253,.86)
  );

  border: 1px solid rgba(255,255,255,.95);

  box-shadow:
    0 8px 25px rgba(78, 126, 167, .11),
    inset 0 1px 0 white;
}

body.winter-theme .dash-title,
body.winter-theme .muted,
body.winter-theme .sub-text,
body.winter-theme .shortcut-card small,
body.winter-theme .section-heading p,
body.winter-theme .page-heading p,
body.winter-theme .timer-actions span,
body.winter-theme .big-number small {
  color: #66829e;
}

body.winter-theme .primary-btn {
  color: white;

  background: linear-gradient(
    145deg, #a4ccec, #639bc9
  );

  border: 1px solid #d8efff;

  box-shadow:
    0 4px 0 #5685ae,
    inset 0 2px 2px rgba(255,255,255,.5);
}

body.winter-theme .primary-btn:hover {
  background: linear-gradient(
    145deg, #b9dcf8, #75add8
  );
}

body.winter-theme .secondary-btn,
body.winter-theme .back-btn {
  background: #e1effb;
  color: #4f7ba3;
  border: 1px solid white;
}

body.winter-theme .progress-track {
  background: #cbdff1;
}

body.winter-theme .progress-fill {
  background: linear-gradient(
    90deg, #87b6df, #d1edff
  );

  box-shadow: 0 0 10px #b2dbfa;
}

body.winter-theme .typing-question,
body.winter-theme .coding-prompt,
body.winter-theme #keyTarget {
  color: #315f88;
}

body.winter-theme input {
  background: rgba(255,255,255,.9);
  color: #345575;
  border-color: #b7d3eb;
}

body.winter-theme input::placeholder {
  color: #819bb2;
}

body.winter-theme .tip-card {
  color: #4f7698;
  background: rgba(231,244,255,.9);
  border-color: white;
}

/* ==========================================
   눈 내리는 효과
========================================== */

.snow-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 100;
  display: none;
}

body.winter-theme .snow-layer {
  display: block;
}

body.winter-theme .snowflake {
  position: absolute;
  top: -40px;
  color: #ffffff;
  pointer-events: none;

  text-shadow:
    0 0 3px #ffffff,
    0 0 7px #ffffff,
    0 0 12px #76a6d1;

  filter: drop-shadow(
    0 1px 1px rgba(69,116,161,.35)
  );

  animation-name: snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes snow-fall {
  0% {
    transform: translate3d(0, -50px, 0)
      rotate(0deg);
  }

  25% {
    transform: translate3d(25px, 25vh, 0)
      rotate(80deg);
  }

  50% {
    transform: translate3d(-15px, 50vh, 0)
      rotate(160deg);
  }

  75% {
    transform: translate3d(35px, 75vh, 0)
      rotate(240deg);
  }

  100% {
    transform: translate3d(-10px, 110vh, 0)
      rotate(360deg);
  }
}

body.winter-theme .snowman-decoration {
  position: fixed;
  bottom: 18px;
  right: 20px;
  font-size: 65px;
  pointer-events: none;
  z-index: 5;

  filter: drop-shadow(
    0 5px 5px rgba(83,122,159,.2)
  );
}

/* ==========================================
   겨울 크리스털 키보드
========================================== */

#keyboard.theme-ice {
  position: relative;
  isolation: isolate;

  padding: 24px 16px 30px;
  border-radius: 24px;

  background:
    radial-gradient(ellipse at 30% 0%,
      rgba(255,255,255,.95),
      transparent 55%),
    linear-gradient(
      150deg,
      #e8f4ff,
      #b9d6ed 50%,
      #dbefff
    );

  border: 3px solid rgba(255,255,255,.95);

  box-shadow:
    0 9px 0 #8eafcd,
    0 15px 25px rgba(71,110,150,.25),
    inset 0 0 20px white;

  overflow: visible;
}

/* 얼음 키보드 상단의 서리 */

#keyboard.theme-ice::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 3%;
  right: 3%;
  height: 12px;
  border-radius: 50%;

  background: linear-gradient(
    white, rgba(255,255,255,0)
  );

  filter: blur(2px);
  pointer-events: none;
  z-index: 2;
}

/* 크리스털 키캡 */

#keyboard.theme-ice .key {
  position: relative;
  isolation: isolate;

  min-height: 49px;
  border-radius: 10px;

  color: #244b6e;
  font-weight: 900;

  background:
    linear-gradient(
      125deg,
      rgba(255,255,255,.98) 0%,
      rgba(231,247,255,.9) 20%,
      rgba(181,215,241,.65) 55%,
      rgba(244,252,255,.95) 100%
    );

  border: 2px solid rgba(255,255,255,.95);

  box-shadow:
    0 5px 0 #91b4d3,
    0 7px 9px rgba(65,108,148,.17),
    inset 0 0 0 2px rgba(154,196,229,.5),
    inset 0 5px 6px rgba(255,255,255,.9),
    inset 0 -5px 8px rgba(129,178,218,.3);

  text-shadow: 0 1px 1px white;

  transition:
    transform .12s,
    box-shadow .12s,
    background .2s;

  overflow: visible;
}

/* 얼음 키캡의 투명한 테두리 */

#keyboard.theme-ice .key::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 6px;

  border-top: 2px solid white;
  border-left: 1px solid white;
  border-bottom: 1px solid #a4c6e2;

  background: linear-gradient(
    145deg,
    rgba(255,255,255,.35),
    transparent 40%,
    rgba(255,255,255,.3) 75%,
    transparent
  );

  pointer-events: none;
  z-index: -1;
}

/* 얼음 속 글자의 시인성 유지 */

#keyboard.theme-ice .key span,
#keyboard.theme-ice .key b,
#keyboard.theme-ice .key small {
  position: relative;
  color: #244b6e;
  z-index: 3;
  text-shadow: 0 1px 2px white;
}

/* 키보드에 마우스를 올렸을 때 */

#keyboard.theme-ice .key:hover {
  transform: translateY(-2px);

  background: linear-gradient(
    145deg, white, #c4e6ff
  );

  box-shadow:
    0 7px 0 #91b4d3,
    0 0 12px rgba(255,255,255,.95),
    inset 0 0 8px white;
}

/* 실제로 키를 누르는 느낌 */

#keyboard.theme-ice .key:active,
#keyboard.theme-ice .key.pressed {
  transform: translateY(4px) scale(.97);

  box-shadow:
    0 1px 0 #86a9c8,
    inset 0 2px 7px #a8c9e3;
}

/* 정답 대상 키 */

#keyboard.theme-ice .key.target,
#keyboard.theme-ice .key.highlight,
#keyboard.theme-ice .key.active {
  border-color: white;

  background: linear-gradient(
    145deg, #ffffff, #a3d9ff
  );

  box-shadow:
    0 5px 0 #7eadd2,
    0 0 15px #ffffff,
    0 0 25px #a1d8ff;

  animation: frozenKeyGlow 1.5s ease-in-out infinite;
}

@keyframes frozenKeyGlow {
  0%, 100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.18);
  }
}

/* ==========================================
   정답 입력 시 얼음 깨지기
========================================== */

#keyboard.theme-ice .key.ice-cracking {
  animation: iceKeyCrack .38s ease-out;
}

#keyboard.theme-ice .key.ice-cracking::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;

  background:
    linear-gradient(
      65deg,
      transparent 47%,
      white 48%,
      #78a9cf 50%,
      transparent 52%
    ),
    linear-gradient(
      125deg,
      transparent 48%,
      white 49%,
      transparent 52%
    ),
    linear-gradient(
      15deg,
      transparent 48%,
      white 49%,
      transparent 52%
    );

  animation: crackFlash .38s ease-out;
}

@keyframes iceKeyCrack {
  0% {
    transform: scale(1);
  }

  20% {
    transform: scale(.91) rotate(-3deg);
  }

  45% {
    transform: scale(1.08) rotate(2deg);
    filter: brightness(1.4);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes crackFlash {
  0% {
    opacity: 0;
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* ==========================================
   눈 위에 찍힌 고양이 발자국
========================================== */

#keyboard.theme-ice .key.ice-paw-stamped {
  background: linear-gradient(
    145deg, #ffffff, #e0eef9
  );

  box-shadow:
    0 4px 0 #9bbbd5,
    inset 0 0 9px white;
}

/* JavaScript로 생성하는 발자국 */

.ice-paw-stamp {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;

  animation: pawStampIn .35s ease-out both;
}

.ice-paw-stamp i {
  display: block;
  position: absolute;

  background: linear-gradient(
    145deg,
    #7199bb,
    #a6c2da 55%,
    #d1e5f4
  );

  box-shadow:
    inset 2px 3px 4px rgba(48,85,119,.4),
    1px 2px 1px rgba(255,255,255,.95),
    -1px -1px 2px rgba(255,255,255,.7);
}

/* 발바닥 중앙 */

.ice-paw-stamp .paw-pad {
  width: 36%;
  height: 29%;
  left: 32%;
  top: 48%;
  border-radius: 48% 48% 35% 35%;
}

/* 네 개의 발가락 */

.ice-paw-stamp .paw-toe:nth-child(2) {
  width: 13%;
  height: 17%;
  left: 18%;
  top: 31%;
  border-radius: 50%;
  transform: rotate(-25deg);
}

.ice-paw-stamp .paw-toe:nth-child(3) {
  width: 13%;
  height: 18%;
  left: 34%;
  top: 19%;
  border-radius: 50%;
  transform: rotate(-10deg);
}

.ice-paw-stamp .paw-toe:nth-child(4) {
  width: 13%;
  height: 18%;
  right: 34%;
  top: 19%;
  border-radius: 50%;
  transform: rotate(10deg);
}

.ice-paw-stamp .paw-toe:nth-child(5) {
  width: 13%;
  height: 17%;
  right: 18%;
  top: 31%;
  border-radius: 50%;
  transform: rotate(25deg);
}

@keyframes pawStampIn {
  from {
    opacity: 0;
    transform: scale(1.35);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 얼음 조각 파티클 */

.ice-shard {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 12px;
  height: 16px;

  background: linear-gradient(
    145deg,
    white,
    #a8d5f5 60%,
    #78add5
  );

  clip-path: polygon(
    50% 0%, 100% 35%,
    70% 100%, 0% 65%
  );

  pointer-events: none;
  z-index: 20;

  filter: drop-shadow(0 0 3px white);

  animation: iceShardFly .7s ease-out forwards;
}

@keyframes iceShardFly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%)
      scale(.5) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform:
      translate(
        var(--shard-x, 45px),
        var(--shard-y, -55px)
      )
      rotate(var(--shard-rotation, 180deg))
      scale(.3);
  }
}

/* 오답 얼음 흔들림 */

#keyboard.theme-ice .key.ice-wrong {
  animation: iceWrongShake .3s ease;
  border-color: #f3b5b5;
}

@keyframes iceWrongShake {
  0%, 100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

/* ==========================================
   키캡 연구소 겨울 테마 선택 버튼
========================================== */

.keycap-theme-btn[data-keycap-theme="ice"] {
  background: linear-gradient(
    135deg, #ffffff, #d8edff
  );

  color: #47749b;
  border: 1px solid #b8d8ef;
}

.keycap-theme-btn[data-keycap-theme="ice"].active {
  color: #285e89;

  background: linear-gradient(
    135deg, #ffffff, #b5dcfa
  );

  box-shadow:
    0 0 0 2px #a8cce8,
    0 0 12px #d2ebff;
}

/* ==========================================
   신규 미니게임 선택 카드
========================================== */

.tuna-game-card {
  border-color: #c2dff3;
  background: #f4faff;
}

.tuna-art {
  position: relative;
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;

  background:
    radial-gradient(circle at 50% 30%,
      white, transparent 50%),
    linear-gradient(
      145deg, #c2e0f7, #edf8ff
    );
}

.tuna-art::before {
  content: "❄";
  position: absolute;
  left: 12%;
  top: 12%;
  color: white;
  font-size: 45px;
  animation: crystalRotate 20s linear infinite;
}

.tuna-art::after {
  content: "✧";
  position: absolute;
  right: 12%;
  bottom: 15%;
  color: white;
  font-size: 35px;
  animation: winterTwinkle 2s infinite;
}

.tuna-art-fish {
  display: grid;
  place-items: center;

  width: 90px;
  height: 90px;
  font-size: 50px;
  border-radius: 20px;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,.9),
    rgba(127,187,231,.6)
  );

  border: 3px solid white;

  box-shadow:
    0 7px 0 #91b6d5,
    inset 0 0 15px white;

  transform: rotate(-8deg);
}

/* ==========================================
   꽁꽁 언 참치 깨기 게임
========================================== */

.tuna-game-panel {
  position: relative;
  overflow: hidden;

  padding: 25px;
  border-radius: 25px;

  color: #315b80;

  background: linear-gradient(
    145deg, #f9fdff, #e0effc
  );

  border: 2px solid white;

  box-shadow:
    0 12px 30px rgba(68,113,155,.15);
}

.tuna-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.tuna-hud > div {
  padding: 14px 10px;
  border-radius: 15px;
  text-align: center;
  font-size: 13px;

  background: rgba(255,255,255,.85);
  border: 1px solid #d0e4f5;

  box-shadow:
    0 4px 8px rgba(82,127,168,.08);
}

.tuna-hud b {
  display: block;
  margin: 6px 0;
  color: #3c78a9;
  font: 28px "Jua", sans-serif;
}

/* 게임 배경 */

.tuna-stage {
  position: relative;
  min-height: 360px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  isolation: isolate;

  border-radius: 22px;
  border: 2px solid white;

  background:
    radial-gradient(circle at 50% 5%,
      #ffffff, transparent 45%),
    linear-gradient(
      180deg,
      #a9cce9 0%,
      #d5e9f9 50%,
      #f6fbff 100%
    );

  box-shadow: inset 0 0 30px #eaf6ff;
}

.tuna-stage::before {
  content: "";
  position: absolute;
  left: -15%;
  bottom: -80px;

  width: 130%;
  height: 180px;
  border-radius: 50%;

  background: #f9fdff;

  box-shadow:
    0 -5px 20px rgba(255,255,255,.8);

  z-index: -1;
}

.tuna-stage::after {
  content: "❄     ✧     ❄";
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;

  text-align: center;
  font-size: 35px;
  color: white;

  animation: winterTwinkle 2.5s infinite;
  pointer-events: none;
}

.tuna-snow-decoration {
  position: absolute;
  top: 65px;
  left: 5%;
  font-size: 22px;
  color: white;

  text-shadow: 0 0 10px white;
}

.tuna-cat {
  position: absolute;
  bottom: 25px;
  left: 8%;

  font-size: 65px;

  animation: tunaCatBounce 2s ease-in-out infinite;

  filter: drop-shadow(
    0 5px 5px rgba(69,112,153,.2)
  );
}

@keyframes tunaCatBounce {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* ==========================================
   얼음에 갇힌 참치
========================================== */

.tuna-ice {
  position: relative;
  isolation: isolate;

  width: 210px;
  height: 210px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  border-radius: 28px;
  border: 4px solid rgba(255,255,255,.95);

  background: linear-gradient(
    135deg,
    rgba(255,255,255,.96),
    rgba(196,228,251,.75) 35%,
    rgba(111,174,223,.6) 70%,
    rgba(225,245,255,.95)
  );

  box-shadow:
    0 12px 0 #8cb6d7,
    0 20px 30px rgba(66,113,153,.25),
    inset 0 0 0 5px rgba(180,218,244,.6),
    inset 0 0 25px white;

  animation: frozenTunaFloat 3s ease-in-out infinite;
}

.tuna-ice::before {
  content: "";
  position: absolute;
  inset: 9px;

  border-radius: 20px;
  border: 2px solid rgba(255,255,255,.9);

  background: linear-gradient(
    135deg,
    rgba(255,255,255,.45),
    transparent 35%,
    rgba(255,255,255,.2) 65%,
    transparent
  );

  pointer-events: none;
  z-index: 3;
}

.tuna-ice::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 9px;
  height: 14px;

  background: rgba(255,255,255,.9);
  border-radius: 50%;

  filter: blur(3px);
  pointer-events: none;
}

.tuna-fish {
  font-size: 90px;
  transform: rotate(-12deg);

  filter: drop-shadow(
    0 5px 8px rgba(49,104,153,.3)
  );
}

.tuna-word {
  position: relative;
  z-index: 5;

  padding: 10px 16px;
  margin-top: 8px;

  border-radius: 12px;

  background: rgba(255,255,255,.75);

  font: 24px "Jua", sans-serif;
  color: #244d70;

  text-shadow: 0 1px 2px white;
  letter-spacing: 2px;
}

@keyframes frozenTunaFloat {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-9px) rotate(2deg);
  }
}

/* ==========================================
   참치 얼음 균열 단계
========================================== */

.tuna-cracks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 4;
  opacity: 0;

  background:
    linear-gradient(
      65deg,
      transparent 48%,
      white 49%,
      #79acd2 50%,
      transparent 51%
    ),
    linear-gradient(
      135deg,
      transparent 48%,
      white 49%,
      transparent 51%
    ),
    linear-gradient(
      15deg,
      transparent 48%,
      white 49%,
      transparent 51%
    );

  transition: opacity .2s;
}

.tuna-ice.crack-1 .tuna-cracks {
  opacity: .25;
}

.tuna-ice.crack-2 .tuna-cracks {
  opacity: .5;
}

.tuna-ice.crack-3 .tuna-cracks {
  opacity: .8;
}

.tuna-ice.crack-4 .tuna-cracks {
  opacity: 1;
}

.tuna-ice.breaking {
  animation: tunaIceBreak .65s ease-out forwards;
}

@keyframes tunaIceBreak {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  20% {
    transform: scale(.93) rotate(-5deg);
  }

  40% {
    transform: scale(1.15) rotate(4deg);
    filter: brightness(1.5);
  }

  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.tuna-ice.wrong {
  animation: iceWrongShake .3s ease;
}

.tuna-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* ==========================================
   참치 게임 입력창 및 버튼
========================================== */

.tuna-language {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 15px;
}

.tuna-language button {
  min-width: 90px;

  color: #527fa5;
  background: #e3f1fd;
  border: 1px solid white;
}

.tuna-language button.active {
  background: #83b4dc;
  color: white;
  box-shadow: 0 3px 0 #5f91bc;
}

#tunaInput {
  display: block;

  width: 100%;
  max-width: 450px;
  margin: 0 auto;

  padding: 16px 20px;
  border-radius: 14px;
  border: 2px solid #b8d7ef;

  background: rgba(255,255,255,.95);

  color: #315b80;
  font-size: 19px;
  text-align: center;

  outline: none;

  box-shadow:
    inset 0 3px 8px rgba(90,138,180,.07);
}

#tunaInput:focus {
  border-color: #80b5df;
  box-shadow: 0 0 0 4px #d6ecff;
}

#tunaInput:disabled {
  opacity: .65;
}

#tunaFeedback {
  min-height: 24px;
  margin: 15px 0;

  text-align: center;
  color: #537da1;
  font-size: 14px;
  font-weight: 700;
}

#tunaStartButton {
  display: block;
  min-width: 160px;
  margin: 0 auto;

  background: linear-gradient(
    145deg, #a4cfee, #649bc9
  );

  box-shadow: 0 4px 0 #5386b0;
}

.tuna-result {
  margin-top: 22px;
  padding: 25px;

  text-align: center;
  border-radius: 20px;
  border: 2px solid white;

  background: linear-gradient(
    145deg, white, #d4eafa
  );

  box-shadow:
    0 6px 15px rgba(70,117,160,.12);
}

.tuna-result h2 {
  color: #376d99;
  font: 26px "Jua", sans-serif;
}

.tuna-result p {
  white-space: pre-line;
  color: #527b9e;
  line-height: 1.8;
}

/* ==========================================
   겨울 음악 설정
========================================== */

.winter-audio-controls {
  margin-top: 18px;
  padding: 18px;

  border-radius: 15px;
  border: 1px solid #d2e6f6;

  background: linear-gradient(
    145deg, #f8fcff, #e5f2fc
  );

  color: #426c90;
}

.winter-audio-controls h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.winter-audio-controls input[type="range"] {
  width: 100%;
  accent-color: #79add5;
}

/* ==========================================
   모바일 반응형
========================================== */

@media (max-width: 768px) {

  body.winter-theme .hero-card {
    padding: 25px 20px;
  }

  body.winter-theme .hero-card::before {
    font-size: 170px;
    top: -35px;
  }

  body.winter-theme .snowman-decoration {
    font-size: 40px;
    bottom: 10px;
    right: 10px;
  }

  #keyboard.theme-ice {
    padding: 15px 6px 20px;
    border-radius: 15px;
  }

  #keyboard.theme-ice .key {
    min-height: 36px;
    border-radius: 6px;
    border-width: 1px;
    font-size: 12px;
  }

  #keyboard.theme-ice .key::before {
    inset: 2px;
    border-radius: 4px;
  }

  .tuna-game-panel {
    padding: 15px;
  }

  .tuna-hud {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tuna-stage {
    min-height: 300px;
  }

  .tuna-ice {
    width: 165px;
    height: 165px;
    border-radius: 22px;
  }

  .tuna-fish {
    font-size: 65px;
  }

  .tuna-word {
    font-size: 19px;
  }

  .tuna-cat {
    font-size: 40px;
    left: 4%;
    bottom: 18px;
  }
}

@media (max-width: 400px) {

  #keyboard.theme-ice .key {
    min-height: 30px;
    font-size: 10px;
  }

  .tuna-stage {
    min-height: 260px;
  }

  .tuna-ice {
    width: 140px;
    height: 140px;
  }

  .tuna-fish {
    font-size: 55px;
  }

  .tuna-word {
    font-size: 17px;
  }

  .tuna-hud b {
    font-size: 23px;
  }
}

/* 모션 감소 설정 지원 */

@media (prefers-reduced-motion: reduce) {

  body.winter-theme::after,
  body.winter-theme .hero-card::before,
  .tuna-ice,
  .tuna-cat,
  .tuna-stage::after {
    animation: none;
  }

  body.winter-theme .snowflake {
    animation-duration: 25s !important;
  }

  #keyboard.theme-ice .key {
    transition: none;
  }
}


/* ==========================================
   WINTER UPDATE 2
   말랑 얼음 키보드 + 하늘색 눈꽃 배경
========================================== */

/* 1. 부드러운 하늘색 겨울 배경 */

body.winter-theme {
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(255, 255, 255, .65),
      transparent 55%
    ),
    linear-gradient(
      160deg,
      #b8d9f4 0%,
      #d2e8fa 45%,
      #b3d5f1 100%
    ) !important;

  background-attachment: fixed !important;
}

/* 기존 배경의 과도한 반짝임 제거 */

body.winter-theme::after {
  background: none !important;
  animation: none !important;
}

/* 하얗고 부드러운 눈 언덕 */

body.winter-theme::before {
  background:
    radial-gradient(
      ellipse at 0% 115%,
      #ffffff 0%,
      #edf7ff 28%,
      transparent 29%
    ),
    radial-gradient(
      ellipse at 65% 125%,
      #ffffff 0%,
      #e5f3ff 35%,
      transparent 36%
    ),
    radial-gradient(
      ellipse at 100% 115%,
      #ffffff 0%,
      #eaf6ff 28%,
      transparent 29%
    ) !important;
}

/* ==========================================
   2. 눈꽃과 동그란 눈송이
========================================== */

body.winter-theme #snowLayer,
body.winter-theme .snow-layer {
  position: fixed !important;
  inset: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: 999 !important;
}

body.winter-theme .snowflake {
  position: absolute !important;
  top: -50px !important;

  pointer-events: none !important;

  color: white !important;
  background: transparent !important;

  box-shadow: none !important;
  border: none !important;

  animation: softWinterSnow
    var(--snow-speed, 12s)
    linear infinite !important;

  animation-delay:
    var(--snow-delay, 0s) !important;
}

/* 꽃 모양 눈송이 */

body.winter-theme .snowflake.flower-snow {
  width: auto !important;
  height: auto !important;

  font-size: var(--snow-size, 20px) !important;
  line-height: 1 !important;

  text-shadow:
    0 1px 2px rgba(73, 130, 181, .65),
    0 0 4px white !important;

  filter: none !important;
}

/* 동글동글한 솜눈 */

body.winter-theme .snowflake.round-snow {
  width: var(--snow-size, 7px) !important;
  height: var(--snow-size, 7px) !important;

  background: #ffffff !important;
  border-radius: 50% !important;

  box-shadow:
    0 1px 3px rgba(81, 139, 190, .45),
    0 0 5px rgba(255, 255, 255, .8)
    !important;

  font-size: 0 !important;
}

/* 자연스럽게 좌우로 흔들리면서 내리기 */

@keyframes softWinterSnow {

  0% {
    transform:
      translate3d(0, -40px, 0)
      rotate(0deg);
  }

  25% {
    transform:
      translate3d(25px, 27vh, 0)
      rotate(60deg);
  }

  50% {
    transform:
      translate3d(-20px, 54vh, 0)
      rotate(130deg);
  }

  75% {
    transform:
      translate3d(30px, 81vh, 0)
      rotate(210deg);
  }

  100% {
    transform:
      translate3d(-10px, 115vh, 0)
      rotate(300deg);
  }
}

/* ==========================================
   3. 말랑말랑한 겨울 키보드 본체
========================================== */

#keyboard.theme-ice {
  padding: 24px 16px 28px !important;

  border-radius: 34px !important;
  border: 3px solid white !important;

  background:
    radial-gradient(
      ellipse at 30% 0%,
      #ffffff,
      transparent 65%
    ),
    linear-gradient(
      145deg,
      #e6f5ff,
      #bcdaf1 65%,
      #e1f1ff
    ) !important;

  box-shadow:
    0 8px 0 #9bbbd7,
    0 15px 25px rgba(75, 121, 160, .17),
    inset 0 0 18px white !important;
}

/* ==========================================
   4. 옥구슬처럼 동글동글한 키캡
========================================== */

#keyboard.theme-ice [data-key] {
  position: relative !important;
  isolation: isolate;

  border-radius: 17px !important;
  border: 2px solid #f9fdff !important;

  min-height: 49px;

  color: #234866 !important;

  background:
    radial-gradient(
      ellipse at 28% 18%,
      #ffffff 0%,
      rgba(255, 255, 255, .4) 35%,
      transparent 60%
    ),
    linear-gradient(
      155deg,
      #edfaff 0%,
      #c7e5f8 55%,
      #acd2ec 100%
    ) !important;

  box-shadow:
    0 5px 0 #94b7d3,
    0 7px 8px rgba(76, 119, 155, .15),
    inset 0 3px 6px white,
    inset 0 -4px 7px rgba(110, 164, 204, .2)
    !important;

  font-weight: 900 !important;

  text-shadow: none !important;
  filter: none !important;

  transition:
    transform .12s ease,
    background .15s ease,
    box-shadow .15s ease !important;

  overflow: visible !important;
}

/* 기존 각진 얼음 테두리 제거 */

#keyboard.theme-ice [data-key]::before {
  content: "" !important;

  position: absolute;
  inset: 4px !important;

  border: none !important;
  border-radius: 13px !important;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, .6),
      transparent 55%
    ) !important;

  pointer-events: none;
  z-index: -1;
}

/* ==========================================
   5. 키보드 글자 선명하게 유지
========================================== */

#keyboard.theme-ice [data-key] span,
#keyboard.theme-ice [data-key] b,
#keyboard.theme-ice [data-key] small,
#keyboard.theme-ice [data-key] strong {
  color: #234866 !important;

  font-weight: 900 !important;

  text-shadow: none !important;
  filter: none !important;

  opacity: 1 !important;
}

/* 눌러야 하는 정답 키 표시 */

#keyboard.theme-ice [data-key].target,
#keyboard.theme-ice [data-key].active,
#keyboard.theme-ice [data-key].highlight,
#keyboard.theme-ice [data-key].is-target,
#keyboard.theme-ice [data-key].key-target {
  color: #173c60 !important;

  background:
    linear-gradient(
      145deg,
      #f5fbff,
      #8fc7ef
    ) !important;

  border: 2px solid #ffffff !important;

  outline: 2px solid #619dcc !important;

  box-shadow:
    0 5px 0 #78a6ca,
    0 0 9px rgba(255, 255, 255, .8),
    inset 0 2px 4px white !important;

  animation: none !important;
  filter: none !important;
}

/* 마우스를 올려도 글자가 하얗게 변하지 않음 */

#keyboard.theme-ice [data-key]:hover {
  color: #173c60 !important;

  filter: none !important;

  transform: translateY(-2px);
}

/* 말랑하게 눌리는 애니메이션 */

#keyboard.theme-ice [data-key]:active,
#keyboard.theme-ice [data-key].pressed {
  transform:
    translateY(4px)
    scale(.94) !important;

  color: #173c60 !important;

  filter: none !important;

  box-shadow:
    0 1px 0 #8aafce,
    inset 0 3px 7px #a5c9e5 !important;
}

/* ==========================================
   6. 일부 키에 얼음 물고기 장식
========================================== */

/* F, J는 손가락 기준점
   Q, P는 키보드 양 끝 장식 */

#keyboard.theme-ice [data-key="f"],
#keyboard.theme-ice [data-key="j"],
#keyboard.theme-ice [data-key="q"],
#keyboard.theme-ice [data-key="p"] {
  border-radius: 22px 16px 16px 22px !important;

  background:
    radial-gradient(
      ellipse at 25% 20%,
      #ffffff,
      transparent 55%
    ),
    linear-gradient(
      145deg,
      #f0faff,
      #b6dcf4
    ) !important;
}

/* 얼어붙은 물고기 모양 */

#keyboard.theme-ice [data-key="f"]::after,
#keyboard.theme-ice [data-key="j"]::after,
#keyboard.theme-ice [data-key="q"]::after,
#keyboard.theme-ice [data-key="p"]::after {
  content: "" !important;

  position: absolute;

  top: 3px;
  right: 3px;

  width: 18px;
  height: 12px;

  background: #7cadd1;

  clip-path: polygon(
    0% 50%,
    20% 15%,
    45% 5%,
    68% 28%,
    100% 0%,
    88% 50%,
    100% 100%,
    68% 72%,
    45% 95%,
    20% 85%
  );

  opacity: .65;
  pointer-events: none;
}

/* ==========================================
   7. 정답일 때 눈에 찍힌 고양이 발자국
========================================== */

#keyboard.theme-ice [data-key].soft-paw-key {
  background:
    radial-gradient(
      circle at 50% 60%,
      #ffffff,
      #edf7ff 65%,
      #c4def1
    ) !important;

  box-shadow:
    0 4px 0 #99bad4,
    inset 0 0 9px #ffffff !important;
}

/* 고양이 발자국 전체 */

.soft-paw-print {
  position: absolute !important;

  left: 50% !important;
  bottom: 3px !important;

  width: 29px !important;
  height: 25px !important;

  transform: translateX(-50%);

  z-index: 20 !important;

  pointer-events: none !important;

  animation: softPawPress .3s ease-out both;
}

/* 눈에 움푹 들어간 발바닥 질감 */

.soft-paw-print i {
  position: absolute !important;
  display: block !important;

  background:
    linear-gradient(
      145deg,
      #759ab8,
      #abc7dd 60%,
      #d6e9f7
    ) !important;

  box-shadow:
    inset 1px 2px 3px rgba(42, 79, 111, .5),
    1px 1px 1px white !important;
}

/* 중앙 발바닥 */

.soft-paw-print .soft-pad {
  width: 13px;
  height: 10px;

  left: 8px;
  bottom: 1px;

  border-radius: 50% 50% 40% 40%;
}

/* 네 개의 발가락 */

.soft-paw-print .soft-toe-1 {
  width: 5px;
  height: 7px;

  left: 2px;
  top: 7px;

  border-radius: 50%;
  transform: rotate(-25deg);
}

.soft-paw-print .soft-toe-2 {
  width: 5px;
  height: 7px;

  left: 8px;
  top: 2px;

  border-radius: 50%;
  transform: rotate(-10deg);
}

.soft-paw-print .soft-toe-3 {
  width: 5px;
  height: 7px;

  right: 8px;
  top: 2px;

  border-radius: 50%;
  transform: rotate(10deg);
}

.soft-paw-print .soft-toe-4 {
  width: 5px;
  height: 7px;

  right: 2px;
  top: 7px;

  border-radius: 50%;
  transform: rotate(25deg);
}

@keyframes softPawPress {

  0% {
    opacity: 0;

    transform:
      translateX(-50%)
      scale(1.4);
  }

  45% {
    opacity: 1;

    transform:
      translateX(-50%)
      scale(.85);
  }

  100% {
    opacity: 1;

    transform:
      translateX(-50%)
      scale(1);
  }
}

/* 발자국이 찍혀도 기존 글자를 위쪽에 표시 */

#keyboard.theme-ice [data-key].soft-paw-key {
  padding-bottom: 23px !important;
}

/* 오답은 발자국 없이 가볍게 흔들리기 */

#keyboard.theme-ice [data-key].soft-wrong-key {
  animation: softWrongShake .25s ease !important;

  border-color: #e7a5b4 !important;
}

@keyframes softWrongShake {

  0%, 100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-3px);
  }

  75% {
    transform: translateX(3px);
  }
}

/* ==========================================
   8. 모바일 키보드
========================================== */

@media (max-width: 768px) {

  #keyboard.theme-ice {
    padding: 15px 5px 20px !important;
    border-radius: 22px !important;
  }

  #keyboard.theme-ice [data-key] {
    min-height: 39px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
  }

  #keyboard.theme-ice [data-key]::before {
    border-radius: 8px !important;
    inset: 2px !important;
  }

  .soft-paw-print {
    transform:
      translateX(-50%)
      scale(.75);
    transform-origin: bottom center;
  }

  #keyboard.theme-ice [data-key].soft-paw-key {
    padding-bottom: 18px !important;
  }

  #keyboard.theme-ice [data-key="f"]::after,
  #keyboard.theme-ice [data-key="j"]::after,
  #keyboard.theme-ice [data-key="q"]::after,
  #keyboard.theme-ice [data-key="p"]::after {
    width: 12px;
    height: 8px;
  }
}


/* ==========================================
   WINTER UPDATE 3
   가독성 + 음각 발자국 + 눈사람 이동 버튼
========================================== */

/* 1. 겨울 배경 명암 조정 */

body.winter-theme {
  color: #203f60 !important;

  background: linear-gradient(
    155deg,
    #a9cfea 0%,
    #c6e1f5 48%,
    #b5d6ef 100%
  ) !important;

  background-attachment: fixed !important;
}

/* 제목은 진한 남색으로 */

body.winter-theme .page-heading h1,
body.winter-theme .section-heading h2,
body.winter-theme .hero-copy h2,
body.winter-theme .active-game-heading h1,
body.winter-theme .coding-section-heading h2 {
  color: #23496e !important;

  text-shadow:
    0 2px 0 rgba(255,255,255,.9),
    0 3px 5px rgba(58,105,145,.12)
    !important;
}

/* 설명 글자도 선명하게 */

body.winter-theme .page-heading p,
body.winter-theme .section-heading p,
body.winter-theme .hero-copy p,
body.winter-theme .eyebrow,
body.winter-theme .muted,
body.winter-theme .sub-text,
body.winter-theme .dash-title,
body.winter-theme .nav-btn,
body.winter-theme .coding-section-heading p {
  color: #365b7b !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

/* 배경과 카드 분리 */

body.winter-theme .dash-card,
body.winter-theme .shortcut-card,
body.winter-theme .practice-panel,
body.winter-theme .question-card,
body.winter-theme .record-card,
body.winter-theme .settings-panel,
body.winter-theme .game-select-card,
body.winter-theme .daily-record-panel,
body.winter-theme .key-training-panel {
  background: rgba(249,253,255,.96) !important;

  border: 1px solid #ffffff !important;

  box-shadow:
    0 5px 0 rgba(94,143,184,.12),
    0 10px 24px rgba(68,113,151,.13)
    !important;
}

/* 버튼 글자 가독성 */

body.winter-theme .primary-btn {
  background: linear-gradient(
    145deg,
    #649dcb,
    #477eaf
  ) !important;

  color: #ffffff !important;
  text-shadow: 0 1px 2px #365f85;
}

body.winter-theme .secondary-btn {
  color: #254c70 !important;
  background: #e7f3fd !important;
}

/* 눈 내리는 기존 애니메이션 유지
   글자 위를 가리지 않도록 투명도만 조정 */

body.winter-theme .snow-layer {
  opacity: .82;
  pointer-events: none !important;
}

/* ==========================================
   2. 겨울 키보드 글자 완전 분리
========================================== */

#keyboard.theme-ice .key {
  position: relative !important;

  display: flex !important;
  flex-direction: column !important;

  align-items: center !important;
  justify-content: center !important;

  gap: 3px !important;

  height: 60px !important;
  min-height: 60px !important;

  padding: 5px 2px !important;

  border-radius: 18px !important;

  overflow: hidden !important;

  color: #173c5e !important;

  filter: none !important;
  text-shadow: none !important;

  box-sizing: border-box !important;
}

/* 영어 글자 */

#keyboard.theme-ice .key .winter-key-en {
  position: relative !important;

  display: block !important;

  inset: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  transform: none !important;

  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 20px !important;

  color: #173c5e !important;

  opacity: 1 !important;
  filter: none !important;

  text-shadow: 0 1px 0 white !important;

  z-index: 5 !important;
}

/* 한글 글자 */

#keyboard.theme-ice .key .winter-key-ko {
  position: relative !important;

  display: block !important;

  inset: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  transform: none !important;

  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 15px !important;

  color: #416581 !important;

  opacity: 1 !important;
  filter: none !important;

  text-shadow: 0 1px 0 white !important;

  z-index: 5 !important;
}

/* 기본 자판에서는 기존 글자 배치 유지 */

#keyboard:not(.theme-ice) .winter-key-en {
  display: inline;
}

/* ==========================================
   3. 정답 키 표시 가독성
========================================== */

#keyboard.theme-ice .key.target,
#keyboard.theme-ice .key.target-key {
  background: linear-gradient(
    145deg,
    #edf9ff,
    #9fccec
  ) !important;

  border: 2px solid #3977a8 !important;

  outline: none !important;

  box-shadow:
    0 4px 0 #719fc3,
    0 0 7px rgba(255,255,255,.8),
    inset 0 2px 4px white
    !important;

  animation: none !important;
  filter: none !important;
}

/* 정답 표시 중에도 글자 색상 고정 */

#keyboard.theme-ice .key.target .winter-key-en,
#keyboard.theme-ice .key.target-key .winter-key-en,
#keyboard.theme-ice .key.pressed .winter-key-en {
  color: #102f4c !important;
  opacity: 1 !important;
}

#keyboard.theme-ice .key.target .winter-key-ko,
#keyboard.theme-ice .key.target-key .winter-key-ko,
#keyboard.theme-ice .key.pressed .winter-key-ko {
  color: #294f70 !important;
  opacity: 1 !important;
}

/* 기존 발자국 효과와 충돌 방지 */

#keyboard.theme-ice .ice-paw-stamp,
#keyboard.theme-ice .soft-paw-print {
  display: none !important;
}

/* ==========================================
   4. 눈에 움푹 찍힌 고양이 발자국
========================================== */

#keyboard.theme-ice .key.snow-paw-marked {
  background:
    radial-gradient(
      ellipse at 50% 50%,
      #ffffff,
      #e6f2fc 70%,
      #c4deef
    ) !important;

  padding: 5px 2px !important;

  box-shadow:
    0 4px 0 #96b8d4,
    inset 0 0 8px #ffffff
    !important;
}

/* 자판 표면 전체에 찍히는 발자국 */

#keyboard.theme-ice .snow-paw-imprint {
  position: absolute !important;

  display: block !important;

  left: 50% !important;
  top: 50% !important;

  right: auto !important;
  bottom: auto !important;

  width: 42px !important;
  height: 42px !important;

  margin: 0 !important;
  padding: 0 !important;

  transform:
    translate(-50%, -50%)
    rotate(-12deg) !important;

  pointer-events: none !important;

  z-index: 2 !important;

  animation:
    snowPawImpression .3s ease-out both;
}

/* 발자국 음각 질감 */

#keyboard.theme-ice .snow-paw-imprint i {
  position: absolute !important;

  display: block !important;

  background: linear-gradient(
    145deg,
    #789bb9,
    #b1cce0 55%,
    #d9eaf6
  ) !important;

  box-shadow:
    inset 2px 3px 4px rgba(45,79,110,.45),
    inset -1px -1px 2px #c9dfef,
    1px 2px 1px #ffffff
    !important;
}

/* 발바닥 중앙 */

.snow-paw-imprint .imprint-pad {
  left: 10px;
  top: 22px;

  width: 23px;
  height: 17px;

  border-radius: 48% 48% 38% 38%;
}

/* 발가락 네 개 */

.snow-paw-imprint .imprint-toe1 {
  left: 1px;
  top: 13px;

  width: 9px;
  height: 12px;

  border-radius: 50%;
  transform: rotate(-30deg);
}

.snow-paw-imprint .imprint-toe2 {
  left: 10px;
  top: 3px;

  width: 9px;
  height: 13px;

  border-radius: 50%;
  transform: rotate(-10deg);
}

.snow-paw-imprint .imprint-toe3 {
  right: 10px;
  top: 3px;

  width: 9px;
  height: 13px;

  border-radius: 50%;
  transform: rotate(10deg);
}

.snow-paw-imprint .imprint-toe4 {
  right: 1px;
  top: 13px;

  width: 9px;
  height: 12px;

  border-radius: 50%;
  transform: rotate(30deg);
}

/* 눈을 꾹 밟는 느낌 */

@keyframes snowPawImpression {
  from {
    opacity: 0;
    scale: 1.2;
  }

  to {
    opacity: .85;
    scale: 1;
  }
}

/* 발자국 위에서도 글자가 보이도록 */

#keyboard.theme-ice
.snow-paw-marked .winter-key-en,

#keyboard.theme-ice
.snow-paw-marked .winter-key-ko {
  text-shadow:
    1px 0 white,
    -1px 0 white,
    0 1px white,
    0 -1px white
    !important;
}

/* 오답 표시 */

#keyboard.theme-ice .key.wrong-key,
#keyboard.theme-ice .key.soft-wrong-key {
  border-color: #d88799 !important;

  background: #f9e4eb !important;
}

/* ==========================================
   5. 눈사람 스크롤 이동 버튼
========================================== */

/* 기존 장식 눈사람 숨기기 */

body.winter-theme .snowman-decoration {
  display: none !important;
}

/* 새로운 클릭 가능한 눈사람 */

.winter-scroll-snowman {
  display: none;

  position: fixed;

  right: 20px;

  width: 68px;
  height: 78px;

  padding: 5px;

  border: 2px solid white;
  border-radius: 30px;

  background: linear-gradient(
    145deg,
    #ffffff,
    #d3eafa
  );

  color: #315c80;

  box-shadow:
    0 4px 0 #93b7d3,
    0 8px 15px rgba(56,99,137,.2);

  cursor: pointer;

  z-index: 1001;

  transition:
    transform .2s,
    box-shadow .2s;
}

body.winter-theme .winter-scroll-snowman {
  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 2px;
}

.winter-scroll-snowman:hover {
  transform: translateY(-4px);
}

.winter-scroll-snowman:active {
  transform: translateY(3px);

  box-shadow:
    0 1px 0 #93b7d3;
}

.winter-scroll-snowman .snowman-face {
  font-size: 34px;
  line-height: 38px;
}

.winter-scroll-snowman .snowman-label {
  font-size: 10px;
  font-weight: 800;
  color: #315c80;
}

/* 위쪽 눈사람 : 맨 아래로 */

#winterScrollDown {
  top: 100px;
}

/* 아래쪽 눈사람 : 맨 위로 */

#winterScrollUp {
  bottom: 20px;
}

/* ==========================================
   6. 모바일 반응형
========================================== */

@media (max-width: 768px) {

  #keyboard.theme-ice .key {
    height: 43px !important;
    min-height: 43px !important;

    border-radius: 10px !important;

    gap: 1px !important;
    padding: 3px 1px !important;
  }

  #keyboard.theme-ice .key .winter-key-en {
    font-size: 13px !important;
    line-height: 15px !important;
  }

  #keyboard.theme-ice .key .winter-key-ko {
    font-size: 10px !important;
    line-height: 12px !important;
  }

  #keyboard.theme-ice .snow-paw-imprint {
    transform:
      translate(-50%, -50%)
      rotate(-12deg)
      scale(.65) !important;
  }

  .winter-scroll-snowman {
    right: 8px;

    width: 46px;
    height: 58px;

    border-radius: 20px;
  }

  .winter-scroll-snowman .snowman-face {
    font-size: 25px;
    line-height: 28px;
  }

  .winter-scroll-snowman .snowman-label {
    font-size: 8px;
  }

  #winterScrollDown {
    top: 85px;
  }

  #winterScrollUp {
    bottom: 85px;
  }
}


/* ======================================
   겨울왕국 음악 선택 카드
====================================== */

#winterAudioControls {
  padding: 25px;
  margin-top: 24px;
  background: linear-gradient(
    145deg,
    #f5faff,
    #e1edf9
  );
  border: 1px solid #c4d7e8;
  border-radius: 25px;
}

.winter-track-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
  color: #38536f;
}

.winter-track-heading > span {
  font-size: 34px;
  background: #eef6ff;
  border: 1px solid #ccdeef;
  padding: 12px;
  border-radius: 18px;
}

.winter-track-heading h3 {
  font-size: 21px;
  margin: 0 0 6px;
  color: #38536f;
}

.winter-track-heading p {
  font-size: 13px;
  margin: 0;
  color: #71869d;
}

.winter-track-list {
  display: grid;
  gap: 18px;
}

.winter-track-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  background: #fafdff;
  border: 2px solid #c5d9ea;
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  color: #38536f;
  box-shadow: 0 5px 0 #bfd2e3;
  transition: .2s ease;
}

.winter-track-option:hover {
  background: #edf6ff;
  transform: translateY(-2px);
}

.winter-track-option:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #bfd2e3;
}

.winter-track-option.selected {
  background: linear-gradient(
    135deg,
    #f7fbff,
    #d8e7f8
  );
  border-color: #8eafd0;
  box-shadow: 0 5px 0 #9ebbd5;
}

.winter-track-icon {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  flex-shrink: 0;
  border-radius: 20px;
  font-size: 32px;
  background: linear-gradient(
    145deg,
    #ffffff,
    #d5e6f7
  );
  border: 2px solid white;
  box-shadow: 0 4px 0 #bad0e5;
}

.winter-track-info {
  flex: 1;
  min-width: 0;
}

.winter-track-info b {
  display: block;
  color: #38536f;
  font-size: 17px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.winter-track-info small {
  display: block;
  margin-top: 6px;
  color: #748ca5;
  font-size: 13px;
}

.winter-track-check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #abc4db;
  font-weight: 900;
}

.winter-track-option.selected .winter-track-check {
  background: #8aaccd;
  color: white;
}

#winterAudioStatus {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 22px 0 8px;
  text-align: center;
  color: #557b9e;
  font-size: 13px;
  font-weight: 700;
}

.winter-track-note {
  font-size: 12px;
  color: #8096ac;
  text-align: center;
  margin-bottom: 0;
}

/* 모바일 반응형 */

@media (max-width: 600px) {

  #winterAudioControls {
    padding: 15px;
  }

  .winter-track-option {
    padding: 14px;
    gap: 12px;
  }

  .winter-track-icon {
    width: 48px;
    height: 48px;
    font-size: 26px;
    border-radius: 15px;
  }

  .winter-track-info b {
    font-size: 14px;
  }

  .winter-track-info small {
    font-size: 11px;
  }

  .winter-track-heading h3 {
    font-size: 17px;
  }

  .winter-track-check {
    width: 24px;
    height: 24px;
  }
}


