/*
 * Shared chrome for every squishes page: the dark palette and the panic
 * notice. Page-specific layout stays in the page itself.
 */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;600&family=Poppins:wght@300;600&family=Quicksand:wght@400;500;600;700&display=swap');

:root,
html[data-theme="mint"] {
  --bg: #121816;
  --bg-elev: #1b2320;
  --bg-sunken: #0b100e;
  --fg: #e6f2ec;
  /* Every palette below is checked by scripts/theme-check.js: --fg, --fg-dim,
     --fg-faint, --accent and --alert all clear 4.5:1 against --bg, and each ink
     clears 4.5:1 against the colour it sits on. The greys this replaced were
     4.3:1 and 2.1:1, so the game count was all but invisible. */
  --fg-dim: #9ab3a8;
  --fg-faint: #82998f;
  --accent: #7ee8c7;
  --accent-ink: #062a20;
  --accent-soft: rgba(126, 232, 199, 0.16);
  --accent-glow: rgba(126, 232, 199, 0.55);
  --alert: #ff7b8a;
  --button: #9d8bff;
  --button-hover: #b4a5ff;
  --button-ink: #17112e;
  --line: #243029;
  --shadow: rgba(0, 0, 0, 0.5);
  --sheen: rgba(255, 255, 255, 0.05);

  --font-ui: Quicksand, 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-link: 'Josefin Sans', Quicksand, system-ui, sans-serif;
  --font-note: Poppins, Quicksand, system-ui, sans-serif;
}

html[data-theme="bubblegum"] {
  --bg: #16131b;
  --bg-elev: #211c29;
  --bg-sunken: #0e0c12;
  --fg: #efe9f4;
  --fg-dim: #a99fb8;
  --fg-faint: #8b8199;
  --accent: #ff8fc7;
  --accent-ink: #34101f;
  --accent-soft: rgba(255, 143, 199, 0.16);
  --accent-glow: rgba(255, 143, 199, 0.55);
  --alert: #ff6b81;
  --button: #9d8bff;
  --button-hover: #b4a5ff;
  --button-ink: #17112e;
  --line: #2e2738;
  --shadow: rgba(0, 0, 0, 0.5);
  --sheen: rgba(255, 255, 255, 0.05);
}

html[data-theme="lavender"] {
  --bg: #15131c;
  --bg-elev: #201d2b;
  --bg-sunken: #0e0c13;
  --fg: #ece9f6;
  --fg-dim: #a9a2c2;
  --fg-faint: #8d86a6;
  --accent: #c4a9ff;
  --accent-ink: #1e1233;
  --accent-soft: rgba(196, 169, 255, 0.16);
  --accent-glow: rgba(196, 169, 255, 0.55);
  --alert: #ff7a92;
  --button: #8f7bff;
  --button-hover: #a38fff;
  --button-ink: #15102c;
  --line: #2c2739;
  --shadow: rgba(0, 0, 0, 0.5);
  --sheen: rgba(255, 255, 255, 0.05);
}

html[data-theme="sakura"] {
  --bg: #1a1316;
  --bg-elev: #261c20;
  --bg-sunken: #110c0e;
  --fg: #f6e9ee;
  --fg-dim: #c2a0ac;
  --fg-faint: #a3848f;
  --accent: #ffb3c6;
  --accent-ink: #3a1120;
  --accent-soft: rgba(255, 179, 198, 0.16);
  --accent-glow: rgba(255, 179, 198, 0.55);
  --alert: #ff6f7d;
  --button: #f08ca8;
  --button-hover: #f7a3bb;
  --button-ink: #35101d;
  --line: #352831;
  --shadow: rgba(0, 0, 0, 0.5);
  --sheen: rgba(255, 255, 255, 0.05);
}

html[data-theme="sky"] {
  --bg: #111820;
  --bg-elev: #1b242e;
  --bg-sunken: #0b1016;
  --fg: #e6f0f8;
  --fg-dim: #9db2c4;
  --fg-faint: #8295a6;
  --accent: #8fd3ff;
  --accent-ink: #0b2233;
  --accent-soft: rgba(143, 211, 255, 0.16);
  --accent-glow: rgba(143, 211, 255, 0.55);
  --alert: #ff7a8c;
  --button: #5aa9e6;
  --button-hover: #74b9ee;
  --button-ink: #06192a;
  --line: #26323e;
  --shadow: rgba(0, 0, 0, 0.5);
  --sheen: rgba(255, 255, 255, 0.05);
}

html[data-theme="butter"] {
  --bg: #1a1711;
  --bg-elev: #26211a;
  --bg-sunken: #110f0a;
  --fg: #f6f0e2;
  --fg-dim: #c0b396;
  --fg-faint: #a3977e;
  --accent: #ffd98a;
  --accent-ink: #3a2a08;
  --accent-soft: rgba(255, 217, 138, 0.16);
  --accent-glow: rgba(255, 217, 138, 0.55);
  --alert: #ff8a7a;
  --button: #e0ae57;
  --button-hover: #ecbd6c;
  --button-ink: #2c1f06;
  --line: #342d22;
  --shadow: rgba(0, 0, 0, 0.5);
  --sheen: rgba(255, 255, 255, 0.05);
}

html[data-theme="peach"] {
  --bg: #191417;
  --bg-elev: #241d21;
  --bg-sunken: #100c0e;
  --fg: #f3ebe8;
  --fg-dim: #b5a5a0;
  --fg-faint: #988a86;
  --accent: #ffa07a;
  --accent-ink: #331709;
  --accent-soft: rgba(255, 160, 122, 0.16);
  --accent-glow: rgba(255, 160, 122, 0.55);
  --alert: #ff6b6b;
  --button: #f2739d;
  --button-hover: #ff8cb0;
  --button-ink: #35101f;
  --line: #33292e;
  --shadow: rgba(0, 0, 0, 0.5);
  --sheen: rgba(255, 255, 255, 0.05);
}

html[data-theme="periwinkle"] {
  --bg: #13141c;
  --bg-elev: #1c1e29;
  --bg-sunken: #0c0d13;
  --fg: #e8eaf7;
  --fg-dim: #9aa1c0;
  --fg-faint: #828aaa;
  --accent: #a5b4ff;
  --accent-ink: #141a3a;
  --accent-soft: rgba(165, 180, 255, 0.16);
  --accent-glow: rgba(165, 180, 255, 0.55);
  --alert: #ff7b8a;
  --button: #6a58e8;
  --button-hover: #5a49d8;
  --button-ink: #ffffff;
  --line: #282b3a;
  --shadow: rgba(0, 0, 0, 0.5);
  --sheen: rgba(255, 255, 255, 0.05);
}


html[data-theme="classic"] {
  --bg: #141414;
  --bg-elev: #1c1c1c;
  --bg-sunken: #0d0d0d;
  --fg: #d4cfcf;
  --fg-dim: #8f8f8f;
  --fg-faint: #858585;
  --accent: #70e67e;
  --accent-ink: #0d2412;
  --accent-soft: rgba(112, 230, 126, 0.16);
  --accent-glow: rgba(112, 230, 126, 0.6);
  --alert: #fc3d3d;
  --button: #454eb5;
  --button-hover: #0a6fd0;
  --button-ink: #ffffff;
  --line: #262626;
  --shadow: rgba(0, 0, 0, 0.5);
  --sheen: rgba(255, 255, 255, 0.05);
}

html[data-theme="mint"][data-mode="light"] {
  --bg: #f7fdfb;
  --bg-elev: #ffffff;
  --bg-sunken: #eafaf5;
  --fg: #293b36;
  --fg-dim: #4d665f;
  --fg-faint: #5d7971;
  --accent: #158362;
  --accent-ink: #ffffff;
  --accent-soft: rgba(21, 131, 98, 0.12);
  --accent-glow: rgba(21, 131, 98, 0.38);
  --alert: #d83232;
  --button: #745ee0;
  --button-hover: #6249dc;
  --button-ink: #ffffff;
  --line: #d4f2e9;
  --shadow: rgba(40, 24, 34, 0.14);
  --sheen: rgba(90, 60, 80, 0.06);
}
html[data-theme="bubblegum"][data-mode="light"] {
  --bg: #fdf7fa;
  --bg-elev: #ffffff;
  --bg-sunken: #faeaf1;
  --fg: #453039;
  --fg-dim: #745764;
  --fg-faint: #886977;
  --accent: #d22875;
  --accent-ink: #ffffff;
  --accent-soft: rgba(210, 40, 117, 0.12);
  --accent-glow: rgba(210, 40, 117, 0.38);
  --alert: #d72d2d;
  --button: #725ce0;
  --button-hover: #6047dc;
  --button-ink: #ffffff;
  --line: #f2d4e1;
  --shadow: rgba(40, 24, 34, 0.14);
  --sheen: rgba(90, 60, 80, 0.06);
}
html[data-theme="lavender"][data-mode="light"] {
  --bg: #faf8fd;
  --bg-elev: #ffffff;
  --bg-sunken: #efeaf9;
  --fg: #332b43;
  --fg-dim: #605577;
  --fg-faint: #6f6485;
  --accent: #6341c4;
  --accent-ink: #ffffff;
  --accent-soft: rgba(99, 65, 196, 0.12);
  --accent-glow: rgba(99, 65, 196, 0.38);
  --alert: #cf2f3f;
  --button: #6341c4;
  --button-hover: #5433b3;
  --button-ink: #ffffff;
  --line: #e2d8f3;
  --shadow: rgba(32, 24, 46, 0.14);
  --sheen: rgba(70, 56, 100, 0.06);
}

html[data-theme="sakura"][data-mode="light"] {
  --bg: #fdf7f9;
  --bg-elev: #ffffff;
  --bg-sunken: #fbe9ee;
  --fg: #422c33;
  --fg-dim: #72525c;
  --fg-faint: #85636d;
  --accent: #c43a62;
  --accent-ink: #ffffff;
  --accent-soft: rgba(196, 58, 98, 0.12);
  --accent-glow: rgba(196, 58, 98, 0.38);
  --alert: #cc2b3b;
  --button: #c43a62;
  --button-hover: #ad2d53;
  --button-ink: #ffffff;
  --line: #f4d6df;
  --shadow: rgba(46, 26, 33, 0.14);
  --sheen: rgba(100, 60, 72, 0.06);
}

html[data-theme="sky"][data-mode="light"] {
  --bg: #f6fafd;
  --bg-elev: #ffffff;
  --bg-sunken: #e8f1f8;
  --fg: #26333d;
  --fg-dim: #4e616f;
  --fg-faint: #5c6f7e;
  --accent: #10658f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(16, 101, 143, 0.12);
  --accent-glow: rgba(16, 101, 143, 0.38);
  --alert: #c62f3c;
  --button: #10658f;
  --button-hover: #0b557a;
  --button-ink: #ffffff;
  --line: #d6e5f0;
  --shadow: rgba(20, 34, 45, 0.14);
  --sheen: rgba(50, 70, 90, 0.06);
}

html[data-theme="butter"][data-mode="light"] {
  --bg: #fdfbf4;
  --bg-elev: #ffffff;
  --bg-sunken: #f7f0dd;
  --fg: #3b3426;
  --fg-dim: #6a5d43;
  --fg-faint: #7a6c50;
  --accent: #8a6410;
  --accent-ink: #ffffff;
  --accent-soft: rgba(138, 100, 16, 0.12);
  --accent-glow: rgba(138, 100, 16, 0.38);
  --alert: #c4382a;
  --button: #8a6410;
  --button-hover: #74540b;
  --button-ink: #ffffff;
  --line: #efe3c7;
  --shadow: rgba(46, 38, 22, 0.14);
  --sheen: rgba(90, 76, 44, 0.06);
}

html[data-theme="peach"][data-mode="light"] {
  --bg: #fdf9f7;
  --bg-elev: #ffffff;
  --bg-sunken: #faefea;
  --fg: #41332d;
  --fg-dim: #6f5c54;
  --fg-faint: #826e64;
  --accent: #ba5323;
  --accent-ink: #ffffff;
  --accent-soft: rgba(186, 83, 35, 0.12);
  --accent-glow: rgba(186, 83, 35, 0.38);
  --alert: #d72f2f;
  --button: #735de0;
  --button-hover: #6048dc;
  --button-ink: #ffffff;
  --line: #f2ddd4;
  --shadow: rgba(40, 24, 34, 0.14);
  --sheen: rgba(90, 60, 80, 0.06);
}
html[data-theme="periwinkle"][data-mode="light"] {
  --bg: #f7f8fd;
  --bg-elev: #ffffff;
  --bg-sunken: #eaedfa;
  --fg: #313446;
  --fg-dim: #595e76;
  --fg-faint: #6b708a;
  --accent: #4f67dd;
  --accent-ink: #ffffff;
  --accent-soft: rgba(79, 103, 221, 0.12);
  --accent-glow: rgba(79, 103, 221, 0.38);
  --alert: #d72d2d;
  --button: #725ce0;
  --button-hover: #5f46dc;
  --button-ink: #ffffff;
  --line: #d4d9f2;
  --shadow: rgba(40, 24, 34, 0.14);
  --sheen: rgba(90, 60, 80, 0.06);
}
html[data-theme="classic"][data-mode="light"] {
  --bg: #f7fdf8;
  --bg-elev: #ffffff;
  --bg-sunken: #eafaec;
  --fg: #293c2c;
  --fg-dim: #4e6751;
  --fg-faint: #5e7a61;
  --accent: #168523;
  --accent-ink: #ffffff;
  --accent-soft: rgba(22, 133, 35, 0.12);
  --accent-glow: rgba(22, 133, 35, 0.38);
  --alert: #d83232;
  --button: #745ee0;
  --button-hover: #6249dc;
  --button-ink: #ffffff;
  --line: #d4f2d7;
  --shadow: rgba(40, 24, 34, 0.14);
  --sheen: rgba(90, 60, 80, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------- panic */

/*
 * Bottom-centred pill. Deliberately out of the way: it sits below the game
 * stage, never takes pointer events, and takes itself off the page after five
 * seconds.
 */
.squishes-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 2147483646;
  transform: translate(-50%, 12px);
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px var(--shadow);
  color: var(--fg);
  font-family: var(--font-note);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease, transform 400ms ease;
}

.squishes-toast.is-in {
  opacity: 1;
  transform: translate(-50%, 0);
}

.squishes-flash {
  bottom: 72px;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.squishes-toast kbd {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--accent);
}

/* On a phone the pill is narrower than the sentence, and an ellipsised panic
   notice tells the visitor nothing. Let it use two lines instead. */
@media (max-width: 480px) {
  .squishes-toast {
    white-space: normal;
    border-radius: 16px;
    text-overflow: clip;
  }
}

@media (prefers-reduced-motion: reduce) {
  .squishes-toast { transition: opacity 400ms ease; transform: translate(-50%, 0); }
}

.sq-server-btn {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 2147483640;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
  backdrop-filter: blur(8px);
  color: var(--fg-dim);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sq-server-btn:hover,
.sq-server-btn:focus-visible {
  opacity: 1;
  color: var(--fg);
  border-color: var(--fg-faint);
}

.sq-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.sq-panel {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.sq-panel-card {
  width: min(440px, 100%);
  max-height: min(560px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-elev);
  box-shadow: 0 20px 60px var(--shadow);
}

.sq-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sq-panel-head h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 19px;
  color: var(--fg);
}

.sq-panel-shut {
  border: 0;
  background: none;
  color: var(--fg-faint);
  font-size: 24px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.sq-panel-shut:hover { color: var(--fg); }

.sq-panel-blurb {
  margin: 8px 0 16px;
  font-family: var(--font-note);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-dim);
}

.sq-panel-note {
  margin: 0;
  padding: 14px 0;
  font-family: var(--font-note);
  font-weight: 300;
  font-size: 13px;
  color: var(--fg-faint);
  text-align: center;
}

.sq-server-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sq-server {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-sunken);
}

.sq-server.is-current { border-color: var(--accent); }
.sq-server.is-down { opacity: 0.5; }

.sq-server-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sq-server-name b {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sq-server-name span {
  font-family: var(--font-note);
  font-weight: 300;
  font-size: 12px;
  color: var(--fg-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sq-server-state {
  font-family: var(--font-note);
  font-weight: 300;
  font-size: 12px;
  color: var(--fg-dim);
  white-space: nowrap;
}

.sq-server.is-up .sq-server-state { color: var(--accent); }
.sq-server.is-down .sq-server-state { color: var(--alert); }

.sq-server-go {
  flex: none;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: background 160ms ease;
}

.sq-server-go:hover:not(:disabled) { background: var(--button-hover); }

.sq-server-go:disabled {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-faint);
  cursor: default;
}

.squishes-fs:-webkit-full-screen {
  position: fixed !important;
  inset: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  background: #000;
}

.squishes-fs:fullscreen {
  position: fixed !important;
  inset: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  transform: none !important;
  background: #000;
}

.squishes-fs:fullscreen > iframe,
.squishes-fs:fullscreen > canvas,
.squishes-fs:fullscreen > div {
  width: 100% !important;
  height: 100% !important;
}

.sq-key-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.sq-key {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.sq-key-name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-ui);
  font-size: 13px;
}

.sq-key-cap {
  flex: none;
  min-width: 40px;
  text-align: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--button-quiet, transparent);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
}

.sq-key-set {
  flex: none;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: background 160ms ease;
}

.sq-key-set:hover:not(:disabled) { background: var(--button-hover); }

.sq-key-set:disabled {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-faint);
  cursor: default;
}

.sq-key-reset {
  align-self: flex-start;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg-faint);
  font-family: var(--font-ui);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.sq-key-reset:hover { color: var(--fg); }

.squishes-toast-more {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  opacity: 0.75;
  cursor: pointer;
}

.squishes-toast-more:hover { opacity: 1; }

.sq-admin-btn {
  left: auto;
  right: 14px;
  bottom: 62px;
  text-decoration: none;
}

.sq-dot-admin {
  background: var(--button-hover);
  box-shadow: 0 0 6px var(--button-hover);
}

.sq-theme-btn { left: 14px; }

.sq-theme-btn.is-stacked { bottom: 52px; }

.sq-dot-theme {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.sq-theme-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.sq-theme-pick {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-sunken);
  color: var(--fg-dim);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease;
}

.sq-theme-pick:hover,
.sq-theme-pick:focus-visible {
  color: var(--fg);
  border-color: var(--fg-faint);
}

.sq-theme-pick[aria-pressed="true"] {
  color: var(--fg);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.sq-theme-chip {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.sq-mode-row {
  display: inline-flex;
  gap: 4px;
  margin: 2px 0 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-sunken);
}

.sq-mode-pick {
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--fg-dim);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.sq-mode-pick:hover { color: var(--fg); }

.sq-mode-pick[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.grecaptcha-badge { visibility: hidden; }

.sq-recaptcha-note {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--fg-faint);
}

.sq-recaptcha-note a { color: var(--fg-dim); font-family: inherit; }

@media (max-width: 480px) {
  .sq-server-btn { font-size: 11px; padding: 6px 11px; }
  .sq-panel-card { padding: 16px; }
  .sq-key-name { font-size: 12px; }
}

/* ------------------------------------------------------------------ shared */

a { color: var(--fg); font-family: var(--font-link); }

/* The sheen the reference site sweeps across a link on hover. */
@keyframes squishes-shine {
  from { -webkit-mask-position: 150%; mask-position: 150%; }
  to { -webkit-mask-position: -50%; mask-position: -50%; }
}

.shine:hover {
  -webkit-mask-image: linear-gradient(-75deg, rgba(0, 0, 0, 0.6) 30%, #000 50%, rgba(0, 0, 0, 0.6) 70%);
  mask-image: linear-gradient(-75deg, rgba(0, 0, 0, 0.6) 30%, #000 50%, rgba(0, 0, 0, 0.6) 70%);
  -webkit-mask-size: 200%;
  mask-size: 200%;
  animation: squishes-shine 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .shine:hover { animation: none; -webkit-mask-image: none; mask-image: none; }
}
