.spinestack-root {
  --ss-bg-top: #031a2c;
  --ss-bg-bottom: #0a3f63;
  --ss-accent: #46ddff;
  --ss-text: #eaf7ff;
  --ss-text-dim: rgba(208, 233, 248, 0.72);
  --ss-panel: rgba(6, 38, 66, 0.7);
  --ss-panel-strong: rgba(8, 48, 80, 0.82);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  max-width: none;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #0b4c74 0%, #073c5f 32%, #052b47 66%, #031a2c 100%);
}

.spinestack-root * {
  box-sizing: border-box;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ss-app {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.ss-stage {
  position: relative;
  width: min(100vw, calc(100dvh * 4 / 7));
  height: min(100dvh, calc(100vw * 7 / 4));
  aspect-ratio: 4 / 7;
  max-width: 100vw;
  max-height: 100dvh;
  background: radial-gradient(circle at 50% 0%, #0b4c74 0%, #073c5f 32%, #052b47 66%, #031a2c 100%);
  overflow: hidden;
}

.ss-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ss-overlay,
.ss-hud {
  position: absolute;
  inset: 0;
}

.ss-overlay {
  pointer-events: none;
}

.ss-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: auto;
}

.ss-splash,
.ss-menu,
.ss-results,
.ss-panel {
  background: linear-gradient(180deg, var(--ss-bg-top) 0%, var(--ss-bg-bottom) 100%);
  color: var(--ss-text);
}

.ss-menu {
  background:
    radial-gradient(120% 55% at 50% -8%, rgba(70, 221, 255, 0.22) 0%, rgba(70, 221, 255, 0) 58%),
    linear-gradient(180deg, #032238 0%, #073b5e 45%, #062f4d 100%);
}

.ss-splash {
  background:
    radial-gradient(140% 62% at 50% -12%, rgba(70, 221, 255, 0.2) 0%, rgba(70, 221, 255, 0) 60%),
    linear-gradient(180deg, #031f34 0%, #063552 48%, #052a43 100%);
}

.ss-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 24px 18px;
  cursor: pointer;
  gap: 16px;
}

.ss-splash-stack {
  width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ss-spine-logo,
.ss-mini-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 18px;
}

.ss-spine-logo div,
.ss-mini-spine div {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00a8d7, #46ddff);
}

.ss-clinic-logo {
  position: relative;
  width: 96px;
  height: 276px;
  margin: 0 auto 14px;
}

.ss-clinic-logo--splash {
  transform: scale(0.46);
  transform-origin: top center;
  height: 132px;
  margin-bottom: 0;
}

.ss-clinic-dot {
  position: absolute;
  width: var(--d);
  height: var(--d);
  left: var(--x);
  top: var(--y);
  border-radius: 999px;
  background: linear-gradient(180deg, #1dc8ed 0%, #0f8ea9 100%);
  box-shadow: 0 2px 8px rgba(0, 180, 220, 0.22);
}

.ss-splash h1,
.ss-menu h1 {
  margin: 0;
  width: min(100%, 7.2em);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ss-text) !important;
  text-shadow: 0 2px 10px rgba(10, 30, 54, 0.5);
  line-height: 1;
  text-align: center;
  text-wrap: balance;
}

.ss-splash h1 br,
.ss-menu h1 br {
  display: none;
}

.ss-title-clinic {
  display: block;
  font-size: 0.36em;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #bdefff;
  margin-bottom: 6px;
}

.ss-title-game {
  display: block;
  text-align: center;
  margin-inline: auto;
}

.ss-sub {
  margin: 6px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: rgba(176, 236, 255, 0.92);
  opacity: 1;
}

.ss-tap {
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(240, 250, 255, 0.88);
  text-shadow: 0 0 14px rgba(70, 221, 255, 0.24);
  animation: ssPulse 1.6s ease-in-out infinite alternate;
}

@keyframes ssPulse {
  from { opacity: 0.3; }
  to { opacity: 0.75; }
}

.ss-menu,
.ss-results,
.ss-panel {
  padding: 24px 20px;
  overflow-y: auto;
}

.ss-menu-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.ss-menu {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ss-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ss-btn,
.ss-toggle,
.ss-link,
.ss-panel-head button,
.ss-close {
  border: 0;
  cursor: pointer;
}

.ss-btn {
  width: 100%;
  background: var(--ss-panel);
  color: var(--ss-text);
  border-radius: 16px;
  border: 1px solid rgba(115, 205, 245, 0.25);
  padding: 13px 16px;
  font-size: 20px;
  font-weight: 600;
  text-align: left;
  transition: transform 0.14s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.ss-btn:active,
.ss-toggle:active {
  transform: scale(0.98);
}

.ss-btn-primary {
  background: linear-gradient(90deg, #036d97, #058dbc 36%, #00a8d7 72%, #46ddff);
  color: var(--ss-text);
  border-color: transparent;
  text-shadow: 0 1px 2px rgba(0, 22, 42, 0.45);
}

.ss-toggle-row {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ss-toggle-row-splash {
  margin: 8px 0 0;
}

.ss-toggle {
  border-radius: 12px;
  border: 1px solid rgba(115, 205, 245, 0.25);
  background: var(--ss-panel);
  color: var(--ss-text-dim);
  padding: 10px 14px;
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.14s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.ss-toggle.on {
  color: var(--ss-text);
}

.ss-audio-toggle {
  min-width: 156px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(8, 53, 82, 0.92), rgba(6, 31, 55, 0.94));
  box-shadow: inset 0 1px 0 rgba(210, 244, 255, 0.07), 0 10px 22px rgba(1, 12, 23, 0.22);
  text-align: left;
}

.ss-audio-toggle:hover {
  border-color: rgba(115, 205, 245, 0.4);
}

.ss-audio-toggle.on {
  background:
    radial-gradient(circle at 18% 22%, rgba(70, 221, 255, 0.22), rgba(70, 221, 255, 0) 42%),
    linear-gradient(180deg, rgba(8, 69, 105, 0.95), rgba(6, 39, 69, 0.96));
  border-color: rgba(115, 205, 245, 0.42);
  box-shadow: inset 0 1px 0 rgba(228, 249, 255, 0.12), 0 12px 28px rgba(1, 18, 33, 0.28);
}

.ss-audio-toggle-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ss-audio-toggle.on .ss-audio-toggle-icon {
  background: linear-gradient(180deg, rgba(70, 221, 255, 0.26), rgba(70, 221, 255, 0.12));
}

.ss-audio-toggle-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.ss-audio-toggle-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(211, 240, 252, 0.68);
}

.ss-audio-toggle-state {
  font-size: 20px;
  line-height: 1.1;
  color: var(--ss-text);
}

.ss-leaderboard {
  margin-top: 8px;
  padding: 8px 0 4px;
}

.ss-leader-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ss-accent);
  margin-bottom: 8px;
  opacity: 0.85;
}

.ss-leader-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 7px 10px;
  margin-bottom: 6px;
  background: rgba(7, 46, 74, 0.54);
}

.ss-leader-row.is-current {
  border: 1px solid rgba(70, 221, 255, 0.45);
  background: rgba(70, 221, 255, 0.16);
}

.ss-leader-rank {
  width: 26px;
  text-align: center;
}

.ss-leader-name {
  flex: 1;
  font-size: 13px;
  color: var(--ss-text-dim);
}

.ss-leader-score {
  font-size: 13px;
  font-weight: 700;
}

.ss-leader-empty,
.ss-foot {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  text-align: center;
  padding: 10px 0;
}

.ss-hud {
  pointer-events: none;
  z-index: 12;
  color: var(--ss-text);
}

.ss-hud-top {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
}

.ss-hud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ss-hud-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.45;
}

.ss-hud-score {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: var(--ss-text);
  text-shadow: 0 2px 8px rgba(8, 27, 48, 0.55);
}

.ss-pause-btn {
  pointer-events: auto;
  min-width: 108px;
  height: 44px;
  padding: 0 12px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid rgba(115, 205, 245, 0.28);
  background:
    linear-gradient(180deg, rgba(8, 53, 82, 0.9), rgba(6, 31, 55, 0.94));
  color: var(--ss-text);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(210, 244, 255, 0.07), 0 8px 18px rgba(1, 12, 23, 0.22);
  transition: transform 0.14s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ss-pause-btn:hover {
  border-color: rgba(115, 205, 245, 0.42);
  box-shadow: inset 0 1px 0 rgba(228, 249, 255, 0.12), 0 10px 22px rgba(1, 18, 33, 0.28);
}

.ss-pause-btn-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ss-pause-btn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1;
}

.ss-pause-btn-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(211, 240, 252, 0.65);
}

.ss-pause-btn-state {
  font-size: 14px;
  font-weight: 700;
  color: var(--ss-text);
}

.ss-sound-btn {
  pointer-events: auto;
  min-width: 108px;
  height: 44px;
  padding: 0 12px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid rgba(115, 205, 245, 0.28);
  background:
    linear-gradient(180deg, rgba(8, 53, 82, 0.9), rgba(6, 31, 55, 0.94));
  color: var(--ss-text);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(210, 244, 255, 0.07), 0 8px 18px rgba(1, 12, 23, 0.22);
  transition: transform 0.14s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ss-sound-btn.on {
  background:
    radial-gradient(circle at 30% 25%, rgba(70, 221, 255, 0.26), rgba(70, 221, 255, 0) 45%),
    linear-gradient(180deg, rgba(8, 69, 105, 0.95), rgba(6, 39, 69, 0.96));
  border-color: rgba(115, 205, 245, 0.42);
  box-shadow: inset 0 1px 0 rgba(228, 249, 255, 0.12), 0 10px 22px rgba(1, 18, 33, 0.28);
}

.ss-sound-btn-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ss-sound-btn.on .ss-sound-btn-icon {
  background: linear-gradient(180deg, rgba(70, 221, 255, 0.26), rgba(70, 221, 255, 0.12));
}

.ss-sound-btn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1;
}

.ss-sound-btn-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(211, 240, 252, 0.65);
}

.ss-sound-btn-state {
  font-size: 14px;
  font-weight: 700;
  color: var(--ss-text);
}

.ss-combo {
  position: absolute;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(70, 221, 255, 0.5);
  background: linear-gradient(90deg, rgba(0, 154, 199, 0.32), rgba(70, 221, 255, 0.2));
  color: #c7f4ff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 800;
}

.ss-perfect {
  position: absolute;
  top: 256px;
  left: 50%;
  transform: translateX(-50%) scale(0.94);
  min-width: 0;
  max-width: min(62%, 280px);
  padding: 12px 14px;
  border: 1px solid rgba(181, 228, 249, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 57, 87, 0.92), rgba(7, 33, 55, 0.96));
  box-shadow: 0 12px 24px rgba(0, 12, 24, 0.24), inset 0 1px 0 rgba(225, 247, 255, 0.08);
  color: #ecf8ff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  text-wrap: pretty;
  opacity: 0;
  pointer-events: none;
  z-index: 14;
}

.ss-feedback-perfect {
  border-color: rgba(115, 232, 196, 0.4);
  background: linear-gradient(180deg, rgba(8, 76, 72, 0.94), rgba(6, 48, 56, 0.96));
  color: #d8fff3;
}

.ss-feedback-balanced {
  border-color: rgba(111, 206, 255, 0.42);
  background: linear-gradient(180deg, rgba(11, 71, 102, 0.94), rgba(7, 42, 65, 0.96));
  color: #ddf5ff;
}

.ss-feedback-minor {
  border-color: rgba(255, 196, 109, 0.4);
  background: linear-gradient(180deg, rgba(101, 66, 22, 0.94), rgba(69, 44, 15, 0.96));
  color: #fff0d2;
}

.ss-feedback-critical {
  border-color: rgba(255, 132, 132, 0.46);
  background: linear-gradient(180deg, rgba(116, 33, 44, 0.95), rgba(76, 20, 31, 0.97));
  color: #ffe0e5;
}

.ss-perfect-show {
  animation: ssPerfectPop 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes ssPerfectPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.86);
  }
  18% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  42% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.97);
  }
}

.ss-align-wrap {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ss-align-title {
  color: rgba(194, 235, 255, 0.8);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.ss-align-meter {
  width: 12px;
  height: 98px;
  border-radius: 999px;
  background: rgba(125, 199, 233, 0.22);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.ss-align-fill {
  width: 100%;
  height: 50%;
  border-radius: 999px;
  transition: height 0.15s ease;
}

.ss-align-text {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ss-symptom-panel {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, calc(100% - 24px));
  border: 1px solid rgba(93, 201, 247, 0.35);
  background: linear-gradient(180deg, rgba(8, 54, 88, 0.84), rgba(6, 33, 60, 0.82));
  backdrop-filter: blur(7px);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(3, 10, 22, 0.4), inset 0 0 18px rgba(70, 221, 255, 0.12);
  pointer-events: none;
  animation: ssWarnPulse 1.35s ease-in-out infinite alternate;
  z-index: 15;
}

@keyframes ssWarnPulse {
  from { box-shadow: 0 10px 22px rgba(3, 10, 22, 0.42), inset 0 0 10px rgba(70, 221, 255, 0.06); }
  to { box-shadow: 0 12px 28px rgba(3, 10, 22, 0.5), inset 0 0 18px rgba(70, 221, 255, 0.12); }
}

.ss-symptom-warning {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7fe9ff;
  margin-bottom: 5px;
  text-shadow: 0 0 8px rgba(70, 221, 255, 0.35);
}

.ss-symptom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ss-symptom-name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #eaf7ff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.ss-symptom-timer {
  font-size: 18px;
  color: #9ee7ff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ss-symptom-note {
  font-size: 14px;
  color: rgba(221, 244, 255, 0.94);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ss-results {
  background: linear-gradient(180deg, rgba(5, 37, 62, 0.97), rgba(7, 29, 52, 0.98));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.ss-result-hero {
  width: 100%;
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ss-result-title-wrap {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px;
  border-radius: 26px;
  border: 1px solid rgba(115, 205, 245, 0.22);
  background: linear-gradient(180deg, rgba(11, 49, 76, 0.82), rgba(7, 31, 52, 0.9));
  box-shadow: inset 0 1px 0 rgba(230, 247, 255, 0.08), 0 18px 40px rgba(0, 8, 18, 0.2);
}

.ss-new-best {
  margin-top: 10px;
  border: 1px solid rgba(115, 205, 245, 0.24);
  background: rgba(70, 221, 255, 0.12);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  color: #cff6ff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.ss-result-title {
  text-transform: uppercase;
  font-size: 42px;
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #eef8fd;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.ss-result-title span {
  display: block;
}

.ss-result-score-wrap {
  margin-bottom: 18px;
  width: 100%;
  max-width: 264px;
  padding: 14px 16px 16px;
  border-radius: 22px;
  border: 1px solid rgba(115, 205, 245, 0.2);
  background: linear-gradient(180deg, rgba(10, 44, 68, 0.72), rgba(7, 28, 47, 0.82));
  box-shadow: inset 0 1px 0 rgba(209, 243, 255, 0.08);
}

.ss-result-score {
  font-size: 84px;
  line-height: 0.95;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.ss-result-stats {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.ss-result-stats > div {
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(115, 205, 245, 0.24);
  background: rgba(7, 46, 74, 0.52);
  padding: 10px 8px;
}

.ss-result-stats span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(188, 230, 250, 0.6);
  display: block;
}

.ss-result-stats strong {
  margin-top: 4px;
  display: block;
  font-size: 24px;
  color: var(--ss-accent);
}

.ss-action-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ss-link {
  background: transparent;
  color: rgba(190, 232, 252, 0.65);
  font-size: 12px;
  padding-top: 4px;
}

.ss-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ss-panel-head h2,
.ss-modal-card h2,
.ss-pause-card h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.ss-panel-head button,
.ss-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(7, 46, 74, 0.72);
  color: rgba(226, 246, 255, 0.85);
  border: 1px solid rgba(115, 205, 245, 0.24);
}

.ss-panel-sub {
  font-size: 12px;
  color: rgba(205, 236, 252, 0.72);
  margin-bottom: 12px;
}

.ss-modal-card p {
  font-size: 11px;
  color: rgba(205, 236, 252, 0.72);
}
.ss-step strong {
  margin: 0 0 2px;
  color: #dff6ff;
  font-size: 13px;
}

.ss-modal-screen {
  background: rgba(0, 16, 29, 0.62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ss-modal-card,
.ss-pause-card {
  width: 100%;
  max-width: 320px;
  border-radius: 28px;
  border: 1px solid rgba(115, 205, 245, 0.3);
  background: linear-gradient(180deg, rgba(8, 54, 88, 0.95), rgba(6, 33, 60, 0.95));
  padding: 22px;
  position: relative;
  color: var(--ss-text);
}

.ss-modal-card form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ss-modal-card input {
  width: 100%;
  border: 1px solid rgba(115, 205, 245, 0.35);
  border-radius: 12px;
  background: rgba(7, 46, 74, 0.7);
  color: var(--ss-text);
  padding: 10px 12px;
  text-align: center;
  font-size: 22px;
  outline: none;
}

.ss-step {
  margin-bottom: 10px;
}

.ss-pause-card {
  text-align: center;
}

.ss-pause-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ss-pause-action {
  min-width: 132px;
  min-height: 76px;
  padding: 14px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(115, 205, 245, 0.28);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 53, 82, 0.88), rgba(6, 31, 55, 0.94));
  color: var(--ss-text);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(210, 244, 255, 0.07), 0 12px 24px rgba(1, 12, 23, 0.2);
  transition: transform 0.14s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ss-pause-action:hover {
  border-color: rgba(115, 205, 245, 0.42);
  box-shadow: inset 0 1px 0 rgba(228, 249, 255, 0.12), 0 14px 28px rgba(1, 18, 33, 0.26);
}

.ss-pause-action-primary {
  background:
    radial-gradient(circle at 22% 25%, rgba(70, 221, 255, 0.24), rgba(70, 221, 255, 0) 42%),
    linear-gradient(90deg, #036d97, #058dbc 38%, #00a8d7 74%, #46ddff);
  border-color: rgba(115, 205, 245, 0.5);
}

.ss-pause-action-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 16px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ss-pause-action-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
  text-align: left;
}

.ss-pause-action-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(221, 245, 255, 0.7);
}

.ss-pause-action-state {
  font-size: 18px;
  font-weight: 800;
  color: var(--ss-text);
}

@media (max-width: 480px) {
  .ss-pause-actions {
    flex-direction: column;
  }

  .ss-pause-action {
    width: 100%;
  }
}

.ss-disclaimer {
  margin: 16px 0 0;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
}

@media (max-width: 480px) {
  .ss-clinic-logo {
    transform: scale(0.78);
    transform-origin: top center;
    height: 218px;
    margin-bottom: 2px;
  }

  .ss-stage {
    width: min(100vw, calc(100dvh * 4 / 7));
    height: min(100dvh, calc(100vw * 7 / 4));
    max-height: none;
  }

  .ss-menu,
  .ss-results,
  .ss-panel {
    padding: 18px 14px;
  }

  .ss-splash h1,
  .ss-menu h1 {
    font-size: 36px;
  }

  .ss-result-hero {
    margin-bottom: 18px;
  }

  .ss-result-title {
    font-size: 36px;
  }

  .ss-result-score {
    font-size: 72px;
  }
}
