:root {
  --bg-0: #070f17;
  --bg-1: #0e1723;
  --bg-2: #151f30;
  --bg-3: #1f2c40;
  --gold-0: #f0d6a2;
  --gold-1: #e2c386;
  --gold-2: #c9a96e;
  --text-0: #f7f5f1;
  --text-1: #d3d6db;
  --text-2: #9c9fa2;
  --ok: #7fd5a6;
  --danger: #ff8f7f;
  --info: #87b7ff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 18px 42px rgba(0, 0, 0, 0.42);
  --shadow-2: 0 8px 24px rgba(226, 195, 134, 0.2);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans TC", sans-serif;
  color: var(--text-1);
  background:
    radial-gradient(circle at 10% 20%, rgba(226, 195, 134, 0.08), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(135, 183, 255, 0.12), transparent 34%),
    linear-gradient(165deg, #0a111a 0%, #0b1420 45%, #070f17 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-0);
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

button,
input,
textarea {
  font: inherit;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 195, 134, 0.15), transparent 34%),
    linear-gradient(170deg, #04080f, #070f17 38%, #0d1726 100%);
  transition: opacity 460ms ease, transform 460ms ease;
}

.intro-screen.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: scale(1.02);
}

.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  animation: twinkle linear infinite;
}

.intro-noise {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.65) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

.intro-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 80%
  );
  transform: translateY(-100%);
  animation: scan 4.5s ease-in-out infinite;
}

.intro-content {
  position: relative;
  width: min(100%, 560px);
  padding: 24px 18px 30px;
}

.intro-theme {
  text-align: center;
  animation: intro-rise 900ms ease both;
}

.intro-kicker,
.header-kicker,
.card-kicker {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(226, 195, 134, 0.9);
}

.intro-plane {
  font-size: 72px;
  filter: drop-shadow(0 0 20px rgba(226, 195, 134, 0.35));
  opacity: 0;
  animation:
    heli-approach 1200ms 2600ms cubic-bezier(0.2, 0.85, 0.15, 1) both,
    plane-hover 3.2s 3800ms ease-in-out infinite;
}

.intro-title {
  margin-top: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(32px, 9.4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #f7e2bb 10%, #cda76c 48%, #fff0d7 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: title-pop 2000ms cubic-bezier(0.22, 1, 0.2, 1) forwards;
}

.intro-signature {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  opacity: 0;
  animation: subtitle-pop 1300ms 500ms cubic-bezier(0.22, 1, 0.2, 1) forwards;
}

.intro-kicker {
  opacity: 0;
  animation: subtitle-pop 1300ms 500ms cubic-bezier(0.22, 1, 0.2, 1) forwards;
}

.intro-subtitle {
  margin-top: 16px;
  line-height: 1.7;
  color: rgba(237, 240, 245, 0.85);
}

.intro-brief {
  position: relative;
  margin-top: 22px;
  border-radius: 0 14px 14px 0;
  border-left: 0;
  background: rgba(9, 15, 25, 0.42);
  padding: 10px 12px 10px;
  text-align: left;
  overflow: hidden;
}

.intro-brief::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f8e5bd, #cda56e);
  transform: scaleX(0.06);
  transform-origin: left center;
  animation: brief-line-grow 700ms 1800ms cubic-bezier(0.45, 0, 0.3, 1) forwards;
}

.intro-brief-content {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: brief-text-reveal 640ms 2520ms cubic-bezier(0.08, 0.88, 0.24, 1) forwards;
}

.intro-brief-line {
  color: var(--text-1);
  line-height: 1.5;
  margin-top: 7px;
}

.intro-stat-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.intro-stat {
  border-radius: var(--radius-sm);
  border: 0;
  padding: 10px 8px;
  background: rgba(15, 23, 36, 0.26);
  box-shadow: inset 0 1px 0 rgba(226, 195, 134, 0.18);
  opacity: 0;
  transform: translateY(6px);
  animation: intro-card-fade 500ms ease forwards;
}

.intro-stat:nth-child(1) {
  animation-delay: 3020ms;
}

.intro-stat:nth-child(2) {
  animation-delay: 3520ms;
}

.intro-stat:nth-child(3) {
  animation-delay: 4020ms;
}

.intro-stat strong {
  display: block;
  color: var(--gold-1);
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
}

.intro-stat span {
  display: block;
  margin-top: 2px;
  color: var(--text-2);
  font-size: 11px;
}

.intro-sound-controls {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.intro-tagline {
  margin-top: 14px;
  color: var(--text-2);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: subtitle-pop 900ms 3980ms cubic-bezier(0.22, 1, 0.2, 1) forwards;
}

.primary-button.intro-enter-button {
  position: relative;
  overflow: hidden;
  width: min(100%, 340px);
  margin-top: 16px;
  font-size: 17px;
  opacity: 0;
  transform: scale(0.86);
  animation: intro-button-reveal 520ms 3400ms cubic-bezier(0.22, 1, 0.2, 1) forwards;
  box-shadow:
    0 16px 42px rgba(226, 195, 134, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.primary-button.intro-enter-button::before {
  content: "";
  position: absolute;
  inset: -30% -45%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.78) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: translateX(-115%) rotate(8deg);
  pointer-events: none;
  animation: intro-button-shine 760ms 3620ms cubic-bezier(0.12, 0.8, 0.18, 1) forwards;
}

.primary-button.intro-enter-button.is-locked {
  filter: saturate(0.65);
  cursor: not-allowed;
}

.intro-ritual {
  margin-top: 14px;
  opacity: 0;
  animation: intro-ready-fade 520ms 2550ms ease forwards;
}

.intro-ritual-track {
  width: min(100%, 320px);
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(226, 195, 134, 0.2);
}

.intro-ritual-fill {
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, #f6dfb3, #d3ac70, #f6dfb3);
  animation: ritual-fill 780ms 2600ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.intro-ritual-text {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  font-family: "Montserrat", sans-serif;
}

.app-root {
  position: relative;
  width: min(100%, 470px);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 82px;
}

.app-root.is-hidden {
  display: none;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px 12px;
  background: linear-gradient(180deg, rgba(7, 15, 23, 0.92), rgba(7, 15, 23, 0.62), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.header-left {
  min-width: 0;
}

.header-logo {
  height: clamp(27px, 7.5vw, 35px);
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  transform: translate(4px, 6px);
  transform-origin: left center;
  margin-bottom: 2px;
}

.app-header h2 {
  margin-top: 6px;
  font-size: 24px;
}

.app-header .is-hidden {
  display: none;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-1);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(226, 195, 134, 0.25);
  background: rgba(21, 31, 48, 0.6);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(127, 213, 166, 0.15);
}

.app-main {
  flex: 1;
  padding: 8px 12px 18px;
}

.access-lock-banner {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 143, 127, 0.5);
  background: linear-gradient(140deg, rgba(55, 24, 24, 0.82), rgba(34, 14, 14, 0.86));
  padding: 11px 12px;
  margin-bottom: 10px;
}

.access-lock-banner.is-hidden {
  display: none;
}

.access-lock-banner strong {
  display: block;
  color: #ffd8d2;
  font-size: 14px;
}

.access-lock-banner p {
  margin-top: 4px;
  font-size: 12px;
  color: #f3c9c2;
  line-height: 1.5;
}

.tab-view {
  display: none;
  gap: 12px;
  flex-direction: column;
}

.tab-view.is-active {
  display: flex;
}

#tab-today {
  padding-top: calc(8px + env(safe-area-inset-top, 0px) + var(--viewport-top-obstruction, 0px));
  padding-bottom: 118px;
}

.card {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(23, 34, 51, 0.94), rgba(14, 23, 36, 0.96)),
    rgba(14, 23, 36, 0.9);
  border: 1px solid rgba(226, 195, 134, 0.18);
  box-shadow: var(--shadow-1);
  padding: 16px;
}

.hero-card {
  border-color: rgba(226, 195, 134, 0.4);
  box-shadow:
    var(--shadow-1),
    0 0 38px rgba(226, 195, 134, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 195, 134, 0.22), transparent 45%),
    linear-gradient(160deg, rgba(29, 45, 68, 0.96), rgba(14, 23, 36, 0.96));
}

.mission-brief-card {
  border-color: rgba(226, 195, 134, 0.45);
  box-shadow:
    var(--shadow-1),
    0 0 36px rgba(226, 195, 134, 0.14);
  background:
    radial-gradient(circle at 90% 8%, rgba(226, 195, 134, 0.22), transparent 44%),
    linear-gradient(150deg, rgba(25, 39, 58, 0.98), rgba(12, 20, 32, 0.96));
}

.today-top-brief {
  margin-bottom: 12px;
  padding: 2px 4px;
}

.today-top-brand {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(30px, 8.2vw, 38px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.03em;
  background: linear-gradient(118deg, #f3e0bb 0%, #cda56e 55%, #fff0d5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.today-top-signature {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
}

.today-top-title {
  margin-top: 8px;
  color: var(--text-0);
  font-size: 20px;
}

.today-top-summary {
  margin-top: 8px;
  color: var(--text-2);
  line-height: 1.55;
  font-size: 13px;
}

.mission-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.today-academy-title {
  margin-top: 6px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 8.2vw, 38px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  background: linear-gradient(118deg, #f3e0bb 0%, #cda56e 55%, #fff0d5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.today-academy-signature {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
}

.today-plane-wrap {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(226, 195, 134, 0.36);
  background: rgba(12, 20, 31, 0.62);
  display: grid;
  place-items: center;
  font-size: 30px;
  animation: plane-hover 3.2s ease-in-out infinite;
}

.mission-title {
  margin-top: 12px;
  font-size: 19px;
}

.today-stats-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.today-mini-stat {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(226, 195, 134, 0.25);
  background: rgba(9, 15, 25, 0.72);
  padding: 10px 8px;
}

.today-mini-stat span {
  display: block;
  font-size: 11px;
  color: var(--text-2);
}

.today-mini-stat strong {
  display: block;
  margin-top: 5px;
  font-family: "Montserrat", sans-serif;
  color: var(--text-0);
  font-size: 16px;
}

.today-tagline {
  margin-top: 11px;
  color: #d5d9df;
  letter-spacing: 0.03em;
  text-align: center;
}

.mission-flow-card h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 21px;
}

.flow-list {
  list-style: none;
  margin-top: 2px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 2px;
}

.flow-inline-item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  min-height: 38px;
  padding: 0 4px;
}

.flow-inline-label {
  display: block;
  color: var(--text-0);
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.flow-inline-item.is-done .flow-inline-label {
  color: #8fe7bc;
}

.flow-arrow-track {
  position: relative;
  margin-top: 8px;
  height: 18px;
}

.flow-arrow-track::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 18px;
  top: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(226, 195, 134, 0.62), rgba(226, 195, 134, 0.98));
}

.flow-arrow-track::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 3px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 12px solid var(--gold-1);
}

.section-hub-card h4 {
  margin-bottom: 10px;
}

.section-hub-grid {
  display: grid;
  gap: 9px;
}

.hub-item {
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 195, 134, 0.24);
  padding: 12px;
  background: rgba(12, 20, 31, 0.78);
}

.hub-title {
  display: block;
  font-weight: 700;
  color: var(--text-0);
}

.hub-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-2);
}

.hub-learn {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(12, 20, 31, 0.8));
}

.hub-progress {
  background: linear-gradient(135deg, rgba(226, 195, 134, 0.16), rgba(12, 20, 31, 0.8));
}

.hub-challenges {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(12, 20, 31, 0.8));
}

.muted-text {
  margin-top: 10px;
  color: var(--text-2);
  line-height: 1.6;
}

.muted-text.small {
  margin-top: 8px;
  font-size: 12px;
}

.hero-status-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-box {
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 195, 134, 0.22);
  padding: 12px;
  background: rgba(10, 16, 27, 0.62);
}

.status-label {
  display: block;
  font-size: 12px;
  color: var(--text-2);
}

.status-box strong {
  display: block;
  margin-top: 4px;
  color: var(--text-0);
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
}

.hero-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.today-cta-dock {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
  transform: translateX(-50%);
  width: min(100%, 470px);
  padding: 0 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 11;
}

.primary-button.today-main-cta {
  position: relative;
  overflow: hidden;
  width: min(100%, 340px);
  pointer-events: auto;
  padding: 14px 18px;
  font-size: 16px;
  animation: cta-breathe 2.8s ease-in-out infinite;
  box-shadow:
    0 16px 40px rgba(226, 195, 134, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.primary-button.today-main-cta::after {
  content: "";
  position: absolute;
  inset: -36% -55%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.58) 50%,
    rgba(255, 255, 255, 0) 65%
  );
  transform: translateX(-120%) rotate(8deg);
  pointer-events: none;
  animation: intro-button-shine 2200ms 1000ms ease-in-out infinite;
}

.primary-button,
.secondary-button,
.ghost-button,
.chip-button,
.mini-tab,
.icon-button,
.nav-button {
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.primary-button {
  padding: 12px 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #070f17;
  background: linear-gradient(120deg, var(--gold-0), var(--gold-1), var(--gold-2));
  box-shadow: var(--shadow-2);
}

.secondary-button {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--gold-1);
  border: 1px solid rgba(226, 195, 134, 0.38);
  background: rgba(226, 195, 134, 0.08);
}

.ghost-button {
  padding: 11px 12px;
  color: var(--text-2);
  border: 1px dashed rgba(156, 159, 162, 0.45);
  background: transparent;
}

.chip-button {
  padding: 9px 11px;
  color: var(--text-1);
  border: 1px solid rgba(156, 159, 162, 0.35);
  background: rgba(12, 20, 31, 0.75);
  border-radius: 999px;
  font-size: 13px;
}

.mini-tab {
  padding: 8px 12px;
  border: 1px solid rgba(156, 159, 162, 0.25);
  background: rgba(12, 20, 31, 0.75);
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
}

.mini-tab.is-active {
  color: var(--gold-1);
  border-color: rgba(226, 195, 134, 0.5);
  background: rgba(226, 195, 134, 0.12);
}

.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--text-1);
  border: 1px solid rgba(156, 159, 162, 0.34);
  background: rgba(7, 15, 23, 0.75);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.chip-button:hover,
.mini-tab:hover,
.icon-button:hover,
.nav-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.chip-button:disabled,
.mini-tab:disabled,
.icon-button:disabled,
.nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

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

.badge {
  font-size: 12px;
  color: #f6eedf;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid rgba(226, 195, 134, 0.38);
  background: rgba(226, 195, 134, 0.14);
  white-space: nowrap;
}

.badge.is-danger {
  color: #ffd9d3;
  border-color: rgba(255, 143, 127, 0.5);
  background: rgba(255, 143, 127, 0.15);
}

.badge.is-ok {
  color: #d9f8e8;
  border-color: rgba(127, 213, 166, 0.52);
  background: rgba(127, 213, 166, 0.16);
}

.list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.list li {
  border-radius: var(--radius-md);
  border: 1px solid rgba(156, 159, 162, 0.2);
  background: rgba(12, 20, 31, 0.76);
  padding: 12px;
  line-height: 1.6;
}

.list li.is-current-week {
  border-color: rgba(226, 195, 134, 0.44);
  box-shadow: 0 0 0 1px rgba(226, 195, 134, 0.14) inset;
}

.list a {
  text-decoration: none;
}

.list.compact li {
  padding: 10px;
  font-size: 14px;
}

.list strong {
  color: #e6ebf2;
}

.learn-summary-card {
  overflow: hidden;
}

.week-tab-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.week-tab-row::-webkit-scrollbar {
  display: none;
}

.week-pill {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 195, 134, 0.3);
  background: rgba(11, 19, 30, 0.78);
  color: var(--text-2);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.week-pill.is-active {
  color: #070f17;
  background: linear-gradient(120deg, var(--gold-0), var(--gold-1));
  border-color: transparent;
}

.week-pill.is-done {
  color: #8ee9bc;
  border-color: rgba(127, 213, 166, 0.45);
  background: rgba(127, 213, 166, 0.12);
}

.course-map-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.course-map-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(156, 159, 162, 0.22);
  background: rgba(11, 19, 30, 0.78);
  padding: 11px 12px;
}

.course-map-item.is-current {
  border-color: rgba(226, 195, 134, 0.45);
  box-shadow: 0 0 0 1px rgba(226, 195, 134, 0.16) inset;
}

.course-map-item.is-done {
  border-color: rgba(127, 213, 166, 0.44);
  background: linear-gradient(130deg, rgba(16, 34, 30, 0.8), rgba(11, 19, 30, 0.78));
}

.course-thumb {
  display: block;
  flex-shrink: 0;
  font-size: 23px;
}

.course-info {
  flex: 1;
}

.course-title {
  color: var(--text-0);
  font-weight: 700;
  font-size: 14px;
}

.course-meta {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 12px;
}

.course-check {
  color: var(--text-2);
  font-size: 14px;
  flex-shrink: 0;
}

.course-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.course-link {
  text-decoration: none;
}

.course-complete-btn {
  font-size: 12px;
  padding: 8px 10px;
  white-space: nowrap;
}

.course-complete-btn.is-done {
  color: #8fe7bc;
  border-color: rgba(127, 213, 166, 0.52);
  background: rgba(127, 213, 166, 0.14);
}

.retrain-card {
  overflow: hidden;
}

.retrain-issue-grid {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.retrain-issue {
  width: 100%;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid rgba(156, 159, 162, 0.28);
  background: rgba(11, 19, 30, 0.78);
  color: var(--text-1);
  padding: 11px 12px;
}

.retrain-issue-title {
  display: block;
  color: var(--text-0);
  font-size: 13px;
  line-height: 1.5;
}

.retrain-issue-sub {
  display: block;
  margin-top: 5px;
  color: var(--text-2);
  font-size: 12px;
}

.retrain-issue.is-selected {
  border-color: rgba(226, 195, 134, 0.56);
  box-shadow: 0 0 0 1px rgba(226, 195, 134, 0.14) inset;
  background: linear-gradient(145deg, rgba(226, 195, 134, 0.14), rgba(11, 19, 30, 0.78));
}

.retrain-recommendation {
  margin-top: 10px;
}

.retrain-result {
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 195, 134, 0.34);
  background: linear-gradient(145deg, rgba(16, 26, 39, 0.9), rgba(11, 19, 30, 0.9));
  padding: 12px;
}

.retrain-result h5 {
  margin-top: 6px;
  font-size: 16px;
}

.retrain-link {
  margin-top: 8px;
  display: inline-flex;
  text-decoration: none;
}

.comment-node-label {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-1);
}

.comment-form {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.comment-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-1);
}

.comment-list {
  margin-top: 12px;
  list-style: none;
  display: grid;
  gap: 9px;
}

.comment-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 195, 134, 0.25);
  background: rgba(9, 15, 25, 0.64);
  padding: 10px 11px;
}

.comment-head-row {
  align-items: flex-start;
}

.comment-author-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-0);
}

.comment-time {
  color: var(--text-2);
  font-size: 11px;
}

.coach-verified-badge {
  border-radius: 999px;
  font-size: 11px;
  color: #e2f7ec;
  border: 1px solid rgba(127, 213, 166, 0.48);
  background: rgba(127, 213, 166, 0.16);
  padding: 3px 8px;
  white-space: nowrap;
}

.comment-text {
  margin-top: 6px;
  color: var(--text-1);
  line-height: 1.55;
}

.comment-certified-meta {
  margin-top: 7px;
  color: var(--text-2);
  font-size: 12px;
}

.comment-admin-actions {
  margin-top: 8px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.comment-empty {
  border-radius: var(--radius-md);
  border: 1px dashed rgba(156, 159, 162, 0.34);
  background: rgba(9, 15, 25, 0.5);
  padding: 11px;
  color: var(--text-2);
  font-size: 13px;
}

.route-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.route-list li {
  border-radius: var(--radius-md);
  border: 1px solid rgba(156, 159, 162, 0.2);
  background: rgba(11, 18, 29, 0.72);
  padding: 11px 12px;
  font-size: 14px;
}

.route-list li.is-today {
  border-color: rgba(226, 195, 134, 0.5);
  background: linear-gradient(135deg, rgba(226, 195, 134, 0.14), rgba(11, 18, 29, 0.78));
}

.level-track {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.level-item {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(156, 159, 162, 0.24);
  background: rgba(11, 18, 29, 0.72);
}

.level-item.is-current {
  border-color: rgba(226, 195, 134, 0.56);
  box-shadow: 0 0 0 1px rgba(226, 195, 134, 0.12) inset;
}

.level-item.is-done {
  border-color: rgba(127, 213, 166, 0.45);
}

.level-item h5 {
  margin: 0;
  font-size: 15px;
}

.level-item p {
  margin-top: 7px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}

.skills-board {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.progress-overview-card {
  text-align: center;
}

.progress-overview-wrap {
  margin-top: 14px;
  display: grid;
  place-items: center;
}

.progress-ring {
  --progress-val: 40;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  background: conic-gradient(
    from -90deg,
    var(--gold-1) calc(var(--progress-val) * 1%),
    rgba(226, 195, 134, 0.16) calc(var(--progress-val) * 1%)
  );
}

.progress-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: rgba(11, 19, 30, 0.96);
  border: 1px solid rgba(226, 195, 134, 0.22);
}

.progress-ring strong,
.progress-ring span {
  position: relative;
  z-index: 1;
}

.progress-ring strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  color: var(--gold-1);
  line-height: 1;
}

.progress-ring span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-2);
}

.progress-kpi-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.progress-kpi-row div {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(226, 195, 134, 0.24);
  background: rgba(11, 19, 30, 0.72);
  padding: 9px 6px;
}

.progress-kpi-row strong {
  display: block;
  color: var(--gold-1);
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
}

.progress-kpi-row span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-2);
}

.progress-log-list {
  list-style: none;
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.progress-log-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 195, 134, 0.24);
  background: rgba(9, 15, 25, 0.64);
  padding: 10px 11px;
}

.progress-log-item-empty {
  width: 100%;
}

.progress-log-head-meta {
  display: flex;
  gap: 6px;
  align-items: center;
}

.progress-log-carousel {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.progress-log-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.progress-log-viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.progress-log-head strong {
  font-size: 13px;
  color: var(--text-0);
}

.progress-log-drill {
  margin-top: 6px;
  color: #f3e8d5;
  font-size: 14px;
  line-height: 1.5;
}

.progress-log-meta-row {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.radar-skill-board .skill-row {
  border: 1px solid rgba(156, 159, 162, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(11, 19, 30, 0.68);
  padding: 8px 10px;
}

.timeline-track .level-item {
  position: relative;
  padding-left: 58px;
}

.timeline-track .level-item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(226, 195, 134, 0.42);
  background: rgba(11, 19, 30, 0.9);
}

.timeline-track .level-item.is-current::before {
  border-color: rgba(226, 195, 134, 0.9);
  box-shadow: 0 0 16px rgba(226, 195, 134, 0.34);
}

.timeline-track .level-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 42px;
  bottom: -10px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(226, 195, 134, 0.28), transparent);
}

.skill-row {
  display: grid;
  grid-template-columns: 96px 1fr 34px;
  align-items: center;
  gap: 8px;
}

.skill-row span {
  font-size: 12px;
  color: var(--text-1);
}

.skill-bar-wrap {
  height: 9px;
  border-radius: 999px;
  background: rgba(156, 159, 162, 0.24);
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #88a8ff, #d6ba80);
}

.challenge-filter-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.challenge-filter-row::-webkit-scrollbar {
  display: none;
}

.challenge-grid-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.challenge-counter-row {
  display: flex;
  justify-content: flex-end;
}

.challenge-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 195, 134, 0.34);
  background:
    radial-gradient(circle at 90% 8%, rgba(226, 195, 134, 0.2), transparent 46%),
    linear-gradient(150deg, rgba(25, 39, 58, 0.96), rgba(12, 20, 32, 0.95));
  box-shadow:
    var(--shadow-1),
    0 0 24px rgba(226, 195, 134, 0.08);
  padding: 12px;
  overflow: hidden;
}

.challenge-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.challenge-icon {
  display: block;
  font-size: 20px;
  flex-shrink: 0;
}

.challenge-content {
  flex: 1;
}

.challenge-title {
  color: var(--text-0);
  font-weight: 700;
}

.challenge-subline {
  margin-top: 8px;
}

.challenge-item.is-done {
  border-color: rgba(127, 213, 166, 0.44);
  box-shadow: 0 0 0 1px rgba(127, 213, 166, 0.1) inset;
}

.challenge-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.rarity {
  border-radius: 999px;
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid rgba(156, 159, 162, 0.3);
}

.rarity.common {
  color: #d6d8db;
}

.rarity.rare {
  color: #9fc2ff;
  border-color: rgba(159, 194, 255, 0.45);
}

.rarity.epic {
  color: #e8c37f;
  border-color: rgba(232, 195, 127, 0.58);
}

.challenge-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.challenge-actions button {
  flex: 1;
}

.flight-log-form,
#suggestionForm {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.flight-log-form label,
#suggestionForm label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-1);
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(156, 159, 162, 0.33);
  background: rgba(7, 15, 23, 0.76);
  color: var(--text-0);
  padding: 10px 11px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(226, 195, 134, 0.66);
  box-shadow: 0 0 0 3px rgba(226, 195, 134, 0.14);
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: auto;
}

.log-clip-name-field {
  display: none !important;
}

.log-clip-name-field.is-visible {
  display: grid !important;
}

.profile-head-card {
  text-align: center;
}

.profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 34px;
  border: 2px solid rgba(226, 195, 134, 0.5);
  background: radial-gradient(circle, rgba(36, 53, 78, 0.88), rgba(12, 20, 31, 0.9));
  box-shadow: 0 0 22px rgba(226, 195, 134, 0.2);
}

.avatar-button {
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.avatar-button:active {
  transform: scale(0.97);
}

.avatar-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.avatar-choice {
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 195, 134, 0.3);
  background: rgba(11, 19, 30, 0.8);
  color: var(--text-0);
  padding: 12px 0;
  font-size: 26px;
}

.avatar-choice.is-active {
  border-color: rgba(226, 195, 134, 0.8);
  box-shadow: 0 0 0 2px rgba(226, 195, 134, 0.18) inset;
  background: rgba(226, 195, 134, 0.1);
}

.profile-stats-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.profile-stats-row div {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(226, 195, 134, 0.24);
  background: rgba(11, 19, 30, 0.72);
  padding: 9px 6px;
}

.profile-stats-row strong {
  display: block;
  color: var(--gold-1);
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
}

.profile-stats-row span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-2);
}

.account-status-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.account-status-grid div {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(226, 195, 134, 0.24);
  background: rgba(11, 19, 30, 0.72);
  padding: 9px 8px;
}

.account-status-grid span {
  display: block;
  font-size: 11px;
  color: var(--text-2);
}

.account-status-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--text-0);
  font-size: 13px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(156, 159, 162, 0.2);
  padding: 11px 0;
}

.setting-row:first-of-type {
  border-top: 0;
}

.setting-row strong {
  color: var(--text-0);
  font-size: 14px;
}

.setting-toggle {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(226, 195, 134, 0.35);
  background: rgba(11, 19, 30, 0.85);
  position: relative;
  flex-shrink: 0;
}

.setting-toggle::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background: #f7f5f1;
  transition: transform 220ms ease;
}

.setting-toggle.is-on {
  background: rgba(226, 195, 134, 0.82);
}

.setting-toggle.is-on::after {
  transform: translateX(19px);
}

.settings-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 470px);
  background: rgba(7, 15, 23, 0.95);
  border-top: 1px solid rgba(226, 195, 134, 0.18);
  padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  backdrop-filter: blur(10px);
}

.nav-button {
  min-height: 42px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-size: 11px;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: normal;
}

.nav-button[data-tab="today"] {
  position: relative;
  margin-top: -14px;
  min-height: 54px;
  border-radius: 16px;
  color: #f8e7c1;
  border-color: rgba(226, 195, 134, 0.48);
  background: linear-gradient(150deg, rgba(226, 195, 134, 0.24), rgba(18, 30, 44, 0.92));
  box-shadow:
    0 10px 26px rgba(226, 195, 134, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.nav-button[data-tab="today"]::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(226, 195, 134, 0.28);
  opacity: 0.6;
  pointer-events: none;
}

.nav-button.is-active {
  color: var(--gold-1);
  background: rgba(226, 195, 134, 0.12);
  border-color: rgba(226, 195, 134, 0.44);
}

.nav-button[data-tab="today"].is-active {
  color: #fff3da;
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(150deg, rgba(226, 195, 134, 0.35), rgba(24, 38, 55, 0.92));
  border-color: rgba(226, 195, 134, 0.68);
  box-shadow:
    0 15px 34px rgba(226, 195, 134, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.nav-button[data-tab="today"]:hover {
  transform: translateY(-2px) scale(1.015);
}

.nav-button[data-tab="today"].is-active:hover {
  transform: translateY(-3px) scale(1.02);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(3, 6, 11, 0.78);
  backdrop-filter: blur(6px);
}

.modal.is-hidden {
  display: none;
}

.modal-card {
  width: min(100%, 430px);
  max-height: min(90dvh, 760px);
  overflow: auto;
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(226, 195, 134, 0.24);
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 195, 134, 0.12), transparent 44%),
    linear-gradient(170deg, rgba(22, 34, 52, 0.98), rgba(10, 16, 27, 0.97));
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.58);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-card::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.modal-scroll-rail {
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: 5px;
  width: 10px;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.modal-scroll-thumb {
  width: 3px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.98), rgba(221, 228, 237, 0.86));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 8px rgba(201, 215, 234, 0.42);
  transform: translateY(0);
  opacity: 0;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.timer-course-card {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(226, 195, 134, 0.26);
  background:
    radial-gradient(circle at 92% 4%, rgba(226, 195, 134, 0.18), transparent 46%),
    linear-gradient(150deg, rgba(17, 28, 43, 0.9), rgba(10, 16, 26, 0.88));
  padding: 12px;
  display: grid;
  gap: 8px;
}

.timer-course-card h4 {
  margin: 0;
  font-size: 17px;
}

.timer-course-select-wrap {
  display: grid;
  gap: 5px;
}

.timer-course-select-wrap select {
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(226, 195, 134, 0.35);
  background: rgba(9, 16, 27, 0.9);
  color: #f2f4f8;
  padding: 6px 9px;
  font-size: 13px;
}

.timer-course-select-wrap select:disabled {
  opacity: 0.55;
}

.timer-rest-reminder {
  margin: 0;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 143, 127, 0.44);
  background: rgba(92, 28, 26, 0.34);
  color: #ffd8cf;
  font-size: 12px;
  line-height: 1.55;
}

.timer-rest-reminder.is-hidden {
  display: none;
}

.timer-course-tips {
  margin-top: 2px;
}

.timer-course-tip-list {
  margin-top: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.timer-course-tip-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: 10px;
  border: 1px solid rgba(156, 159, 162, 0.22);
  background: rgba(7, 13, 22, 0.68);
  padding: 8px 9px;
  min-height: 82px;
}

.timer-course-tip-carousel {
  margin-top: 6px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.timer-course-tip-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.timer-course-tip-viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.timer-tip-nav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(223, 231, 242, 0.35);
  background: rgba(226, 233, 244, 0.2);
  color: #f5f7fb;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

.timer-tip-nav:disabled {
  opacity: 0.35;
}

.timer-tip-nav:not(:disabled):active {
  transform: scale(0.96);
}

.timer-tip-pagination {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.timer-quick-share-box {
  margin-top: 4px;
  border-top: 1px solid rgba(156, 159, 162, 0.22);
  padding-top: 8px;
}

.timer-quick-share-form {
  margin-top: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}

.timer-quick-share-form input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(156, 159, 162, 0.35);
  background: rgba(8, 14, 23, 0.82);
  color: var(--text-0);
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
}

.timer-quick-share-form input::placeholder {
  color: var(--text-2);
}

.timer-quick-share-form .chip-button {
  min-height: 38px;
}

.timer-reminder-card {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(226, 195, 134, 0.24);
  background: rgba(7, 12, 20, 0.72);
  padding: 9px 10px;
}

.timer-reminder-card-top {
  margin-top: 10px;
}

.timer-reminder-viewport {
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid rgba(226, 195, 134, 0.2);
  background: rgba(11, 18, 29, 0.9);
  padding: 8px 12px 8px 8px;
  overflow: hidden;
}

.timer-reminder-track {
  width: 100%;
  overflow: hidden;
  padding-right: 12px;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.timer-reminder-track.is-visible {
  opacity: 1;
}

.timer-reminder-text {
  display: inline-block;
  white-space: nowrap;
  color: #f5e8d0;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding-right: 8px;
  will-change: transform;
}

.timer-reminder-track.is-overflow .timer-reminder-text {
  animation-name: reminder-slide;
  animation-timing-function: linear;
  animation-fill-mode: both;
}

@keyframes reminder-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--reminder-overflow, 0px)));
  }
}

.timer-course-tip-list .comment-text,
.timer-course-tip-item .comment-text {
  margin-top: 5px;
  font-size: 13px;
}

.timer-course-tip-list .comment-empty {
  margin-top: 0;
}

.timer-readout {
  margin-top: 16px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(44px, 14vw, 64px);
  text-align: center;
  letter-spacing: 0.05em;
  color: var(--gold-1);
}

.timer-progress-wrap {
  margin-top: 8px;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(156, 159, 162, 0.24);
}

.timer-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fb4ff, #e4c789);
}

.timer-actions {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.decision-panel {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 195, 134, 0.3);
  background: rgba(12, 20, 31, 0.7);
}

.decision-panel.is-hidden,
.closing-message.is-hidden {
  display: none;
}

.rest-options {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.rest-options .chip-button.is-selected {
  color: var(--gold-1);
  border-color: rgba(226, 195, 134, 0.54);
  background: rgba(226, 195, 134, 0.16);
}

.closing-message {
  margin-top: 12px;
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(226, 195, 134, 0.1);
  border: 1px solid rgba(226, 195, 134, 0.34);
}

.closing-message p {
  line-height: 1.7;
}

#coachSuggestionCard.is-hidden {
  display: none;
}

.share-card {
  display: grid;
  gap: 10px;
}

.file-upload {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.share-preview {
  min-height: 220px;
  border-radius: 16px;
  border: 1px dashed rgba(156, 159, 162, 0.38);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(7, 15, 23, 0.72);
  color: var(--text-2);
}

.share-preview > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-overlay {
  position: relative;
  width: 100%;
  height: 100%;
}

.poster-overlay .overlay-text {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.poster-overlay .challenge-tag {
  font-family: "Montserrat", sans-serif;
  color: #fff6e4;
  text-transform: uppercase;
  font-size: clamp(13px, 2.8vw, 18px);
  letter-spacing: 0.16em;
}

.poster-overlay .challenge-name {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  font-size: clamp(30px, 7.3vw, 54px);
  font-weight: 800;
  line-height: 0.95;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
}

.poster-overlay .subline {
  color: rgba(251, 245, 233, 0.92);
  font-size: clamp(12px, 2.8vw, 16px);
}

.canvas-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
  }
  45% {
    opacity: 1;
  }
}

@keyframes scan {
  0% {
    transform: translateY(-105%);
  }
  100% {
    transform: translateY(110%);
  }
}

@keyframes plane-hover {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes heli-approach {
  0% {
    opacity: 0;
    transform: translate(150px, -140px) rotate(15deg);
  }
  45% {
    opacity: 1;
    transform: translate(78px, -62px) rotate(15deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes ritual-fill {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0%);
  }
}

@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-pop {
  0% {
    opacity: 0;
    transform: scale(0.64);
  }
  62% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes subtitle-pop {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }
  68% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes brief-line-grow {
  0% {
    transform: scaleX(0.06);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes brief-text-reveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-8px);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

@keyframes intro-card-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-ready-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-button-reveal {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  70% {
    opacity: 1;
    transform: scale(1.035);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes intro-button-shine {
  0% {
    transform: translateX(-120%) rotate(8deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateX(130%) rotate(8deg);
    opacity: 0;
  }
}

@keyframes cta-breathe {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 16px 40px rgba(226, 195, 134, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  }
  50% {
    transform: translateY(-2px);
    box-shadow:
      0 20px 46px rgba(226, 195, 134, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  }
}

@media (min-width: 768px) {
  body {
    padding: 16px 0;
  }

  .app-root {
    border: 1px solid rgba(226, 195, 134, 0.2);
    border-radius: 28px;
    overflow: hidden;
    min-height: 900px;
  }

  .bottom-nav {
    border-radius: 0 0 28px 28px;
  }
}
