.fyrka-live-shell {
  /* FYRKA Arcade — dark-navy console matching the fyrka.games brand
     (navy #101318 surfaces, electric violet accent, gold for rewards).
     A game reskins the whole menu by overriding just --fyrka-shell-accent
     and --fyrka-shell-grad; everything else derives from these tokens. */
  --fyrka-shell-bg: #151b28;
  --fyrka-shell-bg-2: #10151f;
  --fyrka-shell-surface: #1c2436;
  --fyrka-shell-surface-hi: #232d43;
  --fyrka-shell-ink: #eef1f8;
  --fyrka-shell-ink-dim: #c4ccdd;
  --fyrka-shell-muted: #97a1ba;
  --fyrka-shell-line: rgba(255, 255, 255, 0.11);
  --fyrka-shell-line-soft: rgba(255, 255, 255, 0.06);
  --fyrka-shell-accent: #9d8cff;
  --fyrka-shell-accent-ink: #ffffff;
  --fyrka-shell-grad: linear-gradient(135deg, #6555ff, #7d55ff);
  --fyrka-shell-grad-hi: linear-gradient(135deg, #7565ff, #8a63ff);
  --fyrka-shell-glow: 0 10px 24px rgba(107, 85, 255, 0.34);
  --fyrka-shell-gold: #f8c14a;
  --fyrka-shell-gold-2: #e88125;
  --fyrka-shell-danger: #ff6b6b;
  --fyrka-shell-radius: 13px;
  --fyrka-shell-radius-sm: 8px;
  --fyrka-shell-shadow: 0 30px 84px rgba(5, 8, 20, 0.66), 0 6px 22px rgba(20, 26, 58, 0.34);
  color: var(--fyrka-shell-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  pointer-events: none;
}

.fyrka-live-shell *,
.fyrka-live-shell *::before,
.fyrka-live-shell *::after {
  box-sizing: border-box;
}

.fyrka-live-shell__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 32%, rgba(101, 85, 255, 0.14), transparent 60%),
    radial-gradient(140% 120% at 50% 50%, rgba(5, 7, 16, 0.5), rgba(5, 7, 16, 0.78));
  opacity: 0;
  transition: opacity 200ms ease;
  backdrop-filter: blur(9px) saturate(112%);
  -webkit-backdrop-filter: blur(9px) saturate(112%);
}

.fyrka-live-shell__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  transform: translate(-50%, -46%) scale(0.965);
  opacity: 0;
  border: 1px solid var(--fyrka-shell-line);
  border-radius: var(--fyrka-shell-radius);
  background:
    radial-gradient(130% 80% at 50% -8%, rgba(107, 85, 255, 0.16), transparent 52%),
    linear-gradient(180deg, #1a2131, var(--fyrka-shell-bg) 42%);
  box-shadow:
    var(--fyrka-shell-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 0.9, 0.24, 1.02);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.fyrka-live-shell__panel::-webkit-scrollbar {
  width: 10px;
}

.fyrka-live-shell__panel::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16) padding-box;
}

.fyrka-live-shell.is-open {
  pointer-events: auto;
}

.fyrka-live-shell.is-open .fyrka-live-shell__scrim {
  opacity: 1;
}

.fyrka-live-shell.is-open .fyrka-live-shell__panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .fyrka-live-shell__panel {
    transition: opacity 120ms ease;
    transform: translate(-50%, -50%) scale(1);
  }
}

body[data-fyrka-reduce-motion="true"] .fyrka-live-shell__panel {
  transition: opacity 120ms ease;
  transform: translate(-50%, -50%) scale(1);
}

.fyrka-live-shell__launcher {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  top: max(16px, env(safe-area-inset-top));
  display: none;
  align-items: center;
  gap: 7px;
  min-width: 58px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(32, 40, 60, 0.92), rgba(16, 21, 32, 0.92));
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  pointer-events: auto;
  box-shadow:
    0 12px 30px rgba(5, 8, 20, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

/* Blocky FYRKA mark: a square with one cut corner (top-right), per brand. */
.fyrka-live-shell__launcher::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: var(--fyrka-shell-accent);
  clip-path: polygon(0 0, 68% 0, 100% 34%, 100% 100%, 0 100%);
  box-shadow: 0 0 12px rgba(125, 108, 255, 0.5);
}

.fyrka-live-shell__launcher:hover,
.fyrka-live-shell__launcher:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(157, 140, 255, 0.6);
  box-shadow:
    0 16px 34px rgba(5, 8, 20, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* On phones the launcher becomes a compact icon-only button (the blocky FYRKA
   mark, aria-label kept). It frees the top-right corner so the in-game HUD only
   needs a small reserve — see --fh-badge-reserve in shared/fyrka-hud.css. */
@media (max-width: 760px), (pointer: coarse) {
  /* Higher specificity than the generic ".fyrka-live-shell button" rule so the
     font-size/padding reset actually wins and the label collapses to an icon. */
  .fyrka-live-shell .fyrka-live-shell__launcher {
    min-width: 0;
    width: 40px;
    gap: 0;
    padding: 0;
    font-size: 0;
    justify-content: center;
  }
}

.fyrka-live-shell__home-link,
.fyrka-live-shell__native-home {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147482001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  max-width: min(180px, calc(100vw - 32px));
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(32, 40, 60, 0.92), rgba(16, 21, 32, 0.92));
  color: #ffffff;
  font: 900 12px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  pointer-events: auto;
  box-shadow:
    0 12px 30px rgba(5, 8, 20, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: transform 140ms ease, border-color 140ms ease;
}

.fyrka-live-shell__native-home:hover,
.fyrka-live-shell__native-home:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(157, 140, 255, 0.6);
}

.fyrka-live-shell__home-link {
  display: none;
}

.fyrka-live-shell:not(.is-open) .fyrka-live-shell__launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* One FYRKA button on the play screen: the standalone "FYRKA Home" link stays
   hidden. Home stays reachable via the FYRKA launcher (bottom-right) -> menu,
   which already contains a "FYRKA Home" button. */

.fyrka-live-shell__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--fyrka-shell-line);
}

.fyrka-live-shell__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: var(--fyrka-shell-accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Brand mark: blocky square with one cut corner (top-right). */
.fyrka-live-shell__eyebrow::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: var(--fyrka-shell-grad);
  clip-path: polygon(0 0, 68% 0, 100% 34%, 100% 100%, 0 100%);
  box-shadow: 0 0 14px rgba(125, 108, 255, 0.55);
}

.fyrka-live-shell h1,
.fyrka-live-shell h2,
.fyrka-live-shell h3,
.fyrka-live-shell p {
  margin-top: 0;
}

.fyrka-live-shell h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.fyrka-live-shell h2 {
  margin-bottom: 14px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.fyrka-live-shell h3 {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fyrka-shell-muted);
}

.fyrka-live-shell__lead,
.fyrka-live-shell__note {
  color: var(--fyrka-shell-muted);
  font-size: 15px;
  line-height: 1.5;
}

.fyrka-live-shell__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 14px 16px 4px;
  padding: 5px;
  border: 1px solid var(--fyrka-shell-line-soft);
  border-radius: 12px;
  background: var(--fyrka-shell-bg-2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Tabs are ghost pills in a segmented track; the active tab is a brand pill. */
.fyrka-live-shell__tabs button {
  flex: 1 1 auto;
  min-height: 38px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--fyrka-shell-muted);
  font-size: 13.5px;
  font-weight: 850;
  cursor: pointer;
  transition: color 130ms ease, background 130ms ease, transform 130ms ease;
}

.fyrka-live-shell__tabs button:hover:not(.is-active) {
  color: var(--fyrka-shell-ink);
  background: rgba(255, 255, 255, 0.05);
}

.fyrka-live-shell__tabs button.is-active {
  color: var(--fyrka-shell-accent-ink);
  background: var(--fyrka-shell-grad);
  box-shadow: var(--fyrka-shell-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Sub-navigation inside one tab (e.g. Rangliste: Gesamt / Heute). */
.fyrka-live-shell__subtabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 10px;
  background: var(--fyrka-shell-bg-2);
  border: 1px solid var(--fyrka-shell-line-soft);
}

.fyrka-live-shell__subtabs button {
  min-height: 32px;
  padding: 5px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--fyrka-shell-muted);
  font-size: 13px;
  font-weight: 800;
}

.fyrka-live-shell__subtabs button.is-active {
  color: var(--fyrka-shell-accent-ink);
  background: var(--fyrka-shell-grad);
}

.fyrka-live-shell__settings {
  display: grid;
  gap: 12px;
}

.fyrka-live-shell__options-heading {
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Hinweistexte (Extras) als ruhige Fussnote mit Abstand statt gedraengter Liste. */
.fyrka-live-shell__options-footnote {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--fyrka-shell-line);
  font-size: 13px;
  line-height: 1.6;
}

/* Rangliste: klare Zeilen wie im Spiel (Rang + Name links, Score rechts). */
.fyrka-live-shell__board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.fyrka-live-shell__board li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--fyrka-shell-bg-2);
  font-size: 15px;
  font-weight: 750;
  transition: background 130ms ease, border-color 130ms ease;
}

.fyrka-live-shell__board li:hover {
  border-color: var(--fyrka-shell-line);
  background: var(--fyrka-shell-surface);
}

.fyrka-live-shell__board li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fyrka-live-shell__board li b {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  color: var(--fyrka-shell-accent);
}

/* Podium: top three rows carry a medal accent + a brighter score. */
.fyrka-live-shell__board li:nth-child(1) {
  border-color: rgba(248, 193, 74, 0.5);
  background: linear-gradient(90deg, rgba(248, 193, 74, 0.14), var(--fyrka-shell-bg-2) 60%);
}

.fyrka-live-shell__board li:nth-child(1) b {
  color: var(--fyrka-shell-gold);
}

.fyrka-live-shell__board li:nth-child(2) {
  border-color: rgba(196, 204, 221, 0.32);
}

.fyrka-live-shell__board li:nth-child(3) {
  border-color: rgba(232, 129, 37, 0.34);
}

.fyrka-live-shell__board li.fyrka-live-shell__board-note {
  display: block;
  background: transparent;
  border: 1px dashed var(--fyrka-shell-line);
  color: var(--fyrka-shell-muted);
  font-weight: 650;
}

/* Spiel-eigene Tasten-Symbole im Optionen-Tab. */
[data-role="controls-slot"] .fyrka-control-strip {
  margin-bottom: 6px;
}

/* Einstellung "Steuerungs-Hinweise im Spiel anzeigen": blendet die Tasten-Leiste
   des Spiels aus — die Kopie im Menue (Optionen-Tab) bleibt immer sichtbar. */
body[data-fyrka-control-hints="false"] .fyrka-control-strip {
  display: none;
}

body[data-fyrka-control-hints="false"] .fyrka-live-shell .fyrka-control-strip {
  display: flex;
}

/* Slot where a game mounts its own character editor into the shared tab. */
.fyrka-live-shell__character-slot {
  margin-top: 20px;
}

.fyrka-live-shell__character-slot:empty {
  display: none;
}

/* Slot for game-provided start options in the "Spielen" tab. */
.fyrka-live-shell__menu-slot {
  margin-top: 16px;
}

.fyrka-live-shell__menu-slot:empty {
  display: none;
}

.fyrka-live-shell__skins-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--fyrka-shell-line);
}

.fyrka-live-shell button,
.fyrka-live-shell__button,
.fyrka-live-shell input,
.fyrka-live-shell select,
.fyrka-live-shell textarea {
  font: inherit;
  letter-spacing: 0;
}

.fyrka-live-shell button,
.fyrka-live-shell__button {
  border: 1px solid var(--fyrka-shell-line);
  border-radius: var(--fyrka-shell-radius-sm);
  background: var(--fyrka-shell-surface);
  color: var(--fyrka-shell-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  min-height: 40px;
  padding: 9px 15px;
  text-decoration: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 90ms ease,
    box-shadow 140ms ease;
}

.fyrka-live-shell button:hover,
.fyrka-live-shell__button:hover,
.fyrka-live-shell__home-link:hover,
.fyrka-live-shell__native-home:hover {
  background: var(--fyrka-shell-surface-hi);
  border-color: rgba(157, 140, 255, 0.5);
}

.fyrka-live-shell button:active,
.fyrka-live-shell__button:active {
  transform: translateY(1px);
}

/* Focus ring decoupled from hover so keyboard focus is always obvious. */
.fyrka-live-shell button:focus-visible,
.fyrka-live-shell__button:focus-visible,
.fyrka-live-shell__launcher:focus-visible,
.fyrka-live-shell__home-link:focus-visible,
.fyrka-live-shell__native-home:focus-visible,
.fyrka-live-shell input:focus-visible,
.fyrka-live-shell select:focus-visible,
.fyrka-live-shell textarea:focus-visible {
  outline: 2px solid var(--fyrka-shell-accent);
  outline-offset: 2px;
}

/* Any active toggle (a game's own mode picker, board sub-views, …) reads as a
   brand pill. Tabs/subtabs keep their own higher-specificity treatment. */
.fyrka-live-shell button.is-active {
  border-color: transparent;
  background: var(--fyrka-shell-grad);
  color: var(--fyrka-shell-accent-ink);
}

/* Primary CTA — brand violet, tactile sheen + glow + press. */
.fyrka-live-shell .fyrka-live-shell__primary {
  border: 0;
  background: var(--fyrka-shell-grad);
  color: var(--fyrka-shell-accent-ink);
  font-weight: 900;
  box-shadow: var(--fyrka-shell-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.fyrka-live-shell .fyrka-live-shell__primary:hover {
  background: var(--fyrka-shell-grad-hi);
  border: 0;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(107, 85, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.fyrka-live-shell .fyrka-live-shell__primary:active {
  transform: translateY(1px);
}

.fyrka-live-shell__icon-button {
  width: 40px;
  min-width: 40px;
  padding: 0;
  color: var(--fyrka-shell-muted);
  font-weight: 900;
}

.fyrka-live-shell__icon-button:hover {
  background: rgba(255, 107, 107, 0.16);
  border-color: rgba(255, 107, 107, 0.55);
  color: #ffd7d7;
}

.fyrka-live-shell__body {
  padding: 22px 24px 26px;
}

/* Content rises in just after the panel snaps open — expressive but subtle. */
.fyrka-live-shell.is-open .fyrka-live-shell__body > section:not([hidden]) {
  animation: fyrka-shell-rise 300ms cubic-bezier(0.22, 0.9, 0.24, 1.02) both;
}

@keyframes fyrka-shell-rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fyrka-live-shell.is-open .fyrka-live-shell__body > section:not([hidden]) {
    animation: none;
  }
}

body[data-fyrka-reduce-motion="true"] .fyrka-live-shell.is-open .fyrka-live-shell__body > section:not([hidden]) {
  animation: none;
}

/* Injected game content (menu / character / controls slots) stays theme-neutral:
   the shell only guarantees legible light-ink inheritance, never forces a
   background or accent onto a game's own DOM. */
.fyrka-live-shell__menu-slot,
.fyrka-live-shell__character-slot,
[data-role="controls-slot"] {
  color: var(--fyrka-shell-ink);
}

.fyrka-live-shell__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.fyrka-live-shell__status-grid,
.fyrka-live-shell__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

/* Explizites display schlaegt das hidden-Attribut — hier wieder geradebiegen. */
.fyrka-live-shell__columns[hidden],
.fyrka-live-shell__settings[hidden] {
  display: none;
}

.fyrka-live-shell__columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fyrka-live-shell__status-grid p,
.fyrka-live-shell__columns > div {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--fyrka-shell-line-soft);
  border-radius: 10px;
  background: var(--fyrka-shell-bg-2);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  padding: 13px;
}

.fyrka-live-shell__status-grid span {
  display: block;
  color: var(--fyrka-shell-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.fyrka-live-shell__status-grid b {
  display: block;
  font-size: 15px;
  font-weight: 850;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.fyrka-live-shell__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.fyrka-live-shell__list li {
  color: var(--fyrka-shell-muted);
  line-height: 1.45;
}

.fyrka-live-shell__field {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--fyrka-shell-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fyrka-live-shell__field input,
.fyrka-live-shell__field select,
.fyrka-live-shell__field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--fyrka-shell-line);
  border-radius: var(--fyrka-shell-radius-sm);
  background: var(--fyrka-shell-bg-2);
  color: var(--fyrka-shell-ink);
  padding: 9px 12px;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  accent-color: var(--fyrka-shell-accent);
  transition: border-color 130ms ease, box-shadow 130ms ease;
}

.fyrka-live-shell__field input:focus,
.fyrka-live-shell__field select:focus,
.fyrka-live-shell__field textarea:focus {
  outline: none;
  border-color: var(--fyrka-shell-accent);
  box-shadow: 0 0 0 3px rgba(125, 108, 255, 0.22);
}

.fyrka-live-shell__field input::placeholder,
.fyrka-live-shell__field textarea::placeholder {
  color: var(--fyrka-shell-muted);
  opacity: 0.7;
}

/* Custom dropdown chevron so selects don't read as a browser default. */
.fyrka-live-shell__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--fyrka-shell-muted) 50%),
    linear-gradient(135deg, var(--fyrka-shell-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) center,
    calc(100% - 11px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.fyrka-live-shell__field textarea {
  resize: vertical;
}

.fyrka-live-shell__check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 44px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--fyrka-shell-line-soft);
  border-radius: var(--fyrka-shell-radius-sm);
  background: var(--fyrka-shell-bg-2);
  color: var(--fyrka-shell-ink-dim);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: border-color 130ms ease, background 130ms ease;
}

.fyrka-live-shell__check:hover {
  border-color: rgba(157, 140, 255, 0.4);
}

/* A checked option lights up — clear state feedback. */
.fyrka-live-shell__check:has(input:checked) {
  border-color: rgba(157, 140, 255, 0.55);
  color: var(--fyrka-shell-ink);
}

.fyrka-live-shell__check input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  accent-color: var(--fyrka-shell-accent);
}

body[data-fyrka-live-shell="native"]::after {
  content: "FYRKA Arcade";
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147481999;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(14, 20, 18, 0.84);
  color: #ffffff;
  font: 800 12px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  padding: 12px 14px;
  pointer-events: none;
}

.fyrka-control-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.fyrka-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(12, 16, 19, 0.72);
  color: #f8fbff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  font: 850 12px/1.1 Inter, ui-sans-serif, system-ui, sans-serif;
}

.fyrka-control b {
  color: inherit;
  font: inherit;
  white-space: nowrap;
}

.fyrka-key,
.fyrka-keyset kbd {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-bottom-color: rgba(0, 0, 0, 0.46);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(28, 33, 37, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 0 rgba(0, 0, 0, 0.36);
  color: #ffffff;
  font: 900 11px/1 Inter, ui-sans-serif, system-ui, sans-serif;
}

.fyrka-key--wide {
  min-width: 48px;
  padding-inline: 8px;
}

.fyrka-keyset {
  display: grid;
  gap: 2px;
}

.fyrka-keyset--wasd {
  grid-template-columns: repeat(3, 20px);
}

.fyrka-keyset--wasd kbd:nth-child(1) {
  grid-column: 2;
}

.fyrka-keyset--wasd kbd:nth-child(n + 2) {
  grid-row: 2;
}

.fyrka-keyset--arrows {
  grid-template-columns: repeat(3, 20px);
}

.fyrka-keyset--arrows kbd:nth-child(1) {
  grid-column: 2;
}

.fyrka-keyset--arrows kbd:nth-child(n + 2) {
  grid-row: 2;
}

.fyrka-mouse {
  position: relative;
  width: 20px;
  height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 12px 12px 9px 9px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.32) 49% 51%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(28, 33, 37, 0.96);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.36);
}

.fyrka-mouse::after {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #20d7ad;
  content: "";
}

@media (max-width: 680px) {
  .fyrka-live-shell__panel {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .fyrka-live-shell__header,
  .fyrka-live-shell__body {
    padding: 16px;
  }

  .fyrka-live-shell__status-grid,
  .fyrka-live-shell__columns {
    grid-template-columns: 1fr;
  }

  .fyrka-live-shell__actions button,
  .fyrka-live-shell__actions .fyrka-live-shell__button {
    flex: 1 1 150px;
  }

  .fyrka-control-strip {
    gap: 6px;
  }

  .fyrka-control {
    min-height: 36px;
    padding: 5px 7px;
    font-size: 11px;
  }
}

/* Daily retention loop: challenge card, progress bar, streak. */
.fyrka-live-shell__daily-card {
  border: 1px solid var(--fyrka-shell-line);
  border-radius: var(--fyrka-shell-radius);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(107, 85, 255, 0.14), transparent 55%),
    var(--fyrka-shell-bg-2);
  padding: 16px;
  margin-bottom: 14px;
}

.fyrka-live-shell__daily-card h3 {
  margin: 0 0 6px;
  color: var(--fyrka-shell-accent);
}

.fyrka-live-shell__daily-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin: 12px 0 8px;
}

.fyrka-live-shell__daily-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d5cff, var(--fyrka-shell-gold));
  box-shadow: 0 0 12px rgba(125, 108, 255, 0.55);
  transition: width 0.25s ease;
}

.fyrka-live-shell__daily-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--fyrka-shell-ink);
}

.fyrka-live-shell__daily-done {
  margin: 10px 0 0;
  color: var(--fyrka-shell-accent);
  font-weight: 700;
}

/* Compact Tagesziel card injected into native game menus (#menuScreen). Native
   menus are usually dark, so the card keeps its own readable surface. */
.fyrka-live-shell__daily-card--native {
  width: min(340px, calc(100vw - 48px));
  margin: 14px auto 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-align: left;
  font-size: 14px;
  color: #1c2430;
}

.fyrka-live-shell__daily-card--native h3 {
  font-size: 15px;
}

.fyrka-live-shell__daily-card--native .fyrka-live-shell__note {
  margin: 0;
  color: #45506b;
}

/* Werkstatt (shared designer) + Lackierungen */
.fyrka-live-shell__designer {
  margin: 14px 0 22px;
}

.fyrka-live-shell__skins-heading {
  margin: 0 0 4px;
  font-size: 19px;
}

.fyrka-live-shell__skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.fyrka-live-shell__skin-card {
  border: 1px solid var(--fyrka-shell-line-soft);
  border-radius: var(--fyrka-shell-radius-sm);
  background: var(--fyrka-shell-bg-2);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fyrka-live-shell__skin-card.is-equipped {
  border-color: var(--fyrka-shell-accent);
  box-shadow: inset 0 0 0 1px var(--fyrka-shell-accent), var(--fyrka-shell-glow);
}

.fyrka-live-shell__skin-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fyrka-live-shell__skin-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.fyrka-live-shell__skin-label {
  font-weight: 700;
  font-size: 14px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fyrka-live-shell__skin-desc {
  color: var(--fyrka-shell-muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  flex-grow: 1;
}

.fyrka-live-shell__skin-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--fyrka-shell-ink);
  margin: 0;
}

.fyrka-live-shell__skin-button {
  width: 100%;
  min-height: 32px !important;
  font-size: 12px !important;
  padding: 6px 10px !important;
}
