:root {
  --bg: #0f141b;
  --panel: #1a222d;
  --panel2: #212c3a;
  --line: #2c3949;
  --text: #dbe4ee;
  --muted: #8fa1b3;
  --accent: #2e86ab;
  --accent2: #e8a33d;
  --good: #27ae60;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh;
}
body.page-game {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
body.page-game .topbar { flex: 0 0 auto; }
body.page-game .kbwrap { flex: 0 0 auto; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 18px; letter-spacing: .4px; }
nav { display: flex; gap: 10px; align-items: center; }
.who { color: var(--muted); margin-right: 6px; }

.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  background: none;
  color: var(--text);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { background: var(--panel2); }
.btn.big { padding: 12px 26px; font-size: 16px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 30px 24px; }
.hero h1 { font-size: 34px; margin-bottom: 12px; }
.hero p { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 640px; }
.feats { margin: 18px 0 26px 20px; color: var(--muted); line-height: 1.9; }
.row.center { display: flex; gap: 14px; justify-content: center; }
.hero .row.center { justify-content: flex-start; margin-top: 10px; }

.sect { margin: 28px 0 14px; font-size: 20px; color: var(--accent2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card h3 { margin: 10px 0 8px; font-size: 16px; }
.card .keys { color: var(--muted); letter-spacing: 3px; font-family: monospace; font-size: 15px; }
.card .play { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 14px; }
.badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--muted);
}
.empty { color: var(--muted); }

.page-auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.authcard {
  width: 360px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
}
.authcard h1 { margin-bottom: 18px; font-size: 24px; }
.authcard label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.authcard input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: 15px;
}
.authcard input:focus { outline: none; border-color: var(--accent); }
.authcard button { width: 100%; margin-top: 6px; }
.authcard .err {
  background: rgba(231, 76, 60, .12);
  border: 1px solid rgba(231, 76, 60, .4);
  color: #ff9a8a;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alt { margin-top: 14px; font-size: 14px; color: var(--muted); }
.alt a { color: var(--accent); }

.gamewrap { flex: 1 1 auto; min-height: 0; width: 100%; margin: 0 auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 14px; }
.canvasbox { flex: 1 1 auto; min-height: 0; position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.canvasbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #121821; }

.hud { display: flex; flex-wrap: wrap; row-gap: 10px; gap: 22px; align-items: center; font-size: 14px; color: var(--muted); }
.hud b { color: var(--text); }
.errwrap { display: flex; align-items: center; gap: 8px; }
#stat-err { min-width: 38px; color: var(--text); }
#stat-life { min-width: 38px; color: var(--text); }
.starthint {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  max-width: 560px;
  background: rgba(16, 21, 29, .92);
  border: 1px solid var(--accent2);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  border-radius: 10px;
  padding: 10px 18px;
  text-align: center;
  pointer-events: none;
  transition: opacity .4s ease;
}
.starthint.hidden { opacity: 0; }
.meter {
  position: relative;
  display: inline-block;
  width: 180px;
  height: 14px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.meter.lives::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0 calc(15% - 1px),
    rgba(255, 255, 255, .28) calc(15% - 1px) 15%);
  pointer-events: none;
}
.meter.danger { box-shadow: 0 0 12px rgba(231, 76, 60, .75); border-color: #e74c3c; }
.meter.danger .meter-fill { animation: errblink .45s steps(2, jump-none) infinite; }
@keyframes errblink { 50% { opacity: .55; } }
.meter-fill { display: block; height: 100%; width: 0; background: var(--good); transition: width .25s ease, background .25s ease; }

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 16, .88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}
.overlay.hidden { display: none; }
.overlay h2 { font-size: 30px; }
.ovstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 26px; }
.ovstats div { display: flex; flex-direction: column; }
.ovstats span { color: var(--muted); font-size: 13px; }
.ovstats b { font-size: 21px; }

.ptitle { margin-bottom: 20px; font-size: 28px; }
.ptitle small { color: var(--muted); font-size: 15px; font-weight: 400; margin-left: 8px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.statcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.statcard b { display: block; font-size: 30px; line-height: 1.15; }
.statcard span { color: var(--muted); font-size: 13px; }

.chartbox {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 10px;
}
.chart { display: flex; gap: 7px; align-items: stretch; height: 130px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.chart .val { color: var(--text); font-size: 11px; margin-bottom: 2px; }
.chart .bar { width: 100%; max-width: 34px; background: var(--accent); border-radius: 4px 4px 0 0; transition: height .3s ease; }
.chart .bar.zero { background: var(--line); }
.chart .lbl { color: var(--muted); font-size: 11px; margin-top: 5px; }

.gtable { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gtable th, .gtable td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.gtable th { color: var(--muted); font-weight: 600; background: var(--panel2); }
.gtable tr:last-child td { border-bottom: none; }
.oc-finished { color: #6fcf97; }
.oc-game_over { color: #eb8f80; }
.oc-in_progress { color: var(--accent2); }

.kbwrap {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.kbd-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
#kbd-finger { font-size: 15px; min-height: 20px; color: var(--text); }
.kbtn {
  font-size: 12px;
  padding: 5px 12px;
  cursor: pointer;
  background: var(--panel2);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.kbtn:hover { color: var(--text); }

.keyboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  padding: 10px 12px 12px;
  background: linear-gradient(#243044, #19212e);
  border: 1px solid #0c1118;
  border-radius: 14px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(255, 255, 255, .05);
}
.krow { display: flex; gap: 6px; }
.krow-bottom { margin-top: 2px; }
.key {
  position: relative;
  min-width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#3b495f, #2b3648 55%, #25303f);
  border: 1px solid #121a26;
  border-radius: 7px;
  box-shadow: 0 3px 0 #10151d, 0 4px 7px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .09);
  color: #e8eef6;
  font-size: 17px;
  font-weight: 600;
  user-select: none;
  cursor: default;
}
.key::after {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--fc, transparent);
  opacity: .9;
}
.key.mod {
  background: linear-gradient(#303d52, #25303f 60%, #202a38);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.key.mod::after { display: none; }
.key.pressed {
  transform: translateY(3px);
  box-shadow: 0 0 0 #10151d, 0 1px 2px rgba(0, 0, 0, .5), inset 0 1px 5px rgba(0, 0, 0, .45);
  background: linear-gradient(#2b3648, #25303f);
}
.main { line-height: 1; pointer-events: none; }
.sub {
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
  pointer-events: none;
}
.f-lp { --fc: #e74c3c; } .f-lr { --fc: #e67e22; } .f-lm { --fc: #f1c40f; } .f-li { --fc: #2ecc71; }
.f-ri { --fc: #1abc9c; } .f-rm { --fc: #3498db; } .f-rr { --fc: #9b59b6; } .f-rp { --fc: #95a5a6; }
.key.home::before {
  content: '';
  position: absolute;
  bottom: 9px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
}
.key.w100 { min-width: 52px; }
.key.w125 { min-width: 64px; }
.key.w150 { min-width: 76px; }
.key.w175 { min-width: 88px; }
.key.w225 { min-width: 112px; }
.key.space { min-width: 300px; font-size: 11px; color: var(--muted); }
.key.target {
  background: linear-gradient(#f2b657, #e8a33d 60%, #d89427);
  color: #10151d;
  border-color: #a8721a;
  transform: translateY(3px);
  animation: kbpulse 1s ease-in-out infinite;
}
.key.target::after { background: rgba(16, 21, 29, .5); }
.key.target .sub { color: rgba(16, 21, 29, .6); }
@keyframes kbpulse { 50% { box-shadow: 0 0 18px rgba(232, 163, 61, .85), 0 3px 0 #10151d; } }

.kbd-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.kbd-legend .chip { display: inline-flex; align-items: center; gap: 5px; }
.kbd-legend .chip.strong { font-weight: 700; color: var(--text); }
.kbd-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.kbd-off .keyboard, .kbd-off .kbd-legend { display: none; }

.btn.danger { background: #e74c3c; border-color: #a83226; }
.btn.danger:hover { background: #c0392b; }
.reward { color: #ffd166; font-weight: 600; margin-bottom: 14px; min-height: 20px; }
.hardinfo { color: #e8e2d0; background: rgba(232,163,61,.08); border: 1px solid rgba(232,163,61,.25);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; line-height: 1.5; }
.hardinfo b { color: #ffd166; }
.ownedperks { color: #9fb4c8; font-size: 13px; margin-top: 12px; min-height: 16px; }

/* Профиль: история уровней и слабые клавиши */
.statshint { color: var(--muted); margin-top: 26px; }
.statshint a { color: var(--accent); }
.histnote { color: var(--muted); font-size: 14px; margin: -4px 0 14px; }
.gtable.hist td.params { color: var(--muted); font-size: 13px; }
.gtable.hist th, .gtable.hist td { padding: 8px 10px; vertical-align: top; }
.nowrap { white-space: nowrap; }
.weakgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.gtable.weak td.sym { font-weight: 700; color: #ffd166; }
.barcell { width: 140px; }
.barcell i { display: block; height: 8px; border-radius: 4px; background: #27ae60; min-width: 2px; }
.barcell i.mid { background: #f39c12; }
.barcell i.bad { background: #e74c3c; }

.layout-picker {
  display: inline-flex;
  gap: 8px;
  margin: 4px 0 18px;
  padding: 5px;
  background: #141c26;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.lp-btn {
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 9px;
  color: #9fb4c8;
  background: transparent;
  transition: background .12s ease, color .12s ease;
}
.lp-btn:hover { color: #dbe4ee; }
.lp-btn.active {
  color: #10151d;
  background: linear-gradient(180deg, var(--accent), #2a7fb0);
  box-shadow: 0 4px 14px rgba(46,134,171,.4);
}

.lvlselect {
  display: flex;
  flex-direction: column;
  margin: 8px 0 30px;
  background: linear-gradient(180deg, #1b2531 0%, #161e28 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
}
.ls-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(46,134,171,.22), rgba(232,163,61,.10));
  border-bottom: 1px solid var(--line);
}
.ls-layout { display: flex; align-items: center; gap: 12px; }
.ls-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--accent); color: #fff;
  font-weight: 800; font-size: 15px; letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(46,134,171,.4);
}
.ls-layout-name { font-size: 18px; font-weight: 700; }
.ls-next-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  color: #10151d; background: var(--accent2);
  border-radius: 20px; padding: 5px 13px;
  box-shadow: 0 4px 14px rgba(232,163,61,.35);
}
.ls-next-badge.hidden { display: none; }
.ls-body { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 22px 20px 18px; }
.ls-stepper { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 12px; }
.ls-stepper .step {
  width: 46px; height: 46px; border-radius: 12px;
  background: #1d2733; color: #ffd166; border: 1px solid rgba(255,209,102,.35);
  font-size: 24px; font-weight: 700; cursor: pointer; line-height: 1;
  transition: background .12s ease, transform .12s ease;
}
.ls-stepper .step:hover { background: #26333f; transform: translateY(-2px); }
.ls-stepper .step:active { transform: translateY(0); }
.lvlnum {
  display: flex; align-items: center; justify-content: center;
  width: 84px; height: 74px; border-radius: 14px;
  background: #121a24; border: 1px solid var(--line);
  position: relative; padding-top: 8px;
}
.lvlnum b {
  font-size: 40px; font-weight: 800; color: #ffd166;
  font-family: "Segoe UI", monospace; line-height: 1;
}
.lvlnum::after {
  content: "уровень";
  position: absolute; top: 8px; left: 0; right: 0;
  text-align: center; font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}
.ls-info-wrap { flex: 1 1 auto; width: 100%; min-width: 0; }
.lvlinfo b { font-size: 17px; display: block; font-weight: 700; }
.lvlinfo .lv-sub { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.keys-row { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.keys-r { display: flex; gap: 4px; flex-wrap: wrap; }
.ksel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 34px;
  border-radius: 7px;
  font-size: 14px; font-weight: 700; font-family: "Segoe UI", monospace;
  background: linear-gradient(180deg, #33465c, #28384a);
  color: #dbe4ee; border: 1px solid #45597a;
  box-shadow: 0 2px 0 #1a2634, inset 0 1px 0 rgba(255,255,255,.08);
  letter-spacing: 0;
}
.ksel.kss { width: 80px; font-size: 12px; color: #9fb4c8; }
.ksel.ks-up {
  background: linear-gradient(180deg, #4a3a1e, #382b14);
  color: #ffe2ad; border-color: #c9923f;
  box-shadow: 0 2px 0 #241a0b, inset 0 1px 0 rgba(255,214,140,.25);
  position: relative;
}
.ksel.ks-up::before {
  content: "⇧";
  position: absolute; top: -8px; right: -6px;
  font-size: 9px; line-height: 1; padding: 1px 3px;
  background: #e0932e; color: #21160c; border-radius: 4px;
  font-weight: 900;
}
.ls-progress { height: 6px; border-radius: 4px; background: #0e141c; margin-top: 18px; overflow: hidden; }
.ls-progress-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 4px; transition: width .18s ease; }
.ls-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ls-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1a2431; border: 1px solid var(--line); border-radius: 20px;
  padding: 5px 12px; font-size: 12px; color: #9fb4c8;
}
.ls-chip b { color: #e8eef5; font-weight: 700; }
.ls-foot { display: flex; justify-content: flex-end; padding: 13px 18px; border-top: 1px solid var(--line); background: rgba(0,0,0,.12); }
.ls-foot .go { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; padding: 10px 28px; font-weight: 700; }
.ls-foot .go:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ls-foot .go:active { transform: translateY(0); }

@media (max-width: 600px) {
  .lvlnum { width: 120px; height: 56px; }
  .lvlnum b { font-size: 30px; }
  .lvlnum::after { top: auto; bottom: 6px; }
}

/* --- Достижения --- */
#ach-toasts {
  position: fixed; top: 14px; right: 14px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.ach-toast {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #26374b, #1a222d);
  border: 1px solid var(--accent2); border-radius: 12px;
  padding: 10px 16px; max-width: 330px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  animation: achIn .35s ease-out;
}
.ach-toast.out { animation: achOut .3s ease-in forwards; }
.ach-badge {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--accent2); color: var(--accent2);
  font-weight: 700; font-size: 13px; background: rgba(232, 163, 61, .08);
}
.ach-toast b { display: block; font-size: 14px; }
.ach-toast span { display: block; color: var(--muted); font-size: 12px; }
@keyframes achIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes achOut { to { transform: translateX(40px); opacity: 0; } }

.achgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.achcard {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
}
.achcard.locked { opacity: .55; }
.achcard .ach-badge { width: 40px; height: 40px; font-size: 12px; }
.achcard.unlocked .ach-badge { background: rgba(232, 163, 61, .16); }
.achcard .ach-meta { min-width: 0; }
.achcard .ach-meta b { display: block; font-size: 15px; }
.achcard .ach-meta .achdesc { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.achcard .achdate { display: block; color: var(--good); font-size: 11px; margin-top: 4px; }
.achbar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.achbar i { display: block; height: 100%; background: var(--accent2); }
.achsum { color: var(--muted); font-size: 14px; font-weight: 400; margin-left: 10px; }

/* Достижения и статус дверцы мастерства в паузе выбора между уровнями */
.gatenote { color: var(--accent2); font-size: 14px; min-height: 1em; }
.ach-inchoice { display: flex; flex-direction: column; gap: 8px; max-width: 420px; max-height: 34vh; overflow-y: auto; }
.ach-inchoice:empty { display: none; }
.ach-inchoice .ach-toast { animation: none; box-shadow: none; background: rgba(38, 55, 75, .7); max-width: none; }

/* Карточки автономных режимов на главной */
.moderow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.modecard {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; color: var(--text);
  text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.modecard:hover { border-color: var(--accent2); transform: translateY(-2px); }
.modecard b { display: block; font-size: 17px; color: var(--accent2); margin-bottom: 6px; }
.modecard span { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Магазин героя */
.shopnote { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.subsect { color: var(--accent2); font-size: 16px; margin: 18px 0 10px; font-weight: 600; }
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shopcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
.shopcard.locked { opacity: .92; }
.shopcard.locked .shop-prev { opacity: .55; }
.shopcard b { font-size: 15px; }
.shopcard .shopdesc { color: var(--muted); font-size: 12px; line-height: 1.35; min-height: 2.6em; }
.shopcard button { width: 100%; padding: 8px 10px; font-size: 13px; }
.shopcard button:disabled { opacity: .85; cursor: default; }
.shop-prev { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; }
