/* ============================================================
   game.css  ·  ARCADE STATION
   整个游戏嵌入页被设计为一台街机主控台:
   - 中央带金属边的 CRT 显示器 + 角标 + 上下 HUD 数据条
   - 顶部"任务票据"票根(撕痕 + 编号 + 时间戳)
   - 底部"数据终端"展示游戏元数据,等宽数字读数
   - 强对比 / 切角 / LED 状态灯 / 等宽字体穿插
   全部独立设计,不沿用 main.css 中的圆胶囊胶囊风
   ============================================================ */

.gx-app {
  /* 局部变量 —— 仍然读取主题色,保证明暗主题一致性 */
  --gx-pri:        #ff5b3a;
  --gx-pri-2:      #ff7e5c;
  --gx-pri-ink:    #ffffff;
  --gx-pri-ring:   rgba(255, 91, 58, .22);

  --gx-ok:         #00c389;
  --gx-warn:       #ffb800;
  --gx-err:        #ff5577;
  --gx-cool:       #4cc9f0;

  --gx-surface:    var(--bg-surface);
  --gx-elev:       var(--bg-elev);
  --gx-sunken:     var(--bg-sunken);
  --gx-bg:         var(--bg-base);
  --gx-line:       var(--line-soft);
  --gx-line-2:     var(--line-strong);
  --gx-fg:         var(--fg-strong);
  --gx-fg-2:       var(--fg-normal);
  --gx-fg-3:       var(--fg-muted);
  --gx-fg-4:       var(--fg-faint);

  --gx-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", "Consolas", monospace;

  --gx-gap: 14px;
  --gx-radius: 4px;          /* 故意做硬朗切角 */
  --gx-radius-lg: 10px;
  --gx-ease: cubic-bezier(.2, .7, .2, 1);
}

/* 暗色下的局部微调:让主色稍微提亮一点点 */
:root[data-theme="dark"] .gx-app {
  --gx-pri:      #ff6b48;
  --gx-pri-2:    #ff8a6a;
  --gx-pri-ring: rgba(255, 107, 72, .28);
}

/* ============================================================
   页面背景:网格 + 噪点,做出"机房地板"质感
   ============================================================ */
.gx-app {
  position: relative;
  min-height: 100vh;
  padding: 14px;
  color: var(--gx-fg-2);
}
.gx-app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--gx-bg);
  background-image:
    linear-gradient(var(--gx-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--gx-line) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  background-position: -1px -1px;
  opacity: .55;
  pointer-events: none;
}
.gx-app::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-attachment: fixed;
  pointer-events: none;
}

/* ============================================================
   顶部控制台 (BAR)
   ============================================================ */
.gx-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--gx-surface);
  border: 1px solid var(--gx-line-2);
  border-radius: var(--gx-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 2px 0 var(--gx-line),
    0 12px 30px rgba(0, 0, 0, .08);
  margin-bottom: 14px;
}

.gx-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gx-fg);
  letter-spacing: -.005em;
  text-decoration: none;
}
.gx-brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--gx-pri);
  color: var(--gx-pri-ink);
  border-radius: var(--gx-radius);
  position: relative;
  overflow: hidden;
}
.gx-brand-mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.5px solid currentColor;
  opacity: .35;
  border-radius: 2px;
}
.gx-brand-mark svg { width: 20px; height: 20px; }
.gx-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.gx-brand-name { font-weight: 800; font-size: 16px; }
.gx-brand-tag {
  font-family: var(--gx-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--gx-fg-3);
  margin-top: 3px;
  text-transform: uppercase;
}

/* 分类切换 —— 切角分段控件 */
.gx-tabs {
  display: inline-flex;
  align-items: stretch;
  background: var(--gx-sunken);
  border: 1px solid var(--gx-line-2);
  border-radius: var(--gx-radius);
  padding: 3px;
  gap: 2px;
}
.gx-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gx-fg-3);
  border-radius: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s var(--gx-ease), background .2s var(--gx-ease);
}
.gx-tab:hover { color: var(--gx-fg); }
.gx-tab.is-on {
  background: var(--gx-fg);
  color: var(--gx-bg);
}
.gx-tab.is-locked {
  cursor: not-allowed;
}
.gx-tab.is-locked::after {
  content: "LOCK";
  font-family: var(--gx-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 2px;
  margin-left: 4px;
  opacity: .65;
}
.gx-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}

.gx-bar-tools {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.gx-bar-tools .gx-led { margin-right: 2px; }

/* LED 状态灯 */
.gx-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gx-line-2);
  position: relative;
  flex: none;
  display: inline-block;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -1px 0 rgba(0, 0, 0, .25);
}
.gx-led::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .2);
}
.gx-led-on {
  background: var(--gx-ok);
  animation: gx-pulse 1.6s var(--gx-ease) infinite;
}
.gx-led-on::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--gx-ok);
  opacity: .25;
  animation: gx-halo 1.6s var(--gx-ease) infinite;
}
@keyframes gx-pulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(.65); }
}
@keyframes gx-halo {
  0%   { transform: scale(.6); opacity: .45; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* 主题切换按钮 —— 切角方块 */
.gx-btn-icon {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--gx-elev);
  border: 1px solid var(--gx-line-2);
  border-radius: var(--gx-radius);
  color: var(--gx-fg);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 0 var(--gx-line);
  transition: transform .12s var(--gx-ease), background .15s var(--gx-ease);
}
.gx-btn-icon:hover { background: var(--gx-surface); }
.gx-btn-icon:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 var(--gx-line); }
.gx-btn-icon svg { width: 17px; height: 17px; }
.gx-btn-icon .icon-dark { display: none; }
:root[data-theme="dark"] .gx-btn-icon .icon-light { display: none; }
:root[data-theme="dark"] .gx-btn-icon .icon-dark { display: block; }

/* ============================================================
   主舞台容器
   ============================================================ */
.gx-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ============================================================
   任务票据 (TICKET) —— 顶部的"游戏档案"卡片
   ============================================================ */
.gx-ticket {
  position: relative;
  background: var(--gx-surface);
  border: 1px solid var(--gx-line-2);
  border-radius: var(--gx-radius);
  box-shadow: 0 2px 0 var(--gx-line);
  overflow: hidden;
}

/* 票根撕痕(用 SVG 圆点模拟) */
.gx-ticket-stubs {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  background: var(--gx-sunken);
  border-bottom: 1px dashed var(--gx-line-2);
  font-family: var(--gx-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gx-fg-3);
  text-transform: uppercase;
}
/* 撕痕(在 stubs 内底部用圆点模拟票根撕齿) */
.gx-ticket-stubs::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background-image: radial-gradient(circle, var(--gx-surface) 3.5px, transparent 4px);
  background-size: 14px 6px;
  background-repeat: repeat-x;
  background-position: 0 0;
  pointer-events: none;
}
.gx-stub-id b {
  color: var(--gx-fg);
  font-weight: 700;
  letter-spacing: .04em;
}
.gx-stub-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--gx-line-2);
  border-radius: 2px;
  color: var(--gx-fg);
  background: var(--gx-bg);
}

/* 票据主体 */
.gx-ticket-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
}
.gx-back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gx-elev);
  color: var(--gx-fg);
  border: 1px solid var(--gx-line-2);
  border-radius: var(--gx-radius);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 0 var(--gx-line);
  transition: transform .12s var(--gx-ease), background .15s var(--gx-ease);
}
.gx-back:hover { background: var(--gx-surface); }
.gx-back:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 var(--gx-line); }
.gx-back svg { width: 18px; height: 18px; }

.gx-ticket-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.gx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--gx-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gx-pri);
  font-weight: 700;
}
.gx-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--gx-pri);
  display: inline-block;
  border-radius: 1px;
}
.gx-game-title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.02;
  color: var(--gx-fg);
  text-transform: uppercase;
  font-style: italic;
  transform: skewX(-4deg);
  transform-origin: left center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gx-status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--gx-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--gx-fg-3);
  text-transform: uppercase;
}
.gx-status-line .gx-led { width: 8px; height: 8px; }

/* 操作按钮组 */
.gx-ticket-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gx-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--gx-elev);
  color: var(--gx-fg);
  border: 1px solid var(--gx-line-2);
  border-radius: var(--gx-radius);
  font-family: var(--gx-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 2px 0 var(--gx-line-2);
  transition: transform .12s var(--gx-ease), background .15s var(--gx-ease), color .15s var(--gx-ease);
}
.gx-btn:hover { background: var(--gx-surface); }
.gx-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 var(--gx-line);
}
.gx-btn svg { width: 14px; height: 14px; }
.gx-btn-accent {
  background: var(--gx-pri);
  color: var(--gx-pri-ink);
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 2px 0 color-mix(in srgb, var(--gx-pri) 60%, #000);
}
.gx-btn-accent:hover {
  background: var(--gx-pri-2);
  color: var(--gx-pri-ink);
}

/* ============================================================
   中央显示器 (MONITOR)
   ============================================================ */
.gx-monitor {
  position: relative;
  padding: 0 14px;
}

/* 显示器外框 —— 用多层 box-shadow 模拟金属/塑料厚边 */
.gx-screen {
  position: relative;
  background: var(--gx-sunken);
  border-radius: var(--gx-radius-lg);
  padding: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -2px 0 rgba(0, 0, 0, .25),
    inset 2px 0 0 rgba(255, 255, 255, .04),
    inset -2px 0 0 rgba(0, 0, 0, .25),
    0 1px 0 var(--gx-line),
    0 6px 0 var(--gx-line),
    0 30px 60px rgba(0, 0, 0, .22);
}

/* 显示器顶部的凹槽线 + 品牌烙印 */
.gx-screen-brand {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 12px;
  background: var(--gx-sunken);
  color: var(--gx-fg-3);
  font-family: var(--gx-mono);
  font-size: 9.5px;
  letter-spacing: .25em;
  border-radius: 2px 2px 0 0;
  border: 1px solid var(--gx-line-2);
  border-bottom: 0;
  text-transform: uppercase;
}

/* 屏幕内部黑色区 */
.gx-screen-content {
  position: relative;
  background: #000;
  border-radius: 2px;
  overflow: hidden;
  height: clamp(420px, 68vh, 760px);
  min-height: 420px;
  isolation: isolate;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    inset 0 0 80px rgba(0, 0, 0, .6);
}

/* iframe 内部轻度 CRT 质感(用 SVG 纹理叠加,不破坏游戏) */
.gx-screen-content::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, .025) 2px,
      rgba(255, 255, 255, .025) 3px
    );
  z-index: 4;
  mix-blend-mode: overlay;
}

.gx-screen-content iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

/* 角落 HUD 角标 */
.gx-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 3;
  pointer-events: none;
  border-color: var(--gx-pri);
  border-style: solid;
  border-width: 0;
}
.gx-corner-tl { top: 22px; left: 22px; border-top-width: 2px; border-left-width: 2px; }
.gx-corner-tr { top: 22px; right: 22px; border-top-width: 2px; border-right-width: 2px; }
.gx-corner-bl { bottom: 22px; left: 22px; border-bottom-width: 2px; border-left-width: 2px; }
.gx-corner-br { bottom: 22px; right: 22px; border-bottom-width: 2px; border-right-width: 2px; }

/* 顶部 HUD 数据条 */
.gx-screen-hud {
  position: absolute;
  left: 60px; right: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-family: var(--gx-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--gx-pri);
  background: rgba(0, 0, 0, .55);
  border: 1px solid var(--gx-pri);
  border-radius: 1px;
  z-index: 3;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gx-screen-hud-top { top: 22px; }
.gx-screen-hud-bottom { bottom: 22px; }
.gx-hud-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gx-hud-k {
  color: var(--gx-fg-3);
  font-weight: 700;
}
.gx-hud-v {
  color: var(--gx-pri);
  font-weight: 700;
}

/* 加载遮罩 */
.gx-screen-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 18px;
  background: #000;
  color: var(--gx-pri);
  transition: opacity .35s var(--gx-ease);
}
.gx-screen-loading.fade {
  opacity: 0;
  pointer-events: none;
}
.gx-load-ring {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 91, 58, .15);
  border-top-color: var(--gx-pri);
  border-radius: 50%;
  animation: gx-spin .85s linear infinite;
}
@keyframes gx-spin { to { transform: rotate(360deg); } }
.gx-load-text {
  font-family: var(--gx-mono);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.gx-load-dots { display: inline-flex; }
.gx-load-dots span {
  animation: gx-blink 1.2s var(--gx-ease) infinite;
}
.gx-load-dots span:nth-child(2) { animation-delay: .15s; }
.gx-load-dots span:nth-child(3) { animation-delay: .30s; }
@keyframes gx-blink {
  0%, 100% { opacity: .15; }
  50%      { opacity: 1; }
}

/* ============================================================
   底部数据终端 (TERMINAL)
   ============================================================ */
.gx-term {
  position: relative;
  background: var(--gx-surface);
  border: 1px solid var(--gx-line-2);
  border-radius: var(--gx-radius);
  overflow: hidden;
  box-shadow: 0 2px 0 var(--gx-line);
}

/* 终端头部:tab + LED 行 */
.gx-term-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: var(--gx-sunken);
  border-bottom: 1px solid var(--gx-line-2);
}
.gx-term-tabs {
  display: inline-flex;
  gap: 0;
}
.gx-term-tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 12px;
  font-family: var(--gx-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gx-fg-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s var(--gx-ease), border-color .15s var(--gx-ease);
}
.gx-term-tab:hover { color: var(--gx-fg-2); }
.gx-term-tab.is-on {
  color: var(--gx-pri);
  border-bottom-color: var(--gx-pri);
}
.gx-term-leds {
  display: inline-flex;
  gap: 6px;
}
.gx-term-leds .gx-led { width: 7px; height: 7px; }

/* 终端主体 */
.gx-term-body {
  padding: 22px 26px 18px;
}
.gx-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--gx-fg-2);
  white-space: pre-wrap;
  max-width: 78ch;
}
.gx-desc-empty {
  font-family: var(--gx-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--gx-fg-4);
  text-transform: uppercase;
}
.gx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.gx-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  font-family: var(--gx-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gx-fg-2);
  background: var(--gx-elev);
  border: 1px solid var(--gx-line-2);
  border-radius: 2px;
}
.gx-tag::before {
  content: "#";
  color: var(--gx-pri);
  font-weight: 700;
}

/* 参数表 —— 等宽数字读数 */
.gx-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px dashed var(--gx-line-2);
}
.gx-spec {
  position: relative;
  padding: 14px 18px 16px;
  border-right: 1px dashed var(--gx-line-2);
}
.gx-spec:last-child { border-right: 0; }
.gx-spec-k {
  display: block;
  font-family: var(--gx-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gx-fg-3);
  margin-bottom: 6px;
  font-weight: 700;
}
.gx-spec-k::before {
  content: "//";
  color: var(--gx-pri);
  margin-right: 4px;
}
.gx-spec-v {
  display: block;
  font-family: var(--gx-mono);
  font-size: 14px;
  color: var(--gx-fg);
  letter-spacing: .02em;
  word-break: break-all;
}

/* ============================================================
   页脚状态栏 (FOOT)
   ============================================================ */
.gx-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 18px;
  background: var(--gx-surface);
  border: 1px solid var(--gx-line-2);
  border-radius: var(--gx-radius);
  font-family: var(--gx-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gx-fg-3);
}
.gx-foot-l, .gx-foot-r {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gx-foot-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--gx-pri);
  color: var(--gx-pri-ink);
  font-weight: 900;
  font-size: 11px;
  border-radius: 2px;
}
.gx-foot-px {
  width: 10px;
  height: 10px;
  background: var(--gx-ok);
  display: inline-block;
  animation: gx-pulse 1.6s var(--gx-ease) infinite;
}

/* ============================================================
   异常 / 提示页 (FALLBACK)
   ============================================================ */
.gx-error {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px 32px;
  margin-top: 24px;
  background: var(--gx-surface);
  border: 1px solid var(--gx-line-2);
  border-radius: var(--gx-radius);
  box-shadow: 0 2px 0 var(--gx-line);
}
.gx-error-icon {
  width: 84px;
  height: 84px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--gx-sunken);
  border: 1px solid var(--gx-line-2);
  border-radius: var(--gx-radius);
  color: var(--gx-pri);
  position: relative;
}
.gx-error-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--gx-line-2);
  border-radius: 2px;
  pointer-events: none;
}
.gx-error-icon svg { width: 36px; height: 36px; }
.gx-error-meta { min-width: 0; }
.gx-error-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--gx-fg);
}
.gx-error-desc {
  margin: 0;
  color: var(--gx-fg-3);
  font-size: 14px;
  line-height: 1.6;
}
.gx-error-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 异常页居中变体 */
.gx-error.is-centered {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 60px 32px;
  max-width: 560px;
  margin: 60px auto 0;
}
.gx-error.is-centered .gx-error-icon {
  margin: 0 auto;
  width: 110px;
  height: 110px;
}
.gx-error.is-centered .gx-error-icon svg { width: 48px; height: 48px; }
.gx-error.is-centered .gx-error-actions { justify-content: center; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 980px) {
  .gx-bar { grid-template-columns: 1fr auto 1fr; }
  .gx-ticket-main { grid-template-columns: auto 1fr; }
  .gx-ticket-actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .gx-screen-content { height: 62vh; min-height: 380px; }
}

@media (max-width: 720px) {
  .gx-app { padding: 10px; }
  .gx-bar {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }
  .gx-bar-tools { grid-column: 2; grid-row: 1; }
  .gx-tabs { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: center; }
  .gx-tab { padding: 7px 12px; font-size: 12px; }
  .gx-tab.is-locked::after { display: none; }
  .gx-ticket-stubs { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 14px; font-size: 10px; }
  .gx-stub-line, .gx-stub-cat { display: none; }
  .gx-ticket-main { grid-template-columns: auto 1fr; gap: 12px; padding: 14px; }
  .gx-ticket-actions { grid-column: 1 / -1; }
  .gx-back { width: 38px; height: 38px; }
  .gx-game-title { font-size: 26px; }
  .gx-monitor { padding: 0; }
  .gx-screen { padding: 8px; border-radius: var(--gx-radius); }
  .gx-screen-content { height: 56vh; min-height: 320px; }
  .gx-screen-hud { left: 38px; right: 38px; font-size: 9px; padding: 3px 8px; }
  .gx-screen-hud-top { top: 14px; }
  .gx-screen-hud-bottom { bottom: 14px; }
  .gx-corner-tl { top: 14px; left: 14px; }
  .gx-corner-tr { top: 14px; right: 14px; }
  .gx-corner-bl { bottom: 14px; left: 14px; }
  .gx-corner-br { bottom: 14px; right: 14px; }
  .gx-term-body { padding: 16px 16px 14px; }
  .gx-spec { padding: 12px 14px; }
  .gx-error { grid-template-columns: 1fr; padding: 24px 18px; gap: 14px; }
  .gx-error-icon { width: 64px; height: 64px; margin: 0 auto; }
  .gx-error-icon svg { width: 28px; height: 28px; }
  .gx-error-title { font-size: 20px; text-align: center; }
  .gx-error-desc { text-align: center; }
  .gx-error-actions { justify-content: center; }
  .gx-foot { font-size: 10px; padding: 10px 14px; }
}

@media (max-width: 480px) {
  .gx-specs { grid-template-columns: 1fr; }
  .gx-spec { border-right: 0; border-bottom: 1px dashed var(--gx-line-2); }
  .gx-spec:last-child { border-bottom: 0; }
}