/* Learning App - Global Styles */

/* ========== TOKEN LAYER ========== */
:root {
  /* Primary */
  --lnc-primary: var(--color-primary-element, #0082C9);

  /* Ink & Surface */
  --lnc-ink: #0F172A;
  --lnc-surface-dark: #0D1117;
  --lnc-surface-light: #F4F7FB;
  --lnc-surface: #161B22;

  /* Accent Colors */
  --lnc-cyan: #58A6FF;
  --lnc-amber: #D29922;
  --lnc-magenta: #FF4FD8;
  --lnc-danger: #F85149;
  --lnc-green: #00E676;

  /* Text */
  --lnc-text-light: #C9D1D9;
  --lnc-text-dark: #1A1A2E;
  --lnc-text-muted: #8B949E;

  /* Borders */
  --lnc-border-soft: rgba(255, 255, 255, 0.12);
  --lnc-border-hard: #30363D;

  /* Shadows */
  --lnc-shadow-card: 0 12px 32px rgba(15, 23, 42, 0.18);
  --lnc-shadow-glow: 0 0 0 1px rgba(88, 166, 255, 0.18), 0 0 24px rgba(88, 166, 255, 0.16);

  /* Radius */
  --lnc-radius-sm: 8px;
  --lnc-radius-md: 14px;
  --lnc-radius-lg: 20px;

  /* Spacing */
  --lnc-space-xs: 4px;
  --lnc-space-sm: 8px;
  --lnc-space-md: 12px;
  --lnc-space-lg: 16px;
  --lnc-space-xl: 24px;

  /* Light mode defaults */
  --lnc-bg: var(--lnc-surface-light);
  --lnc-text: var(--lnc-text-dark);
  --lnc-text-secondary: #6B7280;
  --lnc-border: #E5E7EB;
  --lnc-panel: #FFFFFF;

  /* Simulator surfaces */
  --sim-bg: var(--lnc-surface-dark);
  --sim-panel: var(--lnc-surface);
  --sim-panel-elevated: #1C2333;
  --sim-border: var(--lnc-border-hard);

  /* Simulator accents */
  --sim-accent: var(--lnc-cyan);
  --sim-accent-dim: rgba(88, 166, 255, 0.15);
  --sim-success: var(--lnc-green);
  --sim-danger: var(--lnc-danger);
  --sim-warn: var(--lnc-amber);

  /* Simulator text */
  --sim-text: var(--lnc-text-light);
  --sim-text-muted: var(--lnc-text-muted);
  --sim-text-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Simulator glows */
  --sim-glow-pass: 0 0 12px rgba(0, 230, 118, 0.3);
  --sim-glow-fail: 0 0 12px rgba(248, 81, 73, 0.3);
  --sim-glow-accent: 0 0 12px rgba(88, 166, 255, 0.2);
}

/* ========== DARK MODE SCOPE ========== */
[data-lnc-theme="dark"] {
  --lnc-bg: var(--lnc-surface-dark);
  --lnc-text: var(--lnc-text-light);
  --lnc-text-secondary: var(--lnc-text-muted);
  --lnc-border: var(--lnc-border-soft);
  --lnc-panel: var(--lnc-surface);
  background: var(--lnc-bg);
  color: var(--lnc-text);
}

/* ========== LIGHT MODE SCOPE ========== */
[data-lnc-theme="light"] {
  --lnc-bg: var(--lnc-surface-light);
  --lnc-text: var(--lnc-text-dark);
  --lnc-text-secondary: #6B7280;
  --lnc-border: #E5E7EB;
  --lnc-panel: #FFFFFF;
  background: var(--lnc-bg);
  color: var(--lnc-text);
}

/* ========== MOTION UTILITIES ========== */
@keyframes lnc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lnc-snap-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes lnc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.lnc-fade { animation: lnc-fade 300ms ease-out both; }
.lnc-snap-in { animation: lnc-snap-in 200ms ease-out both; }
.lnc-pulse { animation: lnc-pulse 2s ease-in-out infinite; }

/* ========== NARRATIVE SKINS ========== */

/* --- Paper & Circuits --- */
[data-lnc-skin="paper-circuits"] {
  --lnc-panel: rgba(22, 27, 34, 0.75);
  --lnc-border: rgba(88, 166, 255, 0.15);
  --lnc-font-narrative: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --lnc-font-system: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Glass panels */
[data-lnc-skin="paper-circuits"] .ab-scene-inner,
[data-lnc-skin="paper-circuits"] .ab-npc-dialog {
  background: var(--lnc-panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--lnc-border);
  border-radius: var(--lnc-radius-md);
  box-shadow: var(--lnc-shadow-card);
}

/* Narrative typography */
[data-lnc-skin="paper-circuits"] .ab-narrative-text,
[data-lnc-skin="paper-circuits"] .ab-npc-text {
  font-family: var(--lnc-font-narrative);
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* System text */
[data-lnc-skin="paper-circuits"] .ab-skill-badge,
[data-lnc-skin="paper-circuits"] .ab-scene-progress {
  font-family: var(--lnc-font-system);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lnc-cyan);
}

/* Choice cards glow */
[data-lnc-skin="paper-circuits"] .ab-choice-card:hover:not(:disabled) {
  box-shadow: var(--lnc-shadow-glow);
  border-color: var(--lnc-cyan);
}

/* Circuit line decorators */
[data-lnc-skin="paper-circuits"] .ab-scene-inner {
  position: relative;
  overflow: hidden;
}

[data-lnc-skin="paper-circuits"] .ab-scene-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--lnc-cyan) 20%, var(--lnc-amber) 50%, var(--lnc-cyan) 80%, transparent 100%);
  opacity: 0.4;
}

/* ========== LAYOUT ========== */
/* Override NC app-content max-width */
#content-vue .app-content,
#content .app-content,
.app-content {
  max-width: none !important;
}

#app-learning {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 50px);
  max-width: 100% !important;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.app-main-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 24px 40px;
}

#content-vue #app-learning,
#content #app-learning {
  max-width: 100% !important;
  margin: 0;
}

/* ========== TOUCH TARGETS ========== */
#app-learning button,
#app-learning .answer-btn,
#app-learning .tab-btn,
#app-learning .mode-btn {
  min-height: 44px;
  min-width: 44px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .app-main-content {
    padding: 20px 24px;
  }
}

@media (max-width: 768px) {
  .app-main-content {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .app-main-content {
    padding: 10px;
  }
}

/* Accessible focus indicators */
:focus-visible {
  outline: 2px solid var(--color-primary-element, #00679e);
  outline-offset: 2px;
  border-radius: 2px;
}

#app-learning ::placeholder {
  color: color-mix(in srgb, var(--color-main-text, #222) 68%, white 32%);
  opacity: 1;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary-element, #00679e);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 103, 158, 0.25);
}

/* ========== COURSE MATERIALS ========== */
.materials-section {
  padding: 8px 0;
}

/* ========== SIMULATOR DESIGN SYSTEM ========== */
.sim-tool {
  display: grid;
  gap: var(--lnc-space-lg);
  padding: var(--lnc-space-xl);
  border-radius: var(--lnc-radius-lg);
  border: 1px solid var(--sim-border);
  background:
    radial-gradient(circle at top right, rgba(88, 166, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(13, 17, 23, 0.98), rgba(22, 27, 34, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  color: var(--sim-text);
  color-scheme: dark;
}

.sim-tool--embedded {
  padding: var(--lnc-space-lg);
}

/* Mobile table scroll wrapper */
.sim-tool__table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  margin: 0 calc(-1 * var(--lnc-space-sm));
  padding: 0 var(--lnc-space-sm);
}

.sim-tool__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--lnc-space-lg);
}

.sim-tool__eyebrow {
  margin: 0 0 4px;
  color: var(--sim-accent);
  font-family: var(--sim-text-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sim-tool__title {
  margin: 0;
  color: var(--sim-text);
  font-family: var(--sim-text-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sim-tool__subtitle {
  margin: 8px 0 0;
  max-width: 600px;
  color: var(--sim-text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.sim-tool__tabs {
  display: flex;
  gap: 2px;
  width: fit-content;
  padding: 2px;
  margin-bottom: var(--lnc-space-sm);
  border-radius: var(--lnc-radius-sm);
  background: var(--sim-border);
}

.sim-tool__tab {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--sim-text-muted);
  font-family: var(--sim-text-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-tool__tab:hover {
  color: var(--sim-text);
}

.sim-tool__tab--active {
  background: var(--sim-accent-dim);
  color: var(--sim-accent);
  box-shadow: var(--sim-glow-accent);
}

.sim-tool__panel,
.sim-tool__card,
.sim-tool__scenario,
.sim-tool__option {
  background: var(--sim-panel-elevated);
  border: 1px solid var(--sim-border);
  border-radius: var(--lnc-radius-md);
}

.sim-tool__panel {
  display: grid;
  gap: var(--lnc-space-lg);
  padding: var(--lnc-space-lg);
}

.sim-tool__card,
.sim-tool__scenario,
.sim-tool__option {
  padding: var(--lnc-space-lg);
}

.sim-tool__card--glow {
  border-color: var(--sim-accent);
  box-shadow: var(--sim-glow-accent);
}

.sim-tool__card--success {
  border-left: 3px solid var(--sim-success);
}

.sim-tool__card--danger {
  border-left: 3px solid var(--sim-danger);
}

.sim-tool__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lnc-space-md);
}

.sim-tool__section-header--split {
  flex-wrap: wrap;
}

.sim-tool__grid,
.sim-tool__scenario-grid,
.sim-tool__options,
.sim-tool__matches,
.sim-tool__layers {
  display: grid;
  gap: var(--lnc-space-md);
}

.sim-tool__grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sim-tool__scenario-grid,
.sim-tool__matches,
.sim-tool__layers {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sim-tool__field {
  display: grid;
  gap: 6px;
}

.sim-tool__field > span,
.sim-tool__label,
.sim-tool__table thead th,
.sim-tool__meta-label {
  color: var(--sim-text-muted);
  font-family: var(--sim-text-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sim-tool__input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--sim-border);
  border-radius: var(--lnc-radius-sm);
  background: var(--sim-bg);
  color: var(--sim-text);
  font-family: var(--sim-text-mono);
  font-size: 0.8125rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sim-tool__input:focus {
  outline: none;
  border-color: var(--sim-accent);
  box-shadow: var(--sim-glow-accent);
}

.sim-tool__input--error {
  border-color: var(--sim-danger);
}

.sim-tool__input--valid {
  border-color: var(--sim-success);
}

.sim-tool__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--sim-accent);
  border-radius: var(--lnc-radius-sm);
  background: var(--sim-accent-dim);
  color: var(--sim-accent);
  font-family: var(--sim-text-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-tool__btn:hover:not(:disabled) {
  background: var(--sim-accent);
  color: var(--sim-bg);
  box-shadow: var(--sim-glow-accent);
}

.sim-tool__btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.sim-tool__btn--secondary {
  border-color: var(--sim-border);
  background: transparent;
  color: var(--sim-text-muted);
}

.sim-tool__btn--secondary:hover:not(:disabled) {
  border-color: var(--sim-text-muted);
  background: rgba(139, 148, 158, 0.12);
  color: var(--sim-text);
}

.sim-tool__btn--danger {
  border-color: var(--sim-danger);
  background: rgba(248, 81, 73, 0.1);
  color: var(--sim-danger);
}

.sim-tool__btn--danger:hover:not(:disabled) {
  background: var(--sim-danger);
  color: var(--sim-bg);
  box-shadow: var(--sim-glow-fail);
}

.sim-tool__btn--icon {
  min-width: 40px;
  padding: 4px 10px;
  font-size: 0.75rem;
}

.sim-tool__table-wrap {
  overflow-x: auto;
}

.sim-tool__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--sim-text-mono);
  font-size: 0.8125rem;
}

.sim-tool__table thead th {
  position: sticky;
  top: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--sim-border);
  background: var(--sim-panel);
  text-align: left;
}

.sim-tool__table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
  color: var(--sim-text);
}

.sim-tool__table tbody tr:hover {
  background: var(--sim-accent-dim);
}

.sim-tool__row--allow td:nth-child(2) {
  color: var(--sim-success);
}

.sim-tool__row--deny td:nth-child(2) {
  color: var(--sim-danger);
}

.sim-tool__row--implicit {
  opacity: 0.5;
  font-style: italic;
}

.sim-tool__row--matched,
.sim-tool__row--highlight {
  background: var(--sim-accent-dim) !important;
  border-left: 3px solid var(--sim-accent);
}

.sim-tool__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--sim-text-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.sim-tool__status--pass {
  background: rgba(0, 230, 118, 0.12);
  color: var(--sim-success);
}

.sim-tool__status--fail {
  background: rgba(248, 81, 73, 0.12);
  color: var(--sim-danger);
}

.sim-tool__status--warn {
  background: rgba(210, 153, 34, 0.12);
  color: var(--sim-warn);
}

.sim-tool__status--info {
  background: var(--sim-accent-dim);
  color: var(--sim-accent);
}

.sim-tool__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sim-tool__dot--open {
  background: var(--sim-success);
  box-shadow: var(--sim-glow-pass);
}

.sim-tool__dot--closed {
  background: var(--sim-danger);
}

.sim-tool__dot--filtered {
  background: var(--sim-warn);
}

.sim-tool__scenario,
.sim-tool__option {
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--sim-text);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sim-tool__scenario:hover,
.sim-tool__option:hover {
  transform: translateY(-2px);
  border-color: var(--sim-accent);
  box-shadow: var(--sim-glow-accent);
}

.sim-tool__scenario--active {
  border-color: var(--sim-accent);
  background: rgba(88, 166, 255, 0.1);
}

.sim-tool__progress {
  height: 3px;
  margin: var(--lnc-space-md) 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--sim-border);
}

.sim-tool__progress-bar {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sim-accent), var(--sim-success));
}

.sim-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 4px;
  margin-bottom: var(--lnc-space-xl);
  border-radius: var(--lnc-radius-md);
  border: 1px solid var(--sim-border);
  background: var(--sim-panel);
}

.sim-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border: none;
  border-radius: var(--lnc-radius-sm);
  background: transparent;
  color: var(--sim-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-nav__item:hover {
  color: var(--sim-text);
  background: rgba(139, 148, 158, 0.08);
}

.sim-nav__item--active {
  background: var(--sim-accent-dim);
  color: var(--sim-accent);
  box-shadow: inset 0 -2px 0 var(--sim-accent), var(--sim-glow-accent);
}

.sim-nav__item--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.sim-nav__item--disabled:hover {
  background: inherit;
}

.sim-nav__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.sim-nav__label {
  font-family: var(--sim-text-mono);
  font-size: 0.75rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .sim-tool {
    padding: var(--lnc-space-lg);
  }

  .sim-tool__header,
  .sim-tool__section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .sim-tool__grid,
  .sim-tool__scenario-grid,
  .sim-tool__matches,
  .sim-tool__layers {
    grid-template-columns: 1fr;
  }

  .sim-tool__table {
    font-size: 0.75rem;
  }

  .sim-tool__table thead th,
  .sim-tool__table tbody td {
    padding: 6px 8px;
  }
}

@media (max-width: 480px) {
  .sim-tool {
    padding: var(--lnc-space-md);
  }

  .sim-tool__table-wrap {
    margin-inline: calc(-1 * var(--lnc-space-md));
    padding-inline: var(--lnc-space-md);
    -webkit-overflow-scrolling: touch;
  }

  .sim-tool__table {
    font-size: 0.6875rem;
    min-width: 480px;
  }

  .sim-tool__table thead th,
  .sim-tool__table tbody td {
    padding: 5px 6px;
    white-space: nowrap;
  }

  .sim-tool__section-header {
    font-size: 0.875rem;
  }

  .sim-tool__btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 600px) {
  .sim-nav__item {
    padding: 8px 4px;
  }

  .sim-nav__label {
    font-size: 0.6875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sim-tool__tab,
  .sim-tool__btn,
  .sim-tool__scenario,
  .sim-tool__option,
  .sim-nav__item {
    transition: none !important;
  }

  .sim-tool__scenario:hover,
  .sim-tool__option:hover {
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== QUEST MAP ========== */

/* Backdrop (clickable overlay behind panel) */
.quest-map-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9998;
}

/* Slide-in overlay panel */
.quest-map-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: rgba(10, 15, 30, 0.95);
  border-left: 2px solid #00e5ff;
  transform: translateX(100%);
  transition: transform 300ms ease;
  z-index: 9999;
  overflow: hidden;
}

.quest-map-open {
  transform: translateX(0);
}

/* Close button */
.quest-map-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #00e5ff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 4px 8px;
}

.quest-map-close-btn:hover {
  color: #ffffff;
}

/* SVG fills the panel */
.quest-map-overlay svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Node states */
.quest-node--visited polygon {
  fill: #00ff88;
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.5));
}

.quest-node--current polygon {
  fill: #00e5ff;
  animation: quest-pulse 1.5s ease-in-out infinite;
}

.quest-node--reachable polygon {
  fill: #4488ff;
  filter: drop-shadow(0 0 6px rgba(68, 136, 255, 0.5));
}

.quest-node--locked polygon {
  fill: #444444;
  opacity: 0.4;
}

/* Cursor states */
.quest-node--reachable,
.quest-node--visited {
  cursor: pointer;
}

.quest-node--current {
  cursor: default;
}

.quest-node--locked {
  cursor: not-allowed;
}

/* Shake animation for locked node click */
.quest-node--shake {
  animation: quest-shake 0.4s ease;
}

/* Pulse keyframes — glow oscillation for current node */
@keyframes quest-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.8));
  }
}

/* Shake keyframes — horizontal jitter for locked click */
@keyframes quest-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* Reduced motion for quest map */
@media (prefers-reduced-motion: reduce) {
  .quest-map-overlay {
    transition: none !important;
  }

  .quest-node--current polygon {
    animation: none !important;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
  }

  .quest-node--shake {
    animation: none !important;
  }
}

/* Phase 82: HUD + Timer + DauBot UI */
[data-lnc-skin="paper-circuits"] .game-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 12px;
  margin: 0 0 14px;
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-bottom-color: rgba(0, 230, 118, 0.22);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.28);
  font-size: 13px;
}

[data-lnc-skin="paper-circuits"] .game-hud-role {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
}

[data-lnc-skin="paper-circuits"] .game-hud-role-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-lnc-skin="paper-circuits"] .game-hud-role-name {
  color: var(--lnc-text);
  font-weight: 700;
}

[data-lnc-skin="paper-circuits"] .game-hud-role-meta,
[data-lnc-skin="paper-circuits"] .game-hud-score-label {
  color: var(--lnc-text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-lnc-skin="paper-circuits"] .game-hud-section {
  display: flex;
  align-items: center;
}

[data-lnc-skin="paper-circuits"] .game-hud-items {
  gap: 4px;
  min-height: 32px;
}

[data-lnc-skin="paper-circuits"] .game-hud-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88, 166, 255, 0.22);
  cursor: help;
  color: var(--lnc-text);
}

[data-lnc-skin="paper-circuits"] .game-hud-item-icon {
  line-height: 1;
}

[data-lnc-skin="paper-circuits"] .game-hud-item--overflow {
  font-weight: 700;
  color: var(--lnc-cyan);
}

[data-lnc-skin="paper-circuits"] .game-hud-item--new {
  animation: game-hud-gold-glow 1s ease;
}

@keyframes game-hud-gold-glow {
  0% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 12px rgba(210, 153, 34, 0.9);
    border-color: rgba(210, 153, 34, 0.9);
  }
  100% {
    box-shadow: none;
  }
}

[data-lnc-skin="paper-circuits"] .game-hud-reputation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

[data-lnc-skin="paper-circuits"] .game-hud-rep-track {
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-lnc-skin="paper-circuits"] .game-hud-rep-key {
  min-width: 34px;
  color: var(--lnc-text-secondary);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

[data-lnc-skin="paper-circuits"] .game-hud-rep-bar {
  width: 60px;
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

[data-lnc-skin="paper-circuits"] .game-hud-rep-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 500ms ease, background-color 300ms ease;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

[data-lnc-skin="paper-circuits"] .game-hud-rep-delta {
  min-width: 22px;
  font-size: 0.72rem;
  font-weight: 700;
}

[data-lnc-skin="paper-circuits"] .game-hud-rep-delta--up {
  color: var(--lnc-green);
}

[data-lnc-skin="paper-circuits"] .game-hud-rep-delta--down {
  color: var(--lnc-danger);
}

[data-lnc-skin="paper-circuits"] .game-hud-score {
  gap: 8px;
  margin-left: auto;
}

[data-lnc-skin="paper-circuits"] .game-hud-score-value-wrap {
  position: relative;
  min-width: 54px;
  padding-right: 22px;
}

[data-lnc-skin="paper-circuits"] .game-hud-score-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lnc-text);
}

[data-lnc-skin="paper-circuits"] .game-hud-score-delta {
  position: absolute;
  top: -6px;
  right: 0;
  font-size: 0.74rem;
  font-weight: 700;
  animation: game-hud-float-fade 1.5s forwards;
}

[data-lnc-skin="paper-circuits"] .game-hud-score-delta--up {
  color: var(--lnc-green);
}

[data-lnc-skin="paper-circuits"] .game-hud-score-delta--down {
  color: var(--lnc-danger);
}

@keyframes game-hud-float-fade {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

[data-lnc-skin="paper-circuits"] .game-hud-act {
  min-width: 92px;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

[data-lnc-skin="paper-circuits"] .game-hud-act-label {
  color: var(--lnc-text);
  font-weight: 600;
}

[data-lnc-skin="paper-circuits"] .game-hud-act-bar {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

[data-lnc-skin="paper-circuits"] .game-hud-act-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lnc-cyan), var(--lnc-green));
  transition: width 400ms ease;
}

[data-lnc-skin="paper-circuits"] .game-timer {
  position: relative;
  overflow: hidden;
  height: 32px;
  margin-bottom: 10px;
  background: rgba(10, 15, 30, 0.9);
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 10px;
}

[data-lnc-skin="paper-circuits"] .game-timer-bar {
  position: absolute;
  inset: 0 auto 0 0;
  transition: width 1s linear, background-color 500ms ease;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.18);
}

[data-lnc-skin="paper-circuits"] .game-timer-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

[data-lnc-skin="paper-circuits"] .game-timer-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

[data-lnc-skin="paper-circuits"] .game-timer-time {
  font-size: 1rem;
  font-weight: 700;
}

[data-lnc-skin="paper-circuits"] .game-timer--warning {
  box-shadow: 0 0 20px rgba(210, 153, 34, 0.18);
}

[data-lnc-skin="paper-circuits"] .game-timer--danger {
  box-shadow: 0 0 20px rgba(248, 81, 73, 0.22);
}

[data-lnc-skin="paper-circuits"] .game-timer--urgent .game-timer-time {
  font-size: 1.4em;
  font-weight: 800;
}

[data-lnc-skin="paper-circuits"] .game-timer:not(.game-timer--reduced).game-timer--urgent {
  animation: lnc-pulse 900ms ease-in-out infinite;
}

[data-lnc-skin="paper-circuits"] .game-timer-expired {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 30, 0.82);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: quest-shake 0.4s ease;
}

[data-lnc-skin="paper-circuits"] .daubot-dialog {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  margin-top: 10px;
  background: rgba(10, 15, 30, 0.86);
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

[data-lnc-skin="paper-circuits"] .daubot-dialog-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

[data-lnc-skin="paper-circuits"] .daubot-dialog-avatar {
  flex: 0 0 auto;
}

[data-lnc-skin="paper-circuits"] .daubot-speech-bubble {
  flex: 1;
  max-width: 680px;
  padding: 16px 18px;
  background: rgba(10, 15, 30, 0.9);
  border-left: 3px solid var(--lnc-cyan);
  border-radius: 10px;
}

[data-lnc-skin="paper-circuits"] .daubot-speech-name {
  margin-bottom: 8px;
  color: var(--lnc-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-lnc-skin="paper-circuits"] .daubot-speech-text,
[data-lnc-skin="paper-circuits"] .daubot-speech-symptom,
[data-lnc-skin="paper-circuits"] .daubot-summary-reaction,
[data-lnc-skin="paper-circuits"] .daubot-summary-text {
  margin: 0;
  color: var(--lnc-text);
  line-height: 1.6;
}

[data-lnc-skin="paper-circuits"] .daubot-speech-symptom {
  margin-top: 10px;
  color: var(--lnc-text-secondary);
}

[data-lnc-skin="paper-circuits"] .daubot-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

[data-lnc-skin="paper-circuits"] .daubot-stage-title {
  margin: 0;
  color: var(--lnc-text);
  font-size: 1.1rem;
}

[data-lnc-skin="paper-circuits"] .daubot-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-lnc-skin="paper-circuits"] .daubot-option,
[data-lnc-skin="paper-circuits"] .daubot-continue {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--lnc-cyan);
  border-radius: 8px;
  background: rgba(88, 166, 255, 0.1);
  color: var(--lnc-text);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
  text-align: left;
}

[data-lnc-skin="paper-circuits"] .daubot-option:hover,
[data-lnc-skin="paper-circuits"] .daubot-continue:hover {
  background: rgba(88, 166, 255, 0.2);
  transform: translateY(-1px);
}

[data-lnc-skin="paper-circuits"] .daubot-option--selected {
  border-color: var(--lnc-green);
  background: rgba(0, 230, 118, 0.15);
}

[data-lnc-skin="paper-circuits"] .daubot-awaiting {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}

[data-lnc-skin="paper-circuits"] .daubot-awaiting-text {
  margin: 0;
  color: var(--lnc-text-secondary);
}

[data-lnc-skin="paper-circuits"] .daubot-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-lnc-skin="paper-circuits"] .daubot-summary-badge {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
}

[data-lnc-skin="paper-circuits"] .daubot-result-correct {
  border-color: rgba(0, 230, 118, 0.25);
  background: rgba(0, 230, 118, 0.08);
}

[data-lnc-skin="paper-circuits"] .daubot-result-correct .daubot-summary-badge {
  background: rgba(0, 230, 118, 0.16);
  color: var(--lnc-green);
}

[data-lnc-skin="paper-circuits"] .daubot-result-wrong {
  border-color: rgba(248, 81, 73, 0.25);
  background: rgba(248, 81, 73, 0.08);
}

[data-lnc-skin="paper-circuits"] .daubot-result-wrong .daubot-summary-badge {
  background: rgba(248, 81, 73, 0.16);
  color: var(--lnc-danger);
}

[data-lnc-skin="paper-circuits"] .daubot-continue {
  width: auto;
  align-self: flex-start;
}

@media (max-width: 768px) {
  [data-lnc-skin="paper-circuits"] .game-hud {
    gap: 10px;
    padding: 10px 12px;
  }

  [data-lnc-skin="paper-circuits"] .game-hud-score {
    margin-left: 0;
  }

  [data-lnc-skin="paper-circuits"] .daubot-dialog {
    padding: 18px 16px;
  }

  [data-lnc-skin="paper-circuits"] .daubot-dialog-header {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-lnc-skin="paper-circuits"] .game-hud-item--new,
  [data-lnc-skin="paper-circuits"] .game-hud-score-delta,
  [data-lnc-skin="paper-circuits"] .game-timer,
  [data-lnc-skin="paper-circuits"] .game-timer-bar,
  [data-lnc-skin="paper-circuits"] .game-timer-expired,
  [data-lnc-skin="paper-circuits"] .daubot-option,
  [data-lnc-skin="paper-circuits"] .daubot-continue {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ===== Coop Frontend (Phase 85) ===== */

.coop-btn {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.coop-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.coop-btn--primary {
  border-color: rgba(0, 168, 255, 0.45);
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.2), rgba(0, 230, 118, 0.14));
  color: var(--color-main-text);
}

.coop-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-main-text);
}

.coop-btn--ghost {
  background: transparent;
  color: var(--color-text-maxcontrast);
}

.coop-btn:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: var(--color-primary-element);
}

.coop-lobby {
  width: 100%;
}

.coop-lobby__card,
.coop-vote-overlay__card,
.coop-waiting__card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(0, 168, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(14, 20, 28, 0.96), rgba(8, 12, 18, 0.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.coop-lobby__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
}

.coop-lobby__header,
.coop-vote-overlay__header,
.coop-waiting__status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.coop-lobby__eyebrow,
.coop-vote-overlay__eyebrow,
.coop-waiting__eyebrow {
  margin: 0 0 6px;
  color: var(--color-primary-element);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coop-lobby__title,
.coop-vote-overlay__title,
.coop-waiting__title {
  margin: 0;
  color: var(--color-main-text);
  font-size: 1.25rem;
}

.coop-lobby__status,
.coop-vote-overlay__count,
.coop-vote-overlay__timer {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-maxcontrast);
  font-size: 12px;
  font-weight: 700;
}

.coop-lobby__error {
  margin: 0;
  color: var(--color-error);
  font-size: 0.95rem;
}

.coop-lobby__copy,
.coop-waiting__copy {
  margin: 0;
  color: var(--color-text-maxcontrast);
  line-height: 1.5;
}

.coop-lobby__setup,
.coop-lobby__join {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coop-lobby__setup-actions,
.coop-lobby__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.coop-lobby__field-label {
  color: var(--color-text-maxcontrast);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coop-lobby__join-row,
.coop-lobby__code-block {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.coop-lobby__input {
  min-width: 220px;
  flex: 1 1 220px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.24);
  color: var(--color-main-text);
  padding: 12px 14px;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coop-lobby__code {
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--color-main-text);
}

.coop-lobby__players {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coop-lobby__players-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-main-text);
}

.coop-lobby__players-head h4 {
  margin: 0;
  font-size: 1rem;
}

.coop-lobby__player-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.coop-lobby__player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.coop-lobby__player--ready {
  border-color: rgba(0, 230, 118, 0.28);
  background: rgba(0, 230, 118, 0.08);
}

.coop-lobby__player--offline {
  opacity: 0.72;
}

.coop-lobby__player-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coop-lobby__player-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 168, 255, 0.16);
  font-size: 1.1rem;
}

.coop-lobby__player-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-main-text);
  font-weight: 700;
}

.coop-lobby__host {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.16);
  color: var(--color-warning);
  font-size: 11px;
  font-weight: 700;
}

.coop-lobby__player-role,
.coop-lobby__player-state,
.coop-waiting__progress-meta {
  color: var(--color-text-maxcontrast);
  font-size: 0.88rem;
}

.coop-vote-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(8px);
}

.coop-vote-overlay__card {
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.coop-vote-overlay__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.coop-vote-overlay__choices {
  display: grid;
  gap: 12px;
}

.coop-vote-overlay__choice {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-main-text);
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.coop-vote-overlay__choice:hover:not(:disabled),
.coop-vote-overlay__choice--selected,
.coop-vote-overlay__choice--leading {
  border-color: rgba(0, 168, 255, 0.35);
  background: rgba(0, 168, 255, 0.08);
}

.coop-vote-overlay__choice:hover:not(:disabled) {
  transform: translateY(-1px);
}

.coop-vote-overlay__choice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coop-vote-overlay__choice-label {
  font-weight: 700;
}

.coop-vote-overlay__choice-count {
  font-size: 1rem;
  font-weight: 800;
}

.coop-vote-overlay__bar {
  margin-top: 12px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.coop-vote-overlay__bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 168, 255, 0.8), rgba(0, 230, 118, 0.75));
  transition: width 0.2s ease;
}

.coop-vote-overlay__avatars {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.coop-vote-overlay__avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-main-text);
  font-size: 0.8rem;
  font-weight: 800;
}

.coop-vote-overlay__badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.14);
  color: var(--color-success);
  font-size: 11px;
  font-weight: 800;
}

.coop-vote-overlay__footer {
  min-height: 28px;
}

.coop-vote-overlay__waiting {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.coop-vote-overlay__waiting-label,
.coop-vote-overlay__resolved {
  color: var(--color-text-maxcontrast);
  font-size: 0.92rem;
}

.coop-vote-overlay__waiting-player {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-main-text);
  font-size: 12px;
  font-weight: 700;
}

.coop-waiting__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.coop-waiting__pulse {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(0, 168, 255, 0.95);
  box-shadow: 0 0 0 0 rgba(0, 168, 255, 0.45);
  animation: coop-pulse 1.5s ease infinite;
}

@keyframes coop-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 168, 255, 0.45);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(0, 168, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 168, 255, 0);
  }
}

.coop-waiting__progress {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.coop-waiting__progress-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.coop-waiting__progress-name {
  color: var(--color-main-text);
  font-weight: 700;
}

.coop-waiting__progress-state {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-maxcontrast);
  font-size: 12px;
  font-weight: 800;
}

.coop-waiting__progress-state--done {
  background: rgba(0, 230, 118, 0.14);
  color: var(--color-success);
}

@media (max-width: 768px) {
  .coop-lobby__join-row,
  .coop-lobby__code-block,
  .coop-lobby__actions,
  .coop-vote-overlay__header,
  .coop-waiting__status {
    flex-direction: column;
    align-items: stretch;
  }

  .coop-vote-overlay__meta {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ========== PUBLIC PAGES (Privacy / Impressum) ========== */
/* Compact NC guest footer to one line — affects only our PublicTemplateResponse pages */
footer.guest-box .info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
}
footer.guest-box .info br {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .coop-btn,
  .coop-vote-overlay,
  .coop-vote-overlay__choice,
  .coop-vote-overlay__bar-fill,
  .coop-waiting__pulse {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
