/* engine.css: the look of every escape room. Used with engine.js, after
   /shared/kredits-tokens.css.

   Light by default; body.dark is the dark theme (the switch in the top bar,
   remembered in localStorage 'kredits_theme' like the Scoreboard's). The
   game colours below are set on body, not :root, so the Kredits tokens of
   the same names stay as they are. Room pages colour their diagrams with
   these names: --text, --muted, --line, --bg, --panel, --panel-2, --accent
   (selection, graph lines), --amber (clues and labels), --green, --red, --heat. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* The Kredits red, read here before body swaps --accent for the game's blue */
  --cta-light: var(--accent); --cta-light-hover: var(--accent-hover);
}
body {
  --bg: var(--surface-alt); --panel: var(--surface); --panel-2: var(--surface-alt); --line: var(--border-strong);
  --text: var(--ink); --muted: var(--text-muted);
  --accent: var(--info); --on-sel: var(--on-accent);
  --amber: var(--warning-text); --green: var(--success-text); --red: var(--danger-text); --heat: var(--data-3);
  --on-green: var(--on-accent);
  --cta: var(--cta-light); --cta-hover: var(--cta-light-hover); --on-cta: var(--on-accent);
  --eyebrow: var(--pill-text);
  --wire-5: var(--data-4); --wire-6: var(--data-5); --wire-7: var(--data-6);
  --card-shadow: var(--shadow-sm);
}
body.dark {
  --bg: var(--dark-bg); --panel: var(--dark-surface); --panel-2: var(--dark-surface-2); --line: var(--dark-border-strong);
  --text: var(--dark-text); --muted: var(--dark-text-muted);
  --accent: var(--esc-dark-blue); --on-sel: var(--dark-bg);
  --amber: var(--esc-dark-amber); --green: var(--dark-success); --red: var(--dark-danger); --heat: var(--esc-dark-heat);
  --on-green: var(--dark-bg);
  --cta: var(--esc-dark-amber); --cta-hover: var(--esc-dark-amber); --on-cta: var(--dark-bg);
  --eyebrow: var(--esc-dark-amber);
  --wire-5: var(--esc-dark-violet); --wire-6: var(--esc-dark-cyan); --wire-7: var(--esc-dark-pink);
  --card-shadow: none;
  color-scheme: dark;
}
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); min-height: 100vh; line-height: 1.5; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px 48px; }
@media (min-width: 600px) { .wrap { padding: 0 32px 64px; } }

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo img { display: block; }
.top-acts { display: flex; align-items: center; gap: 4px; }
.all-rooms { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 14px; color: var(--muted); text-decoration: none; }
.all-rooms:hover { color: var(--text); }
.theme-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; }
.theme-btn:hover { color: var(--text); }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* HUD */
.hud { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 0; border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hud[hidden] { display: none; }
.timer { font-family: var(--font-numerals); font-weight: 700; font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; min-width: 92px; }
.timer.low { color: var(--amber); }
.timer.over { color: var(--red); }
.hud-meta { font-size: 13px; color: var(--muted); }
.code-strip { display: flex; gap: 6px; margin-left: auto; }
.code-slot { width: 30px; height: 38px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--panel);
  display: grid; place-items: center; font-family: var(--font-numerals); font-weight: 700; font-size: 18px; color: var(--muted); }
.code-slot.got { border-color: var(--amber); color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.code-slot.here { border-color: var(--accent); }
@media (max-width: 520px) { .code-strip { margin-left: 0; width: 100%; } .code-slot { flex: 1; } }

/* screens */
.screen { padding-top: 28px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 8px; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(34px, 6.4vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 4.2vw, 36px); font-weight: 700; margin-bottom: 10px; }
h3 { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.lead { color: var(--muted); font-size: 16px; max-width: 620px; margin-top: 14px; }
.story { color: var(--text); font-size: 16px; max-width: 640px; margin: 12px 0 18px; }
.story em { color: var(--amber); font-style: normal; font-weight: 700; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; margin-top: 16px; box-shadow: var(--card-shadow); }
@media (min-width: 600px) { .card { padding: 24px; } }
.data { display: inline-block; background: var(--panel); border: 1px solid color-mix(in srgb, var(--amber) 35%, var(--line));
  border-radius: 8px; padding: 1px 8px; font-weight: 700; color: var(--amber); white-space: nowrap; }
.formula { font-size: 14px; color: var(--muted); }

.topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.topics span { font-size: 13px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-pill); padding: 4px 10px; color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field label, .field-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.team-opts { margin-top: 8px; }
.team-opts button { min-width: 110px; font-weight: 600; }
.input-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
input[type=text], input[type=number], input[inputmode], select {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; font-size: 16px; }
input::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input.ans { width: 150px; }
.unit { color: var(--muted); font-size: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--text); }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.btn.primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 44px; padding: 6px 12px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }

.feedback { margin-top: 14px; font-size: 15px; min-height: 1.5em; }
.feedback.bad { color: var(--red); }
.feedback.good { color: var(--green); }

.hints { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.hint { font-size: 15px; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 0 8px 8px 0; margin-top: 8px; }

/* settings on the start screen */
.settings-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; font-size: 14px; color: var(--muted); }

/* room 1 table */
.devices { display: grid; gap: 10px; }
.device { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
@media (min-width: 640px) { .device { grid-template-columns: 1.3fr 1fr 1fr; } }
.device .name { font-weight: 600; }
.device .in { font-size: 14px; color: var(--muted); }
.device select { width: 100%; }

/* sankey */
.sankey { width: 100%; max-width: 560px; height: auto; display: block; margin: 8px auto 0; }
.sankey text { font-family: var(--font-body); font-size: 13px; fill: var(--text); }
.sankey .lbl-muted { fill: var(--muted); font-size: 12px; }

/* order list */
.order { list-style: none; display: grid; gap: 8px; counter-reset: step; }
.order li { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 8px 8px 12px; }
.order li::before { counter-increment: step; content: counter(step); font-family: var(--font-numerals); font-weight: 700; color: var(--amber); width: 18px; flex-shrink: 0; }
.order .txt { flex: 1; font-size: 15px; }
.order .mv { display: flex; gap: 4px; }
.order .mv button { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 16px; }
.order .mv button:disabled { opacity: .3; cursor: default; }

/* sort */
.sort-grid { display: grid; gap: 8px; }
.sort-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: transparent; padding: 8px 14px; min-height: 44px; cursor: pointer; font-size: 14px; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed=true] { background: var(--accent); color: var(--on-sel); font-weight: 600; }

/* keypad */
.keypad-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.display { font-family: var(--font-numerals); font-size: 34px; font-weight: 700; letter-spacing: .3em; background: var(--esc-screen); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 16px; min-width: 260px; text-align: center; color: var(--esc-screen-text); min-height: 66px; }
.display.err { color: var(--dark-danger); }
.keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 8px; margin-top: 12px; }
.keypad button { height: 60px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); font-size: 22px; font-weight: 600; cursor: pointer; box-shadow: var(--card-shadow); }
.keypad button:active { transform: scale(.97); }
.keypad .enter { background: var(--green); color: var(--on-green); border-color: var(--green); font-size: 15px; }

/* unlocked overlay */
.unlock { position: fixed; inset: 0; z-index: 20; background: var(--overlay); display: grid; place-items: center; padding: 16px; }
.unlock[hidden] { display: none; }
.unlock-box { background: var(--panel); border: 2px solid var(--amber); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; max-width: 380px; width: 100%;
  box-shadow: var(--shadow-lg); animation: pop .35s ease; }
.unlock-box .big { font-family: var(--font-numerals); font-weight: 700; font-size: 72px; color: var(--amber); line-height: 1; margin: 10px 0; }
.unlock-box p { color: var(--muted); font-size: 15px; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.map { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 0; }
.map span { font-size: 12px; border-radius: var(--radius-pill); padding: 3px 9px; border: 1px solid var(--line); color: var(--muted); background: var(--panel); }
.map span.done { border-color: var(--green); color: var(--green); }
.map span.now { border-color: var(--amber); color: var(--amber); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 18px; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.stat b { display: block; font-family: var(--font-numerals); font-size: 26px; font-weight: 700; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b.code { font-size: clamp(18px, 6vw, 26px); letter-spacing: .08em; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .shake, .unlock-box { animation: none; } }
.live-card { border-color: var(--accent); }
.live-card p { margin-top: 6px; font-size: 15px; }
.live-card a, .feedback a { color: var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }
.foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.foot button { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; min-height: 44px; }
noscript p { padding: 24px 0; }

/* two-column match rows, multiple choice, typed answers */
@media (min-width: 640px) { .device.two { grid-template-columns: 1.6fr 1fr; } }
.part { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-right: 6px; }
.choices { display: grid; gap: 12px; }
.choice { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.choice .q { font-size: 16px; margin-bottom: 10px; }
.choice .q b { color: var(--amber); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { min-height: 44px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 15px; }
.opts button:hover { border-color: var(--muted); }
.opts button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--on-sel); font-weight: 600; }
input.word { width: 100%; max-width: 360px; font-size: 20px; letter-spacing: .04em; }
.riddle { font-size: 18px; line-height: 1.55; background: var(--panel-2); border-left: 3px solid var(--amber); padding: 12px 16px; border-radius: 0 10px 10px 0; margin-bottom: 4px; }
.emoji { font-size: 30px; letter-spacing: .08em; line-height: 1.2; }

/* padlock wheels */
.padlock { display: flex; flex-direction: column; align-items: center; margin: 18px 0 4px; }
.shackle { width: 120px; height: 56px; border: 12px solid var(--esc-shackle); border-bottom: 0; border-radius: 60px 60px 0 0; margin-bottom: -4px; }
.lockbody { display: flex; align-items: center; gap: 8px; padding: 16px 18px; background: linear-gradient(var(--esc-metal-1), var(--esc-metal-2)); border-radius: 16px; flex-wrap: wrap; justify-content: center; }
.wheel { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wheel button { width: 46px; height: 32px; border-radius: 8px; border: 1px solid var(--esc-metal-1); background: var(--esc-metal-2); cursor: pointer; color: var(--esc-tile); font-size: 13px; }
.wheel button:hover { filter: brightness(1.3); }
.wheel-face { width: 46px; height: 58px; display: grid; place-items: center; background: var(--esc-tile); color: var(--esc-tile-ink); border-radius: 8px; font-family: var(--font-numerals); font-weight: 700; font-size: 30px; box-shadow: inset 0 6px 8px rgba(0,0,0,.35), inset 0 -6px 8px rgba(0,0,0,.35); }
.wheel-face:focus { outline: 2px solid var(--esc-dark-amber); outline-offset: 2px; }
.wheel-face.spin { animation: spin .18s ease-out; }
@keyframes spin { from { transform: translateY(-6px); opacity: .4; } to { transform: none; opacity: 1; } }
.dial-unit { color: var(--esc-tile); font-weight: 600; margin-left: 4px; }

/* wires */
.wires { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
@media (min-width: 640px) { .wires { gap: 12px 90px; } }
.wires svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wcol { display: grid; gap: 10px; align-content: start; }
.term { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; text-align: left; font-size: 15px; }
.term.r { justify-content: flex-start; }
.term .plug { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--muted); background: var(--panel); }
.term.linked .plug { border-color: var(--wire); background: var(--wire); }
.term.linked { border-color: var(--wire); }
.term.armed { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 25%, transparent); }

/* memory cards */
.memory { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.mcard { position: relative; min-height: 96px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; padding: 8px; font-size: 15px; line-height: 1.3; }
.mcard .back { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--accent); }
.mcard .front { display: none; }
.mcard.up .back { display: none; }
.mcard.up .front { display: block; }
.mcard.up { background: var(--panel); border-color: var(--accent); animation: flip .25s ease; }
.mcard.got { border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--panel)); cursor: default; }
@keyframes flip { from { transform: rotateY(90deg); } to { transform: none; } }

/* anagram */
.ana-slots, .ana-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ana-slots .gap { width: 18px; }
.slot-t, .tile-l { width: 46px; height: 52px; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 700; font-size: 24px; cursor: pointer; }
.slot-t { border: 2px dashed var(--line); background: transparent; }
.slot-t.full { border: 2px solid var(--amber); color: var(--amber); }
.tile-l { border: 1px solid var(--esc-tile-edge); background: var(--esc-tile); color: var(--esc-tile-ink); box-shadow: 0 3px 0 var(--esc-tile-edge); }
.tile-l:disabled { opacity: .15; cursor: default; }

/* cipher */
.cipher-msg { font-family: var(--font-mono); font-size: clamp(24px, 6vw, 38px); font-weight: 700; letter-spacing: .25em; color: var(--esc-screen-text); background: var(--esc-screen); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; text-align: center; word-break: break-all; }
.decoder { margin-top: 14px; }
.strip { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.crow { display: flex; }
.crow span { flex: 1 0 24px; text-align: center; padding: 4px 0; font-family: var(--font-mono); font-weight: 700; font-size: 15px; }
.crow.plain span { background: var(--panel-2); color: var(--amber); border-top: 1px solid var(--line); }

/* quickfire */
.qf p { color: var(--muted); font-size: 15px; }
.qf-start { margin-top: 14px; }
.qf-bar { height: 10px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; margin-bottom: 14px; }
.qf-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red), var(--amber), var(--green)); transition: width .1s linear; }
.qf-n { font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.qf-text { font-size: clamp(18px, 3vw, 24px); font-weight: 600; margin: 6px 0 16px; min-height: 2.6em; }
.qf-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.qf-opts .btn { flex: 1; min-height: 56px; font-size: 17px; }

/* slider gauge */
.gauge { margin-top: 16px; text-align: center; }
.gauge-val { font-family: var(--font-numerals); font-weight: 700; font-size: 40px; color: var(--amber); }
.gauge input[type=range] { width: 100%; accent-color: var(--amber); height: 44px; padding: 0; border: 0; background: transparent; }
.gauge-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.nudge { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.nudge .btn { width: 56px; font-size: 18px; }

/* fill the gaps */
.cloze { font-size: 17px; line-height: 2.3; }
.gapb { min-width: 90px; min-height: 36px; padding: 2px 10px; margin: 0 3px; border-radius: 8px; border: 2px dashed var(--muted); background: transparent; cursor: pointer; font-size: 15px; vertical-align: middle; }
.gapb.full { border: 2px solid var(--amber); color: var(--amber); font-weight: 600; }
.bank { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.chip { min-height: 44px; padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 15px; }
.chip.armed { background: var(--accent); border-color: var(--accent); color: var(--on-sel); }
.chip:disabled { opacity: .25; cursor: default; }

/* tap the ones that fit */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.pick { min-height: 64px; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 15px; font-weight: 600; }
.pick[aria-pressed=true] { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
@media (prefers-reduced-motion: reduce) { .wheel-face.spin, .mcard.up { animation: none; } }

/* graphs and diagrams drawn by room pages */
.graph { width: 100%; max-width: 520px; height: auto; display: block; margin: 4px auto 14px; }
.graph text { font-family: var(--font-body); fill: var(--text); }
.graph .tick { font-size: 12px; fill: var(--muted); }
.graph .lbl { font-size: 16px; font-weight: 700; fill: var(--amber); }
.graph .grid { stroke: var(--line); stroke-width: 1; }
.graph .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.graph .ray { fill: none; stroke: var(--amber); stroke-width: 3; }
.graph .dash { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 6 5; }
.graph .solid { fill: none; stroke: var(--text); stroke-width: 3; }
.nuclide { display: inline-flex; align-items: center; font-weight: 700; font-size: 20px; color: var(--amber); vertical-align: middle; }
.nuclide .az { display: inline-flex; flex-direction: column; align-items: flex-end; font-size: 12px; line-height: 1.1; margin-right: 2px; }
.nuclide sup, .nuclide sub { vertical-align: baseline; font-size: 12px; }
