:root {
  --bg-base: #060a13;
  --bg-glass: rgba(9, 16, 29, 0.64);
  --bg-glass-strong: rgba(8, 13, 24, 0.9);
  --bg-sheet: rgba(8, 14, 24, 0.98);
  --text-main: #f2f7ff;
  --text-muted: #95a4bf;
  --text-soft: #71809d;
  --border-soft: rgba(198, 214, 255, 0.2);
  --border-glow: rgba(196, 232, 153, 0.35);
  --ring-track: rgba(146, 168, 203, 0.22);
  --ring-stroke-main: 15px;
  --ring-stroke-mini: 9px;
  --shadow-deep: 0 24px 54px rgba(0, 0, 0, 0.62);
  --shadow-soft: 0 10px 24px rgba(3, 8, 18, 0.55);
  --color-health: #98d97f;
  --color-stress: #db8080;
  --color-water: #9fd4f4;
  --color-nutrition: #a8d78f;
  --color-growth: #f0b18f;
  --color-risk: #de8f8f;
  --gs-space-1: 4px;
  --gs-space-2: 8px;
  --gs-space-3: 12px;
  --gs-space-4: 16px;
  --gs-space-5: 20px;
  --gs-radius-card: 10px;
  --gs-radius-button: 14px;
  --gs-radius-modal: 16px;
  --gs-border-width: 1px;
  --gs-border-color: rgba(198, 214, 255, 0.2);
  --gs-shadow-soft: 0 10px 24px rgba(3, 8, 18, 0.55);
}

.gs-card {
  border-radius: var(--gs-radius-card);
}

.gs-button {
  border-radius: var(--gs-radius-button);
}

.gs-status-row {
  border-radius: var(--gs-radius-card);
}

.gs-modal {
  border-radius: var(--gs-radius-modal);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text-main);
  font-family: "Exo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #04090f;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 220ms ease;
}

.app-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 420ms ease;
}

.app-loading-screen.is-hiding {
  opacity: 0;
  pointer-events: none;
}

.app-loading-video {
  display: block;
  width: auto;
  height: min(92dvh, 860px);
  max-height: calc(100dvh - 20px);
  max-width: min(calc(100vw - 20px), 430px);
  object-fit: contain;
}

.screen-bg {
  display: none;
}

.screen-bg-overlay {
  display: none;
}

.app-hud {
  width: min(393px, 100vw);
  height: min(852px, 100dvh);
  aspect-ratio: 393 / 852;
  padding: 0.62rem 0.62rem calc(0.82rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.44rem;
  position: relative;
  z-index: 2;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    url("/assets/ui/backgrounds/Basic screen.jpg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
  border-radius: 20px;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(173, 203, 194, 0.08);
}

@media (min-width: 960px) {
  body {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background:
      radial-gradient(circle at 18% 20%, rgba(76, 153, 121, 0.18), rgba(0, 0, 0, 0) 28%),
      radial-gradient(circle at 82% 16%, rgba(86, 162, 214, 0.16), rgba(0, 0, 0, 0) 26%),
      radial-gradient(circle at 50% 100%, rgba(16, 42, 33, 0.62), rgba(4, 9, 15, 0.98) 54%),
      linear-gradient(180deg, #071018 0%, #04090f 100%);
  }

  body::before,
  body::after {
    opacity: 1;
  }

  body::before {
    top: 50%;
    left: 50%;
    width: min(760px, 68vw);
    height: min(920px, 88vh);
    transform: translate(-50%, -50%);
    border-radius: 40px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
      rgba(6, 12, 18, 0.58);
    border: 1px solid rgba(170, 214, 198, 0.08);
    box-shadow:
      0 42px 120px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  body::after {
    top: calc(50% - 220px);
    left: calc(50% + 190px);
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(109, 238, 167, 0.14), rgba(109, 238, 167, 0) 68%);
    filter: blur(12px);
  }

  .app-hud {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    border-radius: 28px;
    box-shadow:
      0 28px 80px rgba(0, 0, 0, 0.58),
      0 0 0 1px rgba(188, 225, 208, 0.14),
      0 0 0 10px rgba(6, 12, 18, 0.18);
  }
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.72rem;
}

.ui-panel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.ui-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(3, 10, 15, 0.18), rgba(3, 10, 15, 0.08));
  pointer-events: none;
}

.ui-panel__content {
  position: relative;
  z-index: 1;
}

.ui-panel--player {
  background-image: url("/assets/ui/panels/player_panel.png");
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.ui-panel--side {
  background-image: url("/assets/ui/panels/panel_side.png");
}

.ui-panel--progress {
  background-image: url("/assets/ui/panels/panel_progress.png");
}

.ui-panel--status {
  background-image: url("/assets/ui/panels/panel_status.png");
}

.top-row--panelized {
  position: sticky;
  top: 0.18rem;
  z-index: 8;
  align-items: center;
  gap: 0.42rem;
}

.top-row--panelized .menu-toggle-btn {
  display: none;
}

.top-row--panelized .menu-toggle-label {
  font-size: 0.63rem;
  letter-spacing: 0.075em;
}

.top-row--panelized .menu-toggle-icon {
  width: 1.62rem;
  height: 1.25rem;
}

.top-row--panelized .menu-toggle-icon span,
.top-row--panelized .menu-toggle-icon span::before,
.top-row--panelized .menu-toggle-icon span::after {
  width: 0.82rem;
}

.player-top-panel {
  flex: 1;
  min-width: 0;
}

.player-top-panel__content {
  min-height: 72px;
  padding: 0.48rem 0.58rem 0.44rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.48rem;
  align-items: center;
}

.player-top-panel__avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}

.player-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid rgba(240, 206, 120, 0.45);
  background-image: url("/assets/ui/panels/panel_anatar.png");
  background-size: cover;
  background-position: center;
}

.player-level-pill {
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  padding: 0.04rem 0.28rem;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1f1803;
  background: linear-gradient(145deg, #b88912, #f0c040);
  border: 1px solid rgba(236, 210, 132, 0.55);
}

.player-top-panel__identity {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.player-name {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.008em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-role {
  font-size: 0.61rem;
  color: #8ec593;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.player-xp {
  display: grid;
  gap: 0.13rem;
}

.player-xp__text {
  font-size: 0.61rem;
  color: rgba(182, 217, 184, 0.8);
}

.player-xp__track {
  display: block;
  height: 2.5px;
  border-radius: 999px;
  background: rgba(30, 63, 39, 0.75);
}

.player-xp__fill {
  --xp: 84;
  display: block;
  width: calc(var(--xp) * 1%);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f8f4f, #4ade80);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.44);
}

.player-top-panel__currencies {
  display: grid;
  gap: 0.16rem;
}

.currency-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  min-width: 62px;
  font-size: 0.64rem;
  color: #f0c040;
}

.currency-chip__icon {
  width: 0.8rem;
  height: 0.8rem;
  object-fit: contain;
  flex-shrink: 0;
}

.currency-chip--star {
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: rgba(212, 175, 55, 0.1);
  padding: 0.11rem 0.25rem;
}

.hud-main--panelized {
  display: grid;
  grid-template-rows: auto minmax(262px, 1fr) auto auto;
  gap: 0.4rem;
  min-height: 0;
}

.hero-card--panelized {
  position: relative;
  min-height: 0;
  height: 100%;
  max-height: 286px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-card--panelized::before,
.hero-card--panelized::after {
  content: none;
}

.environment-side-panel {
  position: absolute;
  right: 0.45rem;
  top: 56%;
  transform: translateY(-50%);
  width: 146px;
  border-radius: 11px;
  z-index: 3;
}

.environment-side-panel__content {
  padding: 0.52rem 0.5rem;
  display: grid;
  gap: 0.36rem;
}

.env-row__left {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  min-width: 0;
  max-width: 60px;
}

.env-row__icon {
  width: 0.72rem;
  height: 0.72rem;
  object-fit: contain;
  flex-shrink: 0;
}

.env-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.64rem;
}

.env-row__label {
  color: rgba(213, 228, 214, 0.7);
  font-size: 0.58rem;
}

.env-row strong {
  display: inline-block;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  color: #e7f2e8;
  font-size: 0.66rem;
  white-space: nowrap;
}

.progress-strip {
  padding: 0.24rem;
  border-radius: 11px;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.24);
}

.progress-strip__phase-card {
  min-height: 54px;
  margin-bottom: 0.14rem;
  border-radius: 10px;
  padding: 0.4rem 0.52rem 0.42rem;
  box-shadow:
    inset 0 0 0 1px rgba(205, 243, 255, 0.07),
    0 5px 11px rgba(0, 0, 0, 0.2);
}

.progress-strip__stats {
  border-radius: 9px;
}

.progress-strip__stats .info-tile {
  padding: 0.44rem 0.5rem 0.46rem;
}

.progress-strip__stats .info-label {
  font-size: 0.62rem;
  margin-bottom: 0.14rem;
}

.progress-strip__stats strong {
  font-size: 0.83rem;
  letter-spacing: 0.012em;
}

.status-dual-card {
  border-radius: 11px;
  padding: 0.2rem;
}

.status-dual-card__content {
  padding: 0.43rem 0.5rem;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(14, 22, 22, 0.72), rgba(11, 16, 18, 0.78));
  border: 1px solid rgba(143, 190, 132, 0.18);
}

.status-dual-card__head {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 0.26rem;
  margin-bottom: 0.34rem;
  font-size: 0.64rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #d4af37;
}

.status-dual-card__diagnosis-btn {
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.08);
  color: #f2d372;
  border-radius: 999px;
  min-height: 24px;
  padding: 0.14rem 0.44rem;
  font-size: 0.6rem;
  font-weight: 600;
  cursor: pointer;
}

.status-dual-card__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.42rem;
}

.status-column {
  display: grid;
  gap: 0.24rem;
}

.status-row {
  --value: 0;
  --ring-color: #4ade80;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.42rem;
  min-height: 21px;
  font-size: 0.72rem;
  color: #e0e0e0;
}

.status-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.status-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  height: 2.5px;
  width: calc(var(--value) * 1%);
  max-width: 100%;
  border-radius: 999px;
  background: var(--ring-color);
  box-shadow: 0 0 5px rgba(118, 228, 164, 0.32);
}

.status-row__label {
  color: rgba(224, 224, 224, 0.85);
}

.status-row__label-wrap,
.status-mini-row__label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  min-width: 0;
}

.status-row__icon {
  width: 0.74rem;
  height: 0.74rem;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.95;
}

.status-row strong {
  color: #d4af37;
  position: relative;
  z-index: 1;
}

#healthRing { --ring-color: var(--color-health); }
#waterRing { --ring-color: var(--color-water); }
#nutritionRing { --ring-color: var(--color-nutrition); }
#growthRing { --ring-color: var(--color-growth); }
#stressRing { --ring-color: var(--color-stress); }
#riskRing { --ring-color: var(--color-risk); }

.status-row--interactive {
  cursor: pointer;
  touch-action: manipulation;
}

.status-row--interactive:focus-visible {
  outline: 2px solid rgba(180, 234, 170, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

.status-column--soil {
  border-left: 1px solid rgba(212, 175, 55, 0.22);
  padding-left: 0.42rem;
}

.status-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 21px;
  gap: 0.36rem;
  font-size: 0.72rem;
}

.status-mini-row__label-wrap > span {
  color: rgba(224, 224, 224, 0.82);
}

.status-mini-row strong {
  color: #42ff7e;
  font-size: 0.78rem;
}

.action-orb-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  position: sticky;
  bottom: calc(env(safe-area-inset-bottom) + 0.34rem);
  z-index: 7;
  padding: 0.16rem 0.18rem 0.1rem;
}

.action-orb {
  min-height: 84px;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.2rem;
}

.action-orb--care {
  background-image: url("/assets/buttons/button_pflege.png") !important;
}

.action-orb--analyze {
  background-image: url("/assets/buttons/button_analyse.png") !important;
}

.action-orb--boost {
  background-image: url("/assets/buttons/button_boost.png") !important;
}

.action-orb__icon-wrap {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-orb__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.action-orb__label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.action-orb .boost-sub {
  text-align: center;
  line-height: 1.15;
  font-size: 0.56rem;
}

.hero-card--panelized .plant-runtime-layer {
  display: none;
}

/* Fine-tuning corrections: keep panelized HUD balanced on narrow widths */
.progress-strip .progress-strip__phase-card {
  min-height: 54px;
  padding: 0.4rem 0.52rem 0.42rem;
  border-radius: 10px;
}

.progress-strip .phase-card-title {
  font-size: 0.78rem;
}

.progress-strip .phase-card-age,
.progress-strip .phase-card-subtitle {
  font-size: 0.62rem;
}

.status-column #healthRing,
.status-column #stressRing {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  box-shadow: none;
  transform: none;
}

.status-column .status-row__label,
.status-mini-row__label-wrap > span,
.env-row__label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-orb {
  text-align: center;
}

.action-orb__icon {
  display: block;
}

.action-orb__label {
  color: #f4f9ff;
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.18;
  text-shadow: none;
}

#phaseCardCycle {
  position: relative;
  width: 0.8rem;
  height: 0.8rem;
  font-size: 0;
  color: transparent;
  overflow: hidden;
}

#phaseCardCycle::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/ui/icons/icon_light.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

#phaseCardCycle[aria-label="Nacht"]::before {
  background-image: url("/assets/ui/icons/pause.png");
}

@media (max-width: 390px) {
  .app-hud {
    padding: 0.56rem 0.54rem calc(0.76rem + env(safe-area-inset-bottom));
    gap: 0.38rem;
  }

  .top-row--panelized .menu-toggle-btn {
    width: 88px;
    min-width: 88px;
    min-height: 70px;
    padding: 0.4rem 0.44rem;
  }

  .player-top-panel__content {
    min-height: 68px;
    padding: 0.42rem 0.5rem 0.38rem;
  }

  .hero-card--panelized {
    border-radius: 24px;
  }

  .environment-side-panel {
    width: 136px;
    right: 0.5rem;
  }

  .progress-strip__stats .info-tile {
    padding: 0.38rem 0.42rem 0.4rem;
  }

  .progress-strip__stats .info-label {
    font-size: 0.57rem;
  }

  .progress-strip__stats strong {
    font-size: 0.76rem;
  }

  .status-dual-card__head {
    font-size: 0.6rem;
    margin-bottom: 0.3rem;
  }

  .action-orb {
    min-height: 78px;
  }

  .home-player-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .home-avatar-shell {
    width: 42px;
    height: 42px;
  }

  .home-meta-strip {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 5px;
  }

  .home-meta-copy {
    gap: 5px;
  }

  .home-meta-build-chip {
    padding-inline: 6px;
  }

  .home-meta-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 430px) {
  .app-hud {
    padding-left: 0.74rem;
    padding-right: 0.74rem;
    gap: 0.46rem;
  }

  .player-top-panel__content {
    min-height: 74px;
  }

  .top-row--panelized .menu-toggle-btn {
    width: 100px;
    min-width: 100px;
    min-height: 76px;
  }

  .hud-main--panelized {
    grid-template-rows: auto minmax(280px, 1fr) auto auto;
    gap: 0.44rem;
  }

  .environment-side-panel {
    width: 152px;
    right: 0.6rem;
  }

  .action-orb {
    min-height: 90px;
  }
}

.menu-toggle-btn {
  position: relative;
  min-width: 112px;
  min-height: 88px;
  width: 112px;
  height: auto;
  padding: 0.58rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.42rem;
  flex-shrink: 0;
  border: 1px solid rgba(145, 218, 240, 0.48);
  border-radius: 18px;
  background:
    linear-gradient(170deg, rgba(10, 21, 38, 0.96), rgba(6, 15, 28, 0.9)),
    radial-gradient(circle at 74% 24%, rgba(108, 234, 174, 0.14), rgba(108, 234, 174, 0) 60%);
  color: rgba(225, 248, 255, 0.98);
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(209, 246, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.34),
    0 0 14px rgba(88, 205, 232, 0.2);
  isolation: isolate;
  transition: transform 160ms ease, box-shadow 220ms ease, border-color 180ms ease;
}

.menu-toggle-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(178, 228, 243, 0.18), rgba(178, 228, 243, 0));
}

.menu-toggle-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0.9;
}

.menu-toggle-icon {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.45rem;
  border-radius: 10px;
  border: 1px solid rgba(156, 235, 255, 0.42);
  background: linear-gradient(180deg, rgba(22, 73, 112, 0.44), rgba(7, 32, 56, 0.72));
  box-shadow: inset 0 0 0 1px rgba(187, 237, 255, 0.08);
}

.menu-toggle-icon span,
.menu-toggle-icon span::before,
.menu-toggle-icon span::after {
  content: "";
  display: block;
  width: 0.92rem;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(154, 235, 255, 0.96), rgba(97, 215, 241, 0.92));
  box-shadow: 0 0 8px rgba(112, 227, 255, 0.42);
}

.menu-toggle-icon span {
  position: relative;
}

.menu-toggle-icon span::before {
  position: absolute;
  top: -0.29rem;
}

.menu-toggle-icon span::after {
  position: absolute;
  top: 0.29rem;
}

.menu-toggle-btn:hover,
.menu-toggle-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(167, 240, 255, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(225, 251, 255, 0.14),
    0 12px 24px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(88, 214, 240, 0.32);
}

.menu-toggle-btn:active {
  transform: translateY(0);
}

.menu-toggle-btn:focus-visible {
  outline: 2px solid rgba(177, 242, 255, 0.9);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



.phase-card {
  flex: 1;
  min-width: 0;
  min-height: 88px;
  padding: 0.52rem 0.8rem 0.62rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 220, 244, 0.42);
  background:
    linear-gradient(160deg, rgba(8, 18, 34, 0.93), rgba(6, 14, 26, 0.86)),
    url("assets/ui/panels/status_panel_shell.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(205, 243, 255, 0.08),
    0 9px 18px rgba(0, 0, 0, 0.28),
    0 0 12px rgba(89, 196, 220, 0.15);
}

.phase-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.phase-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: #e9f7ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phase-card-cycle {
  display: grid;
  place-items: center;
  width: 1.22rem;
  height: 1.22rem;
  font-size: 0.82rem;
  line-height: 1;
  color: rgba(225, 250, 255, 0.98);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 239, 255, 0.34), rgba(150, 239, 255, 0) 78%);
}

.phase-card-age {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  line-height: 1.25;
  color: rgba(210, 239, 248, 0.9);
}

.phase-card-subtitle {
  margin: 0.14rem 0 0.46rem;
  font-size: 0.68rem;
  line-height: 1.26;
  color: rgba(177, 220, 232, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phase-progress {
  position: relative;
  width: 100%;
  height: 0.38rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(10, 31, 52, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(126, 198, 220, 0.34),
    inset 0 0 8px rgba(38, 100, 130, 0.28);
}

.phase-progress-fill {
  display: block;
  width: calc(var(--phase-progress, 0) * 1%);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(72, 186, 236, 0.9), rgba(86, 227, 189, 0.9));
  box-shadow: 0 0 8px rgba(94, 222, 239, 0.36);
  transition: width 260ms ease;
}

.phase-progress-marker {
  position: absolute;
  top: 50%;
  right: 0.12rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(196, 248, 240, 0.94);
  box-shadow: 0 0 6px rgba(119, 221, 227, 0.34);
}

.phase-progress-marker.hidden {
  display: none;
}

.phase-card--complete .phase-progress-fill {
  box-shadow: 0 0 12px rgba(126, 241, 213, 0.46);
}

.hud-main {
  display: grid;
  gap: 0.78rem;
}

.hud-screen {
  display: none !important;
  pointer-events: none;
}

.hud-screen.is-active {
  display: grid !important;
  pointer-events: auto;
}

.hud-screen.is-active.hud-main--panelized {
  display: block !important;
}

.hero-card {
  position: relative;
  min-height: 360px;
  border-radius: 34px;
  border: 1px solid rgba(197, 216, 255, 0.14);
  background-image: url("assets/backgrounds/stage_forest_main.webp");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(4px);
  padding: 1.1rem 0.85rem 1.3rem;
  overflow: hidden;
  animation: rise-in 560ms ease-out both;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(9, 16, 30, 0.62), rgba(10, 18, 31, 0.4));
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 56%, rgba(146, 232, 124, 0.11), rgba(146, 232, 124, 0) 36%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.32) 100%);
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 53%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(164, 226, 101, 0.35) 0%, rgba(10, 15, 28, 0) 68%);
  pointer-events: none;
}

.hero-stack {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) scale(0.82);
  transform-origin: bottom center;
  width: min(72vw, 282px);
  height: min(72vw, 282px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#healthRing {
  position: absolute;
  top: 14px;
  left: 14px;
}

.hero-card #healthRing,
.hero-card #stressRing {
  transform: scale(0.65);
  transform-origin: center;
}


#healthRing {
  box-shadow:
    0 0 0 1px rgba(152, 217, 127, 0.2),
    0 8px 20px rgba(22, 38, 29, 0.34),
    0 0 20px rgba(145, 234, 137, 0.16);
}

#healthRing::after {
  border-color: rgba(157, 228, 144, 0.26);
}

.hero-stack::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 132px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(132, 248, 128, 0.34) 0%,
    rgba(132, 248, 128, 0.12) 42%,
    rgba(132, 248, 128, 0) 100%
  );
  filter: blur(10px);
  bottom: -10px;
  transform: translateX(-50%);
  width: 120px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(120, 255, 120, 0.45),
    rgba(120, 255, 120, 0)
  );
  filter: blur(12px);
  pointer-events: none;
}

.plant-image {
  display: block;
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 14px rgba(120, 238, 134, 0.1));
  animation: float-soft 3.8s ease-in-out infinite;
  transition: filter 320ms ease, opacity 320ms ease;
  will-change: transform, filter;
}

.plant-image[data-growth-visual="boosted"] {
  animation-duration: 3.1s;
  filter:
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 18px rgba(120, 238, 134, 0.16));
}

.plant-image[data-growth-visual="stalled"] {
  animation-duration: 5.4s;
  opacity: 0.96;
}

.plant-image[data-stress-visual="high"],
.plant-image[data-stress-visual="critical"] {
  animation-name: float-restless;
}

.plant-image[data-risk-visual="high"],
.plant-image[data-risk-visual="critical"] {
  filter:
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 16px rgba(255, 136, 88, 0.14));
}

.overlay-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}

.overlay-image:not([src]),
.overlay-image[src=""] {
  display: none !important;
}

.hidden {
  display: none !important;
}

.ring {
  border-radius: 999px;
  background: conic-gradient(var(--ring-color) calc(var(--value) * 1%), var(--ring-track) 0%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ring::before {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(227, 237, 255, 0.2);
  background: rgba(7, 12, 21, 0.94);
}

.ring::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(191, 211, 246, 0.15);
  pointer-events: none;
}

.ring-main {
  width: 136px;
  height: 136px;
}

.ring-main::before {
  inset: var(--ring-stroke-main);
}

.ring-main::after {
  inset: 3px;
}

.ring-mini {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  z-index: 1;
}

.ring-mini::before {
  inset: var(--ring-stroke-mini);
}

.ring-mini::after {
  inset: 2px;
}


#waterRing,
#nutritionRing,
#growthRing,
#riskRing {
  transition: transform 150ms ease, box-shadow 200ms ease;
  will-change: transform;
  cursor: pointer;
  touch-action: manipulation;
}

#waterRing:focus-visible,
#nutritionRing:focus-visible,
#growthRing:focus-visible,
#riskRing:focus-visible {
  outline: 2px solid rgba(178, 219, 255, 0.7);
  outline-offset: 2px;
}

#waterRing:hover,
#nutritionRing:hover,
#growthRing:hover,
#riskRing:hover {
  box-shadow: 0 0 14px rgba(120, 255, 120, 0.16);
}

#waterRing:active,
#nutritionRing:active,
#growthRing:active,
#riskRing:active {
  transform: scale(0.94);
}

.stat-ring--updated {
  animation: statPulse 340ms ease-out;
}

.stat-value--updated {
  animation: statValueFlash 340ms ease-out;
}

.ring-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
}

.ring-label {
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.ring-main .ring-label {
  font-size: 0.72rem;
  margin-bottom: 0.15rem;
}

.ring-main strong {
  font-size: 1.06rem;
  font-weight: 700;
}

.ring-mini strong {
  font-size: 0.8rem;
  margin-top: 0.05rem;
}

.mini-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(218, 230, 255, 0.26);
  background: linear-gradient(145deg, rgba(26, 38, 59, 0.9), rgba(14, 21, 35, 0.96));
  color: #c7d7f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.63rem;
  font-weight: 700;
  margin-bottom: 0.08rem;
}

.info-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 999px;
  border: 1px solid rgba(197, 214, 244, 0.24);
  background: linear-gradient(170deg, rgba(15, 24, 39, 0.88), rgba(12, 19, 30, 0.78));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation: rise-in 620ms ease-out both;
  animation-delay: 90ms;
}

.info-tile {
  padding: 0.56rem 0.66rem 0.62rem;
  position: relative;
}

.info-tile:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  width: 1px;
  height: 60%;
  background: rgba(183, 204, 241, 0.24);
}

.info-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.66rem;
  margin-bottom: 0.22rem;
}

.info-tile strong {
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.mini-rings {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.34rem;
  padding: 0.35rem 0.1rem 0.2rem;
  animation: rise-in 700ms ease-out both;
  animation-delay: 140ms;
}

.mini-rings::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 41%;
  height: 2px;
  background: linear-gradient(90deg, rgba(173, 196, 233, 0), rgba(173, 196, 233, 0.28) 20%, rgba(173, 196, 233, 0.28) 80%, rgba(173, 196, 233, 0));
}

.action-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1.22fr;
  gap: 0.54rem;
  padding: 0.45rem;
  border-radius: 22px;
  border: 1px solid rgba(205, 220, 248, 0.21);
  background: linear-gradient(170deg, rgba(10, 17, 29, 0.9), rgba(8, 14, 23, 0.84));
  box-shadow: var(--shadow-soft);
  animation: rise-in 780ms ease-out both;
  animation-delay: 190ms;
}

.action-btn {
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(199, 218, 253, 0.24);
  background: linear-gradient(165deg, rgba(29, 40, 61, 0.88), rgba(14, 22, 36, 0.96));
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.99rem;
  padding: 0.78rem 0.55rem;
  width: 100%;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn:active {
  transform: translateY(0);
}

.action-btn:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.action-primary {
  border-color: rgba(188, 231, 126, 0.44);
  background: linear-gradient(130deg, rgba(140, 195, 93, 0.92), rgba(43, 94, 56, 0.88));
  color: #f4ffe8;
  box-shadow: 0 8px 24px rgba(79, 135, 67, 0.45);
}


#careActionBtn {
  position: relative;
  box-shadow:
    0 8px 24px rgba(79, 135, 67, 0.45),
    0 0 18px rgba(120, 255, 120, 0.26),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
  transition: transform 150ms ease, box-shadow 200ms ease, border-color 180ms ease;
}

#careActionBtn:hover {
  box-shadow:
    0 10px 26px rgba(79, 135, 67, 0.48),
    0 0 22px rgba(120, 255, 120, 0.32),
    inset 0 0 14px rgba(255, 255, 255, 0.1);
}

#careActionBtn:active {
  transform: scale(0.96);
  box-shadow:
    0 7px 18px rgba(79, 135, 67, 0.38),
    0 0 14px rgba(120, 255, 120, 0.24),
    inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.action-secondary {
  background: linear-gradient(130deg, rgba(43, 54, 78, 0.9), rgba(17, 25, 40, 0.95));
}

.action-tertiary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.08rem;
  background: linear-gradient(130deg, rgba(27, 38, 56, 0.93), rgba(16, 24, 39, 0.98));
}

.boost-title {
  font-size: 0.87rem;
}

.boost-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.locked-card {
  border-radius: 20px;
  border: 1px solid rgba(198, 213, 242, 0.18);
  background: linear-gradient(165deg, rgba(10, 16, 27, 0.84), rgba(8, 13, 23, 0.93));
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.86rem 0.88rem;
  animation: rise-in 860ms ease-out both;
  animation-delay: 240ms;
}

.locked-card strong {
  display: block;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.locked-card p {
  margin: 0.22rem 0 0;
  color: var(--text-soft);
  font-size: 0.79rem;
}

.locked-card-btn {
  border: 1px solid rgba(162, 211, 233, 0.38);
  border-radius: 999px;
  background: linear-gradient(165deg, rgba(26, 49, 72, 0.9), rgba(12, 31, 51, 0.96));
  color: #eaf8ff;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.46rem 0.95rem;
  min-height: 40px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.locked-card-btn:hover,
.locked-card-btn:focus-visible {
  border-color: rgba(179, 232, 252, 0.62);
}


.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  z-index: 18;
}

.sheet-backdrop[data-sheet="climate"] {
  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 42%,
      rgba(0, 0, 0, 0.18) 62%,
      rgba(0, 0, 0, 0.42) 82%,
      rgba(0, 0, 0, 0.65) 100%
    );
  -webkit-backdrop-filter: blur(5px) saturate(0.82) brightness(0.82);
  backdrop-filter: blur(5px) saturate(0.82) brightness(0.82);
}

.sheet-backdrop[data-sheet="climate"]::before,
.sheet-backdrop[data-sheet="climate"]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sheet-backdrop[data-sheet="climate"]::before {
  background:
    linear-gradient(
      180deg,
      rgba(5, 10, 16, 0.72) 0%,
      rgba(4, 8, 14, 0.82) 45%,
      rgba(2, 5, 10, 0.9) 100%
    );
}

.sheet-backdrop[data-sheet="climate"]::after {
  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.035) 0%,
      rgba(120, 160, 190, 0.025) 18%,
      rgba(0, 0, 0, 0.16) 42%,
      rgba(0, 0, 0, 0.42) 68%,
      rgba(0, 0, 0, 0.72) 100%
    );
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
  z-index: 32;
}

.game-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 1.2rem));
  max-height: min(86dvh, 720px);
  border-radius: 26px;
  border: 1px solid rgba(188, 212, 244, 0.24);
  background:
    linear-gradient(165deg, rgba(8, 15, 26, 0.96) 0%, rgba(9, 16, 28, 0.9) 42%, rgba(7, 14, 24, 0.98) 100%);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.62),
    0 0 24px rgba(132, 209, 122, 0.16);
  z-index: 33;
  overflow: hidden;
}

.game-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0.92rem;
  border-bottom: 1px solid rgba(190, 211, 241, 0.2);
  background: linear-gradient(160deg, rgba(86, 130, 89, 0.25), rgba(17, 31, 44, 0.44));
}

.game-menu-header h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.game-menu-content {
  padding: 0.86rem;
  display: grid;
  gap: 0.9rem;
  overflow-y: auto;
  max-height: calc(min(86dvh, 720px) - 4rem);
}

.game-menu-section {
  display: grid;
  gap: 0.5rem;
}

.game-menu-section h3 {
  margin: 0;
  font-size: 0.77rem;
  color: #c7d7ea;
  letter-spacing: 0.07em;
}

.menu-entry {
  border-radius: 15px;
  border: 1px solid rgba(196, 214, 238, 0.22);
  background: linear-gradient(150deg, rgba(28, 46, 67, 0.84), rgba(14, 24, 39, 0.9));
  color: var(--text-main);
  padding: 0.62rem 0.72rem;
  text-align: left;
  display: grid;
  gap: 0.18rem;
  cursor: pointer;
}

.menu-entry span {
  font-weight: 700;
  font-size: 0.92rem;
}

.menu-entry small {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.menu-entry:disabled {
  opacity: 0.62;
  cursor: default;
}

.menu-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.menu-dialog {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(84, 176, 132, 0.08), rgba(84, 176, 132, 0) 34%),
    rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-dialog-card {
  width: min(360px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(188, 211, 247, 0.26);
  background:
    linear-gradient(180deg, rgba(13, 20, 34, 0.96), rgba(7, 12, 22, 0.98)),
    rgba(9, 15, 26, 0.98);
  padding: 0.96rem;
  display: grid;
  gap: 0.72rem;
  box-shadow:
    0 22px 48px rgba(1, 6, 12, 0.58),
    0 4px 16px rgba(5, 14, 23, 0.42),
    inset 0 1px 0 rgba(240, 248, 255, 0.03);
  animation: menuDialogIn 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.menu-dialog-card h3 {
  margin: 0;
  color: #eef8f0;
  font-size: 1.12rem;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.menu-dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.menu-dialog-kicker {
  margin: 0;
  color: rgba(223, 235, 226, 0.72);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-dialog-reward-section {
  display: none;
}

.menu-dialog[data-variant="mission-reward"] .menu-dialog-card {
  width: min(388px, 100%);
  border-radius: 26px;
  border-color: rgba(146, 229, 178, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(113, 216, 164, 0.18), rgba(113, 216, 164, 0) 32%),
    linear-gradient(180deg, rgba(14, 24, 20, 0.96), rgba(8, 13, 16, 0.98));
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(152, 230, 180, 0.06),
    inset 0 1px 0 rgba(239, 255, 246, 0.05);
  padding: 0.96rem 1rem 1rem;
  gap: 0.68rem;
}

.menu-dialog[data-variant="mission-reward"] .menu-dialog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(236, 253, 242, 0.06), rgba(236, 253, 242, 0) 22%),
    url("assets/ui/components/premium_window_frame.png") center/cover no-repeat;
  opacity: 0.24;
  pointer-events: none;
}

.menu-dialog[data-variant="mission-reward"] .menu-dialog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #9ce4b3;
  font-weight: 700;
  margin-bottom: 0.06rem;
}

.menu-dialog[data-variant="mission-reward"] .menu-dialog-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, #d8ffe5 0%, #7bf0a7 45%, rgba(123, 240, 167, 0.18) 100%);
  box-shadow: 0 0 14px rgba(123, 240, 167, 0.55);
}

.menu-dialog[data-variant="mission-reward"] #menuDialogTitle {
  font-size: 1.34rem;
  line-height: 1.01;
  letter-spacing: 0.012em;
}

.menu-dialog[data-variant="mission-reward"] #menuDialogText {
  margin: 0;
  color: rgba(226, 238, 229, 0.78);
  font-size: 0.82rem;
  line-height: 1.45;
}

.menu-dialog[data-variant="mission-reward"] .menu-dialog-reward-section {
  display: grid;
  gap: 0.55rem;
  padding: 0.88rem 0.9rem 0.92rem;
  margin-top: 0.16rem;
  border-radius: 18px;
  border: 1px solid rgba(226, 199, 120, 0.16);
  background:
    linear-gradient(180deg, rgba(29, 24, 13, 0.88), rgba(18, 15, 9, 0.96)),
    radial-gradient(circle at 20% 10%, rgba(226, 199, 120, 0.08), rgba(226, 199, 120, 0) 46%);
  box-shadow: inset 0 1px 0 rgba(255, 248, 225, 0.05);
}

.menu-dialog-reward-label {
  color: rgba(230, 214, 165, 0.72);
  font-size: 0.65rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.menu-dialog-reward-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0.45rem;
}

.menu-dialog-reward-chip {
  min-height: 62px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 0.56rem;
  border-radius: 14px;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.menu-dialog-reward-chip--gold {
  border-color: rgba(226, 199, 120, 0.2);
  background: linear-gradient(180deg, rgba(55, 43, 16, 0.84), rgba(28, 22, 9, 0.96));
}

.menu-dialog-reward-chip--mint {
  border-color: rgba(131, 219, 180, 0.18);
  background: linear-gradient(180deg, rgba(17, 46, 36, 0.84), rgba(9, 22, 18, 0.96));
}

.menu-dialog-reward-chip--violet {
  border-color: rgba(180, 170, 255, 0.18);
  background: linear-gradient(180deg, rgba(33, 26, 56, 0.84), rgba(16, 12, 27, 0.96));
}

.menu-dialog-reward-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f6f1cf;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.menu-dialog-reward-chip-copy {
  display: grid;
  gap: 0.14rem;
}

.menu-dialog-reward-chip-copy strong {
  color: #f4f8ef;
  font-size: 0.94rem;
  line-height: 1;
}

.menu-dialog-reward-chip-copy small {
  color: rgba(218, 229, 221, 0.66);
  font-size: 0.68rem;
  line-height: 1.2;
}

.menu-dialog-premium-btn {
  border-radius: 14px;
}

.menu-dialog[data-variant="mission-reward"] .menu-dialog-premium-btn {
  min-height: 48px;
  border: 1px solid rgba(176, 235, 194, 0.24);
  background:
    linear-gradient(180deg, rgba(28, 58, 42, 0.98), rgba(14, 31, 22, 0.98)),
    url("assets/ui/components/premium_button.png") center/cover no-repeat;
  color: #effaf2;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, filter 120ms ease;
}

.menu-dialog[data-variant="mission-reward"] .menu-dialog-premium-btn:hover,
.menu-dialog[data-variant="mission-reward"] .menu-dialog-premium-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(202, 244, 214, 0.34);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(180, 238, 198, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  filter: brightness(1.04);
}

.menu-dialog[data-variant="mission-reward"] .menu-dialog-premium-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.menu-dialog[data-variant="mission-reward"] .menu-dialog-dismiss-btn {
  grid-column: 1 / -1;
  margin-top: 0.08rem;
}

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


.bottom-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100vw);
  max-height: min(70dvh, 640px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 1px solid var(--border-soft);
  border-bottom: 0;
  background: var(--bg-sheet);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.55);
  z-index: 19;
  display: flex;
  flex-direction: column;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.78rem 0.88rem;
  border-bottom: 1px solid var(--border-soft);
}

.sheet-header h2 {
  margin: 0;
  font-size: 1rem;
}

.sheet-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sheet-close,
.ghost-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(16, 23, 36, 0.95);
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 0.45rem 0.62rem;
  cursor: pointer;
}

.sheet-content {
  padding: 0.8rem 0.9rem 1.08rem;
  overflow-y: auto;
}


.stat-detail-content {
  display: grid;
  gap: 0.62rem;
}

.stat-detail-value {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.stat-detail-recommendation {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-soft);
}

#dashboardSheet:not(.figma-sheet) .sheet-content,
#diagnosisSheet:not(.figma-sheet) .sheet-content {
  max-height: 50dvh;
}

.sheet-badge {
  display: inline-block;
  margin: 0 0 0.48rem;
  padding: 0.23rem 0.54rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sheet-note {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.event-option-list {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.44rem;
}

.event-option-btn {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #24324c;
  color: var(--text-main);
  padding: 0.6rem;
  text-align: left;
  cursor: pointer;
}

.care-modal {
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  border: 1px solid rgba(92, 198, 165, 0.25);
  background: linear-gradient(170deg, rgba(10, 18, 34, 0.94), rgba(8, 14, 28, 0.92));
  box-shadow: 0 -6px 26px rgba(5, 12, 24, 0.55), inset 0 0 0 1px rgba(74, 188, 176, 0.08);
}

.care-modal-header {
  border-bottom: 1px solid rgba(90, 210, 180, 0.18);
}

.care-modal-title {
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.care-modal-close {
  border-color: rgba(110, 212, 203, 0.25);
}

.care-modal-content {
  display: grid;
  gap: 0.7rem;
}

.care-preview-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(96, 205, 194, 0.22);
  background: radial-gradient(circle at 20% 15%, rgba(44, 92, 126, 0.26), rgba(9, 18, 32, 0.95));
  padding: 0.8rem;
}

.care-preview-media {
  height: 118px;
  border-radius: 12px;
  border: 1px dashed rgba(132, 217, 210, 0.4);
  background: linear-gradient(145deg, rgba(9, 21, 36, 0.88), rgba(15, 35, 58, 0.82));
  display: grid;
  place-items: center;
  color: rgba(149, 222, 214, 0.72);
  font-size: 1.4rem;
}

.care-preview-overlay {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.care-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.care-category-tab {
  border-radius: 12px;
  border: 1px solid rgba(112, 177, 227, 0.25);
  background: rgba(14, 29, 52, 0.82);
  color: var(--text-main);
  padding: 0.58rem 0.52rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.care-category-icon {
  width: 1.2rem;
  text-align: center;
  color: rgba(110, 226, 213, 0.92);
}

.care-category-tab-active {
  border-color: rgba(120, 236, 149, 0.7);
  background: linear-gradient(145deg, rgba(35, 80, 63, 0.9), rgba(21, 45, 69, 0.85));
  box-shadow: inset 0 0 0 1px rgba(95, 232, 151, 0.22);
}

.care-action-list {
  display: grid;
  gap: 0.52rem;
}

.care-action-card {
  border-radius: 14px;
  border: 1px solid rgba(107, 181, 233, 0.25);
  background: linear-gradient(160deg, rgba(12, 27, 48, 0.9), rgba(8, 19, 36, 0.92));
  color: var(--text-main);
  padding: 0.56rem;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.58rem;
  text-align: left;
}

.care-action-card.is-selected {
  border-color: rgba(105, 234, 153, 0.78);
  box-shadow: 0 0 0 1px rgba(105, 234, 153, 0.25), inset 0 0 24px rgba(65, 149, 110, 0.18);
}

.care-action-media {
  border-radius: 10px;
  border: 1px dashed rgba(115, 210, 208, 0.4);
  background: rgba(10, 23, 38, 0.78);
  display: grid;
  place-items: center;
  color: rgba(129, 215, 226, 0.8);
  font-size: 1.05rem;
}

.care-action-title {
  margin: 0;
  font-size: 0.82rem;
}

.care-action-subtitle {
  margin: 0.2rem 0;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.care-action-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.care-effects-panel {
  border-radius: 12px;
  border: 1px solid rgba(92, 178, 217, 0.25);
  background: rgba(9, 18, 33, 0.72);
  padding: 0.6rem;
}

.care-effects-title {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
}

.care-effects-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.34rem;
}

.care-effects-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.care-feedback {
  margin: 0;
  padding: 0.52rem 0.58rem;
  border-radius: 10px;
  border: 1px solid rgba(188, 205, 236, 0.2);
  background: rgba(14, 22, 36, 0.7);
}

.care-feedback.is-success {
  border-color: rgba(116, 235, 147, 0.4);
  color: #caf6d4;
}

.care-feedback.is-error {
  border-color: rgba(235, 154, 154, 0.42);
  color: #ffcece;
}

.care-execute-button {
  border: 1px solid rgba(116, 236, 158, 0.45);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(34, 114, 73, 0.95), rgba(24, 67, 52, 0.95));
  color: #e7ffef;
  padding: 0.72rem 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.care-execute-button:disabled {
  opacity: 0.45;
  border-color: rgba(128, 154, 168, 0.3);
  background: rgba(28, 39, 52, 0.82);
  color: #a8b7bf;
}

.sheet-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.52rem;
  align-items: center;
}

.log-list {
  margin: 0.74rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.log-item {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(20, 30, 47, 0.86);
  padding: 0.45rem 0.52rem;
}

.log-time {
  display: block;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.log-text {
  display: block;
  margin-top: 0.14rem;
  font-size: 0.77rem;
}

.diagnosis-list {
  margin: 0.54rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.analysis-content {
  display: grid;
  gap: 0.6rem;
}


.analysis-settings {
  border: 1px solid rgba(180, 198, 231, 0.2);
  border-radius: 12px;
  background: rgba(11, 18, 31, 0.66);
  padding: 0.55rem;
  display: grid;
  gap: 0.45rem;
}

.analysis-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.analysis-settings-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.analysis-settings-types {
  display: grid;
  gap: 0.3rem;
}

.analysis-settings-type {
  color: var(--text-main);
  font-size: 0.75rem;
}

.analysis-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.analysis-tab {
  border-radius: 10px;
  border: 1px solid rgba(191, 211, 244, 0.24);
  background: rgba(20, 31, 49, 0.9);
  color: var(--text-main);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.52rem 0.4rem;
}

.analysis-tab.is-active {
  border-color: rgba(163, 226, 142, 0.58);
  background: linear-gradient(125deg, rgba(78, 125, 72, 0.95), rgba(39, 85, 54, 0.95));
  color: #f4ffe8;
}

.analysis-panel {
  border-radius: 12px;
  border: 1px solid rgba(180, 198, 231, 0.2);
  background: rgba(11, 18, 31, 0.76);
  padding: 0.62rem;
  display: grid;
  gap: 0.44rem;
  max-height: 45vh;
  overflow: auto;
}

.analysis-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.38rem;
}

.analysis-metric {
  border: 1px solid rgba(187, 206, 236, 0.2);
  border-radius: 10px;
  padding: 0.38rem 0.46rem;
  font-size: 0.73rem;
  color: var(--text-muted);
}

.analysis-metric strong {
  color: var(--text-main);
  font-size: 0.8rem;
}

.driver-item,
.timeline-item {
  border: 1px solid rgba(188, 206, 234, 0.18);
  border-radius: 10px;
  padding: 0.48rem;
  background: rgba(15, 24, 38, 0.75);
  font-size: 0.74rem;
}

.timeline-meta {
  color: var(--text-muted);
  font-size: 0.68rem;
}



@keyframes statPulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  35% {
    transform: scale(1.04);
    filter: brightness(1.08);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes statValueFlash {
  0% {
    opacity: 1;
  }
  35% {
    opacity: 0.74;
  }
  100% {
    opacity: 1;
  }
}

@keyframes stress-alert-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(237, 116, 126, 0.22),
      inset 0 0 0 1px rgba(237, 116, 126, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(237, 116, 126, 0.08),
      0 0 14px rgba(237, 116, 126, 0.24),
      inset 0 0 0 1px rgba(243, 146, 153, 0.28);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes float-restless {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  30% {
    transform: translateY(-3px) rotate(-0.35deg);
  }
  65% {
    transform: translateY(-1px) rotate(0.35deg);
  }
}

@keyframes status-restless-pulse {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.94;
  }
  50% {
    transform: scaleX(1.018);
    opacity: 1;
  }
}

@keyframes growth-flow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.94;
  }
  50% {
    transform: scaleX(1.026);
    opacity: 1;
  }
}

@keyframes guidance-fade-in {
  0% {
    transform: translateY(4px);
    border-color: rgba(212, 175, 55, 0.26);
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  }
  45% {
    transform: translateY(0);
    border-color: rgba(212, 175, 55, 0.34);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.08);
  }
  100% {
    transform: translateY(0);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  }
}

@keyframes feedback-soft-flash {
  0% {
    opacity: 0.72;
    transform: translateY(2px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes care-impact-low {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes care-impact-medium {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.038);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes care-impact-high {
  0% {
    transform: scale(1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 28px rgba(0, 0, 0, 0.2);
  }
  35% {
    transform: scale(1.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 30px rgba(0, 0, 0, 0.24), 0 0 18px rgba(212, 175, 55, 0.16);
  }
  100% {
    transform: scale(1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 28px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 392px) {
  .ring-main {
    width: 124px;
    height: 124px;
  }

  .hero-stack {
    width: min(68vw, 246px);
    height: min(68vw, 246px);
  }

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

.landing-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(3, 7, 13, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.app-hud--blocked {
  pointer-events: none;
  user-select: none;
}

.landing-card {
  width: min(420px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(198, 214, 255, 0.22);
  background: rgba(10, 17, 30, 0.96);
  padding: 0.95rem;
  display: grid;
  gap: 0.55rem;
}

.landing-card label {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.22rem;
}

.landing-card select {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(20, 31, 50, 0.95);
  color: var(--text-main);
  padding: 0.55rem;
}

.death-card {
  gap: 0.7rem;
}

.death-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.death-list li {
  color: var(--text-muted);
}

.death-list li strong {
  color: var(--text-main);
}

.death-actions {
  display: grid;
  gap: 0.5rem;
}

.boot-error-banner {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 9999;
  border: 1px solid rgba(255, 160, 160, 0.35);
  background: rgba(112, 26, 26, 0.97);
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.boot-error-banner p {
  margin: 0;
  font-size: 0.82rem;
}

.boot-error-actions {
  display: grid;
  gap: 0.45rem;
}

.boot-error-actions span {
  font-size: 0.76rem;
  opacity: 0.92;
}

.boot-warning-banner {
  border-color: rgba(255, 217, 122, 0.45);
  background: rgba(122, 80, 8, 0.95);
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
}

.sw-update-banner {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 10020;
  min-width: min(360px, calc(100vw - 1.8rem));
  max-width: min(420px, calc(100vw - 1.8rem));
  border-radius: 14px;
  border: 1px solid rgba(118, 193, 255, 0.35);
  background: rgba(9, 18, 34, 0.94);
  color: #f0f7ff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  padding: 0.8rem;
  display: grid;
  gap: 0.65rem;
  backdrop-filter: blur(8px);
}

.sw-update-banner__text {
  margin: 0;
  font-size: 0.84rem;
}

.sw-update-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sw-update-banner__btn {
  border-radius: 10px;
  border: 1px solid rgba(182, 209, 246, 0.35);
  background: rgba(16, 29, 49, 0.75);
  color: #edf6ff;
  padding: 0.44rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.sw-update-banner__btn--primary {
  border-color: rgba(87, 203, 150, 0.52);
  background: linear-gradient(135deg, rgba(44, 151, 102, 0.94), rgba(24, 93, 76, 0.95));
}

.sw-update-banner__btn--secondary {
  border-color: rgba(163, 188, 226, 0.34);
  background: rgba(18, 33, 58, 0.8);
}

/* Final guard: panelized HUD must not inherit legacy hero-stage visuals */
.hero-card.hero-card--panelized {
  min-height: 0;
  height: 100%;
  background-image: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
  padding: 0;
  border-radius: 0;
}

.hero-card.hero-card--panelized::before,
.hero-card.hero-card--panelized::after {
  content: none;
  background: none;
}

@media (max-width: 380px) {
  .top-row {
    gap: 0.52rem;
  }

  .menu-toggle-btn {
    width: 92px;
    min-width: 92px;
    min-height: 82px;
    padding-inline: 0.55rem;
  }

  .menu-toggle-label {
    font-size: 0.66rem;
  }

  .phase-card {
    min-height: 82px;
    padding: 0.52rem 0.66rem 0.58rem;
  }

  .phase-card-subtitle {
    font-size: 0.64rem;
  }
}

@media (max-width: 393px) {
  .app-hud {
    border-radius: 0;
    box-shadow: none;
  }
}

/* Fine tuning pass: hierarchy and visual balance, no structural changes */
.hud-main.hud-main--panelized {
  grid-template-rows: auto auto auto auto;
  gap: 0.28rem;
}

.plant-section {
  position: relative;
  display: block;
  min-height: 300px;
  width: 100%;
  min-width: 0;
  overflow: visible;
  z-index: 6;
}

.plant-anchor {
  position: absolute;
  left: 50%;
  top: 82px;
  width: clamp(252px, 70vw, 300px);
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
}

.plant-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  overflow: visible;
}

#plantSprite {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transform: none;
  filter:
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 6px rgba(135, 231, 156, 0.14));
}

.progress-panel {
  margin-top: -34px;
  z-index: 5;
  width: 100%;
  border-radius: 11px;
  overflow: hidden;
}

.progress-panel__content {
  position: relative;
  z-index: 1;
  padding: 0.45rem 0.55rem;
  display: grid;
  gap: 0.18rem;
}

.progress-panel__row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.36rem;
  min-width: 0;
}

.progress-panel__row--stats {
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.24rem;
}

.progress-panel__item-label {
  font-size: 0.56rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(230, 238, 226, 0.72);
}

.progress-panel__item-value {
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.1;
  color: #f2f2e4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-panel__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
  opacity: 0.88;
}

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

.status-dual-card {
  margin-top: -6px;
  position: relative;
  z-index: 3;
}

.ui-panel--player::before,
.ui-panel--side::before,
.ui-panel--status::before {
  background: linear-gradient(165deg, rgba(3, 10, 15, 0.24), rgba(3, 10, 15, 0.14));
}

.action-orb-bar {
  gap: 0.34rem;
  padding: 0.1rem 0.12rem 0.08rem;
}

.action-orb {
  width: 84px;
  height: 84px;
  min-height: 84px;
  border-radius: 50%;
  padding: 0.06rem;
  justify-self: center;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 5px rgba(232, 255, 242, 0.22),
    inset 0 -3px 8px rgba(14, 30, 22, 0.36),
    0 6px 14px rgba(0, 0, 0, 0.32),
    0 0 10px rgba(100, 212, 130, 0.18);
  transition: transform 140ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.action-orb__icon-wrap {
  width: 72%;
  height: 72%;
  max-width: 3rem;
  max-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -0.06rem;
}

.action-orb:hover {
  transform: scale(1.05);
  box-shadow:
    inset 0 1px 6px rgba(242, 255, 247, 0.28),
    inset 0 -3px 9px rgba(11, 30, 20, 0.42),
    0 9px 18px rgba(0, 0, 0, 0.36),
    0 0 14px rgba(108, 220, 139, 0.28);
}

.action-orb:active {
  transform: scale(0.98);
}

.action-orb__label {
  font-size: 0.72rem;
}

.action-orb .boost-sub {
  font-size: 0.5rem;
  line-height: 1.05;
}

@media (max-width: 390px) {
  .plant-section {
    min-height: 292px;
  }

  .plant-anchor {
    top: 86px;
    width: clamp(244px, 70vw, 292px);
  }

  #plantSprite {
    width: 100%;
  }

  .progress-panel {
    margin-top: -30px;
  }

  .action-orb {
    width: 78px;
    height: 78px;
    min-height: 78px;
  }
}

@media (min-width: 430px) {
  .plant-section {
    min-height: 316px;
  }

  .plant-anchor {
    top: 78px;
    width: clamp(272px, 68vw, 324px);
  }

  #plantSprite {
    width: 100%;
  }

  .progress-panel {
    margin-top: -38px;
  }

  .action-orb {
    width: 88px;
    height: 88px;
    min-height: 88px;
  }
}

/* BLOCK 1 hard-neutralization: legacy pre-panelized home layers must not render */
body.panelized-ready :is(
  #app-hud > .top-row:not(.top-row--panelized),
  #app-hud > .hud-main:not(.hud-main--panelized),
  .hero-card:not(.hero-card--panelized),
  .hero-glow,
  .hero-stack,
  .phase-card,
  .info-bar,
  .mini-rings,
  .action-panel,
  .locked-card
) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Figma node 132:51 lock: strict mobile frame composition */
.app-hud {
  display: block;
  padding: 0;
  position: relative;
}

.top-row--panelized {
  position: absolute;
  top: 7.3%;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 8;
}

.player-top-panel {
  position: absolute;
  left: 37px;
  top: 1px;
  width: 317px;
}

.ui-panel--player {
  background-image: url("/assets/ui/panels/player_panel.png");
  border: 1px solid rgba(74, 222, 128, 0.18);
  box-shadow:
    0 0 16px rgba(34, 197, 94, 0.1),
    0 1px 22px rgba(0, 0, 0, 0.55);
}

.player-top-panel__content {
  min-height: 78px;
  padding: 0.62rem 0.58rem 0.52rem;
  grid-template-columns: auto 1fr auto;
}

.player-top-panel__avatar-wrap {
  width: 50px;
  height: 50px;
}

.player-avatar {
  background-image: url("/assets/ui/panels/panel_anatar.png");
  border: 0;
}

.player-level-pill {
  bottom: -2px;
  font-size: 0.46rem;
}

.player-name {
  font-size: 0.92rem;
}

.player-role {
  font-size: 0.68rem;
}

.player-xp__text {
  font-size: 0.69rem;
}

.player-top-panel__currencies {
  gap: 0.2rem;
}

.currency-chip {
  min-width: 48px;
  gap: 0.22rem;
}

.currency-chip strong {
  font-size: 0.84rem;
}

.menu-toggle-btn {
  position: absolute;
  top: 17.7%;
  right: 12px;
  width: 41px;
  height: 32px;
  min-width: 41px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url("/assets/ui/icons/menu.svg") center / contain no-repeat;
  box-shadow: none;
  z-index: 10;
}

.menu-toggle-btn .menu-toggle-label,
.menu-toggle-btn .menu-toggle-icon {
  display: none;
}

.hud-main.hud-main--panelized {
  position: absolute;
  inset: 0;
  display: block;
}

.plant-section {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.plant-anchor {
  display: none;
}

.hero-card--panelized .plant-runtime-layer,
.plant-runtime-layer {
  display: none !important;
}

.environment-side-panel {
  right: 13px;
  top: 22.2%;
  transform: none;
  width: 114px;
  border-radius: 12px;
  background-image: url("/assets/ui/panels/panel_side.png");
}

.environment-side-panel__content {
  padding: 0.74rem 0.62rem;
  gap: 0.44rem;
}

.env-row {
  gap: 0.24rem;
}

.env-row__left {
  max-width: 14px;
}

.env-row__icon {
  width: 0.86rem;
  height: 0.86rem;
}

.env-row__label {
  display: none;
}

.env-row strong {
  max-width: 84px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.05;
  color: #e8f1eb;
}

.progress-panel {
  position: absolute;
  top: 58.2%;
  left: 14px;
  width: 365px;
  min-height: 114px;
  height: 114px;
  margin: 0;
  border-radius: 10px;
  z-index: 5;
}

.progress-panel__bg {
  opacity: 1;
}

.progress-panel__content {
  height: 100%;
  padding: 10px 12px 6px;
  display: grid;
  grid-template-rows: 24px 13px 1px 16px;
  gap: 3px;
}

.progress-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
}

.progress-row--main {
  min-height: 22px;
  margin-bottom: 2px;
}

.progress-row--secondary {
  min-height: 12px;
}

.progress-left-main,
.progress-left-secondary,
.progress-center-main,
.progress-center-secondary {
  min-width: 0;
}

.progress-center-main {
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-left: 0;
}

.progress-center-secondary {
  display: flex;
  align-items: center;
  margin-left: 0;
}

.progress-right-main {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  justify-self: end;
  min-width: 0;
}

.progress-right-secondary {
  width: 1px;
  height: 1px;
  opacity: 0;
}

.progress-phase-title {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.progress-phase-day {
  display: inline-block;
  font-size: 0.58rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.74);
  white-space: nowrap;
}

.progress-growth-value {
  display: inline-block;
  color: #4ade80;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.progress-growth-label {
  font-size: 0.58rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.progress-stress-pill {
  font-size: 0.42rem;
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.22);
  background: rgba(250, 204, 21, 0.09);
  border-radius: 3px;
  padding: 0.02rem 0.12rem;
  line-height: 1;
  white-space: nowrap;
}

.progress-multiplier {
  color: rgba(255, 215, 0, 0.72);
  font-size: 0.7rem;
  min-width: 2.1rem;
  text-align: right;
  white-space: nowrap;
}

.progress-cycle-btn {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.08) url("/assets/ui/icons/icon_light.svg") center / 58% no-repeat;
  color: transparent;
  font-size: 0;
}

.progress-cycle-btn[aria-label="Nacht"] {
  background-image: url("/assets/ui/icons/pause.png");
}

.progress-separator {
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(255, 215, 0, 0.12), rgba(0, 0, 0, 0));
  margin-top: 0;
}

.progress-panel__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 12px;
  font-size: 0.5rem;
  padding-top: 1px;
  margin-top: 0;
}

.progress-bottom-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
  line-height: 1;
}

.progress-bottom-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.5rem;
}

.progress-bottom-item strong {
  color: #f0c040;
  font-size: 0.63rem;
  font-weight: 500;
  line-height: 1;
}

.status-dual-card {
  position: absolute;
  left: 14px;
  top: 73.5%;
  width: 365px;
  margin: 0;
  z-index: 4;
}

.status-dual-card__content {
  padding: 0.36rem 0.5rem;
  background: linear-gradient(160deg, rgba(14, 22, 22, 0.8), rgba(11, 16, 18, 0.86));
}

.status-dual-card__head {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 0.34rem;
  font-size: 0.84rem;
}

.status-dual-card__diagnosis-btn {
  display: none;
}

.status-column {
  gap: 0.22rem;
}

.status-row {
  min-height: 9px;
  font-size: 0.72rem;
}

.status-row--hidden-tech {
  display: none;
}

.status-row__icon {
  width: 0.68rem;
  height: 0.68rem;
}

.status-row strong,
.status-mini-row strong {
  font-size: 0.84rem;
}

.status-mini-row {
  min-height: 9px;
  gap: 0.2rem;
  font-size: 0.71rem;
}

.action-orb-bar {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0.2%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.05rem;
  padding: 0;
  z-index: 7;
}

.action-orb {
  width: 83px;
  height: 83px;
  min-height: 83px;
  border-radius: 50%;
  padding: 0;
  background-size: contain;
  box-shadow: none;
}

.action-orb:hover,
.action-orb:active {
  transform: none;
  box-shadow: none;
}

.action-orb__icon-wrap {
  width: 35px;
  height: 35px;
  margin-top: 0;
}

.action-orb__label {
  margin-top: 0.12rem;
  font-size: 0.94rem;
  line-height: 1.18;
  letter-spacing: 0.04em;
  color: #f8d631;
  text-shadow: none;
}

.action-orb .boost-sub {
  display: none;
}

#skipNightActionBtn,
.action-btn#skipNightActionBtn,
.action-orb#skipNightActionBtn {
  display: none;
}

@media (max-width: 390px) {
  .top-row--panelized {
    top: 62px;
  }

  .player-top-panel {
    left: 20px;
    width: calc(100% - 60px);
  }

  .menu-toggle-btn {
    right: 10px;
  }

  .progress-panel,
  .status-dual-card {
    left: 10px;
    width: calc(100% - 20px);
  }

  .action-orb-bar {
    left: 14px;
    right: 14px;
    gap: 0.82rem;
  }

  .action-orb {
    width: 82px;
    height: 82px;
    min-height: 82px;
  }
}

@media (min-width: 430px) {
  .app-hud {
    width: 393px;
  }
}

/* Figma screen migration: overlay screens */
.figma-sheet {
  top: 50%;
  left: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(393px, calc(100vw - 0.8rem));
  height: min(852px, calc(100dvh - 0.8rem));
  max-height: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    radial-gradient(circle at 50% 44%, rgba(129, 255, 190, 0.22), rgba(0, 0, 0, 0) 38%),
    url("/assets/backgrounds/Basic screen.jpg") center / cover no-repeat;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  padding-bottom: 10px;
  z-index: 21;
}

.figma-sheet .sheet-header {
  margin: 0 14px;
  padding: 20px 0 10px;
  border-bottom: 0;
}

.figma-sheet .sheet-header h2 {
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  color: #e8f5e9;
}

.figma-sheet .sheet-content {
  padding: 0 14px 14px;
  height: calc(100% - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  align-content: start;
  gap: 12px;
}

#careSheet.figma-sheet .sheet-content,
#eventSheet.figma-sheet .sheet-content,
#dashboardSheet.figma-sheet .sheet-content,
#diagnosisSheet.figma-sheet .sheet-content {
  max-height: none;
}

#careSheet.figma-sheet .sheet-content {
  min-height: 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  grid-template-rows: minmax(0, 1.08fr) minmax(0, 0.92fr);
  overflow: hidden;
  overscroll-behavior: contain;
}

#careSheet .figma-section-card--care {
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}

#careSheet .figma-section-card--care:first-of-type {
  max-height: 384px;
  grid-template-rows: auto auto minmax(0, 1fr);
}

#careSheet .figma-section-card--care-detail {
  min-height: 0;
  height: 100%;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: start;
}

#careSheet .figma-sheet-header {
  align-items: center;
  padding: 0.9rem 0.95rem 0.82rem;
}

.care-sheet-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.care-sheet-heading h2 {
  margin: 0;
  color: #f4f6ef;
  font-size: 1.02rem;
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.care-sheet-subtitle {
  margin: 0;
  color: rgba(223, 234, 221, 0.66);
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 0.69rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.care-sheet-close {
  min-width: auto;
  padding: 0.55rem 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.figma-sheet .sheet-content,
.figma-menu-screen .game-menu-content {
  scrollbar-width: none;
}

.figma-sheet .sheet-content::-webkit-scrollbar,
.figma-menu-screen .game-menu-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.figma-top-player {
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 11px;
  background: linear-gradient(177deg, rgba(11, 27, 19, 0.92) 6.2%, rgba(6, 18, 13, 0.97) 93.8%);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.1), 0 1px 22px rgba(0, 0, 0, 0.55);
  padding: 10px 12px;
}

.figma-top-player-title {
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  color: #e8f5e9;
  font-size: 12px;
  line-height: 1.2;
}

.figma-top-player-subtitle {
  color: rgba(222, 235, 227, 0.7);
  font-size: 11px;
  line-height: 1.2;
}

.figma-section-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 17, 26, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 16px;
  display: grid;
  gap: 4px;
}

.figma-section-head {
  margin: 0;
  color: #d4af37;
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.72;
}

.figma-static-row {
  min-height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  color: #e0e0e0;
  font-size: 14px;
  padding: 4px 0;
}
.figma-static-row:last-child {
  border-bottom: 0;
}
.figma-static-row > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}
.figma-static-row > strong,
.figma-static-row > .subtitle,
.figma-static-row > .badge,
.figma-static-row > button {
  justify-self: end;
  text-align: right;
  max-width: 60%;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.2;
}

.figma-static-row--stacked {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
  padding-bottom: 14px;
}

.figma-static-row--stacked > span:first-child {
  margin-bottom: 0;
}

.figma-static-row--sim-speed {
  min-height: 0;
  padding: 8px 0 16px;
  row-gap: 10px;
}

.settings-speed-label {
  font-weight: 600;
  color: rgba(232, 240, 247, 0.94);
}

.settings-speed-control {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: linear-gradient(180deg, rgba(16, 25, 36, 0.7), rgba(9, 15, 24, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.settings-speed-summary {
  display: block;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.settings-speed-segmented {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.settings-speed-btn {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 240, 247, 0.82);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.settings-speed-btn.is-active,
.settings-speed-btn[data-active="true"] {
  background: rgba(212, 175, 55, 0.18);
  color: #fff8de;
  border-color: rgba(212, 175, 55, 0.48);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.22);
}

.settings-speed-btn:hover,
.settings-speed-btn:active {
  background: rgba(212, 175, 55, 0.1);
}

.settings-speed-btn:focus-visible {
  outline: 1px solid rgba(212, 175, 55, 0.55);
  outline-offset: 1px;
}

.settings-speed-control .sheet-note {
  text-align: left;
}

.settings-speed-hint {
  min-height: 14px;
}

.value_green {
  color: #42ff7e;
  font-weight: 700;
}

.value_gold {
  color: #d4af37;
  font-weight: 700;
}

.value_orange {
  color: #ff6b35;
  font-weight: 700;
}

.figma-sheet .sheet-badge {
  margin: 0;
  width: fit-content;
  background: rgba(250, 204, 21, 0.09);
  border-color: rgba(250, 204, 21, 0.22);
  color: #facc15;
}

.figma-sheet .sheet-note {
  margin: 0;
  color: rgba(222, 235, 227, 0.7);
  font-size: 11px;
}

.figma-sheet .sheet-close {
  min-width: 34px;
  min-height: 34px;
  border-radius: 8px;
  border-color: rgba(74, 222, 128, 0.3);
}

.figma-sheet .event-option-list {
  margin-top: 2px;
  display: grid;
  gap: 0;
}

.event-option-btn {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #dfeadd;
  min-height: 28px;
  padding: 6px 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.event-option-btn:last-child {
  border-bottom: 0;
}

.event-reward-action-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(160, 220, 187, 0.18);
  background:
    radial-gradient(circle at top left, rgba(106, 186, 146, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(16, 27, 23, 0.96), rgba(10, 18, 15, 0.98));
  color: #e7f2ea;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.18);
  transition: transform 140ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.event-reward-action-btn:hover,
.event-reward-action-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(186, 233, 206, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.2);
}

.event-reward-action-btn:active {
  transform: translateY(1px);
}

.event-reward-action-btn__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.event-reward-action-btn__note {
  display: block;
  margin-top: 4px;
  color: rgba(214, 230, 220, 0.74);
  font-size: 11px;
  line-height: 1.35;
}

.figma-sheet-event .figma-section-card--event {
  min-height: 234px;
}

.event-ui-modern-active #eventSheet.event-sheet--modern-exclusive {
  isolation: isolate;
  z-index: 120;
  background:
    linear-gradient(180deg, rgba(8, 14, 12, 0.98), rgba(11, 18, 15, 0.99));
}

.event-sheet-modern-root,
.event-sheet-legacy-root {
  display: grid;
  gap: 12px;
}

.event-ui-modern-active #eventSheet.event-sheet--modern-exclusive .figma-section-card--event,
.event-ui-modern-active #eventSheet.event-sheet--modern-exclusive .event-shadow-insight,
.event-ui-modern-active #eventSheet.event-sheet--modern-exclusive .event-history-slot {
  position: relative;
  z-index: 1;
}

.event-ui-modern-active #eventSheet.event-sheet--modern-exclusive .event-sheet-legacy-root {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.event-ui-modern-active #eventSheet.event-sheet--modern-exclusive .event-sheet-modern-root {
  display: grid;
}

.event-sheet-modern-card {
  min-height: 234px;
}

.event-sheet-modern__title,
.event-sheet-modern__text,
.event-sheet-modern__meta,
.event-sheet-modern__inspector {
  margin: 0;
}

.event-sheet-modern__title {
  color: #f2f7ef;
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 18px;
  line-height: 1.15;
}

.event-sheet-modern__text {
  color: rgba(231, 239, 233, 0.88);
  font-size: 12px;
  line-height: 1.5;
}

.event-sheet-modern__meta {
  color: rgba(210, 224, 214, 0.66);
}

.event-sheet-modern__options {
  margin-top: 2px;
}

.event-sheet-modern__inspector {
  color: rgba(198, 214, 203, 0.58);
  font-size: 10px;
  line-height: 1.35;
}

.figma-sheet-event .event-visual {
  margin: 4px 0 12px;
  display: grid;
  gap: 8px;
}

.figma-sheet-event .event-visual.hidden {
  display: none;
}

.figma-sheet-event .event-visual-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figma-sheet-event .event-visual-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(119, 184, 143, 0.18);
  background:
    radial-gradient(circle at 18% 18%, rgba(126, 224, 170, 0.18), rgba(126, 224, 170, 0) 44%),
    linear-gradient(180deg, rgba(10, 18, 17, 0.96), rgba(17, 26, 22, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 48px rgba(0, 0, 0, 0.28);
}

.figma-sheet-event .event-visual[data-tone="warning"] .event-visual-frame,
.event-center-card[data-tone="warning"] .event-center-card__media,
.event-history-card[data-tone="warning"] .event-history-card__media {
  border-color: rgba(214, 171, 74, 0.34);
}

.figma-sheet-event .event-visual[data-tone="active"] .event-visual-frame,
.event-center-card[data-tone="active"] .event-center-card__media,
.event-history-card[data-tone="active"] .event-history-card__media {
  border-color: rgba(131, 206, 166, 0.3);
}

.figma-sheet-event .event-visual[data-tone="escalating"] .event-visual-frame,
.event-center-card[data-tone="escalating"] .event-center-card__media,
.event-history-card[data-tone="followup"] .event-history-card__media {
  border-color: rgba(232, 117, 88, 0.38);
}

.figma-sheet-event .event-visual[data-tone="reward"] .event-visual-frame,
.event-center-card[data-tone="reward"] .event-center-card__media,
.event-history-card[data-tone="reward"] .event-history-card__media {
  border-color: rgba(109, 203, 132, 0.36);
}

.figma-sheet-event .event-visual[data-tone="history"] .event-visual-frame,
.figma-sheet-event .event-visual[data-tone="resolved"] .event-visual-frame,
.event-center-card[data-tone="history"] .event-center-card__media,
.event-center-card[data-tone="resolved"] .event-center-card__media,
.event-history-card[data-tone="history"] .event-history-card__media,
.event-history-card[data-tone="resolved"] .event-history-card__media {
  border-color: rgba(151, 166, 176, 0.28);
}

.figma-sheet-event .event-visual-image.hidden {
  display: none;
}

.figma-sheet-event .event-visual-image--icon {
  object-fit: contain;
  padding: 18%;
  background:
    radial-gradient(circle at 50% 50%, rgba(85, 150, 113, 0.24), rgba(85, 150, 113, 0) 56%),
    linear-gradient(180deg, rgba(11, 19, 16, 0.94), rgba(16, 24, 20, 0.98));
}

.figma-sheet-event .event-visual-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(215, 175, 69, 0.14), rgba(215, 175, 69, 0) 46%),
    linear-gradient(180deg, rgba(9, 17, 14, 0.96), rgba(16, 24, 20, 0.98));
}

.figma-sheet-event .event-visual-placeholder-glyph {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(215, 175, 69, 0.28);
  background: rgba(215, 175, 69, 0.08);
  color: #f1d58f;
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.figma-sheet-event .event-visual-placeholder-label {
  color: rgba(237, 245, 239, 0.9);
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.figma-sheet-event .event-visual-state-badge,
.figma-sheet-event .event-visual-origin-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(241, 248, 237, 0.12);
  backdrop-filter: blur(14px);
  background: rgba(8, 14, 20, 0.64);
  color: rgba(245, 250, 244, 0.92);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.figma-sheet-event .event-visual-state-badge {
  top: 10px;
  left: 10px;
}

.figma-sheet-event .event-visual-origin-badge {
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
}

.figma-sheet-event .event-visual-caption {
  display: grid;
  gap: 2px;
}

.figma-sheet-event .event-visual-caption-title {
  color: #f2f7ef;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.figma-sheet-event .event-visual-caption-meta {
  color: rgba(216, 228, 220, 0.64);
  font-size: 10px;
  line-height: 1.35;
}

.figma-sheet-event .figma-section-card--event-positive {
  min-height: 220px;
}

.figma-sheet-event #eventTitle {
  margin: 0;
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #e8f5e9;
  overflow-wrap: anywhere;
}

.figma-sheet-event #eventText {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(222, 235, 227, 0.78);
  overflow-wrap: anywhere;
}

.figma-sheet-event #eventMeta {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(222, 235, 227, 0.72);
  overflow-wrap: anywhere;
}

.event-shadow-insight {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(125, 185, 154, 0.16);
  background:
    linear-gradient(180deg, rgba(13, 20, 18, 0.96), rgba(18, 25, 22, 0.98)),
    radial-gradient(circle at top left, rgba(83, 163, 121, 0.12), rgba(83, 163, 121, 0) 46%);
}

.event-shadow-insight[data-tone="warning"] {
  border-color: rgba(214, 171, 74, 0.24);
}

.event-shadow-insight[data-tone="active"] {
  border-color: rgba(125, 185, 154, 0.2);
}

.event-shadow-insight[data-tone="escalating"],
.event-shadow-insight[data-tone="followup"] {
  border-color: rgba(232, 117, 88, 0.24);
}

.event-shadow-insight[data-tone="reward"] {
  border-color: rgba(109, 203, 132, 0.24);
}

.event-shadow-insight[data-tone="history"],
.event-shadow-insight[data-tone="resolved"] {
  border-color: rgba(151, 166, 176, 0.22);
}

.event-shadow-insight.hidden {
  display: none;
}

.event-shadow-insight__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-shadow-insight__eyebrow,
.event-center-card__eyebrow {
  color: rgba(199, 216, 203, 0.56);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-shadow-insight__pill,
.event-center-card__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(215, 175, 69, 0.12);
  color: #efd798;
  font-size: 10px;
}

.event-shadow-insight__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: rgba(232, 240, 234, 0.86);
  font-size: 11px;
  line-height: 1.42;
}

.event-detail-sections {
  display: grid;
  gap: 8px;
}

.event-detail-section {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-detail-section--warning {
  border-color: rgba(214, 171, 74, 0.18);
}

.event-detail-section--active {
  border-color: rgba(125, 185, 154, 0.16);
}

.event-detail-section--escalating,
.event-detail-section--followup {
  border-color: rgba(232, 117, 88, 0.18);
}

.event-detail-section--reward {
  border-color: rgba(109, 203, 132, 0.18);
}

.event-detail-section--history,
.event-detail-section--resolved {
  border-color: rgba(151, 166, 176, 0.15);
}

.event-detail-section__eyebrow {
  color: rgba(199, 216, 203, 0.54);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-detail-section__body {
  margin: 0;
  color: rgba(232, 240, 234, 0.84);
  font-size: 11px;
  line-height: 1.45;
}

.event-shadow-note,
.event-shadow-disclaimer {
  margin: 0;
  color: rgba(212, 224, 215, 0.72);
  font-size: 10px;
  line-height: 1.45;
}

.event-center-card {
  display: grid;
  grid-template-columns: minmax(88px, 106px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.event-center-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(125, 185, 154, 0.14);
  background:
    radial-gradient(circle at 50% 34%, rgba(126, 224, 170, 0.18), rgba(126, 224, 170, 0) 44%),
    linear-gradient(180deg, rgba(10, 18, 17, 0.96), rgba(17, 26, 22, 0.98));
}

.event-center-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-center-card__image--icon {
  object-fit: contain;
  padding: 18%;
}

.event-center-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f0d58b;
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.event-center-card__body {
  display: grid;
  gap: 6px;
  align-content: start;
}

.event-center-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-center-card__title {
  color: #f2f7ef;
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 14px;
  line-height: 1.18;
}

.event-center-card__summary,
.event-center-card__meta {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.event-center-card__summary {
  color: rgba(230, 237, 232, 0.84);
}

.event-center-card__meta {
  color: rgba(202, 216, 206, 0.66);
}

.event-center-card__markers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-center-card__marker,
.event-history-card__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(234, 240, 236, 0.8);
  font-size: 10px;
  line-height: 1;
}

.event-center-card__origin,
.event-history-card__origin {
  color: rgba(199, 216, 203, 0.56);
  font-size: 10px;
  line-height: 1.3;
}

.event-history-slot {
  display: grid;
  margin-top: 10px;
}

.event-history-slot.hidden {
  display: none;
}

.event-history-card {
  display: grid;
  grid-template-columns: minmax(88px, 104px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(151, 166, 176, 0.18);
  background:
    linear-gradient(180deg, rgba(13, 19, 20, 0.98), rgba(17, 23, 24, 0.98)),
    radial-gradient(circle at top left, rgba(119, 147, 169, 0.08), rgba(119, 147, 169, 0) 48%);
}

.event-history-card--empty {
  grid-template-columns: minmax(0, 1fr);
}

.event-history-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(151, 166, 176, 0.22);
  background:
    radial-gradient(circle at 50% 34%, rgba(164, 192, 208, 0.12), rgba(164, 192, 208, 0) 44%),
    linear-gradient(180deg, rgba(11, 17, 18, 0.96), rgba(18, 23, 24, 0.98));
}

.event-history-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-history-card__image--icon {
  object-fit: contain;
  padding: 18%;
}

.event-history-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #b9ccd6;
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.event-history-card__body {
  display: grid;
  gap: 6px;
  align-content: start;
}

.event-history-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-history-card__eyebrow {
  color: rgba(199, 216, 203, 0.56);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-history-card__title {
  color: #f2f7ef;
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 14px;
  line-height: 1.18;
}

.event-history-card__summary,
.event-history-card__meta {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.event-history-card__summary {
  color: rgba(230, 237, 232, 0.84);
}

.event-history-card__meta {
  color: rgba(202, 216, 206, 0.66);
}

.event-history-list-shell {
  gap: 12px;
}

.event-history-list {
  display: grid;
  gap: 10px;
}

.event-history-list--empty {
  min-height: 72px;
  align-items: center;
}

.event-history-list__empty {
  margin: 0;
  color: rgba(208, 220, 212, 0.68);
  font-size: 11px;
  line-height: 1.45;
}

.event-history-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(151, 166, 176, 0.16);
  background:
    linear-gradient(180deg, rgba(15, 20, 21, 0.98), rgba(19, 24, 25, 0.98)),
    radial-gradient(circle at top left, rgba(119, 147, 169, 0.07), rgba(119, 147, 169, 0) 48%);
}

.event-history-item[data-tone="warning"] {
  border-color: rgba(214, 171, 74, 0.22);
}

.event-history-item[data-tone="active"] {
  border-color: rgba(125, 185, 154, 0.18);
}

.event-history-item[data-tone="escalating"],
.event-history-item[data-tone="followup"] {
  border-color: rgba(232, 117, 88, 0.22);
}

.event-history-item[data-tone="reward"] {
  border-color: rgba(109, 203, 132, 0.22);
}

.event-history-item[data-tone="resolved"],
.event-history-item[data-tone="history"] {
  border-color: rgba(151, 166, 176, 0.18);
}

.event-history-item__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(151, 166, 176, 0.2);
  background:
    radial-gradient(circle at 50% 34%, rgba(164, 192, 208, 0.1), rgba(164, 192, 208, 0) 44%),
    linear-gradient(180deg, rgba(11, 17, 18, 0.96), rgba(18, 23, 24, 0.98));
}

.event-history-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-history-item__image--icon {
  object-fit: contain;
  padding: 18%;
}

.event-history-item__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c8d7de;
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.event-history-item__body {
  display: grid;
  gap: 5px;
  align-content: start;
}

.event-history-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-history-item__eyebrow {
  color: rgba(199, 216, 203, 0.54);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-history-item__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(234, 240, 236, 0.8);
  font-size: 10px;
  line-height: 1;
}

.event-history-item__title {
  color: #f2f7ef;
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 13px;
  line-height: 1.2;
}

.event-history-item__summary,
.event-history-item__meta {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.event-history-item__summary {
  color: rgba(230, 237, 232, 0.84);
}

.event-history-item__meta {
  color: rgba(202, 216, 206, 0.66);
}

.event-history-item__markers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-history-item__marker {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(234, 240, 236, 0.8);
  font-size: 10px;
  line-height: 1;
}

.event-history-item__origin {
  color: rgba(199, 216, 203, 0.56);
  font-size: 10px;
  line-height: 1.3;
}

@media (max-width: 420px) {
  .event-center-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-center-card__media {
    max-width: 128px;
  }

  .event-history-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-history-card__media {
    max-width: 128px;
  }

  .event-history-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-history-item__media {
    max-width: 104px;
  }
}

.figma-sheet .gs-analysis-panel {
  border-radius: 10px;
  border: 0.8px solid rgba(74, 222, 128, 0.22);
  background: linear-gradient(180deg, rgba(27, 30, 30, 0.97), rgba(20, 23, 23, 0.97));
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  padding: 12px;
  overflow: auto;
}

.figma-sheet .gs-analysis-tabs {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.figma-sheet .gs-analysis-tab {
  min-height: 46px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #ffd700;
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.figma-sheet .gs-analysis-tab.is-active {
  color: #ffd700;
  text-shadow: 0 0 6px rgba(250, 204, 21, 0.45);
}

.figma-sheet-analysis .analysis-content {
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
}

.gs-analysis-overview {
  display: grid;
  gap: 12px;
}

.gs-analysis-overview-section {
  border-radius: 10px;
  border: 0.8px solid rgba(74, 222, 128, 0.22);
  background: linear-gradient(180deg, rgba(27, 30, 30, 0.97), rgba(20, 23, 23, 0.97));
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  padding: 12px;
  display: grid;
  gap: 0;
}

.gs-analysis-status-row {
  min-height: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gs-analysis-status-row:last-child {
  border-bottom: 0;
}

.gs-analysis-status-row span {
  font-size: 12px;
  color: #e0e0e0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.gs-analysis-status-row strong {
  font-size: 12px;
  line-height: 1.2;
}

.gs-analysis-trend-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(222, 235, 227, 0.74);
  overflow-wrap: anywhere;
}

.gs-analysis-overview-meta {
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 11px;
  color: rgba(222, 235, 227, 0.7);
}

.gs-analysis-overview-meta strong {
  color: #d4af37;
  font-weight: 700;
}

.gs-analysis-driver,
.gs-analysis-timeline-item {
  min-height: 28px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.35;
  color: #e0e0e0;
  overflow-wrap: anywhere;
}

.gs-analysis-driver:last-child,
.gs-analysis-timeline-item:last-child {
  border-bottom: 0;
}

.gs-analysis-driver {
  display: grid;
  gap: 6px;
}

.gs-analysis-driver--primary {
  padding-top: 2px;
}

.gs-analysis-driver-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.gs-analysis-driver-badge {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gs-analysis-driver-badge--critical {
  color: #ffd8cf;
  background: rgba(174, 54, 39, 0.34);
}

.gs-analysis-driver-badge--high {
  color: #ffe0ad;
  background: rgba(142, 93, 16, 0.34);
}

.gs-analysis-driver-badge--medium {
  color: #e8f0c2;
  background: rgba(96, 117, 35, 0.3);
}

.gs-analysis-driver-badge--low {
  color: #d7eee0;
  background: rgba(34, 96, 74, 0.28);
}

.gs-analysis-driver-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.42;
  color: rgba(224, 224, 224, 0.92);
}

.gs-analysis-driver-line span {
  color: rgba(212, 175, 55, 0.84);
  font-weight: 700;
}

.gs-analysis-driver-line--limit {
  color: rgba(220, 227, 214, 0.72);
}

.gs-analysis-timeline-meta {
  color: rgba(222, 235, 227, 0.65);
  font-size: 11px;
  margin-bottom: 2px;
}

.figma-care-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.figma-care-categories .care-category-tab {
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background:
    linear-gradient(180deg, rgba(28, 31, 31, 0.96), rgba(14, 18, 18, 0.96)),
    rgba(11, 14, 15, 0.94);
  color: #dfeadd;
  padding: 9px 10px;
  min-height: 66px;
  font-size: 12px;
  line-height: 1.2;
  gap: 6px;
  min-width: 0;
  display: grid;
  justify-items: start;
  align-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 22px rgba(0, 0, 0, 0.16);
}

.figma-care-categories .care-category-icon {
  width: 22px;
  height: 22px;
  font-size: 20px;
  color: #d4af37;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.figma-care-categories .care-category-tab > span:last-child {
  min-width: 0;
  white-space: normal;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.24;
  text-align: left;
}

.figma-care-categories .care-category-tab-active {
  border-color: rgba(104, 218, 143, 0.42);
  background:
    radial-gradient(circle at top left, rgba(86, 208, 128, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(22, 42, 31, 0.94), rgba(14, 28, 22, 0.96));
  box-shadow: inset 0 0 0 1px rgba(104, 218, 143, 0.16), 0 0 0 1px rgba(104, 218, 143, 0.08), 0 12px 28px rgba(14, 56, 34, 0.24);
}

.figma-care-actions {
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background:
    linear-gradient(180deg, rgba(17, 21, 21, 0.94), rgba(11, 15, 15, 0.96)),
    rgba(10, 12, 13, 0.94);
  padding: 8px 12px 8px 8px;
  max-height: min(314px, 38dvh);
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.5) rgba(255, 255, 255, 0.06);
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.figma-care-actions::-webkit-scrollbar {
  width: 8px;
}

.figma-care-actions::-webkit-scrollbar-track {
  margin: 6px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.figma-care-actions::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(9, 13, 14, 0.92);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.68), rgba(74, 222, 128, 0.44));
}

.figma-care-actions .care-action-card {
  min-height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.02);
  box-shadow: none;
  padding: 10px 12px;
  margin-bottom: 6px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  text-shadow: none;
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.care-action-icon-box {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 18px rgba(0, 0, 0, 0.18);
}

.care-action-card-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
}

.care-action-info-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  padding-right: 2px;
}

.care-action-label {
  font-size: 15px;
  font-weight: 600;
  color: #f5f7f3;
  margin-bottom: 0;
  line-height: 1.28;
  white-space: normal;
  text-align: left;
  text-shadow: none;
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
}

.care-action-hint {
  font-size: 12px;
  color: rgba(223, 234, 221, 0.72);
  text-align: left;
  line-height: 1.4;
  white-space: normal;
  max-width: 100%;
  text-shadow: none;
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
  font-weight: 400;
}

.figma-care-actions .care-action-card.is-selected {
  transform: translateY(-1px);
  background:
    radial-gradient(circle at top left, rgba(66, 255, 126, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(25, 86, 51, 0.34), rgba(16, 53, 33, 0.3));
  border-color: rgba(92, 255, 156, 0.24);
  box-shadow: inset 0 0 0 1px rgba(92, 255, 156, 0.08), 0 12px 26px rgba(14, 58, 36, 0.2);
}

.figma-care-actions .care-action-card.is-selected .care-action-label {
  color: #ecfff1;
}

.figma-care-actions .care-action-card.is-selected .care-action-hint {
  color: rgba(225, 241, 201, 0.9);
}

.figma-care-actions .care-action-card.is-primary {
  border-color: rgba(92, 255, 156, 0.22);
  box-shadow: inset 0 0 0 1px rgba(92, 255, 156, 0.06), 0 12px 24px rgba(18, 66, 41, 0.18);
}

.care-action-section-label {
  margin: 8px 2px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(221, 231, 220, 0.54);
}

.care-action-section-label--primary {
  color: rgba(158, 245, 184, 0.86);
}

.care-action-section-label--secondary {
  color: rgba(228, 234, 204, 0.7);
}

.care-action-section-label--cooldown {
  color: rgba(154, 204, 255, 0.72);
}

.care-action-section-label--blocked {
  color: rgba(255, 196, 168, 0.74);
}

.care-action-compact-list {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.care-action-compact-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.018);
  padding: 10px 12px;
  display: grid;
  gap: 3px;
}

.care-action-compact-card--cooldown {
  border-color: rgba(110, 179, 255, 0.12);
}

.care-action-compact-card--blocked {
  border-color: rgba(255, 188, 147, 0.12);
}

.care-action-compact-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(243, 246, 242, 0.88);
  line-height: 1.25;
}

.care-action-compact-hint {
  font-size: 12px;
  color: rgba(213, 223, 212, 0.68);
  line-height: 1.35;
}

.care-action-compact-more {
  font-size: 11px;
  color: rgba(206, 214, 205, 0.48);
  padding: 0 2px;
}

.figma-care-actions .care-action-card:disabled,
.figma-care-actions .care-action-card.is-unavailable {
  opacity: 0.58;
  border-color: rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.015);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.figma-care-actions .care-action-card.is-unavailable .care-action-hint {
  color: rgba(255, 205, 173, 0.78);
}

.care-effects-list {
  margin: 0;
  padding: 0 6px 0 0;
  list-style: none;
  display: grid;
  gap: 10px;
  min-height: 0;
  align-content: start;
  max-height: min(360px, 38dvh);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) rgba(255, 255, 255, 0.05);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.care-effects-list::-webkit-scrollbar {
  width: 6px;
}

.care-effects-list::-webkit-scrollbar-track {
  margin: 4px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.care-effects-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.42);
}

.care-effects-list li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.care-section-label {
  margin: 4px 0 2px;
  padding-top: 2px;
  color: rgba(212, 175, 55, 0.82);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
  opacity: 0.7;
}

.care-section-label--hints {
  color: rgba(236, 241, 203, 0.92);
}

.care-section-label--effects {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.care-hint-item {
  position: relative;
  min-height: 66px;
  padding: 12px 14px 13px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(8, 14, 18, 0.8);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.care-hint-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.5);
}

.care-hint-head {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  min-height: 11px;
}

.care-hint-marker {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  flex: 0 0 auto;
}

.care-hint-headline {
  color: rgba(244, 248, 241, 0.98);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0.01em;
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
}

.care-hint-message {
  margin: 0;
  color: rgba(214, 224, 216, 0.72);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
}

.care-hint-item--positive {
  border-color: rgba(104, 218, 143, 0.22);
  background:
    linear-gradient(180deg, rgba(74, 222, 128, 0.09), rgba(18, 45, 29, 0.22)),
    rgba(8, 14, 18, 0.84);
}

.care-hint-item--positive::before {
  background: rgba(104, 218, 143, 0.85);
}

.care-hint-item--positive .care-hint-marker {
  color: rgba(183, 245, 197, 0.95);
}

.care-hint-item--caution {
  border-color: rgba(212, 175, 55, 0.24);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.1), rgba(48, 34, 12, 0.22)),
    rgba(8, 14, 18, 0.84);
}

.care-hint-item--caution::before {
  background: rgba(224, 190, 82, 0.9);
}

.care-hint-item--caution .care-hint-marker {
  color: rgba(244, 221, 148, 0.96);
}

.care-hint-item--warning {
  border-color: rgba(228, 114, 84, 0.26);
  background:
    linear-gradient(180deg, rgba(228, 114, 84, 0.12), rgba(54, 23, 17, 0.26)),
    rgba(8, 14, 18, 0.85);
}

.care-hint-item--warning::before {
  background: rgba(238, 123, 92, 0.92);
}

.care-hint-item--warning .care-hint-marker {
  color: rgba(255, 199, 184, 0.98);
}

.care-effect-row {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
  color: #dfeadd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
}

.care-effect-row:last-child {
  border-bottom: 0;
}

.care-effect-row > span {
  color: rgba(214, 225, 220, 0.85);
  font-weight: 400;
  line-height: 1.4;
}

.care-effect-row > strong {
  color: rgba(245, 247, 243, 0.9);
  font-weight: 500;
  letter-spacing: 0.015em;
  text-align: right;
  line-height: 1.4;
}

.care-empty-row {
  padding: 12px 0 4px;
  color: rgba(214, 225, 220, 0.68);
  font-size: 11px;
  line-height: 1.4;
}

.care-execute-panel {
  display: grid;
  gap: 3px;
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.care-feedback {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(214, 225, 220, 0.6);
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
  font-weight: 400;
}

.care-feedback.is-info {
  color: rgba(214, 225, 220, 0.6);
}

.care-feedback.is-success {
  color: #caf6d4;
}

.care-feedback.is-error {
  color: #ffcece;
}

.care-feedback--fresh {
  animation: feedback-soft-flash 520ms ease-out;
}

.care-execute-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(28, 32, 31, 0.96), rgba(14, 18, 18, 0.98));
  color: #f0f5ee;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 28px rgba(0, 0, 0, 0.2);
}

.care-execute-btn:disabled {
  opacity: 0.52;
}

.care-execute-btn--impact-low {
  animation: care-impact-low 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.care-execute-btn--impact-medium {
  animation: care-impact-medium 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.care-execute-btn--impact-high {
  animation: care-impact-high 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 480px) {
  #careSheet .figma-section-card--care:first-of-type {
    max-height: 336px;
  }

  #careSheet .figma-section-card--care,
  #careSheet .figma-section-card--care-detail {
    padding: 13px;
  }

  #careSheet .figma-section-card--care-detail {
    padding-bottom: calc(13px + env(safe-area-inset-bottom));
  }

  #careSheet .figma-sheet-header {
    padding: 0.82rem 0.88rem 0.74rem;
  }

  .care-sheet-close {
    padding: 0.5rem 0.68rem;
    font-size: 0.66rem;
  }

  .care-section-label {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .care-hint-item {
    min-height: 62px;
    padding: 11px 12px 12px 14px;
    gap: 6px;
  }

  .care-hint-head {
    min-height: 10px;
  }

  .care-hint-marker {
    width: 11px;
    height: 11px;
  }

  .care-hint-headline {
    font-size: 13px;
    line-height: 1.34;
  }

  .care-hint-message {
    font-size: 10px;
    line-height: 1.45;
  }

  .care-effect-row {
    font-size: 12px;
    gap: 8px;
    min-height: 32px;
  }

  .care-effects-list {
    min-height: 0;
  }

  .figma-care-categories {
    gap: 7px;
  }

  .figma-care-categories .care-category-tab {
    min-height: 60px;
    padding: 8px 9px;
  }

  .figma-care-categories .care-category-icon {
    width: 20px;
    height: 20px;
  }

  .figma-care-actions {
    max-height: min(292px, 36dvh);
    padding: 7px 10px 7px 7px;
  }

  .figma-care-actions .care-action-card {
    min-height: 64px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
    padding: 10px;
  }

  .care-action-icon-box {
    width: 42px;
    height: 42px;
  }

  .care-action-label {
    font-size: 13px;
  }

  .care-action-hint,
  .care-feedback {
    font-size: 11px;
  }

  .care-feedback {
    line-height: 1.2;
  }

  .care-execute-btn {
    min-height: 54px;
  }
}

.figma-menu-screen {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(393px, calc(100vw - 0.8rem));
  height: min(852px, calc(100dvh - 0.8rem));
  max-height: none;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    radial-gradient(circle at 50% 44%, rgba(129, 255, 190, 0.22), rgba(0, 0, 0, 0) 38%),
    url("/assets/backgrounds/Basic screen.jpg") center / cover no-repeat;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.figma-menu-screen .menu-quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
}

.figma-menu-screen .game-menu-header {
  margin: 0 14px;
  padding: 20px 0 10px;
  border-bottom: 0;
  background: transparent;
}

.figma-menu-screen .game-menu-content {
  padding: 0 14px 14px;
  gap: 12px;
  height: calc(100% - 64px);
  max-height: none;
  align-content: stretch;
}

.figma-menu-screen .figma-menu-entry {
  position: relative;
  min-height: 46px;
  border-radius: 8px;
  border: 0.8px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(180deg, rgba(25, 26, 26, 0.95), rgba(16, 17, 17, 0.95));
  padding: 8px 30px 8px 12px;
  gap: 1px;
}

.figma-menu-screen .figma-menu-entry::after {
  content: "\203A";
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #dfeadd;
  pointer-events: none;
}

.figma-menu-screen .figma-menu-entry span {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  color: #dfeadd;
  min-width: 0;
  overflow-wrap: anywhere;
}

.figma-menu-screen .figma-menu-entry small {
  font-size: 11px;
  line-height: 1.2;
  color: rgba(222, 235, 227, 0.7);
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.figma-menu-screen .figma-menu-entry--small {
  min-height: 42px;
}

.figma-menu-screen .figma-menu-entry--small::after {
  content: "";
}

.figma-menu-screen .figma-menu-entry--support {
  border-color: rgba(110, 228, 184, 0.36);
  background:
    radial-gradient(circle at top right, rgba(92, 246, 176, 0.18), rgba(92, 246, 176, 0) 52%),
    linear-gradient(180deg, rgba(16, 24, 23, 0.96), rgba(12, 18, 17, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

.figma-menu-screen .figma-menu-entry--support span {
  color: rgba(228, 250, 241, 0.96);
}

.figma-menu-screen .figma-menu-entry--support small {
  color: rgba(182, 225, 209, 0.88);
}

.figma-onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.figma-onboarding-card {
  width: min(393px, calc(100vw - 0.8rem));
  height: min(852px, calc(100dvh - 0.8rem));
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(66, 255, 126, 0.12), rgba(0, 0, 0, 0) 48%),
    #03070d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  padding: 20px 14px 14px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}

.figma-onboarding-card h2 {
  margin: 0;
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 30px;
  line-height: 1.1;
  color: #e8f5e9;
  font-weight: 600;
  margin-bottom: 10px;
}

.figma-onboarding-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.figma-onboarding-actions button {
  min-width: 0;
  flex-shrink: 1;
}
.figma-onboarding-actions #startRunBtn {
  grid-column: 3; /* Force Start button to third column */
  margin-left: auto; /* Align to the right within its column */
}
.figma-onboarding-actions #setupBackBtn {
  grid-column: 1; /* Force Zurück button to first column */
  margin-right: auto; /* Align to the left within its column */
}
.figma-onboarding-actions #setupPresetBtn {
  grid-column: 2; /* Force Preset button to second column */
  justify-self: center;
}

.setup-option-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.setup-option-btn.is-active {
  color: #42ff7e;
}
.setup-option-btn.is-active .figma-static-row {
  background: rgba(66, 255, 126, 0.05);
  border-bottom-color: rgba(66, 255, 126, 0.3);
}
.setup-option-btn.is-active .value_gold,
.setup-option-btn.is-active .subtitle,
.setup-option-btn.is-active .badge {
  color: #42ff7e !important;
}

.setup-option-btn.is-locked,
.setup-option-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.setup-option-btn.is-locked .figma-static-row,
.setup-option-btn:disabled .figma-static-row {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.run-summary-card {
  gap: 0.85rem;
}

#runSummaryOverlay {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: calc(0.75rem + env(safe-area-inset-top)) 1rem calc(0.75rem + env(safe-area-inset-bottom));
}

#runSummaryOverlay .run-summary-card {
  width: min(420px, 100%);
  margin: 0 auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
}

.run-summary-rating {
  border-radius: 999px;
  border: 1px solid rgba(66, 255, 126, 0.24);
  background: rgba(12, 28, 18, 0.74);
  color: #8cffb1;
  padding: 0.5rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.run-summary-list {
  display: grid;
  gap: 0.55rem;
}

.run-summary-note {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  padding: 0.68rem 0.8rem;
  color: rgba(235, 243, 255, 0.92);
  line-height: 1.4;
  font-size: 0.82rem;
}

.run-summary-row {
  padding: 0 0 0.2rem;
}

.run-summary-row--notice span {
  color: #8cffb1;
}

.run-summary-unlock {
  border-radius: 12px;
  border: 1px solid rgba(66, 255, 126, 0.18);
  background: rgba(8, 18, 13, 0.52);
  padding: 0.7rem 0.8rem;
  display: grid;
  gap: 0.2rem;
}

.run-summary-unlock--celebration {
  border-color: rgba(212, 175, 55, 0.34);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0) 48%),
    rgba(22, 19, 10, 0.68);
}

.run-summary-goal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.run-summary-goal-status {
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(239, 244, 255, 0.92);
}

.run-summary-goal-status[data-status="completed"] {
  border-color: rgba(140, 255, 177, 0.28);
  background: rgba(15, 40, 24, 0.68);
  color: #9cffb8;
}

.run-summary-goal-status[data-status="failed"] {
  border-color: rgba(255, 176, 148, 0.24);
  background: rgba(52, 22, 16, 0.68);
  color: #ffb68d;
}

.run-summary-goal-status[data-status="local"] {
  border-color: rgba(212, 175, 55, 0.2);
  background: rgba(39, 31, 14, 0.56);
  color: #f3ddb0;
}

.run-summary-goal-status[data-status="verified"] {
  border-color: rgba(131, 233, 176, 0.34);
  background:
    radial-gradient(circle at top right, rgba(108, 221, 149, 0.12), rgba(108, 221, 149, 0) 56%),
    rgba(13, 34, 23, 0.72);
  color: #aaf3c5;
}

.run-summary-goal-card {
  display: grid;
  gap: 0.45rem;
}

.leaderboard-sheet-content {
  display: grid;
  gap: 14px;
}

.leaderboard-status-card {
  display: grid;
  gap: 12px;
}

.leaderboard-status-card__row,
.leaderboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.leaderboard-section-head span,
.leaderboard-status-card__row span {
  font-size: 0.72rem;
  color: rgba(210, 219, 212, 0.62);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leaderboard-category-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.leaderboard-category-btn {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 242, 236, 0.78);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.leaderboard-category-btn.is-active {
  border-color: rgba(212, 175, 55, 0.32);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0) 50%),
    rgba(34, 29, 16, 0.78);
  color: #f3e6b8;
}

.leaderboard-category-btn:active {
  transform: scale(0.985);
}

.leaderboard-section {
  display: grid;
  gap: 10px;
}

.leaderboard-me-wrap,
.leaderboard-entry-list {
  display: grid;
  gap: 8px;
}

.leaderboard-me-card,
.leaderboard-entry-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(21, 24, 23, 0.96), rgba(14, 17, 16, 0.96));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.leaderboard-me-card {
  padding: 12px 13px;
  display: grid;
  gap: 6px;
}

.leaderboard-me-card strong {
  color: rgba(244, 247, 240, 0.96);
}

.leaderboard-me-card__score {
  font-size: 1.55rem;
  line-height: 1;
  color: #fff0bc;
  letter-spacing: -0.03em;
}

.leaderboard-entry-card {
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.leaderboard-entry-card--me {
  border-color: rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0) 44%),
    linear-gradient(180deg, rgba(29, 25, 17, 0.96), rgba(18, 16, 12, 0.96));
}

.leaderboard-entry-rank {
  min-width: 38px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1e2a7;
}

.leaderboard-entry-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.leaderboard-entry-main strong {
  color: rgba(244, 247, 240, 0.96);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-entry-main span {
  font-size: 0.74rem;
  color: rgba(208, 217, 210, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-entry-score {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.leaderboard-entry-score strong {
  font-size: 1rem;
  color: #fff1bc;
}

.leaderboard-entry-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(131, 233, 176, 0.18);
  background: rgba(18, 42, 28, 0.64);
  color: #b7f2cd;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.leaderboard-empty-note {
  margin: 0;
  padding: 4px 0;
}

.leaderboard-reward-panel {
  border-color: rgba(212, 175, 55, 0.18);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0) 42%),
    rgba(17, 20, 19, 0.9);
}

.leaderboard-reward-summary,
.leaderboard-reward-list {
  display: grid;
  gap: 8px;
}

.reward-entry-card {
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(24, 27, 25, 0.96), rgba(15, 18, 17, 0.96));
  padding: 10px 11px;
  display: grid;
  gap: 8px;
}

.reward-entry-card--claimed {
  border-color: rgba(131, 233, 176, 0.24);
  background:
    radial-gradient(circle at top right, rgba(131, 233, 176, 0.11), rgba(131, 233, 176, 0) 38%),
    linear-gradient(180deg, rgba(18, 34, 26, 0.96), rgba(12, 23, 18, 0.96));
}

.reward-entry-card__head,
.reward-entry-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reward-entry-card__head strong {
  color: rgba(246, 248, 242, 0.96);
  font-size: 0.9rem;
}

.reward-entry-card__head span {
  font-size: 0.7rem;
  color: rgba(212, 223, 214, 0.64);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.reward-entry-card__value {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(58, 47, 20, 0.58);
  color: #f3dfab;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reward-claim-btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

.run-summary-harvest-rewards {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.reward-entry-hint-anchor,
.home-menu-btn {
  position: relative;
}

.menu-entry-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.reward-hint-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 240, 197, 0.96), rgba(212, 175, 55, 0.92) 58%, rgba(188, 148, 51, 0.94));
  box-shadow:
    0 0 0 2px rgba(18, 18, 16, 0.76),
    0 0 10px rgba(212, 175, 55, 0.34);
  pointer-events: none;
}

.reward-hint-dot--menu {
  top: 5px;
  right: 5px;
}

.reward-hint-dot--entry {
  position: relative;
  top: auto;
  right: auto;
  width: 7px;
  height: 7px;
  margin-left: 1px;
}

.menu-entry--reward-priority {
  border-color: rgba(212, 175, 55, 0.24);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0) 48%),
    rgba(255, 255, 255, 0.03);
}

.harvest-mini-card {
  position: absolute;
  top: var(--home-left-harvest-top, calc(var(--home-safe-top, 0px) + 102px));
  left: 12px;
  width: var(--home-top-mini-card-width, 112px);
  min-width: var(--home-top-mini-card-width, 112px);
  max-width: var(--home-top-mini-card-width, 112px);
  height: var(--home-top-mini-card-height, 60px);
  min-height: var(--home-top-mini-card-height, 60px);
  max-height: var(--home-top-mini-card-height, 60px);
  border: 1px solid rgba(208, 188, 128, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(10, 15, 14, 0.8), rgba(7, 10, 10, 0.82)),
    radial-gradient(circle at top right, rgba(220, 196, 130, 0.12), rgba(220, 196, 130, 0) 42%);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 244, 219, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f6ecd0;
  padding: 6px 7px 7px;
  display: grid;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  z-index: 7;
  box-sizing: border-box;
  align-content: start;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, box-shadow 220ms ease, background 220ms ease;
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  backdrop-filter: blur(8px) saturate(1.05);
}

.harvest-mini-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.08), rgba(255, 244, 220, 0) 32%),
    radial-gradient(circle at 85% 18%, rgba(255, 226, 157, 0.12), rgba(255, 226, 157, 0) 36%);
  opacity: 0.78;
  pointer-events: none;
}

.harvest-mini-card::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 42%, rgba(215, 186, 116, 0.18), rgba(215, 186, 116, 0) 70%);
  opacity: 0.42;
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
  animation: premium-hud-glow 6.8s ease-in-out infinite;
}

.harvest-mini-card:hover,
.harvest-mini-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(226, 210, 160, 0.34);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.38),
    0 1px 0 rgba(255, 244, 219, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.harvest-mini-card:active {
  transform: scale(0.985);
}

.harvest-mini-card__line,
.harvest-analysis-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
}

.harvest-mini-card__label,
.harvest-analysis-hero__eyebrow {
  font-size: 0.42rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 214, 206, 0.56);
  white-space: nowrap;
}

.harvest-mini-card__trend,
.harvest-analysis-hero__meta strong {
  font-size: 0.62rem;
  line-height: 1;
  color: #f9e7a8;
  flex: 0 0 auto;
}

.harvest-mini-card__line--primary strong,
.harvest-analysis-hero__score {
  font-size: 0.96rem;
  line-height: 1;
  color: #fff4cf;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.harvest-mini-card__line--secondary strong {
  font-size: 0.62rem;
  line-height: 1;
  color: #d7f9cf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.harvest-mini-card__trend[data-trend="rising"] {
  color: #8ef0b3;
}

.harvest-mini-card__trend[data-trend="falling"] {
  color: #ffb49a;
}

.harvest-mini-card__trend[data-trend="stable"] {
  color: rgba(240, 234, 205, 0.82);
}

.harvest-analysis-hero {
  align-items: flex-start;
}

.harvest-analysis-hero--premium {
  border-color: rgba(212, 175, 55, 0.2);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(20, 24, 22, 0.98), rgba(14, 16, 16, 0.98));
  gap: 10px;
}

.harvest-analysis-hero__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.harvest-analysis-hero__score {
  font-size: 1.65rem;
}

.harvest-analysis-hero__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
  color: rgba(248, 249, 239, 0.96);
}

.harvest-analysis-hero__summary {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(224, 232, 223, 0.82);
}

.harvest-analysis-hero__reason {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(212, 222, 214, 0.72);
}

.harvest-analysis-hero__meta strong {
  font-size: 0.8rem;
}

.harvest-analysis-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  text-align: right;
  color: rgba(244, 236, 210, 0.72);
  font-size: 0.82rem;
}

.harvest-analysis-hero__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(240, 246, 236, 0.9);
  font-size: 0.7rem;
  line-height: 1;
  white-space: nowrap;
}

.harvest-analysis-hero__pill--soft {
  color: rgba(222, 232, 224, 0.78);
}

.harvest-analysis-hero__trend {
  color: #fff0b0;
}

.harvest-section-headline {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.harvest-section-intro {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(214, 223, 216, 0.72);
}

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

.harvest-driver-column {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.harvest-driver-column__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.harvest-driver-column__head h4 {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(245, 248, 242, 0.96);
}

.harvest-driver-column__head span {
  font-size: 0.68rem;
  color: rgba(204, 214, 207, 0.58);
  white-space: nowrap;
}

.harvest-driver-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.022);
  padding: 10px 11px;
  display: grid;
  gap: 6px;
}

.harvest-driver-card--positive {
  border-color: rgba(104, 218, 143, 0.18);
  background:
    linear-gradient(180deg, rgba(74, 222, 128, 0.08), rgba(18, 45, 29, 0.12)),
    rgba(255, 255, 255, 0.018);
}

.harvest-driver-card--negative {
  border-color: rgba(240, 188, 104, 0.16);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(54, 39, 13, 0.14)),
    rgba(255, 255, 255, 0.018);
}

.harvest-driver-card--loss {
  border-color: rgba(228, 143, 112, 0.14);
  background:
    linear-gradient(180deg, rgba(212, 129, 99, 0.07), rgba(48, 25, 19, 0.12)),
    rgba(255, 255, 255, 0.018);
}

.harvest-spotlight-card {
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0) 42%),
    linear-gradient(180deg, rgba(23, 27, 25, 0.98), rgba(16, 18, 18, 0.98));
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.harvest-spotlight-card--quiet {
  border-color: rgba(255, 255, 255, 0.08);
}

.harvest-spotlight-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.harvest-spotlight-card__eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(205, 214, 206, 0.56);
}

.harvest-spotlight-card__head strong {
  font-size: 0.96rem;
  line-height: 1.2;
  color: rgba(247, 247, 237, 0.98);
}

.harvest-spotlight-card__copy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(224, 232, 223, 0.82);
}

.harvest-secondary-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.harvest-secondary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.harvest-secondary-item strong {
  min-width: 0;
  font-size: 0.8rem;
  color: rgba(239, 243, 236, 0.92);
}

.harvest-secondary-item span {
  font-size: 0.7rem;
  color: rgba(211, 220, 214, 0.68);
  white-space: nowrap;
}

.harvest-section-empty {
  margin: 0;
  padding: 10px 0 2px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(211, 220, 214, 0.68);
}

.harvest-detail-stack {
  display: grid;
  gap: 12px;
}

.harvest-chart-shell {
  margin-top: 2px;
}

.harvest-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.run-summary-harvest-card {
  border-color: rgba(212, 175, 55, 0.18);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0) 42%),
    linear-gradient(180deg, rgba(16, 19, 16, 0.98), rgba(11, 13, 12, 0.98));
}

.run-summary-harvest-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.run-summary-harvest-score,
.run-summary-harvest-quality {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.run-summary-harvest-hero--finale .run-summary-harvest-score--main {
  border-color: rgba(212, 175, 55, 0.24);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0) 48%),
    rgba(255, 255, 255, 0.03);
}

.run-summary-harvest-score strong,
.run-summary-harvest-quality strong {
  font-size: 1.4rem;
  color: #fff4cf;
}

.run-summary-harvest-score--main strong {
  font-size: 2.05rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.run-summary-harvest-finale {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.run-summary-harvest-verification {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.run-summary-harvest-status-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.022);
  padding: 0.7rem 0.82rem;
  display: grid;
  gap: 0.22rem;
}

.run-summary-harvest-status-card strong {
  font-size: 0.85rem;
  line-height: 1.3;
  color: rgba(245, 248, 241, 0.96);
}

.run-summary-harvest-status-card .sheet-note {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.45;
}

.run-summary-harvest-status-card--verified {
  border-color: rgba(108, 221, 149, 0.28);
  background:
    radial-gradient(circle at top right, rgba(108, 221, 149, 0.1), rgba(108, 221, 149, 0) 56%),
    rgba(13, 34, 23, 0.58);
}

.run-summary-harvest-status-card--provisional,
.run-summary-harvest-status-card--submitted {
  border-color: rgba(212, 175, 55, 0.22);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0) 54%),
    rgba(38, 31, 16, 0.56);
}

.run-summary-harvest-status-card--review {
  border-color: rgba(135, 188, 255, 0.22);
  background: rgba(18, 28, 46, 0.52);
}

.run-summary-harvest-status-card--rejected {
  border-color: rgba(255, 176, 148, 0.2);
  background: rgba(44, 24, 18, 0.52);
}

.run-summary-harvest-status-card--soft {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.018);
}

.run-summary-harvest-finale__title {
  font-size: 1.02rem;
  line-height: 1.2;
  color: rgba(248, 250, 242, 0.98);
}

.run-summary-harvest-finale__copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(220, 228, 220, 0.8);
}

.run-summary-harvest-impact,
.run-summary-harvest-metrics,
.run-summary-harvest-moments {
  margin-top: 6px;
  display: grid;
  gap: 8px;
}

.run-summary-harvest-impact h4,
.run-summary-harvest-metrics h4,
.run-summary-harvest-moments h4 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(207, 217, 210, 0.64);
}

.run-summary-impact-note {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.022);
  padding: 0.6rem 0.72rem;
  display: grid;
  gap: 0.25rem;
}

.run-summary-impact-note strong {
  font-size: 0.84rem;
  line-height: 1.3;
  color: rgba(244, 247, 239, 0.94);
}

.run-summary-impact-note .sheet-note {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

.run-summary-impact-note--positive {
  border-color: rgba(108, 221, 149, 0.24);
  background:
    linear-gradient(180deg, rgba(74, 222, 128, 0.08), rgba(18, 45, 29, 0.12)),
    rgba(255, 255, 255, 0.018);
}

.run-summary-impact-note--negative {
  border-color: rgba(238, 168, 108, 0.22);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(54, 39, 13, 0.13)),
    rgba(255, 255, 255, 0.018);
}

.run-summary-harvest-metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.run-summary-harvest-metric {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.55rem 0.7rem;
  display: grid;
  gap: 0.15rem;
}

.run-summary-harvest-metric span {
  font-size: 0.7rem;
  color: rgba(204, 214, 208, 0.68);
}

.run-summary-harvest-metric strong {
  font-size: 1.08rem;
  line-height: 1.1;
  color: rgba(244, 248, 238, 0.96);
}

.run-summary-harvest-metric--primary {
  border-color: rgba(212, 175, 55, 0.24);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.11), rgba(212, 175, 55, 0) 50%),
    rgba(255, 255, 255, 0.026);
}

.run-summary-harvest-metric--secondary {
  border-color: rgba(136, 199, 165, 0.16);
}

.run-summary-harvest-metric--muted {
  opacity: 0.72;
}

.run-summary-harvest-bests {
  margin-top: 4px;
}

.run-summary-harvest-motivation {
  margin: 0.3rem 0 0;
  padding: 0.65rem 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(160, 206, 180, 0.22);
  background: rgba(12, 28, 20, 0.45);
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(214, 231, 220, 0.9);
}

.setup-option-effect {
  margin: 0.22rem 0 0;
  font-size: 10px;
  line-height: 1.35;
  color: rgba(222, 235, 227, 0.68);
}

.setup-option-btn[data-tone="safe"] {
  border-color: rgba(132, 224, 159, 0.22);
}

.setup-option-btn[data-tone="fast"] {
  border-color: rgba(246, 190, 96, 0.22);
}

.setup-option-btn[data-tone="risky"] {
  border-color: rgba(255, 154, 128, 0.24);
}

.setup-strategy-card {
  display: grid;
  gap: 0.42rem;
}

.setup-strategy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.setup-strategy-tag {
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.74rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(240, 244, 255, 0.92);
}

.setup-strategy-tag[data-tone="safe"] {
  border-color: rgba(132, 224, 159, 0.26);
  color: #a5f1bb;
}

.setup-strategy-tag[data-tone="fast"] {
  border-color: rgba(246, 190, 96, 0.26);
  color: #ffd080;
}

.setup-strategy-tag[data-tone="risky"] {
  border-color: rgba(255, 154, 128, 0.28);
  color: #ffb39a;
}

.setup-strategy-title {
  font-size: 0.98rem;
  color: rgba(245, 248, 255, 0.96);
}

.setup-strategy-tradeoff,
.setup-strategy-loadout {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(228, 236, 246, 0.8);
}

.setup-hidden-selects {
  display: none;
}

.settings-checkboxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 11px;
  color: rgba(222, 235, 227, 0.8);
}

.settings-checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
}

.figma-settings-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.figma-sheet-settings .figma-settings-card--gameplay {
  min-height: 220px;
}

.figma-sheet-settings .figma-settings-card--audio {
  min-height: 186px;
}

.figma-sheet-settings .figma-settings-card--account {
  min-height: 98px;
}

.settings-push-block {
  margin-top: 8px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.62), rgba(10, 16, 25, 0.56));
  display: grid;
  gap: 8px;
}

.settings-push-status-list {
  display: grid;
  gap: 0;
}

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

.settings-push-row .settings-push-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: normal;
  word-break: keep-all;
  color: rgba(230, 238, 246, 0.9);
}

.settings-push-row .settings-push-value {
  flex: 0 0 auto;
  min-width: 118px;
  max-width: none;
  justify-self: auto;
  text-align: right;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  letter-spacing: 0.01em;
}

.settings-push-feedback {
  margin-top: 2px;
  line-height: 1.42;
  color: rgba(222, 235, 227, 0.82);
}

.settings-push-actions {
  margin-top: 8px;
  grid-template-columns: 1fr;
}

.settings-push-actions--secondary {
  margin-top: 6px;
}

.settings-push-actions .action-btn,
.settings-push-actions .ghost-btn {
  width: 100%;
}

.settings-toggle-btn,
.settings-link-btn {
  min-width: 0;
  min-height: 28px;
  border-radius: 8px;
}

.settings-link-row {
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.settings-link-row:hover,
.settings-link-row:focus-visible {
  background: rgba(212, 175, 55, 0.12);
  outline: none;
}

@media (max-width: 360px) {
  .settings-push-row {
    align-items: flex-start;
  }

  .settings-push-row .settings-push-value {
    min-width: 96px;
  }
}

.auth-modal-card {
  width: min(92vw, 420px);
}

.auth-modal-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.auth-tab {
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(8, 18, 28, 0.5);
  color: rgba(232, 240, 247, 0.85);
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.is-active {
  border-color: rgba(212, 175, 55, 0.92);
  color: #f9d26f;
  background: rgba(35, 25, 7, 0.46);
}

.auth-modal-form-grid {
  display: grid;
  gap: 9px;
}

.auth-field {
  display: grid;
  gap: 4px;
  text-align: left;
  font-size: 0.8rem;
  color: rgba(232, 240, 247, 0.84);
}

.auth-field input {
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(8, 18, 28, 0.68);
  color: #eef3f8;
  padding: 6px 9px;
}

.auth-field input:focus-visible {
  outline: 1px solid rgba(212, 175, 55, 0.75);
  outline-offset: 1px;
}

.auth-modal-error {
  color: #ff8a80;
  margin-top: 8px;
}

.auth-modal-status {
  display: grid;
  gap: 6px;
}

#pushToggleFeedback {
  min-height: 14px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

/* Home screen visibility guard (wins against legacy neutralization specificity) */
#app-hud > .hud-main.hud-screen {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#app-hud > .hud-main.hud-screen.is-active {
  display: grid !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* MARKER_PANELIZED_20260319 */

/* HARD OVERRIDE: only active HUD screen visible */
#app-hud > .hud-screen { display: none !important; pointer-events: none !important; }
#app-hud > .hud-screen.is-active { display: grid !important; pointer-events: auto !important; }

/* Figma Home Screen Implementation */
.home-screen.is-active ~ .screen-nav-panel {
  display: none !important;
}

.app-hud {
  background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)), url("/assets/backgrounds/Basic screen.jpg");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.home-screen {
  position: relative;
  display: block !important;
  height: 100%;
  min-height: 0;
  font-family: "Exo 2", "Trebuchet MS", "Gill Sans", "Verdana", sans-serif;
}

.home-stage {
  position: absolute;
  inset: 0;
  padding: 62px 0 0;
}

.home-player-panel {
  position: absolute;
  top: 0;
  left: 37px;
  width: 317px;
  min-height: 74px;
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(11, 25, 18, 0.96), rgba(7, 17, 12, 0.98)),
    radial-gradient(circle at 18% 12%, rgba(93, 236, 153, 0.08), rgba(93, 236, 153, 0) 42%);
  box-shadow:
    inset 0 1px 0 rgba(240, 255, 244, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 6px;
  padding: 8px 10px 8px;
  overflow: visible;
}

.home-player-header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-avatar-shell {
  width: 46px;
  height: 46px;
  background: url("/assets/ui/panels/panel_anatar.png") center/cover no-repeat;
  position: relative;
}

.home-level-pill {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: #1a0e00;
  border: 1px solid rgba(255, 220, 100, 0.5);
  border-radius: 6px;
  background: linear-gradient(154deg, #b8860b 0%, #d4af37 45%, #f0c040 100%);
  padding: 3px 5px;
}

.home-player-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.home-player-name {
  display: block;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-weight: 600;
  color: #e8f5e9;
  white-space: nowrap;
  margin-bottom: 0;
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
}

.home-player-role {
  display: block;
  color: rgba(134, 197, 144, 0.75);
  font-size: 9px;
  line-height: 1.15;
  letter-spacing: 0.06em;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 0;
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
}

.home-player-xp {
  order: 4;
  margin: 0;
  color: rgba(178, 209, 184, 0.64);
  font-size: 9px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-weight: 400;
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
}

.home-player-xp-track {
  order: 3;
  height: 3px;
  background: rgba(18, 34, 24, 0.92);
  border: 1px solid rgba(74, 222, 128, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.home-player-xp-fill {
  display: block;
  width: calc(var(--xp, 84) * 1%);
  height: 100%;
  background: linear-gradient(90deg, #15803d 0%, #22c55e 70%, #4ade80 100%);
}

.home-player-tools {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  justify-self: end;
}

.home-currency-stack {
  position: relative;
  display: grid;
  gap: 3px;
  justify-items: end;
  padding: 0;
}

.home-currency-stack::before {
  display: none;
}

.home-currency-row {
  gap: 4px;
  font-size: 9px;
  line-height: 1;
}

.home-currency-row span {
  width: 10px;
  height: 10px;
  font-size: 8px;
}

.home-currency-row--star {
  padding: 2px 5px;
  gap: 4px;
  border-radius: 999px;
}

.home-currency-row strong {
  font-size: 9px;
}

.home-meta-strip,
.home-meta-detail {
  grid-column: 1 / -1;
}

.home-meta-strip {
  min-height: 28px;
  border: 0;
  border-top: 1px solid rgba(131, 207, 161, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 5px 0 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 6px;
  color: #edf7ef;
  cursor: pointer;
  transition: opacity 140ms ease;
}

.home-meta-strip:hover,
.home-meta-strip:focus-visible,
.home-meta-strip.is-expanded {
  opacity: 0.98;
}

.home-meta-strip:focus-visible {
  outline: none;
}

.home-meta-icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(137, 226, 173, 0.28);
  background: radial-gradient(circle at 35% 30%, rgba(164, 255, 205, 0.9), rgba(85, 204, 138, 0.22) 55%, rgba(85, 204, 138, 0.08) 100%);
  box-shadow: 0 0 14px rgba(82, 201, 119, 0.16);
}

.home-meta-icon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(243, 255, 246, 0.96), rgba(188, 255, 215, 0.72));
}

.home-meta-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-meta-title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  color: #f1f8f0;
}

.home-meta-subline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: rgba(213, 228, 217, 0.68);
  font-size: 9px;
  line-height: 1;
}

.home-meta-progress {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-meta-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(222, 242, 228, 0.82);
}

.home-meta-status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(117, 231, 149, 0.88);
  box-shadow: 0 0 8px rgba(117, 231, 149, 0.35);
}

.home-meta-status[data-status="completed"]::before {
  background: rgba(170, 241, 103, 0.9);
}

.home-meta-status[data-status="failed"]::before {
  background: rgba(255, 138, 117, 0.9);
}

.home-meta-build-chip,
.home-meta-build-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(151, 228, 180, 0.18);
  background: rgba(16, 31, 22, 0.72);
  color: rgba(229, 242, 233, 0.92);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-meta-build-chip[data-tone="safe"],
.home-meta-build-pill[data-tone="safe"] {
  border-color: rgba(120, 234, 158, 0.24);
  color: #bcf7ca;
}

.home-meta-build-chip[data-tone="fast"],
.home-meta-build-pill[data-tone="fast"] {
  border-color: rgba(125, 235, 226, 0.24);
  color: #c2f4ef;
}

.home-meta-build-chip[data-tone="risky"],
.home-meta-build-pill[data-tone="risky"] {
  border-color: rgba(255, 191, 126, 0.24);
  color: #ffd39c;
}

.home-meta-caret {
  width: 14px;
  height: 14px;
  position: relative;
  opacity: 0.62;
}

.home-meta-caret::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-right: 1px solid rgba(225, 242, 230, 0.82);
  border-bottom: 1px solid rgba(225, 242, 230, 0.82);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.home-meta-strip.is-expanded .home-meta-caret::before {
  transform: rotate(225deg);
}

.home-meta-detail {
  display: grid;
  gap: 6px;
  margin-top: 0;
  padding: 3px 0 0;
}

.home-meta-detail-block {
  border: 1px solid rgba(132, 212, 164, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(11, 21, 16, 0.88), rgba(8, 15, 12, 0.96)),
    radial-gradient(circle at 12% 18%, rgba(100, 237, 168, 0.07), rgba(100, 237, 168, 0) 42%);
  padding: 8px 9px 9px;
  box-shadow: inset 0 1px 0 rgba(240, 255, 245, 0.03);
}

.home-meta-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.home-meta-detail-kicker {
  color: rgba(203, 223, 209, 0.62);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-meta-detail-status {
  font-size: 9px;
  color: rgba(234, 245, 237, 0.9);
}

.home-meta-detail-status[data-status="completed"] {
  color: #c7f28a;
}

.home-meta-detail-status[data-status="failed"] {
  color: #ffb29f;
}

.home-meta-detail-title {
  display: block;
  color: #f3f8ed;
  font-size: 11px;
  line-height: 1.22;
  margin-bottom: 4px;
}

.home-meta-detail-copy {
  margin: 0;
  color: rgba(214, 228, 218, 0.78);
  font-size: 9px;
  line-height: 1.38;
}

.home-meta-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.home-meta-detail-stat {
  display: grid;
  gap: 3px;
  padding: 6px 7px;
  border-radius: 9px;
  background: rgba(18, 29, 23, 0.9);
  border: 1px solid rgba(131, 211, 163, 0.1);
}

.home-meta-detail-stat span,
.home-meta-detail-footnote {
  color: rgba(192, 209, 196, 0.62);
  font-size: 8px;
  line-height: 1.35;
}

.home-meta-detail-stat strong {
  color: #f0f6ec;
  font-size: 10px;
}

.home-meta-detail-footnote {
  margin: 6px 0 0;
}

.home-currency-stack::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 1px;
  height: calc(100% - 4px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(212, 175, 55, 0.25) 30%, rgba(212, 175, 55, 0.25) 70%, rgba(0, 0, 0, 0) 100%);
}

.home-currency-row {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.home-currency-row span {
  display: inline-flex;
  width: 11px;
  height: 11px;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
}

.home-currency-row--gold {
  color: #f0c040;
}

.home-currency-row--gold span {
  border: 1px solid rgba(255, 220, 80, 0.5);
  border-radius: 5px;
  box-shadow: 0 0 4px rgba(212, 175, 55, 0.5);
  background: radial-gradient(circle at 35% 30%, #ffe87c 0%, #eacc5a 25%, #d4af37 50%, #b79224 75%, #9a7510 100%);
}

.home-currency-row--cyan {
  color: #67e8f9;
}

.home-currency-row--cyan span {
  border: 1px solid rgba(103, 232, 249, 0.45);
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(8, 145, 178, 0.5);
  background: radial-gradient(circle at 35% 30%, #a5f3fc 0%, #7edbea 14%, #57c2d7 28%, #2faac5 42%, #1c9dbb 49%, #0891b2 55%, #0a6e90 78%, #0c4a6e 100%);
}

.home-currency-row--star {
  color: #f0c040;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(212, 175, 55, 0.07);
  border-radius: 6px;
  padding: 2px 3px 2px 6px;
  gap: 4px;
}

.home-currency-row strong {
  font-size: 10px;
  letter-spacing: 0.02em;
}

.home-menu-btn {
  position: absolute;
  top: 89px;
  right: 12px;
  width: 41px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.home-menu-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.98;
}

.home-plant-stage {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 142px;
  height: 348px;
  pointer-events: none;
  overflow: hidden;
}

.home-plant-canvas {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 286px;
  height: 286px;
  transform: translateX(-50%);
  border: 0;
  outline: 0;
  box-shadow: none;
}

.home-progress-panel {
  position: absolute;
  left: 14px;
  top: 438px;
  width: 365px;
  min-height: 63px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.36);
  background: linear-gradient(174deg, rgba(28, 28, 28, 0.99) 8%, rgba(14, 14, 14, 0.99) 92%);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.07);
  padding: 6px 12px 6px;
}

.home-goal-panel {
  position: absolute;
  left: 14px;
  top: 512px;
  width: 365px;
  min-height: 72px;
  border-radius: 10px;
  border: 1px solid rgba(166, 241, 187, 0.18);
  background: linear-gradient(174deg, rgba(18, 28, 20, 0.98) 8%, rgba(11, 19, 14, 0.96) 92%);
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.08);
  padding: 10px 12px;
  display: grid;
  gap: 0.38rem;
}

.home-goal-panel[data-status="completed"] {
  border-color: rgba(140, 255, 177, 0.28);
  box-shadow: 0 0 20px rgba(92, 255, 132, 0.12);
}

.home-goal-panel[data-status="failed"] {
  border-color: rgba(255, 176, 148, 0.22);
}

.home-goal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.home-goal-kicker {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(221, 235, 224, 0.66);
}

.home-goal-status {
  font-size: 11px;
  color: #9cffb8;
}

.home-goal-title {
  font-size: 14px;
  line-height: 1.1;
  color: #f3f8ed;
}

.home-goal-description {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(223, 235, 227, 0.74);
}

.home-goal-progress {
  color: rgba(240, 247, 233, 0.92);
  font-size: 11px;
}

.home-goal-build {
  color: rgba(221, 232, 216, 0.72);
  font-size: 10px;
  line-height: 1.35;
}

.home-progress-top,
.home-progress-bottom {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 9px;
}

.home-progress-title {
  font-size: 13.5px;
  line-height: 1;
}

.home-progress-day {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
}

.home-progress-grow strong {
  color: #4ade80;
  font-size: 14px;
  margin-right: 3px;
  line-height: 0.9;
}

.home-progress-grow {
  display: flex;
  align-items: center;
}

.home-progress-grow span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.home-progress-stress-chip {
  font-size: 8px;
  color: #facc15;
  background: rgba(250, 204, 21, 0.09);
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 3px;
  padding: 1px 4px;
}
.home-progress-status-ok {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
}
.home-progress-status-warn {
  color: #facc15;
  background: rgba(250, 204, 21, 0.1);
  border-color: rgba(250, 204, 21, 0.3);
}
.home-progress-status-stress {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.3);
}
.home-progress-status-critical {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
}

.home-progress-multi {
  justify-self: end;
  color: rgba(255, 215, 0, 0.72);
  font-size: 11px;
}

.home-progress-pause {
  justify-self: end;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.08);
}

.home-progress .phase-progress {
  margin: 4px 0;
  height: 3px;
  border-radius: 3px;
}

.home-progress-bottom {
  grid-template-columns: auto auto auto auto;
}

.home-progress-time {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.home-progress-event-label {
  color: rgba(255, 215, 0, 0.9);
  font-size: 11px;
}

.home-progress-event {
  color: #f0a63a;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.home-status-panel {
  position: absolute;
  left: 14px;
  top: 618px;
  width: 365px;
  min-height: 126px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(27, 30, 30, 0.97), rgba(20, 23, 23, 0.97));
  border: 1px solid rgba(74, 222, 128, 0.22);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 10px;
}

.home-guidance-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.home-guidance-list {
  display: grid;
  gap: 6px;
}

.home-guidance-item {
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.home-guidance-item__title {
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4af37;
}

.home-guidance-item__body {
  margin: 0;
  font-size: 10px;
  line-height: 1.32;
  color: rgba(224, 224, 224, 0.86);
}

.home-guidance-item--stabilize .home-guidance-item__title,
.home-guidance-item--optimize .home-guidance-item__title {
  color: #d4af37;
}

.home-guidance-item--caution .home-guidance-item__title {
  color: #ffb861;
}

.home-guidance-item--fresh {
  animation: guidance-fade-in 900ms ease-out;
}

.home-status-divider {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(66, 255, 126, 0.3) 30%, rgba(212, 175, 55, 0.25) 70%, rgba(0, 0, 0, 0));
}

.home-status-title {
  margin: 0 0 8px;
  color: #d4af37;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-status-row,
.home-root-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  transform: translateZ(0);
}

.home-status-row img,
.home-root-row img {
  width: 11px;
  height: 11px;
}

.home-status-row span,
.home-root-row span {
  font-size: 10px;
  color: #e0e0e0;
}

.home-status-row strong,
.home-root-row strong {
  font-size: 11px;
  color: #d4af37;
}

.home-root-row strong {
  color: #42ff7e;
}

.home-status-track {
  grid-column: 2 / 4;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.home-status-fill {
  display: block;
  width: calc(var(--value, 0) * 1%);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.6), #d4af37);
  transition: width 380ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease, opacity 260ms ease, box-shadow 260ms ease, transform 260ms ease;
  transform-origin: left center;
}

#waterRing .home-status-fill,
#growthRing .home-status-fill {
  background: linear-gradient(90deg, rgba(66, 255, 126, 0.6), #42ff7e);
}

#riskRing .home-status-fill {
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.6), #ff6b35);
}

#stressRing,
#riskRing,
#growthRing,
#waterRing,
#nutritionRing {
  transition: transform 220ms ease, box-shadow 260ms ease, border-color 260ms ease, background-color 260ms ease;
  will-change: transform;
}

#stressRing[data-stress-visual="elevated"] .home-status-fill {
  opacity: 0.9;
  filter: saturate(1.05) brightness(1.04);
}

#stressRing[data-stress-visual="high"],
#stressRing[data-stress-visual="critical"] {
  box-shadow: 0 0 0 1px rgba(237, 116, 126, 0.12), 0 10px 22px rgba(48, 18, 20, 0.18);
}

#stressRing[data-stress-visual="high"] .home-status-fill,
#stressRing[data-stress-visual="critical"] .home-status-fill {
  animation: status-restless-pulse 2.4s ease-in-out infinite;
}

#stressRing[data-stress-visual="critical"] .home-status-fill {
  filter: saturate(1.16) brightness(1.08);
}

#riskRing[data-risk-visual="elevated"] .home-status-fill {
  filter: saturate(1.06) brightness(1.05);
}

#riskRing[data-risk-visual="high"],
#riskRing[data-risk-visual="critical"] {
  box-shadow: 0 0 0 1px rgba(255, 140, 90, 0.14), 0 0 18px rgba(255, 118, 70, 0.12);
}

#riskRing[data-risk-visual="high"] .home-status-fill,
#riskRing[data-risk-visual="critical"] .home-status-fill {
  box-shadow: 0 0 10px rgba(255, 126, 76, 0.22);
  filter: saturate(1.1) brightness(1.08);
}

#growthRing[data-growth-visual="slow"] .home-status-fill {
  opacity: 0.86;
}

#growthRing[data-growth-visual="steady"] .home-status-fill {
  animation: growth-flow 5.8s ease-in-out infinite;
}

#growthRing[data-growth-visual="boosted"] .home-status-fill {
  animation: growth-flow 4.2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(82, 255, 154, 0.2);
  filter: saturate(1.08) brightness(1.05);
}

#growthRing[data-growth-visual="stalled"] .home-status-fill {
  opacity: 0.72;
  filter: saturate(0.88);
}

.home-action-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 20px;
  height: 112px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  align-items: stretch;
}

.home-action-btn {
  position: relative;
  height: 112px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: block;
  overflow: visible;
}

.home-action-btn::before {
  content: none;
}

.home-action-icon {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  object-fit: contain;
  z-index: 1;
}

.home-action-title {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
  text-shadow: none;
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
}

.home-boost-tag {
  position: absolute;
  top: -1px;
  right: 8px;
  font-size: 22px;
  font-weight: 600;
  color: #ffd700;
  z-index: 2;
}

.home-action-panel .boost-sub {
  display: none;
}

@media (max-width: 393px) {
  .home-action-title {
    font-size: 17px;
  }

  .home-progress-event {
    font-size: 38px;
  }
}

/* Home premium reflow: background atmosphere + separate plant hero + non-overlapping lower section */
.app-hud {
  --home-general-bg: url("/assets/ui/backgrounds/Basic screen.jpg");
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.2)),
    var(--home-general-bg);
  background-size: cover;
  background-position: center;
}

.home-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.home-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 10, 0.58) 0%, rgba(3, 7, 10, 0.28) 36%, rgba(3, 7, 10, 0.7) 100%);
  pointer-events: none;
  z-index: 0;
}

.home-stage {
  position: relative;
  inset: auto;
  z-index: 1;
  height: 100%;
  padding: 14px 12px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.home-stage::-webkit-scrollbar {
  display: none;
}

.home-player-panel {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  min-height: 82px;
  padding-right: 10px;
  overflow: visible;
}

.home-menu-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(120, 214, 154, 0.16);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(18, 32, 24, 0.88), rgba(10, 20, 15, 0.94)),
    radial-gradient(circle at 30% 28%, rgba(118, 255, 176, 0.08), rgba(118, 255, 176, 0) 58%);
  box-shadow:
    inset 0 1px 0 rgba(240, 255, 245, 0.04),
    0 8px 14px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.home-hero-section {
  position: relative;
  min-height: 346px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(74, 222, 128, 0.14);
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(113, 255, 171, 0.05);
}

.home-hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 14, 11, 0.18), rgba(4, 10, 8, 0.52)),
    var(--home-general-bg) center / cover no-repeat;
  filter: saturate(0.95) brightness(0.68);
  z-index: 1;
}

.home-hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 62%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0.22) 72%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(180deg, rgba(4, 10, 8, 0.22) 0%, rgba(4, 10, 8, 0) 32%, rgba(4, 10, 8, 0.38) 100%);
  pointer-events: none;
  z-index: 2;
}

.home-hero-beam {
  position: absolute;
  left: 50%;
  top: -18%;
  width: 48%;
  height: 82%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 8%, rgba(236, 255, 193, 0.42) 0%, rgba(129, 255, 190, 0.16) 34%, rgba(129, 255, 190, 0) 78%);
  filter: blur(4px);
  pointer-events: none;
  z-index: 3;
}

.home-hero-ground {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 74%;
  height: 25%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 58%, rgba(84, 255, 156, 0.44) 0%, rgba(84, 255, 156, 0.14) 35%, rgba(84, 255, 156, 0) 82%),
    radial-gradient(ellipse at 50% 72%, rgba(11, 20, 16, 0.76) 18%, rgba(7, 13, 11, 0.26) 68%, rgba(7, 13, 11, 0) 100%);
  pointer-events: none;
  z-index: 4;
}

.home-plant-glow {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 68%;
  height: 42%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 72%, rgba(84, 255, 156, 0.5) 0%, rgba(84, 255, 156, 0.18) 34%, rgba(84, 255, 156, 0) 80%);
  pointer-events: none;
  z-index: 5;
}

.home-plant-stage {
  position: absolute;
  inset: 8px 6px 6px;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
}

.home-plant-canvas {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(92%, 338px);
  height: min(92%, 338px);
  transform: translateX(-50%);
  z-index: 2;
  filter:
    drop-shadow(0 20px 20px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 20px rgba(108, 255, 174, 0.26));
}

.home-progress-panel {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  min-height: 76px;
  margin-top: 8px;
}

.home-progress-bottom {
  grid-template-columns: auto 1fr auto auto;
}

.home-progress-event {
  font-size: 34px;
  line-height: 0.95;
}

.home-status-panel {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  min-height: 142px;
  margin-top: 4px;
}

.home-action-panel {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  min-height: 118px;
  height: auto;
  margin-top: 2px;
  padding: 4px 2px 0;
  gap: 8px;
}

.home-action-btn {
  height: 110px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-action-btn::before {
  content: none;
}

.home-action-icon {
  top: 28px;
}

.home-action-title {
  bottom: 8px;
  font-size: 16px;
}

.home-boost-tag {
  top: 6px;
  right: 10px;
  font-size: 18px;
}

@media (max-width: 393px) {
  .home-hero-section {
    min-height: 326px;
  }

  .home-action-btn {
    height: 104px;
  }

  .home-progress-event {
    font-size: 30px;
  }
}

/* Home scene lock model: one global background + anchored plant + scrolling UI content */
.home-hero-section,
.home-hero-atmosphere,
.home-hero-vignette,
.home-hero-beam,
.home-hero-ground,
.home-plant-glow {
  display: none !important;
}

.home-screen {
  /* Normalize the Home composition against the actually usable iPhone viewport. */
  --home-safe-top: max(env(safe-area-inset-top), 0px);
  --home-layout-height: calc(100% - var(--home-safe-top));
  --home-panel-offset: clamp(12px, calc(var(--home-layout-height) * 0.0164), 18px);
  --home-top-card-gap: 5px;
  --home-top-mini-card-width: 112px;
  --home-top-mini-card-height: 60px;
  --home-scene-bottom-offset: clamp(286px, calc(var(--home-layout-height) * 0.372), 314px);
  --home-scene-height: clamp(334px, calc(var(--home-layout-height) * 0.428), 364px);
  --home-plant-viewport-overscan-top: clamp(56px, calc(var(--home-layout-height) * 0.0718), 72px);
  --home-content-offset: clamp(444px, calc(var(--home-layout-height) * 0.566), 474px);
  --home-content-pad-x: 12px;
  --home-content-gap: 18px;
  --home-progress-overlap: clamp(28px, calc(var(--home-layout-height) * 0.038), 36px);
  --home-scene-top: calc(var(--home-layout-height) - var(--home-scene-bottom-offset) - var(--home-scene-height));
  --home-scene-center-y: calc(var(--home-safe-top) + var(--home-scene-top) + (var(--home-scene-height) * 0.5));
  --home-right-side-inset: 12px;
  --home-left-harvest-top: calc(var(--home-player-panel-bottom, calc(var(--home-safe-top) + var(--home-panel-offset) + 98px)) + var(--home-top-card-gap));
  --home-right-climate-top: var(--home-left-harvest-top);
  --home-right-actions-top: calc(var(--home-right-climate-top) + var(--home-top-mini-card-height) + 10px);
  --home-right-actions-gap: clamp(92px, calc(var(--home-scene-height) * 0.268), 102px);
  --home-right-watering-top: calc(var(--home-right-actions-top) + (var(--home-right-actions-gap) * 2));
  --home-side-utility-top: calc(100% - 400px);
  --home-left-nightshift-top: calc(var(--home-side-utility-top) - 122px);
  --home-side-icon-scale: clamp(0.96, calc(var(--home-scene-height) / 344), 1.04);
  --home-premium-lift-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.home-stage {
  position: relative;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.home-stage::before,
.home-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.home-stage::before {
  content: none;
}

.home-stage::after {
  bottom: calc(var(--home-scene-bottom-offset) - 22px);
  width: min(78vw, 308px);
  height: 86px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(17, 21, 21, 0.72) 22%, rgba(17, 21, 21, 0.18) 62%, rgba(17, 21, 21, 0) 100%),
    radial-gradient(ellipse at 50% 42%, rgba(124, 214, 174, 0.18), rgba(124, 214, 174, 0.04) 42%, rgba(124, 214, 174, 0) 76%);
  filter: blur(18px);
  opacity: 0.9;
  z-index: 1;
}

.home-player-panel {
  position: absolute;
  top: calc(var(--home-safe-top) + var(--home-panel-offset));
  left: 12px;
  right: 12px;
  width: auto;
  z-index: 8;
}

.home-menu-btn {
  position: absolute;
  top: 0;
  right: 0;
  margin-left: 0;
}

.home-right-column {
  position: absolute;
  top: var(--home-right-climate-top);
  right: var(--home-right-side-inset);
  width: var(--home-top-mini-card-width);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 5;
}

.home-scene-fixed {
  position: absolute;
  left: 50%;
  right: auto;
  top: auto;
  bottom: var(--home-scene-bottom-offset);
  width: 100%;
  height: calc(var(--home-scene-height) + var(--home-plant-viewport-overscan-top));
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}

.home-scene-fixed::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: min(76vw, 292px);
  height: 120px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 36%, rgba(229, 194, 107, 0.1), rgba(229, 194, 107, 0.02) 46%, rgba(229, 194, 107, 0) 76%),
    radial-gradient(ellipse at 50% 64%, rgba(8, 12, 13, 0.78) 16%, rgba(8, 12, 13, 0.18) 58%, rgba(8, 12, 13, 0) 100%);
  filter: blur(20px);
  opacity: 0.88;
}

@media (max-width: 520px) {
  .harvest-spotlight-card__head,
  .harvest-driver-grid,
  .harvest-detail-grid {
    grid-template-columns: 1fr;
  }

  .harvest-analysis-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .harvest-analysis-hero__meta {
    align-items: flex-start;
    text-align: left;
  }

  .harvest-analysis-metric-grid,
  .run-summary-harvest-hero,
  .run-summary-harvest-metric-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px), (max-height: 760px) {
  .home-screen {
    --home-top-mini-card-width: 106px;
    --home-top-mini-card-height: 58px;
    --home-left-harvest-top: calc(var(--home-player-panel-bottom, calc(var(--home-safe-top) + var(--home-panel-offset) + 94px)) + var(--home-top-card-gap));
  }

  .harvest-mini-card {
    left: 10px;
    width: var(--home-top-mini-card-width);
    min-width: var(--home-top-mini-card-width);
    max-width: var(--home-top-mini-card-width);
    height: var(--home-top-mini-card-height);
    min-height: var(--home-top-mini-card-height);
    max-height: var(--home-top-mini-card-height);
    padding: 5px 6px 6px;
  }

  .harvest-mini-card__label {
    font-size: 0.39rem;
  }

  .harvest-mini-card__line--primary strong {
    font-size: 0.9rem;
  }

  .harvest-mini-card__line--secondary strong,
  .harvest-mini-card__trend {
    font-size: 0.58rem;
  }
}

.home-plant-shadow {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 48%;
  height: 14%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 72%, rgba(15, 21, 19, 0.72) 26%, rgba(15, 21, 19, 0.18) 68%, rgba(15, 21, 19, 0) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(111, 255, 177, 0.22) 0%, rgba(111, 255, 177, 0.08) 40%, rgba(111, 255, 177, 0) 80%);
  display: none;
}

.home-plant-stage {
  position: absolute;
  inset: auto;
  top: auto;
  right: auto;
  left: 50%;
  bottom: -2px;
  width: min(80vw, calc(var(--home-scene-height) * 0.98));
  height: calc(min(80vw, calc(var(--home-scene-height) * 0.98)) + var(--home-plant-viewport-overscan-top));
  min-width: 286px;
  min-height: calc(286px + var(--home-plant-viewport-overscan-top));
  max-width: 350px;
  max-height: calc(350px + var(--home-plant-viewport-overscan-top));
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
}

.home-plant-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  left: auto;
  bottom: auto;
  transform: none;
  filter:
    saturate(1.04)
    drop-shadow(0 20px 20px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 18px rgba(111, 255, 177, 0.18));
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.home-plant-stage .overlay-image {
  display: none !important;
}

.home-content-scroll {
  position: absolute;
  top: calc(var(--home-safe-top) + var(--home-content-offset));
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  padding: 0 var(--home-content-pad-x) calc(120px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: var(--home-content-gap);
  pointer-events: auto;
}

.home-content-scroll > * {
  pointer-events: auto;
}

.home-content-scroll::-webkit-scrollbar {
  display: none;
}

.home-content-scroll .home-progress-panel,
.home-content-scroll .home-status-panel,
.home-content-scroll .home-action-panel {
  width: 100%;
  margin-top: 0;
}

.home-progress-panel {
  min-height: 84px;
}

.home-status-panel {
  min-height: 164px;
  padding: 12px 14px;
  gap: 12px;
}

.home-status-column,
.home-root-column {
  display: block;
}

.home-status-title {
  margin: 0 0 8px;
}

.home-action-panel {
  min-height: 118px;
  padding: 8px 2px 2px;
  gap: 10px;
}

.home-action-btn {
  height: 108px;
}

.home-status-row,
.home-root-row {
  margin-bottom: 5px;
  font-size: 10px;
  line-height: 1.1;
  column-gap: 6px;
  row-gap: 2px;
}

.home-status-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-status-row .home-status-label {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.home-status-row .home-status-label span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-status-row strong {
  justify-self: end;
  min-width: 34px;
  text-align: right;
}

.home-status-panel #stressRing {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  transform: none;
  box-shadow: none;
}

.home-root-row {
  grid-template-columns: 12px minmax(0, 1fr) auto;
  min-height: 12px;
}

.home-root-row strong {
  justify-self: end;
  text-align: right;
}

.home-status-track {
  grid-column: 1 / -1;
  height: 3px;
}

.home-status-row:last-child,
.home-root-row:last-child {
  margin-bottom: 0;
}

.home-action-icon {
  top: 26px;
}

.home-action-title {
  bottom: 9px;
}

@media (max-width: 393px) {
  .home-right-column {
    right: 10px;
    width: 106px;
  }

  .home-scene-fixed {
    bottom: var(--home-scene-bottom-offset);
    height: var(--home-scene-height);
  }

  .home-content-scroll {
    padding: 0 12px calc(140px + env(safe-area-inset-bottom));
  }
}

/* Home action-row visual alignment pass (Figma 132:51) */
.home-action-panel {
  min-height: 102px;
  padding: 4px 4px 0;
  gap: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
}

.home-action-panel .home-action-btn,
.home-action-panel #careBoostActionBtn,
.home-action-panel #careActionBtn,
.home-action-panel #analyzeActionBtn,
.home-action-panel #eventsActionBtn,
.home-action-panel #skipNightActionBtn,
.home-action-panel #boostActionBtn {
  height: 98px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  transform: translateZ(0);
  transition: transform 120ms ease, filter 160ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  overflow: visible;
}

.home-action-panel #careActionBtn:hover,
.home-action-panel #careActionBtn:active {
  box-shadow: none;
}

.home-action-panel .home-action-btn::before {
  content: none;
}

.home-action-panel .home-action-btn::after {
  content: none;
}

.home-action-panel .home-action-icon {
  position: relative;
  left: auto;
  top: auto;
  width: 50px;
  height: 50px;
  transform: none;
  z-index: 2;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));
  transition: transform 120ms ease, filter 140ms ease, opacity 140ms ease;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.home-action-panel #careActionBtn .home-action-icon {
  width: 50px;
  height: 50px;
}

.home-action-panel #analyzeActionBtn .home-action-icon {
  width: 50px;
  height: 50px;
}

.home-action-panel #eventsActionBtn .home-action-icon {
  width: 50px;
  height: 50px;
}

.home-action-panel #boostActionBtn .home-action-icon {
  width: 50px;
  height: 50px;
}

.home-action-panel .home-action-title {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  display: block;
  width: 100%;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-shadow: none;
  transition: transform 120ms ease, opacity 140ms ease;
  margin-top: -1px;
  text-align: center;
}

.home-action-panel .home-boost-tag {
  top: 6px;
  right: 8px;
  min-width: 32px;
  padding: 2px 6px 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 217, 61, 0.32);
  background: linear-gradient(180deg, rgba(46, 37, 11, 0.98), rgba(24, 18, 5, 0.98));
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: none;
  z-index: 3;
  transition: transform 120ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.home-action-panel .boost-sub {
  display: none;
}

.home-action-panel .home-action-btn:hover .home-action-icon,
.home-action-panel .home-action-btn:focus-visible .home-action-icon {
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.24)) brightness(1.02);
}

.home-action-panel .home-action-btn:active {
  transform: scale(0.95);
}

.home-action-panel .home-action-btn:active .home-action-icon {
  transform: translateY(1px) scale(1.01);
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.28)) brightness(1.03);
}

.home-action-panel .home-action-btn:active .home-action-title {
  transform: translateY(1px);
}

.home-action-panel #boostActionBtn:hover .home-boost-tag,
.home-action-panel #boostActionBtn:focus-visible .home-boost-tag,
.home-action-panel #boostActionBtn:active .home-boost-tag {
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.24);
  filter: brightness(1.04);
}




.home-climate-card {
  width: var(--home-top-mini-card-width, 112px) !important;
  min-width: var(--home-top-mini-card-width, 112px) !important;
  max-width: var(--home-top-mini-card-width, 112px) !important;
  height: var(--home-top-mini-card-height, 60px) !important;
  min-height: var(--home-top-mini-card-height, 60px) !important;
  max-height: var(--home-top-mini-card-height, 60px) !important;
  border: 1px solid rgba(157, 228, 194, 0.26);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(8, 14, 13, 0.8), rgba(6, 10, 10, 0.82)),
    radial-gradient(circle at top right, rgba(130, 232, 185, 0.14), rgba(130, 232, 185, 0) 40%);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(228, 255, 240, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 5px 6px;
  display: grid;
  gap: 3px;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 160ms ease;
  align-content: start;
  overflow: hidden;
  box-sizing: border-box;
  justify-self: end;
  align-self: start;
  isolation: isolate;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, box-shadow 220ms ease, background 220ms ease;
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  backdrop-filter: blur(8px) saturate(1.05);
}

.home-climate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(232, 255, 243, 0.08), rgba(232, 255, 243, 0) 34%),
    radial-gradient(circle at 86% 18%, rgba(153, 238, 200, 0.14), rgba(153, 238, 200, 0) 34%);
  opacity: 0.8;
  pointer-events: none;
}

.home-climate-card::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 16px;
  background: radial-gradient(circle at 58% 40%, rgba(120, 226, 182, 0.18), rgba(120, 226, 182, 0) 72%);
  opacity: 0.4;
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
  animation: premium-hud-glow 7.2s ease-in-out infinite 0.8s;
}

.home-climate-card:hover,
.home-climate-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(196, 242, 219, 0.34);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.38),
    0 1px 0 rgba(228, 255, 240, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.home-climate-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.home-climate-card__copy,
.climate-sheet__heading,
.climate-section__top,
.climate-toggle-card__copy,
.climate-advanced-panel__copy {
  display: grid;
  gap: 3px;
}

.home-climate-card__eyebrow,
.climate-section__eyebrow,
.climate-sheet__eyebrow {
  color: rgba(196, 215, 204, 0.56);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-climate-card__headline {
  display: grid;
  gap: 0;
}

.home-climate-card__hero-value {
  color: #88f1b4;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.home-climate-card__badge,
.climate-status__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 11px;
  padding: 0 3px;
  border-radius: 999px;
  border: 1px solid rgba(134, 232, 181, 0.14);
  background: rgba(106, 230, 167, 0.1);
  color: #d9efdf;
  font-size: 6px;
  line-height: 1;
}

.home-climate-card__badge[data-state="optimal"],
.climate-status__badge[data-state="optimal"] {
  color: #ddffe8;
  background: rgba(116, 235, 171, 0.14);
}

.home-climate-card__badge[data-state="watch"],
.climate-status__badge[data-state="watch"] {
  color: #f1f2d0;
  background: rgba(205, 191, 102, 0.16);
}

.home-climate-card__badge[data-state="alert"],
.climate-status__badge[data-state="alert"] {
  color: #ffd8d4;
  background: rgba(228, 105, 105, 0.16);
}

.home-climate-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 4px;
  align-items: center;
}

.home-climate-metric {
  min-width: 0;
  display: inline-grid;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: center;
  gap: 2px;
}

.home-climate-metric__icon {
  width: 6px;
  height: 6px;
  opacity: 0.84;
}

.home-climate-metric__icon--tiny {
  width: 6px;
  height: 6px;
}

.home-climate-metric__value,
.home-climate-card__footer-value,
.home-climate-card__footer-unit {
  color: #edf7ef;
  font-size: 7px;
  line-height: 1;
  white-space: nowrap;
}

.home-climate-card__footer {
  display: inline-grid;
  grid-template-columns: 7px auto auto;
  align-items: center;
  justify-content: start;
  gap: 2px;
}

.home-climate-card__footer-unit {
  color: rgba(204, 220, 210, 0.58);
  font-size: 6px;
}

.home-climate-card__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.climate-sheet {
  width: min(100vw, 420px);
  max-height: min(100dvh, 760px);
  border: 0;
  border-radius: 24px 24px 0 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.climate-sheet__shell {
  --climate-panel-glow: url("assets/ui/panels/climate_panel_glow.svg");
  --climate-glass-overlay: url("assets/ui/panels/climate_glass_overlay.svg");
  min-height: 0;
  max-height: inherit;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(190, 214, 202, 0.13);
  background:
    var(--climate-glass-overlay),
    var(--climate-panel-glow),
    linear-gradient(180deg, rgba(5, 10, 10, 0.99), rgba(7, 12, 12, 0.98)),
    radial-gradient(circle at top right, rgba(122, 236, 176, 0.08), rgba(122, 236, 176, 0) 36%);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.climate-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.climate-sheet__heading h2 {
  margin: 0;
  color: #f1f7f2;
  font-size: 18px;
  line-height: 1.02;
}

.climate-sheet__subtitle {
  margin: 0;
  color: rgba(216, 227, 220, 0.68);
  font-size: 10px;
  line-height: 1.25;
  max-width: 320px;
}

.climate-sheet__close {
  flex: 0 0 auto;
}

.climate-sheet__content {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.climate-status {
  display: grid;
}

.climate-status__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(158px, 0.95fr);
  gap: 7px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(160, 221, 192, 0.1);
  background:
    var(--climate-glass-overlay),
    var(--climate-panel-glow),
    linear-gradient(180deg, rgba(13, 22, 20, 0.9), rgba(9, 14, 14, 0.95)),
    radial-gradient(circle at top right, rgba(133, 236, 183, 0.08), rgba(133, 236, 183, 0) 42%);
  box-shadow: inset 0 0 20px rgba(150, 232, 192, 0.05);
  box-sizing: border-box;
}

.climate-status__copy {
  display: grid;
  align-content: start;
  gap: 4px;
}

.climate-status__value {
  color: #88f1b4;
  font-size: 26px;
  line-height: 0.94;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.climate-status__row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.climate-status__label {
  color: rgba(208, 223, 214, 0.64);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.climate-status__text {
  margin: 0;
  max-width: 180px;
  color: rgba(220, 230, 223, 0.72);
  font-size: 9px;
  line-height: 1.15;
}

.climate-status__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  align-content: start;
}

.climate-metric {
  display: grid;
  gap: 2px;
  padding: 6px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.climate-metric__label,
.climate-mode-card__label,
.climate-primary-card__label,
.climate-control-card__label,
.climate-compact-card__label,
.climate-root-card__label,
.climate-toggle-card__label {
  color: rgba(206, 220, 212, 0.56);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.climate-metric__value {
  color: #f2f7f3;
  font-size: 13px;
  line-height: 1.1;
}

.climate-section {
  display: grid;
  gap: 6px;
  padding: 6px 7px 5px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 68%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 22px rgba(94, 184, 140, 0.04);
}

.climate-section__title {
  color: #eef6ef;
  font-size: 14px;
  line-height: 1.08;
}

.climate-mode-grid,
.climate-regulation-grid,
.climate-root-grid,
.climate-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.climate-mode-card,
.climate-control-card,
.climate-root-card,
.climate-compact-card,
.climate-toggle-card {
  display: grid;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 0 14px rgba(164, 229, 193, 0.03);
}

.climate-mode-card--wide,
.climate-toggle-card--primary {
  grid-column: 1 / -1;
}

/* Home screen Figma import: limit changes to progress, status, roots, and action icons */
.home-content-scroll {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin-top: auto;
  padding: 0 12px calc(8px + env(safe-area-inset-bottom));
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-progress-panel {
  position: relative;
  min-height: 138px;
  padding: 14px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(194, 213, 189, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 24, 25, 0.94), rgba(10, 14, 16, 0.96)),
    radial-gradient(circle at 86% 16%, rgba(233, 197, 111, 0.11), rgba(233, 197, 111, 0) 34%),
    radial-gradient(circle at 12% 10%, rgba(117, 197, 159, 0.08), rgba(117, 197, 159, 0) 28%);
  box-shadow:
    0 20px 38px rgba(2, 6, 9, 0.34),
    0 0 26px rgba(233, 197, 111, 0.04),
    inset 0 1px 0 rgba(255, 247, 221, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  backdrop-filter: blur(12px) saturate(1.05);
  transform: translateZ(0);
}

.home-content-scroll .home-progress-panel {
  margin-top: 0;
}

.home-progress-panel::before {
  content: "";
  position: absolute;
  inset: 8px 16px auto;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(255, 233, 179, 0.16) 18%, rgba(255, 233, 179, 0.16) 82%, rgba(0, 0, 0, 0));
  pointer-events: none;
}

.home-progress-panel::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  width: calc(100% - 28px);
  height: 76px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 232, 181, 0.09), rgba(255, 232, 181, 0.02)),
    radial-gradient(circle at 80% 16%, rgba(234, 199, 111, 0.16), rgba(234, 199, 111, 0) 48%);
  filter: blur(20px);
  opacity: 0.24;
  pointer-events: none;
  animation: premium-hud-glow 8.6s ease-in-out infinite 1.2s;
}

.home-progress-heading,
.home-progress-top,
.home-progress-bottom {
  position: relative;
  z-index: 1;
}

.home-progress-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 7px;
}

.home-progress-title {
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #f1f4ed;
}

.home-progress-day {
  margin: 0;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(224, 234, 228, 0.68);
}

.home-progress-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: start;
  gap: 10px;
}

.home-progress-grow {
  min-width: 0;
  gap: 4px;
}

.home-progress-grow strong {
  color: #4ade80;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  margin-right: 0;
  letter-spacing: -0.02em;
}

.home-progress-grow span {
  color: rgba(220, 230, 223, 0.46);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.home-progress-stress-chip {
  min-width: 31px;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 7.5px;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.home-progress-multi {
  justify-self: end;
  color: rgba(239, 208, 128, 0.82);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.home-progress-pause {
  width: 18px;
  height: 18px;
  border-radius: 9px;
  border: 1px solid rgba(74, 222, 128, 0.18);
  background: rgba(74, 222, 128, 0.06);
  box-shadow: none;
}

.home-progress .phase-progress,
.phase-progress {
  position: relative;
  z-index: 1;
  margin: 11px 0 9px;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(149, 173, 143, 0.16);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.46);
}

.phase-progress-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, #2d6f2e 0%, #7ef0a5 100%);
  box-shadow:
    0 0 7px rgba(126, 240, 165, 0.32),
    0 0 2px rgba(126, 240, 165, 0.5);
}

.phase-progress-marker {
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #bff08a;
  box-shadow:
    0 0 6px #bff08a,
    0 0 10px rgba(191, 240, 138, 0.46);
}

.home-progress-bottom {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 10px;
  row-gap: 7px;
  padding-top: 10px;
}

.home-progress-bottom::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(255, 215, 0, 0.1) 16%, rgba(255, 215, 0, 0.1) 84%, rgba(0, 0, 0, 0));
}

.home-progress-cluster {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.home-progress-cluster--event {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
}

.home-progress-cluster--boost {
  grid-column: 1 / -1;
  justify-self: start;
}

.home-progress-inline-label,
.home-progress-event-label {
  position: relative;
  color: rgba(222, 231, 226, 0.44);
  font-size: 11px;
  line-height: 1;
}

.home-progress-event-label {
  color: rgba(245, 194, 105, 0.84);
}

.home-progress-cycle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.home-progress-footer-icon {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}

.home-progress-footer-icon--time {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(74, 222, 128, 0.65);
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(74, 222, 128, 0.88) 0 1px, transparent 1.15px);
  box-shadow: 0 0 4px rgba(74, 222, 128, 0.26);
}

.home-progress-footer-icon--time::before,
.home-progress-footer-icon--time::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  background: #4ade80;
  border-radius: 999px;
  transform-origin: 50% 100%;
}

.home-progress-footer-icon--time::before {
  height: 4px;
  transform: translate(-50%, -100%) rotate(0deg);
}

.home-progress-footer-icon--time::after {
  height: 3px;
  transform: translate(-50%, -100%) rotate(36deg);
}

.home-progress-footer-icon--boost {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background:
    radial-gradient(circle at center, rgba(255, 215, 0, 0.9) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(52, 43, 15, 0.95), rgba(24, 19, 6, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.18);
}

.home-progress-footer-icon--event {
  width: 9px;
  height: 11px;
}

.home-progress-footer-icon--event::before {
  content: "⚡";
  position: absolute;
  inset: -2px 0 0;
  color: #f0a63a;
  font-size: 10px;
  line-height: 1;
}

.home-progress-time {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.home-progress-boost {
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.home-progress-event {
  color: #f0a63a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.home-status-panel {
  position: relative;
  min-height: 336px;
  height: auto;
  padding: 12px 14px 16px;
  border-radius: 11px;
  border: 1px solid rgba(96, 214, 145, 0.24);
  background: linear-gradient(180deg, rgba(43, 43, 43, 0.96), rgba(31, 31, 31, 0.96));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  grid-template-columns: minmax(0, 1.15fr) 1px minmax(128px, 0.85fr);
  grid-template-areas:
    "status divider root"
    "guidance guidance guidance";
  gap: 14px;
  overflow: visible;
  align-content: start;
  grid-auto-rows: max-content;
}

.home-status-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(74, 222, 128, 0.24) 32%, rgba(212, 175, 55, 0.22) 68%, rgba(0, 0, 0, 0));
  pointer-events: none;
}

.home-status-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 11px;
  color: #d4af37;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-status-title::before,
.home-status-title::after {
  content: "";
  display: block;
  height: 1px;
  width: 10px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), #d4af37);
}

.home-status-title::after {
  width: 30px;
  background: linear-gradient(90deg, #d4af37, rgba(0, 0, 0, 0));
}

.home-status-divider {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(66, 255, 126, 0.3) 30%, rgba(212, 175, 55, 0.25) 70%, rgba(0, 0, 0, 0));
}

.home-status-column,
.home-root-column {
  position: relative;
  z-index: 1;
}

.home-status-column {
  grid-area: status;
}

.home-status-divider {
  grid-area: divider;
}

.home-root-column {
  grid-area: root;
}

.home-guidance-panel {
  grid-area: guidance;
}

.home-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 54px;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.home-status-row .home-status-label {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.home-status-row img,
.home-root-row img {
  width: 11px;
  height: 11px;
}

.home-status-row span,
.home-root-row span {
  font-size: 10px;
  line-height: 1.1;
  color: #e0e0e0;
}

.home-status-row strong {
  min-width: 28px;
  color: #d4af37;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}

.home-status-track {
  grid-column: auto;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.home-status-fill {
  box-shadow: 0 0 4.749px rgba(212, 175, 55, 0.5);
}

#waterRing .home-status-fill,
#growthRing .home-status-fill {
  box-shadow: 0 0 4.749px rgba(66, 255, 126, 0.5);
}

#riskRing .home-status-fill {
  box-shadow: 0 0 4.749px rgba(255, 107, 53, 0.5);
}

.home-root-row {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.home-root-row strong {
  color: #42ff7e;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.home-action-panel {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: block;
}

.home-action-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  padding: 0;
  overflow: visible;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), filter 180ms ease;
  will-change: transform;
}

.home-action-btn::before {
  content: "";
  position: absolute;
  inset: 18% 16% 22%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 250, 236, 0.12), rgba(255, 250, 236, 0.04) 30%, rgba(255, 250, 236, 0) 64%),
    radial-gradient(circle at 50% 56%, rgba(13, 19, 20, 0.58), rgba(13, 19, 20, 0.18) 46%, rgba(13, 19, 20, 0) 78%);
  filter: blur(10px);
  opacity: 0.54;
  transform: scale(0.92);
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

#boostActionBtn {
  position: absolute;
  left: 12px;
  top: var(--home-side-utility-top);
  bottom: auto;
  width: 112px;
  height: 112px;
  animation: premium-hud-float 6.4s ease-in-out infinite;
}

.home-action-panel #careBoostActionBtn {
  position: absolute;
  left: 20px;
  top: auto;
  bottom: 212px;
  width: 88px;
  height: 102px;
  display: flex;
  animation: premium-hud-float 6.9s ease-in-out infinite 0.35s;
}

.home-action-panel #climateStabilizeActionBtn {
  position: absolute;
  left: 18px;
  top: auto;
  bottom: 112px;
  width: 90px;
  height: 102px;
  display: flex;
  animation: premium-hud-float 7.1s ease-in-out infinite 0.55s;
}

.home-action-panel #eventsActionBtn {
  position: absolute;
  right: var(--home-right-side-inset);
  top: var(--home-right-actions-top);
  left: auto;
  width: 76px;
  height: 116px;
  animation: premium-hud-float 7.2s ease-in-out infinite 0.2s;
}

.home-action-panel #skipNightActionBtn {
  position: absolute;
  left: 12px;
  top: var(--home-left-nightshift-top);
  right: auto;
  display: flex;
  width: 112px;
  height: 112px;
  animation: premium-hud-float 7.2s ease-in-out infinite 1.6s;
}

.home-action-panel #analyzeActionBtn {
  position: absolute;
  right: var(--home-right-side-inset);
  top: calc(var(--home-right-actions-top) + var(--home-right-actions-gap));
  left: auto;
  width: 76px;
  height: 116px;
  animation: premium-hud-float 7.2s ease-in-out infinite 0.7s;
}

.home-action-panel #careActionBtn {
  position: absolute;
  right: var(--home-right-side-inset);
  top: var(--home-right-watering-top);
  left: auto;
  width: 76px;
  height: 116px;
  animation: premium-hud-float 7.2s ease-in-out infinite 1.1s;
}

.home-action-panel .home-action-icon {
  position: relative;
  left: auto;
  top: auto;
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: none;
  filter:
    saturate(0.96)
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.035));
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), filter 180ms ease, opacity 180ms ease;
  opacity: 0.95;
}

.home-action-panel #boostActionBtn .home-action-icon {
  width: 78px;
  height: 78px;
}

.home-action-panel #careBoostActionBtn .home-action-icon {
  width: 68px;
  height: 68px;
}

.home-action-panel #climateStabilizeActionBtn .home-action-icon {
  width: 66px;
  height: 66px;
}

.home-action-panel #eventsActionBtn .home-action-icon {
  width: 78px;
  height: 78px;
}

.home-action-panel #skipNightActionBtn .home-action-icon {
  width: 78px;
  height: 78px;
}

.home-action-panel #analyzeActionBtn .home-action-icon {
  width: 78px;
  height: 78px;
}

.home-action-panel #careActionBtn .home-action-icon {
  width: 78px;
  height: 78px;
}

.home-action-panel #careBoostActionIcon,
.home-action-panel #climateStabilizeActionIcon,
.home-action-panel #eventsActionIcon,
.home-action-panel #skipNightActionIcon,
.home-action-panel #analyzeActionIcon,
.home-action-panel #careActionIcon {
  width: 78px;
  height: 78px;
}

.home-action-panel #careBoostActionIcon {
  width: 68px;
  height: 68px;
}

.home-action-panel #climateStabilizeActionIcon {
  width: 66px;
  height: 66px;
  opacity: 0.96;
}

#eventsActionBtn .home-side-icon,
#skipNightActionBtn .home-side-icon,
#analyzeActionBtn .home-side-icon,
#careActionBtn .home-side-icon {
  width: 84px;
  height: 84px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.home-action-panel .home-action-title,
.home-action-panel .boost-sub {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.home-action-panel .home-boost-tag {
  display: none;
}

.home-action-btn:hover .home-action-icon,
.home-action-btn:focus-visible .home-action-icon {
  filter:
    saturate(1)
    drop-shadow(0 13px 22px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 12px rgba(255, 244, 210, 0.06))
    brightness(1.03);
  transform: translateY(-2px);
  opacity: 1;
}

.home-action-btn:active {
  animation-play-state: paused;
  transform: translateY(1px);
}

.home-action-btn:hover,
.home-action-btn:focus-visible {
  animation-play-state: paused;
}

.home-action-btn:hover::before,
.home-action-btn:focus-visible::before {
  opacity: 0.72;
  transform: scale(1);
}

.home-action-btn:active::before {
  opacity: 0.6;
  transform: scale(0.96);
}

.home-action-panel .home-action-btn:hover .home-action-title,
.home-action-panel .home-action-btn:focus-visible .home-action-title {
  transform: translateY(-1px);
  opacity: 0.96;
}

.home-action-panel .home-action-btn:disabled {
  cursor: default;
  opacity: 0.9;
  filter: saturate(0.66);
}

.home-action-panel .home-action-btn:disabled .home-action-icon {
  transform: none;
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.02))
    brightness(0.86);
}

.home-action-panel .home-action-btn:disabled:hover .home-action-icon,
.home-action-panel .home-action-btn:disabled:focus-visible .home-action-icon {
  transform: none;
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.02))
    brightness(0.86);
}

@keyframes premium-hud-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes premium-hud-glow {
  0%,
  100% {
    opacity: 0.24;
  }
  50% {
    opacity: 0.42;
  }
}

@media (prefers-reduced-motion: reduce) {
  .harvest-mini-card::after,
  .home-climate-card::after,
  .home-progress-panel::after,
  #boostActionBtn,
  .home-action-panel #careBoostActionBtn,
  .home-action-panel #climateStabilizeActionBtn,
  .home-action-panel #skipNightActionBtn,
  .home-action-panel #eventsActionBtn,
  .home-action-panel #analyzeActionBtn,
  .home-action-panel #careActionBtn {
    animation: none !important;
  }

  .harvest-mini-card,
  .home-climate-card,
  .home-progress-panel,
  .home-action-btn,
  .home-action-panel .home-action-icon {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 393px) {
  .home-content-scroll {
    padding: 0 12px calc(140px + env(safe-area-inset-bottom));
  }

  #boostActionBtn {
    left: 10px;
    top: var(--home-side-utility-top);
    bottom: auto;
  }

  .home-action-panel #skipNightActionBtn {
    left: 10px;
    top: var(--home-left-nightshift-top);
    right: auto;
  }

  .home-action-panel #careBoostActionBtn {
    left: 16px;
    bottom: 212px;
  }

  .home-action-panel #climateStabilizeActionBtn {
    left: 14px;
    bottom: 116px;
  }

  .home-progress-title {
    font-size: 17px;
  }

  .home-progress-day {
    font-size: 13px;
  }

  .home-progress-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 6px;
  }

  .home-progress-boost {
    font-size: 11px;
  }
}

.climate-mode-card__value,
.climate-toggle-card__value,
.climate-control-card__value,
.climate-root-card__value,
.climate-compact-card__value {
  color: #f3f8f4;
  font-size: 16px;
  line-height: 1;
}

.climate-segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  width: fit-content;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.climate-segmented__item {
  min-width: 56px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(204, 219, 210, 0.56);
  font-size: 10px;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.climate-segmented__item[data-active="true"] {
  background: rgba(139, 226, 184, 0.14);
  color: #ecf8ee;
  box-shadow: inset 0 0 0 1px rgba(171, 232, 198, 0.14);
}

.climate-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.climate-primary-card {
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  min-height: 88px;
  border-radius: 11px;
  border: 1px solid rgba(169, 228, 196, 0.08);
  background:
    var(--climate-glass-overlay),
    var(--climate-panel-glow),
    linear-gradient(180deg, rgba(16, 24, 23, 0.76), rgba(10, 16, 15, 0.88)),
    radial-gradient(circle at top right, rgba(113, 231, 173, 0.06), rgba(113, 231, 173, 0) 40%);
  box-shadow:
    inset 0 0 20px rgba(150, 233, 192, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
  overflow: hidden;
}

.climate-primary-card__value {
  color: #f3fbf5;
  font-size: clamp(27px, 5.2vw, 34px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-top: 1px;
}

.climate-primary-card__hint {
  display: none;
}

.climate-control-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.climate-control-module {
  align-content: start;
  position: relative;
}

.climate-control-module::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 120%, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0) 58%);
}

.climate-inline-controls {
  margin-top: auto;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  align-items: center;
}

.climate-inline-control {
  width: 25px;
  height: 25px;
  min-width: 25px;
  min-height: 25px;
  padding: 0;
  border: 1px solid rgba(201, 232, 217, 0.12);
  background:
    var(--climate-glass-overlay),
    linear-gradient(180deg, rgba(244, 255, 249, 0.14), rgba(213, 247, 229, 0.06)),
    radial-gradient(circle at 30% 18%, rgba(214, 255, 234, 0.16), rgba(214, 255, 234, 0) 62%);
  color: rgba(188, 246, 218, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  opacity: 0.62;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 10px rgba(144, 228, 185, 0.12);
  transition: opacity 140ms ease, transform 120ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.climate-inline-control:hover,
.climate-inline-control:focus-visible {
  opacity: 1;
  color: #effff6;
  border-color: rgba(167, 236, 198, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 12px rgba(144, 228, 185, 0.2),
    0 0 18px rgba(123, 229, 176, 0.34);
}

.climate-inline-control:active {
  transform: scale(0.95);
}

.climate-inline-control__icon {
  width: 20px;
  height: 20px;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 0 4px rgba(139, 233, 187, 0.5));
}

.climate-inline-control__icon--prev {
  transform: none;
}

.climate-sheet[data-state="optimal"] .climate-status__hero,
.climate-sheet[data-state="optimal"] .climate-primary-card {
  border-color: rgba(138, 229, 184, 0.16);
  box-shadow:
    inset 0 0 18px rgba(141, 232, 188, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.climate-sheet[data-state="watch"] .climate-status__hero,
.climate-sheet[data-state="watch"] .climate-primary-card {
  border-color: rgba(228, 181, 120, 0.16);
  box-shadow:
    inset 0 0 18px rgba(226, 175, 98, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.climate-sheet[data-state="alert"] .climate-status__hero,
.climate-sheet[data-state="alert"] .climate-primary-card {
  border-color: rgba(228, 116, 116, 0.18);
  box-shadow:
    inset 0 0 20px rgba(220, 97, 97, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.climate-sheet[data-tension="calm"] .climate-inline-control {
  box-shadow: 0 0 0 rgba(118, 224, 172, 0);
}

.climate-sheet[data-tension="elevated"] .climate-inline-control {
  box-shadow: 0 0 10px rgba(222, 169, 100, 0.08);
}

.climate-sheet[data-tension="critical"] .climate-inline-control {
  box-shadow: 0 0 12px rgba(214, 101, 101, 0.14);
}

.climate-stepper {
  display: inline-grid;
  grid-template-columns: repeat(2, 25px);
  gap: 5px;
  width: fit-content;
}

.climate-stepper--primary {
  margin-top: auto;
}

.climate-stepper--compact {
  gap: 4px;
}

.climate-stepper__btn {
  width: 25px;
  min-width: 25px;
  height: 25px;
  min-height: 25px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(196, 224, 210, 0.12);
  background:
    var(--climate-glass-overlay),
    linear-gradient(180deg, rgba(244, 255, 249, 0.14), rgba(213, 247, 229, 0.06)),
    radial-gradient(circle at 30% 18%, rgba(214, 255, 234, 0.16), rgba(214, 255, 234, 0) 62%);
  color: rgba(188, 246, 218, 0.92);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 10px rgba(144, 228, 185, 0.12);
  transition: transform 120ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.climate-stepper__btn:hover,
.climate-stepper__btn:focus-visible {
  color: #effff6;
  border-color: rgba(167, 236, 198, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 12px rgba(144, 228, 185, 0.22),
    0 0 18px rgba(123, 229, 176, 0.34);
}

.climate-stepper__btn:active {
  transform: scale(0.95);
}

.climate-stepper__icon {
  width: 20px;
  height: 20px;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 0 4px rgba(139, 233, 187, 0.5));
}

.climate-stepper__icon--prev {
  transform: none;
}

.climate-stepper__btn--next .climate-stepper__icon {
  opacity: 0.96;
}

.climate-toggle-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.climate-native-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.climate-note {
  display: block;
  margin: 0;
  color: rgba(206, 221, 211, 0.62);
  font-size: 9px;
  line-height: 1.2;
}

.climate-advanced-panel {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
}

.climate-advanced-panel__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.climate-advanced-panel__summary::-webkit-details-marker {
  display: none;
}

.climate-advanced-panel__hint {
  color: rgba(203, 218, 209, 0.54);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.climate-advanced-panel__body {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.climate-root-card--readonly {
  align-content: start;
}

.climate-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.climate-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.climate-switch__track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 140ms ease, border-color 140ms ease;
}

.climate-switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f5fbf6;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  transition: transform 140ms ease;
}

.climate-switch input:checked + .climate-switch__track {
  background: rgba(138, 219, 175, 0.34);
  border-color: rgba(171, 231, 196, 0.32);
}

.climate-switch input:checked + .climate-switch__track::after {
  transform: translateX(20px);
}

@media (min-width: 721px) {
  .climate-sheet {
    width: min(720px, calc(100vw - 40px));
    max-height: min(86dvh, 820px);
    border-radius: 26px;
    bottom: 50%;
    transform: translate(-50%, 50%);
  }

  .climate-sheet__shell {
    border-radius: 26px;
  }

  .climate-sheet__header {
    padding: 14px 16px 12px;
  }

  .climate-sheet__content {
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
    gap: 10px;
  }

  .climate-status__hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.92fr);
    gap: 10px;
    padding: 12px;
  }

  .climate-status__value {
    font-size: 34px;
  }

  .climate-primary-card {
    min-height: 96px;
  }

  .climate-primary-card__value {
    font-size: clamp(30px, 3vw, 38px);
  }
}

@media (max-width: 720px) {
  .climate-sheet {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 24px 24px 0 0;
  }

  .climate-sheet__shell {
    border-radius: 24px 24px 0 0;
  }

  .climate-segmented {
    width: 100%;
  }

  .climate-segmented__item {
    min-width: 0;
  }

  .climate-sheet__subtitle,
  .climate-status__text,
  .climate-mode-card .climate-note,
  .climate-control-card .climate-note,
  .climate-primary-card__hint {
    display: none;
  }

  .climate-mode-grid {
    grid-template-columns: 1.15fr 1fr 0.9fr;
  }

  .climate-mode-card--wide {
    grid-column: auto;
  }

  .climate-status__hero {
    grid-template-columns: minmax(0, 1fr) minmax(144px, 0.96fr);
    min-height: 112px;
    max-height: 124px;
  }

  .climate-status__value {
    font-size: 24px;
  }

  .climate-primary-card {
    min-height: 86px;
  }
}

/* Compact premium top module override */
.home-player-panel {
  display: grid;
  align-items: stretch;
  align-content: start;
  min-height: 0;
  gap: 2px;
  padding: 5px 9px 4px;
}

.home-player-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
  width: 100%;
}

.home-avatar-shell {
  width: 38px;
  height: 38px;
}

.home-level-pill {
  font-size: 6px;
  border-radius: 5px;
  padding: 2px 4px;
}

.home-player-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.home-player-name {
  font-size: 11px;
  line-height: 1.04;
}

.home-player-role {
  font-size: 8px;
  line-height: 1.04;
}

.home-player-xp {
  font-size: 8px;
  line-height: 1.04;
}

.home-player-xp-track {
  height: 2px;
}

.home-player-tools {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 4px;
}

.home-currency-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0;
}

.home-currency-stack::before {
  display: none;
}

.home-currency-row {
  min-height: 17px;
  gap: 3px;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid rgba(143, 217, 171, 0.12);
  background: rgba(12, 24, 18, 0.7);
  font-size: 8px;
}

.home-currency-row span {
  width: 9px;
  height: 9px;
  font-size: 7px;
}

.home-currency-row strong {
  font-size: 8px;
}

.home-menu-btn {
  position: relative;
  top: auto;
  right: auto;
  margin-left: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.home-menu-btn img {
  width: 19px;
  height: 19px;
}

.home-meta-strip {
  display: grid;
  min-height: 18px;
  border: 0;
  border-top: 1px solid rgba(131, 207, 161, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 1px 0 0;
  gap: 3px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  width: 100%;
}

.home-meta-icon {
  width: 11px;
  height: 11px;
  box-shadow: 0 0 10px rgba(82, 201, 119, 0.12);
}

.home-meta-icon::before {
  width: 4px;
  height: 4px;
}

.home-meta-copy {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.home-meta-title {
  font-size: 9px;
}

.home-meta-subline {
  gap: 3px;
  font-size: 8px;
}

.home-meta-status {
  gap: 3px;
}

.home-meta-status::before {
  width: 3px;
  height: 3px;
}

.home-meta-build-chip,
.home-meta-build-pill {
  min-height: 15px;
  padding: 0 6px;
  font-size: 7px;
}

.home-meta-caret {
  width: 11px;
  height: 11px;
  opacity: 0.52;
}

.home-meta-caret::before {
  inset: 3px;
}

.home-meta-detail {
  padding-top: 2px;
}

@media (max-width: 420px) {
  .home-player-panel {
    padding: 5px 7px 4px;
  }

  .home-player-header {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 4px;
  }

  .home-avatar-shell {
    width: 36px;
    height: 36px;
  }

  .home-currency-stack {
    gap: 3px;
  }

  .home-currency-row {
    min-height: 16px;
    padding-inline: 4px;
  }

  .home-meta-strip {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .home-meta-build-chip {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.home-meta-retention {
  display: inline-flex;
  margin-top: 2px;
  width: 100%;
  min-width: 0;
  color: rgba(214, 236, 255, 0.82);
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-retention-card {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(118, 160, 209, 0.22);
  background: linear-gradient(180deg, rgba(12, 22, 35, 0.82), rgba(10, 18, 30, 0.7));
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-retention-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
}

.home-retention-card__headline {
  font-size: 10px;
  line-height: 1.2;
  color: rgba(237, 246, 255, 0.96);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-retention-card__state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(201, 224, 248, 0.94);
  border: 1px solid rgba(123, 164, 214, 0.36);
  background: rgba(22, 35, 52, 0.68);
}

.home-retention-card__mid,
.home-retention-card__bottom {
  font-size: 9px;
  line-height: 1.25;
  color: rgba(194, 218, 241, 0.86);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-retention-card--claimable {
  border-color: rgba(137, 224, 179, 0.46);
  box-shadow: 0 0 0 1px rgba(137, 224, 179, 0.12), 0 8px 18px rgba(6, 18, 24, 0.28);
}

.home-retention-card--claimable .home-retention-card__state {
  color: rgba(220, 248, 232, 0.98);
  border-color: rgba(141, 231, 185, 0.56);
  background: rgba(20, 49, 41, 0.72);
}

.home-retention-card--claimed .home-retention-card__state {
  color: rgba(212, 236, 216, 0.95);
  border-color: rgba(131, 191, 151, 0.42);
  background: rgba(26, 48, 35, 0.62);
}

.home-retention-card--in_progress .home-retention-card__state {
  border-color: rgba(123, 183, 219, 0.42);
  background: rgba(18, 40, 56, 0.68);
}

.home-meta-strip--retention-claimable .home-retention-card {
  border-color: rgba(137, 224, 179, 0.56);
}

.home-meta-retention:focus-visible .home-retention-card,
.home-meta-retention:hover .home-retention-card {
  transform: translateY(-1px);
  border-color: rgba(149, 190, 236, 0.45);
  box-shadow: 0 8px 18px rgba(7, 14, 24, 0.28);
}

.home-meta-retention.is-claimable .home-retention-card {
  animation: homeRetentionPulse 1.8s ease-in-out 1;
}

@keyframes homeRetentionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(137, 224, 179, 0);
  }
  45% {
    box-shadow: 0 0 0 4px rgba(137, 224, 179, 0.14);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(137, 224, 179, 0);
  }
}

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

.support-sheet-content {
  display: grid;
  gap: 10px;
}

.support-sheet-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
}

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

.support-section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(165, 216, 195, 0.9);
}

.support-option-list {
  display: grid;
  gap: 8px;
}

.support-option-btn {
  width: 100%;
  border: 1px solid rgba(114, 174, 149, 0.32);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(85, 194, 154, 0.12), rgba(85, 194, 154, 0) 50%),
    linear-gradient(180deg, rgba(15, 25, 23, 0.94), rgba(10, 17, 16, 0.94));
  min-height: 62px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  color: rgba(227, 248, 239, 0.95);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 200ms ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.support-option-btn:hover,
.support-option-btn:focus-visible {
  border-color: rgba(137, 231, 191, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.support-option-btn:active {
  transform: translateY(0);
}

.support-option-btn.is-active {
  border-color: rgba(150, 240, 199, 0.74);
  background:
    radial-gradient(circle at top right, rgba(121, 241, 194, 0.2), rgba(121, 241, 194, 0) 52%),
    linear-gradient(180deg, rgba(16, 34, 30, 0.94), rgba(11, 22, 20, 0.94));
  box-shadow:
    0 0 0 1px rgba(128, 231, 187, 0.3),
    0 10px 22px rgba(0, 0, 0, 0.3);
}

.support-option-copy {
  display: grid;
  gap: 3px;
}

.support-option-copy strong {
  font-size: 15px;
  line-height: 1.2;
  color: rgba(233, 251, 244, 0.98);
}

.support-option-copy small {
  font-size: 11px;
  line-height: 1.2;
  color: rgba(181, 222, 205, 0.86);
}

.support-option-value {
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(139, 210, 181, 0.34);
  background: rgba(20, 42, 35, 0.82);
  color: rgba(214, 244, 230, 0.95);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.support-option-btn--custom .support-option-value {
  border-style: dashed;
}

.support-primary-cta {
  min-height: 48px;
  margin-top: 2px;
}

.support-secondary-hint {
  margin: 0;
  color: rgba(192, 213, 204, 0.84) !important;
}

.legal-sheet-content {
  display: block !important;
  padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
}

.legal-document {
  max-width: 64ch;
  margin: 0 auto;
  color: rgba(232, 242, 236, 0.94);
  line-height: 1.52;
  font-size: 0.92rem;
}

.legal-document h3,
.legal-document h4 {
  margin: 0;
  color: #f1f7f3;
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  letter-spacing: 0.01em;
}

.legal-document h3 {
  font-size: 1.05rem;
  margin-bottom: 0.78rem;
}

.legal-document h4 {
  font-size: 0.95rem;
  margin-bottom: 0.44rem;
}

.legal-document p {
  margin: 0 0 0.74rem;
}

.legal-section + .legal-section {
  margin-top: 0.86rem;
}

.legal-document ul {
  margin: 0 0 0.86rem;
  padding-left: 1.12rem;
  display: grid;
  gap: 0.36rem;
}

.legal-document li {
  color: rgba(216, 232, 222, 0.95);
}

.legal-document a {
  color: #d4af37;
  text-decoration-color: rgba(212, 175, 55, 0.6);
}

.run-summary-support-btn {
  border-color: rgba(114, 189, 157, 0.45);
  color: rgba(214, 246, 230, 0.94);
}

#paypalDonateSdkContainer {
  position: fixed;
  left: -9999px;
  bottom: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.retention-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.retention-streak-block {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(19, 34, 56, 0.72);
  border: 1px solid rgba(122, 169, 223, 0.24);
}

.retention-streak-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.retention-streak-status {
  font-size: 11px;
  color: rgba(206, 233, 255, 0.82);
}

.retention-section-title {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(176, 211, 246, 0.88);
}

.retention-task-list {
  display: grid;
  gap: 8px;
}

.retention-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 20, 34, 0.82);
  border: 1px solid rgba(111, 157, 209, 0.2);
}

.retention-task-row--done {
  border-color: rgba(114, 218, 173, 0.38);
  background: rgba(12, 32, 28, 0.72);
}

.retention-task-row--open {
  border-color: rgba(111, 157, 209, 0.22);
}

.retention-task-row--in_progress {
  border-color: rgba(131, 187, 226, 0.32);
  background: rgba(12, 29, 46, 0.76);
}

.retention-task-row--claimable {
  border-color: rgba(137, 224, 179, 0.54);
  background: linear-gradient(180deg, rgba(15, 42, 34, 0.82), rgba(12, 34, 28, 0.76));
  box-shadow: inset 0 1px 0 rgba(206, 244, 225, 0.08), 0 8px 20px rgba(6, 18, 15, 0.26);
}

.retention-task-row--claimed {
  border-color: rgba(130, 192, 151, 0.32);
  background: rgba(15, 34, 27, 0.68);
}

.retention-task-row--pulse-claimable {
  animation: retentionTaskClaimablePulse 0.48s ease;
}

.retention-task-row--settled {
  animation: retentionTaskSettled 0.42s ease;
}

@keyframes retentionTaskClaimablePulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes retentionTaskSettled {
  0% {
    transform: translateY(-1px);
    opacity: 0.94;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.retention-task-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.retention-task-copy strong {
  font-size: 13px;
  color: rgba(233, 245, 255, 0.96);
}

.retention-task-copy small {
  font-size: 11px;
  color: rgba(194, 218, 241, 0.82);
}

.retention-task-state {
  font-size: 11px;
  color: rgba(202, 230, 255, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(116, 160, 211, 0.3);
  background: rgba(17, 30, 47, 0.6);
}

.retention-task-state--open {
  color: rgba(197, 221, 244, 0.92);
}

.retention-task-state--in_progress {
  color: rgba(206, 235, 255, 0.96);
  border-color: rgba(125, 189, 233, 0.42);
  background: rgba(21, 44, 63, 0.66);
}

.retention-task-state--claimable {
  color: rgba(223, 252, 237, 0.98);
  border-color: rgba(141, 231, 185, 0.6);
  background: rgba(24, 57, 47, 0.74);
}

.retention-task-state--claimed {
  color: rgba(212, 235, 220, 0.96);
  border-color: rgba(128, 188, 148, 0.42);
  background: rgba(21, 45, 33, 0.64);
}

.retention-task-progress-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.retention-task-progress-track {
  position: relative;
  width: 92px;
  max-width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(79, 111, 144, 0.4);
}

.retention-task-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--retention-progress, 0) * 1%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(132, 182, 236, 0.9), rgba(104, 218, 168, 0.92));
  transition: width 220ms ease;
}

.retention-task-progress-label {
  font-size: 10px;
  color: rgba(184, 211, 239, 0.9);
  min-width: 28px;
}

.retention-task-claim-btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.retention-streak-best {
  color: rgba(172, 204, 236, 0.84);
}

.retention-streak-status.is-secured {
  color: rgba(197, 238, 212, 0.94);
}

.retention-streak-status.is-open {
  color: rgba(218, 230, 244, 0.9);
}

.retention-micro-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.retention-micro-chip {
  display: inline-grid;
  gap: 1px;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid rgba(215, 174, 95, 0.42);
  background: rgba(58, 43, 17, 0.72);
  min-width: 112px;
}

.retention-micro-chip strong {
  font-size: 11px;
  line-height: 1.2;
  color: rgba(255, 236, 202, 0.96);
}

.retention-micro-chip small {
  font-size: 10px;
  line-height: 1.15;
  color: rgba(244, 224, 188, 0.84);
}

.retention-micro-chip--common {
  border-color: rgba(146, 175, 206, 0.36);
  background: rgba(31, 44, 61, 0.74);
}

.retention-micro-chip--uncommon {
  border-color: rgba(112, 195, 162, 0.4);
  background: rgba(24, 55, 47, 0.74);
}

.retention-micro-chip--rare {
  border-color: rgba(114, 158, 232, 0.46);
  background: rgba(26, 40, 73, 0.76);
}

.retention-micro-chip--epic {
  border-color: rgba(196, 136, 228, 0.48);
  background: rgba(54, 29, 78, 0.78);
}

.retention-recovery-wrap {
  display: grid;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(129, 165, 198, 0.34);
  background: rgba(16, 26, 41, 0.72);
}

.retention-recovery-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.retention-recovery-btn {
  min-width: 92px;
  font-size: 11px;
  padding: 6px 9px;
}

.retention-recovery-btn--soft {
  border-color: rgba(122, 169, 223, 0.34);
  background: rgba(18, 34, 56, 0.6);
}

.retention-insights-section {
  display: grid;
  gap: 10px;
}

.retention-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.retention-insight-card {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(118, 160, 209, 0.24);
  background: rgba(11, 22, 36, 0.7);
}

.retention-insight-label {
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(173, 208, 244, 0.84);
}

.retention-insight-value {
  font-size: 15px;
  line-height: 1.2;
  color: rgba(240, 249, 255, 0.98);
}

.retention-insight-card small {
  font-size: 11px;
  color: rgba(190, 214, 238, 0.84);
}

.retention-activity-row {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 12px;
}

.retention-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(118, 147, 176, 0.38);
}

.retention-activity-dot--active {
  background: rgba(106, 215, 169, 0.88);
}

@media (max-width: 360px) {
  .retention-insights-grid {
    grid-template-columns: 1fr;
  }
}

.retention-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 12000;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(115, 197, 169, 0.48);
  background: rgba(10, 28, 23, 0.94);
  color: rgba(226, 253, 243, 0.98);
  font-size: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.retention-toast.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}

/* Home core stats refactor: compact bar + micro-insight popup */
.home-stage {
  position: relative;
}

.home-content-scroll {
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.home-core-stats-bar {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 88px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 11px 12px 10px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(20, 26, 30, 0.92), rgba(11, 15, 18, 0.94)),
    radial-gradient(circle at 16% 0%, rgba(124, 203, 166, 0.08), rgba(124, 203, 166, 0) 34%),
    radial-gradient(circle at 86% 0%, rgba(226, 193, 118, 0.09), rgba(226, 193, 118, 0) 36%);
  border: 1px solid rgba(183, 212, 188, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    inset 0 0 0 1px rgba(255, 242, 214, 0.016),
    0 22px 40px rgba(2, 6, 9, 0.42),
    0 8px 16px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.06);
  backdrop-filter: blur(14px) saturate(1.06);
}

.home-core-stats-bar::before,
.home-core-stats-bar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-core-stats-bar::before {
  inset: 8px 16px auto;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(255, 239, 206, 0.2) 20%, rgba(255, 239, 206, 0.2) 80%, rgba(0, 0, 0, 0));
  opacity: 0.84;
}

.home-core-stats-bar::after {
  inset: auto 20px -16px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(15, 22, 20, 0.46), rgba(15, 22, 20, 0) 72%);
  filter: blur(10px);
  opacity: 0.94;
}

.home-core-stat {
  --core-color: rgba(159, 212, 244, 0.9);
  border: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 66px;
  margin: 0;
  padding: 8px 5px 7px;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 48%);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 150ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  border: 1px solid rgba(255, 255, 255, 0.035);
  position: relative;
  overflow: hidden;
}

.home-core-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 44%);
  opacity: 0.7;
  pointer-events: none;
}

.home-core-stat:hover,
.home-core-stat:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 48%);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.028),
    0 10px 16px rgba(3, 8, 10, 0.22);
}

.home-core-stat:active,
.home-core-stat.home-core-stat--active {
  transform: translateY(1px) scale(0.988);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 48%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 14px 20px rgba(3, 8, 10, 0.24),
    0 0 18px rgba(143, 198, 170, 0.18);
}

.home-core-stat__icon-wrap {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  opacity: 0.96;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-core-stat__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.home-core-stat__value {
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #f3f7f3;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.home-core-stat__track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(214, 229, 236, 0.12);
  overflow: hidden;
}

.home-core-stat__fill {
  display: block;
  width: calc(var(--value) * 1%);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    var(--core-color);
  box-shadow:
    0 0 8px rgba(143, 198, 170, 0.18),
    0 0 2px rgba(143, 198, 170, 0.24);
}

.home-core-stat--water {
  --core-color: #6bc8ff;
}

.home-core-stat--nutrients {
  --core-color: #74d888;
}

.home-core-stat--stress {
  --core-color: #e8a94d;
}

.home-core-stat--risk {
  --core-color: #ec7e7e;
}

#coreStatsBar > .home-core-stat {
  width: 100%;
  max-width: none;
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: center;
  justify-self: stretch;
  align-self: stretch;
  gap: 6px;
  min-width: 0;
  min-height: 66px;
  margin: 0;
  padding: 8px 5px 7px;
  box-sizing: border-box;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 48%);
  box-shadow: none;
  outline: none;
  outline-offset: 0;
  transform: none;
  will-change: auto;
}

#coreStatsBar > .home-core-stat::after {
  content: none;
}

#coreStatsBar > .home-core-stat:hover,
#coreStatsBar > .home-core-stat:focus-visible {
  outline: none;
  outline-offset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 48%);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.028),
    0 10px 16px rgba(3, 8, 10, 0.22);
}

#coreStatsBar > .home-core-stat:active,
#coreStatsBar > .home-core-stat.home-core-stat--active {
  transform: translateY(1px) scale(0.988);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 48%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 14px 20px rgba(3, 8, 10, 0.24),
    0 0 18px rgba(143, 198, 170, 0.18);
}

.home-stat-popup {
  position: absolute;
  z-index: 13;
  width: 258px;
  max-width: calc(100% - 16px);
  min-height: 96px;
  padding: 16px 16px 15px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(20, 26, 30, 0.97), rgba(11, 16, 19, 0.98)),
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 30%);
  border: 1px solid rgba(188, 216, 194, 0.16);
  box-shadow:
    0 24px 40px rgba(2, 6, 9, 0.48),
    0 10px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  backdrop-filter: blur(14px) saturate(1.04);
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: bottom center;
  transition: opacity 150ms cubic-bezier(0.22, 1, 0.36, 1), transform 150ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease;
  will-change: transform, opacity;
}

.home-stat-popup::before,
.home-stat-popup::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-stat-popup::before {
  inset: 8px 14px auto;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(255, 239, 206, 0.16) 18%, rgba(255, 239, 206, 0.16) 82%, rgba(0, 0, 0, 0));
}

.home-stat-popup::after {
  inset: auto 18px -14px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(12, 18, 19, 0.52), rgba(12, 18, 19, 0) 72%);
  filter: blur(10px);
  opacity: 0.8;
}

.home-stat-popup.hidden {
  opacity: 0;
  transform: translateY(6px) scale(0.95);
  pointer-events: none;
}

.home-stat-popup__title {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.015em;
  color: #f2f6f2;
  font-weight: 700;
}

.home-stat-popup__copy,
.home-stat-popup__trend {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.38;
  color: rgba(221, 235, 229, 0.92);
}

.home-stat-popup__trend {
  margin-top: 5px;
  font-size: 12px;
  color: rgba(183, 204, 193, 0.88);
}

.home-stat-popup__action {
  margin-top: 12px;
  min-height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(149, 214, 177, 0.28);
  background:
    linear-gradient(180deg, rgba(42, 92, 68, 0.94), rgba(24, 61, 42, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(190, 245, 214, 0.12), rgba(190, 245, 214, 0) 46%);
  color: #f2fff7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), border-color 140ms ease, filter 160ms ease, box-shadow 160ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.2);
}

.home-stat-popup__action:hover,
.home-stat-popup__action:focus-visible {
  border-color: rgba(169, 233, 198, 0.4);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 12px 22px rgba(0, 0, 0, 0.24);
}

.home-stat-popup__action:active {
  transform: translateY(1px) scale(0.985);
}

.home-stat-popup[data-stat="water"] {
  border-color: rgba(118, 204, 255, 0.26);
  box-shadow:
    0 24px 40px rgba(2, 6, 9, 0.48),
    0 10px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 2px 0 0 rgba(118, 204, 255, 0.4);
}

.home-stat-popup[data-stat="nutrients"] {
  border-color: rgba(127, 214, 144, 0.26);
  box-shadow:
    0 24px 40px rgba(2, 6, 9, 0.48),
    0 10px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 2px 0 0 rgba(127, 214, 144, 0.36);
}

.home-stat-popup[data-stat="stress"] {
  border-color: rgba(236, 186, 104, 0.28);
  box-shadow:
    0 24px 40px rgba(2, 6, 9, 0.48),
    0 10px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 2px 0 0 rgba(236, 186, 104, 0.34);
}

.home-stat-popup[data-stat="risk"] {
  border-color: rgba(230, 128, 128, 0.28);
  box-shadow:
    0 24px 40px rgba(2, 6, 9, 0.48),
    0 10px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 2px 0 0 rgba(230, 128, 128, 0.34);
}

@media (max-width: 390px) {
  .home-core-stats-bar {
    left: auto;
    right: auto;
  }

  .home-stat-popup {
    width: 242px;
  }
}

/* Final premium polish pass: preserve the stable layout, elevate materiality and motion. */
.home-screen {
  --home-premium-rim: rgba(246, 234, 204, 0.12);
  --home-premium-card-border: rgba(196, 217, 202, 0.18);
  --home-premium-card-shadow:
    0 22px 46px rgba(2, 6, 9, 0.38),
    0 10px 18px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 251, 238, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  --home-premium-emerald-glow: rgba(118, 226, 178, 0.18);
  --home-premium-gold-glow: rgba(234, 196, 107, 0.16);
}

.home-stage::before {
  content: "";
  top: calc(var(--home-safe-top) + 96px);
  bottom: 112px;
  width: min(84vw, 380px);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(126, 223, 175, 0.08), rgba(126, 223, 175, 0.02) 36%, rgba(126, 223, 175, 0) 74%),
    radial-gradient(ellipse at 50% 88%, rgba(9, 14, 16, 0.34), rgba(9, 14, 16, 0) 72%);
  filter: blur(42px);
  opacity: 0.92;
  z-index: 0;
  animation: home-hero-breathe 11s ease-in-out infinite;
}

.home-stage::after {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(13, 19, 19, 0.76) 18%, rgba(13, 19, 19, 0.16) 58%, rgba(13, 19, 19, 0) 100%),
    radial-gradient(ellipse at 50% 28%, rgba(120, 220, 176, 0.16), rgba(120, 220, 176, 0.04) 40%, rgba(120, 220, 176, 0) 72%),
    radial-gradient(ellipse at 50% 0%, rgba(230, 195, 115, 0.1), rgba(230, 195, 115, 0) 48%);
  filter: blur(22px);
}

.home-scene-fixed::before {
  width: min(78vw, 304px);
  height: 132px;
  bottom: 6px;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(231, 197, 111, 0.14), rgba(231, 197, 111, 0.03) 34%, rgba(231, 197, 111, 0) 74%),
    radial-gradient(ellipse at 50% 62%, rgba(12, 18, 19, 0.82) 18%, rgba(12, 18, 19, 0.18) 60%, rgba(12, 18, 19, 0) 100%);
  filter: blur(22px);
  opacity: 0.92;
  animation: home-hero-breathe 9s ease-in-out infinite;
}

.home-scene-fixed::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: min(66vw, 258px);
  height: 42px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 246, 220, 0.08), rgba(255, 246, 220, 0) 48%),
    radial-gradient(ellipse at 50% 50%, rgba(112, 219, 168, 0.18), rgba(112, 219, 168, 0) 74%);
  filter: blur(14px);
  opacity: 0.9;
  pointer-events: none;
  animation: home-hero-breathe 7.6s ease-in-out infinite 0.8s;
}

.home-plant-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 82%;
  height: 78%;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 26%, rgba(118, 227, 176, 0.16), rgba(118, 227, 176, 0.05) 34%, rgba(118, 227, 176, 0) 72%),
    radial-gradient(ellipse at 50% 74%, rgba(10, 14, 16, 0.12), rgba(10, 14, 16, 0) 72%);
  filter: blur(24px);
  opacity: 0.74;
  pointer-events: none;
}

.home-plant-canvas {
  filter:
    saturate(1.08)
    contrast(1.02)
    drop-shadow(0 24px 24px rgba(0, 0, 0, 0.56))
    drop-shadow(0 0 22px rgba(111, 255, 177, 0.16))
    drop-shadow(0 -8px 18px rgba(240, 201, 115, 0.06));
}

.home-player-panel,
.harvest-mini-card,
.home-climate-card,
.home-progress-panel,
.home-core-stats-bar,
.home-stat-popup {
  isolation: isolate;
}

.home-player-panel {
  border-color: var(--home-premium-card-border);
  background:
    linear-gradient(180deg, rgba(13, 23, 19, 0.96), rgba(8, 15, 13, 0.98)),
    radial-gradient(circle at 14% 8%, rgba(112, 226, 166, 0.1), rgba(112, 226, 166, 0) 38%),
    radial-gradient(circle at 88% 0%, rgba(233, 197, 111, 0.08), rgba(233, 197, 111, 0) 32%);
  box-shadow:
    0 18px 34px rgba(2, 6, 9, 0.34),
    0 8px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(250, 255, 250, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
  backdrop-filter: blur(12px) saturate(1.04);
}

.home-player-panel::before,
.home-player-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-player-panel::before {
  inset: 8px 14px auto;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(255, 244, 214, 0.14) 20%, rgba(255, 244, 214, 0.14) 80%, rgba(0, 0, 0, 0));
}

.home-player-panel::after {
  inset: auto 18px -12px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(12, 18, 18, 0.5), rgba(12, 18, 18, 0) 72%);
  filter: blur(8px);
  opacity: 0.8;
}

.home-player-name,
.home-progress-title {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.24);
}

.home-player-role,
.home-player-xp,
.home-progress-day,
.home-progress-inline-label {
  letter-spacing: 0.09em;
}

.harvest-mini-card,
.home-climate-card {
  border-color: rgba(185, 217, 196, 0.18);
  box-shadow:
    0 16px 30px rgba(2, 6, 9, 0.3),
    0 8px 14px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.home-progress-panel,
.home-core-stats-bar {
  border-color: var(--home-premium-card-border);
  box-shadow: var(--home-premium-card-shadow);
}

.home-progress-panel {
  background:
    linear-gradient(180deg, rgba(19, 25, 27, 0.95), rgba(10, 14, 17, 0.98)),
    radial-gradient(circle at 86% 14%, rgba(233, 197, 111, 0.13), rgba(233, 197, 111, 0) 36%),
    radial-gradient(circle at 12% 10%, rgba(117, 197, 159, 0.1), rgba(117, 197, 159, 0) 30%);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.home-progress-panel:hover,
.home-progress-panel:focus-within {
  transform: translateY(-1px);
  border-color: rgba(210, 224, 202, 0.22);
  box-shadow:
    0 24px 42px rgba(2, 6, 9, 0.4),
    0 10px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 251, 238, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.home-progress-title {
  font-size: 21px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.home-progress-day {
  color: rgba(227, 236, 230, 0.74);
}

.home-progress-grow strong,
.home-progress-time,
.home-progress-event,
.home-core-stat__value {
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.home-progress-time,
.home-progress-event {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.home-progress-boost {
  color: rgba(240, 245, 241, 0.8);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.home-progress-event-label {
  color: rgba(247, 203, 122, 0.88);
}

.home-core-stats-bar {
  background:
    linear-gradient(180deg, rgba(20, 26, 30, 0.94), rgba(10, 14, 17, 0.96)),
    radial-gradient(circle at 16% 0%, rgba(124, 203, 166, 0.1), rgba(124, 203, 166, 0) 34%),
    radial-gradient(circle at 86% 0%, rgba(226, 193, 118, 0.11), rgba(226, 193, 118, 0) 36%);
}

.home-core-stats-bar::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(14, 21, 20, 0.52), rgba(14, 21, 20, 0) 72%),
    radial-gradient(circle at 50% 12%, rgba(116, 216, 170, 0.16), rgba(116, 216, 170, 0) 58%);
}

.home-core-stat {
  transition:
    transform 150ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
}

.home-core-stat__icon-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 54%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 12px rgba(0, 0, 0, 0.16);
}

.home-core-stat__value {
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.home-core-stat__track {
  background: rgba(228, 237, 233, 0.11);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.34);
}

.home-core-stat__fill {
  transition: width 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  box-shadow:
    0 0 10px rgba(143, 198, 170, 0.22),
    0 0 3px rgba(143, 198, 170, 0.28);
}

.home-stat-popup {
  background:
    linear-gradient(180deg, rgba(20, 26, 30, 0.975), rgba(10, 15, 18, 0.985)),
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 14% 0%, rgba(117, 200, 160, 0.06), rgba(117, 200, 160, 0) 34%);
  box-shadow:
    0 28px 46px rgba(2, 6, 9, 0.5),
    0 12px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.home-stat-popup__title {
  font-size: 15px;
  letter-spacing: 0.012em;
}

.home-stat-popup__copy {
  color: rgba(228, 238, 232, 0.94);
}

.home-stat-popup__trend {
  color: rgba(194, 214, 203, 0.9);
}

.home-stat-popup__action {
  min-height: 36px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 20px rgba(0, 0, 0, 0.22);
}

#boostActionBtn,
.home-action-panel #skipNightActionBtn {
  isolation: isolate;
}

#boostActionBtn::before,
.home-action-panel #skipNightActionBtn::before {
  inset: 14% 12% 24%;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 244, 214, 0.18), rgba(255, 244, 214, 0.06) 28%, rgba(255, 244, 214, 0) 62%),
    radial-gradient(circle at 50% 64%, rgba(11, 17, 19, 0.72), rgba(11, 17, 19, 0.22) 48%, rgba(11, 17, 19, 0) 82%);
  filter: blur(12px);
  opacity: 0.74;
  transform: scale(0.98);
}

#boostActionBtn::after,
.home-action-panel #skipNightActionBtn::after {
  content: "";
  position: absolute;
  inset: 16px 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(215, 227, 216, 0.16);
  background:
    linear-gradient(180deg, rgba(20, 28, 28, 0.92), rgba(10, 14, 16, 0.96)),
    radial-gradient(circle at 50% 18%, rgba(255, 244, 212, 0.12), rgba(255, 244, 212, 0) 42%),
    radial-gradient(circle at 50% 100%, rgba(116, 216, 170, 0.08), rgba(116, 216, 170, 0) 42%);
  box-shadow:
    0 18px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  z-index: 0;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
}

#boostActionBtn .home-action-icon,
#boostActionBtn .home-action-title,
#boostActionBtn .home-boost-tag,
.home-action-panel #skipNightActionBtn .home-action-icon,
.home-action-panel #skipNightActionBtn .home-action-title,
.home-action-panel #skipNightActionBtn .home-action-cost-tag {
  position: relative;
  z-index: 1;
}

#boostActionBtn .home-action-title,
.home-action-panel #skipNightActionBtn .home-action-title {
  color: rgba(238, 244, 239, 0.92);
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#boostActionBtn .home-action-icon,
.home-action-panel #skipNightActionBtn .home-action-icon {
  filter:
    saturate(1.02)
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.05));
}

.home-action-panel #skipNightActionBtn .home-action-cost-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 34px;
  min-height: 18px;
  padding: 2px 6px 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 217, 121, 0.34);
  background:
    linear-gradient(180deg, rgba(34, 30, 17, 0.98), rgba(18, 15, 8, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(255, 238, 184, 0.12), rgba(255, 238, 184, 0) 52%);
  color: #ffe5a1;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

#boostActionBtn:not(:disabled)::after,
.home-action-panel #skipNightActionBtn:not(:disabled):not(.hidden)::after {
  border-color: rgba(224, 234, 224, 0.22);
  box-shadow:
    0 20px 28px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 0 0 1px rgba(255, 255, 255, 0.022),
    0 0 24px rgba(118, 216, 170, 0.1);
  animation: premium-orb-ready 4.8s ease-in-out infinite;
}

#boostActionBtn:not(:disabled):hover,
#boostActionBtn:not(:disabled):focus-visible,
.home-action-panel #skipNightActionBtn:not(:disabled):not(.hidden):hover,
.home-action-panel #skipNightActionBtn:not(:disabled):not(.hidden):focus-visible {
  transform: translateY(-2px) scale(1.01);
}

#boostActionBtn:not(:disabled):hover::after,
#boostActionBtn:not(:disabled):focus-visible::after,
.home-action-panel #skipNightActionBtn:not(:disabled):not(.hidden):hover::after,
.home-action-panel #skipNightActionBtn:not(:disabled):not(.hidden):focus-visible::after {
  border-color: rgba(240, 244, 232, 0.28);
  box-shadow:
    0 22px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.026),
    0 0 26px rgba(130, 230, 182, 0.14);
}

#boostActionBtn:not(:disabled):active,
.home-action-panel #skipNightActionBtn:not(:disabled):not(.hidden):active {
  transform: translateY(1px) scale(0.986);
}

#boostActionBtn:not(:disabled):active::after,
.home-action-panel #skipNightActionBtn:not(:disabled):not(.hidden):active::after {
  transform: scale(0.98);
}

#boostActionBtn .home-boost-tag {
  border-color: rgba(255, 217, 61, 0.38);
  background:
    linear-gradient(180deg, rgba(59, 46, 12, 0.98), rgba(28, 20, 5, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(255, 240, 190, 0.14), rgba(255, 240, 190, 0) 54%);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 240, 190, 0.1);
}

@keyframes home-hero-breathe {
  0%,
  100% {
    opacity: 0.82;
    transform: translateX(-50%) scale(0.985);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.015);
  }
}

@keyframes premium-orb-ready {
  0%,
  100% {
    box-shadow:
      0 20px 28px rgba(0, 0, 0, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.11),
      inset 0 0 0 1px rgba(255, 255, 255, 0.022),
      0 0 20px rgba(118, 216, 170, 0.08);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 22px 32px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 0 0 1px rgba(255, 255, 255, 0.024),
      0 0 28px rgba(134, 230, 186, 0.14);
    filter: brightness(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-stage::before,
  .home-scene-fixed::before,
  .home-scene-fixed::after,
  #boostActionBtn:not(:disabled)::after,
  .home-action-panel #skipNightActionBtn:not(:disabled):not(.hidden)::after {
    animation: none !important;
  }
}

/* Final orb-family normalization: x24 + Night Shift as a matched premium pair. */
.home-action-panel #skipNightActionBtn {
  width: 112px;
  height: 112px;
}

#boostActionBtn::before,
.home-action-panel #skipNightActionBtn::before {
  inset: 18px 16px 30px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 244, 214, 0.2), rgba(255, 244, 214, 0.06) 30%, rgba(255, 244, 214, 0) 66%),
    radial-gradient(circle at 50% 92%, rgba(110, 218, 171, 0.12), rgba(110, 218, 171, 0) 62%);
  filter: blur(10px);
  opacity: 0.6;
  transform: scale(0.98);
}

#boostActionBtn::after,
.home-action-panel #skipNightActionBtn::after {
  content: "";
  inset: 17px 15px 29px;
  border-radius: 999px;
  border: 1px solid rgba(223, 233, 222, 0.2);
  background:
    linear-gradient(180deg, rgba(21, 29, 29, 0.92), rgba(11, 15, 17, 0.96)),
    radial-gradient(circle at 50% 16%, rgba(255, 244, 212, 0.14), rgba(255, 244, 212, 0) 44%),
    radial-gradient(circle at 50% 100%, rgba(116, 216, 170, 0.08), rgba(116, 216, 170, 0) 48%);
  box-shadow:
    0 18px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 18px rgba(118, 216, 170, 0.08);
}

/* Coin economy final UI overrides */
.home-currency-stack {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.home-currency-stack::before {
  display: none;
}

.home-currency-row {
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(242, 204, 95, 0.22);
  background:
    radial-gradient(circle at top left, rgba(255, 225, 122, 0.16), rgba(255, 225, 122, 0) 56%),
    linear-gradient(180deg, rgba(28, 22, 10, 0.94), rgba(16, 14, 8, 0.94));
  color: #ffd76b;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 201, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.home-currency-row span {
  border: 1px solid rgba(255, 221, 106, 0.42);
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(229, 180, 56, 0.28);
  background: radial-gradient(circle at 35% 30%, #ffe78b 0%, #f1cb57 36%, #c89622 100%);
}

.figma-menu-entry--shop {
  border-color: rgba(242, 204, 95, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.14), rgba(255, 214, 102, 0) 54%),
    linear-gradient(180deg, rgba(22, 21, 14, 0.96), rgba(14, 14, 10, 0.96));
}

.figma-menu-entry--shop span {
  color: #fff0bf;
}

.figma-menu-entry--shop small {
  color: rgba(242, 225, 171, 0.82);
}

.figma-sheet-shop .sheet-content {
  display: grid;
  gap: 14px;
}

.coin-shop-list,
.coin-pack-list {
  display: grid;
  gap: 10px;
}

.coin-shop-card,
.coin-pack-card {
  width: 100%;
  border: 1px solid rgba(159, 203, 182, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 216, 105, 0.12), rgba(255, 216, 105, 0) 48%),
    linear-gradient(180deg, rgba(18, 25, 24, 0.96), rgba(10, 15, 14, 0.98));
  color: var(--text-main);
  padding: 14px;
  display: grid;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.coin-shop-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.coin-pack-card {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.coin-shop-card:hover,
.coin-shop-card:focus-visible,
.coin-pack-card:hover,
.coin-pack-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(242, 204, 95, 0.38);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.coin-shop-card:disabled,
.coin-pack-card:disabled {
  opacity: 0.54;
  transform: none;
  box-shadow: none;
}

.coin-shop-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 227, 138, 0.24), rgba(232, 168, 55, 0.16));
  border: 1px solid rgba(255, 220, 126, 0.28);
  color: #ffe9a8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.coin-shop-card__copy,
.coin-shop-card__meta,
.coin-pack-card__head {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.coin-shop-card__copy strong,
.coin-pack-card__head strong {
  font-size: 15px;
  line-height: 1.15;
  color: #f6fbff;
}

.coin-shop-card__copy small,
.coin-shop-card__meta small,
.coin-pack-card__head small {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(193, 210, 217, 0.82);
}

.coin-shop-card__meta {
  justify-items: end;
  text-align: right;
}

.coin-shop-card__meta strong,
.coin-pack-card__coins {
  color: #ffd86d;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.coin-pack-card__price {
  justify-self: end;
  align-self: center;
  color: #f7fbff;
  font-size: 15px;
  font-weight: 700;
}

.coin-pack-card--highlight {
  border-color: rgba(255, 214, 102, 0.42);
  background:
    radial-gradient(circle at top right, rgba(255, 219, 119, 0.22), rgba(255, 219, 119, 0) 46%),
    linear-gradient(180deg, rgba(31, 27, 13, 0.98), rgba(16, 15, 11, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 219, 119, 0.18),
    0 18px 32px rgba(0, 0, 0, 0.28);
}

.figma-sheet-insufficient-coins .insufficient-coins-content {
  display: grid;
  gap: 12px;
}

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

.insufficient-coins-metric {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(152, 173, 197, 0.2);
  background: rgba(13, 18, 27, 0.72);
}

.insufficient-coins-metric span {
  font-size: 11px;
  color: rgba(194, 211, 231, 0.78);
}

.insufficient-coins-metric strong {
  color: #f6fbff;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.insufficient-coins-metric--missing {
  border-color: rgba(246, 187, 86, 0.36);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 112, 0.14), rgba(255, 214, 112, 0) 48%),
    rgba(18, 17, 13, 0.84);
}

.insufficient-coins-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.insufficient-coins-cta {
  min-height: 48px;
}

@media (max-width: 420px) {
  .insufficient-coins-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .coin-shop-card,
  .coin-pack-card {
    padding: 12px;
    border-radius: 16px;
  }

  .coin-shop-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .coin-shop-card__meta {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }

  .coin-pack-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .coin-pack-card__price {
    justify-self: start;
  }
}

/* Night Shift alignment fix: left utility stack, directly above x24 boost */
.home-action-panel #skipNightActionBtn {
  left: 12px;
  right: auto;
  top: var(--home-left-nightshift-top);
  width: 112px;
  height: 112px;
}
