/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

:root {
  --font-family-system: "Twemoji Country Flags", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #fff;
  font-family: var(--font-family-system);
}

.page__main {
  flex-grow: 1;
  margin-top: 1rem;
}

.page__container {
  width: 100%;
  max-width: 42rem;
  margin-right: auto;
  margin-left: auto;
}

.page__container--wide {
  max-width: 64rem;
}

.flagmatch-check-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.flagmatch-check-list li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: #111827;
  line-height: 1.45;
}

.flagmatch-check-list svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.22rem;
  color: #16a34a;
}

.quiz-faq {
  margin-top: 2.25rem;
  padding-inline: 1rem;
}

.quiz-faq__shell,
.quiz-faq__entry,
.faq-page-entry {
  display: grid;
}

.quiz-faq__shell {
  gap: 1.25rem;
}

.quiz-faq__list,
.faq-page-entries {
  display: grid;
  gap: 1.75rem;
}

.quiz-faq__entry,
.faq-page-entry {
  gap: 0.65rem;
}

.quiz-faq__entry h3,
.faq-page-entry h2 {
  line-height: 1.2;
}

.quiz-faq__entry p,
.faq-page-entry p {
  line-height: 1.55;
}

.faq-page-entry {
  scroll-margin-top: 5rem;
}

/* Hide the triangle that appears next to the summary text */
details#language-switcher > summary {
  list-style: none;
}
/* Webkit browsers (Chrome, Safari, newer Edge) */
details#language-switcher > summary::-webkit-details-marker {
  display: none;
}
/* Firefox */
details#language-switcher > summary::marker {
  display: none;
}
/* Legacy Edge/IE (though Edge now uses Webkit) */
details#language-switcher > summary::-o-details-marker {
  display: none;
}
/* For older Firefox versions */
details#language-switcher > summary::-moz-list-bullet {
  list-style-type: none;
}

details summary {
  cursor: pointer;
}

.flag-index__thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 8rem;
  background-color: #fff;
}

.flag-index__image-box {
  display: flex;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background-color: #fff;
}

.flag-index__thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.flag-trait-links__grid {
  display: grid;
  row-gap: 2rem;
  column-gap: 3rem;
}

@media (min-width: 640px) {
  .flag-trait-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.flag-trait-links__swatches {
  display: inline-flex;
  height: 0.75rem;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  vertical-align: middle;
}

.flag-trait-links__swatch {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 1px solid #e5e7eb;
}

.flag-trait-links__swatch:last-child {
  border-right: 0;
}

.flagmatch-engine {
  --flagmatch-board-width: min(100%, 37.5rem);
  --flagmatch-ink: #111827;
  --flagmatch-muted: #71717a;
  --flagmatch-line: #e5e7eb;
  --flagmatch-green: #65a30d;
  --flagmatch-cyan: #0ea5e9;
  --flagmatch-gold: #f59e0b;
  --flagmatch-red: #ef4444;
  --flagmatch-overlay-inset: -1rem;
  width: min(calc(100vw - 2rem), 52rem);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
  color: var(--flagmatch-muted);
  letter-spacing: 0;
}

.flagmatch-canvas {
  display: none;
}

.flagmatch-playfield {
  position: relative;
  min-height: 38rem;
  height: auto !important;
  padding: clamp(0.875rem, 2.4vw, 1.25rem);
  overflow: visible !important;
  isolation: isolate;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none;
  color: var(--flagmatch-muted) !important;
  transform: translateZ(0);
}

.flagmatch-playfield::before,
.flagmatch-playfield::after {
  display: none;
  content: none;
}

.flagmatch-canvas {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
}

.flagmatch-playfield > :not(.flagmatch-canvas):not([data-game-target="tapToStart"]):not([data-victory-target="overlay"]) {
  position: relative;
  z-index: 3;
}

.flagmatch-playfield > [data-game-target="tapToStart"],
.flagmatch-playfield > [data-victory-target="overlay"] {
  position: absolute !important;
  inset: var(--flagmatch-overlay-inset) !important;
  z-index: 50 !important;
}

.flagmatch-playfield > .flex:not([data-game-target="tapToStart"]):not([data-victory-target="overlay"]),
.flagmatch-playfield > .mt-4,
.flagmatch-playfield > [data-streak-target="combo"] {
  max-width: var(--flagmatch-board-width);
  margin-left: auto;
  margin-right: auto;
}

.flagmatch-engine--webgl-board:not(.flagmatch-engine--playing) .flagmatch-playfield > :not(.flagmatch-canvas):not([data-game-target="tapToStart"]):not([data-victory-target="overlay"]),
.flagmatch-engine--webgl-board.flagmatch-engine--paused .flagmatch-playfield > :not(.flagmatch-canvas):not([data-game-target="tapToStart"]):not([data-victory-target="overlay"]),
.flagmatch-engine--webgl-board.flagmatch-engine--finished .flagmatch-playfield > :not(.flagmatch-canvas):not([data-game-target="tapToStart"]):not([data-victory-target="overlay"]) {
  opacity: 0 !important;
  pointer-events: none;
}

.flagmatch-engine:not(.flagmatch-engine--playing) .flagmatch-playfield,
.flagmatch-engine.flagmatch-engine--paused .flagmatch-playfield,
.flagmatch-engine.flagmatch-engine--finished .flagmatch-playfield {
  overflow: hidden !important;
  border-radius: 0.5rem !important;
}

.flagmatch-engine .flagmatch-progress [role="progressbar"] {
  height: 0.5rem !important;
  border: 0;
  background: #d4d4d4 !important;
  box-shadow: none;
}

.flagmatch-engine [data-progressbar-target="progress"] {
  background: var(--flagmatch-green) !important;
  box-shadow: none;
  transition: width 420ms ease;
}

.flagmatch-engine [data-timer-target="timer"] {
  color: var(--flagmatch-green);
  text-shadow: none;
}

.flagmatch-engine [data-action*="game#exit"],
.flagmatch-engine [data-action*="mute#toggle"],
.flagmatch-engine [data-game-target="hintButton"] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.flagmatch-engine [data-game-target="hintButton"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 7.25rem;
  height: 2.5rem;
  flex-shrink: 0;
  margin-right: 2px;
  padding: 0 1.125rem;
  overflow: visible;
  border: 1px solid #06b6d4 !important;
  border-bottom-width: 4px !important;
  border-radius: 8px !important;
  color: #083344 !important;
  background: #ecfeff !important;
  box-shadow: none;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(0);
  transition: transform 80ms ease, background-color 160ms ease, border-width 80ms ease;
}

.flagmatch-engine [data-game-target="hintButton"]:hover {
  background: #cffafe !important;
}

.flagmatch-engine [data-action*="game#exit"] svg,
.flagmatch-engine [data-action*="mute#toggle"] svg {
  color: var(--flagmatch-muted) !important;
  filter: none;
}

.flagmatch-engine [data-game-target="hintButton"]:active {
  transform: translateY(1px);
  border-bottom-width: 2px !important;
}

.flagmatch-board {
  position: relative;
  width: 100%;
  max-width: var(--flagmatch-board-width) !important;
  gap: 0.7rem !important;
  margin-bottom: 0.75rem !important;
  perspective: 900px;
}

.flagmatch-tile {
  --flagmatch-energy: 0;
  --flagmatch-match-delay: 0ms;
  position: relative;
  min-width: 0;
  height: 4.5rem !important;
  overflow: hidden;
  border-radius: 8px !important;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-shadow: none;
  backface-visibility: hidden;
  contain: layout paint style;
  transform: none;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
  will-change: transform, opacity;
}

.flagmatch-tile.transition-opacity {
  transition-property: opacity !important;
}

.flagmatch-tile.duration-\[800ms\] {
  transition-duration: 800ms !important;
}

.flagmatch-tile.duration-300 {
  transition-duration: 300ms !important;
}

.flagmatch-tile.delay-700 {
  transition-delay: 700ms !important;
}

.flagmatch-tile.ease-in-out {
  transition-timing-function: ease-in-out !important;
}

.flagmatch-engine:not(.flagmatch-engine--canvas-board) .flagmatch-tile {
  border: 1px solid #d1d5db !important;
  border-bottom-width: 4px !important;
  color: #111827 !important;
  background: #fff !important;
  box-shadow: none;
}

.flagmatch-tile::before,
.flagmatch-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.flagmatch-engine:not(.flagmatch-engine--canvas-board) .flagmatch-tile::before {
  display: none;
}

.flagmatch-engine:not(.flagmatch-engine--canvas-board) .flagmatch-tile::after {
  border-radius: 8px;
  box-shadow: 0 0 calc(var(--flagmatch-energy) * 12px) rgba(14, 165, 233, 0.16);
}

.flagmatch-tile:not([data-unclickable]):not(.is-disabled):not(.is-clearing):hover {
  transform: none;
}

.flagmatch-tile:not([data-unclickable]):not(.is-disabled):not(.is-clearing):active {
  transform: translateY(1px);
}

.flagmatch-engine:not(.flagmatch-engine--canvas-board) .flagmatch-tile:not([data-unclickable]):not(.is-disabled):not(.is-clearing):active {
  border-bottom-width: 2px !important;
}

.flagmatch-tile[data-unclickable],
.flagmatch-tile.is-disabled,
.flagmatch-tile.is-clearing {
  cursor: default !important;
  pointer-events: none;
}

.flagmatch-tile.is-selected {
  animation: flagmatchSelect 220ms ease-out;
  transform: none;
}

.flagmatch-engine:not(.flagmatch-engine--canvas-board) .flagmatch-tile.is-selected {
  color: #78350f !important;
  border-color: #f59e0b !important;
  background: #fffbeb !important;
  box-shadow: none;
}

.flagmatch-tile.is-hinting {
  animation: flagmatchHint 920ms ease-in-out infinite;
}

.flagmatch-engine:not(.flagmatch-engine--canvas-board) .flagmatch-tile.is-hinting {
  color: #083344 !important;
  border-color: #06b6d4 !important;
  background: #ecfeff !important;
}

.flagmatch-tile.is-matched {
  animation: flagmatchMatch 680ms ease-out var(--flagmatch-match-delay);
}

.flagmatch-engine:not(.flagmatch-engine--canvas-board) .flagmatch-tile.is-matched {
  color: #052e16 !important;
  border-color: #22c55e !important;
  background: #ecfdf5 !important;
  box-shadow: none;
}

.flagmatch-tile.is-clearing {
  pointer-events: none;
}

.flagmatch-tile.is-mismatched {
  animation: flagmatchMismatch 260ms ease-in-out;
}

.flagmatch-engine:not(.flagmatch-engine--canvas-board) .flagmatch-tile.is-mismatched {
  color: #7f1d1d !important;
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}

.flagmatch-tile.is-entering {
  animation: flagmatchTileIn 360ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.flagmatch-engine:not(.flagmatch-engine--canvas-board) .flagmatch-tile.is-disabled {
  color: #64748b !important;
  border-color: #e2e8f0 !important;
  background: #f8fafc !important;
  box-shadow: none;
  opacity: 0.56 !important;
  transform: none;
}

.flagmatch-engine--canvas-board .flagmatch-tile {
  border-color: transparent !important;
  transform: none !important;
  animation: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  text-shadow: none !important;
}

.flagmatch-engine--canvas-board .flagmatch-tile::before,
.flagmatch-engine--canvas-board .flagmatch-tile::after {
  display: none !important;
}

.flagmatch-engine--webgl-board[data-game-quiz-value="quizzes/flags"] .flagmatch-tile[data-side="key"] {
  font-size: 1.125rem !important;
}

.flagmatch-engine--webgl-board[data-game-quiz-value="quizzes/flags"] .flagmatch-tile[data-side="lookup"] {
  font-size: 3.35rem !important;
}

.flagmatch-engine [data-game-target="tapToStart"],
.flagmatch-engine [data-victory-target="overlay"] {
  border-radius: 8px !important;
  background-color: rgba(17, 24, 39, 0.72) !important;
  background-blend-mode: multiply;
  color: #fff;
}

.flagmatch-engine--webgl-board [data-game-target="tapToStart"] {
  background-color: rgba(17, 24, 39, 0.72) !important;
  background-blend-mode: multiply;
  color: #fff !important;
}

.flagmatch-engine--webgl-board [data-victory-target="overlay"] {
  background-color: rgba(17, 24, 39, 0.36) !important;
  background-blend-mode: multiply;
}

.flagmatch-engine--webgl-board [data-game-target="tapToStart"] > div {
  opacity: 1 !important;
}

.flagmatch-engine [data-game-target="tapToStart"]::before,
.flagmatch-engine [data-victory-target="overlay"]::before {
  display: none;
  content: none;
}

.flagmatch-engine [data-game-target="tapToStart"] > div,
.flagmatch-engine [data-victory-target="overlay"] > div {
  position: relative;
  z-index: 1;
}

.flagmatch-engine [data-game-target="tapToStart"] .bg-black,
.flagmatch-engine [data-victory-target="overlay"] .bg-black {
  background: rgba(17, 24, 39, 0.76) !important;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.28);
}

.flagmatch-engine--webgl-board [data-victory-target="overlay"] > .bg-black {
  width: min(100%, 38rem) !important;
  margin-top: 0;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1rem, 4vw, 3rem) !important;
  border: 0;
  border-radius: 0.5rem;
  background: rgba(17, 24, 39, 0.76) !important;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.28);
  backdrop-filter: none;
  pointer-events: auto;
  animation: none;
}

.flagmatch-engine--webgl-board [data-victory-target="overlay"] .mt-4 {
  pointer-events: auto;
}

.flagmatch-engine--webgl-board [data-victory-target="overlay"] .space-y-4 {
  pointer-events: auto;
}

.flagmatch-engine [data-victory-target="overlay"] ul > li > div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.flagmatch-engine--webgl-board [data-victory-target="overlay"] ul > li {
  animation: none;
}

.flagmatch-engine--webgl-board [data-victory-target="overlay"] ul > li:nth-child(2) {
  animation-delay: 80ms;
}

.flagmatch-engine--webgl-board [data-victory-target="overlay"] ul > li:nth-child(3) {
  animation-delay: 150ms;
}

.flagmatch-engine--webgl-board [data-victory-target="overlay"] [data-action*="victory#restart"],
.flagmatch-engine--webgl-board [data-victory-target="overlay"] button,
.flagmatch-engine--webgl-board [data-victory-target="overlay"] a {
  pointer-events: auto;
}

.flagmatch-button,
.ad-free-cta {
  display: inline-block;
  max-width: 100%;
}

.flagmatch-button,
.ad-free-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2.5rem;
  max-width: 100%;
  padding: 0 1.125rem;
  border: 1px solid #d1d5db;
  border-bottom-width: 4px;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: #111827 !important;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    border-width 80ms ease,
    box-shadow 150ms ease,
    transform 80ms ease;
  transform: translateY(0);
}

.ad-free-checkout {
  display: inline-block;
  max-width: 100%;
}

.flagmatch-button:hover:not(:disabled):not([disabled]),
.ad-free-cta:hover:not(:disabled):not([disabled]) {
  background: #f8fafc;
  box-shadow: none;
}

.flagmatch-button:active:not(:disabled):not([disabled]),
.ad-free-cta:active:not(:disabled):not([disabled]) {
  transform: translateY(1px);
  border-bottom-width: 2px;
  box-shadow: none;
}

.flagmatch-button:focus-visible,
.ad-free-cta:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.38);
  outline-offset: 3px;
}

.flagmatch-button:disabled,
.flagmatch-button[disabled],
.ad-free-cta:disabled,
.ad-free-cta[disabled] {
  cursor: wait;
  filter: grayscale(0.15) saturate(0.88);
}

.flagmatch-button--cyan {
  border-color: #06b6d4;
  background: #ecfeff;
  color: #083344 !important;
}

.flagmatch-button--cyan:hover:not(:disabled):not([disabled]) {
  background: #cffafe;
}

.flagmatch-button--cyan:focus-visible {
  outline-color: rgba(6, 182, 212, 0.35);
}

.flagmatch-button--auth {
  min-height: 3rem;
  border-color: #d1d5db;
  background: #fff;
  color: #0f172a !important;
}

.flagmatch-button--auth:hover:not(:disabled):not([disabled]) {
  background: #f8fafc;
}

.flagmatch-button--compact,
.ad-free-cta--nav {
  min-height: 2.1rem;
  padding: 0 0.78rem;
  font-size: 0.75rem;
}

.flagmatch-button--wide {
  display: flex;
  width: min(100%, 24rem);
  margin-right: auto;
  margin-left: auto;
}

.flagmatch-button--full {
  width: 100%;
}

.ad-free-cta {
  border-color: #22c55e;
  background: #dcfce7;
  color: #052e16 !important;
}

.ad-free-cta:hover:not(:disabled):not([disabled]) {
  background: #bbf7d0;
}

.ad-free-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 1.5rem);
  padding: 0.28rem 0.36rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #15803d !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-shadow: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.ad-free-link:hover:not(:disabled):not([disabled]) {
  background: rgba(220, 252, 231, 0.88);
  color: #166534 !important;
}

.ad-free-link:active:not(:disabled):not([disabled]) {
  background: rgba(187, 247, 208, 0.92);
  transform: none;
}

.ad-free-link:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.38);
  outline-offset: 3px;
}

.ad-free-cta--game-start {
  min-height: 2.1rem;
  padding-inline: 0.78rem;
  font-size: 0.72rem;
}

.ad-free-cta--victory {
  min-height: 2.85rem;
  padding-inline: 1.25rem;
}

.ad-free-cta--page {
  min-height: 3.15rem;
  padding-inline: 1.45rem;
  font-size: 0.95rem;
}

.premium-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .premium-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.premium-page-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.premium-page-badge img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

.flagmatch-plan-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #d1fae5;
  border-bottom-width: 4px;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  padding: 1rem;
  text-decoration: none;
  transform: translateY(0);
  transition: background-color 150ms ease, border-color 150ms ease, border-width 80ms ease, transform 80ms ease;
}

a.flagmatch-plan-card,
.flagmatch-plan-card[role="button"] {
  cursor: pointer;
}

a.flagmatch-plan-card:hover,
.flagmatch-plan-card[role="button"]:hover {
  border-color: #22c55e;
  background: #f0fdf4;
}

a.flagmatch-plan-card:active,
.flagmatch-plan-card[role="button"]:active {
  background: #f0fdf4;
  transform: none;
  border-bottom-width: 4px;
}

a.flagmatch-plan-card--yearly:active,
.flagmatch-plan-card--yearly[role="button"]:active {
  background: #f7fee7;
  transform: none;
  border-bottom-width: 4px;
}

a.flagmatch-plan-card:focus-visible,
.flagmatch-plan-card[role="button"]:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.38);
  outline-offset: 3px;
}

.flagmatch-plan-card--yearly {
  border-color: #d9f99d;
  background: #fff;
}

a.flagmatch-plan-card--yearly:hover,
.flagmatch-plan-card--yearly[role="button"]:hover {
  border-color: #84cc16;
  background: #f7fee7;
}

.flagmatch-plan-card__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flagmatch-plan-card__icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.flagmatch-plan-card__icon-image {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.flagmatch-plan-card__price {
  margin-top: 0.25rem;
  color: #166534;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.05;
}

.flagmatch-plan-card--yearly .flagmatch-plan-card__price {
  color: #3f6212;
}

.flagmatch-plan-card__perks {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.flagmatch-plan-card__perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.flagmatch-plan-card__perks svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin-top: 0.05rem;
  color: #16a34a;
}

.game-result-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-bottom-width: 4px;
  border-radius: 8px;
  background: #fff;
}

.game-result-hero {
  min-height: 13rem;
  background-position: center;
  background-size: cover;
}

.game-result-hero__shade {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.84));
  color: #fff;
}

.game-result-hero__shade p,
.game-result-hero__shade span {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.game-result-hero__shade span {
  opacity: 0.86;
}

.game-result-hero__shade h2 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 900;
  line-height: 0.98;
}

.game-result-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  padding: 0.75rem;
}

@media (min-width: 640px) {
  .game-result-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.game-result-stat {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.8rem 0.9rem;
}

.game-result-stat dt {
  color: #475569;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.game-result-stat dd {
  margin-top: 0.25rem;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.1;
}

.score-recommendations {
  display: grid;
  gap: 0.75rem;
}

.score-recommendations__header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
}

.score-recommendations__header p {
  margin-top: 0.25rem;
  color: #475569;
  font-size: 0.9rem;
}

.score-recommendations__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .score-recommendations__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.score-recommendation-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #e5e7eb;
  border-bottom-width: 4px;
  border-radius: 8px;
  background: #fff;
  padding: 0.9rem;
}

.score-recommendation-card--primary {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.score-recommendation-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.2;
}

.score-recommendation-card p {
  margin-top: 0.35rem;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.35;
}

.score-flagclick-callout {
  border: 1px solid #bae6fd;
  border-bottom-width: 4px;
  border-radius: 8px;
  background: #f0f9ff;
  padding: 0.9rem 1rem;
  color: #0f172a;
}

.score-flagclick-callout p {
  margin: 0;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.score-flagclick-callout a {
  color: #0369a1;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.flagmatch-victory-form {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.flagmatch-victory-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.flagmatch-victory-premium {
  display: grid;
  width: min(100%, 28rem);
  gap: 0.55rem;
  justify-items: center;
  border: 1px solid #bbf7d0;
  border-bottom-width: 4px;
  border-radius: 8px;
  background: rgba(240, 253, 244, 0.96);
  padding: 1rem;
  color: #0f172a;
}

.flagmatch-victory-premium--map {
  margin-top: 1rem;
}

.flagmatch-victory-premium__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.flagmatch-victory-premium__badge img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.flagmatch-victory-premium h3 {
  margin: 0;
  color: #052e16;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}

.flagmatch-victory-premium p {
  margin: 0;
  color: #14532d;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.flagmatch-victory-note {
  max-width: 26rem;
  margin: 0;
  color: #e0f2fe;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.flagmatch-victory-note a {
  color: #fef08a;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.flagmatch-victory-note--map {
  margin-top: 0.85rem;
}

.flagmatch-start-band {
  width: 100%;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
  background: rgba(0, 0, 0, 0.75);
}

.flagmatch-start-heading {
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.34);
}

.flagmatch-start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  height: 2.75rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid #06b6d4;
  border-bottom-width: 4px;
  border-radius: 8px;
  color: #083344;
  background: #ecfeff;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(0);
  transition: background-color 150ms ease, border-width 80ms ease, transform 80ms ease;
}

.flagmatch-start-button:hover:not(:disabled) {
  background: #cffafe;
}

.flagmatch-start-button:active:not(:disabled) {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

.flagmatch-start-button:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.35);
  outline-offset: 3px;
}

.flagmatch-start-button:disabled {
  cursor: default;
  opacity: 0.58;
}

.flagmatch-start-secondary {
  display: flex;
  justify-content: center;
  margin-top: 0.8rem;
  padding-inline: 1rem;
}

.flagmatch-engine [data-game-target="tapToStart"] > .flagmatch-start-ad-free,
.flagmatch-map-start > .flagmatch-start-ad-free {
  position: absolute;
  top: calc(0.75rem - var(--flagmatch-overlay-inset, 0rem));
  right: calc(0.75rem - var(--flagmatch-overlay-inset, 0rem));
  z-index: 60;
}

.flagmatch-engine--paused .flagmatch-playfield {
  filter: saturate(0.82);
}

@keyframes flagmatchSelect {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-3px) scale(1.025);
  }
}

@keyframes flagmatchHint {
  0%, 100% {
    transform: translateY(-1px) scale(1.005);
  }
  50% {
    transform: translateY(-3px) scale(1.02);
  }
}

@keyframes flagmatchMatch {
  0% {
    transform: scale(1);
  }
  42% {
    transform: translateY(-7px) scale(1.055) rotateX(7deg);
  }
  100% {
    transform: translateY(-2px) scale(1.01);
  }
}

@keyframes flagmatchMismatch {
  0%, 100% {
    transform: translateX(0);
  }
  22% {
    transform: translateX(-7px) rotate(-1deg);
  }
  48% {
    transform: translateX(6px) rotate(1deg);
  }
  74% {
    transform: translateX(-3px);
  }
}

@keyframes flagmatchTileIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) {
  --flagmatch-overlay-inset: -0.5rem;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  transform: none;
  color: inherit;
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) .flagmatch-canvas {
  display: none !important;
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) .flagmatch-playfield {
  min-height: 0;
  height: 38rem !important;
  padding: 0;
  overflow: hidden !important;
  isolation: auto;
  border: 0;
  border-radius: 0.5rem !important;
  background: transparent;
  box-shadow: none;
  color: #71717a !important;
  transform: none;
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) .flagmatch-playfield > :not(.flagmatch-canvas):not([data-game-target="tapToStart"]):not([data-victory-target="overlay"]) {
  position: static;
  z-index: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  opacity: 1 !important;
  pointer-events: auto;
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) .flagmatch-playfield > [data-game-target="tapToStart"],
.flagmatch-engine:not(.flagmatch-engine--webgl-board) .flagmatch-playfield > [data-victory-target="overlay"] {
  position: absolute !important;
  inset: var(--flagmatch-overlay-inset) !important;
  z-index: 50 !important;
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) .flagmatch-progress [role="progressbar"] {
  height: 0.5rem !important;
  border: 0;
  background: #d4d4d4 !important;
  box-shadow: none;
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) [data-progressbar-target="progress"] {
  background: #84cc16 !important;
  transition: width 500ms ease-out;
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) [data-timer-target="timer"] {
  color: inherit;
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) [data-game-target="hintButton"] {
  display: inline-flex;
  min-width: 7.25rem;
  margin-right: 0;
  padding: 0 1.125rem;
  border-color: #06b6d4 !important;
  border-bottom-width: 4px !important;
  border-radius: 8px !important;
  color: #083344 !important;
  background: #ecfeff !important;
  transition: opacity 100ms ease, background-color 160ms ease, border-width 80ms ease, transform 80ms ease;
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) [data-game-target="tapToStart"],
.flagmatch-engine:not(.flagmatch-engine--webgl-board) [data-victory-target="overlay"] {
  border-radius: 0.5rem !important;
  background-color: rgba(17, 24, 39, 0.72) !important;
  background-blend-mode: multiply;
  color: #fff !important;
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) [data-game-target="tapToStart"] .bg-black,
.flagmatch-engine:not(.flagmatch-engine--webgl-board) [data-victory-target="overlay"] .bg-black {
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.28);
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) .flagmatch-board {
  width: 100% !important;
  max-width: none !important;
  column-gap: 1rem !important;
  row-gap: 0.5rem !important;
  margin-bottom: 120px !important;
  perspective: none;
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) .flagmatch-tile {
  height: 4.5rem !important;
  border-radius: 0.75rem !important;
  line-height: normal;
  text-shadow: none;
  contain: none;
  transform: none !important;
  transition: inherit;
  will-change: auto;
  animation: none !important;
  box-shadow: none !important;
}

.flagmatch-engine:not(.flagmatch-engine--webgl-board) .flagmatch-tile::before,
.flagmatch-engine:not(.flagmatch-engine--webgl-board) .flagmatch-tile::after {
  display: none !important;
}

@media (max-width: 640px) {
  .flagmatch-engine--webgl-board {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    transform: none;
  }

  .flagmatch-playfield {
    min-height: 40rem;
    height: auto !important;
    padding: 0 1rem;
  }

  .flagmatch-board {
    gap: 0.5rem !important;
  }

  .flagmatch-tile {
    height: 4.65rem !important;
    padding: 0.7rem !important;
  }

  .flagmatch-engine--webgl-board[data-game-quiz-value="quizzes/flags"] .flagmatch-tile[data-side="key"] {
    font-size: 1rem !important;
  }

  .flagmatch-engine--webgl-board[data-game-quiz-value="quizzes/flags"] .flagmatch-tile[data-side="lookup"] {
    font-size: 2.65rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flagmatch-tile {
    transition-duration: 1ms !important;
  }

  .flagmatch-tile.is-selected,
  .flagmatch-tile.is-hinting,
  .flagmatch-tile.is-matched,
  .flagmatch-tile.is-mismatched,
  .flagmatch-tile.is-entering {
    animation: none !important;
  }
}

.flagmatch-map-engine {
  width: min(calc(100vw - 1.5rem), 88rem);
  max-width: none;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: clamp(0.875rem, 2.4vw, 1.25rem);
  margin-left: 50%;
  transform: translateX(-50%);
  color: #334155;
  letter-spacing: 0;
}

.flagmatch-map-hud {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 72rem);
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  margin-right: auto;
  margin-left: auto;
}

.flagmatch-map-hud {
  justify-content: space-between;
}

.flagmatch-practice-note,
.flagmatch-map-practice-note {
  align-items: center;
  background: #ecfeff;
  border: 1px solid #06b6d4;
  color: #083344;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.875rem;
  gap: 0.35rem 0.5rem;
  justify-content: center;
  line-height: 1.25rem;
  margin: 0 auto 0.75rem;
  max-width: 72rem;
  padding: 0.65rem 1rem;
  text-align: center;
}

.flagmatch-map-taskbar,
.flagmatch-map-controlbar,
.flagmatch-map-clue {
  width: min(100%, 72rem);
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  margin-right: auto;
  margin-left: auto;
}

.flagmatch-map-taskbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.25rem;
  margin-top: 0.5rem;
}

.flagmatch-map-task {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #475569;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  font-weight: 800;
  line-height: 1;
}

.flagmatch-map-progress {
  flex: 1;
  min-width: 0;
}

.flagmatch-map-progress__track {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #d4d4d4;
}

.flagmatch-map-progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #84cc16;
  transition: width 500ms ease-out;
}

.flagmatch-map-stat,
.flagmatch-map-combo {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

.flagmatch-map-stat,
.flagmatch-map-combo {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.flagmatch-map-stat--timer {
  width: 5rem;
  justify-content: flex-start;
  gap: 0.125rem;
  color: #65a30d;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.flagmatch-map-stat--timer svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
}

.flagmatch-map-stat--timer span {
  display: inline-block;
  width: 4rem;
  margin-left: 0.125rem;
  text-align: left;
}

@media (min-width: 640px) {
  .flagmatch-map-stat--timer {
    font-size: 1.125rem;
  }
}

.flagmatch-map-controlbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.5rem;
  margin-top: 0.05rem;
}

.flagmatch-map-combo {
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25rem;
  transition: color 160ms ease, transform 180ms ease;
  white-space: nowrap;
}

.flagmatch-map-combo.is-active {
  color: #65a30d;
  transform: translateY(-1px);
}

.flagmatch-map-combo.text-lime-600 {
  color: #65a30d;
  transform: translateY(-1px);
}

.flagmatch-map-combo svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
}

.flagmatch-map-combo__text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  height: 1.25rem;
  line-height: 1.25rem;
  white-space: nowrap;
}

.flagmatch-map-streak-counter {
  position: relative;
  display: inline-block;
  width: 2.2rem;
  height: 1.25rem;
  overflow: hidden;
  line-height: 1.25rem;
  vertical-align: top;
}

.flagmatch-map-streak-counter .number {
  display: block;
  height: 1.25rem;
  line-height: 1.25rem;
  text-align: left;
}

.flagmatch-map-clue {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(2.6rem, 4.8vw, 3.75rem);
  margin-top: 0;
  text-align: center;
}

.flagmatch-map-clue__content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 0.5rem;
  color: #475569;
}

.flagmatch-map-clue__flag {
  flex: 0 0 auto;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1;
}

.flagmatch-map-clue strong {
  color: currentColor;
  font-size: clamp(1.25rem, 2.45vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.flagmatch-map-icon-button,
.flagmatch-map-mute-button,
.flagmatch-map-hint,
.flagmatch-map-start__button {
  -webkit-tap-highlight-color: transparent;
}

.flagmatch-map-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border: 1px solid #d1d5db;
  border-bottom-width: 3px;
  border-radius: 8px;
  color: #64748b;
  background: #fff;
  transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease;
}

.flagmatch-map-icon-button:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
}

.flagmatch-map-icon-button:active:not(:disabled),
.flagmatch-map-hint:active:not(:disabled) {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

.flagmatch-map-icon-button:disabled,
.flagmatch-map-hint:disabled {
  opacity: 0.45;
  cursor: default;
}

.flagmatch-map-mute-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  color: #475569;
  background: transparent;
}

.flagmatch-map-mute-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

.flagmatch-map-mute-button:hover {
  color: currentColor;
}

.flagmatch-map-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.25rem;
  height: 2.5rem;
  margin-right: 2px;
  padding: 0 1.125rem;
  border: 1px solid #06b6d4;
  border-bottom-width: 4px;
  border-radius: 8px;
  color: #083344;
  background: #ecfeff;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 80ms ease, background-color 160ms ease, border-width 80ms ease;
}

.flagmatch-map-hint:hover:not(:disabled) {
  background: #cffafe;
}

.flagmatch-map-stage {
  position: relative;
  width: 100%;
  min-height: clamp(28rem, 58vw, 46rem);
  margin-top: 0.4rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(240, 249, 255, 0.92), rgba(248, 250, 252, 0.98)),
    #f8fafc;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.flagmatch-map-stage::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  pointer-events: none;
}

.flagmatch-map-svg,
.flagmatch-map-loading,
.flagmatch-map-start,
.flagmatch-map-result {
  position: absolute;
  inset: 0;
}

.flagmatch-map-svg {
  z-index: 2;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.flagmatch-map-svg.is-dragging {
  cursor: grabbing;
}

.flagmatch-map-country {
  cursor: pointer;
  outline: none;
  transition: fill 120ms ease, stroke 120ms ease, opacity 160ms ease;
}

.flagmatch-map-country:focus {
  outline: none;
}

.flagmatch-map-country:focus-visible {
  stroke: #0284c7;
  stroke-width: 1.15;
}

.flagmatch-map-country.is-matched {
  stroke: #65a30d;
}

.flagmatch-map-country.is-mismatched {
  stroke: #dc2626;
  animation: flagmatchMapWrong 280ms ease-out;
}

.flagmatch-map-country.is-hinting {
  stroke: #d97706;
  opacity: 0.86;
}

.flagmatch-map-loading,
.flagmatch-map-start,
.flagmatch-map-result {
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flagmatch-map-svg.hidden,
.flagmatch-map-loading.hidden,
.flagmatch-map-start.hidden,
.flagmatch-map-result.hidden {
  display: none;
}

.flagmatch-map-loading {
  color: #64748b;
  font-weight: 800;
  background: rgba(248, 250, 252, 0.84);
}

.flagmatch-map-start {
  color: #fff;
  background: rgba(15, 23, 42, 0.14);
}

.flagmatch-map-result {
  color: #fff;
  background: rgba(15, 23, 42, 0.54);
}

.flagmatch-map-result__panel {
  width: min(100%, 36rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(226, 232, 240, 0.24);
  border-radius: 8px;
  text-align: center;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
}

.flagmatch-map-start__band {
  width: 100%;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
  background: rgba(0, 0, 0, 0.75);
}

.flagmatch-map-start__band .number {
  color: #fff;
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.34);
}

.flagmatch-map-start__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  height: 2.75rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid #06b6d4;
  border-bottom-width: 4px;
  border-radius: 8px;
  color: #083344;
  background: #ecfeff;
  font-weight: 900;
  text-transform: uppercase;
  transform: translateY(0);
  transition: background-color 150ms ease, border-width 80ms ease, transform 80ms ease;
}

.flagmatch-map-start__button:hover:not(:disabled) {
  background: #cffafe;
}

.flagmatch-map-start__button:active:not(:disabled) {
  transform: translateY(1px);
  border-bottom-width: 2px;
  background: #cffafe;
}

.footer-masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer-masonry__item {
  min-width: 0;
}

@media (min-width: 1024px) {
  .footer-masonry {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-copyright {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

.footer-silin-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.56;
  transition: opacity 150ms ease;
}

.footer-silin-link:hover {
  opacity: 0.82;
}

.footer-silin-logo {
  width: 2.9rem;
  height: auto;
}

.flagmatch-engine [data-game-target="hintButton"],
.flagmatch-button,
.ad-free-cta,
.flagmatch-plan-card,
.flagmatch-start-button,
.flagmatch-map-start__button,
.flagmatch-map-icon-button,
.flagmatch-map-hint,
.flagmatch-map-zoom-controls button {
  transition: none !important;
}

.flagmatch-map-result__title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1;
}

.flagmatch-map-result dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.flagmatch-map-result dt {
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flagmatch-map-result dd {
  margin-top: 0.25rem;
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 900;
}

.flagmatch-map-result__restart {
  min-width: 8rem;
  height: 2.6rem;
  margin-top: 1.25rem;
  border-color: #06b6d4;
  color: #083344 !important;
  background: #ecfeff;
}

.flagmatch-map-zoom-controls {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.flagmatch-map-zoom-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-left: 1px solid rgba(148, 163, 184, 0.32);
  color: #334155;
  background: transparent;
  font-weight: 900;
}

.flagmatch-map-zoom-controls button:last-child {
  width: 2.75rem;
  font-size: 0.78rem;
}

.flagmatch-map-zoom-controls button:first-child {
  border-left: 0;
}

.flagmatch-map-zoom-controls button:hover {
  background: rgba(240, 249, 255, 0.9);
}

@keyframes flagmatchMapWrong {
  22% {
    transform: translateX(-2px);
  }
  48% {
    transform: translateX(2px);
  }
  74% {
    transform: translateX(-1px);
  }
}

@media (max-width: 760px) {
  .flagmatch-map-engine {
    width: 100vw;
    margin-left: 0;
    transform: none;
  }

  .flagmatch-map-hud,
  .flagmatch-map-controlbar {
    gap: 0.5rem;
  }

  .flagmatch-map-hud,
  .flagmatch-map-taskbar,
  .flagmatch-map-controlbar,
  .flagmatch-map-clue {
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-left: max(0.75rem, env(safe-area-inset-left));
  }

  .flagmatch-map-combo {
    font-size: 0.88rem;
  }

  .flagmatch-map-stat--timer {
    width: 5rem;
  }

  .flagmatch-map-stage {
    min-height: clamp(25rem, 92vw, 36rem);
    border-radius: 0;
  }

  .flagmatch-map-start__band {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .flagmatch-map-result dl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flagmatch-map-progress__bar,
  .flagmatch-map-country,
  .flagmatch-map-combo,
  .flagmatch-map-icon-button,
  .flagmatch-map-hint,
  .flagmatch-map-start__button {
    transition-duration: 1ms !important;
  }

  .flagmatch-map-country.is-mismatched {
    animation: none !important;
  }
}
