/* ================================
   Hold'em Helper v2.0
   Design System: UI Pro Max (OLED Dark)
   Font: Russo One (headings) + Chakra Petch (body)
   ================================ */

/* ---- Reset & Variables ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ================== SYNTHWAVE PALETTE ================== */
  --bg-base: #13112E;
  /* 超深靛蓝，近乎黑 */
  --bg-card: #211E48;
  /* 深紫色卡片 */
  --bg-card-hover: #29265C;
  --bg-elevated: #312E6B;
  --bg-slot: rgba(14, 12, 34, 0.4);
  /* 卡槽内凹陷感极深背景 */

  --border: #3E3881;
  --border-light: #4F46E5;
  --border-glow: rgba(79, 70, 229, 0.5);

  --text-primary: #F8FAFC;
  --text-secondary: #C7D2FE;
  /* 柔光偏紫 */
  --text-dim: #818CF8;

  --accent-base: #4F46E5;
  /* 核心电竞蓝 */
  --accent-green: #2DD4BF;
  /* Retro-futurism Cyan/Teal (Win/Raise) */
  --accent-green-bg: rgba(45, 212, 191, 0.15);
  --accent-blue: #38BDF8;
  /* 明亮天蓝 */
  --accent-blue-bg: rgba(56, 189, 248, 0.15);
  --accent-yellow: #FACC15;
  --accent-yellow-bg: rgba(250, 204, 21, 0.15);
  --accent-orange: #F97316;
  /* 活力活力橙 (CTA) */
  --accent-orange-bg: rgba(249, 115, 22, 0.15);
  --accent-red: #F43F5E;
  /* 荧光粉红/玫红 (Lose/Fold) */
  --accent-red-bg: rgba(244, 63, 94, 0.15);
  --accent-purple: #C084FC;
  --accent-purple-bg: rgba(192, 132, 252, 0.15);

  /* Poker Suits - Glow adjusted */
  --suit-red: #FF2B5E;
  /* 高亮荧光红 */
  --suit-black: #E0E7FF;
  /* 冷白带蓝光 */

  /* Global Fonts */
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Playful Borders Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  /* Arcade Glows & 3D Shadows */
  --shadow-glow: 0 0 12px var(--border-glow);
  --shadow-glow-cyan: 0 0 15px rgba(45, 212, 191, 0.5);
  --shadow-glow-orange: 0 0 15px rgba(249, 115, 22, 0.5);

  /* 筹码/卡牌的 3D 厚度底部阴影 */
  --shadow-3d-btn: 0 4px 0 #1e1b4b, 0 5px 8px rgba(0, 0, 0, 0.5);
  --shadow-3d-btn-active: 0 1px 0 #1e1b4b, 0 1px 3px rgba(0, 0, 0, 0.5);

  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  --shadow-slot-inset: inset 0 5px 10px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.8);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html,
body {
  height: 100%;
  font-family: var(--font-body);
  font-weight: 500;
  /* Nunito looks better slightly heavier */
  background: var(--bg-base);
  color: var(--text-primary);
  /* 街机扫描线背景特效 overlay via background image */
  background-image: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
  background-size: 100% 4px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: contain;
  overflow: hidden;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* ---- App Layout ---- */
#app {
  max-width: 900px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: var(--safe-bottom);
}

/* ================================
   ① Top Bar
   ================================ */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-bar-left {
  display: flex;
  gap: 4px;
}

.top-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  min-height: 36px;
}

.top-btn:active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  transform: scale(0.96);
}

.app-title {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--text-primary);
  text-shadow: var(--shadow-glow-cyan);
}

.player-count-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  background: var(--accent-blue-bg);
  transition: all 0.2s;
  min-height: 36px;
}

.player-count-btn:active {
  transform: scale(0.96);
}

/* ================================
   ② Advice Zone
   ================================ */
.advice-zone {
  padding: 16px;
  flex-shrink: 0;
}

.advice-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  font-size: 14px;
}

.advice-placeholder-icon {
  display: flex;
  opacity: 0.5;
}

.advice-content {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 霓虹流光背景扫过效果 */
.advice-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: all 0.5s;
}

.advice-content:hover::before {
  animation: sweep 1.5s infinite;
}

@keyframes sweep {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

.advice-content.action-raise {
  border-color: var(--accent-green);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.1) 0%, var(--bg-card) 100%);
  box-shadow: inset 0 0 20px rgba(45, 212, 191, 0.1), 0 0 15px rgba(45, 212, 191, 0.3);
}

.advice-content.action-call {
  border-color: var(--accent-yellow);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.1) 0%, var(--bg-card) 100%);
  box-shadow: inset 0 0 20px rgba(250, 204, 21, 0.1), 0 0 15px rgba(250, 204, 21, 0.3);
}

.advice-content.action-fold {
  border-color: var(--accent-red);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.1) 0%, var(--bg-card) 100%);
  box-shadow: inset 0 0 20px rgba(244, 63, 94, 0.1), 0 0 15px rgba(244, 63, 94, 0.3);
}

.advice-content.action-check {
  border-color: var(--accent-blue);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.1) 0%, var(--bg-card) 100%);
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.1), 0 0 15px rgba(56, 189, 248, 0.3);
}

.advice-action {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 4px;
}

.action-raise .advice-action {
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--accent-green), 0 0 20px var(--accent-green);
}

.action-call .advice-action {
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--accent-yellow), 0 0 20px var(--accent-yellow);
}

.action-fold .advice-action {
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--accent-red), 0 0 20px var(--accent-red);
}

.action-check .advice-action {
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--accent-blue), 0 0 20px var(--accent-blue);
}

.advice-size {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.advice-reason {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.advice-meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.advice-strength,
.advice-outs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-label {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 28px;
}

.strength-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.5s ease;
  width: 0;
}

.strength-text {
  font-size: 12px;
  font-weight: 600;
  min-width: 32px;
  text-align: right;
}

.outs-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
}

/* ================================
   ③ Cards Zone
   ================================ */
.cards-zone {
  padding: 0 16px 12px;
  flex-shrink: 0;
}

.cards-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

.cards-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 2 1 4px;
  /* 手牌区 2个牌，产生 4px 的固定内部间距 */
  min-width: 0;
}

.cards-group-board {
  flex: 5 1 26px;
  /* 公共牌区 5个牌，产生 4个间距(16px)+2个分隔线(2px)+牌与分隔线的间距(8px)=26px 内部固定宽 */
  min-width: 0;
}

.cards-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.cards-slots {
  display: flex;
  gap: 4px;
  width: 100%;
}

.cards-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin-top: 22px;
  flex-shrink: 0;
}

.board-slots {
  flex-wrap: nowrap;
}

.street-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  opacity: 0.4;
  margin: 0;
  align-self: center;
  flex-shrink: 0;
}

.card-slot {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 5 / 7;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--bg-slot);
  box-shadow: var(--shadow-slot-inset);
  /* 深缩内凹感 */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 1px;
}

/* 未解锁的牌槽：灰显不可点 */
.card-slot.slot-locked {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.card-slot:active {
  transform: scale(0.95);
}

.slot-placeholder {
  font-size: 18px;
  color: var(--text-dim);
}

.card-slot.filled {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  /* 实体纸牌的浮起效果 */
  font-weight: 700;
  transform: translateY(-2px);
  /* 填入牌后微微浮起 */
}

.card-slot.filled.suit-spade,
.card-slot.filled.suit-club {
  color: var(--suit-black);
  border-color: rgba(226, 232, 240, 0.25);
}

.card-slot.filled.suit-heart,
.card-slot.filled.suit-diamond {
  color: var(--suit-red);
  text-shadow: 0 0 8px rgba(255, 43, 94, 0.4);
}

.card-slot .card-rank {
  font-size: 18px;
  line-height: 1;
  font-family: var(--font-body);
  font-weight: 700;
}

.card-slot .card-suit {
  font-size: 14px;
  line-height: 1;
}

/* ================================
   ④ Position Zone
   ================================ */
.position-zone {
  padding: 0 16px 12px;
  flex-shrink: 0;
}

.position-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: 6px;
}

.position-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pos-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.1s;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  /* 街机实体按键厚度 */
  box-shadow: var(--shadow-3d-btn);
  margin-bottom: 4px;
}

.pos-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.pos-zh {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1;
}

.pos-btn.selected .pos-zh {
  color: var(--accent-green);
  opacity: 0.8;
}

.pos-btn:active {
  transform: translateY(3px);
  /* 按下时下沉 */
  box-shadow: var(--shadow-3d-btn-active);
  margin-bottom: 1px;
  margin-top: 3px;
}

.pos-btn.selected {
  background: var(--accent-base);
  /* 电竞蓝主色 */
  border-color: var(--border-light);
  color: var(--text-primary);
  box-shadow: var(--shadow-3d-btn), var(--shadow-glow);
  /* 厚度 + 外发光 */
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* ================================
   ⑤ Opponent Zone (Tabs)
   ================================ */
.opponent-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 16px 16px;
  min-height: 120px;
}

.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  min-height: 44px;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}

.tab-btn:not(.active):hover {
  color: var(--text-secondary);
}

.tab-content {
  flex: 1;
}

.tab-panel {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-panel.active {
  display: flex;
}

.op-btn {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-heading);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.1s;
  min-height: 48px;
  /* 街机实体按键厚度 */
  box-shadow: var(--shadow-3d-btn);
  margin-bottom: 4px;
}

.op-btn:active {
  transform: translateY(3px);
  box-shadow: var(--shadow-3d-btn-active);
  margin-bottom: 1px;
  margin-top: 3px;
}

.op-btn.selected {
  background: var(--accent-purple-bg);
  border-color: var(--accent-purple);
  color: var(--text-primary);
  box-shadow: var(--shadow-3d-btn), 0 0 10px rgba(192, 132, 252, 0.5);
  /* 霓虹发光 */
  text-shadow: 0 0 6px rgba(192, 132, 252, 0.8);
}

/* ================================
   Card Selection Modal
   ================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.card-modal {
  width: 100%;
  max-width: 700px;
  background: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px 16px 32px;
  animation: slideUp 0.25s ease;
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 16px;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-dim);
  transition: all 0.2s;
}

.modal-close:active {
  background: var(--bg-elevated);
}

.modal-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

#modal-rank-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.rank-btn-modal {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-body);
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  min-height: 52px;
  /* 筹码厚度 */
  box-shadow: var(--shadow-3d-btn);
  margin-bottom: 4px;
}

.rank-btn-modal:active {
  background: var(--accent-base);
  border-color: var(--border-light);
  transform: translateY(3px);
  box-shadow: var(--shadow-3d-btn-active);
  margin-bottom: 1px;
  margin-top: 3px;
}

.rank-btn-modal.used {
  opacity: 0.2;
  pointer-events: none;
}

/* Suit indicator (shown on long-press) */
.suit-indicator {
  position: absolute;
  width: 160px;
  height: 160px;
  pointer-events: none;
  z-index: 110;
}

.suit-dir {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.suit-dir.active {
  transform: scale(1.3);
  border-color: var(--border-light);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-glow);
}

.suit-up {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.suit-right {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.suit-down {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.suit-left {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.suit-up.active {
  transform: translateX(-50%) scale(1.2);
}

.suit-right.active {
  transform: translateY(-50%) scale(1.2);
}

.suit-down.active {
  transform: translateX(-50%) scale(1.2);
}

.suit-left.active {
  transform: translateY(-50%) scale(1.2);
}

.suit-up {
  color: var(--suit-black);
}

.suit-right {
  color: var(--suit-red);
}

.suit-down {
  color: var(--suit-red);
}

.suit-left {
  color: var(--suit-black);
}

.suit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  background: var(--accent-green);
  color: var(--bg-base);
}

/* ================================
   Setup Modal
   ================================ */
.setup-modal {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  animation: scaleIn 0.3s ease;
  margin: auto;
  position: relative;
}

.setup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-dim);
  transition: all 0.2s;
  cursor: pointer;
}

.setup-close:active {
  background: var(--bg-elevated);
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.setup-logo {
  margin-bottom: 12px;
  color: var(--accent-green);
}

.setup-title {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 4px;
  text-shadow: var(--shadow-glow-cyan);
}

.setup-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.setup-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.setup-count-btn {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-heading);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: all 0.1s;
  min-height: 48px;
  box-shadow: var(--shadow-3d-btn);
  margin-bottom: 4px;
}

.setup-count-btn.selected {
  border-color: var(--border-light);
  background: var(--accent-base);
  color: var(--text-primary);
  box-shadow: var(--shadow-3d-btn), var(--shadow-glow);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.setup-count-btn:active {
  transform: translateY(3px);
  box-shadow: var(--shadow-3d-btn-active);
  margin-bottom: 1px;
  margin-top: 3px;
}

.setup-start-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  background: var(--accent-orange);
  color: var(--bg-base);
  transition: all 0.1s;
  min-height: 52px;
  box-shadow: 0 4px 0 #9A3412, 0 5px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 4px;
}

.setup-start-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.setup-start-btn:not(:disabled):active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #9A3412, 0 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 1px;
  margin-top: 3px;
}

/* ================================
   Utilities & Animations
   ================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Safari safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #app {
    padding-bottom: env(safe-area-inset-bottom);
  }
}