:root {
  --filyx-ink: #070708;
  --filyx-panel: #111114;
  --filyx-panel-2: #18181c;
  --filyx-line: rgba(242, 118, 34, .52);
  --filyx-orange: #f27622;
  --filyx-orange-hot: #ff9b4a;
  --filyx-text: #f7f5f2;
  --filyx-muted: #aaa6ad;
  --filyx-shadow: 0 24px 72px rgba(0, 0, 0, .56), 0 0 38px rgba(242, 118, 34, .16);
  --filyx-panel-fill: linear-gradient(145deg, rgba(21, 21, 24, .97), rgba(8, 8, 9, .95));
}

html,
body {
  color: var(--filyx-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-game-overlay-kind] body::after,
body.worldcup-widget-mode::after {
  content: "FILYX // LIVE";
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 9999;
  display: block;
  width: auto;
  height: auto;
  padding: 6px 9px;
  border: 1px solid rgba(242, 118, 34, .35);
  border-radius: 7px 2px 7px 2px;
  background: rgba(7, 7, 8, .72);
  box-shadow: 0 0 18px rgba(242, 118, 34, .12);
  color: var(--filyx-orange-hot);
  font: 800 10px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .16em;
  pointer-events: none;
}

/* FilyX Games */
.quiz-app,
.motus-app,
.whoami-app,
.pb-app {
  --primary: var(--filyx-orange) !important;
  --secondary: var(--filyx-panel) !important;
  color: var(--filyx-text);
}

.quiz-logo,
.motus-logo,
.whoami-logo,
.pb-logo {
  border: 1px solid rgba(255, 184, 112, .65);
  border-radius: 13px 4px 13px 4px;
  background: linear-gradient(145deg, var(--filyx-orange-hot), #d95705) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .46), 0 0 30px rgba(242, 118, 34, .32) !important;
}

.quiz-waiting,
.motus-waiting,
.whoami-waiting,
.pb-waiting,
.quiz-counter,
.motus-counter,
.whoami-counter,
.pb-counter,
.quiz-choice,
.motus-proposal-zone,
.whoami-proposal-zone,
.pb-answers-zone {
  color: var(--filyx-muted);
}

.quiz-idle,
.motus-idle,
.whoami-idle,
.pb-idle {
  min-width: min(88vw, 340px);
  padding: 24px 28px;
  border: 1px solid rgba(242, 118, 34, .34);
  border-radius: 18px 5px 18px 5px;
  background: var(--filyx-panel-fill);
  box-shadow: var(--filyx-shadow);
}

.quiz-idle h1,
.motus-idle h1,
.whoami-idle h1,
.pb-idle h1 {
  color: var(--filyx-text);
  text-transform: uppercase;
  letter-spacing: .035em;
}

.quiz-question-row,
.quiz-choice,
.quiz-answer-result,
.quiz-answer-explanation,
.quiz-provisional,
.quiz-top-scores,
.motus-word-zone,
.motus-answer-result,
.motus-provisional,
.motus-top-scores,
.whoami-clues-container,
.whoami-answer-word,
.whoami-answer-result,
.whoami-provisional,
.whoami-top-scores,
.pb-category-row,
.pb-reveal-result,
.pb-revealed-item,
.pb-provisional,
.pb-top-scores,
.podium-card {
  border: 1px solid var(--filyx-line) !important;
  border-radius: 14px 4px 14px 4px !important;
  background: var(--filyx-panel-fill) !important;
  box-shadow: var(--filyx-shadow) !important;
  color: var(--filyx-text) !important;
}

.quiz-choice,
.motus-proposal-zone,
.whoami-proposal-zone,
.pb-answers-zone,
.whoami-clue-item,
.pb-answer-item {
  border-color: rgba(242, 118, 34, .28) !important;
  background: rgba(17, 17, 20, .92) !important;
}

.quiz-choice.active,
.quiz-choice.correct {
  border-color: var(--filyx-orange-hot) !important;
  background: linear-gradient(100deg, rgba(242, 118, 34, .42), rgba(18, 18, 21, .96)) !important;
}

.quiz-badge:first-child,
.motus-badge:first-child,
.whoami-badge:first-child,
.pb-badge:first-child,
.motus-queue-badge,
.whoami-queue-badge {
  border-color: rgba(242, 118, 34, .5) !important;
  background: rgba(242, 118, 34, .13) !important;
  color: var(--filyx-orange-hot) !important;
}

.quiz-timer-container,
.motus-timer-container,
.whoami-timer-container,
.pb-timer-container {
  height: 6px;
  background: rgba(255, 255, 255, .08) !important;
}

.quiz-timer-bar,
.motus-timer-bar,
.whoami-timer-bar,
.pb-timer-bar {
  background: linear-gradient(90deg, #d95705, var(--filyx-orange-hot)) !important;
  box-shadow: 0 0 18px rgba(242, 118, 34, .6);
}

.quiz-mascot-question,
.quiz-answer-mascot,
.motus-mascot-question,
.motus-mascot-reponse,
.whoami-mascot-question,
.whoami-mascot-reponse,
.pb-mascot,
.pb-mascot-reveal {
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .54)) drop-shadow(0 0 12px rgba(242, 118, 34, .18));
}

/* FilyX Sport: the adapter keeps every legacy sport feature and applies this skin last. */
body.worldcup-widget-mode {
  --bg: transparent;
  --panel: var(--filyx-panel);
  --panel-2: var(--filyx-panel-2);
  --line: rgba(242, 118, 34, .34);
  --amber: var(--filyx-orange);
  --mint: var(--filyx-orange-hot);
  --coral: #ff7240;
  --text: var(--filyx-text);
  --muted: var(--filyx-muted);
  --glow-amber: rgba(242, 118, 34, .36);
  --glow-mint: rgba(255, 155, 74, .28);
  background: transparent !important;
}

body.worldcup-widget-mode .worldcup-widget-shell,
body.worldcup-widget-mode .worldcup-card,
body.worldcup-widget-mode .worldcup-side-card,
body.worldcup-widget-mode .worldcup-full-score-card,
body.worldcup-widget-mode .worldcup-full-live-card,
body.worldcup-widget-mode .worldcup-small-card,
body.worldcup-widget-mode .worldcup-bb-panel,
body.worldcup-widget-mode .worldcup-f1-card,
body.worldcup-widget-mode .worldcup-mma-card {
  border-color: rgba(242, 118, 34, .36) !important;
  background-color: rgba(12, 12, 14, .96) !important;
  box-shadow: var(--filyx-shadow) !important;
}

body.worldcup-widget-mode .worldcup-widget-shell {
  border-radius: 18px 5px 18px 5px !important;
  overflow: hidden;
}

body.worldcup-widget-mode .worldcup-kicker,
body.worldcup-widget-mode .worldcup-title,
body.worldcup-widget-mode .worldcup-score,
body.worldcup-widget-mode .worldcup-row-score,
body.worldcup-widget-mode .worldcup-f1-logo b {
  color: var(--filyx-orange-hot) !important;
}

body.worldcup-widget-mode .worldcup-widget-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  z-index: 8;
  background: linear-gradient(180deg, transparent, var(--filyx-orange), transparent);
  box-shadow: 0 0 18px rgba(242, 118, 34, .5);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
