:root {
  --bg: #050510;
  --bg-soft: rgba(11, 14, 30, 0.74);
  --panel: rgba(17, 22, 44, 0.6);
  --panel-strong: rgba(13, 16, 33, 0.88);
  --stroke: rgba(136, 168, 255, 0.18);
  --text: #e9edff;
  --muted: #a8b2d6;
  --cyan: #5ffbff;
  --violet: #9d7dff;
  --pink: #ff73d9;
  --green: #74f7b3;
  --warning: #ffd166;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(157, 125, 255, 0.2), transparent 32%),
    radial-gradient(circle at top right, rgba(95, 251, 255, 0.14), transparent 22%),
    linear-gradient(135deg, #030308 0%, #07081a 42%, #04050b 100%);
  overflow-x: hidden;
}

body.birthday-fixed {
  height: 100dvh;
  overflow: hidden;
}

body.birthday-fixed .app-shell {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 14px 0 0;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}

.ambient-one {
  top: -12vw;
  left: -8vw;
  background: rgba(157, 125, 255, 0.24);
}

.ambient-two {
  right: -10vw;
  bottom: -16vw;
  background: rgba(95, 251, 255, 0.18);
  animation-delay: -8s;
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 220ms ease;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(95, 251, 255, 0.15), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(157, 125, 255, 0.16), transparent 44%),
    rgba(2, 3, 10, 0.94);
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-core {
  width: min(560px, 100%);
  padding: clamp(20px, 3vw, 34px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(16, 20, 40, 0.9), rgba(6, 8, 18, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.loader-label {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

.loader-title {
  margin: 12px 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text);
  animation: loaderFloat 1.4s ease-in-out infinite;
}

.loader-line {
  margin-top: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.loader-line span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(95, 251, 255, 0.45);
  animation: loaderRun 1.2s ease-in-out infinite;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(95, 251, 255, 0.7);
  box-shadow: 0 0 16px rgba(95, 251, 255, 0.9);
  animation: floatUp linear infinite;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
  transition: opacity 260ms ease, transform 260ms ease, filter 260ms ease;
}

.topbar,
.hero,
.feature-page .glass-card {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(18, 22, 45, 0.76), rgba(10, 12, 26, 0.78));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(18, 22, 45, 0.76), rgba(10, 12, 26, 0.78));
  border: 1px solid var(--stroke);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  position: sticky;
  top: 14px;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}

.module-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.module-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.95rem, 3vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-shortcuts {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shortcut-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.shortcut-icon:hover {
  transform: translateY(-1px);
  background: rgba(95, 251, 255, 0.1);
  border-color: rgba(95, 251, 255, 0.28);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  cursor: pointer;
  transition: all 180ms ease;
  flex-shrink: 0;
}

.menu-btn span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 220ms ease;
}

.menu-btn.active {
  background: rgba(95, 251, 255, 0.1);
  border-color: rgba(95, 251, 255, 0.3);
}

.menu-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-dropdown {
  position: absolute;
  top: 60px;
  left: 16px;
  right: 16px;
  background: linear-gradient(180deg, rgba(10, 13, 28, 0.98), rgba(6, 8, 18, 0.96));
  border: 1px solid rgba(95, 251, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 300ms cubic-bezier(0.2, 0.85, 0.3, 1);
  z-index: 99;
  display: flex;
  flex-direction: column;
}

.menu-dropdown.open {
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  opacity: 1;
  pointer-events: auto;
}

.menu-item {
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 120ms ease;
  display: block;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: rgba(95, 251, 255, 0.08);
  padding-left: 20px;
  color: var(--cyan);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #080912;
  font-family: "Orbitron", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--pink));
  box-shadow: 0 0 28px rgba(95, 251, 255, 0.35);
}

.eyebrow,
.status-line,
.page-tag,
.result-label,
.field-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

.brand h1,
.hero h2,
.feature-page h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand h1 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 4px;
  background: var(--text);
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.quick-nav {
  display: none;
  gap: 8px;
  margin-left: 8px;
}

.quick-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.2rem;
  transition: all 180ms ease;
  text-decoration: none;
}

.quick-nav-icon:hover {
  background: rgba(95, 251, 255, 0.12);
  border-color: rgba(95, 251, 255, 0.28);
  box-shadow: 0 0 12px rgba(95, 251, 255, 0.18);
  transform: scale(1.08);
}

.chip,
.ghost-button,
.back-link,
.choice-button,
.captcha-tile {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.chip {
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chip:hover,
.ghost-button:hover,
.back-link:hover,
.choice-button:hover,
.captcha-tile:hover,
.feature-card:hover,
.cta-button:hover {
  transform: translateY(-3px);
}

.stage {
  padding-top: 24px;
}

.app-shell {
  opacity: 1;
  transform: none;
  transition: opacity 380ms ease, transform 380ms ease;
}

body.is-loading .app-shell {
  opacity: 0;
  transform: translateY(8px);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(7px);
}

body.page-ready [data-reveal] {
  animation: textComeIn 760ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

body.page-ready .module-title {
  animation: textComeIn 500ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

body.page-transition-out .app-shell {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
}

body.page-transition-out .ambient,
body.page-transition-out .particles {
  opacity: 0;
}

.page {
  display: none;
  animation: reveal 360ms ease both;
}

.page.active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 24px;
  align-items: center;
  border-radius: 36px;
  padding: clamp(24px, 4vw, 44px);
}

.module-intro {
  margin-top: 22px;
}

.module-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(95, 251, 255, 0.1), rgba(157, 125, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  margin-top: 18px;
}

.module-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.6rem;
}

.module-card h3 {
  margin: 0 0 4px;
  font-family: "Orbitron", sans-serif;
}

.module-card p {
  margin: 0;
  color: var(--muted);
}

.module-host {
  margin-top: 18px;
  padding: 26px;
  border-radius: 32px;
}

.module-host-head h2 {
  margin: 8px 0 8px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.module-host-head p {
  margin: 0;
  color: var(--muted);
}

.feature-page {
  padding-top: 24px;
}

.feature-page.birthday-page-min {
  padding: 0;
}

.home-title {
  margin: 28px 0 32px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  text-align: center;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.app-card {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(95, 251, 255, 0.09), rgba(157, 125, 255, 0.14));
  border: 1px solid rgba(95, 251, 255, 0.18);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 251, 255, 0.32);
  box-shadow: var(--shadow), 0 0 30px rgba(95, 251, 255, 0.15);
}

.app-card .app-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(95, 251, 255, 0.08);
  font-size: 2rem;
  box-shadow: inset 0 0 16px rgba(95, 251, 255, 0.12);
}

.app-card h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
  color: var(--text);
}

.app-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-shell {
  padding: clamp(22px, 3vw, 36px);
  border-radius: 32px;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.feature-copy {
  display: grid;
  gap: 12px;
}

.feature-copy .subtitle {
  max-width: 60ch;
}

.feature-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.feature-note {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.feature-note p {
  margin: 0;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-weight: 700;
}

.module-root {
  margin-top: 22px;
}

.wheel-app-shell {
  display: grid;
  gap: 18px;
  width: min(100%, 980px);
  margin: 0 auto;
}

.wheel-board-shell {
  display: grid;
  gap: 16px;
}

.wheel-board {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 16px;
}

.wheel-card {
  width: min(100%, 620px);
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(95, 251, 255, 0.05), rgba(157, 125, 255, 0.08));
  border: 1px solid rgba(95, 251, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

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

.wheel-card-label {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

.wheel-card h3 {
  margin: 4px 0 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.08rem;
  color: var(--text);
}

.wheel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(95, 251, 255, 0.08);
  border: 1px solid rgba(95, 251, 255, 0.16);
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
}

.wheel-disc-shell {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px;
}

.wheel-disc-shell::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 58%);
  filter: blur(1px);
}

.wheel-disc {
  width: min(100%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transform-origin: 50% 50%;
  transition: transform 4.8s cubic-bezier(0.16, 0.82, 0.12, 1);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.02), 0 24px 70px rgba(0, 0, 0, 0.45);
  will-change: transform;
}

.wheel-pointer {
  position: absolute;
  top: 4px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 26px solid #ff4d57;
  filter: drop-shadow(0 5px 12px rgba(255, 77, 87, 0.45));
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  left: -6px;
  top: -24px;
  width: 12px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.wheel-center {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8), rgba(219, 224, 235, 0.95) 42%, rgba(151, 159, 174, 0.95));
  color: #10131a;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.68rem, 1.2vw, 0.9rem);
  letter-spacing: 0.08em;
  text-align: center;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.5), 0 0 26px rgba(255, 255, 255, 0.12);
}

.wheel-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  justify-content: center;
  gap: 10px;
}

.wheel-sidebar {
  display: grid;
  gap: 14px;
  width: 100%;
}

.wheel-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.wheel-tab {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  flex: 1 1 140px;
}

.wheel-tab strong {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(95, 251, 255, 0.08);
  color: var(--cyan);
  font-size: 0.76rem;
}

.wheel-tab.is-active {
  border-color: rgba(95, 251, 255, 0.34);
  background: rgba(95, 251, 255, 0.11);
  box-shadow: 0 0 0 1px rgba(95, 251, 255, 0.12), 0 0 22px rgba(95, 251, 255, 0.08);
}

.wheel-panel {
  width: 100%;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 15, 30, 0.86), rgba(6, 8, 17, 0.92));
  border: 1px solid rgba(95, 251, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.wheel-panel-block {
  display: grid;
  gap: 12px;
}

.wheel-field-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

.wheel-names-input {
  width: 100%;
  min-height: 240px;
  resize: vertical;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(95, 251, 255, 0.2);
  background: rgba(3, 5, 12, 0.76);
  color: var(--text);
  font: inherit;
  line-height: 1.55;
}

.wheel-names-input:focus,
.wheel-panel .download-input:focus {
  outline: none;
  border-color: rgba(95, 251, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(95, 251, 255, 0.1);
}

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

.wheel-board .wheel-panel-actions,
.wheel-sidebar .wheel-panel-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wheel-results-list {
  display: grid;
  gap: 10px;
}

.wheel-history-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(95, 251, 255, 0.14);
  background: rgba(95, 251, 255, 0.05);
}

.wheel-history-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
}

.wheel-history-item p {
  margin: 0;
  display: grid;
  gap: 4px;
  color: #ecf2ff;
}

.wheel-empty-state {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.wheel-modal-content {
  max-width: 560px;
}

.wheel-modal-header h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.wheel-modal-output {
  display: grid;
  gap: 12px;
  padding: 8px 0 4px;
}

.wheel-winner-line {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(95, 251, 255, 0.08), rgba(157, 125, 255, 0.14));
  border: 1px solid rgba(95, 251, 255, 0.18);
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  text-align: center;
}

.wheel-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.download-calc-shell {
  display: grid;
  gap: 14px;
}

.download-calc-block {
  display: grid;
  gap: 8px;
}

.download-row-control {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.speed-row-control {
  grid-template-columns: 1fr auto auto auto;
}

.divider {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.download-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--muted);
}

.download-input,
.download-select {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(95, 251, 255, 0.24);
  background: rgba(3, 5, 12, 0.75);
  color: var(--text);
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 600;
}

.download-select.compact {
  min-width: 96px;
  width: auto;
  padding-right: 34px;
}

.download-input:focus,
.download-select:focus {
  border-color: rgba(95, 251, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(95, 251, 255, 0.12);
  outline: none;
}

.download-result {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  border-radius: 18px;
  padding: 14px;
  background: rgba(9, 12, 27, 0.9);
  border: 1px solid rgba(95, 251, 255, 0.14);
  color: #dfe5ff;
}

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

.time-pill {
  display: grid;
  place-items: center;
  min-height: 62px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.time-pill strong {
  font-family: "Orbitron", sans-serif;
  font-size: 1.05rem;
}

.time-pill span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.download-actions .ghost-button,
.download-actions .cta-button {
  min-height: 46px;
}

.password-card {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.8vw, 24px);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(95, 251, 255, 0.07), rgba(157, 125, 255, 0.12));
  border: 1px solid rgba(95, 251, 255, 0.2);
}

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

.password-salt-box {
  display: grid;
  gap: 12px;
}

.password-meter-wrap {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.password-meter {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5f70, #ff8b65);
  transition: width 260ms ease, background 260ms ease;
}

.password-meter.level-medium {
  background: linear-gradient(90deg, #ffd166, #f9e76f);
}

.password-meter.level-strong {
  background: linear-gradient(90deg, #50e3a4, #5ffbff);
}

.gpa-card {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.8vw, 24px);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(95, 251, 255, 0.07), rgba(157, 125, 255, 0.12));
  border: 1px solid rgba(95, 251, 255, 0.2);
}

.gpa-head {
  display: grid;
  gap: 8px;
}

.gpa-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gpa-rows {
  display: grid;
  gap: 10px;
}

.gpa-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.gpa-remove {
  min-height: 52px;
}

.gpa-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gpa-cumulative {
  display: grid;
  gap: 8px;
}

.gpa-cumulative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.roast-card {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.8vw, 24px);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(95, 251, 255, 0.07), rgba(157, 125, 255, 0.12));
  border: 1px solid rgba(95, 251, 255, 0.2);
}

.roast-grid {
  display: grid;
  gap: 10px;
}

.roast-language {
  display: grid;
  gap: 8px;
}

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

.roast-language-toggle .ghost-button {
  justify-content: center;
}

.roast-language-toggle .ghost-button.is-active {
  background: linear-gradient(135deg, rgba(95, 251, 255, 0.16), rgba(157, 125, 255, 0.18));
  border-color: rgba(95, 251, 255, 0.42);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(95, 251, 255, 0.08) inset;
}

.roast-intensity {
  display: grid;
  gap: 8px;
}

.roast-intensity input[type="range"] {
  width: 100%;
  accent-color: #5ffbff;
}

.roast-intensity-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.roast-intensity-labels span:nth-child(2) {
  color: var(--text);
  font-weight: 700;
}

.roast-intensity-labels span:last-child {
  text-align: right;
}

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

.roast-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.roast-status.is-active {
  color: var(--cyan);
}

.roast-status.is-active::after {
  content: "...";
  display: inline-block;
  width: 1.5em;
  text-align: left;
  animation: roastDots 1.1s steps(4, end) infinite;
}

.roast-actions .ghost-button:disabled,
.roast-actions .cta-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.roast-output {
  min-height: 88px;
  line-height: 1.6;
}

.roast-menu-box {
  display: grid;
  gap: 10px;
}

.roast-json {
  min-height: 220px;
  width: 100%;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(95, 251, 255, 0.24);
  background: rgba(3, 5, 12, 0.75);
  color: var(--text);
  padding: 12px;
  font-family: "Courier New", monospace;
  line-height: 1.45;
}

.roast-json:focus {
  border-color: rgba(95, 251, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(95, 251, 255, 0.12);
  outline: none;
}

.roast-menu-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.speed-row {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.speed-warn {
  color: var(--warning);
  font-weight: 600;
}

.speed-ok {
  color: var(--green);
  font-weight: 600;
}

.birthday-page-min {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px 22px;
}

.birthday-minimal {
  width: 100%;
  max-width: 380px;
  margin-top: 0;
}

.birthday-calculator-minimal {
  display: grid;
  gap: 18px;
  padding: 32px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(95, 251, 255, 0.08), rgba(157, 125, 255, 0.12));
  border: 1px solid rgba(95, 251, 255, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.birthday-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
}

.birthday-input-mobile {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 56px;
  line-height: 1.2;
  padding: 0 14px;
  border-radius: 16px;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  background: rgba(3, 5, 12, 0.75);
  border: 1px solid rgba(95, 251, 255, 0.24);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: inherit;
  color-scheme: dark;
}

.birthday-input-mobile::-webkit-date-and-time-value {
  text-align: left;
  min-height: 1.2em;
}

.birthday-input-mobile::-webkit-datetime-edit,
.birthday-input-mobile::-webkit-datetime-edit-text,
.birthday-input-mobile::-webkit-datetime-edit-month-field,
.birthday-input-mobile::-webkit-datetime-edit-day-field,
.birthday-input-mobile::-webkit-datetime-edit-year-field {
  color: var(--text);
}

.birthday-input-mobile::-webkit-calendar-picker-indicator {
  filter: invert(0.9) sepia(0.2) saturate(2.2) hue-rotate(155deg);
  cursor: pointer;
}

.birthday-input-mobile:focus {
  border-color: rgba(95, 251, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(95, 251, 255, 0.12);
  outline: none;
}

.results-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
  pointer-events: none;
}

.results-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 22, 45, 0.96), rgba(10, 12, 26, 0.94));
  border: 1px solid rgba(95, 251, 255, 0.16);
  box-shadow: var(--shadow), 0 0 60px rgba(95, 251, 255, 0.15);
  overflow-y: auto;
  animation: modalSlideIn 340ms cubic-bezier(0.2, 0.85, 0.3, 1) both;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 200ms ease;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(95, 251, 255, 0.15);
  color: var(--cyan);
  border-color: rgba(95, 251, 255, 0.3);
}

.modal-close:active {
  transform: scale(0.92);
}

.modal-header {
  margin-bottom: 18px;
}

.modal-header h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.3rem;
  color: var(--text);
}

.birthday-result .result-lines {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(8, 11, 24, 0.92), rgba(4, 6, 15, 0.9));
  border: 1px solid rgba(95, 251, 255, 0.12);
}

.birthday-stat {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(95, 251, 255, 0.05);
  border: 1px solid rgba(95, 251, 255, 0.16);
  color: #f2f5ff;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: "Courier New", monospace;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: reportLineIn 320ms ease both;
}

.line-prefix {
  color: var(--cyan);
  font-weight: 700;
  opacity: 0.95;
}

.typing-cursor {
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(95, 251, 255, 0.55);
  animation: blink 680ms steps(1) infinite;
}

.birthday-stat.is-typing {
  border-color: rgba(95, 251, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(95, 251, 255, 0.18), 0 0 20px rgba(95, 251, 255, 0.09);
}

.birthday-note {
  color: var(--muted);
  font-size: 0.96rem;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(116, 247, 179, 0.9);
}

.glitch {
  position: relative;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.94;
  margin-bottom: 12px;
  text-shadow: 0 0 22px rgba(95, 251, 255, 0.18);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.8;
  clip-path: inset(0 0 0 0);
}

.glitch::before {
  transform: translate(2px, -1px);
  color: var(--cyan);
  animation: glitch 2.6s infinite linear alternate-reverse;
}

.glitch::after {
  transform: translate(-2px, 1px);
  color: var(--pink);
  animation: glitch 3s infinite linear alternate-reverse;
}

.subtitle {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--muted);
}

.typing-line {
  min-height: 34px;
  margin: 18px 0 26px;
  font-size: 1.02rem;
  color: #d8dcff;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  margin-left: 4px;
  background: var(--cyan);
  animation: blink 900ms steps(1) infinite;
  vertical-align: -0.15em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-button,
.ghost-button,
.choice-button,
.captcha-tile,
.text-input {
  border: 0;
  outline: none;
  border-radius: 18px;
}

.cta-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 700;
}

.cta-button {
  color: #07101e;
  background: linear-gradient(135deg, var(--cyan), #7de4ff 32%, var(--violet));
  box-shadow: 0 12px 34px rgba(95, 251, 255, 0.22);
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.scan-ring {
  width: min(340px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 18px;
  background: radial-gradient(circle at center, rgba(95, 251, 255, 0.08), rgba(157, 125, 255, 0.12) 40%, rgba(255, 255, 255, 0.02) 58%, transparent 61%);
  box-shadow: inset 0 0 24px rgba(95, 251, 255, 0.1), 0 0 40px rgba(157, 125, 255, 0.08);
  animation: spin 18s linear infinite;
}

.scan-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(12, 16, 36, 0.95), rgba(8, 10, 20, 0.9));
}

.scan-core span {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: 0.14em;
}

.scan-core small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.mini-feed {
  display: grid;
  gap: 10px;
  width: min(360px, 100%);
}

.mini-feed p {
  margin: 0;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #d7def7;
}

 .glow-pulse {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(22px, 18px, 0) scale(1.08); }
}

@keyframes floatUp {
  from {
    transform: translateY(110vh) translateX(0) scale(0.6);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  to {
    transform: translateY(-20vh) translateX(40px) scale(1.3);
    opacity: 0;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes glitch {
  0% { clip-path: inset(0 0 90% 0); }
  20% { clip-path: inset(10% 0 60% 0); }
  40% { clip-path: inset(55% 0 20% 0); }
  60% { clip-path: inset(25% 0 45% 0); }
  80% { clip-path: inset(70% 0 10% 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes pulse {
  50% { box-shadow: 0 0 26px rgba(95, 251, 255, 0.28); }
}

@keyframes reportLineIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textComeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes loaderRun {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(260%);
  }
}

@keyframes loaderFloat {
  50% {
    transform: translateY(-2px);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes roastDots {
  0% { transform: translateY(0); opacity: 0.3; }
  25% { opacity: 0.6; }
  50% { opacity: 1; }
  75% { opacity: 0.6; }
  100% { transform: translateY(0); opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .app-shell,
  [data-reveal],
  body.page-ready [data-reveal] {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 980px) {
  .hero,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .birthday-calculator {
    grid-template-columns: 1fr;
  }

  .feature-layout {
    grid-template-columns: 1fr;
  }

  .wheel-app-shell {
    width: 100%;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 18px, 1200px);
    padding-bottom: 28px;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.birthday-fixed .app-shell {
    width: min(100% - 12px, 1200px);
    height: 100dvh;
    padding: 10px 0 0;
  }

  .topbar,
  .hero,
  .feature-shell {
    border-radius: 24px;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    position: sticky;
    top: 10px;
  }

  .header-left {
    gap: 8px;
    flex: 0 1 auto;
    max-width: calc(100% - 150px);
  }

  .module-icon {
    font-size: 1.2rem;
  }

  .module-title {
    font-size: 0.9rem;
  }

  .menu-btn {
    width: 38px;
    height: 38px;
    gap: 3px;
  }

  .header-right {
    gap: 6px;
  }

  .header-shortcuts {
    gap: 4px;
  }

  .shortcut-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .menu-dropdown {
    top: 56px;
    left: 14px;
    right: 14px;
    border-radius: 14px;
  }

  .menu-dropdown.open {
    max-height: calc(100dvh - 84px);
  }

  .menu-item {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .brand {
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.25rem;
  }

  .brand h1 {
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .top-actions {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: min(78vw, 290px);
    height: 100dvh;
    padding: 84px 14px 16px;
    border-radius: 0 20px 20px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(7, 10, 24, 0.98), rgba(8, 12, 26, 0.98));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: grid;
    align-content: start;
    gap: 10px;
    transform: translateX(-105%);
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms ease, opacity 260ms ease;
  }

  .top-actions.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .top-actions .chip {
    width: 100%;
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
  }

  .wheel-toolbar {
    grid-template-columns: 1fr;
  }

  .wheel-panel-actions {
    grid-template-columns: 1fr 1fr;
  }

  .stage {
    padding-top: 14px;
  }

  .hero {
    gap: 14px;
    padding: 18px 14px;
  }

  .module-intro {
    margin-top: 14px;
  }

  .module-card {
    border-radius: 18px;
    padding: 14px;
  }

  .feature-card,
  .result-panel {
    min-height: unset;
  }

  .birthday-calculator-minimal {
    padding: 24px 16px;
    gap: 14px;
    border-radius: 20px;
  }

  .download-input,
  .download-select {
    min-height: 50px;
    font-size: 16px;
    padding: 0 12px;
  }

  .download-select.compact {
    min-width: 84px;
    padding-right: 26px;
  }

  .speed-row-control {
    grid-template-columns: 1fr;
  }

  .divider {
    display: none;
  }

  .download-time-grid {
    gap: 8px;
  }

  .download-actions {
    grid-template-columns: 1fr;
  }

  .password-actions {
    grid-template-columns: 1fr;
  }

  .gpa-columns {
    display: none;
  }

  .gpa-row {
    grid-template-columns: 1fr;
  }

  .gpa-remove {
    min-height: 44px;
  }

  .gpa-actions,
  .gpa-cumulative-grid {
    grid-template-columns: 1fr;
  }

  .roast-actions,
  .roast-menu-actions {
    grid-template-columns: 1fr;
  }

  .modal-content {
    max-width: 90vw;
    padding: 28px 20px;
  }

  .modal-header h3 {
    font-size: 1.1rem;
  }

  .birthday-input-mobile {
    min-height: 52px;
    font-size: 16px;
    padding: 0 12px;
  }

  .birthday-label {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
  }

  .birthday-page-min {
    padding: 10px 8px 14px;
  }

  .wheel-card {
    padding: 14px;
    border-radius: 20px;
  }

  .wheel-disc-shell {
    padding: 10px;
  }

  .wheel-toolbar,
  .wheel-panel-actions,
  .wheel-modal-actions {
    grid-template-columns: 1fr;
  }

  .wheel-panel {
    padding: 14px;
  }

  .wheel-names-input {
    min-height: 200px;
  }

  .results-modal {
    padding: 16px;
  }

  .home-title {
    margin: 20px 0 24px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .app-card {
    padding: 22px 18px;
    gap: 10px;
  }

  .app-card .app-icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }

  .app-card h3 {
    font-size: 1rem;
  }

  .app-card p {
    font-size: 0.85rem;
  }
}

  @media (max-width: 520px) {
    .header-left {
      max-width: calc(100% - 132px);
    }

    .header-shortcuts .shortcut-icon:nth-child(n+4) {
      display: none;
    }
  }

  @media (max-width: 430px) {
    .header-left {
      max-width: calc(100% - 118px);
    }

    .header-shortcuts .shortcut-icon:nth-child(n+3) {
      display: none;
    }
  }

  @media (max-width: 360px) {
    .header-left {
      max-width: calc(100% - 102px);
    }

    .header-shortcuts .shortcut-icon:nth-child(n+2) {
      display: none;
    }
  }