/* ============================================================
   狂飙俱乐部 SpeedRush Club — 设计系统 v2
   硬核重金属工业风 / 改装赛车机甲 / 做旧钢铁 / 镀铬 / 竞速红
   四色体系: 炭黑 #08080A · 竞速赤红 #C8102E · 冷银 #D0D5DC · 哑光古金 #947A4A
   ============================================================ */
:root {
  --ink: #0E0F14;
  --ink-2: #16181E;
  --ink-3: #1D2027;
  --ink-4: #262A33;
  --red: #C8102E;
  --red-hi: #E51F3C;
  --red-deep: #7C0A1C;
  --chrome: #D0D5DC;
  --chrome-2: #98A1AC;
  --gold: #947A4A;
  --gold-hi: #C9A86A;
  --txt-1: #F2F4F8;
  --txt-2: #BCC3CE;
  --txt-3: #8B939F;
  --line: rgba(208, 213, 220, .10);
  --line-2: rgba(208, 213, 220, .2);
  --shadow: 0 10px 26px rgba(0, 0, 0, .75);
  --glow-red: 0 0 16px rgba(200, 16, 46, .5);

  --steel: linear-gradient(180deg, #3B414B 0%, #262B33 46%, #191D24 100%);
  --steel-2: linear-gradient(180deg, #4A505A 0%, #2E333C 40%, #1D2128 100%);
  --steel-sunk: linear-gradient(180deg, #131519 0%, #1E2128 100%);
  --red-btn: linear-gradient(180deg, #E5243F 0%, #C8102E 42%, #8E0A20 100%);
  --gold-btn: linear-gradient(180deg, #C9A86A 0%, #947A4A 45%, #5E4A2A 100%);

  --r-s: 3px;
  --r-m: 5px;
  --r-l: 7px;

  --font-num: "DIN Alternate", "Bahnschrift", "Impact", "Arial Black", sans-serif;
  --font-head: "Impact", "Haettenschweiler", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  background: #0A0B0F url(/static/club/img/ui/garage-bg.png) center top / cover fixed no-repeat;
  color: var(--txt-1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(200, 16, 46, .16), transparent 55%),
    linear-gradient(180deg, rgba(8, 9, 12, .55), rgba(8, 9, 12, .8));
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; outline: none; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #2B3037; }

/* ---------- 钢铁纹理 ---------- */
.steel-tex {
  background-color: var(--ink-2);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.016) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #20242B, #101318);
}
.grunge::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.05) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 66%, rgba(0,0,0,.5) 0 1px, transparent 2px),
    radial-gradient(circle at 44% 82%, rgba(255,255,255,.03) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 12%, rgba(0,0,0,.45) 0 1px, transparent 2px);
  background-size: 37px 41px, 53px 47px, 61px 67px, 43px 59px;
}

/* ---------- 金属板 (双层镀铬描边 + 上亮下暗) ---------- */
.plate {
  position: relative;
  background: var(--steel);
  border: 1px solid #000;
  border-radius: var(--r-m);
  box-shadow:
    inset 0 0 0 1px rgba(208, 213, 220, .16),
    inset 0 0 0 3px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .09),
    inset 0 -8px 18px rgba(0, 0, 0, .5),
    0 1px 0 rgba(255, 255, 255, .04),
    var(--shadow);
}
.plate-flat { background: var(--steel); border: 1px solid #000; box-shadow: inset 0 0 0 1px rgba(208,213,220,.14), inset 0 1px 0 rgba(255,255,255,.07), 0 6px 16px rgba(0,0,0,.6); border-radius: var(--r-m); }
.panel { position: relative; background: var(--steel); border: 1px solid #000; border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1px rgba(208,213,220,.14), inset 0 1px 0 rgba(255,255,255,.07), 0 8px 20px rgba(0,0,0,.6); }

/* 铆钉 */
.riveted::before {
  content: ""; position: absolute; inset: 5px; pointer-events: none; z-index: 2;
  background-image:
    radial-gradient(circle at 3px 3px, #7C848F 0 1px, #3A3F47 1.6px 2.3px, transparent 2.6px),
    radial-gradient(circle at 3px 3px, #7C848F 0 1px, #3A3F47 1.6px 2.3px, transparent 2.6px),
    radial-gradient(circle at 3px 3px, #7C848F 0 1px, #3A3F47 1.6px 2.3px, transparent 2.6px),
    radial-gradient(circle at 3px 3px, #7C848F 0 1px, #3A3F47 1.6px 2.3px, transparent 2.6px);
  background-repeat: no-repeat;
  background-size: 8px 8px;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
}

/* ---------- 镀铬立体字 ---------- */
.chrome-text {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: .06em;
  color: transparent;
  background: linear-gradient(180deg, #FFFFFF 0%, #DFE4EA 34%, #8E97A3 52%, #F2F5F9 63%, #A7B0BC 78%, #6E7681 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: .6px rgba(0, 0, 0, .6);
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.85)) drop-shadow(0 0 18px rgba(200,16,46,.35));
}
.red-text {
  color: transparent;
  background: linear-gradient(180deg, #FF8C9C 0%, #E51F3C 42%, #C8102E 60%, #7C0A1C 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: .5px rgba(0,0,0,.55);
  filter: drop-shadow(0 1px 0 #000) drop-shadow(0 0 14px rgba(200,16,46,.55));
  font-family: var(--font-head); font-weight: 900; letter-spacing: .04em;
}
.gold-text {
  color: transparent;
  background: linear-gradient(180deg, #F0DCAE 0%, #C9A86A 45%, #947A4A 70%, #5E4A2A 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: .4px rgba(0,0,0,.5);
}
.amber-text { color: transparent; background: linear-gradient(180deg, #F0DCAE, #C9A86A 50%, #947A4A); -webkit-background-clip: text; background-clip: text; font-weight: 900; }

/* ---------- 锯齿金属分割 ---------- */
.saw {
  height: 9px; margin: 12px 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='9' viewBox='0 0 18 9'><path d='M0 8 L9 1 L18 8' fill='none' stroke='%233a4048' stroke-width='1.4'/><path d='M0 9 L9 2 L18 9' fill='none' stroke='%2309090b' stroke-width='1'/></svg>");
  background-repeat: repeat-x; background-position: center; background-size: 18px 9px;
  opacity: .9;
}
.hairline { height: 1px; background: linear-gradient(90deg, transparent, rgba(208,213,220,.22), transparent); }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-s);
  font-weight: 900; font-size: 15px; letter-spacing: .06em;
  color: var(--chrome);
  background: var(--steel-2);
  border: 1px solid rgba(0, 0, 0, .9);
  box-shadow:
    inset 0 0 0 1px rgba(208, 213, 220, .26),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -2px 6px rgba(0, 0, 0, .6),
    0 3px 0 #050506, 0 8px 18px rgba(0,0,0,.55);
  text-shadow: 0 1px 1px rgba(0,0,0,.8);
  transition: transform .1s, filter .12s;
  user-select: none;
}
.btn:active { transform: translateY(2px); filter: brightness(.92); box-shadow: inset 0 0 0 1px rgba(208,213,220,.18), inset 0 3px 8px rgba(0,0,0,.75), 0 1px 0 #050506; }
.btn-primary {
  background: var(--red-btn);
  border-color: #5A0713;
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 210, 215, .5),
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -3px 8px rgba(80, 0, 10, .65),
    0 3px 0 #4A0610, 0 8px 22px rgba(200, 16, 46, .38);
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
}
.btn-gold {
  background: var(--gold-btn);
  border-color: #3E3120;
  color: #1A1408;
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 210, .45),
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -3px 8px rgba(40, 28, 8, .5),
    0 3px 0 #241B0E, 0 8px 20px rgba(148, 122, 74, .3);
  text-shadow: 0 1px 0 rgba(255, 240, 210, .4);
}
.btn-ghost { background: linear-gradient(180deg, #22262D, #14171C); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 7px 13px; font-size: 12px; letter-spacing: .04em; }
.btn-lg { padding: 15px 26px; font-size: 18px; letter-spacing: .12em; }
.btn[disabled], .btn.is-disabled {
  background: linear-gradient(180deg, #23262B, #16181C);
  border-color: #000;
  color: #565C65;
  box-shadow: inset 0 0 0 1px rgba(208,213,220,.08), inset 0 2px 6px rgba(0,0,0,.6);
  text-shadow: none; pointer-events: none;
}
.btn-shine::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.22) 46%, transparent 58%);
  background-size: 260% 100%; background-position: -60% 0;
  animation: shine 3.4s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { background-position: -60% 0; } 85%, 100% { background-position: 160% 0; } }

/* ---------- 品级配色 ---------- */
.lv0 { --lv: #8B98A6; --lv-dim: rgba(139,152,166,.3); }
.lv1 { --lv: #3E7BB6; --lv-dim: rgba(62,123,182,.35); }
.lv2 { --lv: #C8102E; --lv-dim: rgba(200,16,46,.4); }
.lv3 { --lv: #C9A86A; --lv-dim: rgba(201,168,106,.4); }

/* 卡牌奖励框 */
.cf {
  position: relative; border-radius: var(--r-m);
  background: linear-gradient(180deg, #23272E, #0E1014);
  border: 1px solid #000;
  box-shadow: inset 0 0 0 1px rgba(208,213,220,.16), inset 0 -10px 20px rgba(0,0,0,.5), 0 8px 20px rgba(0,0,0,.6);
}
.cf::after {
  content: ""; position: absolute; inset: 3px; border-radius: 2px; pointer-events: none;
  border: 1px solid var(--lv, rgba(208,213,220,.18));
  opacity: .85;
}
.cf.lv2 { box-shadow: inset 0 0 0 1px rgba(255,120,140,.35), 0 0 22px rgba(200,16,46,.35), 0 8px 20px rgba(0,0,0,.6); }
.cf.lv3 { box-shadow: inset 0 0 0 1px rgba(255,236,190,.4), 0 0 24px rgba(201,168,106,.32), 0 8px 20px rgba(0,0,0,.6); }
.cf.lv3::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,236,190,.12) 48%, transparent 62%);
  background-size: 240% 100%; animation: shine 4.6s linear infinite;
}

/* ---------- 布局 ---------- */
#app {
  position: relative; z-index: 1;
  max-width: 460px; margin: 0 auto; min-height: 100vh;
  background: linear-gradient(180deg, rgba(20,22,28,.92), rgba(13,14,19,.97));
  box-shadow: 0 0 0 1px #17191E, 0 0 70px rgba(0, 0, 0, .9);
}
.page { padding: 12px 12px 92px; animation: pageIn .26s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: linear-gradient(180deg, rgba(34,38,46,.97), rgba(18,20,26,.95));
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 rgba(208,213,220,.14), 0 8px 18px rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
}
.topbar .logo { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.topbar .logo svg { width: 24px; height: 24px; }
.topbar .spacer { flex: 1; }
.coin-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 3px;
  background: linear-gradient(180deg, #262A31, #121419);
  border: 1px solid #000;
  box-shadow: inset 0 0 0 1px rgba(208,213,220,.22), inset 0 1px 0 rgba(255,255,255,.12);
  font-size: 12px; font-weight: 900; font-family: var(--font-num); color: var(--chrome);
}
.coin-pill .ic { width: 14px; height: 14px; display: block; }
.coin-pill.frag .ic { filter: hue-rotate(200deg) saturate(.4) brightness(1.1); }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 460px; z-index: 60;
  display: flex; padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #232833 0%, #12151C 70%);
  border-top: 1px solid #000;
  box-shadow: 0 -1px 0 rgba(208,213,220,.16), 0 -10px 24px rgba(0,0,0,.7);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0 5px; font-size: 10px; color: var(--txt-3); font-weight: 800;
  letter-spacing: .08em; position: relative;
}
.tabbar a .tic { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.tabbar a .tic svg { width: 22px; height: 22px; opacity: .62; filter: grayscale(.2); transition: all .18s; }
.tabbar a.on { color: var(--chrome); }
.tabbar a.on .tic svg { opacity: 1; filter: drop-shadow(0 0 8px rgba(200,16,46,.8)); }
.tabbar a.on::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 2px; background: var(--red); box-shadow: 0 0 10px var(--red);
}

/* ---------- 通用 ---------- */
.section-title {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 2px 9px; font-size: 14px; font-weight: 900; letter-spacing: .12em; color: var(--chrome);
}
.section-title::before {
  content: ""; width: 3px; height: 14px;
  background: linear-gradient(180deg, var(--red-hi), var(--red-deep));
  box-shadow: var(--glow-red);
}
.section-title .more { margin-left: auto; font-size: 10px; color: var(--txt-3); font-weight: 600; letter-spacing: .04em; }
.tag {
  display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 2px;
  font-size: 9px; font-weight: 900; letter-spacing: .12em;
  background: var(--red-btn); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,180,190,.4);
}
.tag.steel { background: linear-gradient(180deg, #4C525B, #24282F); color: #CFD5DD; box-shadow: inset 0 0 0 1px rgba(208,213,220,.25); }
.tag.gold { background: var(--gold-btn); color: #1A1408; }
.empty { text-align: center; padding: 46px 0; color: var(--txt-3); font-size: 12px; letter-spacing: .06em; }
.empty .big { font-size: 34px; margin-bottom: 10px; opacity: .5; }
.muted { color: var(--txt-3); }
.flex { display: flex; }
.flex1 { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; }
.center { text-align: center; }
.gauge-num { font-family: var(--font-num); font-weight: 900; letter-spacing: .02em; }

/* ---------- 进度/保底条 ---------- */
.pbar { position: relative; height: 10px; border-radius: 2px; background: #060708; border: 1px solid #000;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.9), inset 0 0 0 1px rgba(208,213,220,.1); overflow: visible; }
.pbar i { display: block; height: 100%; border-radius: 1px;
  background: linear-gradient(180deg, #F04A61, var(--red) 55%, #7C0A1C);
  box-shadow: 0 0 10px rgba(200,16,46,.7), inset 0 1px 0 rgba(255,255,255,.4);
  transition: width .45s cubic-bezier(.2,.9,.3,1); }
.pbar .node { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 35%, #6E757F, #2A2E35 60%, #101216);
  border: 1px solid #000; box-shadow: 0 1px 0 rgba(255,255,255,.2), 0 2px 6px rgba(0,0,0,.8); }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2, 2, 3, .84);
  backdrop-filter: blur(3px) saturate(.7);
  display: flex; align-items: center; justify-content: center; padding: 22px;
  animation: fadeIn .18s;
}
@keyframes fadeIn { from { opacity: 0; } }
.dialog {
  position: relative; width: 100%; max-width: 340px;
  padding: 24px 18px 18px;
  background: linear-gradient(180deg, #23272E 0%, #101216 100%);
  border: 1px solid #000;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(208,213,220,.24),
    inset 0 0 0 4px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 24px 60px rgba(0,0,0,.9);
  animation: dialogIn .26s cubic-bezier(.2, 1.2, .3, 1);
}
.dialog::before { /* 四角机甲括号 */
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  background:
    linear-gradient(var(--chrome-2), var(--chrome-2)) left top / 14px 1px no-repeat,
    linear-gradient(var(--chrome-2), var(--chrome-2)) left top / 1px 14px no-repeat,
    linear-gradient(var(--chrome-2), var(--chrome-2)) right top / 14px 1px no-repeat,
    linear-gradient(var(--chrome-2), var(--chrome-2)) right top / 1px 14px no-repeat,
    linear-gradient(var(--chrome-2), var(--chrome-2)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--chrome-2), var(--chrome-2)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--chrome-2), var(--chrome-2)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--chrome-2), var(--chrome-2)) right bottom / 1px 14px no-repeat;
  opacity: .55;
}
.dialog::after { /* 铆钉 */
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  background-image:
    radial-gradient(circle at 2px 2px, #8A929C 0 .9px, #3A3F47 1.5px 2.2px, transparent 2.5px),
    radial-gradient(circle at 2px 2px, #8A929C 0 .9px, #3A3F47 1.5px 2.2px, transparent 2.5px),
    radial-gradient(circle at 2px 2px, #8A929C 0 .9px, #3A3F47 1.5px 2.2px, transparent 2.5px),
    radial-gradient(circle at 2px 2px, #8A929C 0 .9px, #3A3F47 1.5px 2.2px, transparent 2.5px);
  background-repeat: no-repeat; background-size: 7px 7px;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
}
@keyframes dialogIn { from { transform: scale(.88) translateY(14px); opacity: 0; } }
.dialog h3 { text-align: center; font-size: 17px; letter-spacing: .1em; margin-bottom: 4px; color: var(--chrome); font-weight: 900; }
.dialog .dlg-sub { text-align: center; color: var(--txt-3); font-size: 11px; margin-bottom: 14px; letter-spacing: .05em; }
.dialog .dlg-body { position: relative; z-index: 1; }
.dialog .dlg-actions { display: flex; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.dialog .dlg-actions .btn { flex: 1; }

/* ---------- Toast ---------- */
#toast-wrap { position: fixed; top: 16%; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 9px 18px; border-radius: 3px; font-size: 13px; font-weight: 800;
  color: var(--chrome);
  background: linear-gradient(180deg, #262A31, #12141A);
  border: 1px solid #000;
  box-shadow: inset 0 0 0 1px rgba(208,213,220,.2), 0 10px 24px rgba(0,0,0,.8);
  animation: toastIn .2s;
}
.toast.ok { box-shadow: inset 0 0 0 1px rgba(200,16,46,.55), 0 0 18px rgba(200,16,46,.35), 0 10px 24px rgba(0,0,0,.8); }
.toast.err { box-shadow: inset 0 0 0 1px rgba(255,80,80,.5), 0 10px 24px rgba(0,0,0,.8); }
@keyframes toastIn { from { transform: translateY(-12px); opacity: 0; } }

/* ---------- 表单 ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11px; color: var(--txt-3); margin-bottom: 5px; font-weight: 800; letter-spacing: .1em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 12px; border-radius: 2px;
  background: linear-gradient(180deg, #0A0B0E, #14161B);
  border: 1px solid #000;
  box-shadow: inset 0 0 0 1px rgba(208,213,220,.14), inset 0 2px 6px rgba(0,0,0,.8);
  color: var(--txt-1); font-size: 14px; letter-spacing: .03em;
  transition: box-shadow .15s;
}
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 1px rgba(200,16,46,.6), inset 0 2px 6px rgba(0,0,0,.8), 0 0 12px rgba(200,16,46,.25); }
.switch {
  position: relative; width: 44px; height: 24px; border-radius: 2px;
  background: #0A0B0E; border: 1px solid #000; cursor: pointer; flex: none;
  box-shadow: inset 0 0 0 1px rgba(208,213,220,.16), inset 0 2px 5px rgba(0,0,0,.9);
  transition: background .2s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 1px;
  background: linear-gradient(180deg, #B9C0C9, #5B626C);
  box-shadow: 0 1px 0 rgba(255,255,255,.4), 0 2px 5px rgba(0,0,0,.9);
  transition: all .18s;
}
.switch.on { background: linear-gradient(180deg, #8E0A20, #C8102E); }
.switch.on::after { left: 22px; background: linear-gradient(180deg, #FFF, #C9CFD7); }
