/* Cold Storage — styles
   Palette: "Night market" */
:root {
  --bg: #141B3A;
  --bg-2: #1D2650;
  --panel: #232E60;
  --ice: #7FF6FF;
  --pink: #FF6AD5;
  --lime: #B6FF5C;
  --loss: #FF5470;
  --text: #F4F6FF;
  --muted: #AEB6DE;
  --radius: 22px;
  --display: "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-2) 0%, var(--bg) 60%);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  transition: background 0.6s ease;
}

.app {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ---------- Heat wave ---------- */
body.heat {
  animation: heat-pulse 1.6s ease-in-out infinite;
}
@keyframes heat-pulse {
  0%, 100% { background: radial-gradient(120% 80% at 50% 0%, #3A1F57 0%, var(--bg) 65%); }
  50%      { background: radial-gradient(120% 80% at 50% 0%, #6A1F4F 0%, #2A1640 65%); }
}
body.heat .cube-stage { animation: shimmer 0.9s ease-in-out infinite; }
@keyframes shimmer {
  0%, 100% { filter: none; transform: skewX(0); }
  50% { filter: blur(0.4px) hue-rotate(-8deg); transform: skewX(0.8deg); }
}
.heat-banner {
  font-family: var(--display);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: linear-gradient(90deg, var(--pink), var(--loss));
  border-radius: 999px;
  padding: 6px 14px;
  margin: 4px auto 0;
  box-shadow: 0 0 24px rgba(255, 84, 112, 0.6);
  animation: banner-in 0.4s ease-out;
  font-size: 14px;
}
@keyframes banner-in { from { transform: scale(0.7); opacity: 0; } }

/* ---------- HUD ---------- */
.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
}
.hud-title, .hud-stat {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
}
.hud-stat strong { color: var(--ice); }
.hud-actions { display: flex; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(127, 246, 255, 0.35);
  background: var(--panel);
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.icon-btn:focus-visible, .btn:focus-visible, .card:focus-visible, .chip:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

/* ---------- Cube ---------- */
.cube-stage {
  position: relative;
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 8px 0 4px;
  flex-shrink: 0;
}
.cube-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  transform-origin: 50% 100%;
  transition: transform 0.8s cubic-bezier(.3, 1.4, .5, 1);
  z-index: 2;
  margin-bottom: 10px;
}
.cube { width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(127, 246, 255, 0.45)); overflow: visible; }
.cube .face, .cube .sweat, .cube .sparkle { display: none; }
.cube[data-face="calm"] .face-calm,
.cube[data-face="happy"] .face-happy,
.cube[data-face="worried"] .face-worried,
.cube[data-face="shocked"] .face-shocked { display: inline; }
body.heat .cube .sweat { display: inline; animation: sweat 1s ease-in infinite; }
.cube.sparkling .sparkle { display: inline; animation: twinkle 0.9s ease-out; }
@keyframes sweat { from { transform: translateY(0); opacity: 1; } to { transform: translateY(14px); opacity: 0; } }
@keyframes twinkle { 0% { transform: scale(0); transform-origin: 100px 24px; } 50% { transform: scale(1.3); transform-origin: 100px 24px; } 100% { transform: scale(1); transform-origin: 100px 24px; } }

.cube-wrap.bump { animation: bump 0.5s ease-out; }
@keyframes bump { 30% { transform: var(--cube-scale) rotate(-6deg); } 60% { transform: var(--cube-scale) rotate(5deg); } }

/* Drips: little drops sliding off the bottom of the cube */
.drips { position: absolute; left: 0; right: 0; bottom: 4px; height: 0; }
.drips span {
  position: absolute;
  top: 0;
  width: 8px; height: 12px;
  background: var(--ice);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0;
  animation: drip 2.4s ease-in infinite;
}
.drips span:nth-child(1) { left: 26%; animation-delay: 0s; }
.drips span:nth-child(2) { left: 55%; animation-delay: 0.9s; }
.drips span:nth-child(3) { left: 74%; animation-delay: 1.6s; }
body.heat .drips span { animation-duration: 1s; }
@keyframes drip {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(26px) scale(1); opacity: 0; }
}

.puddle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(127, 246, 255, 0.55), rgba(127, 246, 255, 0.08));
  transition: width 0.8s ease, height 0.8s ease;
  z-index: 1;
}

/* Chunk flying off on a loss */
.chunk {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: #BFFBFF;
  box-shadow: 0 0 10px var(--ice);
  z-index: 3;
  pointer-events: none;
  animation: chunk-fly 0.9s ease-out forwards;
}
@keyframes chunk-fly {
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* ---------- Screens ---------- */
main { flex: 1; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; animation: fade-in 0.35s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } }

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 52px;
  line-height: 0.95;
  margin: 6px 0 10px;
  color: var(--ice);
  text-shadow: 0 0 22px rgba(127, 246, 255, 0.55), 3px 3px 0 var(--pink);
}
.lede { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.how { list-style: none; padding: 0; margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 1.5; display: grid; gap: 10px; }
.how strong { color: var(--text); }
.key {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  font-weight: 800; margin-right: 6px; color: var(--bg);
}
.key-left { background: var(--pink); }
.key-right { background: var(--lime); }
.loading { color: var(--muted); font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  min-height: 50px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  color: var(--bg);
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--ice); box-shadow: 0 5px 0 #3BB7C6, 0 0 22px rgba(127, 246, 255, 0.35); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid rgba(244, 246, 255, 0.3); }
.btn-pass { background: var(--pink); box-shadow: 0 5px 0 #B63E97; flex: 1; }
.btn-accept { background: var(--lime); box-shadow: 0 5px 0 #7DBB32; flex: 1; }

/* ---------- Card ---------- */
.card-area { position: relative; width: 100%; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 210px; }
.card {
  position: relative;
  width: 100%;
  min-height: 200px;
  background: linear-gradient(160deg, #2B3875, var(--panel));
  border: 2px solid rgba(127, 246, 255, 0.35);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  text-align: left;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  display: flex;
  flex-direction: column;
}
.card.dragging { cursor: grabbing; transition: none; }
.card.snap { transition: transform 0.3s cubic-bezier(.3, 1.5, .5, 1); }
.card.fly { transition: transform 0.35s ease-in, opacity 0.35s ease-in; opacity: 0; }
.card.enter { animation: card-in 0.35s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes card-in { from { transform: translateY(30px) scale(0.92); opacity: 0; } }
.card.vanish { animation: vanish 0.6s ease-in forwards; }
@keyframes vanish { to { transform: scale(0.6) rotate(-4deg); opacity: 0; filter: blur(4px); } }

.card-title { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0 0 10px; color: var(--ice); }
.card-prompt { font-size: 18px; line-height: 1.45; margin: 0; font-weight: 700; flex: 1; }

.stamp {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  background: rgba(20, 27, 58, 0.9);
  z-index: 2;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  padding: 2px 12px;
  border-radius: 10px;
  border: 3px solid;
  opacity: 0;
  pointer-events: none;
}
.stamp-pass { right: 18px; color: var(--pink); border-color: var(--pink); transform: rotate(10deg); }
.stamp-accept { left: 18px; color: var(--lime); border-color: var(--lime); transform: rotate(-10deg); }

.timer { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.timer-bar { flex: 1; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.timer-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--loss), var(--pink)); border-radius: 999px; }
.timer-text { font-family: var(--display); font-weight: 700; color: var(--pink); min-width: 28px; text-align: right; }
.timer.urgent .timer-text { animation: urgent 0.5s ease-in-out infinite alternate; }
@keyframes urgent { to { transform: scale(1.25); color: var(--loss); } }

.swipe-buttons { display: flex; gap: 12px; width: 100%; margin-top: 16px; }

/* ---------- Feedback sheet ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(8, 11, 30, 0.6);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 10;
  animation: fade-in 0.2s ease-out;
}
.sheet {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border-radius: 26px 26px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  border-top: 3px solid var(--ice);
  animation: sheet-up 0.35s cubic-bezier(.3, 1.3, .5, 1);
  max-height: 88dvh;
  overflow-y: auto;
}
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet.loss { border-top-color: var(--loss); }
.sheet.gain { border-top-color: var(--lime); }
.fb-tags { display: flex; gap: 8px; margin-bottom: 8px; }
.tag {
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: var(--muted);
}
.tag.scam { background: var(--loss); color: var(--bg); }
.tag.trap { background: var(--pink); color: var(--bg); }
.tag.choice { background: var(--ice); color: var(--bg); }
.tag-depends { background: rgba(182, 255, 92, 0.18); color: var(--lime); }
.fb-outcome { font-family: var(--display); font-weight: 700; font-size: 24px; margin: 4px 0 4px; }
.sheet.loss .fb-outcome { color: var(--loss); }
.sheet.gain .fb-outcome { color: var(--lime); }
.fb-best { margin: 0 0 10px; color: var(--muted); font-size: 14px; font-weight: 700; }
.fb-why { font-size: 17px; line-height: 1.45; margin: 0 0 14px; }
.fb-term {
  background: rgba(127, 246, 255, 0.08);
  border: 2px dashed rgba(127, 246, 255, 0.4);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.fb-term strong { font-family: var(--display); font-size: 19px; color: var(--ice); }
.fb-term p { margin: 4px 0 0; color: var(--muted); line-height: 1.4; }
.new-word {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 12px;
  background: var(--lime); color: var(--bg);
  padding: 2px 8px; border-radius: 999px; margin-right: 6px;
  animation: pop 0.5s cubic-bezier(.3, 1.8, .5, 1);
}
@keyframes pop { from { transform: scale(0); } }
.sheet .btn { width: 100%; }

/* ---------- End ---------- */
.end-kicker { font-size: 18px; color: var(--muted); margin: 8px 0 0; font-weight: 700; }
.end-years { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1; }
#end-years { font-size: 72px; color: var(--ice); text-shadow: 3px 3px 0 var(--pink); }
#end-unit { font-size: 28px; }
.end-cause { font-size: 18px; font-weight: 800; margin: 12px 0 4px; }
.end-cause em { font-style: normal; color: var(--pink); }
.end-buttons { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.toast { min-height: 20px; color: var(--lime); font-weight: 700; }

/* ---------- Words ---------- */
.words-title { font-family: var(--display); font-size: 30px; margin: 4px 0 0; color: var(--ice); }
.words-count { color: var(--muted); margin: 4px 0 14px; font-weight: 700; }
.words-list { list-style: none; padding: 0; margin: 0 0 18px; width: 100%; text-align: left; display: grid; gap: 8px; }
.words-list li { background: var(--panel); border-radius: 14px; padding: 10px 14px; border: 2px solid rgba(127, 246, 255, 0.25); }
.words-list li strong { font-family: var(--display); color: var(--ice); font-size: 17px; }
.words-list li p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.words-list li.locked { opacity: 0.45; border-style: dashed; }
.words-list li.locked strong { color: var(--muted); letter-spacing: 0.2em; }

/* Words screen hides the cube to save space */
body.words-open .cube-stage, body.words-open .heat-banner { display: none; }
body.end-open .cube-stage { height: 90px; }
body.end-open .cube-wrap { width: 80px; height: 80px; }

/* ---------- v2: prices, inflation note, savings panel ---------- */
.price-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin: 2px 0 6px;
}
.price {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px; padding: 5px 4px; text-align: center;
  display: flex; flex-direction: column; line-height: 1.15;
}
.price-name { font-size: 10.5px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.price strong { font-family: var(--display); font-size: 15px; font-weight: 600; }
.price.up strong { animation: price-up 0.9s ease-out; }
@keyframes price-up { 0% { color: var(--loss); transform: translateY(-4px) scale(1.15); } 100% { color: var(--text); } }
body.heat .price strong { color: #FFB3C6; }

.infl-note {
  margin: 6px 0 0; font-size: 13.5px; line-height: 1.35; text-align: center; color: var(--muted);
}
.infl-note strong { color: var(--text); }
.infl-note.hot strong { color: var(--pink); }
.big-money { font-family: var(--display); font-size: 34px; color: var(--lime); }

.savings {
  background: rgba(35, 46, 96, 0.8);
  border: 2px solid rgba(127, 246, 255, 0.25);
  border-radius: 16px; padding: 8px 12px 9px; margin-bottom: 4px;
}
.savings-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.savings-row.small { font-size: 13px; color: var(--muted); margin-top: 5px; }
.savings-row.small strong { color: var(--ice); }
.savings-label { font-family: var(--display); font-weight: 600; color: var(--ice); font-size: 15px; }
.savings-balance { font-size: 14px; color: var(--muted); font-weight: 700; }
.savings-balance strong { font-family: var(--display); font-size: 20px; color: var(--text); margin-left: 4px; }
#yield-note.pos { color: var(--lime); font-weight: 800; }
#yield-note.neg { color: var(--loss); font-weight: 800; }
.bp-bar { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 6px; }
.bp-fill {
  height: 100%; width: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #4FD9E8, var(--ice));
  box-shadow: 0 0 12px rgba(127, 246, 255, 0.6);
  transition: width 0.8s cubic-bezier(.3, 1.2, .5, 1);
}
.bp-bar.low .bp-fill { background: linear-gradient(90deg, var(--loss), var(--pink)); box-shadow: 0 0 12px rgba(255, 84, 112, 0.6); }
.bp-bar.over .bp-fill { background: linear-gradient(90deg, var(--ice), var(--lime)); }

.money-pop {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  font-family: var(--display); font-weight: 700; font-size: 26px;
  pointer-events: none; opacity: 0; z-index: 4; white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.money-pop.neg { color: var(--loss); }
.money-pop.pos { color: var(--lime); }
.money-pop.show { animation: money-rise 1.4s ease-out; }
@keyframes money-rise {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.8); }
  15% { opacity: 1; transform: translate(-50%, 0) scale(1.1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -30px) scale(1); }
}
.fb-money { font-family: var(--display); font-weight: 700; font-size: 30px; margin: 2px 0 0; line-height: 1.1; }
.sheet.loss .fb-money { color: var(--loss); }
.sheet.gain .fb-money { color: var(--lime); }
.fb-outcome { font-size: 19px !important; color: var(--text) !important; }

/* ---------- v2: end-of-run recap ---------- */
.screen-end { padding-bottom: 12px; }
.recap {
  width: 100%; text-align: left;
  background: var(--panel); border-radius: 18px; padding: 14px 14px 12px;
  margin-top: 12px; border: 2px solid rgba(127, 246, 255, 0.18);
}
.recap-h { font-family: var(--display); font-weight: 600; font-size: 17px; margin: 0 0 8px; color: var(--ice); }
.chart svg { width: 100%; height: auto; display: block; }
.c-grid { stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.c-label { fill: var(--muted); font-size: 10px; font-family: var(--body); font-weight: 700; }
.c-heat { fill: rgba(255, 106, 213, 0.16); }
.c-gap { fill: rgba(255, 106, 213, 0.18); }
.c-bal { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-dasharray: 5 4; stroke-linejoin: round; }
.c-bp { fill: none; stroke: var(--ice); stroke-width: 3; stroke-linejoin: round; }
.c-loss { fill: var(--loss); stroke: var(--bg); stroke-width: 1.5; }
.c-gain { fill: var(--lime); stroke: var(--bg); stroke-width: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 6px; }
.sw { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.sw-bal { background: repeating-linear-gradient(90deg, var(--lime) 0 5px, transparent 5px 8px); }
.sw-bp { background: var(--ice); height: 5px; }
.sw-heat { background: rgba(255, 106, 213, 0.45); height: 10px; }
.chart-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.4; }

.tiles { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile {
  background: var(--panel); border-radius: 16px; padding: 12px; text-align: left;
  display: flex; flex-direction: column; gap: 2px; border: 2px solid rgba(255, 255, 255, 0.06);
  animation: tile-in 0.5s cubic-bezier(.3, 1.4, .5, 1) both;
}
.tile:nth-child(2) { animation-delay: 0.06s; } .tile:nth-child(3) { animation-delay: 0.12s; }
.tile:nth-child(4) { animation-delay: 0.18s; } .tile:nth-child(5) { animation-delay: 0.24s; }
.tile:nth-child(6) { animation-delay: 0.3s; }
@keyframes tile-in { from { opacity: 0; transform: translateY(10px) scale(0.95); } }
.tile strong { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.tile span { font-size: 13px; color: var(--muted); font-weight: 700; line-height: 1.25; }
.tile small { font-size: 12px; color: var(--muted); }
.tile.neg strong { color: var(--loss); }
.tile.pos strong { color: var(--lime); }
.tile.warm strong { color: var(--pink); }
.tile.ice strong { color: var(--ice); }

.calls-head { margin: 0 0 6px; color: var(--muted); font-weight: 700; }
.calls-head strong { font-family: var(--display); color: var(--text); font-size: 20px; }
.calls-bar { height: 12px; border-radius: 999px; background: rgba(255, 84, 112, 0.35); overflow: hidden; }
.calls-fill { height: 100%; background: var(--lime); border-radius: 999px; transition: width 1s ease; }
.moves { display: grid; gap: 8px; margin-top: 12px; }
.move {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 8px 12px;
}
.move span { grid-column: 1 / -1; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; color: var(--muted); }
.move strong { font-family: var(--display); font-weight: 600; }
.move em { font-style: normal; font-family: var(--display); font-weight: 700; }
.move.pos em { color: var(--lime); }
.move.neg em { color: var(--loss); }

.words-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
  background: rgba(127, 246, 255, 0.12); color: var(--ice);
  border: 2px solid rgba(127, 246, 255, 0.35);
}
.chip.new { background: rgba(182, 255, 92, 0.15); color: var(--lime); border-color: rgba(182, 255, 92, 0.55); }
.chip.new::after { content: " \2605"; }
.chip.on { background: var(--ice); color: var(--bg); border-color: var(--ice); }
.chip-def { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.chip-def strong { color: var(--text); }

.then-now { display: grid; gap: 6px; }
.tn-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: baseline; font-size: 15px; }
.tn-row span:first-child { color: var(--muted); font-weight: 700; }
.tn-then { color: var(--muted); text-decoration: line-through; }
.tn-arrow { color: var(--pink); }
.tn-row strong { font-family: var(--display); color: var(--pink); min-width: 64px; text-align: right; }
.end-buttons { margin-top: 16px; }

.cashout-btn {
  height: 40px; padding: 0 14px; border-radius: 999px;
  border: 2px solid rgba(182, 255, 92, 0.55); background: rgba(182, 255, 92, 0.12);
  color: var(--lime); font-family: var(--display); font-weight: 600; font-size: 15px; cursor: pointer;
}
.cashout-btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.sheet-cash { border-top-color: var(--lime); }
.sheet-cash .fb-money { color: var(--lime); font-size: 40px; }
.co-buttons { display: grid; gap: 10px; }

.stars { display: flex; gap: 6px; margin: 2px 0 10px; }
.star {
  font-size: 38px; line-height: 1; background: none; border: none; cursor: pointer; padding: 2px;
  color: rgba(255, 255, 255, 0.18); transition: transform 0.12s ease, color 0.12s ease;
}
.star.on { color: #FFD23F; text-shadow: 0 0 14px rgba(255, 210, 63, 0.55); }
.star:active { transform: scale(0.9); }
.star:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
.rate-label { display: block; font-size: 13.5px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
#rate-comment {
  width: 100%; resize: vertical; min-height: 70px; border-radius: 12px; padding: 10px 12px;
  background: rgba(20, 27, 58, 0.7); color: var(--text); border: 2px solid rgba(127, 246, 255, 0.3);
  font-family: var(--body); font-size: 15px;
}
#rate-comment:focus { outline: none; border-color: var(--ice); }
.rate-send { width: 100%; margin-top: 10px; }
.rate-msg { min-height: 18px; margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--lime); }

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