/* Darts Player Simulator translation panel. Colours follow the game's "Oche Night" theme. */
:root {
  --bg-0: #0a0c11;
  --bg-1: #10141b;
  --bg-2: #161c26;
  --bg-3: #1e2632;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f6;
  --text-dim: #a1abba;
  --text-faint: #5f6878;
  --accent: #f4c152;
  --accent-ink: #1a1305;
  --accent-soft: rgba(244, 193, 82, 0.14);
  --success: #3ccf8e;
  --success-soft: rgba(60, 207, 142, 0.14);
  --danger: #ef5a5f;
  --danger-soft: rgba(239, 90, 95, 0.14);
  --warn: #ff8a5c;
  --warn-soft: rgba(255, 138, 92, 0.12);
  --career: #b594f0;
  --board-red: #d8373f;
  --board-green: #1f9d57;
  --board-cream: #efe4c8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --nav-h: 64px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Barlow Condensed', 'Inter', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg-0);
  background-image:
    radial-gradient(1200px 600px at 50% -200px, rgba(244, 193, 82, 0.08), transparent 70%),
    radial-gradient(800px 500px at 110% 110%, rgba(181, 148, 240, 0.06), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.01em; line-height: 1.1; margin: 0; }
h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12.5px; }
.hidden { display: none !important; }

/* ---------- layout */
.app { min-height: 100%; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(10, 12, 17, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { height: 30px; display: block; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding-left: 10px; border-left: 1px solid var(--line-strong); }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a, .tabbar a {
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-dim);
  padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; position: relative;
}
.topnav a:hover { color: var(--text); background: var(--bg-2); }
.topnav a.on { color: var(--accent-ink); background: var(--accent); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.topnav a.on .badge { background: var(--accent-ink); color: var(--accent); }
.who { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13px; }
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px calc(var(--nav-h) + 32px); }
.tabbar { display: none; }

@media (max-width: 760px) {
  .topnav, .who .name { display: none; }
  .who { margin-left: auto; }
  .brand span { display: none; }
  main { padding-top: 16px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(16, 20, 27, 0.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .tabbar a { flex: 1; flex-direction: column; justify-content: center; gap: 2px; border-radius: 0; font-size: 11px; padding: 6px 0; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--accent); }
  .tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); }
  h1 { font-size: 28px; }
}

/* ---------- controls */
.btn {
  appearance: none; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text);
  padding: 10px 16px; border-radius: 12px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  transition: transform 0.08s, background 0.15s, border-color 0.15s;
  min-height: 44px;
}
.btn:hover { background: var(--bg-3); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { background: #ffd06a; }
.btn.good { background: var(--success); color: #04150d; border-color: transparent; }
.btn.bad { background: transparent; color: var(--danger); border-color: rgba(239, 90, 95, 0.4); }
.btn.bad:hover { background: var(--danger-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn.ghost:hover { color: var(--text); background: var(--bg-2); }
.btn.small { min-height: 32px; padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

label.field { display: grid; gap: 6px; font-size: 13px; color: var(--text-dim); font-weight: 600; }
input[type=text], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; background: var(--bg-0); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 11px 14px; color: var(--text); outline: none; font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: none; line-height: 1.45; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.pagehead p { margin: 6px 0 0; color: var(--text-dim); }
.eyebrow { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: var(--accent); }

.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 761px) { .toast-wrap { bottom: 24px; } }
.toast { background: var(--bg-3); border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); animation: toast-in 0.2s ease-out; font-size: 14px; }
.toast.bad { border-left-color: var(--danger); }
.toast.good { border-left-color: var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- flags and progress */
.flag { width: 30px; height: 20px; border-radius: 4px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 2px 6px rgba(0, 0, 0, 0.4); }
.flag.big { width: 54px; height: 36px; border-radius: 6px; }
.flag.tiny { width: 18px; height: 12px; border-radius: 2px; }
.bar { position: relative; height: 10px; background: var(--bg-0); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bar > i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; transition: width 0.6s cubic-bezier(.2,.8,.2,1); }
.bar > i.done { background: linear-gradient(90deg, #d9a43a, var(--accent)); z-index: 2; }
.bar > i.review { background: repeating-linear-gradient(-45deg, rgba(244,193,82,0.38) 0 6px, rgba(244,193,82,0.18) 6px 12px); }
.bar.thick { height: 14px; }

/* ---------- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(100%, 400px); }
.login-card .logo { display: block; width: 210px; margin: 0 auto 8px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6)); }
.login-card .tag { text-align: center; color: var(--accent); font-family: var(--display); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 28px; }
.board-deco { position: fixed; z-index: -1; width: 720px; height: 720px; right: -260px; bottom: -300px; opacity: 0.08; border-radius: 50%;
  background: repeating-conic-gradient(var(--board-red) 0 9deg, var(--board-cream) 9deg 18deg); mask: radial-gradient(circle, #000 0 38%, transparent 38.5% 41%, #000 41.5% 64%, transparent 64.5% 67%, #000 67.5% 70%, transparent 70.5%); }
.error-line { color: var(--danger); font-size: 14px; min-height: 20px; }

/* ---------- home */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 24px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(244,193,82,0.12), rgba(16,20,27,0.6) 55%), var(--bg-1); }
.hero .ring { width: 132px; height: 132px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 560px) { .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } .hero .cta { justify-content: center; } }
.ring text { font-family: var(--display); font-weight: 800; font-style: italic; fill: var(--text); }
.lang-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.lang-card { position: relative; overflow: hidden; display: grid; gap: 14px; }
.lang-card .stripe { position: absolute; inset: 0 0 auto 0; height: 4px; }
.lang-card .head { display: flex; gap: 14px; align-items: center; }
.lang-card .pct { margin-left: auto; font-family: var(--display); font-size: 40px; font-weight: 800; font-style: italic; line-height: 1; color: var(--accent); }
.lang-card .pct small { font-size: 20px; }
.lang-card .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); gap: 8px; flex-wrap: wrap; }
.lang-card.mine { border-color: rgba(244, 193, 82, 0.45); box-shadow: 0 0 0 1px rgba(244,193,82,0.15), var(--shadow); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-dim); margin: 14px 2px 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 16px; }
.tile { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tile b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; font-style: italic; line-height: 1.1; }
.tile span { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.tile.gold b { color: var(--accent); }
.tile.green b { color: var(--success); }
.tile.red b { color: var(--danger); }

/* ---------- deck */
.deck-wrap { max-width: 620px; margin: 0 auto; }
.deck-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.deck-head .mode { display: flex; background: var(--bg-1); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-left: auto; }
.deck-head .mode a { text-decoration: none; color: var(--text-dim); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; display: flex; gap: 6px; align-items: center; }
.deck-head .mode a.on { background: var(--accent); color: var(--accent-ink); }
.deck-head .mode a.on .badge { background: var(--accent-ink); color: var(--accent); }
.deck { position: relative; }
.deck .ghost { position: absolute; inset: 14px 14px -14px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); transform: scale(0.97); opacity: 0.7; }
.deck .ghost.two { inset: 26px 28px -26px; opacity: 0.4; transform: scale(0.94); }
.card {
  position: relative; z-index: 2; background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: var(--shadow);
  padding: 20px; touch-action: pan-y; user-select: none; will-change: transform;
}
.card.enter { animation: card-in 0.28s cubic-bezier(.2,.8,.2,1); }
@keyframes card-in { from { transform: translateY(18px) scale(0.97); opacity: 0; } }
.card.fly { transition: transform 0.35s ease-in, opacity 0.35s ease-in; }
.card.back { transition: transform 0.25s cubic-bezier(.2,.8,.2,1); }
.card textarea, .card input { user-select: text; }
.stamp { position: absolute; top: 22px; z-index: 5; padding: 6px 14px; border: 3px solid; border-radius: 10px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; pointer-events: none; }
.stamp.right { left: 22px; transform: rotate(-12deg); color: var(--success); border-color: var(--success); background: rgba(10, 20, 15, 0.6); }
.stamp.left { right: 22px; transform: rotate(12deg); color: var(--danger); border-color: var(--danger); background: rgba(20, 10, 10, 0.6); }
.card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg-0); border: 1px solid var(--line); font-size: 12px; color: var(--text-dim); max-width: 100%; }
.chip.gold { color: var(--accent); border-color: rgba(244,193,82,0.35); background: var(--accent-soft); }
.chip.purple { color: var(--career); border-color: rgba(181,148,240,0.35); }
.chip .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--text-faint); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.english { font-size: 21px; line-height: 1.45; font-weight: 500; white-space: pre-wrap; word-break: break-word; margin-bottom: 18px; }
.english.long { font-size: 17px; }
.ph { color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 0 4px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.82em; white-space: nowrap; }
.theirs { font-size: 20px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; padding: 14px 16px; border-radius: 14px; background: var(--bg-0); border: 1px solid var(--line); }
.card textarea { font-size: 18px; min-height: 92px; padding: 14px 16px; border-radius: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chips button { appearance: none; border: 1px dashed rgba(244,193,82,0.5); background: transparent; color: var(--accent); border-radius: 8px; padding: 5px 9px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12.5px; cursor: pointer; }
.chips button:hover { background: var(--accent-soft); }
.chips button.used { border-style: solid; opacity: 0.55; }
.issues { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.issues li { display: flex; gap: 8px; align-items: flex-start; }
.issues li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; }
.issues li.err { color: #ff9a9d; } .issues li.err::before { background: var(--danger); }
.issues li.warn { color: #ffc0a3; } .issues li.warn::before { background: var(--warn); }
.issues li.ok { color: var(--success); } .issues li.ok::before { background: var(--success); }
.hint { border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.hint.bad { background: var(--danger-soft); border: 1px solid rgba(239,90,95,0.3); }
.hint.info { background: rgba(91,141,239,0.1); border: 1px solid rgba(91,141,239,0.3); }
.hint.plural { background: var(--accent-soft); border: 1px solid rgba(244,193,82,0.25); }
.hint b { color: var(--text); }
.hint .q { white-space: pre-wrap; display: block; margin-top: 4px; color: var(--text); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.actions.three { grid-template-columns: 1fr auto 1fr; }
.actions .btn { min-height: 54px; font-size: 16px; border-radius: 14px; }
.keys-hint { font-size: 12px; color: var(--text-faint); margin-top: 14px; text-align: center; }
@media (max-width: 760px) { .keys-hint { display: none; } }
.empty { text-align: center; padding: 48px 20px; }
.empty .dart { width: 90px; height: 90px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle, var(--board-red) 0 18%, var(--board-green) 18% 26%, var(--bg-2) 26% 100%); box-shadow: 0 0 0 6px var(--bg-1), 0 0 0 7px var(--line-strong); display: grid; place-items: center; }
.session-count { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 20px; color: var(--accent); }

.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(5, 6, 9, 0.7); backdrop-filter: blur(4px); display: grid; align-items: end; justify-items: center; animation: fade 0.15s; }
@media (min-width: 761px) { .sheet-bg { align-items: center; } }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(100%, 560px); max-height: 92vh; overflow: auto; background: var(--bg-1); border: 1px solid var(--line-strong); border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); animation: up 0.22s cubic-bezier(.2,.8,.2,1); }
.sheet.wide { width: min(100%, 820px); }
@media (min-width: 761px) { .sheet { border-radius: 22px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.reasons button { appearance: none; background: var(--bg-0); border: 1px solid var(--line-strong); color: var(--text); padding: 8px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.reasons button.on { background: var(--danger-soft); border-color: var(--danger); color: #ffb3b5; }

/* ---------- lists and tables */
.list { display: grid; gap: 8px; }
.item { display: grid; gap: 4px; padding: 12px 14px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; }
.item.click { cursor: pointer; } .item.click:hover { border-color: var(--line-strong); background: var(--bg-2); }
.item .en { color: var(--text-dim); font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.item .tr { white-space: pre-wrap; word-break: break-word; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.status.approved { color: var(--success); background: var(--success-soft); }
.status.pending { color: var(--accent); background: var(--accent-soft); }
.status.rejected { color: var(--danger); background: var(--danger-soft); }
.status.todo, .status.superseded { color: var(--text-dim); background: var(--bg-3); }
.status.edited { color: var(--career); background: rgba(181,148,240,0.14); }
.status.translated { color: #8fb4ff; background: rgba(91,141,239,0.14); }
.tablewrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.subnav { display: flex; gap: 6px; overflow-x: auto; margin: -4px -16px 20px; padding: 4px 16px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; color: var(--text-dim); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-1); }
.subnav a.on { color: var(--accent); border-color: rgba(244,193,82,0.5); background: var(--accent-soft); }
.feed .item { grid-template-columns: auto 1fr; column-gap: 12px; }
.feed .item .when { font-size: 12px; color: var(--text-faint); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 8px; }
.chart .day { flex: 1; display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; justify-content: flex-start; position: relative; }
.chart .day i { display: block; border-radius: 3px; min-height: 2px; }
.chart .day span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-faint); white-space: nowrap; }
.secret { display: flex; gap: 10px; align-items: center; background: var(--bg-0); border: 1px dashed rgba(244,193,82,0.5); border-radius: 12px; padding: 14px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 15px; white-space: pre-wrap; word-break: break-all; }
.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 36px 20px; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.progress-line { height: 6px; border-radius: 3px; background: var(--bg-0); overflow: hidden; }
.progress-line i { display: block; height: 100%; background: var(--accent); transition: width 0.2s; }
.diff-was { color: #ff9a9d; text-decoration: line-through; text-decoration-color: rgba(239,90,95,0.5); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- fit fixes from the phone captures */
.deck-head .row { flex-wrap: nowrap; }
.actions .btn { white-space: nowrap; padding: 10px 12px; }
@media (max-width: 400px) { .actions .btn { font-size: 15px; gap: 6px; } }
.grid2 { align-items: start; }
.feed .en, .feed .tr { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
@media (max-width: 480px) {
  .deck-head .row h3 { font-size: 0; } /* the flag says which language; the switch needs the width */
  .deck-head .mode a { padding: 7px 11px; }
}
