/* === Tokens === */
:root {
  --bg:        #07090c;
  --bg-card:   #0d1218;
  --bg-elev:  #131a23;
  --fg:        #d8e6da;
  --fg-dim:    #87968a;
  --accent:    #6cf06c;          /* terminal green — primary accent */
  --accent-dim:#3a8a3a;
  --gold:      #f0d76c;          /* warm — for warmth/achievements */
  --gold-dim:  #8a7a3a;
  --pink:      #f08aa6;          /* mom */
  --blue:      #6cb6f0;          /* dad */
  --orange:    #f0a05c;          /* son */
  --danger:    #e85a5a;
  --health:    #6cf06c;          /* same as accent */
  --mood:      #f0d76c;
  --warmth:    #f08aa6;
  --wealth:    #6cb6f0;
  --pad:       12px;
  --radius:    6px;
  --shadow:    0 0 0 1px rgba(108, 240, 108, 0.15), 0 4px 16px rgba(0, 0, 0, 0.4);
  --glow:      0 0 8px rgba(108, 240, 108, 0.5);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -100px, rgba(108, 240, 108, 0.06), transparent),
    radial-gradient(800px 400px at -10% 20%,  rgba(240, 215, 108, 0.04), transparent);
  color: var(--fg);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Source Han Sans SC", monospace;
  font-size: 14px;
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "status status"
    "notebook card-area";
  min-height: 100vh;
  letter-spacing: 0.01em;
}

/* === Status bar === */
#status-panel {
  grid-area: status;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(108, 240, 108, 0.15);
  background: linear-gradient(180deg, var(--bg-card), var(--bg));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.status-section { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.status-section--year {
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  text-shadow: var(--glow);
}
.status-section--year .season {
  color: var(--gold);
  margin-left: 6px;
}

/* Family stat blocks */
.member {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
  padding: 6px 10px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 3px solid var(--member-color, var(--accent));
}
.member--mom { --member-color: var(--pink); }
.member--dad { --member-color: var(--blue); }
.member--son { --member-color: var(--orange); }
.member__name {
  color: var(--member-color);
  font-weight: 600;
  font-size: 15px;
}
.member__bars { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.bar {
  display: inline-block;
  width: 60px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.bar__fill {
  display: block;
  height: 100%;
  background: var(--bar-color, var(--accent));
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s;
}
.bar--health .bar__fill { background: var(--health); }
.bar--mood   .bar__fill { background: var(--mood); }
/* low-stat warning glow */
.bar.low .bar__fill { background: var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.gauge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  min-width: 110px;
}
.gauge__label { color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px; }
.gauge__row { display: flex; gap: 6px; align-items: baseline; }
.gauge__value {
  font-weight: 600;
  color: var(--gauge-color, var(--accent));
  font-variant-numeric: tabular-nums;
}
.gauge--wealth { --gauge-color: var(--wealth); }
.gauge--warmth { --gauge-color: var(--warmth); }
.gauge--ach    { --gauge-color: var(--gold); }

/* number-change tick animation */
.gauge__value.tick { animation: tick 0.6s ease-out; }
@keyframes tick {
  0%   { transform: translateY(-2px); color: var(--accent); text-shadow: var(--glow); }
  100% { transform: translateY(0);    color: var(--gauge-color, var(--accent)); text-shadow: none; }
}

#export-notebook {
  background: transparent;
  color: var(--fg-dim);
  border: 1px solid rgba(108, 240, 108, 0.2);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  transition: all 0.2s;
}
#export-notebook:hover { color: var(--accent); border-color: var(--accent); }

/* === Card panel === */
#card-panel {
  grid-area: card-area;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  animation: card-fade 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes card-fade {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

#card-panel h2 {
  margin: 0;
  font-size: 22px;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  letter-spacing: 0.05em;
}

#card-panel p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  white-space: pre-wrap;
}

.scenario-img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.choice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.choice-list li { margin: 0; }
.choice-list button {
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  color: var(--fg);
  border: 1px solid rgba(108, 240, 108, 0.18);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  transition: transform 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
  position: relative;
}
.choice-list button::before {
  content: "▸";
  color: var(--accent-dim);
  margin-right: 10px;
  transition: color 0.18s, transform 0.18s;
}
.choice-list button:hover {
  background: var(--bg-elev);
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--glow);
}
.choice-list button:hover::before { color: var(--accent); transform: translateX(2px); }
.choice-list button:active { transform: translateX(2px) scale(0.99); }

/* === Notebook sidebar === */
#notebook-panel {
  grid-area: notebook;
  padding: 14px 12px;
  border-right: 1px solid rgba(108, 240, 108, 0.15);
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  background: linear-gradient(180deg, rgba(7, 9, 12, 0.5), var(--bg));
}
#notebook-panel h3 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-bottom: 1px dashed rgba(108, 240, 108, 0.2);
  padding-bottom: 8px;
}
.notebook-entry {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--accent-dim);
  font-size: 12px;
  line-height: 1.5;
  animation: entry-slide-in 0.4s ease-out;
}
.notebook-entry strong {
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.notebook-entry div { color: var(--fg-dim); }
@keyframes entry-slide-in {
  0%   { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* === Dialogs === */
dialog {
  background: var(--bg-card);
  color: var(--fg);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 24px 28px;
  min-width: 320px;
  box-shadow: var(--shadow), 0 0 28px rgba(108, 240, 108, 0.25);
  animation: dialog-pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}
@keyframes dialog-pop {
  0%   { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1);    opacity: 1; }
}

dialog button {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  margin-top: 14px;
  margin-right: 8px;
  transition: all 0.2s;
}
dialog button:hover { background: var(--accent); color: var(--bg); box-shadow: var(--glow); }

dialog input[type="text"], dialog input[type="number"] {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid rgba(108, 240, 108, 0.3);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  margin: 8px 0;
}
dialog input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--glow);
}

#dice-prompt, #name-prompt {
  font-size: 16px;
  color: var(--gold);
  margin: 0 0 6px;
}

/* === Achievement popup — celebratory === */
#achievement-dialog {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 32px rgba(240, 215, 108, 0.4);
  text-align: center;
  min-width: 480px;
  max-width: 720px;
  width: min(720px, calc(100vw - 64px));
  padding: 28px 32px;
  animation: ach-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes ach-pop {
  0%   { transform: scale(0.6) rotate(-3deg); opacity: 0; }
  60%  { transform: scale(1.06) rotate(1deg); opacity: 1; }
  100% { transform: scale(1)    rotate(0); }
}
#achievement-dialog h2 {
  color: var(--gold);
  margin: 0 0 8px;
  font-size: 22px;
  text-shadow: 0 0 12px rgba(240, 215, 108, 0.5);
  position: relative;
}
#achievement-dialog h2::before, #achievement-dialog h2::after {
  content: "✦";
  color: var(--gold);
  margin: 0 12px;
  opacity: 0.6;
}
#achievement-dialog p {
  color: var(--fg);
  font-size: 16px;
  line-height: 1.75;
  background: rgba(240, 215, 108, 0.06);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin: 14px 0 6px;
  white-space: pre-line;
  text-align: left;
  max-height: 60vh;
  overflow-y: auto;
}

/* === Year/season transition overlay === */
.transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1000;
  animation: overlay-fade 1.6s ease-in-out;
  pointer-events: none;
}
.transition-overlay__year {
  color: var(--accent);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-shadow: var(--glow);
}
.transition-overlay__season {
  color: var(--gold);
  font-size: 22px;
  letter-spacing: 0.3em;
}
@keyframes overlay-fade {
  0%, 100% { opacity: 0; }
  20%, 70% { opacity: 1; }
}

/* === Dice roll animation === */
.dice-rolling {
  display: inline-block;
  width: 36px; height: 36px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  text-align: center;
  line-height: 32px;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  margin: 8px 0;
  animation: dice-spin 0.7s ease-out;
}
@keyframes dice-spin {
  0%   { transform: rotate(0deg)  scale(0.8); }
  60%  { transform: rotate(360deg) scale(1.15); }
  100% { transform: rotate(720deg) scale(1); }
}

/* === Final score screen === */
.family-farewell {
  background: rgba(240, 215, 108, 0.06);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 14px 0;
  color: var(--fg);
  line-height: 1.7;
  font-style: italic;
}

/* === Year progress bar === */
.year-block { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.year-line  { display: flex; gap: 8px; align-items: baseline; }
.year-progress {
  position: relative;
  width: 220px;
  height: 6px;
  background: rgba(108, 240, 108, 0.08);
  border-radius: 3px;
  overflow: visible;
}
.year-progress__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--gold));
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 8px rgba(108, 240, 108, 0.4);
}
.year-progress__milestone {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 50%;
  cursor: help;
}

/* === Notebook live summary === */
.notebook-live {
  background: var(--bg-card);
  border: 1px solid rgba(108, 240, 108, 0.12);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.notebook-live__heading {
  font-size: 11px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2px;
}
.notebook-live__member {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 6px;
  border-left: 2px solid var(--member-color, var(--accent));
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.015);
}
.notebook-live__member.member--mom { --member-color: var(--pink); }
.notebook-live__member.member--dad { --member-color: var(--blue); }
.notebook-live__member.member--son { --member-color: var(--orange); }
.notebook-live__name {
  color: var(--member-color);
  font-weight: 600;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.notebook-live__bars {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 10px;
}
.notebook-live__family {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(108, 240, 108, 0.15);
}
.kv {
  display: inline-flex;
  gap: 3px;
  align-items: baseline;
}
.kv .k {
  color: var(--fg-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kv .v {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.kv--tap { cursor: pointer; padding: 2px 4px; border-radius: 3px; transition: background 0.15s; }
.kv--tap:hover, .kv--tap:focus { background: rgba(240, 215, 108, 0.1); outline: none; }

.badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: 0.05em;
  margin-left: 4px;
}
.badge--danger { background: rgba(232, 90, 90, 0.2); color: var(--danger); }
.badge--info   { background: rgba(108, 182, 240, 0.18); color: var(--blue); }

/* === Collapsible notebook entries === */
.nb-toggle {
  background: transparent;
  border: 1px solid rgba(108, 240, 108, 0.2);
  color: var(--fg-dim);
  border-radius: 3px;
  padding: 1px 6px;
  cursor: pointer;
  font-size: 11px;
  margin-left: 8px;
  font-family: inherit;
}
.nb-toggle:hover { border-color: var(--accent); color: var(--accent); }

.notebook-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.notebook-entry {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--accent-dim);
  font-size: 12px;
  line-height: 1.5;
  animation: entry-slide-in 0.4s ease-out;
  padding: 0;
  margin: 0;
}
.notebook-entry > summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
  user-select: none;
  transition: background 0.15s;
}
.notebook-entry > summary::-webkit-details-marker { display: none; }
.notebook-entry > summary::before {
  content: "▸";
  color: var(--accent-dim);
  margin-right: 4px;
  transition: transform 0.18s;
  font-size: 10px;
}
.notebook-entry[open] > summary::before { transform: rotate(90deg); }
.notebook-entry > summary:hover { background: rgba(108, 240, 108, 0.06); }

.entry__step    { color: var(--fg-dim); font-weight: 600; }
.entry__when    { color: var(--gold);   font-size: 11px; letter-spacing: 0.04em; }
.entry__choice  { color: var(--fg);     flex: 1 1 100%; padding-left: 14px; }
.entry__body    { padding: 4px 12px 10px 24px; }
.entry__effects { color: var(--fg-dim); font-size: 11px; line-height: 1.6; }
.entry__effects > div { padding-left: 0; }
.entry__dice {
  margin-top: 6px;
  font-size: 11px;
  color: var(--accent);
  background: rgba(108, 240, 108, 0.05);
  border-radius: 3px;
  padding: 3px 6px;
  display: inline-block;
}

.entry__snapshot {
  margin-top: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  border: 1px dashed rgba(108, 240, 108, 0.15);
  font-size: 11px;
}
.entry__snapshot table { border-collapse: collapse; width: 100%; }
.entry__snapshot th {
  text-align: left;
  font-size: 10px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 4px;
  font-weight: normal;
}
.entry__snapshot td { padding: 2px 4px; font-variant-numeric: tabular-nums; }
.entry__snapshot tr.member--mom td:first-child { color: var(--pink); }
.entry__snapshot tr.member--dad td:first-child { color: var(--blue); }
.entry__snapshot tr.member--son td:first-child { color: var(--orange); }
.entry__family {
  margin-top: 6px;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.entry__family strong { color: var(--accent); font-weight: 600; }

.ach-tap-link {
  color: var(--gold);
  text-decoration: underline dotted var(--gold-dim);
  cursor: pointer;
  transition: text-shadow 0.15s;
}
.ach-tap-link:hover, .ach-tap-link:focus {
  text-shadow: 0 0 6px rgba(240, 215, 108, 0.6);
  outline: none;
}

/* === Achievements list dialog === */
/* Scope to [open] so closed dialogs honor the user-agent's display:none. */
#achievements-list-dialog[open] {
  min-width: 460px;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
#achievements-list-body {
  overflow-y: auto;
  max-height: 60vh;
  padding-right: 4px;
}
.ach-total {
  background: rgba(240, 215, 108, 0.06);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--fg-dim);
  text-align: center;
}
.ach-row {
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--gold-dim);
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.ach-row:hover, .ach-row:focus {
  background: rgba(240, 215, 108, 0.08);
  border-left-color: var(--gold);
  outline: none;
  transform: translateX(2px);
}
.ach-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.ach-row__name { color: var(--gold); font-weight: 600; }
.ach-row__bonus { font-weight: 600; font-variant-numeric: tabular-nums; }
.ach-row__desc {
  color: var(--fg-dim);
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.5;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,20,28,0.92);
  color: var(--gold, #f0d76c);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  animation: toastFade 1.4s ease;
}
@keyframes toastFade {
  0% { opacity: 0; transform: translate(-50%, 8px); }
  15% { opacity: 1; transform: translate(-50%, 0); }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

.slot-list { display: flex; flex-direction: column; gap: 6px; min-width: 280px; }
.slot-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 6px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer; transition: background .12s ease;
}
.slot-row:hover { background: rgba(255,255,255,0.07); }
.slot-row--empty { opacity: .55; cursor: default; }
.slot-row--empty:hover { background: rgba(255,255,255,0.03); }
.slot-row__id { font-weight: 600; color: var(--gold, #f0d76c); }
.slot-row__meta { color: var(--fg-dim, #aaa); font-size: 13px; }

.start-dialog {
  border: none; padding: 32px 28px;
  background: linear-gradient(180deg, rgba(28,30,42,0.98) 0%, rgba(20,22,30,0.98) 100%);
  color: var(--fg, #eee);
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
  min-width: 360px;
}
.start-dialog::backdrop { background: rgba(0,0,0,0.75); }
.start-dialog__title {
  font-size: 32px; font-weight: 700; text-align: center;
  color: var(--gold, #f0d76c);
  letter-spacing: 2px; margin-bottom: 4px;
}
.start-dialog__subtitle {
  font-size: 13px; text-align: center;
  color: var(--fg-dim, #aaa);
  margin-bottom: 22px;
  letter-spacing: 1px;
}

#name-prompt { white-space: pre-line; line-height: 1.5; }

.stat-floater {
  position: fixed;
  transform: translate(-50%, -100%);
  font-weight: 700;
  font-size: 16px;
  pointer-events: none;
  z-index: 9998;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  animation: statFloat 1.5s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}
.stat-floater--up   { color: #6cf06c; }
.stat-floater--down { color: #f06c6c; }
@keyframes statFloat {
  0%   { opacity: 0; transform: translate(-50%, -50%); }
  15%  { opacity: 1; transform: translate(-50%, -100%); }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -180%); }
}

.stat-changes-toast {
  position: fixed;
  top: 70px;
  right: 16px;
  background: rgba(20,20,28,0.94);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 180px;
  max-width: 240px;
  z-index: 9997;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
  animation: statsToastIn 0.22s ease-out, toastFade 2s ease forwards;
  font-size: 13px;
}
.stat-changes-toast__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}
.stat-changes-toast__row--up   span:last-child { color: #6cf06c; }
.stat-changes-toast__row--down span:last-child { color: #f06c6c; }
@keyframes statsToastIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.continue-arrow {
  display: block;
  margin: 18px auto 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(240, 215, 108, 0.08);
  color: var(--gold);
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  animation: arrow-nudge 1.8s ease-in-out infinite;
}
.continue-arrow:hover {
  background: rgba(240, 215, 108, 0.18);
  box-shadow: 0 0 16px rgba(240, 215, 108, 0.5);
}
.continue-arrow:active {
  background: rgba(240, 215, 108, 0.3);
}
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
