/* ==========================================================================
   LAST FLAG STANDING — SOOTHING SPACE STYLESHEET
   Deep space gradient + twinkling starfield · dark glass panels
   Soft cyan glow on the ring · rounded corners · warm amber accents
   No libraries, no external CSS — flags are tiny flagcdn.com images (with
   emoji fallback baked into the JS).
   ========================================================================== */

:root {
  --space-1: #02040a;
  --space-2: #0a0f1c;
  --panel: rgba(15, 21, 33, 0.68);
  --panel-solid: #0d141f;
  --line: rgba(200, 218, 232, 0.10);
  --line-strong: rgba(200, 218, 232, 0.22);
  --white: #edf1f6;
  --white-dim: #8d99ac;
  --cyan: #b7cdd8;        /* soft ice — accents, not neon */
  --cyan-strong: #a4bccb;
  --cyan-deep: #6b8391;
  --amber: #d8c49c;       /* muted sand */
  --error: #ffc9c9;
  --error-bg: rgba(255, 120, 120, 0.10);
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

::selection { background: rgba(190, 210, 230, 0.28); color: #02040a; }

html,
body {
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--white);
  font-family: var(--sans);
  /* Deep space gradient (#02040a → #0a0f1c) with two soft nebula glows */
  background:
    radial-gradient(1100px 720px at 78% -12%, rgba(64, 96, 150, 0.16), transparent 62%),
    radial-gradient(900px 640px at -12% 112%, rgba(48, 72, 125, 0.14), transparent 58%),
    linear-gradient(180deg, var(--space-1) 0%, #050b18 46%, var(--space-2) 100%);
  background-attachment: fixed;
}
body.is-playing { overflow: hidden; }

/* Page-wide twinkling starfield (painted by js/script.js) */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hidden { display: none !important; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.screen { width: 100%; position: relative; z-index: 1; }

/* ============================================================
   SCREEN A — SETUP
   ============================================================ */
.screen--setup {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: clamp(18px, 4.5vh, 48px) 16px 44px;
}

.setup-wrap {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.logo {
  display: inline-block;
  font-weight: 800;
  font-size: clamp(2.1rem, 9.2vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: 0.035em;
  background: linear-gradient(180deg, #ffffff 10%, #dde5ec 70%, #b9c7d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
}

/* --- Glass panels --- */
.panel {
  background: linear-gradient(160deg, rgba(20, 30, 52, 0.72), rgba(11, 18, 34, 0.72));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 12px;
}

/* The search panel must out-stack the panels AFTER it (ring spin, PLAY),
   otherwise the absolutely-positioned dropdown — trapped inside this panel's
   backdrop-filter stacking context — paints UNDER them. */
.panel--search { position: relative; z-index: 50; }

/* --- Search + dropdown --- */
.search-area { position: relative; z-index: 30; }
.search-box { position: relative; display: flex; }

#country-search {
  flex: 1;
  width: 100%;
  background: rgba(4, 9, 20, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  padding: 14px 50px 14px 14px;
  caret-color: var(--cyan);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
#country-search::placeholder { color: #54678a; }
#country-search:focus {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.clear-search {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--white-dim);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.clear-search:hover { background: rgba(255, 255, 255, 0.07); color: var(--white); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 275px;
  overflow-y: auto;
  background: rgba(11, 16, 26, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  list-style: none;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
  padding: 6px;
}
.dropdown::-webkit-scrollbar { width: 10px; }
.dropdown::-webkit-scrollbar-track { background: transparent; }
.dropdown::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 6px; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--white);
  padding: 10px 10px;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}
.dropdown-item:hover:not(:disabled),
.dropdown-item.is-active:not(:disabled) { background: rgba(255, 255, 255, 0.075); }
.dropdown-item:disabled { cursor: default; opacity: 0.4; }

.dropdown-flag,
.flag-img {
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.dropdown-flag { display: inline-flex; align-items: center; }
.flag-emoji-fallback { font-size: 1.25rem; line-height: 1; }

.dropdown-name { flex: 1; }
.dropdown-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  border: 1px solid rgba(200, 218, 232, 0.26);
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
}
.dropdown-item:disabled .dropdown-tag { color: var(--white-dim); border-color: rgba(255, 255, 255, 0.13); }

.dropdown-empty {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--white-dim);
  padding: 14px 12px;
}

/* --- Chips --- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; min-height: 40px; }
.chips:empty::after {
  content: "No contenders yet — search above";
  align-self: center;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: #54678a;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 5px 8px 5px 10px;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--white);
}
.chip-flag { display: inline-flex; align-items: center; }
.chip-x {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.chip-x:hover { background: rgba(255, 140, 140, 0.28); }

.selection-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
}
.selection-count { color: var(--cyan); }
.selection-hint { color: var(--white-dim); }
.selection-hint.hint-warn { color: var(--amber); }

.validation {
  display: none;
  margin-top: 10px;
  background: var(--error-bg);
  border: 1px solid rgba(255, 150, 150, 0.35);
  color: var(--error);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 10px 12px;
}
.validation.show { display: block; }

/* --- Ring spin slider (soft glowing orb thumb) --- */
.spin-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--white-dim);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ffffff, #cfd8df 75%);
  border: none;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}
input[type="range"]::-moz-range-track { height: 5px; background: rgba(255, 255, 255, 0.13); border-radius: 999px; }
input[type="range"]::-moz-range-thumb {
  width: 21px; height: 21px; border-radius: 50%; border: none;
  background: radial-gradient(circle at 38% 35%, #ffffff, #cfd8df 75%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  cursor: grab;
}
.spin-value {
  display: inline-block;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--white-dim);
}
.spin-value strong { color: var(--cyan); font-weight: 700; }

/* --- Buttons (soft, rounded, glowing primary) --- */
.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  background: rgba(20, 30, 52, 0.7);
  color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 15px 22px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease, background 0.18s ease;
}
.btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}
.btn:active:not(:disabled) { transform: translateY(1px); }

.btn-play {
  width: 100%;
  border: none;
  border-radius: 14px;
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  padding: 19px;
  color: #20262e;
  background: linear-gradient(180deg, #f2f4f7 0%, #dde2e8 60%, #c6cdd6 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.btn-play:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffffff 0%, #e6eaef 60%, #cdd4dc 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: none;
}
.btn-play:disabled {
  background: rgba(30, 41, 62, 0.6);
  color: #55688a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
  cursor: not-allowed;
}

.fineprint {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  color: #46587a;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.shake { animation: shake 0.4s ease; }

/* ============================================================
   SCREEN B — PLAY (fixed 9:16 glass arena floating on the starfield)
   ============================================================ */
.screen--play {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  background: transparent; /* page starfield + gradient stay visible around the arena */
}

/* 9:16 canvas: height bounded by viewport height OR width*16/9 */
.canvas-wrap { position: relative; height: min(100dvh, 177.78vw); aspect-ratio: 9 / 16; }

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 16, 0.55);
  border: 1px solid rgba(220, 230, 240, 0.10);
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  touch-action: none;
}

/* --- Win overlay --- */
.win-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 16, 0.62);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
}

.win-panel {
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(22, 28, 41, 0.92), rgba(10, 13, 22, 0.93));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 20px 18px 18px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.win-kicker {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  color: var(--white-dim);
}

.win-flag-wrap { display: flex; justify-content: center; margin: 14px 0 2px; }
.win-flag {
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 10px 28px rgba(0, 0, 0, 0.5);
}

.win-text {
  color: #f2f5f8;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.55rem, 5.6vh, 2.4rem);
  line-height: 1.08;
  margin: 10px 0 4px;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  word-break: break-word;
}

/* --- Top 5 leaderboard --- */
.leaderboard {
  margin: 14px 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  background: rgba(6, 10, 22, 0.55);
}
.lb-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  padding: 9px 12px;
}
.lb-note {
  background: transparent;
  color: var(--white-dim);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.13em;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.lb-row {
  display: grid;
  grid-template-columns: 40px 44px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--sans);
}
.lb-row:last-child { border-bottom: none; }
.lb-rank { color: var(--cyan); font-weight: 800; font-size: 1rem; font-family: var(--mono); }
.lb-flag { display: inline-flex; align-items: center; }
.lb-name { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--white); text-transform: uppercase; }

.btn-reset { width: 100%; margin-top: 4px; }

/* --- Small screens --- */
@media (max-width: 420px) {
  .panel { padding: 13px; }
  .selection-meta { font-size: 0.58rem; letter-spacing: 0.08em; }
  .dropdown-item { font-size: 0.85rem; }
}
@media (max-height: 640px) {
  .screen--setup { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .chip-x, .clear-search, .dropdown-item { transition: none; }
  .shake { animation: none; }
}

/* ============================================================
   FLAGORBIT — BRAND + SEO EXTRAS
   ============================================================ */
/* Screen-reader-only helper (used for the visually hidden slider <label>) */
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

.logo-sub { display:block; font-size:clamp(0.5rem, 2vw, 0.72rem); letter-spacing:0.28em; color:var(--cyan); font-weight:600; margin-top:10px; }

/* HOW TO PLAY — crawlable copy, moonlit and quiet */
.how-to { border-top:1px solid var(--line); padding:20px 6px 2px; }
.how-to h2 { font-family:var(--mono); font-size:0.72rem; letter-spacing:0.24em; color:var(--white-dim); margin-bottom:10px; }
.how-to p { color:#b9c7d2; font-size:0.86rem; line-height:1.68; margin-bottom:10px; }
.how-to strong { color:var(--white); font-weight:700; }
.how-to h3 { font-family:var(--mono); font-size:0.62rem; letter-spacing:0.2em; color:var(--cyan); margin:14px 0 6px; }

/* SITE FOOTER — legal + credits, above the starfield */
.site-footer { position:relative; z-index:1; text-align:center; padding:16px 16px 28px; }
.site-footer p { font-family:var(--mono); font-size:0.58rem; letter-spacing:0.1em; color:#71839b; line-height:1.8; }
.site-footer a { color:var(--cyan); text-decoration:none; border-bottom:1px dotted rgba(159, 198, 222, 0.45); }
.site-footer a:hover { color:#e8eef4; }

/* ============================================================
   SITE NAVBAR — the slim header bar (card layout was retired)
   ============================================================ */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 35;
  background: linear-gradient(180deg, rgba(6, 11, 22, 0.9), rgba(6, 11, 22, 0.72));
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
/* During a match the body carries .is-playing — hide the chrome completely */
body.is-playing .site-navbar { display: none; }
.nav-inner { max-width: 1060px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 14px; }
.nav-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.nav-wordmark { font-size: clamp(1.1rem, 3.4vw, 1.45rem); letter-spacing: 0.08em; line-height: 1; margin: 0; }
.nav-wordmark .logo-sub { margin-top: 5px; }
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-link {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em; color: var(--cyan);
  border: 1px solid rgba(159, 198, 222, 0.32); border-radius: 10px; padding: 9px 13px;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover { background: rgba(159, 198, 222, 0.12); color: var(--white); border-color: rgba(159, 198, 222, 0.55); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 560px) {
  .nav-inner { padding: 8px 12px; gap: 10px; }
  .nav-mark { width: 32px; height: 32px; }
  .nav-wordmark { font-size: 1.02rem; }
}
@media (max-width: 430px) {
  .logo-sub { display: none; }            /* tiny screens: mark + wordmark only */
  .nav-link { padding: 7px 9px; font-size: 0.54rem; }
}

/* ============================================================
   ELIMINATION TOAST — "<COUNTRY> IS ELIMINATED" (~2.2s, top of arena)
   ============================================================ */
.elimination-toast {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -10px);
  max-width: 92%;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(159, 198, 222, 0.38);
  background: rgba(6, 11, 22, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 20; /* above the win overlay's base layer */
}
.elimination-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px) { .elimination-toast { font-size: 0.55rem; letter-spacing: 0.15em; padding: 8px 13px; } }

/* ============================================================
   ELIMINATION TOAST — flag + name layout
   ============================================================ */
.elimination-toast { display: flex; align-items: center; justify-content: center; gap: 9px; }
.toast-flag { height: 17px; width: auto; border-radius: 3px; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.elimination-toast .flag-emoji-fallback { font-size: 1rem; }

/* ============================================================
   FULLSCREEN FLOATING BUTTON
   ============================================================ */
.fs-fab {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 60; /* above setup + play + win overlay */
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid rgba(159, 198, 222, 0.32);
  background: rgba(6, 11, 22, 0.72);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.fs-fab:hover { background: rgba(159, 198, 222, 0.13); color: var(--white); border-color: rgba(159, 198, 222, 0.55); }
.fs-fab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.fs-fab.is-full { color: var(--white); border-color: rgba(159, 198, 222, 0.55); background: rgba(159, 198, 222, 0.14); }
.fs-fab .fs-ic { display: block; }
.fs-fab .ic-compress { display: none; }
.fs-fab.is-full .ic-expand { display: none; }
.fs-fab.is-full .ic-compress { display: block; }
.fs-fab.fs-blocked { color: #e3a9a9; border-color: rgba(227, 169, 169, 0.45); }
@media (max-width: 430px) {
  .fs-fab { width: 46px; padding: 0; justify-content: center; }
  .fs-label { display: none; }   /* icon-only on small phones */
}
