/* ==========================================================================
   ROLEX DAYTONA 126500LN // KOREAN AAA SEAMLESS EDITORIAL GAME UI (V3.0)
   彻底告别四角分块盒子 · 无边界融入画布 · 极强巨型字号对比（66px vs 9px）· 极简发丝线条
   ========================================================================== */
:root {
  --bg: #05070c;
  --accent: #f0c351;
  --accent-soft: rgba(240, 195, 81, 0.24);
  --crimson: #ff2b4a;
  --cyan: #6ce4ff;
  --ink: #ffffff;
  --ink-dim: rgba(235, 240, 250, 0.72);
  --ink-muted: rgba(205, 215, 236, 0.42);
  --hairline: rgba(255, 255, 255, 0.14);
  --display: "Avenir Next Condensed", "DIN Alternate", "Arial Narrow", "PingFang SC", sans-serif;
  --ui: "Avenir Next", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  cursor: grab;
}

#canvas-container:active {
  cursor: grabbing;
}

#canvas-container.is-hovering {
  cursor: pointer;
}

/* ==========================================================================
   无边界融入式 HUD 根容器（零四角方框，边缘自然柔影托底保证文字极端清晰）
   ========================================================================== */
.hud-root {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.35s ease;
  /* 左右两侧极柔暗角渐隐，底部彻底清空无遮挡 */
  background:
    linear-gradient(90deg, rgba(4, 6, 11, 0.66) 0%, rgba(4, 6, 11, 0.0) 26%, rgba(4, 6, 11, 0.0) 70%, rgba(4, 6, 11, 0.72) 100%);
}

.hud-root.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   左侧：韩系 3A 巨幅无框标题区 + 融合式大号计时读数与 4Hz 脉冲线（完全无框！）
   ========================================================================== */
.hero-left-column {
  position: absolute;
  top: 32px;
  left: 38px;
  bottom: 32px;
  width: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.hero-brand-block {
  position: relative;
  padding-left: 16px;
}

/* 韩系标志性左侧极细垂直金线标尺 */
.hero-brand-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(255, 255, 255, 0.12) 100%);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-giant-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 66px;
  line-height: 0.90;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.65);
}

.hero-sub-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}

.hero-ref-huge {
  font-family: var(--display);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.hero-cn-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}

.hero-micro-specs {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.hero-micro-specs strong {
  color: var(--ink-dim);
  font-weight: 600;
}

/* 左下融合区：超大斜体计时数字 + 极简透明 4Hz 示波线（零卡片边框！） */
.hero-telemetry-strip {
  pointer-events: auto;
  padding-left: 16px;
  border-left: 1px solid var(--hairline);
}

.chrono-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.chrono-state-dot {
  color: var(--accent);
  font-weight: 700;
}

.chrono-state-dot.is-running {
  color: var(--crimson);
}

.chrono-giant-readout {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 46px;
  line-height: 0.98;
  letter-spacing: 0.04em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.tachy-inline {
  margin-top: 4px;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

.tachy-inline strong {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.tachy-inline strong.is-hot {
  color: var(--crimson);
}

.scope-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  transition: transform 0.08s ease;
}

.pulse-dot.is-flash {
  transform: scale(1.6);
  background: var(--cyan);
}

#timegrapher-canvas {
  display: block;
  width: 248px;
  height: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 8px;
}

.tg-inline-stats {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.tg-inline-stats strong {
  display: block;
  margin-top: 1px;
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.pr-inline {
  width: 248px;
}

.pr-inline-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.pr-inline-row strong {
  color: var(--accent);
}

.pr-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.pr-fill {
  height: 100%;
  width: 81%;
  background: linear-gradient(90deg, var(--accent), #fff0b8);
  box-shadow: 0 0 10px var(--accent-soft);
  transition: width 0.2s ease;
}

/* ==========================================================================
   右侧：极简无框悬浮操控列（垂直居中留白 · 零盒子堆积 · 大号高反差快捷键帽！）
   ========================================================================== */
.right-seamless-rail {
  position: absolute;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  width: 214px;
  max-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: auto;
  overflow-y: auto;
  scrollbar-width: none;
}

.right-seamless-rail::-webkit-scrollbar {
  display: none;
}

.rail-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 大而醒目的游戏化高反差键帽（1-6 / Q / SPACE / R / W / E / L / X / M / H） */
.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border-radius: 4px;
  border: 1.5px solid rgba(245, 200, 76, 0.82);
  background: linear-gradient(180deg, rgba(245, 200, 76, 0.24) 0%, rgba(10, 14, 24, 0.92) 100%);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.72), 0 0 10px rgba(245, 200, 76, 0.14);
  font-family: var(--mono);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: #fff6d4;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.keycap-wide {
  min-width: 60px;
  padding: 0 10px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
}

/* 01. 涂装色卡单行胶囊（4 颗表盘配色球 + Q 键帽） */
.edition-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.edition-swatches {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edition-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 2px;
  transition: all 0.16s ease;
}

.ed-orb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ed-tag {
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.edition-btn:hover {
  color: #ffffff;
}

.edition-btn:hover .ed-orb {
  transform: scale(1.12);
  border-color: rgba(255, 255, 255, 0.75);
}

.edition-btn.is-active {
  color: var(--accent);
}

.edition-btn.is-active .ed-orb {
  transform: scale(1.18);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(245, 200, 76, 0.28), 0 0 14px rgba(245, 200, 76, 0.45);
}

/* 02. 6 视角纯无框极简右对齐列表（零方框堆积！） */
.cam-list {
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.cam-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  height: 30px;
  padding: 0 2px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.16s ease;
}

.cam-label {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  transition: transform 0.16s ease, color 0.16s ease;
}

.cam-btn:hover {
  color: #ffffff;
}

.cam-btn:hover .cam-label {
  transform: translateX(-3px);
}

.cam-btn.is-active {
  color: #ffffff;
}

.cam-btn.is-active .cam-label {
  font-size: 17px;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(245, 200, 76, 0.35);
}

.cam-btn.is-active .keycap {
  background: var(--accent);
  color: #090c12;
  border-color: #fff3c4;
  box-shadow: 0 0 14px rgba(245, 200, 76, 0.55);
}

/* 03. 主计时动作 + 无框轻指令行 + 单行变速 */
.mech-group {
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.kr-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  padding: 0 8px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
  color: var(--ink);
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.1em;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  transition: all 0.16s ease;
}

.kr-btn.is-primary {
  border-color: rgba(255, 43, 74, 0.88);
  background: linear-gradient(90deg, rgba(255, 43, 74, 0.42), rgba(255, 43, 74, 0.08));
}

.kr-btn.is-primary .keycap {
  border-color: #ff8296;
  background: linear-gradient(180deg, rgba(255, 43, 74, 0.52) 0%, rgba(28, 7, 13, 0.94) 100%);
  color: #ffffff;
}

.kr-btn.is-primary:hover {
  border-color: #ff5670;
  background: linear-gradient(90deg, rgba(255, 43, 74, 0.60), rgba(255, 43, 74, 0.14));
}

.kr-btn.is-primary.is-active {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(245, 200, 76, 0.40), rgba(245, 200, 76, 0.06));
  color: #fff8de;
}

.ghost-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.ghost-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 2px;
  border: none;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ghost-btn:hover {
  color: #ffffff;
}

.ghost-btn:hover .keycap {
  border-color: #ffffff;
  transform: translateY(-1px);
}

.ghost-btn.is-active {
  color: var(--cyan);
}

.ghost-btn.is-active .keycap {
  background: var(--cyan);
  color: #051018;
  border-color: #dcf8ff;
  box-shadow: 0 0 12px rgba(108, 228, 255, 0.45);
}

/* 极简发丝时间倍率条 */
.scale-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 2px;
}

.scale-btn {
  padding: 4px 0;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.scale-btn span {
  display: none;
}

.scale-btn:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.scale-btn.is-active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* 04. 拆解单行触发 + 极细滑轨 + 2×2 无框视效键 */
.fx-group {
  gap: 10px;
}

.explode-inline {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.explode-trigger {
  width: 100%;
}

.explode-pct {
  margin-left: auto;
  margin-right: 10px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

#explode-slider {
  width: 100%;
  height: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ==========================================================================
   悬浮零件扫描卡 & 极简顶部提示 & 纯享恢复键
   ========================================================================== */
.telemetry-card {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 25;
  width: 274px;
  padding: 10px 13px;
  background: rgba(6, 9, 16, 0.88);
  border-left: 2px solid var(--cyan);
  backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.telemetry-card.is-visible {
  opacity: 1;
}

.tele-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 0.14em;
}

.tele-name {
  margin: 4px 0 6px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
}

.tele-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--ink-dim);
}

.tele-row strong {
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}

.horology-toast {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translate(-50%, -10px);
  z-index: 30;
  padding: 6px 18px;
  background: rgba(8, 11, 19, 0.86);
  border-bottom: 1px solid var(--accent);
  color: #fff4cc;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.horology-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.restore-btn {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 35;
  width: auto;
  padding: 0 16px;
  opacity: 0;
  pointer-events: none;
}

.restore-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.fatal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 10, 0.92);
}

.fatal-overlay[hidden] {
  display: none;
}

.fatal-card {
  max-width: 460px;
  padding: 24px;
  background: #101522;
  border-left: 2px solid var(--accent);
  text-align: center;
}

.fatal-card h2 {
  font-family: var(--display);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 10px;
}

@media (max-width: 1120px) {
  .hero-giant-title { font-size: 46px; }
  .chrono-giant-readout { font-size: 34px; }
  .bottom-meta { display: none; }
}
