/* Artist2Artist visual theme: true black, one bright green accent, pill shapes, muted gray for secondary text.
 *
 * Purely visual. Dash loads every file in assets/ automatically, after Bootstrap, so these rules win by order;
 * !important is used only where the app itself writes inline styles from its callbacks (the Submit and dropdown
 * styles set on a new day, the message colors) so that nothing has to change in the game code.
 *
 * Tokens first; change a color or the font in one place. */
:root {
  --bg: #000;
  --surface: #121212;          /* inputs, menus, modals */
  --surface-2: #1c1c1c;
  --surface-hover: #282828;
  --line: #2e2e2e;             /* hairlines */
  --line-strong: #535353;      /* input and ghost-button borders */
  --text: #fff;
  --muted: #b3b3b3;            /* secondary text */
  --subdued: #6a6a6a;          /* connectors, footer */
  --accent: #1ed760;           /* primary actions and highlights */
  --accent-hover: #3be477;
  --accent-press: #17b84f;
  --accent-soft: rgba(30, 215, 96, 0.35);
  --danger: #ff6b6b;
  --warn: #ffb020;
  --radius-pill: 999px;
  --font: "Outfit", "Avenir Next", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --icon-search: 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.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E");
}

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ page shell */
.app-shell {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 32px 16px 0;
  background: var(--bg);
}

.app-shell > * { max-width: 100%; box-sizing: border-box; }

/* ------------------------------------------------------------------ header */
.app-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;      /* the title stays centered; the help button sits beside it */
  align-items: center;
  width: 100%;
  max-width: 720px;
  margin-bottom: 8px;
}

.site-title {
  grid-column: 2;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(1.9rem, 6.2vw, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.help-slot { grid-column: 3; justify-self: start; margin-left: 14px; }

/* small pills off to the left of the title (the "?" button balances them on the right) */
.side-links { grid-column: 1; grid-row: 1; justify-self: end; display: flex; gap: 8px; margin-right: 14px; }
.side-link {
  padding: 6px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.side-link:hover { border-color: var(--text); color: var(--text); transform: scale(1.05); text-decoration: none; }
.side-link:active { transform: scale(0.96); }
.side-link:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* a tooltip that says what a link leads to: on hover, on keyboard focus, and by itself once for a first-time visitor (hints.js) */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: 220px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
[data-tip]:hover::after, [data-tip]:focus-visible::after, [data-tip].tip-open::after { opacity: 1; transform: translate(-50%, 0); }
.side-link.tip-open { border-color: var(--accent); color: var(--text); }

.help-button {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: 1.5px solid var(--line-strong) !important;
  color: var(--muted) !important;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem !important;
  line-height: 1 !important;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.help-button:hover { border-color: var(--text) !important; color: var(--text) !important; transform: scale(1.06); }
.help-button:active { transform: scale(0.95); }

/* ------------------------------------------------------------------ logo (spins while a guess is processed; see logo.css) */
.site-title .site-logo {
  height: 0.95em;
  width: 0.95em;
  margin-right: 0.28em;
  transform-origin: 50% 50%;
  transition: filter 0.3s var(--ease);
  filter: drop-shadow(0 0 0 rgba(30, 215, 96, 0));
}
body:has(#submit-button[data-dash-is-loading="true"]) .site-logo {
  filter: drop-shadow(0 0 10px var(--accent-soft));      /* a green halo while it spins */
}

/* ------------------------------------------------------------------ the puzzle */
.game-intro {
  max-width: 620px;
  text-wrap: balance;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  font-weight: 500;
  text-align: center;
}
.game-intro .artist-name { color: var(--accent); font-weight: 800; }

.chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 26px;
}

.chain-box {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: min(100%, 340px);
  padding: 7px 22px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-align: left;
  animation: box-in 0.28s var(--ease) both;
}
.chain-box .artist-photo { width: 34px; height: 34px; border-radius: 50%; }

/* semantic colors come from box_colors() in main.py (inline); these only add the shape's finishing touches */
.chain-box--won {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 28px rgba(30, 215, 96, 0.28);
  animation: box-in 0.28s var(--ease) both, glow 1.6s ease-out 0.2s 1;
}
.chain-box--wrong {
  border-color: rgba(255, 255, 255, 0.22);
  animation: box-in 0.28s var(--ease) both, shake 0.36s ease 0.05s 1;
}

.chain-arrow {
  height: 20px;
  color: var(--subdued);
  font-size: 0.85rem;
  line-height: 20px;
}

@keyframes box-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); } 40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); } 80% { transform: translateX(3px); }
}
@keyframes glow { 0% { box-shadow: 0 0 0 1px var(--accent), 0 0 0 rgba(30, 215, 96, 0.6); }
                  40% { box-shadow: 0 0 0 1px var(--accent), 0 0 36px rgba(30, 215, 96, 0.55); }
                  100% { box-shadow: 0 0 0 1px var(--accent), 0 0 28px rgba(30, 215, 96, 0.28); } }

/* ------------------------------------------------------------------ the dropdown (react-select inside dcc.Dropdown) */
:is(#artist-dropdown, #song-dropdown, #album-dropdown) {
  width: min(100%, 520px) !important;
  margin: 0 auto 18px !important;
  font-family: var(--font);
}

/* dcc.Dropdown copies the app's inline width/margins onto the inner control as well; the theme owns the sizing */
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select,
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-control { width: 100% !important; margin: 0 !important; }

:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-control {
  height: 52px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  box-shadow: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-control:hover { border-color: var(--text); box-shadow: none; }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select.is-focused > .Select-control,
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select.is-focused > .Select-control:hover,
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select.is-open > .Select-control {
  background: var(--surface);
  border-color: var(--accent);                      /* thin green outline, not a fill */
  box-shadow: 0 0 0 1px var(--accent);
  border-bottom-left-radius: var(--radius-pill);
  border-bottom-right-radius: var(--radius-pill);
}

/* a search icon on the left (a mask, so its color can follow the input's state); the text is indented to clear it */
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-control::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  z-index: 1;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background: var(--muted);
  pointer-events: none;
  transition: background 0.18s var(--ease);
  -webkit-mask: var(--icon-search) center / contain no-repeat;
          mask: var(--icon-search) center / contain no-repeat;
}
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-control:hover::before,
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select.is-focused > .Select-control::before { background: var(--text); }

:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-multi-value-wrapper { padding-left: 0; }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-placeholder,
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select--single > .Select-control .Select-value {
  line-height: 49px;
  padding-left: 54px;                               /* the placeholder and the typed text start at the same x */
  padding-right: 42px;
}
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-placeholder { color: var(--muted); }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-value-label { color: var(--text) !important; font-weight: 600; }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-input { height: 49px; padding-left: 54px; }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-input > input {
  height: 49px;
  padding: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  caret-color: var(--accent);
}
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-arrow-zone { padding-right: 18px; }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-arrow { border-top-color: var(--muted); }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select.is-open .Select-arrow { border-bottom-color: var(--accent); }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-clear-zone { color: var(--muted); }

:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-menu-outer {
  margin-top: 8px;
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: menu-in 0.16s var(--ease) both;
}
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-menu { padding: 6px; }
/* the list scrolls inside the dark panel: a slim gray scrollbar instead of the browser's light one */
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-menu-outer,
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-menu-outer * { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-menu-outer ::-webkit-scrollbar { width: 8px; }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-menu-outer ::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--radius-pill); }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-menu-outer ::-webkit-scrollbar-track { background: transparent; }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .VirtualizedSelectOption {
  box-sizing: border-box;
  margin: 0 6px;
  width: calc(100% - 12px) !important;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: background 0.12s ease;
}
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .VirtualizedSelectFocusedOption {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--accent);      /* the active option is outlined in green */
}
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .VirtualizedSelectSelectedOption { font-weight: 700; color: var(--accent); }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .VirtualizedSelectOption:hover:not(.VirtualizedSelectFocusedOption) { background: var(--surface-hover); }
:is(#artist-dropdown, #song-dropdown, #album-dropdown) .Select-noresults { color: var(--muted); padding: 14px 18px; }

@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ mode toggle and the hard-mode song row */
.mode-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
}
.mode-input { position: absolute; opacity: 0; pointer-events: none; }
.mode-label {
  margin: 0;
  padding: 7px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.mode-label:hover { color: var(--text); }
.mode-label:has(.mode-input:checked) { color: var(--accent); border-color: var(--accent); }     /* a thin green outline, not a fill */
.mode-label:has(.mode-input:disabled) { cursor: not-allowed; opacity: 0.55; }
.mode-label:has(.mode-input:disabled):hover { color: var(--muted); }
.mode-label:has(.mode-input:checked:disabled) { color: var(--accent); opacity: 0.85; }
.mode-label:has(.mode-input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.mode-note { max-width: 520px; margin: -4px 0 14px; color: var(--muted); font-size: 0.88rem; text-align: center; }
.mode-note:empty { display: none; }

.song-row { width: 100%; display: flex; justify-content: center; }

/* ------------------------------------------------------------------ Submit: the primary action */
#submit-button {
  display: inline-block;
  margin: 0 !important;
  padding: 14px 52px !important;
  border: 0 !important;
  border-radius: var(--radius-pill) !important;
  background: var(--accent) !important;
  color: #000 !important;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease), opacity 0.2s ease;
  box-shadow: 0 6px 22px rgba(30, 215, 96, 0.22);
}
#submit-button:hover { background: var(--accent-hover) !important; transform: scale(1.04); box-shadow: 0 8px 28px rgba(30, 215, 96, 0.38); }
#submit-button:active { background: var(--accent-press) !important; transform: scale(0.96); box-shadow: 0 2px 10px rgba(30, 215, 96, 0.25); }
#submit-button[data-dash-is-loading="true"] { opacity: 0.7; }          /* a guess is being checked */

#loading-icon { width: 100%; max-width: 560px; }

/* the message under the button; its color comes from the game code (green / red / orange), mapped to the palette */
#game-output {
  max-width: 560px;
  margin: 20px auto 0 !important;
  padding: 0 4px;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}
#game-output[style*="color: green"], #game-output [style*="color: green"] { color: var(--accent) !important; }
#game-output[style*="color: red"],   #game-output [style*="color: red"]   { color: var(--danger) !important; }
#game-output[style*="color: orange"], #game-output [style*="color: orange"] { color: var(--warn) !important; }
#game-output a { color: var(--accent) !important; font-weight: 700; text-decoration: none; }
#game-output a:hover { text-decoration: underline; }
#game-output.msg-in { animation: msg-in 0.32s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* The "checking" indicator Dash shows while a guess resolves: five stretching bars (Dash paints them blue and 6px wide).
 * Here they are slim green rounded bars with a soft glow, like an equalizer; Dash's own stretch animation is kept. */
.dash-default-spinner.dash-spinner {
  width: 34px !important;
  height: 26px !important;
  margin: 6px auto !important;
}
.dash-default-spinner > div {
  width: 3px !important;
  margin: 0 1.5px !important;
  border-radius: var(--radius-pill);
  background-color: var(--accent) !important;
  box-shadow: 0 0 8px var(--accent-soft);
  animation-duration: 1s !important;
}

/* ------------------------------------------------------------------ secondary buttons, modals */
.ghost-button {
  margin-top: 36px;
  padding: 10px 26px !important;
  border: 1.5px solid var(--line-strong) !important;
  border-radius: var(--radius-pill) !important;
  background: transparent !important;
  color: var(--text) !important;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease), background 0.16s var(--ease);
}
.ghost-button:hover { border-color: var(--text) !important; transform: scale(1.04); background: rgba(255, 255, 255, 0.06) !important; }
.ghost-button:active { transform: scale(0.96); }

.modal-content {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 28px;
  font-family: var(--font);
  overflow: hidden;
}
.modal-header, .modal-footer { border-color: var(--line); }
.modal-title { font-weight: 800; letter-spacing: -0.01em; }
.modal-body { color: var(--muted); line-height: 1.55; }
.modal-body b, .modal-body h3 { color: var(--text); }
.modal-body h3 { font-weight: 800; font-size: 1.4rem; margin-bottom: 14px; }
.modal-backdrop.show { opacity: 0.72; }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); opacity: 0.7; }
.btn-close:hover { opacity: 1; }

.modal-footer .btn {
  padding: 10px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #000;
  font-family: var(--font);
  font-weight: 800;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease);
}
.modal-footer .btn:hover { background: var(--accent-hover); color: #000; transform: scale(1.04); }
.modal-footer .btn:active { background: var(--accent-press); transform: scale(0.96); }

/* ------------------------------------------------------------------ Older puzzles (both games): a native <details>, no script */
.archive { width: 100%; max-width: 560px; margin-top: 14px; text-align: center; }
.archive > summary { list-style: none; display: inline-block; cursor: pointer; margin-top: 0; user-select: none; }
.archive > summary::-webkit-details-marker { display: none; }
.archive[open] > summary { border-color: var(--text) !important; }
.archive-note { margin: 14px 0 10px; color: var(--muted); font-size: 0.88rem; }
.archive-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.archive-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.archive-num { min-width: 3.4em; font-weight: 800; color: var(--accent); }
.archive-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.archive-puzzle { font-weight: 700; overflow-wrap: anywhere; }
.archive-when { color: var(--muted); font-size: 0.82rem; }
.archive-play { flex: none; padding: 6px 20px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill);
  background: transparent; color: var(--text); font-family: var(--font); font-weight: 700; text-decoration: none; cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease); }
.archive-play:hover { border-color: var(--accent); background: rgba(30, 215, 96, 0.1); color: var(--text); }
.archive-result { max-width: 520px; margin: 14px 0 0; text-align: center; color: var(--muted); }
.archive-result .back-link, .album-note .back-link { color: var(--accent); }
@media (max-width: 480px) { .archive-item { gap: 8px; padding: 10px; } .archive-num { min-width: 2.6em; } }

/* ------------------------------------------------------------------ Share Results: stays below the game once it is over */
.share-row { width: 100%; justify-content: center; margin: 22px 0 0; }
.share-row .btn, .share-button, #share-button {
  padding: 12px 40px !important;
  border: 0 !important;
  border-radius: var(--radius-pill) !important;
  background: var(--accent) !important;
  color: #000 !important;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 22px rgba(30, 215, 96, 0.22);
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.share-button:hover, #share-button:hover { background: var(--accent-hover) !important; transform: scale(1.04); box-shadow: 0 8px 28px rgba(30, 215, 96, 0.38); }
.share-button:active, #share-button:active { background: var(--accent-press) !important; transform: scale(0.96); }

/* the result as text under the Share button, to copy by hand (the album game's own block is .album-share in albums.css) */
.share-preview {
  width: fit-content; max-width: 100%; box-sizing: border-box; margin: 16px auto 0; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 18px; color: var(--muted);
  font-family: var(--font); font-size: 1rem; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere;
  user-select: all;                     /* one click selects the whole result */
}

/* the album game's Share button: a plain button (it has no Dash callback) that looks like the artist game's */
.album-share-button { display: block; margin: 16px auto 0; cursor: pointer; font-size: 1rem; }

/* ------------------------------------------------------------------ footer */
.app-footer {
  margin-top: auto;
  padding: 36px 0 24px;
  width: 100%;
  color: var(--subdued);
  font-size: 0.85rem;
  text-align: center;
}

/* ------------------------------------------------------------------ keyboard focus, small screens, reduced motion */
#submit-button:focus-visible, .ghost-button:focus-visible, .help-button:focus-visible, .modal-footer .btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  box-shadow: none;
}

@media (max-width: 480px) {
  .app-shell { padding-top: 22px; }
  .side-links { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin: 10px 0 0; }   /* no room beside the title: under it */
  .help-slot { margin-left: 8px; }
  .chain-box { width: min(100%, 320px); }
  #submit-button { padding: 14px 44px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
