/* ==========================================================================
   Components: keys, LEDs, LCD, badges, panels, forms, photos, dialogs
   ========================================================================== */

/* ---------- keys (buttons) ---------- */

.btn {
  --_face: var(--key-face);
  --_face2: var(--key-face-2);
  --_ink: var(--ink);
  --_drop: var(--key-drop);
  --_edge: var(--key-edge);
  --_lift: 3px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 10px 20px;
  border: 1px solid var(--_edge); border-radius: 13px;
  font: 600 .95rem/1.15 var(--font-ui); letter-spacing: -.005em; text-align: center; text-decoration: none;
  color: var(--_ink); background: linear-gradient(var(--_face), var(--_face2)), var(--_face2);
  box-shadow: 0 1px 0 var(--key-hi) inset, 0 -2px 0 rgba(19, 19, 18, .06) inset, 0 var(--_lift) 0 var(--_drop), 0 8px 12px rgba(19, 19, 18, .10);
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: transform .08s, box-shadow .08s, background .15s, filter .15s;
}
@media (hover: hover) { .btn:hover:not(:disabled) { color: var(--_ink); filter: brightness(1.04); } }
.btn:active:not(:disabled) { transform: translateY(var(--_lift)); box-shadow: 0 1px 0 var(--key-hi) inset, 0 0 0 var(--_drop), 0 2px 4px rgba(19, 19, 18, .14); }
.btn:disabled { opacity: .5; box-shadow: none; transform: translateY(var(--_lift)); filter: grayscale(.4); }
.btn .ico svg { display: block; }

.btn-primary { --_face: #ff6a24; --_face2: var(--accent); --_ink: var(--accent-ink); --_drop: var(--accent-deep); --_edge: var(--accent-deep); }
:root[data-theme="dark"] .btn-primary { --_face: #ff7a3d; --_face2: #ff6a2b; --_drop: #8e2e00; --_edge: #8e2e00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { --_face: #ff7a3d; --_face2: #ff6a2b; --_drop: #8e2e00; --_edge: #8e2e00; } }
.btn-danger { --_face: #e8324f; --_face2: var(--bad-solid); --_ink: #fff; --_drop: #8c0f24; --_edge: #8c0f24; }
.btn-ghost { --_face: var(--key-face); --_face2: var(--key-face-2); }
.btn-sm { min-height: 40px; padding: 7px 14px; font-size: .88rem; border-radius: 11px; --_lift: 2px; gap: 7px; }
.btn-lg { min-height: 60px; padding: 14px 30px; font-size: 1.05rem; border-radius: 16px; --_lift: 4px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 4px; }
@media (pointer: coarse) { .btn { min-height: 50px; } .btn-sm { min-height: 44px; } .btn-lg { min-height: 62px; } }

/* ---------- LEDs ---------- */

.led {
  display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-2);
  background: color-mix(in srgb, var(--ink) 16%, var(--panel));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
  transition: background .2s, box-shadow .2s;
}
.led.on { background: var(--accent); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12) inset, 0 0 9px var(--accent); }
.led.ok.on { background: var(--ok); box-shadow: 0 0 9px var(--ok); }
.led.bad.on { background: var(--bad); box-shadow: 0 0 9px var(--bad); }
.led.warn.on { background: var(--warn); box-shadow: 0 0 9px var(--warn); }
.led.blink.on { animation: blink 1s steps(1, end) infinite; }

/* ---------- the LCD ---------- */

.lcd {
  position: relative; isolation: isolate; border-radius: 11px;
  padding: 10px 14px;
  background: linear-gradient(var(--lcd-bg), var(--lcd-bg-2)), var(--lcd-bg-2); color: var(--lcd-ink);
  box-shadow: 0 0 0 1px var(--lcd-edge), 0 0 0 4px var(--panel-3), 0 0 0 5px var(--line-2), inset 0 2px 8px rgba(0, 0, 0, .28);
  font-family: var(--font-lcd); font-variation-settings: "ROND" 100; font-weight: 900; letter-spacing: .05em;
}
.lcd::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(to right, rgba(0, 0, 0, .09) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, .09) 1px, transparent 1px);
  background-size: 3px 3px; mix-blend-mode: multiply; opacity: .7;
}
.lcd > * { position: relative; z-index: 2; }
.lcd .legend { color: var(--lcd-ink); color: color-mix(in srgb, var(--lcd-ink) 78%, transparent); font-size: 0.625rem; }
.lcd-num { font: 900 1.9rem/1 var(--font-lcd); font-variation-settings: "ROND" 100; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.readout { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.readout .legend { overflow-wrap: anywhere; }
.dim { color: var(--lcd-dim); }

/* ---------- tags, venom LEDs, difficulty ---------- */

.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap;
  font: 600 0.6562rem/1.2 var(--font-mono); letter-spacing: .07em; text-transform: uppercase;
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2);
}
.badges.big .badge { font-size: 0.7188rem; padding: 6px 10px; }
.badge .ico { color: var(--ink-2); }
.vleds { display: inline-flex; gap: 3px; flex: none; }
.vleds i { width: 6px; height: 12px; border-radius: 2px; background: var(--line-2); background: color-mix(in srgb, var(--ink) 18%, transparent); }
.badge.venom-deadly .vleds i, .badge.venom-venomous .vleds i:nth-child(-n+2), .badge.venom-mild .vleds i:first-child { background: var(--c); box-shadow: 0 0 6px color-mix(in srgb, var(--c) 70%, transparent); }
.badge.venom-deadly { --c: var(--v-deadly); border-color: color-mix(in srgb, var(--v-deadly) 55%, var(--line-2)); }
.badge.venom-venomous { --c: var(--v-venomous); border-color: color-mix(in srgb, var(--v-venomous) 55%, var(--line-2)); }
.badge.venom-mild { --c: var(--v-mild); }
.badge.venom-none { --c: var(--v-none); }
.badge.venom-none .vleds i { background: var(--v-none); background: color-mix(in srgb, var(--v-none) 55%, transparent); height: 4px; align-self: center; }
.badge.big4 { background: var(--bad-solid); color: #fff; border-color: var(--bad-solid); }
.badge.you { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-deep); }
.badge.fam, .badge.tier { background: transparent; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 7px; height: 7px; border-radius: 2px; background: var(--line-2); background: color-mix(in srgb, var(--ink) 18%, transparent); }
.dots i.on { background: var(--accent); }

/* ---------- panels ---------- */

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(16px, 2vw, 24px); box-shadow: var(--panel-shadow); min-width: 0;
}
.card > h2, .card > h3 { margin-bottom: 12px; }
.card > h3 { font-size: 1.12rem; }

.notice {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px 16px 26px; border-radius: var(--r); overflow: hidden;
  background: var(--warn-wash); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line));
}
.notice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, var(--warn) 6px 12px); }
.notice > .ico { color: var(--warn-ink); margin-top: 2px; }
.notice.danger { background: var(--bad-wash); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.notice.danger::before { background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, var(--bad) 6px 12px); }
.notice.danger > .ico { color: var(--bad-ink); }
.notice.info { background: var(--info-wash); border-color: color-mix(in srgb, var(--info) 35%, var(--line)); }
.notice.info::before { background: var(--info); }
.notice.info > .ico { color: var(--info-ink); }
.notice a { font-weight: 650; color: var(--ink); }
.notice > div { min-width: 0; }

.banner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--r); background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
}
.banner .legend { color: var(--accent-text); }
.banner-actions { display: flex; gap: 10px; }

.empty { text-align: center; padding: clamp(32px, 6vw, 64px) 16px; color: var(--ink-2); display: grid; justify-items: center; gap: 8px; }
.empty h2 { color: var(--ink); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.empty p { max-width: 46ch; margin: 0; }
.empty .snake-mark { width: 64px; height: 64px; color: var(--ink-3); margin-bottom: 8px; }

/* ---------- keys that choose (segmented controls, level cards) ---------- */

.seg { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 4px; }
.seg-btn {
  position: relative; flex: 1 1 78px; min-width: 0; min-height: 58px; padding: 10px 12px 9px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid var(--key-edge); border-radius: 13px; cursor: pointer; color: var(--ink);
  background: linear-gradient(var(--key-face), var(--key-face-2)), var(--key-face-2); box-shadow: var(--key-shadow);
  font-weight: 650; transition: transform .08s, box-shadow .08s, background .15s;
  touch-action: manipulation;
}
.seg-btn::after { content: ""; position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 16%, var(--panel)); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .35); }
.seg-btn.on { transform: translateY(3px); box-shadow: var(--key-shadow-down); background: var(--panel-3); border-color: var(--accent-deep); }
.seg-btn.on::after { background: var(--accent); box-shadow: 0 0 9px var(--accent); }
@media (hover: hover) { .seg-btn:not(.on):hover { background: var(--key-face); } }
.seg-btn:not(.on):active { transform: translateY(3px); box-shadow: var(--key-shadow-down); }
.seg-main { font-size: 1.05rem; line-height: 1.1; }
.seg-sub { font: 500 0.6562rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 379.98px) { .seg-sub { letter-spacing: .01em; } .seg-btn { padding-inline: 6px; } }
.seg-big .seg-btn { min-height: 92px; }
.seg-big .seg-main { font: 900 clamp(2rem, 1.4rem + 2vw, 2.9rem)/1 var(--font-lcd); font-variation-settings: "ROND" 100; letter-spacing: .04em; }

/* ---------- switches ---------- */

.switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; padding: 12px 0; min-height: 52px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch-label { font-weight: 650; }
.switch-sub { font-size: .85rem; color: var(--ink-2); }
.switch-track {
  position: relative; flex: none; width: 58px; height: 32px; border-radius: 10px;
  background: var(--chassis-2); box-shadow: inset 0 2px 5px rgba(19, 19, 18, .28), 0 1px 0 var(--key-hi);
}
.switch-track::before { content: ""; position: absolute; left: 9px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 16%, var(--panel)); transition: background .2s, box-shadow .2s; }
.switch-knob {
  position: absolute; top: 3px; left: 3px; width: 28px; height: 26px; border-radius: 8px;
  background: linear-gradient(var(--key-face), var(--key-face-2)), var(--key-face-2); border: 1px solid var(--key-edge);
  box-shadow: 0 1px 0 var(--key-hi) inset, 0 2px 0 var(--key-drop); transition: transform .2s var(--ease);
}
.switch input:checked ~ .switch-track::before { background: var(--accent); box-shadow: 0 0 9px var(--accent); }
.switch input:checked ~ .switch-track .switch-knob { transform: translateX(24px); }
.switch input:focus-visible ~ .switch-track { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- form fields ---------- */

select, input[type="search"], input[type="text"], input[type="password"], input[type="tel"], input[type="number"] {
  font: 500 1rem/1.3 var(--font-ui); color: var(--ink);        /* 16 px or more: iPhones zoom into smaller fields */
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 10px 14px; min-height: 46px; max-width: 100%;
  box-shadow: inset 0 2px 4px rgba(19, 19, 18, .07);
}
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 21px) 52%, calc(100% - 15px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
input::placeholder { color: var(--ink-3); opacity: 1; }
select:focus, input:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; }
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-left: 6px; cursor: pointer; background: var(--ink-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- names ---------- */

.names { display: flex; flex-direction: column; text-align: left; min-width: 0; gap: 1px; }
.names .common { font-weight: 650; letter-spacing: -.012em; overflow-wrap: anywhere; }
.names .sci { font-size: .82rem; overflow-wrap: anywhere; }

.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 9px; background: var(--panel-3); flex: none; display: block; }
.credit { margin: 8px 0 0; color: var(--ink-2); font-size: .78rem; line-height: 1.5; }
.credit .dot { margin: 0 6px; opacity: .6; }
.credit .place { display: inline-flex; align-items: center; gap: 3px; }
.credit a { color: var(--ink-2); white-space: nowrap; }
.credit a:hover { color: var(--accent-text); }

/* ---------- photos: a little viewfinder ---------- */

.photo {
  position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  background: #0e0e0d; isolation: isolate; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.photo-blur { position: absolute; inset: -30%; width: 160%; height: 160%; max-width: none; object-fit: cover; filter: blur(30px) brightness(.6) saturate(1.2); z-index: 0; }
.photo-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; transition: opacity .25s; }
.photo.is-loading .photo-main { opacity: 0; }
.photo.zoomable .photo-main { cursor: zoom-in; }
.skeleton {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .12) 50%, rgba(255, 255, 255, 0) 70%) #1a1a18;
  background-size: 220% 100%; animation: shimmer 1.3s linear infinite;
}
.photo.is-loading .skeleton { opacity: 1; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.photo-broken { position: absolute; inset: 0; z-index: 3; display: none; align-items: center; justify-content: center; color: #c9c8c2; font: 500 0.75rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.photo.is-broken .photo-broken { display: flex; }
.photo.vf::before, .photo.vf::after { --m: 16px; --t: 2px; --c: rgba(255, 255, 255, .8); content: ""; position: absolute; inset: 12px; z-index: 3; pointer-events: none; }
.photo.vf::before {
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--m) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--m) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--m) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--m) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--m) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--m) no-repeat;
}
.photo.vf:not(.zoomable)::after {
  background:
    linear-gradient(var(--c), var(--c)) bottom right / var(--m) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--m) no-repeat;
}
.photo.vf.zoomable::after { display: none; }
.photo-tag {
  position: absolute; left: 24px; top: 24px; z-index: 4; padding: 5px 8px; border-radius: 5px;
  background: rgba(10, 10, 9, .62); color: #f2f1ec; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 600 0.6562rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
}
.zoom-btn {
  position: absolute; right: 10px; bottom: 10px; z-index: 5; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(10, 10, 9, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.zoom-btn:hover { background: rgba(10, 10, 9, .85); }

/* ---------- dialogs ---------- */

.modal-back {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 18px; overflow-y: auto; background: rgba(10, 10, 9, .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .18s ease;
}
.modal {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--float-shadow);
  padding: 26px 26px 22px; animation: rise .26s var(--ease); overscroll-behavior: contain;
}
.modal.wide { max-width: min(1000px, 100%); }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 5; width: 42px; height: 42px; }
.modal-title { font-size: 1.4rem; margin: 0 52px 14px 0; }
.modal-title:empty { display: none; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 22px; padding-bottom: 4px; }
.modal.review .modal-body > * + * { margin-top: 16px; }
.modal.review .photo { aspect-ratio: 16 / 9; max-height: 46vh; }
.modal.lightbox { background: #070707; border-color: #262624; padding: 0; max-width: min(1280px, 100%); overflow: hidden; }
.modal.lightbox .modal-x { background: rgba(10, 10, 9, .7); color: #fff; box-shadow: none; }
.lb-stage { position: relative; height: min(80vh, 860px); height: min(80dvh, 860px); overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: zoom-in; touch-action: none; user-select: none; }
.lb-stage.zoomed { cursor: grab; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .18s ease; transform-origin: center; will-change: transform; }
.lb-cap { padding: 12px 20px 16px; color: #bdbcb5; }
.lb-cap .credit, .lb-cap .credit a { color: #bdbcb5; }
.hint-text { font: 500 0.6875rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin: 6px 0 0; }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 639.98px) {
  .modal-back { align-items: flex-end; padding: 0; }
  .modal { max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: 24px 24px 0 0; padding: 26px 18px calc(22px + var(--safe-b)); animation: sheet .3s var(--ease); }
  .modal::before { content: ""; position: absolute; top: 9px; left: 50%; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: var(--line-2); }
  .modal.lightbox { border-radius: 0; max-height: none; height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
  .modal.lightbox::before { display: none; }
  .lb-stage { height: min(78dvh, 100%); flex: 1 1 auto; }
  .modal-actions .btn { flex: 1 1 140px; }
}

#toast-root { position: fixed; left: 0; right: 0; bottom: calc(18px + var(--safe-b)); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast {
  max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 12px;
  background: var(--lcd-bg); color: var(--lcd-ink); border: 1px solid var(--lcd-edge); box-shadow: var(--float-shadow);
  font: 600 .88rem/1.35 var(--font-mono); letter-spacing: .02em;
  opacity: 0; transform: translateY(12px); transition: .25s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast.bad { background: var(--bad-solid); color: #fff; border-color: var(--bad-solid); }
@media (max-width: 1023.98px) { body:not(.in-quiz) #toast-root { bottom: calc(var(--tabbar-h) + 14px + var(--safe-b)); } }

.share-box { width: 100%; font: 500 .9rem/1.5 var(--font-mono); padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -20px; border-radius: 1px; opacity: .95; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--panel-shadow); -webkit-overflow-scrolling: touch; }
.history { width: 100%; border-collapse: collapse; font-size: .92rem; }
.history th, .history td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.history th { position: sticky; top: 0; background: var(--panel-3); font: 600 0.6562rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.history tbody tr:nth-child(even) { background: var(--panel-2); }
.history tr:last-child td { border-bottom: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; color: var(--ink-2); font: 500 0.75rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
