/* QUID phone-mockup + cyberpunk theme.
   Baseline theme pass — T3.4 can refine later. */

:root {
  --neon: #00ffc3;
  --magenta: #ff0080;
  --gold: #ffcc00;
  --base: #0a0a14;
  --panel: #12121d;
  --panel-2: #191926;
  --line: rgba(0, 255, 195, 0.15);
  --fg: #d6d6e0;
  --fg-dim: #8a8aa0;
  --danger: #ff4d6d;
  --warn: #ffa730;
}

/* DaisyUI "quid" theme — override the default palette so any daisy-themed
   components (btn, badge, bg-primary, etc.) pick up our cyberpunk colors. */
[data-theme="quid"] {
  --p: 163 100% 50%;    /* primary   — neon */
  --pc: 240 30% 6%;     /* primary content */
  --s: 329 100% 50%;    /* secondary — magenta */
  --sc: 240 30% 6%;
  --a: 48 100% 50%;     /* accent    — gold */
  --ac: 240 30% 6%;
  --n: 240 30% 12%;     /* neutral */
  --nc: 240 10% 85%;
  --b1: 240 30% 6%;     /* base-100  — base */
  --b2: 240 25% 10%;
  --b3: 240 20% 14%;
  --bc: 240 10% 85%;    /* base content */
  --in: 195 90% 55%;    /* info */
  --su: 163 100% 50%;   /* success */
  --wa: 35 100% 58%;    /* warning */
  --er: 348 100% 65%;   /* error */
}

body {
  background: radial-gradient(circle at 20% -10%, #1a0a2a 0%, var(--base) 55%) no-repeat;
  color: var(--fg);
  font-family: 'VT323', monospace;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.pixel { font-family: 'Press Start 2P', system-ui, monospace; letter-spacing: 0.5px; }
.neon    { color: var(--neon); }
.magenta { color: var(--magenta); }
.gold    { color: var(--gold); }
.dim     { color: var(--fg-dim); }

/* ---- Phone shell ---- */

.phone {
  width: 360px;
  height: 760px;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #1b1b26 0%, #0e0e17 100%);
  box-shadow:
    0 0 0 2px #2a2a3a,
    0 0 0 4px #0a0a14,
    0 30px 80px rgba(0, 255, 195, 0.08),
    0 10px 30px rgba(255, 0, 128, 0.08);
  position: relative;
  animation: crtFlicker 5.2s infinite steps(1, end);
}

/* Subtle CRT flicker — tiny, irregular dips in brightness. */
@keyframes crtFlicker {
  0%, 100%  { filter: brightness(1.00); }
  12%       { filter: brightness(0.97); }
  13%       { filter: brightness(1.01); }
  40%       { filter: brightness(1.00); }
  41%       { filter: brightness(0.95); }
  42%       { filter: brightness(1.00); }
  78%       { filter: brightness(0.98); }
  79%       { filter: brightness(1.02); }
  80%       { filter: brightness(1.00); }
}

@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
}

.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: #0a0a14;
  z-index: 2;
}

.screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: var(--base);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Subtle scanlines over the screen — cyberpunk flavor, low intensity. */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 10;
}

.status-bar {
  padding: 30px 18px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.app-area {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 14px;
  scrollbar-width: thin;
  scrollbar-color: #2a2a3a transparent;
}

.app-area::-webkit-scrollbar { width: 6px; }
.app-area::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 3px; }

.dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--line);
  padding: 8px 6px 10px;
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--fg-dim);
  padding: 6px 4px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
  font-size: 8px;
}

.dock-btn:hover { color: var(--fg); }
.dock-btn .icon { font-size: 18px; line-height: 1; }
.dock-btn.active {
  color: var(--neon);
  background: rgba(0, 255, 195, 0.08);
  text-shadow: 0 0 6px rgba(0, 255, 195, 0.6);
}

/* ---- Card primitives ---- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.card-tight { padding: 8px 10px; }

.card-h {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--fg-dim);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.sub-h {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--neon);
  letter-spacing: 1px;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  background: rgba(0, 255, 195, 0.1);
  color: var(--neon);
  border: 1px solid rgba(0, 255, 195, 0.25);
}

.pill.warn { background: rgba(255, 167, 48, 0.1); color: var(--warn); border-color: rgba(255, 167, 48, 0.3); }
.pill.bad  { background: rgba(255, 77, 109, 0.1); color: var(--danger); border-color: rgba(255, 77, 109, 0.3); }
.pill.dim  { background: rgba(255, 255, 255, 0.04); color: var(--fg-dim); border-color: rgba(255, 255, 255, 0.08); }

/* ---- Bars ---- */

.bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.bar > span {
  display: block;
  height: 100%;
  background: var(--neon);
  transition: width 0.3s ease;
}

.bar.warn > span   { background: var(--warn); }
.bar.bad  > span   { background: var(--danger); }
.bar.gold > span   { background: var(--gold); }
.bar.mag  > span   { background: var(--magenta); }

/* ---- Buttons (override DaisyUI where needed) ---- */

.btn-q {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 255, 195, 0.08);
  color: var(--neon);
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

.btn-q:hover:not(:disabled) { background: rgba(0, 255, 195, 0.18); }
.btn-q:active:not(:disabled) { transform: translateY(1px); }

.btn-q.mag    { background: rgba(255, 0, 128, 0.08); color: var(--magenta); border-color: rgba(255, 0, 128, 0.25); }
.btn-q.mag:hover:not(:disabled) { background: rgba(255, 0, 128, 0.18); }

.btn-q.muted  { background: rgba(255, 255, 255, 0.04); color: var(--fg-dim); border-color: rgba(255, 255, 255, 0.08); }
.btn-q.muted:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); color: var(--fg); }

.btn-q:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Credit score gauge ---- */

.gauge {
  --pct: 0;
  --band: var(--neon);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    conic-gradient(var(--band) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.05) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gauge::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--panel);
  border-radius: 50%;
}

.gauge-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}

.gauge-val   { font-family: 'Press Start 2P', monospace; font-size: 20px; color: var(--neon); }
.gauge-label { font-size: 11px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 1px; }

/* ---- Email / inbox ---- */

.inbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.1s;
  border: 1px solid transparent;
}

.inbox-row:hover { background: rgba(255, 255, 255, 0.03); border-color: var(--line); }
.inbox-row.unread { background: rgba(0, 255, 195, 0.04); border-color: rgba(0, 255, 195, 0.15); }

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  flex-shrink: 0;
}

.warn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff8800;
  box-shadow: 0 0 8px #ff8800;
  flex-shrink: 0;
}

.option-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
}

.option-card:hover:not(.disabled) {
  background: rgba(0, 255, 195, 0.05);
  border-color: rgba(0, 255, 195, 0.35);
}

.option-card.disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Locked product ---- */

.locked {
  opacity: 0.55;
  position: relative;
}

.locked::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 12px;
  height: 12px;
  background-image: url("/static/img/icon_lock.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---- Game over overlay ---- */

.game-over-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 0, 10, 0.94);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  gap: 12px;
  border-radius: 28px;
}

.game-over-overlay h2 {
  font-family: 'Press Start 2P', monospace;
  color: var(--danger);
  font-size: 16px;
  text-shadow: 0 0 12px rgba(255, 77, 109, 0.7);
}

/* ---- Modal ---- */

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 0, 10, 0.88);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 28px;
}

.modal-panel {
  width: 100%;
  max-width: 320px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 0 24px rgba(0, 255, 195, 0.15);
}

.option-card.selected {
  border-color: var(--neon);
  box-shadow: 0 0 8px rgba(0, 255, 195, 0.35);
}

.budget-input {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--fg);
  font-family: 'VT323', monospace;
  font-size: 14px;
  width: 100%;
}

.budget-input:focus {
  outline: none;
  border-color: var(--neon);
}

/* ---- Cyberpunk slider ---- */

.leisure-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 255, 195, 0.18) 0,
      rgba(0, 255, 195, 0.18) 1px,
      transparent 1px,
      transparent 10px
    ),
    linear-gradient(90deg, var(--magenta), var(--gold), var(--neon));
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 0, 128, 0.25);
}

.leisure-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 20px;
  background: var(--panel);
  border: 1px solid var(--neon);
  border-radius: 0;
  box-shadow:
    0 0 0 1px var(--magenta),
    0 0 10px var(--neon),
    0 0 18px var(--magenta);
  cursor: pointer;
  margin-top: -6px;
  transition: box-shadow 0.15s ease;
}

.leisure-slider::-webkit-slider-thumb:hover,
.leisure-slider:focus::-webkit-slider-thumb {
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 14px var(--neon),
    0 0 24px var(--magenta);
}

.leisure-slider::-moz-range-thumb {
  width: 10px;
  height: 20px;
  background: var(--panel);
  border: 1px solid var(--neon);
  border-radius: 0;
  box-shadow:
    0 0 0 1px var(--magenta),
    0 0 10px var(--neon),
    0 0 18px var(--magenta);
  cursor: pointer;
}

.leisure-slider::-moz-range-track {
  background: transparent;
  border: none;
}

.leisure-slider:focus {
  border-color: var(--neon);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 255, 195, 0.5);
}

/* ---- Cyberpunk radio ---- */

input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  position: relative;
  cursor: pointer;
  transform: rotate(45deg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

input[type="radio"]:hover {
  border-color: var(--neon);
  box-shadow: 0 0 6px rgba(0, 255, 195, 0.5);
}

input[type="radio"]:checked {
  border-color: var(--neon);
  box-shadow: 0 0 8px var(--neon), 0 0 14px var(--magenta);
}

input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, var(--neon), var(--magenta));
  box-shadow: 0 0 6px var(--neon);
}

input[type="radio"]:focus {
  outline: none;
  border-color: var(--gold);
}

/* ---- Day pulse in status bar ---- */

@keyframes datePulse {
  0%   { transform: scale(1);   text-shadow: none; color: var(--fg-dim); }
  25%  { transform: scale(1.18); color: var(--neon); text-shadow: 0 0 10px var(--neon), 0 0 20px var(--neon); }
  60%  { transform: scale(1.08); color: var(--neon); text-shadow: 0 0 6px var(--neon); }
  100% { transform: scale(1);   text-shadow: none; color: var(--fg-dim); }
}

.date-cluster {
  display: inline-block;
  transform-origin: center;
  will-change: transform, text-shadow, color;
}

.date-pulse {
  animation: datePulse 1.1s ease-out;
}

/* ---- Day advance popup (Persona3-style) ---- */

.day-advance-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  overflow: hidden;
  pointer-events: auto;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 0, 128, 0.25) 0%, rgba(5, 0, 10, 0.92) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: daFadeOut 1.8s ease forwards;
}

@keyframes daFadeOut {
  0%, 75% { opacity: 1; }
  100%    { opacity: 0; }
}

.da-stripe {
  position: absolute;
  left: -40%;
  width: 200%;
  height: 80px;
  background: linear-gradient(90deg, transparent, var(--magenta), var(--neon), transparent);
  opacity: 0.7;
  mix-blend-mode: screen;
  filter: blur(1px);
}

.da-stripe-1 {
  top: 30%;
  transform: rotate(-12deg);
  animation: daSwipe 0.7s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}

.da-stripe-2 {
  top: 55%;
  transform: rotate(-12deg);
  animation: daSwipe 0.7s 0.08s cubic-bezier(0.3, 0, 0.2, 1) forwards;
  opacity: 0.5;
}

@keyframes daSwipe {
  0%   { transform: translateX(-120%) rotate(-12deg); }
  100% { transform: translateX(0%)    rotate(-12deg); }
}

.da-content {
  position: relative;
  z-index: 2;
  transform: rotate(-6deg);
  text-align: center;
  color: var(--fg);
  animation: daPop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

@keyframes daPop {
  0%   { transform: rotate(-6deg) scale(0.4); opacity: 0; }
  60%  { transform: rotate(-6deg) scale(1.15); opacity: 1; }
  100% { transform: rotate(-6deg) scale(1);    opacity: 1; }
}

.da-dow {
  font-size: 14px;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon);
  letter-spacing: 3px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.da-date {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}

.da-month {
  font-size: 18px;
  color: var(--magenta);
  text-shadow: 0 0 12px var(--magenta);
  text-transform: uppercase;
}

.da-day-wrap {
  position: relative;
  display: inline-block;
  width: 1.4em;
  height: 1em;
  font-size: 56px;
  line-height: 1;
  vertical-align: baseline;
}

.da-day {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  color: var(--gold);
  text-shadow: 0 0 14px var(--gold), 0 0 28px var(--magenta);
}

.da-day-old {
  animation: daDayOut 0.55s 0.15s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

.da-day-new {
  opacity: 0;
  animation: daDayIn 0.5s 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

@keyframes daDayOut {
  0%   { transform: translateY(0);     opacity: 1; }
  100% { transform: translateY(-80%);  opacity: 0; }
}

@keyframes daDayIn {
  0%   { transform: translateY(80%);   opacity: 0; }
  60%  { transform: translateY(-6%);   opacity: 1; }
  100% { transform: translateY(0);     opacity: 1; }
}

.da-tag {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--fg);
  background: var(--magenta);
  display: inline-block;
  padding: 4px 10px;
  transform: skewX(-10deg);
  box-shadow: 0 0 12px rgba(255, 0, 128, 0.7);
}

/* ---- Skill level up ---- */

.lvlup-overlay {
  position: absolute;
  inset: 0;
  z-index: 26;
  overflow: hidden;
  pointer-events: auto;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 200, 0, 0.22) 0%, rgba(5, 0, 10, 0.92) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: daFadeOut 1.8s ease forwards;
}

.lvlup-stripe {
  position: absolute;
  left: -40%;
  width: 200%;
  height: 70px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--neon), transparent);
  opacity: 0.75;
  mix-blend-mode: screen;
  filter: blur(1px);
}

.lvlup-stripe-1 {
  top: 32%;
  transform: rotate(-10deg);
  animation: daSwipe 0.7s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}

.lvlup-stripe-2 {
  top: 54%;
  transform: rotate(-10deg);
  animation: daSwipe 0.7s 0.08s cubic-bezier(0.3, 0, 0.2, 1) forwards;
  opacity: 0.5;
}

.lvlup-content {
  position: relative;
  z-index: 2;
  transform: rotate(-5deg);
  text-align: center;
  animation: daPop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

.lvlup-title {
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold), 0 0 22px var(--magenta);
  margin-bottom: 14px;
}

.lvlup-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.lvlup-num {
  font-size: 48px;
  line-height: 1;
  color: var(--neon);
  text-shadow: 0 0 14px var(--neon);
}

.lvlup-num-new {
  color: var(--gold);
  text-shadow: 0 0 14px var(--gold), 0 0 28px var(--magenta);
  animation: lvlupPulse 0.7s 0.25s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.lvlup-arrow {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px var(--magenta));
}

@keyframes lvlupPulse {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

/* ---- Roll animation ---- */

@keyframes rollPulse {
  0%   { transform: scale(0.6); opacity: 0; }
  40%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.roll-result {
  animation: rollPulse 0.5s ease-out;
}

.flash-pass { color: var(--neon); text-shadow: 0 0 12px var(--neon); }
.flash-fail { color: var(--danger); text-shadow: 0 0 12px var(--danger); }

/* ---- Dev bar (outside the phone) ---- */

.dev-bar {
  position: fixed;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  font-size: 11px;
  opacity: 0.6;
}

.dev-bar:hover { opacity: 1; }

.dev-bar button {
  background: var(--panel);
  color: var(--fg-dim);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'VT323', monospace;
  font-size: 13px;
}

.dev-bar button:hover { color: var(--neon); }

/* ---- Toast ---- */

.toast {
  position: absolute;
  bottom: 68px;
  left: 14px;
  right: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  z-index: 15;
}

/* ---- Icons ---- */

.dock-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  object-fit: contain;
  filter: grayscale(0.4) brightness(1) saturate(3);
  transition: filter 0.15s;
}

.dock-btn.active .dock-icon {
  filter: grayscale(0) brightness(1.1) drop-shadow(0 0 4px var(--neon));
}

.dock-btn:hover:not(.active) .dock-icon {
  filter: grayscale(0.1) brightness(2.2) saturate(3.5);
}

.stat-icon {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
  object-fit: contain;
  opacity: 0.85;
}

/* ---- Transfer direction toggle ---- */

.transfer-toggle {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--fg);
  user-select: none;
  transition: border-color 120ms ease;
}
.transfer-toggle:hover { border-color: rgba(0, 255, 195, 0.35); }

.tt-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: color 200ms ease, opacity 200ms ease;
}
.tt-side.tt-active { color: var(--neon); }
.tt-side.tt-muted  { color: var(--fg-dim); opacity: 0.7; }

.tt-arrow-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.tt-arrow {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  object-fit: contain;
  transition: transform 260ms cubic-bezier(0.3, 1.4, 0.6, 1);
  transform: rotate(0deg);
  filter: drop-shadow(0 0 4px rgba(0, 255, 195, 0.4));
}
.tt-arrow.tt-flip { transform: rotate(180deg); }

/* ---- Mobile portrait: strip phone chrome, fill viewport ---- */

@media (max-width: 640px) and (orientation: portrait) {
  body { padding: 0; align-items: stretch; justify-content: stretch; background: var(--base); }
  .phone {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: var(--base);
  }
  .phone::before { display: none; }
  .screen { border-radius: 0; }
  .screen::after { display: none; }
  .status-bar { padding-top: 12px; }
  .dev-bar { display: none; }
}

/* ---- Utility ---- */

.divider { height: 1px; background: var(--line); margin: 8px 0; }
.row     { display: flex; align-items: center; justify-content: space-between; }
.col     { display: flex; flex-direction: column; }
.g-4     { gap: 4px; } .g-6 { gap: 6px; } .g-8 { gap: 8px; } .g-10 { gap: 10px; }
