:root {
  --bg-0: #05080b;
  --bg-1: #0b1116;
  --bg-2: #101920;
  --bg-3: #16222c;
  --line: #1e3140;
  --line-hi: #2c4a60;
  --txt: #cfdde8;
  --txt-dim: #7d93a5;
  --txt-bright: #f2f8fc;
  --gold: #ffb300;
  --gold-deep: #c8870a;
  --cyan: #37c6ff;
  --blue-team: #3fa9ff;
  --red-team: #ff4d4d;
  --green: #46d68c;
  --danger: #ff5544;
  --font: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  --chamfer: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-0);
  color: var(--txt);
  font-family: var(--font);
  user-select: none;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--line-hi); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

.screen {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10;
}
.screen.active { display: flex; }

.hidden { display: none !important; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border: 1px solid var(--line-hi);
  background: linear-gradient(180deg, #1b2833, #101a22);
  color: var(--txt-bright);
  font-family: var(--font);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  clip-path: var(--chamfer);
  transition: all .18s ease;
}
.btn:hover { border-color: var(--gold); color: var(--gold); box-shadow: inset 0 0 24px rgba(255, 179, 0, .12); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  border-color: var(--gold-deep);
  background: linear-gradient(180deg, #ffb300, #d98d00);
  color: #1a1204;
  text-shadow: none;
}
.btn.primary:hover { box-shadow: 0 0 26px rgba(255, 179, 0, .45); color: #000; }
.btn.danger-btn { border-color: #6e2020; }
.btn.danger-btn:hover { border-color: var(--danger); color: var(--danger); }
.btn.small { padding: 7px 16px; font-size: 13px; letter-spacing: 1px; }
.btn.big { padding: 16px 64px; font-size: 20px; letter-spacing: 6px; }
.btn:disabled { opacity: .38; pointer-events: none; }

.input-wrap { position: relative; margin-bottom: 18px; }
.input-wrap label { display: block; font-size: 12px; letter-spacing: 2px; color: var(--txt-dim); margin-bottom: 7px; }
.input-wrap input, .input-wrap select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(6, 12, 17, .85);
  border: 1px solid var(--line);
  color: var(--txt-bright);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  clip-path: var(--chamfer);
  transition: border-color .18s;
}
.input-wrap input:focus, .input-wrap select:focus { border-color: var(--gold); }
.field-err { min-height: 18px; font-size: 12px; color: var(--danger); margin-top: -13px; margin-bottom: 12px; }

.tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 11px;
  letter-spacing: 1px;
  border: 1px solid var(--line-hi);
  color: var(--txt-dim);
  clip-path: var(--chamfer);
}
.tag.gold { border-color: var(--gold-deep); color: var(--gold); }
.tag.blue { border-color: #205070; color: var(--blue-team); }
.tag.red { border-color: #6e2020; color: var(--red-team); }
.tag.green { border-color: #1f5c3d; color: var(--green); }

#screen-loading {
  z-index: 100;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 179, 0, .07), transparent 55%),
    radial-gradient(ellipse at 50% 110%, rgba(55, 198, 255, .06), transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .012) 3px 4px),
    var(--bg-0);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.load-logo {
  font-size: 66px;
  font-weight: 900;
  letter-spacing: 14px;
  text-indent: 14px;
  background: linear-gradient(180deg, #fff3d6 20%, var(--gold) 55%, #7a5200 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 22px rgba(255, 179, 0, .35));
  animation: logoPulse 2.4s ease-in-out infinite;
}
.load-sub { margin-top: 8px; font-size: 14px; letter-spacing: 11px; text-indent: 11px; color: var(--txt-dim); animation: logoPulse 2.4s ease-in-out infinite; }
@keyframes logoPulse { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
.load-bar-wrap { width: 420px; height: 10px; margin-top: 58px; border: 1px solid var(--line-hi); clip-path: var(--chamfer); padding: 2px; }
.load-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #8a5c00, var(--gold), #ffd764); transition: width .25s ease; box-shadow: 0 0 14px rgba(255, 179, 0, .6); }
.load-status { margin-top: 16px; font-size: 13px; letter-spacing: 3px; color: var(--txt-dim); height: 20px; }
.load-pct { margin-top: 4px; font-size: 22px; font-weight: bold; color: var(--gold); font-family: Consolas, monospace; }
.load-tip { position: absolute; bottom: 42px; font-size: 13px; color: var(--txt-dim); letter-spacing: 1px; opacity: .85; max-width: 640px; text-align: center; }
.corner { position: absolute; width: 34px; height: 34px; border-color: var(--gold-deep); border-style: solid; opacity: .7; }
.corner.tl { top: 26px; left: 26px; border-width: 2px 0 0 2px; }
.corner.tr { top: 26px; right: 26px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 26px; left: 26px; border-width: 0 0 2px 2px; }
.corner.br { bottom: 26px; right: 26px; border-width: 0 2px 2px 0; }

#screen-auth {
  background:
    radial-gradient(ellipse at 78% 40%, rgba(55, 198, 255, .08), transparent 45%),
    radial-gradient(ellipse at 18% 75%, rgba(255, 179, 0, .06), transparent 45%),
    repeating-linear-gradient(115deg, transparent 0 60px, rgba(255, 255, 255, .014) 60px 61px),
    linear-gradient(160deg, #0a1219 0%, #05080b 60%);
  align-items: center;
  justify-content: center;
  gap: 110px;
}
.auth-hero { max-width: 480px; }
.auth-hero h1 {
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 10px;
  background: linear-gradient(180deg, #fff3d6 15%, var(--gold) 60%, #8a5c00 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}
.auth-hero .en { font-size: 15px; letter-spacing: 8px; color: var(--txt-dim); margin-top: 10px; }
.auth-hero ul { list-style: none; margin-top: 34px; }
.auth-hero li { font-size: 14px; color: var(--txt-dim); letter-spacing: 2px; margin-bottom: 13px; padding-left: 20px; position: relative; }
.auth-hero li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; background: var(--gold); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.auth-box {
  width: 400px;
  padding: 36px 38px 30px;
  background: rgba(13, 21, 28, .92);
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65), inset 0 0 60px rgba(55, 198, 255, .03);
}
.auth-tabs { display: flex; gap: 6px; margin-bottom: 28px; }
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 11px 0;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--txt-dim);
  border: 1px solid var(--line);
  cursor: pointer;
  clip-path: var(--chamfer);
  transition: all .15s;
}
.auth-tab.active { color: var(--gold); border-color: var(--gold-deep); background: rgba(255, 179, 0, .07); }
.auth-submit { width: 100%; margin-top: 8px; }
.auth-extra { margin-top: 16px; text-align: center; }
.link-btn { background: none; border: none; color: var(--txt-dim); font-size: 13px; cursor: pointer; letter-spacing: 1px; font-family: var(--font); border-bottom: 1px dashed var(--line-hi); padding-bottom: 2px; }
.link-btn:hover { color: var(--gold); }

#screen-lobby { flex-direction: column; background: var(--bg-1); }
.lobby-topbar {
  height: 62px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 18px;
  background: linear-gradient(180deg, #131e27, #0d151c);
  border-bottom: 1px solid var(--line);
}
.profile-chip { display: flex; align-items: center; gap: 12px; padding-right: 18px; border-right: 1px solid var(--line); }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 19px;
  color: #14100a;
  background: linear-gradient(135deg, #ffd764, #d98d00);
  clip-path: var(--chamfer);
}
.profile-meta { line-height: 1.35; }
.profile-name { font-size: 15px; font-weight: bold; color: var(--txt-bright); }
.lvl-row { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--txt-dim); }
.lvl-badge { background: var(--gold); color: #14100a; font-weight: 900; padding: 0 5px; border-radius: 2px; font-size: 10px; }
.exp-bar { width: 90px; height: 4px; background: #223240; border-radius: 2px; overflow: hidden; }
.exp-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), #7fe0ff); }
.wallet { display: flex; gap: 14px; margin-left: auto; }
.wallet-item { display: flex; align-items: center; gap: 7px; padding: 6px 13px; background: rgba(6, 12, 17, .7); border: 1px solid var(--line); clip-path: var(--chamfer); font-size: 14px; font-family: Consolas, monospace; }
.wallet-item .ico { width: 13px; height: 13px; }
.ico-gold { border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffe49a, var(--gold) 55%, #8a5c00); }
.ico-diamond { background: var(--cyan); transform: rotate(45deg) scale(.86); box-shadow: inset -2px -2px 4px rgba(0, 60, 100, .6), 0 0 8px rgba(55, 198, 255, .5); }
.wallet-plus { cursor: pointer; color: var(--gold); font-weight: 900; margin-left: 3px; font-family: var(--font); }
.lobby-body { flex: 1; display: flex; min-height: 0; }
.rail {
  width: 96px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 0;
  gap: 6px;
  background: #0a1015;
  border-right: 1px solid var(--line);
  align-items: stretch;
}
.rail-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 13px 0;
  cursor: pointer;
  color: var(--txt-dim);
  font-size: 12px;
  letter-spacing: 2px;
  border-left: 2px solid transparent;
  transition: all .15s;
}
.rail-item svg { width: 24px; height: 24px; fill: currentColor; }
.rail-item:hover { color: var(--txt-bright); background: rgba(255, 179, 0, .04); }
.rail-item.active { color: var(--gold); border-left-color: var(--gold); background: linear-gradient(90deg, rgba(255, 179, 0, .12), transparent); }
.rail-badge { position: absolute; top: 8px; right: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.content { flex: 1; overflow-y: auto; padding: 26px 30px 40px; position: relative; }
.panel { display: none; animation: panelIn .22s ease; max-width: 1240px; margin: 0 auto; }
.panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.panel-title h2 { font-size: 24px; letter-spacing: 6px; color: var(--txt-bright); font-weight: 900; }
.panel-title h2::before { content: "// "; color: var(--gold); }
.panel-title span { font-size: 12px; letter-spacing: 2px; color: var(--txt-dim); }

.hall-grid { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.hall-side { display: flex; flex-direction: column; gap: 16px; }
.card {
  background: linear-gradient(180deg, #131e28, #0d151d);
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
  padding: 18px 20px;
}
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.card-head b { font-size: 14px; letter-spacing: 2px; color: var(--txt-bright); }
.room-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--txt-dim); padding: 7px 0; border-bottom: 1px dashed rgba(46, 74, 96, .5); }
.room-line:last-child { border-bottom: none; }
.room-line em { font-style: normal; color: var(--txt); font-family: Consolas, monospace; }
.deploy-zone { text-align: center; padding: 26px 20px; }
.deploy-map-name { font-size: 17px; color: var(--gold); letter-spacing: 3px; margin: 8px 0 2px; }
.deploy-mode-name { font-size: 12px; color: var(--txt-dim); letter-spacing: 2px; margin-bottom: 20px; }
.mode-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
.mode-card {
  position: relative;
  padding: 16px;
  background: linear-gradient(160deg, #14202b, #0c141b);
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
  cursor: pointer;
  transition: all .16s;
  overflow: hidden;
}
.mode-card::after { content: ""; position: absolute; right: -22px; top: -22px; width: 64px; height: 64px; transform: rotate(45deg); background: rgba(55, 198, 255, .05); }
.mode-card:hover { transform: translateY(-2px); border-color: var(--line-hi); }
.mode-card.selected { border-color: var(--gold); background: linear-gradient(160deg, #23201a, #171208); box-shadow: 0 0 22px rgba(255, 179, 0, .18); }
.mode-card.selected::before { content: "已选择"; position: absolute; top: 8px; right: -26px; transform: rotate(38deg); font-size: 10px; background: var(--gold); color: #14100a; padding: 2px 28px; font-weight: bold; }
.mode-card b { display: block; font-size: 16px; color: var(--txt-bright); letter-spacing: 2px; margin-bottom: 7px; }
.mode-card p { font-size: 12px; color: var(--txt-dim); line-height: 1.6; }
.mode-rule { margin-top: 9px; font-size: 11px; color: var(--cyan); font-family: Consolas, monospace; }
.map-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.map-cell {
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
  cursor: pointer;
  background: #0c141b;
  transition: all .16s;
  overflow: hidden;
}
.map-cell:hover { transform: translateY(-2px); border-color: var(--line-hi); }
.map-cell.selected { border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 179, 0, .22); }
.map-cell canvas { display: block; width: 100%; height: 92px; object-fit: cover; background: #060a0e; }
.map-cell .mc-name { padding: 8px 10px; font-size: 13px; color: var(--txt); letter-spacing: 1px; display: flex; justify-content: space-between; align-items: center; }
.map-cell.selected .mc-name { color: var(--gold); }
.mc-random { display: flex; align-items: center; justify-content: center; height: 92px; font-size: 30px; color: var(--line-hi); font-weight: 900; letter-spacing: 4px; }
.subhead { font-size: 13px; letter-spacing: 3px; color: var(--txt-dim); margin: 4px 0 12px; }
.subhead b { color: var(--txt-bright); }

.shop-tabs, .arm-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.shop-tab, .arm-tab {
  padding: 9px 26px;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--txt-dim);
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
  cursor: pointer;
  background: #0c141b;
  transition: all .15s;
}
.shop-tab.active, .arm-tab.active { color: var(--gold); border-color: var(--gold-deep); background: rgba(255, 179, 0, .08); }
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.goods-card {
  position: relative;
  padding: 16px;
  background: linear-gradient(170deg, #131e28, #0b1219);
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s, border-color .15s;
}
.goods-card:hover { transform: translateY(-3px); border-color: var(--line-hi); }
.gun-preview { height: 84px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 80%, rgba(255, 179, 0, .07), transparent 70%); }
.gun-preview svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); width: 210px; }
.owned-flag { position: absolute; top: 10px; right: -25px; transform: rotate(38deg); background: #245c40; color: #bdf5d8; font-size: 10px; padding: 2px 28px; letter-spacing: 2px; }
.goods-name { font-size: 16px; font-weight: bold; color: var(--txt-bright); letter-spacing: 1px; }
.goods-desc { font-size: 12px; color: var(--txt-dim); line-height: 1.55; flex: 1; min-height: 38px; }
.goods-foot { display: flex; align-items: center; justify-content: space-between; }
.price-tag { display: flex; align-items: center; gap: 6px; font-family: Consolas, monospace; font-size: 15px; font-weight: bold; }
.price-gold { color: var(--gold); }
.price-diamond { color: var(--cyan); }
.stat-bars { display: grid; grid-template-columns: 56px 1fr 56px 1fr; gap: 5px 8px; align-items: center; font-size: 11px; color: var(--txt-dim); margin-top: 2px; }
.sbar { height: 5px; background: #1b2936; border-radius: 2px; overflow: hidden; }
.sbar i { display: block; height: 100%; background: linear-gradient(90deg, #7fa8c9, var(--cyan)); border-radius: 2px; }
.sbar i.hot { background: linear-gradient(90deg, #b06a1e, var(--gold)); }

.exchange-list { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.exchange-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: #0d151d;
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
}
.exchange-flow { display: flex; align-items: center; gap: 14px; font-size: 15px; font-family: Consolas, monospace; }
.exchange-arrow { color: var(--gold); font-weight: 900; }

.armory-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.slot-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.arm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.arm-card { position: relative; padding: 14px; background: linear-gradient(170deg, #121d27, #0a1118); border: 1px solid var(--line); clip-path: var(--chamfer); cursor: pointer; transition: all .15s; }
.arm-card:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.arm-card.equipped { border-color: var(--green); box-shadow: 0 0 16px rgba(70, 214, 140, .16); }
.arm-card.equipped::after { content: "装备中"; position: absolute; top: 9px; right: 10px; font-size: 10px; color: var(--green); border: 1px solid var(--green); padding: 1px 7px; letter-spacing: 1px; }
.skin-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 6px; vertical-align: middle; border: 1px solid rgba(255, 255, 255, .3); }
.arm-detail { position: sticky; top: 0; }
.detail-gun-name { font-size: 19px; color: var(--gold); letter-spacing: 2px; font-weight: bold; margin-bottom: 4px; }
.detail-type { font-size: 12px; color: var(--txt-dim); letter-spacing: 2px; margin-bottom: 16px; }
.dmg-note { font-size: 12px; color: var(--txt-dim); line-height: 1.7; margin: 14px 0; border-top: 1px dashed var(--line); padding-top: 12px; }
.perk-row { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed rgba(46, 74, 96, .45); color: var(--txt-dim); }
.perk-row em { font-style: normal; color: var(--green); }

.signin-banner { text-align: center; margin-bottom: 24px; padding: 26px; background: linear-gradient(160deg, #1a2333, #0d1420); border: 1px solid var(--line); clip-path: var(--chamfer); }
.signin-banner h3 { font-size: 22px; letter-spacing: 5px; color: var(--txt-bright); margin-bottom: 8px; }
.signin-banner p { font-size: 13px; color: var(--txt-dim); letter-spacing: 1px; }
.signin-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.sign-day {
  position: relative;
  padding: 18px 10px 15px;
  text-align: center;
  background: linear-gradient(180deg, #121d27, #0a1118);
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
  transition: transform .15s;
}
.sign-day:hover { transform: translateY(-3px); }
.sign-day.done { opacity: .55; }
.sign-day.done::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2346d68c' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center 34px / 26px; }
.sign-day.today { border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 179, 0, .2); animation: todayGlow 1.8s infinite; }
@keyframes todayGlow { 0%, 100% { box-shadow: 0 0 10px rgba(255, 179, 0, .15); } 50% { box-shadow: 0 0 24px rgba(255, 179, 0, .4); } }
.sd-label { font-size: 11px; color: var(--txt-dim); letter-spacing: 2px; }
.sd-reward { margin-top: 10px; font-size: 15px; font-weight: bold; font-family: Consolas, monospace; color: var(--gold); }
.sd-reward.cyan { color: var(--cyan); }
.sign-actions { text-align: center; margin-top: 26px; }

.maps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.map-big-card { background: linear-gradient(170deg, #121d27, #0a1118); border: 1px solid var(--line); clip-path: var(--chamfer); overflow: hidden; transition: transform .15s; }
.map-big-card:hover { transform: translateY(-3px); border-color: var(--line-hi); }
.map-big-card canvas { width: 100%; height: 170px; display: block; background: #060a0e; }
.mbc-info { padding: 15px 18px 18px; }
.mbc-info b { font-size: 17px; letter-spacing: 2px; color: var(--txt-bright); }
.mbc-info p { font-size: 12px; color: var(--txt-dim); margin-top: 7px; line-height: 1.7; }
.mbc-tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

.settings-form { max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.set-row { display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: #0d151d; border: 1px solid var(--line); clip-path: var(--chamfer); }
.set-row label { width: 130px; flex-shrink: 0; font-size: 14px; letter-spacing: 2px; color: var(--txt); }
.set-row input[type=range] { flex: 1; accent-color: var(--gold); height: 4px; cursor: pointer; }
.set-val { width: 52px; text-align: right; font-family: Consolas, monospace; color: var(--gold); font-size: 14px; }
.set-row select { flex: 1; padding: 8px 12px; background: #060b10; border: 1px solid var(--line); color: var(--txt); font-family: var(--font); outline: none; }
.switch { position: relative; width: 48px; height: 24px; flex-shrink: 0; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #223240; border-radius: 12px; transition: .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #8aa2b5; transition: .2s; }
.switch input:checked + i { background: var(--gold-deep); }
.switch input:checked + i::after { left: 27px; background: #fff; }

#toast-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  padding: 11px 26px;
  font-size: 14px;
  letter-spacing: 1px;
  background: rgba(13, 22, 30, .95);
  border: 1px solid var(--line-hi);
  color: var(--txt-bright);
  clip-path: var(--chamfer);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .5);
  animation: toastIn .22s ease;
}
.toast.gold { border-color: var(--gold-deep); color: var(--gold); }
.toast.err { border-color: #6e2020; color: var(--danger); }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px); } }

#modal-root { position: fixed; inset: 0; z-index: 1500; display: none; align-items: center; justify-content: center; background: rgba(2, 5, 8, .72); backdrop-filter: blur(3px); }
#modal-root.open { display: flex; }
.modal-box { width: 430px; max-width: 92vw; background: linear-gradient(180deg, #141f29, #0c141b); border: 1px solid var(--line-hi); clip-path: var(--chamfer); padding: 28px 30px; animation: modalIn .18s ease; box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
@keyframes modalIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.modal-box h3 { font-size: 17px; letter-spacing: 3px; color: var(--gold); margin-bottom: 14px; }
.modal-box p { font-size: 14px; line-height: 1.8; color: var(--txt); }
.modal-box .input-wrap { margin: 14px 0 4px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.modal-rewards { display: flex; gap: 10px; margin: 16px 0 4px; }
.reward-chip { padding: 10px 16px; background: rgba(255, 179, 0, .07); border: 1px solid var(--line-hi); font-family: Consolas, monospace; font-size: 14px; color: var(--gold); clip-path: var(--chamfer); }
.reward-chip.cyan { color: var(--cyan); background: rgba(55, 198, 255, .07); }

.lobby-footer { position: fixed; bottom: 0; left: 96px; right: 0; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; font-size: 11px; letter-spacing: 1px; color: #44586a; background: linear-gradient(180deg, transparent, rgba(4, 8, 12, .9)); pointer-events: none; }
