/* WFSC 2026 — Public embed style (Liveticker, Ergebnisliste). Audience-facing, so this follows
   the WFSC Zine-Look (§12.2) rather than the dark LIVEPULS operator style in tokens.css — these
   pages get iframed into the World Freestyle website, not used by event staff. */

:root {
  --teal: #B3CBCF;
  --teal-2: #8BB8BC;
  --ink: #1D1D1B;
  --accent: #97C4CC;
  --white: #FFFFFF;
  --muted: #6b7a7d;
  --border: rgba(29, 29, 27, 0.12);
  --radius: 8px;
  --font-display: 'Anton', 'Oswald', Impact, sans-serif;
  --font-type: 'Special Elite', 'Courier New', monospace;
  --font-cond: 'Oswald', 'Anton', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-cond);
  -webkit-font-smoothing: antialiased;
}

.embed-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.embed-header {
  background: var(--teal);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.embed-header h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 20px;
  margin: 0;
  color: var(--ink);
  flex: 1;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-type);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 10px 4px;
  border-radius: 20px;
}

.live-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5484d;
  animation: embed-blink 1.1s steps(2, start) infinite;
}
@keyframes embed-blink { 50% { opacity: 0.2; } }
.live-pill.offline .dot { background: var(--muted); animation: none; }
.live-pill.offline { opacity: 0.7; }

.embed-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  background: var(--teal-2);
  flex-shrink: 0;
}

.embed-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  border-top: none;
  background: var(--ink);
}

.embed-footer img {
  height: 16px;
  width: auto;
  opacity: 0.9;
}

.embed-footer .sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}

.embed-footer span {
  font-family: var(--font-type);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.embed-error {
  margin: 10px 16px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(229, 72, 77, 0.12);
  border: 1px solid #e5484d;
  color: #a02226;
  font-size: 13px;
  font-family: var(--font-cond);
}
.embed-error[hidden] { display: none; }

.embed-empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
