/* ===========================================================
   深海竞技 · 设计令牌
   手机竖屏优先；桌面端自动套一层手机外框便于开发预览
   =========================================================== */
:root {
  /* 背景 */
  --bg-0: #050b14;
  --bg-1: #08131f;
  --bg-2: #0b1c2b;

  /* 面板 */
  --panel: rgba(9, 24, 37, 0.72);
  --panel-solid: #0a1a27;
  --panel-line: rgba(120, 205, 225, 0.16);
  --panel-line-strong: rgba(130, 220, 240, 0.32);

  /* 金色（主 CTA / 奖励） */
  --gold-1: #fbeec0;
  --gold-2: #eccd85;
  --gold-3: #cfa04a;
  --gold-deep: #8a6320;
  --gold-glow: rgba(236, 205, 133, 0.45);

  /* 青色（数据 / 安全） */
  --teal-1: #6ff0e4;
  --teal-2: #2fd0c8;
  --teal-3: #168b95;

  /* 状态色 */
  --safe: #3ddc97;
  --warn: #f5c451;
  --danger: #ff5a52;
  --danger-deep: #a3201c;

  /* 文本 */
  --tx-1: #eef7fb;
  --tx-2: #a9c1d1;
  --tx-3: #6d8798;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;

  --shadow-panel: 0 8px 28px rgba(0, 0, 0, 0.45);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #04070c;
  color: var(--tx-1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}

#phone {
  position: relative;
  width: 100%;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
}

/* 桌面端：给个手机尺寸的画布，方便开发时看比例 */
@media (min-width: 560px) {
  body { display: flex; align-items: center; justify-content: center; background: #01040a; }
  #phone {
    width: 430px;
    height: min(932px, 96dvh);
    border-radius: 34px;
    border: 1px solid #1d3547;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  }
}

#app {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- 通用组件 ---------- */

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: screen-in 0.26s ease both;
}
@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.scroll-y {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.scroll-y::-webkit-scrollbar { width: 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(8px);
}

.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.center { display: flex; align-items: center; justify-content: center; }

.muted { color: var(--tx-2); }
.dim { color: var(--tx-3); }

/* 金色按钮 */
.btn-gold {
  position: relative;
  border: none;
  border-radius: 999px;
  padding: 16px 20px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #2b1c05;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 42%, var(--gold-3) 100%);
  box-shadow: 0 6px 22px rgba(207, 160, 74, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.08s ease, filter 0.16s ease;
}
.btn-gold:active { transform: scale(0.975); filter: brightness(1.05); }
.btn-gold[disabled] { filter: grayscale(0.6) brightness(0.7); }

/* 幽灵按钮 */
.btn-ghost {
  border: 1px solid var(--panel-line-strong);
  background: rgba(14, 40, 56, 0.6);
  color: var(--tx-1);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
}

/* 徽章 */
.badge-vip {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  color: #2b1c05;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  white-space: nowrap;
  flex: 0 0 auto;
}

.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--panel-line-strong);
  color: var(--tx-2);
}

/* 呼吸光 */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.pulse { animation: pulse-glow 1.6s ease-in-out infinite; }

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