:root {
  --navy: #073763;
  --blue: #00a6e8;
  --green: #65b32e;
  --yellow: #f6c343;
  --orange: #f47b20;
  --purple: #7e57c2;
  --teal: #26a69a;
  --bg: #f3fbff;
  --card: #ffffff;
  --ink: #12324a;
  --muted: #5d7485;
  --line: #d8edf6;
  --shadow: 0 18px 45px rgba(7, 55, 99, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(246, 195, 67, 0.35) 0 7px, transparent 8px),
    radial-gradient(circle at 92% 18%, rgba(0, 166, 232, 0.32) 0 9px, transparent 10px),
    linear-gradient(135deg, #f3fbff 0%, #fffaf0 52%, #eefcff 100%);
  letter-spacing: 0;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.dashboard {
  width: min(1280px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 22px 0 26px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px 22px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 5px solid var(--navy);
  border-radius: 20px;
  background: #fff;
  box-shadow: 7px 7px 0 var(--blue);
}

.robot-badge {
  position: relative;
  background:
    radial-gradient(circle at 76% 18%, var(--yellow) 0 8px, transparent 9px),
    linear-gradient(180deg, #ffffff 0%, #dff8ff 100%);
}

.robot-badge::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 4px solid var(--navy);
  border-radius: 50%;
  background: var(--yellow);
  transform: translateX(-50%);
}

.robot-badge::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 4px;
  height: 14px;
  background: var(--navy);
  transform: translateX(-50%);
}

.robot-head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  width: 52px;
  height: 42px;
  padding: 12px 10px 8px;
  border: 4px solid var(--navy);
  border-radius: 16px;
  background: var(--blue);
}

.robot-head::before,
.robot-head::after {
  content: "";
  position: absolute;
  top: 15px;
  width: 7px;
  height: 15px;
  border-radius: 7px;
  background: var(--navy);
}

.robot-head::before {
  left: -10px;
}

.robot-head::after {
  right: -10px;
}

.robot-eye {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.robot-smile {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 22px;
  height: 10px;
  border-bottom: 4px solid #fff;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.hero .lab-heading {
  font-size: 32px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero .course-caption {
  font-size: 18px;
  line-height: 1.2;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--navy);
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 0.94;
  font-weight: 900;
}

.hero p {
  margin-top: 8px;
  color: var(--purple);
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  font-weight: 800;
}

.assign-button,
.secondary-button,
.danger-button {
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.assign-button {
  padding: 16px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  box-shadow: 0 10px 0 rgba(126, 87, 194, 0.35);
  font-size: 1.2rem;
}

.assign-button:hover,
.secondary-button:hover,
.danger-button:hover,
.export-card:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.mission-panel,
.panel,
.modal-card,
.export-card {
  border: 4px solid var(--navy);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.mission-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 3.8vw, 46px);
}

.mission-panel::before {
  content: "";
  position: absolute;
  inset: auto -20px -42px auto;
  width: 210px;
  height: 145px;
  background:
    radial-gradient(circle at 24px 20px, rgba(7, 55, 99, 0.16) 0 8px, transparent 9px),
    radial-gradient(circle at 62px 20px, rgba(7, 55, 99, 0.16) 0 8px, transparent 9px),
    linear-gradient(90deg, rgba(0, 166, 232, 0.12) 0 70px, transparent 70px 82px, rgba(101, 179, 46, 0.12) 82px 152px),
    linear-gradient(0deg, rgba(246, 195, 67, 0.15) 0 58px, transparent 58px);
  transform: rotate(-10deg);
}

.section-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 6px;
  border: 4px solid var(--navy);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 5px 5px 0 rgba(0, 166, 232, 0.22);
}

.mini-robot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 32px;
  height: 26px;
  padding: 8px 6px 5px;
  border: 3px solid #fff;
  border-radius: 10px;
  background: var(--navy);
}

.mini-robot::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateX(-50%);
}

.mini-robot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.panel-badge {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--badge-color);
  box-shadow: 0 0 0 3px var(--badge-color), 0 12px 22px rgba(7, 55, 99, 0.12);
  font-size: 1.6rem;
  font-weight: 950;
}

.panel-badge-help {
  top: 18px;
  right: 178px;
  --badge-color: var(--green);
}

.panel-badge-curiosity {
  right: 72px;
  bottom: 28px;
  --badge-color: var(--blue);
}

.panel-badge-star {
  top: 26px;
  right: 90px;
  --badge-color: var(--yellow);
}

.mission-copy h2,
.panel h2,
.modal-card h2 {
  color: var(--navy);
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1.05;
  font-weight: 900;
}

.score-line {
  margin-top: 14px;
  color: var(--orange);
  font-size: clamp(3rem, 6.8vw, 6.8rem);
  line-height: 0.95;
  font-weight: 950;
}

.progress-shell {
  height: clamp(30px, 4vw, 46px);
  margin-top: 24px;
  overflow: hidden;
  border: 4px solid var(--navy);
  border-radius: 999px;
  background: repeating-linear-gradient(45deg, #dff4ff 0 18px, #ccecff 18px 36px);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange));
  transition: width 450ms cubic-bezier(.2, .8, .2, 1);
}

.next-bonus {
  margin-top: 18px;
  color: var(--navy);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  font-weight: 850;
}

.mission-badge {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.badge-ring {
  display: grid;
  width: 174px;
  height: 174px;
  place-items: center;
  border: 10px solid var(--yellow);
  border-radius: 50%;
  background: #e8fbf5;
  box-shadow: inset 0 0 0 8px var(--teal);
}

.badge-ring span {
  color: var(--navy);
  font-size: 2.6rem;
  font-weight: 950;
}

.mission-badge p {
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 750;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.panel {
  padding: 22px;
}

.symbol-panel {
  aspect-ratio: 297 / 210;
  min-height: 150px;
  overflow: hidden;
  background:
    url("../img/team-symbol-demo.svg") center / cover no-repeat,
    #fffdf7;
}

.team-drawing {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.team-drawing img {
  width: 1px;
  height: 1px;
}

.recent-list,
.behavior-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.recent-item,
.behavior-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  border: 3px solid var(--line);
  border-radius: 16px;
  background: #fbfeff;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 850;
}

.recent-item strong,
.behavior-item strong {
  display: flex;
  align-items: center;
  gap: 10px;
}

.points-pill {
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  text-align: center;
  font-weight: 950;
}

.empty-state {
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 750;
}

.bonus-panel {
  margin-top: 20px;
}

.bonus-timeline {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.modern-roadmap {
  position: relative;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: start;
  isolation: isolate;
  padding: 10px 6px 0;
}

.modern-roadmap::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 34px;
  z-index: -1;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--orange), var(--yellow), var(--teal), var(--blue));
  opacity: 0.35;
}

.roadmap-step {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.roadmap-node {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 4px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  background: #eefbff;
  box-shadow: 0 8px 0 rgba(7, 55, 99, 0.12);
  font-size: 1.35rem;
  font-weight: 950;
}

.roadmap-step.unlocked .roadmap-node {
  color: #fff;
  background: var(--green);
}

.roadmap-step.just-unlocked .roadmap-node {
  animation: milestoneGlow 1600ms ease-in-out 2;
}

.roadmap-step.next .roadmap-node {
  border-color: var(--orange);
  background: var(--yellow);
  box-shadow: 0 10px 0 rgba(244, 123, 32, 0.22);
  transform: scale(1.08);
}

.roadmap-step.future .roadmap-node {
  border-style: dashed;
  color: #8fb4c8;
  background: #f8fdff;
}

.roadmap-label {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 0;
}

.roadmap-label strong {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.roadmap-label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

.roadmap-label small {
  margin-top: 3px;
  color: rgba(7, 55, 99, 0.64);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.roadmap-step.next .roadmap-label small {
  color: var(--orange);
}

.quiet-links {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 4px 0;
}

.quiet-links a,
.quiet-reset {
  color: rgba(7, 55, 99, 0.42);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.quiet-reset {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.quiet-reset:hover,
.quiet-links a:hover {
  color: rgba(7, 55, 99, 0.7);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 55, 99, 0.52);
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(760px, 100%);
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid var(--navy);
  border-radius: 12px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.modal-label,
.scanner-label {
  display: block;
  margin-top: 18px;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 900;
}

.behavior-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.behavior-choice {
  min-height: 68px;
  border: 3px solid var(--line);
  border-radius: 16px;
  background: #f7fdff;
  color: var(--navy);
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
}

.behavior-choice.selected {
  border-color: var(--orange);
  background: #fff0d4;
  box-shadow: 0 0 0 5px rgba(244, 123, 32, 0.15);
}

.scanner-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 9px 13px;
  border: 3px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #f7fdff;
  font-size: 1rem;
  font-weight: 950;
}

.scanner-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(101, 179, 46, 0.18);
}

.scanner-status.busy .scanner-dot {
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(246, 195, 67, 0.22);
  animation: statusPulse 760ms ease-in-out infinite;
}

.scanner-status.success {
  border-color: rgba(101, 179, 46, 0.45);
  background: #f1ffe9;
}

.scanner-status.success .scanner-dot {
  background: var(--green);
}

.scanner-status.error {
  border-color: rgba(176, 0, 32, 0.35);
  color: #b00020;
  background: #fff4f6;
}

.scanner-status.error .scanner-dot {
  background: #b00020;
  box-shadow: 0 0 0 5px rgba(176, 0, 32, 0.14);
}

.scanner-input,
.text-input,
.number-input {
  width: 100%;
  border: 3px solid var(--navy);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.scanner-input {
  margin-top: 10px;
  padding: 16px;
  font-size: 1.25rem;
}

.scan-error {
  min-height: 30px;
  margin-top: 10px;
  color: #b00020;
  font-size: 1.12rem;
  font-weight: 900;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 3px solid var(--navy);
  color: var(--navy);
  background: #fff;
}

.celebration {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: rgba(243, 251, 255, 0.72);
}

.celebration.show {
  display: grid;
}

.celebration-card {
  max-width: 760px;
  border: 6px solid var(--navy);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 56px);
  background: #fff;
  box-shadow: 0 28px 0 rgba(0, 166, 232, 0.22), var(--shadow);
  animation: pop 520ms cubic-bezier(.18, .9, .2, 1.2);
}

.celebration-card strong {
  display: block;
  color: var(--orange);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  font-weight: 950;
}

.celebration-card span {
  display: block;
  margin-top: 16px;
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 950;
}

.celebration-card p {
  margin-top: 12px;
  color: var(--purple);
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 850;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.74) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  }
}

@keyframes milestoneGlow {
  0%,
  100% {
    box-shadow: 0 8px 0 rgba(7, 55, 99, 0.12);
    transform: scale(1);
  }
  45% {
    box-shadow: 0 0 0 12px rgba(246, 195, 67, 0.26), 0 12px 0 rgba(101, 179, 46, 0.2);
    transform: scale(1.2) rotate(-4deg);
  }
}

.admin-page {
  background: var(--bg);
}

.admin-shell {
  width: min(1040px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 30px 0 46px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
}

.admin-header p,
.danger-zone p,
.export-card span {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.form-label,
.bonus-setting-row span {
  display: block;
  margin: 12px 0 7px;
  color: var(--navy);
  font-weight: 900;
}

.text-input,
.number-input {
  padding: 11px 12px;
}

.settings-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.settings-row,
.bonus-setting-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #fbfeff;
}

.settings-row {
  grid-template-columns: auto 190px 1fr;
  align-items: center;
}

.settings-row span {
  font-weight: 900;
}

.settings-row small {
  color: var(--muted);
  font-weight: 700;
}

.settings-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.settings-help strong {
  color: var(--navy);
}

.sound-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #fbfeff;
}

.sound-toggle input {
  width: 22px;
  height: 22px;
}

.sound-toggle span {
  color: var(--navy);
  font-weight: 950;
}

.sound-toggle small {
  grid-column: 2;
  color: var(--muted);
  font-weight: 700;
}

.bonus-setting-row {
  grid-template-columns: 120px 1fr 110px;
  align-items: end;
}

.active-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 11px;
  font-weight: 900;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.danger-zone {
  margin-top: 20px;
}

.danger-button {
  margin-top: 14px;
  padding: 12px 16px;
  color: #fff;
  background: #b00020;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.export-card {
  display: grid;
  min-height: 170px;
  align-content: start;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
}

.export-card strong {
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 950;
}

@media (max-width: 860px) {
  .dashboard {
    width: min(100vw - 20px, 720px);
  }

  .hero,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mission-panel,
  .dashboard-grid,
  .export-grid {
    grid-template-columns: 1fr;
  }

  .mission-badge {
    justify-items: start;
  }

  .badge-ring {
    width: 132px;
    height: 132px;
  }

  .behavior-buttons,
  .bonus-setting-row,
  .settings-row {
    grid-template-columns: 1fr;
  }

  .assign-button {
    width: 100%;
  }

  .panel-badge {
    display: none;
  }

  .modern-roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .modern-roadmap::before {
    display: none;
  }
}

@media (min-width: 861px) {
  .live-page {
    overflow: hidden;
  }

  .dashboard {
    display: grid;
    grid-template-rows: auto minmax(214px, 0.9fr) minmax(212px, 0.62fr) minmax(132px, 0.52fr) auto;
    gap: 12px;
    width: min(1280px, calc(100vw - 42px));
    height: 100vh;
    padding: 12px 0 10px;
  }

  .hero {
    padding: 0 4px 2px;
  }

  .brand-block {
    gap: 14px;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
    border-width: 4px;
    border-radius: 17px;
    box-shadow: 6px 6px 0 var(--blue);
    font-size: 34px;
  }

  .robot-badge::before {
    top: -11px;
    width: 15px;
    height: 15px;
    border-width: 3px;
  }

  .robot-badge::after {
    top: -2px;
    height: 12px;
  }

  .robot-head {
    width: 43px;
    height: 35px;
    gap: 7px;
    padding: 10px 8px 7px;
    border-width: 3px;
    border-radius: 13px;
  }

  .robot-head::before,
  .robot-head::after {
    top: 12px;
    width: 5px;
    height: 12px;
  }

  .robot-head::before {
    left: -8px;
  }

  .robot-head::after {
    right: -8px;
  }

  .robot-eye {
    width: 8px;
    height: 8px;
  }

  .robot-smile {
    width: 18px;
    height: 8px;
    border-bottom-width: 3px;
    bottom: 6px;
  }

  h1 {
    font-size: clamp(2.6rem, 5vw, 4.45rem);
  }

  .hero p {
    margin-top: 2px;
    font-size: clamp(1.2rem, 2vw, 1.85rem);
  }

  .assign-button {
    padding: 12px 20px;
    border-radius: 14px;
    box-shadow: 0 8px 0 rgba(126, 87, 194, 0.32);
    font-size: 1.06rem;
  }

  .mission-panel {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 136px;
    gap: 14px;
    padding: clamp(16px, 2vw, 24px);
  }

  .mission-copy h2,
  .panel h2,
  .modal-card h2 {
    font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  }

  .section-icon {
    display: none;
  }

  .score-line {
    margin-top: 8px;
    font-size: clamp(3.1rem, 8vh, 4.8rem);
  }

  .progress-shell {
    height: clamp(26px, 4.2vh, 34px);
    margin-top: 16px;
    border-width: 4px;
  }

  .next-bonus {
    margin-top: 12px;
    font-size: clamp(1.08rem, 1.55vw, 1.48rem);
  }

  .badge-ring {
    width: 126px;
    height: 126px;
    border-width: 8px;
    box-shadow: inset 0 0 0 7px var(--teal);
  }

  .badge-ring span {
    font-size: 2.2rem;
  }

  .mission-badge {
    gap: 10px;
  }

  .mission-badge p {
    font-size: 1rem;
  }

  .dashboard-grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    margin-top: 0;
  }

  .panel {
    min-height: 0;
    padding: 14px 18px;
    border-width: 4px;
    border-radius: 18px;
  }

  .recent-list,
  .behavior-list {
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
  }

  .symbol-panel {
    align-self: center;
    min-height: 0;
    background-size: cover;
  }

  .recent-item,
  .behavior-item {
    min-height: 34px;
    padding: 4px 10px;
    border-width: 3px;
    border-radius: 13px;
    font-size: clamp(0.9rem, 1.12vw, 1rem);
  }

  .points-pill {
    min-width: 44px;
    padding: 4px 8px;
  }

  .empty-state {
    font-size: 1rem;
  }

  .bonus-panel {
    margin-top: 0;
  }

  .bonus-timeline {
    gap: 6px;
    margin-top: 12px;
  }

  .modern-roadmap {
    padding-top: 4px;
  }

  .modern-roadmap::before {
    top: 28px;
    left: 6%;
    right: 6%;
    height: 7px;
  }

  .roadmap-node {
    width: 46px;
    height: 46px;
    border-width: 3px;
    font-size: 1.1rem;
  }

  .roadmap-label strong {
    font-size: 0.92rem;
  }

  .roadmap-label span {
    font-size: 0.64rem;
  }

  .roadmap-label small {
    font-size: 0.55rem;
  }

  .quiet-links {
    padding: 0 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
