/* EG Matches 4.5.4 */

.eg-matches.vg-game {
  /* Diagnostic marker only; no visual effect. */
  --eg-css-build: 4.3.1;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
  /* Shared colors for effects */
  --vg-surface: #ffffff;
  --vg-lock-border: rgba(22, 163, 74, 0.85);
  --vg-lock-bg: rgba(22, 163, 74, 0.12);
  /* Two text sizes, two weights, one site-inherited family.
     Restore the original 14 CSS-pixel card size rather than tying it to the
     theme's root font size. Browser zoom still scales the whole widget.
     These scoped tokens can also be enlarged together by a user stylesheet. */
  --eg-text-body: 14px; /* cards, explanatory text, metadata and controls */
  --eg-text-small: var(--eg-text-body); /* retained compatibility token */
  --eg-text-heading: 16px; /* main instruction, panel titles and stat values */
  --eg-ink: #333333;
  --eg-ink-secondary: #555555;
  --eg-column-bg: #eeeeee;
  --eg-weight-regular: 400;
  --eg-weight-semibold: 600;
  --eg-leading: 1.5;
  --eg-card-leading: 1.3; /* original card line height: 18.2px at 14px */
  --eg-space-1: 0.25rem;
  --eg-space-2: 0.5rem;
  --eg-space-3: 0.75rem;
  --eg-space-4: 1rem;
  --eg-space-5: 1.5rem;
  color: var(--eg-ink);
  -webkit-text-fill-color: currentColor;
  font-family: inherit;
  font-size: var(--eg-text-body);
  font-weight: var(--eg-weight-regular);
  font-style: normal;
  line-height: var(--eg-leading);
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.vg-game * {
  box-sizing: border-box;
}

/* Scoped type roles: the page title and the rest of the site remain theme-owned.
   Native controls and card spans inherit the same site family; no new font loads.
   The class-qualified reset also beats common theme rules targeting card spans. */
.eg-matches.vg-game :is(button, select, textarea, option, table, th, td, label,
    span, div, a),
.eg-matches.vg-game [class] {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: normal;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.eg-matches.vg-game :is(.vg-mode-note, .vg-date, .vg-mode-btn,
    .vg-control-label, .vg-progress, .vg-timer, .vg-status, .vg-col-title,
    .vg-btn, .vg-stat-label, .vg-share-menu,
    .vg-share-copy, .vg-score-note, .vg-storage-note, .vg-day-notice,
    .vg-topic, .vg-level, .vg-finish-sub, .vg-copy-text) {
  font-size: var(--eg-text-body);
  line-height: var(--eg-leading);
}

.eg-matches.vg-game :is(.vg-instructions-text, .vg-finish-title,
    .vg-stats-title, .vg-stat-value) {
  font-size: var(--eg-text-heading);
  line-height: var(--eg-leading);
  font-weight: var(--eg-weight-semibold);
}

/* Words and definitions deliberately share size, weight, colour and leading. */
.eg-matches.vg-game :is(.vg-card, .vg-card-text) {
  font-size: var(--eg-text-body);
  line-height: var(--eg-card-leading);
  font-weight: var(--eg-weight-regular);
}

.eg-matches.vg-game :is(.vg-mode-btn, .vg-control-label,
    .vg-col-title, .vg-btn, .vg-stat-label, .vg-share-copy) {
  font-weight: var(--eg-weight-semibold);
}

.eg-matches.vg-game :is(.vg-mode-note, .vg-date, .vg-progress, .vg-timer,
    .vg-status, .vg-finish-sub, .vg-score-note, .vg-storage-note, .vg-day-notice,
    .vg-topic, .vg-level, .vg-copy-fallback label) {
  font-weight: var(--eg-weight-regular);
}

/* Use one primary and one secondary neutral for reading text. Action colours,
   selection/error/success card fills and social-service icons are separate. */
.eg-matches.vg-game :is(.vg-instructions-text, .vg-progress, .vg-status,
    .vg-topic, .vg-level, .vg-finish-title, .vg-finish-sub, .vg-stats-title,
    .vg-stat-value, .vg-control-label, .vg-storage-note,
    .vg-day-notice, .vg-copy-fallback) {
  color: var(--eg-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}

.eg-matches.vg-game :is(.vg-mode-note, .vg-date, .vg-timer,
    .vg-stat-label, .vg-score-note) {
  color: var(--eg-ink-secondary) !important;
  -webkit-text-fill-color: currentColor !important;
}

/* The tick is a decorative symbol, not another text role. */
.eg-matches.vg-game .vg-card.vg-is-locked.vg-type-def::after {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.vg-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--eg-space-4);
  padding: var(--eg-space-2) 0;
  flex-wrap: wrap;
}

.vg-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.vg-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: #ffffff;
  color: var(--eg-ink-secondary);
  cursor: pointer;
  padding: 0;
}

.vg-icon-btn:hover {
  background: rgba(75, 100, 173, 0.08);
  color: #4b64ad;
  border-color: rgba(75, 100, 173, 0.25);
}

.vg-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.vg-date {
  color: var(--eg-ink) !important;
  -webkit-text-fill-color: var(--eg-ink);
  white-space: nowrap;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* The date and history controls belong to Daily only. */
.vg-view-practice .vg-date {
  display: none !important;
}

.vg-instructions {
  display: flex;
  flex: 1 1 22rem;
  align-items: baseline;
  gap: var(--eg-space-1);
  flex-wrap: wrap;
  min-width: 0;
}

/* Mode helper text (clarifies Daily vs Practice). */
.vg-mode-note {
  color: var(--eg-ink-secondary) !important;
  -webkit-text-fill-color: var(--eg-ink-secondary) !important;
  flex-basis: 100%;
}

/* Mode switch (Daily / Practice) */
.vg-mode-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  height: 34px;
}

.vg-mode-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--eg-ink-secondary) !important;
  -webkit-text-fill-color: var(--eg-ink-secondary) !important;

  padding: 8px 12px;
  min-height: 40px;
  height: auto;

  cursor: pointer;
  user-select: none;
  transition: background-color 120ms ease, color 120ms ease;
}

.vg-mode-btn:hover {
  background: rgba(75, 100, 173, 0.08);
  color: #4b64ad !important;
  -webkit-text-fill-color: #4b64ad !important;
}

.vg-mode-btn.is-active {
  background: #4b64ad;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.vg-mode-btn.is-active:hover {
  background: #3f5698;
}

/* In Daily mode, hide Practice controls so the page clearly communicates “today's shared puzzle”. */
.vg-view-daily .vg-controls {
  display: none;
}

.vg-instructions-text {
  color: var(--eg-ink) !important;
}

.vg-progress {
  color: var(--eg-ink) !important;
}

.vg-controls {
  display: flex;
  gap: 12px;
  padding: 6px 0 10px 0;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
}

.vg-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}

.vg-control-label {
  color: var(--eg-ink-secondary) !important;
}

.vg-topic, .vg-level {
  width: 100%;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  background: #ffffff;
  color: var(--eg-ink) !important;
  -webkit-text-fill-color: var(--eg-ink);

  height: auto;
}

.vg-status {
  padding: 0 0 10px 0;
  color: var(--eg-ink);

  min-height: 18px;
}

/* Board uses rows (each row has a word + definition). */
.vg-board {
  display: flex;
  flex-direction: column;
  gap: var(--eg-space-2);
  padding: 0 0 var(--eg-space-3);
}

.vg-board-head {
  display: grid;
  /* 3 columns: words | connector gap | definitions
     Using a fixed middle column keeps the layout stable and gives us a
     clean place to draw the “matched” connector without intruding into text.
  */
  grid-template-columns: 0.85fr 10px 1.15fr;
  gap: 0;
}

.vg-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vg-row {
  display: grid;
  grid-template-columns: 0.85fr 10px 1.15fr;
  gap: 0;
  position: relative;
  overflow: visible;
}

.vg-row .vg-card {
  z-index: 1;
}

/* Compact column labels: the same small/semibold text role, not buttons.
   Scope the paint to the widget so inherited theme text-fill cannot darken it.
   Grid stretch keeps both bars equally tall when the longer label wraps. */
.eg-matches.vg-game .vg-board-head > .vg-col-title {
  display: flex;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  margin: 0;
  padding: var(--eg-space-2) 12px;
  border: 1px solid #d6d6d6;
  border-bottom: 2px solid #cccccc;
  border-radius: 6px;
  background: var(--eg-column-bg) !important;
  color: var(--eg-ink) !important;
  -webkit-text-fill-color: var(--eg-ink) !important;
  font-family: inherit;
  font-size: var(--eg-text-small);
  font-weight: var(--eg-weight-semibold);
  font-style: normal;
  line-height: var(--eg-leading);
  text-align: left;
  text-transform: none;
  text-shadow: none;
  box-shadow: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: default;
}

.vg-card {
  position: relative;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  background: #ffffff;
  color: var(--eg-ink) !important;
  -webkit-text-fill-color: var(--eg-ink) !important;
  text-transform: none !important;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: transform 80ms ease, box-shadow 80ms ease;
}

.vg-card:focus {
  outline: none;
}

.eg-matches.vg-game .vg-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.10) !important;
}

.eg-matches.vg-game .vg-card .vg-card-text {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  text-transform: none !important;
  position: relative;
  z-index: 1;

  word-break: break-word;
}

.eg-matches.vg-game .vg-card.vg-is-disabled {
  opacity: 0.75 !important;
  cursor: default;
}

/* Disabled/locked cards should not lift on hover, but we still allow animations. */
.eg-matches.vg-game .vg-card.vg-is-disabled:hover {
  transform: none;
  box-shadow: none;
}

.eg-matches.vg-game .vg-card.vg-is-selected {
  border-color: rgba(37, 99, 235, 0.9) !important;
  background: rgba(59, 130, 246, 0.10) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.eg-matches.vg-game .vg-card.vg-is-locked {
  border-color: var(--vg-lock-border) !important;
  background: var(--vg-lock-bg) !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12) !important;
  cursor: default;
}

/* Only show the checkmark on the RIGHT (definition) card. */
.eg-matches.vg-game .vg-card.vg-is-locked.vg-type-def {
  /* Keep text clear of the checkmark */
  padding-right: 38px;
}

.vg-card.vg-is-locked.vg-type-def::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);

  color: rgba(22, 163, 74, 0.30);
  pointer-events: none;
  z-index: 0;
}

/* Matched-connector (simple line)
   - A thin line appears ONLY when a row is locked (matched).
   - It sits entirely in the middle gap column, so it never overlaps text.
   - Symmetrical and minimal.
*/

.vg-col-spacer {
  /* Placeholder column for header alignment */
}

.vg-join {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.vg-join::before {
  content: "";
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.55);
  opacity: 0;
  transform: scaleX(0.25);
  transform-origin: center;
}

.vg-row-locked .vg-join::before {
  opacity: 1;
  transform: scaleX(1);
}

.eg-matches.vg-game .vg-card.vg-is-wrong {
  border-color: rgba(220, 38, 38, 0.9) !important;
  background: rgba(220, 38, 38, 0.10) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
  animation: vg-shake 320ms ease-in-out;
}

@keyframes vg-shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-4px); }
  40%  { transform: translateX(4px); }
  60%  { transform: translateX(-3px); }
  80%  { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.vg-btn {
  appearance: none;
  border: 0;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;

  text-transform: none !important;
  background-color: #4b64ad !important; /* slightly toned-down blue */
  box-shadow: none !important;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 120ms ease, opacity 120ms ease;
  height: 40px;
  white-space: nowrap;
}

.vg-btn:hover {
  background-color: #3f5698 !important; /* darker blue */
  box-shadow: none !important;
  transform: none !important;
}

.vg-btn:active {
  background-color: #394e89 !important;
  transform: none !important;
}

.vg-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.vg-finish {
  padding: 10px 0;
}

.vg-finish-box {
  border-radius: 14px;
  border: 1px solid rgba(22, 163, 74, 0.28);
  background: rgba(22, 163, 74, 0.08);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.vg-finish-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Secondary button (Share). */
.vg-btn.vg-btn-secondary {
  background: #ffffff !important;
  color: #4b64ad !important;
  -webkit-text-fill-color: #4b64ad !important;
  border: 1px solid rgba(75, 100, 173, 0.45) !important;
  box-shadow: none;
}

.vg-btn.vg-btn-secondary:hover {
  background: rgba(75, 100, 173, 0.08) !important;
  box-shadow: none !important;
}

/* Share menu */
.vg-share {
  position: relative;
  display: inline-flex;
}

.vg-share-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.16);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

/* Invisible hover bridge so the menu doesn't disappear when moving the mouse from the button to the icons. */
.vg-share-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.vg-share:hover .vg-share-menu,
.vg-share.vg-share-open .vg-share-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.vg-share-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #ffffff;
  text-decoration: none;
  color: var(--eg-ink) !important;
  -webkit-text-fill-color: var(--eg-ink) !important;
}

.vg-share-link:hover {
  background: rgba(75, 100, 173, 0.10);
  border-color: rgba(75, 100, 173, 0.30);
  }

.vg-share-link svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

/* Brand colors (icons use Bootstrap Icons SVG shapes; brands are trademarks of their owners). */
.eg-matches.vg-game .vg-share-menu > .vg-share-fb { color: #1877F2 !important; -webkit-text-fill-color: #1877F2 !important; }
.eg-matches.vg-game .vg-share-menu > .vg-share-x { color: #111827 !important; -webkit-text-fill-color: #111827 !important; }
.eg-matches.vg-game .vg-share-menu > .vg-share-reddit { color: #FF4500 !important; -webkit-text-fill-color: #FF4500 !important; }
.eg-matches.vg-game .vg-share-menu > .vg-share-linkedin { color: #0A66C2 !important; -webkit-text-fill-color: #0A66C2 !important; }
.eg-matches.vg-game .vg-share-menu > .vg-share-email { color: #4b64ad !important; -webkit-text-fill-color: #4b64ad !important; }

.vg-finish-title {
  color: var(--eg-ink) !important;
}

/* Confetti burst (shown when all 10 matches are completed). */
.vg-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 80;
}

.vg-confetti-piece {
  position: absolute;
  top: -14px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.95;
  animation: vg-confetti-fall var(--vg-dur, 1200ms) ease-out forwards;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

@keyframes vg-confetti-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(var(--vg-x, 0px), 120vh, 0) rotate(var(--vg-rot, 540deg));
    opacity: 0;
  }
}

/* Stats panel */
.vg-stats-panel {
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  margin: 6px 0 10px 0;
}

.vg-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.vg-stats-title {
  color: var(--eg-ink);
}

.vg-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.vg-stat {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  padding: 10px;
  background: rgba(75, 100, 173, 0.04);
}

.vg-stat-label {
  color: var(--eg-ink-secondary);
  margin-bottom: 2px;
}

.vg-stat-value {
  color: var(--eg-ink);
}

.vg-stats-foot {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.vg-share-copy {
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #ffffff;
  color: #4b64ad;

  cursor: pointer;
}

.vg-share-copy svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.vg-share-copy:hover {
  background: rgba(75, 100, 173, 0.10);
  border-color: rgba(75, 100, 173, 0.30);
}

@media (prefers-reduced-motion: reduce) {
  .vg-card,
  .vg-share-menu,
  .vg-btn,
  .vg-confetti-piece {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .vg-topbar {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 0 8px 0;
  }
  .vg-instructions {
    flex: initial;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .vg-date {
  color: var(--eg-ink) !important;
  -webkit-text-fill-color: var(--eg-ink);
  white-space: nowrap;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
  .vg-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 6px 0 10px 0;
  }
  .vg-control {
    min-width: 0;
    width: 100%;
  }
  .vg-topic, .vg-level {
    max-width: none;
  }
  .vg-btn.vg-new-round {
    width: 100%;
  }
  .vg-finish-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .vg-topbar-right {
    justify-content: flex-start;
  }
  .vg-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 4.0 accessibility, native-button and narrow-screen fixes. The vg-* classes
   remain intentional compatibility hooks for existing site customizations. */
.eg-matches [hidden] { display: none !important; }
.eg-matches.vg-game .vg-card {
  /* Original card-state fills/borders, with the approved neutral reading text.
     Do not inherit a theme's button or disabled treatment. */
  background: #ffffff !important; border: 1px solid rgba(17, 24, 39, 0.18) !important;
  color: var(--eg-ink) !important; -webkit-text-fill-color: var(--eg-ink) !important;
  opacity: 1 !important; filter: none !important; text-shadow: none !important;
  box-shadow: none !important; border-radius: 14px !important; padding: 10px 12px;
  appearance: none; -webkit-appearance: none; display: flex; align-items: center;
  width: 100%; min-width: 0; margin: 0; text-align: left; 

  min-height: 48px; height: auto; white-space: normal;
}
.eg-matches .vg-card-text { display: block; overflow-wrap: anywhere; }
.eg-matches :is(button, a, select, textarea):focus-visible {
  outline: 3px solid #1d4ed8 !important; outline-offset: 3px !important;
}
.eg-matches .vg-topbar-right { flex-wrap: wrap; flex-shrink: 0; max-width: 100%; }
.eg-matches .vg-controls { align-items: flex-end; }
.eg-matches .vg-control { min-width: 0; max-width: 100%; }
.eg-matches .vg-topic, .eg-matches .vg-level {  min-height: 42px; }
.eg-matches.vg-game .vg-topic, .eg-matches.vg-game .vg-topic option { text-transform: none !important; }
.eg-matches .vg-view-practice { width: 100%; }
.eg-matches.vg-view-practice :is(.vg-stats-btn, .vg-archive-btn) { display: none !important; }
.eg-matches .vg-icon-btn { flex-shrink: 0; width: 40px; height: 40px; }
.eg-matches .vg-btn { min-height: 42px; height: auto; max-width: 100%; white-space: normal; }
.eg-matches .vg-mode-switch { height: auto; min-height: 40px; align-items: stretch; max-width: 100%; }
.eg-matches .vg-mode-btn { height: auto; min-height: 40px; text-transform: none; margin: 0; }
/* Deliberate section spacing, independent of the hidden live-status node. */
.eg-matches.vg-game .vg-round-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--eg-space-3);
  margin: var(--eg-space-3) 0 var(--eg-space-5);
}
.eg-matches .vg-progress { color: var(--eg-ink); }
.eg-matches .vg-timer { color: var(--eg-ink-secondary); }
/* The initial instruction can wrap in narrow embeds; keep the timer intact. */
.eg-matches .vg-progress { min-width: 0; }
.eg-matches .vg-timer { flex-shrink: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eg-matches .vg-status { min-height: 1.5em; padding: 0; margin: 0 0 var(--eg-space-4); color: var(--eg-ink); }
/* Keep routine feedback in the accessibility tree, without a second visible row
   or leftover spacing. Do not use display:none, hidden, or aria-hidden here. */
.eg-matches .vg-status.vg-status-sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  min-width: 0 !important; min-height: 0 !important;
  padding: 0 !important; margin: -1px !important; border: 0 !important;
  overflow: hidden !important; white-space: nowrap !important;
  clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important;
}
.eg-matches .vg-storage-note, .eg-matches .vg-day-notice {
  padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px;
  margin: 10px 0; background: #f9fafb; color: var(--eg-ink);
}
.eg-matches .vg-day-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.eg-matches .vg-retry { margin-bottom: 12px; }
.eg-matches .vg-finish-sub { color: var(--eg-ink); margin-top: 4px; }
/* Six controls, one row. JS compacts Copy to its labelled icon only when needed,
   and clamps the panel to the game/viewport rather than guessing its width. */
.eg-matches.vg-game .vg-share { flex: 0 0 auto; z-index: 60; }
.eg-matches.vg-game .vg-share-menu {
  --eg-share-size: 40px;
  --eg-share-gap: 8px;
  left: 0; right: auto; top: calc(100% + 8px);
  width: max-content; min-width: 0; max-width: none; margin: 0;
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center;
  gap: var(--eg-share-gap); padding: 8px;
     white-space: nowrap;
  opacity: 1; pointer-events: auto; transform: none;
}
.eg-matches .vg-share-menu::before { display: none; }
.eg-matches.vg-game .vg-share-menu > :is(a, button) {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  width: var(--eg-share-size); min-width: var(--eg-share-size); max-width: none;
  height: var(--eg-share-size); min-height: var(--eg-share-size); max-height: none;
  margin: 0 !important; padding: 0 !important;
  border: 1px solid rgba(17, 24, 39, 0.12) !important; border-radius: 999px;
  background: #ffffff !important; box-shadow: none !important;
  opacity: 1 !important; filter: none !important; text-shadow: none !important;

  white-space: nowrap; text-transform: none !important; text-decoration: none !important;
  cursor: pointer; transform: none !important;
}
.eg-matches.vg-game .vg-share-menu > .vg-share-copy {
  width: auto; padding: 0 10px !important; gap: 6px;
  color: #4b64ad !important; -webkit-text-fill-color: #4b64ad !important;
}
.eg-matches.vg-game .vg-share-menu > :is(a, button):hover {
  background: rgba(75, 100, 173, 0.10) !important;
  border-color: rgba(75, 100, 173, 0.30) !important;
}
.eg-matches.vg-game .vg-share-menu > button:disabled { cursor: wait; }
.eg-matches.vg-game .vg-share-menu svg {
  flex: 0 0 16px; width: 16px; height: 16px; margin: 0; display: block; fill: currentColor;
}
.eg-matches.vg-game .vg-share-menu.vg-share-compact { --eg-share-gap: 4px; }
.eg-matches.vg-game .vg-share-compact > .vg-share-copy {
  width: var(--eg-share-size); padding: 0 !important; gap: 0;
}
.eg-matches .vg-share-compact .vg-share-copy span { display: none; }
.eg-matches .vg-copy-fallback { margin: 12px 0; }
.eg-matches .vg-copy-text { width: 100%; margin-top: 6px; font: inherit; }
@media (max-width: 720px) {
  .eg-matches .vg-topbar-right { width: 100%; gap: 8px; }
  .eg-matches.vg-game .vg-round-meta { margin-bottom: var(--eg-space-4); }
  .eg-matches .vg-date { margin-right: auto; }
  .eg-matches .vg-control { width: 100%; }
  .eg-matches .vg-row, .eg-matches .vg-board-head { grid-template-columns: minmax(0, .85fr) 8px minmax(0, 1.15fr); }
  .eg-matches.vg-game .vg-board-head > .vg-col-title {
    padding-inline: 8px;
  }
  .eg-matches.vg-game .vg-card { padding: 10px 8px; }
  .eg-matches.vg-game .vg-card.vg-is-locked.vg-type-def { padding-right: 22px; }
  .eg-matches.vg-game .vg-card.vg-is-locked.vg-type-def::after { right: 5px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .eg-matches *, .eg-matches *::before, .eg-matches *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}

.eg-matches .vg-score-note { margin-top: 6px; color: var(--eg-ink-secondary); }

/* Round lifecycle controls use the existing two-size typography and button roles. */
.eg-matches.vg-game .vg-round-meta {
  align-items: center;
  flex-wrap: wrap;
  row-gap: var(--eg-space-2);
}
.eg-matches.vg-game .vg-round-actions {
  /* Reserve the existing button height so the first selection does not move the board. */
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--eg-space-2);
  margin-left: auto;
  min-width: 0;
  max-width: 100%;
}
.eg-matches.vg-game .vg-round-actions .vg-timer { margin-right: var(--eg-space-1); }
.eg-matches.vg-game .vg-round-actions .vg-btn { margin: 0; }
.eg-matches.vg-game .vg-round-secondary {
  color: var(--eg-ink-secondary) !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: #d6d6d6;
  font-weight: var(--eg-weight-regular);
  background: #ffffff;
}
.eg-matches.vg-game .vg-round-secondary:hover { background: #f5f5f5; }
.eg-matches.vg-game .vg-board-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 144px;
  padding: var(--eg-space-5) var(--eg-space-4);
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  background: #fafafa;
  color: var(--eg-ink-secondary);
  -webkit-text-fill-color: currentColor;
  text-align: center;
}
.eg-matches.vg-game .vg-clear-note {
  flex: 1 1 20rem;
  color: var(--eg-ink-secondary);
  -webkit-text-fill-color: currentColor;
}
.eg-matches.vg-game .vg-stats-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--eg-space-3);
}
@media (max-width: 720px) {
  .eg-matches.vg-game .vg-round-actions { width: 100%; justify-content: flex-start; }
  .eg-matches.vg-game .vg-round-actions .vg-timer { margin-right: auto; }
  .eg-matches.vg-game .vg-round-secondary { padding-inline: 10px; }
}

/* 4.1.3: compact, non-modal help. No card/type/column-label changes. */
.eg-matches.vg-game .vg-intro-details {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--eg-space-3);
  flex-basis: 100%; min-width: 0;
}
.eg-matches.vg-game .vg-intro-details .vg-mode-note { flex-basis: auto; }
.eg-matches.vg-game .vg-help-toggle {
  appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center;
  gap: 8px; min-height: 32px; margin: 0; padding: 0; max-width: 100%;
  border: 0; border-radius: 2px; background: transparent !important; box-shadow: none !important;
  color: var(--eg-ink-secondary) !important; -webkit-text-fill-color: currentColor !important;
  font-size: var(--eg-text-body); font-weight: var(--eg-weight-regular); line-height: var(--eg-leading);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.eg-matches.vg-game .vg-help-toggle:hover { color: var(--eg-ink) !important; }
.eg-matches.vg-game .vg-help-chevron {
  width: 7px; height: 7px; flex: 0 0 7px; margin-top: -3px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.eg-matches.vg-game .vg-help-toggle[aria-expanded="true"] .vg-help-chevron {
  transform: rotate(225deg); margin-top: 3px;
}
.eg-matches.vg-game .vg-help-panel {
  display: flex; align-items: center; gap: var(--eg-space-3); flex-wrap: wrap;
  margin: 0 0 var(--eg-space-3); padding: var(--eg-space-3);
  border: 1px solid #d6d6d6; border-radius: 6px; background: #fafafa;
  color: var(--eg-ink); -webkit-text-fill-color: currentColor;
  font-size: var(--eg-text-body); line-height: var(--eg-leading);
}
/* Keep the mode comparison scannable, using the existing body/semibold roles. */
.eg-matches.vg-game .vg-help-copy {
  flex: 1 1 22rem; min-width: 0;
  display: grid; gap: var(--eg-space-2);
}
.eg-matches.vg-game .vg-help-line { margin: 0; padding: 0; }
.eg-matches.vg-game .vg-help-label { font-weight: var(--eg-weight-semibold); }
.eg-matches.vg-game .vg-help-dismiss { flex: 0 0 auto; margin: 0; }

/* The initial cue and tools occupy the same grid slot: no board jump on first pick.
   Visibility + inert keeps the reserved tools out of the focus/accessibility tree. */
.eg-matches.vg-game .vg-round-guidance {
  display: grid; grid-template-columns: minmax(0, 1fr);
  min-width: 0; max-width: 100%; flex: 1 1 auto;
}
.eg-matches.vg-game :is(.vg-timer-cue, .vg-round-toolset) { grid-area: 1 / 1; min-width: 0; }
.eg-matches.vg-game .vg-timer-cue {
  align-self: center; color: var(--eg-ink-secondary); -webkit-text-fill-color: currentColor;
  font-size: var(--eg-text-body); font-weight: var(--eg-weight-regular); line-height: var(--eg-leading);
}
.eg-matches.vg-game .vg-timer-cue.vg-cue-reserved {
  visibility: hidden;
  pointer-events: none;
}
.eg-matches.vg-game .vg-tools-pending { visibility: hidden; pointer-events: none; }
.eg-matches.vg-game .vg-tools-pending * { visibility: hidden !important; }
.eg-matches.vg-game .vg-round-buttons {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--eg-space-2);
}
/* Completed-result actions: keep the explanation with its own button, not
   beneath Pause or across the whole board. Reuse existing type/button roles. */
.eg-matches.vg-game .vg-finish-actions {
  align-items: flex-start;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}
.eg-matches.vg-game .vg-finish-practice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--eg-space-1);
  flex: 0 1 15em;
  min-width: 0;
  max-width: 100%;
}
.eg-matches.vg-game .vg-finish-practice .vg-replay-round { margin: 0; }
.eg-matches.vg-game .vg-round-actions { flex-wrap: nowrap; }
.eg-matches.vg-game .vg-round-actions .vg-back-daily { flex: 0 1 auto; }
.eg-matches.vg-game .vg-timer { border-radius: 4px; }
.eg-matches.vg-game[data-clock-state="running"] .vg-timer {
  color: var(--eg-ink) !important; -webkit-text-fill-color: currentColor !important;
}
@media (prefers-reduced-motion: no-preference) {
  .eg-matches.vg-game .vg-timer-activated { animation: eg-timer-activate 500ms ease-out; }
}
@media (max-width: 720px) {
  .eg-matches.vg-game .vg-round-actions .vg-timer { margin-right: var(--eg-space-1); }
  .eg-matches.vg-game .vg-round-guidance { flex-basis: 0; }
}


/* 4.2.0: clearer game header, Daily-only progress and Daily archive. */
.eg-matches.vg-game .vg-topbar {
  margin-bottom: var(--eg-space-3);
  padding: var(--eg-space-4);
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  background: #f7f8fa;
}
.eg-matches.vg-game .vg-help-panel {
  border-color: #dbe3ee;
  border-left: 3px solid #9eafd4;
  background: #f7f9fc;
  padding-left: calc(var(--eg-space-3) - 2px);
}
.eg-matches.vg-game .vg-round-meta {
  padding: var(--eg-space-3) var(--eg-space-4);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fbfbfc;
}
.eg-matches.vg-game .vg-stats-panel,
.eg-matches.vg-game .vg-archive-panel {
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #ffffff;
  padding: var(--eg-space-4);
  margin: 0 0 var(--eg-space-4);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.eg-matches.vg-game :is(.vg-stats-head, .vg-archive-head) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--eg-space-3);
  margin-bottom: var(--eg-space-4);
}
.eg-matches.vg-game :is(.vg-stats-title, .vg-archive-title, .vg-history-title) {
  color: var(--eg-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: var(--eg-text-heading);
  font-weight: var(--eg-weight-semibold);
  line-height: var(--eg-leading);
}
.eg-matches.vg-game :is(.vg-stats-subtitle, .vg-archive-subtitle, .vg-history-caption,
  .vg-archive-result, .vg-history-empty, .vg-archive-loading) {
  color: var(--eg-ink-secondary) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: var(--eg-text-body);
  font-weight: var(--eg-weight-regular);
  line-height: var(--eg-leading);
}
.eg-matches.vg-game .vg-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4.8.0: the four stats in one line (no streak); two by two on a phone */
  gap: var(--eg-space-2);
  margin-bottom: var(--eg-space-4);
}
.eg-matches.vg-game .vg-stat {
  border-color: #e1e5ea;
  background: #f7f8fa;
  padding: var(--eg-space-3);
}
.eg-matches.vg-game .vg-history {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: var(--eg-space-4) 0;
  margin-bottom: var(--eg-space-4);
}
.eg-matches.vg-game .vg-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--eg-space-3);
  margin-bottom: var(--eg-space-3);
}
.eg-matches.vg-game .vg-daily-chart {
  height: 176px;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  padding: 8px 4px 0;
  border-radius: 8px;
  background:
    linear-gradient(to top, transparent 24%, #eef0f3 25%, transparent 26%, transparent 49%, #eef0f3 50%, transparent 51%, transparent 74%, #eef0f3 75%, transparent 76%);
}
.eg-matches.vg-game .vg-chart-item {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 3px;
  align-items: end;
  text-align: center;
}
.eg-matches.vg-game .vg-chart-bar {
  width: min(22px, 85%);
  height: 100%;
  justify-self: center;
  display: flex;
  align-items: flex-end;
  border-radius: 5px 5px 2px 2px;
  background: #edf0f6;
  overflow: hidden;
}
.eg-matches.vg-game .vg-chart-fill {
  width: 100%;
  min-height: 4px;
  border-radius: 5px 5px 2px 2px;
  background: #4b64ad;
}
.eg-matches.vg-game .vg-chart-score {
  color: var(--eg-ink) !important;
  font-size: var(--eg-text-body);
  line-height: var(--eg-leading);
  font-weight: var(--eg-weight-semibold);
}
.eg-matches.vg-game .vg-chart-day {
  color: var(--eg-ink-secondary) !important;
  font-size: var(--eg-text-body);
  line-height: var(--eg-leading);
}
.eg-matches.vg-game .vg-archive-list {
  display: grid;
  gap: var(--eg-space-2);
  max-height: 420px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-gutter: stable;
}
.eg-matches.vg-game .vg-archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--eg-space-3);
  padding: var(--eg-space-3);
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  background: #fafbfc;
}
.eg-matches.vg-game .vg-archive-copy { min-width: 0; }
.eg-matches.vg-game .vg-archive-date {
  color: var(--eg-ink) !important;
  font-size: var(--eg-text-body);
  font-weight: var(--eg-weight-semibold);
  line-height: var(--eg-leading);
}
.eg-matches.vg-game .vg-archive-play { flex: 0 0 auto; margin: 0; }
.eg-matches.vg-game .vg-stats-foot { justify-content: space-between; }
.eg-matches.vg-game .vg-clear-note { max-width: 38rem; }
@media (max-width: 720px) {
  .eg-matches.vg-game .vg-topbar { padding: var(--eg-space-3); }
  .eg-matches.vg-game .vg-round-meta { padding: var(--eg-space-3); }
  .eg-matches.vg-game .vg-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eg-matches.vg-game .vg-daily-chart { gap: 3px; height: 154px; overflow-x: auto; }
  .eg-matches.vg-game .vg-archive-row { align-items: flex-start; }
}

/* 4.3.1 — EnglishGrammar visual system.
   Presentation only: no new fonts, typography roles, game states or storage keys.
   Component scoping prevents these rules from restyling site navigation/widgets. */
.eg-matches.vg-game {
  --eg-accent: var(--eg-moss, #446931);
  --eg-accent-strong: var(--eg-moss-dark, #355d20);
  --eg-accent-soft: var(--eg-moss-soft, #edf3e7);
  --eg-border: var(--eg-rule, #e5e2d9);
  --eg-border-strong: var(--eg-rule-strong, #cfcbbf);
  --eg-surface: var(--eg-tint, #f2f7ec);
  --eg-column-bg: var(--eg-paper, #f6f3ea);
  --vg-focus-color: var(--eg-pine-deep, #355d20);
  --vg-help-paper: var(--eg-paper, #f6f3ea);
  --vg-leaf: var(--eg-leaf, #afca00);
  --vg-radius: var(--eg-radius, 6px);
  --vg-radius-panel: var(--eg-radius-large, 12px);
  --vg-lock-border: #6f9255;
  --vg-lock-bg: #edf5e7;
  container: eg-matches / inline-size;
  isolation: isolate;
}

/* One instruction/control surface, rather than several blue-grey boxes. */
.eg-matches.vg-game .vg-command-center {
  position: relative;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid var(--eg-border);
  border-top: 3px solid var(--eg-accent);
  border-radius: var(--vg-radius-panel);
  background: var(--eg-page, #ffffff);
  box-shadow: 0 1px 3px rgba(31, 44, 30, 0.04);
}
.eg-matches.vg-game .vg-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.eg-matches.vg-game .vg-instructions {
  flex: 1 1 100%;
  gap: 2px;
}
.eg-matches.vg-game .vg-instructions-text { max-width: 100%; }
.eg-matches.vg-game .vg-topbar-right {
  width: 100%;
  min-width: 0;
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--eg-border);
}
.eg-matches.vg-game .vg-date { margin-right: auto; }
.eg-matches.vg-game .vg-mode-switch {
  padding: 3px;
  gap: 2px;
  min-height: 44px;
  border: 1px solid var(--eg-border-strong);
  border-radius: calc(var(--vg-radius) + 3px);
  background: var(--vg-help-paper);
  overflow: visible;
}
.eg-matches.vg-game .vg-mode-btn {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: var(--vg-radius);
  box-shadow: none;
}
.eg-matches.vg-game .vg-mode-btn:hover {
  background: var(--eg-accent-soft);
  color: var(--eg-accent-strong) !important;
  -webkit-text-fill-color: currentColor !important;
}
.eg-matches.vg-game .vg-mode-btn.is-active {
  background: var(--eg-accent) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(35, 59, 23, 0.15);
}
.eg-matches.vg-game .vg-mode-btn.is-active:hover { background: var(--eg-accent-strong) !important; }
.eg-matches.vg-game .vg-icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--eg-border-strong);
  border-radius: var(--vg-radius);
  background: #ffffff;
  color: var(--eg-accent-strong) !important;
  -webkit-text-fill-color: currentColor !important;
  box-shadow: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.eg-matches.vg-game .vg-icon-btn svg { width: 18px; height: 18px; }
.eg-matches.vg-game .vg-icon-btn:hover,
.eg-matches.vg-game .vg-icon-btn[aria-expanded="true"] {
  background: var(--eg-accent-soft);
  border-color: var(--eg-accent);
}
.eg-matches.vg-game .vg-btn {
  border: 1px solid var(--eg-accent) !important;
  border-radius: var(--vg-radius);
  background: var(--eg-accent) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  min-height: 42px;
  padding: 8px 14px;
  text-align: center;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.eg-matches.vg-game .vg-btn:hover { background: var(--eg-accent-strong) !important; }
.eg-matches.vg-game .vg-btn:active { background: #29441c !important; }
.eg-matches.vg-game .vg-btn.vg-btn-secondary {
  border-color: var(--eg-border-strong) !important;
  background: #ffffff !important;
  color: var(--eg-accent-strong) !important;
  -webkit-text-fill-color: currentColor !important;
}
.eg-matches.vg-game .vg-btn.vg-btn-secondary:hover {
  border-color: var(--eg-accent) !important;
  background: var(--eg-accent-soft) !important;
}
.eg-matches.vg-game .vg-btn.vg-reset-stats {
  background: #ffffff !important;
  color: #555555 !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: #cbd1c6 !important;
  font-weight: 400;
}
.eg-matches.vg-game :is(button, a, select, textarea):focus-visible {
  outline: 3px solid var(--vg-focus-color) !important;
  outline-offset: 3px !important;
}

/* Theme-aligned, accessible guide. The existing disclosure is the panel header,
   not a second copy of "How to play". No script or stored preference changes. */
.eg-matches.vg-game .vg-help-disclosure { margin-top: 14px; min-width: 0; }
.eg-matches.vg-game .vg-help-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--eg-border-strong);
  border-radius: var(--vg-radius);
  background: var(--vg-help-paper) !important;
  color: var(--eg-accent-strong) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: var(--eg-text-body);
  font-weight: var(--eg-weight-semibold);
  text-align: left;
  text-decoration: none;
  box-shadow: none !important;
  isolation: isolate;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.eg-matches.vg-game .vg-help-toggle:hover {
  background: var(--eg-accent-soft) !important;
  color: var(--eg-accent-strong) !important;
  border-color: var(--eg-accent);
}
.eg-matches.vg-game .vg-help-toggle[aria-expanded="true"] {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  border: 1px solid var(--eg-accent);
  border-bottom: 2px solid var(--vg-leaf);
  border-radius: var(--vg-radius) var(--vg-radius) 0 0;
  background: var(--eg-accent) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.eg-matches.vg-game .vg-help-toggle[aria-expanded="true"]::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--eg-pages-light, none) right -8px center / 120px no-repeat;
  pointer-events: none;
  content: "";
}
.eg-matches.vg-game .vg-help-toggle[aria-expanded="true"]:hover { background-color: var(--eg-accent-strong) !important; }
.eg-matches.vg-game .vg-help-chevron { margin-left: auto; }
.eg-matches.vg-game :is(.vg-help-icon, .vg-help-mode-icon, .vg-help-check) {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eg-matches.vg-game .vg-help-panel {
  display: block;
  margin: 0;
  padding: 0;
  border: 1px solid var(--eg-border-strong);
  border-top: 0;
  border-radius: 0 0 var(--vg-radius) var(--vg-radius);
  background: var(--vg-help-paper);
  color: var(--eg-ink);
  box-shadow: none;
}
.eg-matches.vg-game .vg-help-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  padding: 16px;
}
.eg-matches.vg-game .vg-help-mode { min-width: 0; }
.eg-matches.vg-game .vg-help-mode + .vg-help-mode {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--eg-border-strong);
}
.eg-matches.vg-game .vg-help-label {
  color: var(--eg-accent-strong);
  font-size: var(--eg-text-body);
  font-weight: var(--eg-weight-semibold);
}
.eg-matches.vg-game .vg-help-mode-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
}
.eg-matches.vg-game .vg-help-emphasis { font-weight: var(--eg-weight-semibold); }
.eg-matches.vg-game .vg-help-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 16px;
  padding: 12px 0;
  border-top: 1px solid var(--eg-border-strong);
}
.eg-matches.vg-game .vg-help-shared { flex: 1 1 18rem; min-width: 0; }
.eg-matches.vg-game .vg-btn.vg-help-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--vg-radius);
}

.eg-matches.vg-game .vg-controls {
  padding: 14px 0 0;
  gap: 12px;
}
.eg-matches.vg-game .vg-control { flex: 1 1 12rem; }
.eg-matches.vg-game .vg-topic,
.eg-matches.vg-game .vg-level {
  max-width: 100%;
  border: 1px solid var(--eg-border-strong);
  border-radius: 8px;
  min-height: 42px;
  box-shadow: none;
}

/* Keep the initial cue and Pause in their shared reserved slot. */
.eg-matches.vg-game .vg-round-meta {
  margin: 0 0 20px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--eg-surface);
}
.eg-matches.vg-game .vg-round-actions { gap: 8px; }
.eg-matches.vg-game .vg-timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 3.6em;
  padding: 4px 0;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.eg-matches.vg-game .vg-timer::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border: 1.5px solid #758568;
  border-radius: 50%;
  background: transparent;
}
.eg-matches.vg-game[data-clock-state="running"] .vg-timer::before {
  background: var(--eg-accent);
  border-color: var(--eg-accent);
}
.eg-matches.vg-game .vg-status:not(.vg-status-sr-only) {
  padding: 8px 12px;
  border-left: 3px solid #b08b38;
  border-radius: 0 6px 6px 0;
  background: #fff8e8;
}
@keyframes eg-timer-activate {
  from { background-color: #dcebcf; }
  to { background-color: transparent; }
}

/* Quiet column labels and white cards remain the focus, not coloured banners. */
.eg-matches.vg-game .vg-board { gap: 10px; }
.eg-matches.vg-game .vg-rows { gap: 8px; }
.eg-matches.vg-game .vg-board-head > .vg-col-title {
  padding-block: 8px;
  border: 0;
  border-bottom: 2px solid #c9d5bc;
  border-radius: 7px;
  background: var(--eg-column-bg) !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  text-transform: none;
}
.eg-matches.vg-game .vg-card {
  background: #ffffff !important;
  border: 1px solid #bac5b2 !important;
  border-radius: 10px !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  justify-content: flex-start !important;
  text-align: left !important;
  box-shadow: 0 1px 2px rgba(35, 59, 23, 0.035) !important;
  opacity: 1 !important;
  transform: none;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.eg-matches.vg-game .vg-card .vg-card-text {
  width: 100%;
  text-align: left !important;
  font-family: inherit !important;
  font-size: var(--eg-text-body) !important;
  font-weight: 400 !important;
  line-height: var(--eg-card-leading) !important;
}
/* Hover only on genuine hover pointers; no sticky phone hover or moving targets. */
.eg-matches.vg-game .vg-card:hover { transform: none; box-shadow: none !important; }
@media (hover: hover) and (pointer: fine) {
  .eg-matches.vg-game .vg-card:not(:disabled):not(.vg-is-disabled):not(.vg-is-selected):not(.vg-is-wrong):not(.vg-is-locked):hover {
    border-color: #7d9767 !important;
    background: #f8fbf5 !important;
    box-shadow: 0 2px 9px rgba(35, 59, 23, 0.10) !important;
  }
}
/* Warm selection is distinct from green success; the site uses gold accents too. */
.eg-matches.vg-game .vg-card.vg-is-selected,
.eg-matches.vg-game .vg-card.vg-is-selected:hover {
  background: #fff5d6 !important;
  border-color: #936716 !important;
  box-shadow: 0 0 0 2px rgba(181, 138, 34, 0.18) !important;
}
.eg-matches.vg-game .vg-card.vg-is-locked,
.eg-matches.vg-game .vg-card.vg-is-locked:hover {
  background: var(--vg-lock-bg) !important;
  border-color: var(--vg-lock-border) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: default;
}
.eg-matches.vg-game .vg-card.vg-is-locked.vg-type-def::after {
  color: var(--eg-accent) !important;
  -webkit-text-fill-color: currentColor !important;
}
.eg-matches.vg-game .vg-join::before { background: #6f9255; }
.eg-matches.vg-game .vg-card.vg-is-wrong,
.eg-matches.vg-game .vg-card.vg-is-wrong:hover {
  background: #fff0ed !important;
  border-color: #b33d35 !important;
  box-shadow: 0 0 0 2px rgba(179, 61, 53, 0.12) !important;
}
.eg-matches.vg-game .vg-board-gate {
  background: var(--eg-surface);
  border-color: var(--eg-border-strong);
}

/* A distinct success moment, without adding a new heading/font scale. */
.eg-matches.vg-game .vg-finish-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 18px;
  border: 1px solid #bfd2ae;
  border-top: 4px solid var(--eg-accent);
  border-radius: 14px;
  background: #f0f6e9;
  box-shadow: 0 3px 12px rgba(35, 59, 23, 0.05);
}
.eg-matches.vg-game .vg-finish-title { color: var(--eg-accent-strong) !important; }
.eg-matches.vg-game .vg-finish-sub { line-height: 1.6; }
.eg-matches.vg-game .vg-finish-actions {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
}
.eg-matches.vg-game .vg-finish-practice { flex: 0 1 auto; }
.eg-matches.vg-game .vg-btn.vg-share-btn {
  background: var(--eg-accent) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: var(--eg-accent) !important;
}
.eg-matches.vg-game .vg-btn.vg-share-btn:hover { background: var(--eg-accent-strong) !important; }
.eg-matches.vg-game .vg-share-menu { border-color: var(--eg-border); box-shadow: 0 8px 26px rgba(35, 59, 23, 0.14); }
.eg-matches.vg-game .vg-share-menu > .vg-share-copy,
.eg-matches.vg-game .vg-share-menu > .vg-share-email {
  color: var(--eg-accent-strong) !important;
  -webkit-text-fill-color: currentColor !important;
}
.eg-matches.vg-game .vg-share-menu > :is(a, button):hover {
  background: var(--eg-accent-soft) !important;
  border-color: var(--eg-border-strong) !important;
}
.eg-matches.vg-game .vg-confetti-piece:nth-child(3n+1) { background: #42682f !important; }
.eg-matches.vg-game .vg-confetti-piece:nth-child(3n+2) { background: #a9c454 !important; }
.eg-matches.vg-game .vg-confetti-piece:nth-child(3n) { background: #dec27d !important; }

/* The history and archive use the same green/neutral system as the board. */
.eg-matches.vg-game :is(.vg-stats-panel, .vg-archive-panel) {
  border-color: var(--eg-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 3px 14px rgba(35, 59, 23, 0.06);
  background: #ffffff;
}
.eg-matches.vg-game :is(.vg-stats-head, .vg-archive-head) {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--eg-border);
}
.eg-matches.vg-game :is(.vg-stats-title, .vg-archive-title, .vg-history-title) {
  color: var(--eg-accent-strong) !important;
}
.eg-matches.vg-game .vg-stat {
  background: var(--eg-surface);
  border: 0;
  border-radius: 9px;
  padding: 12px;
}
.eg-matches.vg-game .vg-stat-value { color: var(--eg-accent-strong) !important; }
.eg-matches.vg-game .vg-stat-label { font-weight: 400; }
.eg-matches.vg-game .vg-history { border-color: var(--eg-border); }
.eg-matches.vg-game .vg-history-head { flex-wrap: wrap; }
.eg-matches.vg-game .vg-daily-chart {
  background: linear-gradient(to top, transparent 24%, #e7ede1 25%, transparent 26%, transparent 49%, #e7ede1 50%, transparent 51%, transparent 74%, #e7ede1 75%, transparent 76%);
  grid-template-columns: repeat(14, minmax(24px, 1fr));
  overflow-x: auto;
}
.eg-matches.vg-game .vg-chart-bar { background: #edf1e8; }
.eg-matches.vg-game .vg-chart-fill { background: var(--eg-accent); }
.eg-matches.vg-game .vg-archive-list { gap: 8px; padding: 3px 4px; }
.eg-matches.vg-game .vg-archive-row { border-color: var(--eg-border); background: var(--eg-surface); border-radius: 9px; }
.eg-matches.vg-game .vg-archive-row:hover { border-color: var(--eg-border-strong); }
.eg-matches.vg-game .vg-history-empty { padding: 12px; border-radius: 8px; background: var(--eg-surface); }

/* Adapt to the actual embed width, not only the device viewport.
   The viewport fallback below also supports older engines. */
@container eg-matches (max-width: 460px) {
  .eg-matches.vg-game .vg-command-center { padding: 12px; }
  .eg-matches.vg-game .vg-date { flex: 1 0 100%; }
  .eg-matches.vg-game .vg-topbar-right { gap: 8px; }
  .eg-matches.vg-game .vg-mode-switch { margin-left: auto; }
  .eg-matches.vg-game .vg-round-meta { padding: 10px 12px; gap: 6px; }
  .eg-matches.vg-game .vg-round-actions { width: 100%; justify-content: flex-start; }
  .eg-matches.vg-game .vg-round-guidance { flex-basis: 0; }
  .eg-matches.vg-game .vg-help-panel { padding: 0; }
  .eg-matches.vg-game .vg-help-copy { flex-basis: 100%; }
  .eg-matches.vg-game :is(.vg-stats-panel, .vg-archive-panel, .vg-finish-box) { padding: 14px; }
}
@media (max-width: 460px) {
  .eg-matches.vg-game .vg-command-center { padding: 12px; }
  .eg-matches.vg-game .vg-date { flex: 1 0 100%; }
  .eg-matches.vg-game .vg-mode-switch { margin-left: auto; }
  .eg-matches.vg-game .vg-round-meta { padding: 10px 12px; }
  .eg-matches.vg-game .vg-help-panel { padding: 0; }
  .eg-matches.vg-game .vg-help-copy { flex-basis: 100%; }
  .eg-matches.vg-game :is(.vg-stats-panel, .vg-archive-panel, .vg-finish-box) { padding: 14px; }
}

@container eg-matches (max-width: 620px) {
  .eg-matches.vg-game .vg-help-copy { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .eg-matches.vg-game .vg-help-mode + .vg-help-mode { margin: 12px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--eg-border-strong); }
  .eg-matches.vg-game .vg-help-foot { margin-inline: 12px; }
}
@media (max-width: 620px) {
  .eg-matches.vg-game .vg-help-copy { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .eg-matches.vg-game .vg-help-mode + .vg-help-mode { margin: 12px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--eg-border-strong); }
  .eg-matches.vg-game .vg-help-foot { margin-inline: 12px; }
}

@container eg-matches (max-width: 300px) {
  .eg-matches.vg-game .vg-date { flex: 1 1 auto; }
  .eg-matches.vg-game .vg-mode-switch { flex: 1 0 100%; margin-left: 0; }
  .eg-matches.vg-game .vg-mode-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .eg-matches.vg-game *, .eg-matches.vg-game *::before, .eg-matches.vg-game *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .eg-matches.vg-game .vg-mode-btn.is-active { outline: 2px solid Highlight; outline-offset: -2px; }
  .eg-matches.vg-game .vg-card.vg-is-selected { outline: 3px solid Highlight !important; outline-offset: -3px; }
  .eg-matches.vg-game .vg-card.vg-is-locked { border: 2px solid ButtonText !important; }
  .eg-matches.vg-game .vg-chart-fill { background: Highlight; forced-color-adjust: none; }
}

/* EG Matches 4.3.2 compact top layout refinements */
.eg-matches.vg-game .vg-command-center {
  margin: 0 0 10px;
  padding: 12px;
}
.eg-matches.vg-game .vg-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 16px;
}
.eg-matches.vg-game .vg-instructions {
  flex: initial;
  min-width: 0;
}
.eg-matches.vg-game .vg-instructions-text {
  display: block;
  margin-bottom: 2px;
}
.eg-matches.vg-game .vg-intro-details {
  margin-top: 0;
}
.eg-matches.vg-game .vg-topbar-right {
  width: auto;
  min-width: 0;
  flex: initial;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 0;
  border-top: 0;
}
.eg-matches.vg-game .vg-date {
  margin-right: 8px;
  white-space: nowrap;
}
.eg-matches.vg-game .vg-help-disclosure {
  margin-top: 10px;
}
.eg-matches.vg-game .vg-help-toggle {
  min-height: 38px;
  padding: 6px 10px;
}
.eg-matches.vg-game .vg-help-panel {
  margin-top: 8px;
  border-top: 1px solid var(--eg-border-strong);
  border-radius: var(--vg-radius);
}
.eg-matches.vg-game .vg-help-copy {
  padding: 12px 14px;
  gap: 0;
}
.eg-matches.vg-game .vg-help-mode-title {
  margin: 0 0 4px;
}
.eg-matches.vg-game .vg-help-mode + .vg-help-mode {
  margin-left: 14px;
  padding-left: 14px;
}
.eg-matches.vg-game .vg-help-foot {
  margin: 0 14px;
  padding: 10px 0;
  gap: 10px;
}
.eg-matches.vg-game .vg-btn.vg-help-dismiss {
  min-height: 38px;
  padding: 7px 12px;
}
.eg-matches.vg-game .vg-round-meta {
  margin: 0 0 14px;
  padding: 10px 12px;
}
@media (max-width: 760px) {
  .eg-matches.vg-game .vg-command-center {
    padding: 10px;
  }
  .eg-matches.vg-game .vg-topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .eg-matches.vg-game .vg-topbar-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .eg-matches.vg-game .vg-date {
    margin-right: auto;
  }
  .eg-matches.vg-game .vg-help-copy {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }
  .eg-matches.vg-game .vg-help-mode + .vg-help-mode {
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--eg-border-strong);
  }
  .eg-matches.vg-game .vg-help-foot {
    margin-inline: 12px;
  }
}

/* 4.5.0: Rankings, beside the stats and the Daily archive and drawn like them. */
.eg-matches.vg-view-practice .vg-rank-btn { display: none !important; }
.eg-matches.vg-game .vg-rank-panel {
  border: 1px solid var(--eg-border);
  border-radius: 14px;
  background: #ffffff;
  padding: 18px;
  margin: 0 0 var(--eg-space-4);
  box-shadow: 0 3px 14px rgba(35, 59, 23, 0.06);
}
.eg-matches.vg-game .vg-rank-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--eg-space-3);
  margin-bottom: var(--eg-space-4);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--eg-border);
}
.eg-matches.vg-game .vg-rank-title {
  color: var(--eg-accent-strong) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: var(--eg-text-heading);
  font-weight: var(--eg-weight-semibold);
  line-height: var(--eg-leading);
}
.eg-matches.vg-game .vg-rank-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 100%;
  margin: 0 0 var(--eg-space-3);
  padding: 3px;
  border: 1px solid var(--eg-border-strong);
  border-radius: calc(var(--vg-radius) + 3px);
  background: var(--vg-help-paper);
}
.eg-matches.vg-game .vg-rank-tab {
  appearance: none;
  margin: 0;
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: var(--vg-radius);
  background: transparent;
  box-shadow: none;
  color: var(--eg-ink-secondary) !important;
  -webkit-text-fill-color: currentColor !important;
  font: inherit;
  font-size: var(--eg-text-body);
  line-height: var(--eg-leading);
  text-transform: none;
  cursor: pointer;
}
.eg-matches.vg-game .vg-rank-tab:hover {
  background: var(--eg-accent-soft);
  color: var(--eg-accent-strong) !important;
}
.eg-matches.vg-game .vg-rank-tab.is-active {
  background: var(--eg-accent) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(35, 59, 23, 0.15);
}
.eg-matches.vg-game .vg-rank-list {
  display: grid;
  gap: 6px;
  margin: 0 0 var(--eg-space-3);
  padding: 0;
  list-style: none;
}
.eg-matches.vg-game .vg-rank-list:empty { display: none; }
.eg-matches.vg-game .vg-rank-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--eg-surface);
  color: var(--eg-ink) !important;
  font-size: var(--eg-text-body);
  line-height: var(--eg-leading);
}
.eg-matches.vg-game .vg-rank-pos {
  flex: 0 0 auto;
  min-width: 2.2em;
  color: var(--eg-accent-strong) !important;
  font-weight: var(--eg-weight-semibold);
  font-variant-numeric: tabular-nums;
}
.eg-matches.vg-game .vg-rank-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: var(--eg-weight-semibold);
}
.eg-matches.vg-game .vg-rank-figures {
  flex: 0 0 auto;
  color: var(--eg-ink-secondary) !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.eg-matches.vg-game :is(.vg-rank-empty, .vg-rank-place, .vg-rank-play, .vg-rank-signin, .vg-rank-label, .vg-rank-note) {
  margin: 0 0 var(--eg-space-3);
  color: var(--eg-ink-secondary) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: var(--eg-text-body);
  line-height: var(--eg-leading);
}
.eg-matches.vg-game :is(.vg-rank-place, .vg-rank-label) {
  color: var(--eg-ink) !important;
  font-weight: var(--eg-weight-semibold);
}
.eg-matches.vg-game .vg-rank-label { display: block; margin-bottom: 6px; }
.eg-matches.vg-game .vg-rank-form { margin: 0 0 var(--eg-space-3); }
.eg-matches.vg-game .vg-rank-field { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-matches.vg-game .vg-rank-input {
  box-sizing: border-box;
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--eg-border-strong);
  border-radius: var(--vg-radius);
  background: #ffffff;
  color: var(--eg-ink);
  font: inherit;
  font-size: 16px;
}
.eg-matches.vg-game .vg-rank-input:focus-visible { outline: 3px solid var(--vg-focus-color); outline-offset: 2px; }
.eg-matches.vg-game .vg-rank-input[aria-invalid="true"] { border-color: #b42318; }
.eg-matches.vg-game .vg-rank-save { flex: 0 0 auto; margin: 0; }
.eg-matches.vg-game .vg-rank-error {
  display: block;
  margin-top: 6px;
  color: #b42318 !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: var(--eg-text-body);
  line-height: var(--eg-leading);
}
.eg-matches.vg-game .vg-rank-error:empty { display: none; }
.eg-matches.vg-game .vg-rank-signin a { font-weight: var(--eg-weight-semibold); }
.eg-matches.vg-game .vg-rank-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--eg-border); }
@media (max-width: 460px) {
  .eg-matches.vg-game .vg-rank-panel { padding: 14px; }
  /* The four tabs in two rows of two, never three and one. */
  .eg-matches.vg-game .vg-rank-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eg-matches.vg-game .vg-rank-tab { min-width: 0; padding: 7px 8px; white-space: nowrap; }
}

/* EG Matches 4.6.0: on a finished board, EG Site Core's Listen button beside each word or phrase,
   inside the word's cell on its right (the tick has the same place on the definition). The card
   keeps its look and fills the cell; its text stays clear of the button. */
.eg-matches.vg-game .vg-word-cell {
  position: relative;
  display: flex;
  min-width: 0;
}
.eg-matches.vg-game .vg-word-cell > .vg-card {
  flex: 1 1 auto;
  padding-right: 44px;
}
.eg-matches.vg-game .vg-word-cell > .egsc-listen {
  position: absolute;
  top: 50%;
  right: 6px;
  z-index: 2;
  margin: 0;
  transform: translateY(-50%);
}
/* On the card's green, the button's tint is a little deeper; its focus ring is the vocabulary
   lists' one (inside the round button), not the game's wider ring for its own controls. */
.eg-matches.vg-game .vg-word-cell > .egsc-listen:hover,
.eg-matches.vg-game .vg-word-cell > .egsc-listen.is-speaking {
  background: rgba(68, 105, 49, 0.12);
}
.eg-matches.vg-game .vg-word-cell > .egsc-listen:focus-visible {
  outline: 2px solid var(--eg-moss, #446931) !important;
  outline-offset: -2px !important;
  background: rgba(68, 105, 49, 0.12);
}
@media (max-width: 720px) {
  .eg-matches.vg-game .vg-word-cell > .vg-card { padding-right: 34px; }
  .eg-matches.vg-game .vg-word-cell > .egsc-listen { right: 1px; }
}

/* EG Matches 4.7.0: the bridge under the board (eg-matches-view.php, renderBridge() in the script).
   Two cliffs over a stream and one plank for each pair: an empty slot (dashed) until its pair is
   matched, then a wooden plank that drops into place, with a rope above. With the last plank, the
   dog (the walker) trots from the left cliff to the right one, jumps and wags its tail. All of it
   is decoration. */
.eg-matches.vg-game .vg-bridge {
  margin: 18px 0 4px;
}
.eg-matches.vg-game .vg-bridge[hidden] { display: none; }
.eg-matches.vg-game .vg-bridge-scene {
  --vg-cliff-w: clamp(46px, 11%, 88px);
  --vg-cliff-h: 40px;
  --vg-deck-h: 8px;
  --vg-walker-w: 40px;
  --vg-walker-h: 30px;
  --vg-edge: 10px;
  --vg-wood: #c99a55;
  --vg-wood-dark: #a77a3c;
  --vg-rope: #9b7a4c;
  --vg-fur: #c98f4e;
  --vg-fur-far: #a8733e;
  --vg-fur-light: #f2dcb8;
  --vg-fur-dark: #8a5a32;
  position: relative;
  height: 86px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbf3 0%, var(--eg-surface, #f2f7ec) 100%);
  forced-color-adjust: none;
}
.eg-matches.vg-game .vg-bridge-scene::before {
  /* Soft hills far behind, for depth. */
  content: "";
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 40px;
  background:
    radial-gradient(34% 100% at 24% 100%, rgba(141, 180, 79, 0.2) 0 70%, transparent 71%),
    radial-gradient(42% 90% at 68% 100%, rgba(141, 180, 79, 0.14) 0 70%, transparent 71%);
}
.eg-matches.vg-game .vg-bridge-water {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 22px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #d8ebe5 0%, #bfdad1 100%);
}
.eg-matches.vg-game .vg-bridge-water::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 0;
  left: 0;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='6' viewBox='0 0 28 6'%3E%3Cpath d='M0 3 Q7 0 14 3 T28 3' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-opacity='.85'/%3E%3C/svg%3E") repeat-x 0 0 / 28px 6px;
}
.eg-matches.vg-game .vg-bridge-cliff {
  position: absolute;
  bottom: 0;
  width: var(--vg-cliff-w);
  height: var(--vg-cliff-h);
}
.eg-matches.vg-game .vg-bridge-cliff::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #8db44f 0 6px, #6f9640 6px 8px, #cfb68c 8px, #b3966c 100%);
}
.eg-matches.vg-game .vg-bridge-cliff-start { left: 0; }
.eg-matches.vg-game .vg-bridge-cliff-end { right: 0; }
.eg-matches.vg-game .vg-bridge-cliff-start::before {
  border-bottom-left-radius: 10px;
  clip-path: polygon(0 0, 88% 0, 100% 14%, 93% 55%, 98% 100%, 0 100%);
}
.eg-matches.vg-game .vg-bridge-cliff-end::before {
  border-bottom-right-radius: 10px;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 2% 100%, 7% 55%, 0 14%);
}
.eg-matches.vg-game .vg-bridge-post {
  position: absolute;
  bottom: calc(100% - 2px);
  width: 4px;
  height: 20px;
  border-radius: 2px 2px 0 0;
  background: var(--vg-wood-dark);
}
.eg-matches.vg-game .vg-bridge-cliff-start .vg-bridge-post { right: 4px; }
.eg-matches.vg-game .vg-bridge-cliff-end .vg-bridge-post { left: 4px; }
/* The goal: a small gold pennant on the far post, toward the bridge (clear of the walker). */
.eg-matches.vg-game .vg-bridge-cliff-end .vg-bridge-post::after {
  content: "";
  position: absolute;
  top: -9px;
  right: 3px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 12px solid var(--eg-gold, #d9b44a);
  transform-origin: right center;
}
.eg-matches.vg-game .vg-bridge-cliff-end .vg-bridge-post::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 1px;
  width: 2px;
  height: 10px;
  background: var(--vg-wood-dark);
}
.eg-matches.vg-game .vg-bridge.is-cheering .vg-bridge-cliff-end .vg-bridge-post::after {
  animation: vg-pennant 260ms ease-in-out 4 alternate;
}
@keyframes vg-pennant {
  from { transform: scaleX(1) skewY(0deg); }
  to { transform: scaleX(0.82) skewY(-8deg); }
}
.eg-matches.vg-game .vg-bridge-deck {
  position: absolute;
  right: calc(var(--vg-cliff-w) - 6px);
  bottom: calc(var(--vg-cliff-h) - var(--vg-deck-h));
  left: calc(var(--vg-cliff-w) - 6px);
  height: var(--vg-deck-h);
}
.eg-matches.vg-game .vg-bridge-rope {
  position: absolute;
  right: -4px;
  bottom: calc(100% + 13px);
  left: -4px;
  height: 2px;
  border-radius: 1px;
  background: var(--vg-rope);
  transform: scaleX(var(--vg-laid, 0));
  transform-origin: left center;
  transition: transform 380ms ease-out;
}
.eg-matches.vg-game .vg-bridge-planks {
  display: flex;
  gap: 2px;
  height: 100%;
}
.eg-matches.vg-game .vg-plank {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border: 1px dashed rgba(68, 105, 49, 0.34);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(var(--vg-y, 0px));
}
.eg-matches.vg-game .vg-plank.is-laid {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #d8ad6a 0%, var(--vg-wood) 55%, var(--vg-wood-dark) 100%);
  box-shadow: 0 1px 0 rgba(90, 60, 20, 0.18);
}
/* The rope that holds each plank. */
.eg-matches.vg-game .vg-plank.is-laid::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: calc(50% - 0.5px);
  width: 1px;
  height: calc(13px - var(--vg-y, 0px));
  background: rgba(155, 122, 76, 0.7);
}
.eg-matches.vg-game .vg-plank.is-new {
  animation: vg-plank-drop 440ms cubic-bezier(0.2, 0.7, 0.3, 1.2) both;
}
.eg-matches.vg-game .vg-plank.is-new::before {
  animation: vg-fade-in 200ms 240ms ease-out both;
}
@keyframes vg-plank-drop {
  0% { transform: translateY(calc(var(--vg-y, 0px) - 28px)) rotate(-12deg); opacity: 0; }
  45% { opacity: 1; }
  72% { transform: translateY(calc(var(--vg-y, 0px) + 2px)) rotate(2deg); }
  100% { transform: translateY(var(--vg-y, 0px)) rotate(0deg); opacity: 1; }
}
@keyframes vg-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* The walker, a dog: on the left cliff while the bridge is built, on the right one once it is crossed. */
.eg-matches.vg-game .vg-bridge-walker {
  position: absolute;
  bottom: calc(var(--vg-cliff-h) - 1px);
  left: var(--vg-edge);
  z-index: 2;
  width: var(--vg-walker-w);
  height: var(--vg-walker-h);
}
.eg-matches.vg-game .vg-bridge.is-crossed .vg-bridge-walker {
  right: var(--vg-edge);
  left: auto;
}
.eg-matches.vg-game .vg-walker-figure {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.eg-matches.vg-game .vg-dog-fur { fill: var(--vg-fur); }
.eg-matches.vg-game .vg-dog-light { fill: var(--vg-fur-light); }
.eg-matches.vg-game .vg-dog-ear { fill: var(--vg-fur-dark); }
.eg-matches.vg-game .vg-dog-nose,
.eg-matches.vg-game .vg-dog-eye { fill: #2b2420; }
.eg-matches.vg-game .vg-dog-shine { fill: #ffffff; }
.eg-matches.vg-game .vg-dog-mouth { fill: none; stroke: #5a3d26; stroke-width: 0.7; stroke-linecap: round; }
.eg-matches.vg-game .vg-dog-collar { fill: none; stroke: var(--eg-moss, #446931); stroke-width: 2; stroke-linecap: round; }
.eg-matches.vg-game .vg-dog-tag { fill: var(--eg-gold, #d9b44a); }
.eg-matches.vg-game .vg-dog-tail path { fill: none; stroke: var(--vg-fur); stroke-width: 2.8; stroke-linecap: round; }
.eg-matches.vg-game .vg-dog-leg path { fill: none; stroke-width: 3.4; stroke-linecap: round; }
.eg-matches.vg-game .vg-dog-leg-near path { stroke: var(--vg-fur); }
.eg-matches.vg-game .vg-dog-leg-far path { stroke: var(--vg-fur-far); }
.eg-matches.vg-game .vg-dog-leg,
.eg-matches.vg-game .vg-dog-tail,
.eg-matches.vg-game .vg-dog-head {
  transform-box: view-box;
}
.eg-matches.vg-game .vg-dog-hip-back { transform-origin: 11px 18px; }
.eg-matches.vg-game .vg-dog-hip-back-near { transform-origin: 13.6px 18px; }
.eg-matches.vg-game .vg-dog-hip-front { transform-origin: 27.6px 18px; }
.eg-matches.vg-game .vg-dog-hip-front-near { transform-origin: 30.2px 18px; }
.eg-matches.vg-game .vg-dog-tail { transform-origin: 8.6px 13.4px; }
.eg-matches.vg-game .vg-dog-head { transform-origin: 30px 12px; }
.eg-matches.vg-game .vg-bridge.is-crossing .vg-bridge-walker {
  animation: vg-walk-across var(--vg-walk-time, 2600ms) linear forwards;
}
.eg-matches.vg-game .vg-bridge.is-crossing .vg-walker-body {
  animation: vg-walk-bob 220ms ease-in-out infinite alternate;
}
/* A trot: each diagonal pair of legs together. */
.eg-matches.vg-game .vg-bridge.is-crossing .vg-dog-leg-a {
  animation: vg-walk-step 220ms ease-in-out infinite alternate;
}
.eg-matches.vg-game .vg-bridge.is-crossing .vg-dog-leg-b {
  animation: vg-walk-step 220ms ease-in-out infinite alternate-reverse;
}
.eg-matches.vg-game .vg-bridge.is-crossing .vg-dog-tail {
  animation: vg-wag 440ms ease-in-out infinite alternate;
}
@keyframes vg-walk-across {
  from { transform: translate(0, 0); }
  50% { transform: translate(calc(var(--vg-walk, 0px) / 2), 3px); }
  to { transform: translate(var(--vg-walk, 0px), 0); }
}
@keyframes vg-walk-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-1.5px); }
}
@keyframes vg-walk-step {
  from { transform: rotate(22deg); }
  to { transform: rotate(-22deg); }
}
@keyframes vg-wag {
  from { transform: rotate(-14deg); }
  to { transform: rotate(16deg); }
}
.eg-matches.vg-game .vg-bridge.is-cheering .vg-bridge-walker {
  animation: vg-cheer-hop 300ms ease-out 2 alternate;
}
.eg-matches.vg-game .vg-bridge.is-cheering .vg-dog-tail { animation: vg-wag 140ms ease-in-out infinite alternate; }
.eg-matches.vg-game .vg-bridge.is-cheering .vg-dog-head { transform: rotate(-10deg); transition: transform 160ms ease-out; }
/* A dog stays a little wagging dog on its cliff: the tail now and then. */
.eg-matches.vg-game .vg-bridge.is-crossed:not(.is-cheering) .vg-dog-tail { animation: vg-wag-rest 3.2s ease-in-out infinite; }
@keyframes vg-wag-rest {
  0%, 70%, 100% { transform: rotate(0deg); }
  76%, 88% { transform: rotate(14deg); }
  82%, 94% { transform: rotate(-10deg); }
}
@keyframes vg-cheer-hop {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}
.eg-matches.vg-game .vg-bridge-burst {
  position: absolute;
  right: calc(var(--vg-edge) + var(--vg-walker-w) / 2);
  bottom: calc(var(--vg-cliff-h) + var(--vg-walker-h) - 4px);
  width: 0;
  height: 0;
  pointer-events: none;
}
.eg-matches.vg-game .vg-burst-piece {
  position: absolute;
  top: -3px;
  left: -2px;
  width: 5px;
  height: 7px;
  border-radius: 1.5px;
  animation: vg-burst 1100ms cubic-bezier(0.15, 0.6, 0.3, 1) forwards;
}
@keyframes vg-burst {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  60% { transform: translate(var(--vg-bx), var(--vg-by)) rotate(var(--vg-br)); opacity: 1; }
  100% { transform: translate(calc(var(--vg-bx) * 1.15), calc(var(--vg-by) + 26px)) rotate(var(--vg-br)); opacity: 0; }
}
@container eg-matches (max-width: 460px) {
  .eg-matches.vg-game .vg-bridge { margin-top: 14px; }
  .eg-matches.vg-game .vg-bridge-scene { --vg-cliff-w: 46px; --vg-cliff-h: 34px; --vg-deck-h: 7px; --vg-walker-w: 30px; --vg-walker-h: 23px; --vg-edge: 5px; height: 74px; }
  .eg-matches.vg-game .vg-bridge-planks { gap: 1.5px; }
}
@media (max-width: 460px) {
  .eg-matches.vg-game .vg-bridge-scene { --vg-cliff-w: 46px; --vg-cliff-h: 34px; --vg-deck-h: 7px; --vg-walker-w: 30px; --vg-walker-h: 23px; --vg-edge: 5px; height: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  .eg-matches.vg-game .vg-bridge *,
  .eg-matches.vg-game .vg-bridge *::before {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .eg-matches.vg-game .vg-bridge { display: none; }
}

/* EG Matches 4.9.1: the heading keeps its line. Beside the date and the buttons (about 410px) it
   needs a game about 720px wide; narrower, the date and the buttons go under it, as on a tablet
   (before, the heading's column shrank to a word a line, at 1024px with the sidebar). The phone
   layout below then takes over. */
@container eg-matches (max-width: 719px) {
  .eg-matches.vg-game .vg-topbar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .eg-matches.vg-game .vg-topbar-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .eg-matches.vg-game .vg-date { margin-right: auto; }
}

/* EG Matches 4.7.0: on a phone, the controls above the board take less height: the mode note and
   the date share a line, and the three icons and the Daily and Practice switch share a row (on a
   very narrow screen, the switch has a row of its own); the column labels are on one line. */
@container eg-matches (max-width: 460px) {
  .eg-matches.vg-game .vg-topbar {
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 5px;
    row-gap: 0;
  }
  .eg-matches.vg-game .vg-instructions,
  .eg-matches.vg-game .vg-topbar-right { display: contents; }
  .eg-matches.vg-game .vg-instructions-text { grid-column: 1 / -1; grid-row: 1; }
  /* The note has the whole line, with room on its right for the date, which sits in that room. */
  .eg-matches.vg-game .vg-intro-details { grid-column: 1 / -1; grid-row: 2; min-width: 0; margin-top: 2px; padding-right: 92px; }
  .eg-matches.vg-game.vg-view-practice .vg-intro-details { padding-right: 0; }
  .eg-matches.vg-game .vg-date { grid-column: 1 / -1; grid-row: 2; align-self: start; justify-self: end; flex: none; margin: 2px 0 0; white-space: nowrap; }
  .eg-matches.vg-game .vg-topbar::after {
    content: "";
    grid-column: 1 / -1;
    grid-row: 3;
    height: 1px;
    margin: 10px 0;
    background: var(--eg-border);
  }
  .eg-matches.vg-game .vg-topbar .vg-icon-btn { grid-row: 4; width: 38px; height: 40px; }
  .eg-matches.vg-game .vg-topbar .vg-stats-btn { grid-column: 1; }
  .eg-matches.vg-game .vg-topbar .vg-rank-btn { grid-column: 2; }
  .eg-matches.vg-game .vg-topbar .vg-archive-btn { grid-column: 3; }
  .eg-matches.vg-game .vg-mode-switch { grid-column: 5; grid-row: 4; justify-self: end; margin: 0; }
  .eg-matches.vg-game .vg-mode-btn { padding-inline: 10px; white-space: nowrap; }
  .eg-matches.vg-game .vg-board-head > .vg-col-title { padding: 6px 8px; font-size: 14px; line-height: 1.2; }
}
@container eg-matches (max-width: 293px) {
  .eg-matches.vg-game .vg-mode-switch { grid-column: 1 / -1; grid-row: 5; justify-self: start; margin-top: 8px; }
}
/* 4.7.0: where the Practice controls stack (a phone), each control is as tall as its label and its
   menu. Their basis of 12rem is a width in the row of a wider screen; in the stack it made each one
   192px tall, with empty space under the menu. */
@media (max-width: 720px) {
  .eg-matches.vg-game .vg-control { flex: 0 0 auto; }
}

/* EG Matches 4.8.0: the weekly stats by email in the result box (a ranking name and the box, or the
   box alone) and under the name field of the rankings: the box "Email me my weekly stats on Mondays". */
.eg-matches.vg-game .vg-week-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #cfdec0;
}
.eg-matches.vg-game .vg-week-offer[hidden],
.eg-matches.vg-game .vg-week-name[hidden],
.eg-matches.vg-game .vg-week-check[hidden],
.eg-matches.vg-game .vg-week-done[hidden] { display: none; }
.eg-matches.vg-game .vg-week-name {
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
  min-width: 0;
}
.eg-matches.vg-game .vg-week-name .vg-rank-label { margin-bottom: 6px; }
.eg-matches.vg-game .vg-week-name .vg-rank-input { flex: none; width: 100%; max-width: 360px; }
.eg-matches.vg-game .vg-week-check {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  color: var(--eg-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: var(--eg-text-body);
  line-height: 1.35;
  cursor: pointer;
}
.eg-matches.vg-game .vg-week-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--eg-accent, #446931);
  cursor: pointer;
}
.eg-matches.vg-game .vg-week-check input:focus-visible { outline: 3px solid var(--vg-focus-color); outline-offset: 2px; }
.eg-matches.vg-game .vg-week-actions { display: flex; flex: 0 0 auto; }
.eg-matches.vg-game .vg-week-actions .vg-btn { margin: 0; }
.eg-matches.vg-game .vg-week-offer .vg-rank-error { flex: 1 1 100%; margin: 0; }
.eg-matches.vg-game .vg-week-done {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #cfdec0;
  color: var(--eg-accent-strong) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: var(--eg-text-body);
  font-weight: var(--eg-weight-semibold);
  line-height: var(--eg-leading);
}
.eg-matches.vg-game .vg-rank-form .vg-week-check { display: flex; margin-top: 8px; }
.eg-matches.vg-game .vg-rank-form .vg-week-check[hidden] { display: none; }
.eg-matches.vg-game .vg-rank-panel .vg-week-done { margin: 0 0 var(--eg-space-3); padding-top: 0; border-top: 0; }

/* EG Matches 4.9.0: a guest's invitation after a Daily, one quiet line under Share and Practice
   again (4.8.3 had a box above them): Join free and sign in, as text links. */
.eg-matches.vg-game .vg-join-line {
  margin: 12px 0 0;
  color: var(--eg-ink-secondary) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: var(--eg-text-body);
  line-height: var(--eg-leading);
}
.eg-matches.vg-game .vg-join-line[hidden] { display: none; }
.eg-matches.vg-game .vg-join-line a {
  color: var(--eg-accent-strong) !important;
  -webkit-text-fill-color: currentColor !important;
  font-weight: var(--eg-weight-semibold);
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* 4.11.0: the board's gate. Before Start it stands where the words will be: what the round is, the
   Start button, and when the clock starts. While paused: Resume. */
.eg-matches.vg-game .vg-board-gate {
  flex-direction: column;
  gap: 6px;
  min-height: 200px;
  padding: 28px 18px;
  border: 1px solid var(--eg-border-strong);
  border-radius: var(--vg-radius-panel);
  background: var(--eg-surface);
}
.eg-matches.vg-game .vg-board-gate[data-state="start"] {
  min-height: 300px;
  background: linear-gradient(180deg, var(--eg-page, #ffffff), var(--eg-surface));
}
.eg-matches.vg-game .vg-gate-title {
  margin: 0;
  color: var(--eg-accent-strong);
  -webkit-text-fill-color: currentColor;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.eg-matches.vg-game .vg-gate-text {
  max-width: 34em;
  margin: 0;
  color: var(--eg-ink-secondary);
  -webkit-text-fill-color: currentColor;
  font-size: 15px;
}
.eg-matches.vg-game .vg-btn.vg-start-round {
  min-width: 190px;
  min-height: 56px;
  margin: 14px 0 8px;
  border-radius: 10px;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(53, 93, 32, 0.22);
}
.eg-matches.vg-game .vg-btn.vg-gate-resume {
  min-width: 150px;
  min-height: 48px;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 650;
}


/* ==========================================================================================
   EG Matches 4.12.0: the game's look (the root carries vg-skin-2).

   One idea carries it: the bridge is the round's progress. It stands over the board in the
   round's bar, with the line that says what is matched, the score, the clock and Pause, and the
   numbers stay in view while a round runs. Under it the board is a field of tiles that feel like
   keys: a tile lifts when chosen, shakes when wrong, and a matched pair turns green and glides
   under the pairs still open. The start and the result are moments of their own.
   Every rule here is scoped to .vg-skin-2 and stands after the earlier layers.
   ========================================================================================== */
.eg-matches.vg-game.vg-skin-2 {
  --vg2-ink: var(--eg-ink, #1f2c1e);
  --vg2-text: var(--eg-text, #313b2f);
  --vg2-muted: var(--eg-muted, #6a7267);
  --vg2-moss: var(--eg-moss, #446931);
  --vg2-moss-dark: var(--eg-moss-dark, #355d20);
  --vg2-field: #eff5e8;
  --vg2-field-line: #d9e5cc;
  --vg2-tile-line: #c7d2bb;
  --vg2-tile-edge: #b9c6ab;
  --vg2-pick: #fff3cf;
  --vg2-pick-line: #b98a1c;
  --vg2-ok: #e6f2dc;
  --vg2-ok-line: #7da262;
  --vg2-bad: #fdebe7;
  --vg2-bad-line: #b33d35;
  --vg2-gold: #f3cf62;
  --vg2-gold-dark: #6b4d05;
  --eg-text-body: 15px;
  --eg-text-heading: 17px;
}

/* ---- the top: the two modes, the day, the tools; then the line of instruction and the help ---- */
.eg-matches.vg-game.vg-skin-2 .vg-command-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--eg-border);
  border-top: 1px solid var(--eg-border);
  border-radius: 16px;
  background: var(--eg-page, #ffffff);
}
.eg-matches.vg-game.vg-skin-2 .vg-topbar,
.eg-matches.vg-game.vg-skin-2 .vg-help-disclosure {
  display: contents;
}
.eg-matches.vg-game.vg-skin-2 .vg-topbar::before,
.eg-matches.vg-game.vg-skin-2 .vg-topbar::after {
  content: none;
}
/* Today's Daily: the gate says "Your first attempt counts." before Start; the note over the board
   would say it twice, and coming back at Start it would push the board down. (A Daily played as
   practice keeps its note.) */
.eg-matches.vg-game.vg-skin-2.vg-view-daily[data-replay="false"] .vg-intro-details {
  display: none;
}
.eg-matches.vg-game.vg-skin-2 .vg-topbar-right {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  /* 4.12.2: from the left. (An older rule packed the row to the right: in Practice, where the day
     and the tools are not shown, nothing held the tabs on the left and they jumped across.) */
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 0;
}
.eg-matches.vg-game.vg-skin-2 .vg-mode-switch {
  order: -2;
  margin: 0 6px 0 0;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: #eef1e8;
}
.eg-matches.vg-game.vg-skin-2 .vg-mode-btn {
  min-height: 40px;
  padding: 6px 18px;
  border: 0 !important;
  border-radius: 9px;
  background: transparent !important;
  color: var(--vg2-text) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 15.5px;
  font-weight: 650;
  box-shadow: none !important;
}
.eg-matches.vg-game.vg-skin-2 .vg-mode-btn.is-active,
.eg-matches.vg-game.vg-skin-2 .vg-mode-btn[aria-pressed="true"] {
  background: #ffffff !important;
  color: var(--vg2-moss-dark) !important;
  box-shadow: 0 1px 3px rgba(31, 44, 30, 0.16) !important;
}
.eg-matches.vg-game.vg-skin-2 .vg-date {
  order: -1;
  margin: 0 auto 0 0;
  color: var(--vg2-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
.eg-matches.vg-game.vg-skin-2 .vg-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  min-width: 42px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid transparent !important;
  border-radius: 10px;
  background: transparent !important;
  color: var(--vg2-text) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none !important;
}
.eg-matches.vg-game.vg-skin-2 .vg-icon-btn:hover,
.eg-matches.vg-game.vg-skin-2 .vg-icon-btn[aria-expanded="true"] {
  border-color: var(--vg2-field-line) !important;
  background: var(--vg2-field) !important;
  color: var(--vg2-moss-dark) !important;
}
.eg-matches.vg-game.vg-skin-2 .vg-topbar-right > .vg-icon-btn::after {
  content: attr(title);
}
.eg-matches.vg-game.vg-skin-2 .vg-instructions {
  grid-column: 1;
  grid-row: 2;
  display: block;
  min-width: 0;
  margin: 0;
}
.eg-matches.vg-game.vg-skin-2 .vg-instructions-text {
  display: inline;
  margin-right: 8px;
}
.eg-matches.vg-game.vg-skin-2 .vg-intro-details {
  display: inline;
}
.eg-matches.vg-game.vg-skin-2 .vg-instructions-text {
  color: var(--vg2-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 15.5px !important;
  font-weight: 650 !important;
}
.eg-matches.vg-game.vg-skin-2 .vg-intro-details,
.eg-matches.vg-game.vg-skin-2 .vg-mode-note {
  margin: 0;
  color: var(--vg2-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 14.5px;
}
.eg-matches.vg-game.vg-skin-2 .vg-help-toggle {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  margin: 0;
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--vg2-moss-dark);
  -webkit-text-fill-color: currentColor;
  font-size: 14px;
  font-weight: 600;
}
.eg-matches.vg-game.vg-skin-2 .vg-help-toggle:hover {
  border-color: var(--vg2-field-line);
  background: var(--vg2-field);
}
.eg-matches.vg-game.vg-skin-2 .vg-help-panel {
  grid-column: 1 / -1;
  margin: 0;
}
.eg-matches.vg-game.vg-skin-2 .vg-controls {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--eg-border);
}

/* ---- the round's bar: the bridge over the line ---- */
.eg-matches.vg-game.vg-skin-2 .vg-hud {
  position: relative;
  z-index: 3;
  scroll-margin-top: calc(var(--vg-sticky-top, 0px) + 10px);
  margin: 0 0 12px;
  border: 1px solid #cfe0c6;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(35, 59, 23, 0.05);
  overflow: hidden;
}
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-bridge {
  margin: 0;
}
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-bridge-scene {
  height: 78px;
  border-radius: 0;
  background: linear-gradient(180deg, #f3f9f4 0%, #e9f4ea 100%);
}
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  min-height: 52px;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-top: 1px solid #dfe9d6;
  border-radius: 0;
  background: #ffffff;
}
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-progress {
  color: var(--vg2-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 15.5px !important;
  font-weight: 650 !important;
}
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 12px;
  margin: 0 0 0 auto;
}
.eg-matches.vg-game.vg-skin-2 .vg-score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--vg2-field);
  color: var(--vg2-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.eg-matches.vg-game.vg-skin-2 .vg-score[hidden] { display: none; }
.eg-matches.vg-game.vg-skin-2 .vg-score-value {
  display: inline-block;
  min-width: 1.25em; /* 10 and 9 take the same room: the line does not wrap anew when the score drops */
  text-align: right;
  color: var(--vg2-ink);
  font-size: 18px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.eg-matches.vg-game.vg-skin-2 .vg-score.vg-score-drop {
  animation: vg2-score-drop 0.55s ease;
}
@keyframes vg2-score-drop {
  0% { background: var(--vg2-bad); transform: scale(1); }
  25% { background: #f7c9c1; transform: scale(1.12); }
  100% { background: var(--vg2-field); transform: scale(1); }
}
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-timer {
  min-width: 3.2em;
  color: var(--vg2-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 21px !important;
  font-weight: 750 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  text-align: right;
}
/* The hint's place is not kept once the round runs (the earlier layers kept it, out of sight, so
   the tools would not move: here it made the line wrap). */
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-timer-cue.vg-cue-reserved {
  display: none;
}
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-timer-cue {
  color: var(--vg2-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 13.5px;
}
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-btn.vg-play-toggle,
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-btn.vg-round-secondary {
  min-height: 38px;
  padding: 5px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 650;
}
/* A notice while a round runs lies over the bridge: nothing under it moves. */
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-status {
  margin: 0;
  padding: 0;
  min-height: 0;
}
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-status:not(.vg-status-sr-only) {
  margin: 0;
  padding: 9px 14px;
  border: 0;
  border-top: 1px solid #dfe9d6;
  border-radius: 0;
  background: #fbfaf5;
  color: var(--vg2-text);
  -webkit-text-fill-color: currentColor;
  font-size: 14.5px;
}
.eg-matches.vg-game.vg-skin-2[data-phase="playing"] .vg-hud .vg-status:not(.vg-status-sr-only),
.eg-matches.vg-game.vg-skin-2[data-phase="feedback"] .vg-hud .vg-status:not(.vg-status-sr-only) {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 4;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 6px 14px;
  border: 1px solid #e9b8b0;
  border-radius: 999px;
  background: #fff4f1;
  color: #8f2a22;
  font-weight: 650;
  box-shadow: 0 4px 12px rgba(143, 42, 34, 0.14);
  transform: translateX(-50%);
  animation: vg2-toast 0.22s ease;
}
@keyframes vg2-toast {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---- the board: a field of tiles ---- */
.eg-matches.vg-game.vg-skin-2 .vg-board {
  padding: 12px;
  border: 1px solid var(--vg2-field-line);
  border-radius: 16px;
  background: var(--vg2-field);
}
.eg-matches.vg-game.vg-skin-2 .vg-board.vg-board-concealed {
  padding: 0;
  border: 0;
  background: none;
}
.eg-matches.vg-game.vg-skin-2 .vg-board.vg-board-concealed .vg-board-head {
  display: none;
}
.eg-matches.vg-game.vg-skin-2 .vg-board-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) 14px minmax(0, 1.2fr);
  gap: 0;
  margin: 0 0 8px;
}
.eg-matches.vg-game.vg-skin-2 .vg-col-title {
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  /* 4.14.1: !important, as the earlier look's rule has it: its beige bar stayed behind the two
     headings, on the green field. */
  background: none !important;
  box-shadow: none;
  color: var(--vg2-muted) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
}
.eg-matches.vg-game.vg-skin-2 .vg-rows {
  display: grid;
  gap: 8px;
}
.eg-matches.vg-game.vg-skin-2 .vg-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) 14px minmax(0, 1.2fr);
  gap: 0;
  align-items: stretch;
}
.eg-matches.vg-game.vg-skin-2 .vg-card {
  position: relative;
  min-height: 54px;
  padding: 11px 14px !important;
  border: 1.5px solid var(--vg2-tile-line) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--vg2-ink) !important;
  -webkit-text-fill-color: var(--vg2-ink) !important;
  box-shadow: 0 3px 0 var(--vg2-tile-edge) !important;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.09s ease, box-shadow 0.09s ease, border-color 0.12s ease, background-color 0.12s ease;
}
.eg-matches.vg-game.vg-skin-2 .vg-card .vg-card-text {
  font-size: 15.5px !important;
  font-weight: 450 !important;
  line-height: 1.35 !important;
}
.eg-matches.vg-game.vg-skin-2 .vg-card.vg-type-word .vg-card-text {
  font-size: 16.5px !important;
  font-weight: 650 !important;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.eg-matches.vg-game.vg-skin-2 .vg-card:not(:disabled):not(.vg-is-disabled):not(.vg-is-selected):not(.vg-is-wrong):not(.vg-is-locked):hover {
  border-color: #8fae78 !important;
  background: #fbfdf8 !important;
  box-shadow: 0 4px 0 #a9bb98 !important;
  transform: translateY(-1px);
}
.eg-matches.vg-game.vg-skin-2 .vg-card:not(:disabled):not(.vg-is-disabled):not(.vg-is-locked):active {
  box-shadow: 0 0 0 var(--vg2-tile-edge) !important;
  transform: translateY(3px);
}
.eg-matches.vg-game.vg-skin-2 .vg-card:focus-visible {
  outline: 3px solid var(--vg-focus-color, #355d20);
  outline-offset: 2px;
}
.eg-matches.vg-game.vg-skin-2 .vg-card.vg-is-selected,
.eg-matches.vg-game.vg-skin-2 .vg-card.vg-is-selected:hover {
  border-color: var(--vg2-pick-line) !important;
  background: var(--vg2-pick) !important;
  box-shadow: 0 5px 0 #d2aa3f, 0 10px 18px rgba(185, 138, 28, 0.2) !important;
  transform: translateY(-2px);
}
.eg-matches.vg-game.vg-skin-2 .vg-card.vg-is-wrong,
.eg-matches.vg-game.vg-skin-2 .vg-card.vg-is-wrong:hover {
  border-color: var(--vg2-bad-line) !important;
  background: var(--vg2-bad) !important;
  box-shadow: 0 3px 0 #d9958c !important;
  transform: none;
  animation: vg2-shake 0.36s ease;
}
@keyframes vg2-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
/* A matched pair: one green piece, word and definition joined, quieter than the open tiles. */
.eg-matches.vg-game.vg-skin-2 .vg-card.vg-is-locked,
.eg-matches.vg-game.vg-skin-2 .vg-card.vg-is-locked:hover {
  min-height: 44px;
  padding: 8px 14px !important;
  border-color: var(--vg2-ok-line) !important;
  background: var(--vg2-ok) !important;
  box-shadow: none !important;
  cursor: default;
  transform: none;
}
.eg-matches.vg-game.vg-skin-2 .vg-card.vg-is-locked.vg-type-def {
  padding-right: 42px !important; /* room for the tick at its right */
}
.eg-matches.vg-game.vg-skin-2 .vg-card.vg-is-locked .vg-card-text {
  font-size: 15px !important;
}
.eg-matches.vg-game.vg-skin-2 .vg-card.vg-is-locked.vg-type-word .vg-card-text {
  font-size: 15.5px !important;
}
.eg-matches.vg-game.vg-skin-2 .vg-row-new .vg-card {
  animation: vg2-matched 0.6s ease;
}
@keyframes vg2-matched {
  0% { background: #cbe7b5; box-shadow: 0 0 0 0 rgba(125, 162, 98, 0.55); }
  60% { background: #d9eec9; box-shadow: 0 0 0 10px rgba(125, 162, 98, 0); }
  100% { background: var(--vg2-ok); box-shadow: 0 0 0 0 rgba(125, 162, 98, 0); }
}
.eg-matches.vg-game.vg-skin-2 .vg-rows-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 2px 0;
  color: var(--vg2-muted);
  font-size: 13px;
  font-weight: 650;
}
.eg-matches.vg-game.vg-skin-2 .vg-rows-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--vg2-field-line);
}

/* ---- the gate: before Start, and while paused ---- */
.eg-matches.vg-game.vg-skin-2 .vg-board-gate {
  gap: 6px;
  min-height: 190px;
  padding: 30px 18px;
  border: 1px solid var(--vg2-field-line);
  border-radius: 16px;
  background: var(--vg2-field);
}
.eg-matches.vg-game.vg-skin-2 .vg-board-gate[data-state="start"] {
  min-height: 320px;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
    var(--vg2-field);
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-title {
  color: var(--vg2-ink);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-text {
  color: var(--vg2-text);
  font-size: 16px;
}
.eg-matches.vg-game.vg-skin-2 .vg-btn.vg-start-round {
  min-width: 220px;
  min-height: 62px;
  margin: 16px 0 10px;
  border: 1px solid #c79a26 !important;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9df8a 0%, var(--vg2-gold) 100%) !important;
  color: var(--vg2-gold-dark) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 0 #c79a26, 0 12px 24px rgba(199, 154, 38, 0.28);
  transition: transform 0.09s ease, box-shadow 0.09s ease;
}
.eg-matches.vg-game.vg-skin-2 .vg-btn.vg-start-round:hover {
  background: linear-gradient(180deg, #fbe59c 0%, #f5d572 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #c79a26, 0 14px 26px rgba(199, 154, 38, 0.32);
}
.eg-matches.vg-game.vg-skin-2 .vg-btn.vg-start-round:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #c79a26, 0 4px 10px rgba(199, 154, 38, 0.2);
}
.eg-matches.vg-game.vg-skin-2 .vg-btn.vg-gate-resume {
  min-width: 170px;
  min-height: 52px;
  border-radius: 12px;
  font-size: 17px;
  box-shadow: 0 3px 0 #2c4a1c;
}

/* ---- the result ---- */
.eg-matches.vg-game.vg-skin-2 .vg-finish {
  margin: 0 0 12px;
}
.eg-matches.vg-game.vg-skin-2 .vg-finish-box {
  gap: 16px;
  padding: 22px;
  border: 1px solid #c9dcb9;
  border-top: 1px solid #c9dcb9;
  border-radius: 16px;
  background:
    radial-gradient(90% 120% at 0% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 55%),
    #eef6e6;
  box-shadow: 0 6px 20px rgba(35, 59, 23, 0.08);
}
.eg-matches.vg-game.vg-skin-2 .vg-finish-title {
  margin: 0 0 12px;
  color: var(--vg2-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 22px !important;
  font-weight: 750 !important;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.eg-matches.vg-game.vg-skin-2 .vg-result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.eg-matches.vg-game.vg-skin-2 .vg-result-stats[hidden] { display: none; }
.eg-matches.vg-game.vg-skin-2 .vg-result-stat {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid #d5e4c7;
  border-radius: 12px;
  background: #ffffff;
}
.eg-matches.vg-game.vg-skin-2 .vg-result-value {
  color: var(--vg2-ink);
  font-size: 30px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.eg-matches.vg-game.vg-skin-2 .vg-result-label {
  color: var(--vg2-muted);
  font-size: 13.5px;
  font-weight: 600;
}
/* The result in words stays for a screen reader; the eye has the numbers over it. */
.eg-matches.vg-game.vg-skin-2 .vg-finish-sub {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.eg-matches.vg-game.vg-skin-2 .vg-result-kind {
  margin: 0 0 4px;
  color: var(--vg2-moss-dark);
  font-size: 14px;
  font-weight: 650;
}
.eg-matches.vg-game.vg-skin-2 .vg-result-kind:empty { display: none; }
/* 4.13.0: a row of the rankings: the points stand out, what they come from is quieter. */
.eg-matches.vg-game.vg-skin-2 .vg-rank-points {
  color: var(--vg2-ink);
  font-weight: 700;
}
.eg-matches.vg-game.vg-skin-2 .vg-rank-name {
  overflow-wrap: break-word; /* at a space where there is one: a name broke letter by letter beside long figures */
}
/* 4.13.0: a scored Daily's points for the rankings, and how they are made. */
.eg-matches.vg-game.vg-skin-2 .vg-points-note {
  margin: 0 0 6px;
  color: var(--vg2-text);
  -webkit-text-fill-color: currentColor;
  font-size: 14.5px;
  line-height: 1.45;
}
.eg-matches.vg-game.vg-skin-2 .vg-points-note[hidden] {
  display: none;
}
.eg-matches.vg-game.vg-skin-2 .vg-score-note {
  color: var(--vg2-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 14px;
}
.eg-matches.vg-game.vg-skin-2 .vg-next-daily {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px dashed #c9dcb9;
  color: var(--vg2-text);
  -webkit-text-fill-color: currentColor;
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.eg-matches.vg-game.vg-skin-2 .vg-next-daily[hidden] { display: none; }

/* ---- narrower: a phone ---- */
@container eg-matches (max-width: 640px) {
  .eg-matches.vg-game.vg-skin-2 .vg-topbar-right > .vg-icon-btn::after {
    content: none;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-icon-btn {
    padding: 0;
    justify-content: center;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-date {
    font-size: 13.5px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-bridge-scene {
    height: 66px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-board {
    padding: 8px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-row,
  .eg-matches.vg-game.vg-skin-2 .vg-board-head {
    grid-template-columns: minmax(0, 0.82fr) 8px minmax(0, 1.18fr);
  }
  .eg-matches.vg-game.vg-skin-2 .vg-card {
    padding: 10px 11px !important;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-card.vg-is-locked,
  .eg-matches.vg-game.vg-skin-2 .vg-card.vg-is-locked:hover {
    padding: 8px 10px !important;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-card.vg-is-locked.vg-type-def {
    padding-right: 34px !important;
  }
  /* The top on a phone: the modes and the tools in one row, the day under them; then the line of
     instruction across, with the help beside its note. */
  .eg-matches.vg-game.vg-skin-2 .vg-command-center {
    padding: 10px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-topbar-right {
    flex-wrap: nowrap;
    gap: 2px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-mode-switch {
    margin-right: auto;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-mode-btn {
    padding: 6px 12px;
    font-size: 15px;
  }
  /* The day is in the gate ("Today's Daily") and in the result; the row has no room for it. */
  .eg-matches.vg-game.vg-skin-2 .vg-date {
    display: none;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-icon-btn {
    flex: 0 0 auto;
    min-width: 38px;
    width: 38px;
    height: 38px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-instructions {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-instructions-text {
    display: block;
    margin: 0;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-intro-details {
    display: block;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-help-toggle {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    margin-left: -10px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-card .vg-card-text {
    font-size: 15px !important;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-card.vg-type-word .vg-card-text {
    font-size: 15.5px !important;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-gate-title {
    font-size: 24px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-result-value {
    font-size: 25px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-result-stat {
    padding: 10px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-finish-box {
    padding: 16px;
  }
}
@container eg-matches (max-width: 300px) {
  .eg-matches.vg-game.vg-skin-2 .vg-topbar-right {
    flex-wrap: wrap;
    gap: 4px;
  }
}
@container eg-matches (max-width: 420px) {
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-meta {
    padding: 8px 10px;
    gap: 4px 8px;
  }
}

/* ---- 4.12.2: the top box and the round's line, to their edges ---- */
/* The clock's box is wider than its digits, so that the time can grow. The digits end at the box's
   right edge and the box at the line's. (They stood at its left, with a margin after the box:
   after a Daily the time ended 16px short of everything else on the right.) */
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-actions .vg-timer {
  justify-content: flex-end;
  margin-right: 0;
}
/* The hint and the buttons' group, when the script finds nothing to show in it. */
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-guidance[hidden] {
  display: none;
}
/* The note after the instruction (Practice, a Daily played again): a line of its own. It ran on
   after the instruction and broke in the middle of its sentence. */
.eg-matches.vg-game.vg-skin-2 .vg-instructions-text {
  display: block;
  margin-right: 0;
}
.eg-matches.vg-game.vg-skin-2 .vg-intro-details {
  display: block;
  padding-right: 0; /* an earlier layer kept 92px here for a button that stood beside it */
}
.eg-matches.vg-game.vg-skin-2 .vg-mode-note {
  display: block;
  margin-top: 2px;
}
.eg-matches.vg-game.vg-skin-2 .vg-mode-note[hidden] {
  display: none;
}

/* A game a little wider than a phone's (641 to 700px): the modes, the day and the three tools with
   their words do not fit one row, and "Daily archive" went to a row of its own. The day is left
   out here: the gate ("Today's Daily") and the result have it. */
@container eg-matches (min-width: 641px) and (max-width: 700px) {
  .eg-matches.vg-game.vg-skin-2 .vg-date {
    display: none;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-mode-switch {
    margin-right: auto;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-topbar-right {
    flex-wrap: nowrap;
  }
}
@container eg-matches (max-width: 640px) {
  /* The help's button stands beside the instruction, under the tools, as a small button: its
     words are kept for a screen reader. Open, it is a full line again, over its panel. */
  .eg-matches.vg-game.vg-skin-2 .vg-instructions {
    grid-column: 1;
    grid-row: 2;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-help-toggle {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: end;
    gap: 5px;
    min-height: 38px;
    margin: 0;
    padding: 4px 9px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-help-toggle[aria-expanded="false"] .vg-help-word {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-help-toggle[aria-expanded="true"] {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-help-panel {
    grid-row: 4;
  }
  /* Practice: the topic across, then the level with "New round" beside it. */
  .eg-matches.vg-game.vg-skin-2.vg-view-practice .vg-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
  }
  .eg-matches.vg-game.vg-skin-2.vg-view-practice .vg-controls .vg-control {
    width: auto;
    min-width: 0;
  }
  .eg-matches.vg-game.vg-skin-2.vg-view-practice .vg-controls .vg-control:first-child {
    grid-column: 1 / -1;
  }
  .eg-matches.vg-game.vg-skin-2.vg-view-practice .vg-controls .vg-btn.vg-new-round {
    width: auto;
    margin: 0;
  }
  /* The round's line in two rows with both edges kept: what is matched and the clock, then the
     score and the buttons ("Back to Daily" under them). With no button to show (before Start,
     after a Daily) it is one row: what is matched, the score, the clock.
     Four columns: the score's (second row), a free one, the score's (first row), the clock's. */
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px 10px;
    min-height: 0;
    padding: 9px 10px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-actions {
    display: contents;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-progress {
    grid-column: 1 / 3;
    grid-row: 1;
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-actions .vg-timer {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
    padding: 0;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-score {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    margin-top: 2px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-guidance {
    grid-column: 2 / 5;
    grid-row: 2;
    justify-self: end;
    min-width: 0;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-buttons {
    justify-content: flex-end;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-meta .vg-btn {
    white-space: nowrap; /* a button that has no room goes to the next line whole */
  }
  /* "Restart round", "Restart practice": "Restart" here, beside "Pause". */
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-btn-more {
    display: none;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-btn.vg-back-daily {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: end;
    margin: 0;
  }
  /* The gate under the bar says when the clock starts. */
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-timer-cue {
    display: none;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-meta:not(:has(.vg-round-toolset:not(.vg-tools-pending) .vg-btn:not([hidden]))) .vg-round-guidance {
    display: none;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-meta:not(:has(.vg-round-toolset:not(.vg-tools-pending) .vg-btn:not([hidden]))) .vg-score {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    margin-top: 0;
  }
}
@container eg-matches (max-width: 310px) {
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-meta {
    column-gap: 6px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-btn.vg-play-toggle,
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-btn.vg-round-secondary {
    padding: 5px 8px;
    font-size: 14px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-buttons {
    gap: 5px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-score {
    gap: 4px;
    padding: 3px 7px;
  }
  /* No room for it in the one row: it stands under the progress. (4.12.2 to 4.14.1 left it out
     here: that was for a finished Daily, but since 4.13.0 a scored Daily has no buttons either, and
     lost it while it ran. 4.15.0: a finished round has no chip, the result has its mistakes.) */
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-round-meta:not(:has(.vg-round-toolset:not(.vg-tools-pending) .vg-btn:not([hidden]))) .vg-score {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    margin-top: 2px;
  }
}

/* 4.13.0, a narrow game: a row of the rankings has its points over what they come from, at the
   right, and the name keeps the rest of the row; the result's three numbers keep one line each. */
@container eg-matches (max-width: 640px) {
  .eg-matches.vg-game.vg-skin-2 .vg-rank-row {
    align-items: center;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-rank-figures {
    display: grid;
    justify-items: end;
    line-height: 1.25;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-rank-detail {
    font-size: 13.5px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-rank-sep {
    display: none; /* the dot between the two, when they stand one over the other */
  }
  .eg-matches.vg-game.vg-skin-2 .vg-result-value {
    font-size: clamp(18px, 7cqi, 25px);
    white-space: nowrap;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-result-stat {
    padding: 10px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eg-matches.vg-game.vg-skin-2 .vg-card,
  .eg-matches.vg-game.vg-skin-2 .vg-score.vg-score-drop,
  .eg-matches.vg-game.vg-skin-2 .vg-row-new .vg-card,
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-status,
  .eg-matches.vg-game.vg-skin-2 .vg-btn.vg-start-round {
    animation: none !important;
    transition: none !important;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-card.vg-is-selected,
  .eg-matches.vg-game.vg-skin-2 .vg-card:hover {
    transform: none !important;
  }
}

/* 4.12.0: the round's numbers in a small bar at the top of the window, while a round runs and its
   own bar has scrolled out of sight (the script makes it, as a child of the page's body, and sets
   where it stands). Planks laid, pairs matched, the clock, the score. */
.eg-matches-mini {
  position: fixed;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid #cfe0c6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 22px rgba(35, 59, 23, 0.18);
  color: #1f2c1e;
  font-family: var(--eg-sans, inherit);
  font-size: 14.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  animation: eg-matches-mini-in 0.18s ease;
}
.eg-matches-mini[hidden] { display: none; }
@keyframes eg-matches-mini-in {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.eg-matches-mini__planks {
  display: inline-flex;
  gap: 2px;
}
.eg-matches-mini__planks i {
  display: block;
  width: 9px;
  height: 7px;
  border: 1px dashed #b9c6ab;
  border-radius: 2px;
  box-sizing: border-box;
}
.eg-matches-mini__planks i.is-laid {
  border: 0;
  background: #c99a55;
  box-shadow: inset 0 -2px 0 #a77a3c;
}
.eg-matches-mini__count { color: #355d20; }
.eg-matches-mini__score {
  padding-left: 10px;
  border-left: 1px solid #dfe9d6;
  color: #6a7267;
  font-weight: 650;
}
@media (prefers-reduced-motion: reduce) {
  .eg-matches-mini { animation: none; }
}
@media print {
  .eg-matches-mini { display: none; }
}

/* ==== EG Matches 4.15.0: mistakes, time, points ====
   A result is its mistakes and its time, and for a scored Daily the points the two make. The tiles
   say the three; the line under them is the sum with the result's own numbers. */
.eg-matches.vg-game.vg-skin-2 .vg-result-stats[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 420px;
}
/* The points are what the other two add up to: the one filled tile. */
.eg-matches.vg-game.vg-skin-2 .vg-result-stat--points {
  border-color: var(--vg2-moss-dark);
  background: var(--vg2-moss-dark);
}
.eg-matches.vg-game.vg-skin-2 .vg-result-stat--points .vg-result-value,
.eg-matches.vg-game.vg-skin-2 .vg-result-stat--points .vg-result-label {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
.eg-matches.vg-game.vg-skin-2 .vg-result-stat--points .vg-result-label {
  opacity: 0.86;
}
.eg-matches.vg-game.vg-skin-2 .vg-points-note {
  margin: 0 0 12px;
  color: var(--vg2-ink);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* A tile is never narrower than its label ("mistakes" broke in two on a small phone). */
.eg-matches.vg-game.vg-skin-2 .vg-result-stats:not([data-count="2"]) {
  grid-template-columns: minmax(min-content, 1.2fr) minmax(min-content, 1fr) minmax(min-content, 1fr);
}
.eg-matches.vg-game.vg-skin-2 .vg-result-label {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}
@container eg-matches (max-width: 310px) {
  .eg-matches.vg-game.vg-skin-2 .vg-result-stats {
    gap: 6px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-result-stat {
    padding: 8px 7px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-result-label {
    font-size: 12.5px;
  }
}
/* Where the result is kept: a line only when there is something to say. */
.eg-matches.vg-game .vg-score-note[hidden],
.eg-matches.vg-game .vg-score-note:empty,
.eg-matches.vg-game .vg-stats-subtitle[hidden],
.eg-matches.vg-game .vg-mode-note[hidden],
.eg-matches.vg-game .vg-mode-note:empty {
  display: none;
}
.eg-matches.vg-game.vg-skin-2 .vg-score-note {
  margin: 0 0 12px;
}
/* Share, "Replay these words" and "Practice new words" in one row (a note stood between the last two). */
.eg-matches.vg-game.vg-skin-2 .vg-finish-actions {
  align-items: center;
  gap: 8px;
}
.eg-matches.vg-game.vg-skin-2 .vg-finish-actions > .vg-new-round-2 {
  margin: 0;
}
/* A result without its board (a Daily played on another device): no empty board under it. */
.eg-matches.vg-game .vg-board:has(.vg-board-gate[data-state="result"]) {
  display: none;
}

/* ==== EG Matches 4.16.0: Grammy ==== */
/* Grammy, the dog. When nothing happens she now and then turns her head to the player, tilts it,
   blinks and wags her tail (the scene's class is-looking, set by the script for 3.4 seconds).
   The face she turns is a second drawing of her head, seen from the front; it takes the place of
   the head in profile, the two squeezing past each other like a turn. */
.eg-matches.vg-game .vg-dog-face {
  transform-box: view-box;
  transform-origin: 31px 10px;
  opacity: 0;
}
.eg-matches.vg-game .vg-dog-eyes {
  transform-box: fill-box;
  transform-origin: center;
}
.eg-matches.vg-game .vg-bridge.is-looking .vg-dog-head {
  animation: vg-look-away 3400ms ease-in-out both;
}
.eg-matches.vg-game .vg-bridge.is-looking .vg-dog-face {
  animation: vg-look-here 3400ms ease-in-out both;
}
.eg-matches.vg-game .vg-bridge.is-looking .vg-dog-eyes {
  animation: vg-look-blink 3400ms linear both;
}
.eg-matches.vg-game .vg-bridge.is-looking .vg-dog-tail {
  animation: vg-wag 160ms ease-in-out 600ms 14 alternate;
}
/* At rest she stands still (4.7.0 to 4.15.1: her tail wagged every three seconds once across). */
.eg-matches.vg-game .vg-bridge.is-crossed:not(.is-cheering):not(.is-looking) .vg-dog-tail {
  animation: none;
}
@keyframes vg-look-away {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  8%, 92% { opacity: 0; transform: scaleX(0.3); }
}
@keyframes vg-look-here {
  0%, 100% { opacity: 0; transform: scaleX(0.3) rotate(0deg); }
  9% { opacity: 1; transform: scaleX(1) rotate(0deg); }
  30%, 62% { opacity: 1; transform: scaleX(1) rotate(-9deg); }
  78%, 91% { opacity: 1; transform: scaleX(1) rotate(0deg); }
}
@keyframes vg-look-blink {
  0%, 44%, 50%, 100% { transform: scaleY(1); }
  47% { transform: scaleY(0.12); }
}
@media (prefers-reduced-motion: reduce) {
  .eg-matches.vg-game .vg-bridge.is-looking .vg-dog-head,
  .eg-matches.vg-game .vg-bridge.is-looking .vg-dog-face,
  .eg-matches.vg-game .vg-bridge.is-looking .vg-dog-eyes,
  .eg-matches.vg-game .vg-bridge.is-looking .vg-dog-tail {
    animation: none;
  }
}

/* ==== EG Matches 4.17.1: a visitor joins where the result is ====
   The invitation under a visitor's Daily holds EG Account's signup form: one line of words, the
   address and "Join free" side by side, then the small print and "Already have an account? Sign
   in" on a line. (4.9.0 to 4.17.0: a line with two links to the Account page.) The form's own
   frame, title and list are not used here; its parts are set for the game's result box. */
.eg-matches.vg-game .vg-keep {
  /* not a container itself: an item of the result box's column would get its height from a width of nothing */
  margin: 0; /* the result box sets the room between its parts */
  padding: 14px 16px 13px;
  border: 1px solid #c9dcb9;
  border-radius: 12px;
  background: #ffffff;
  color: var(--vg2-text, #313b2f) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 15px;
  line-height: 1.45;
}
.eg-matches.vg-game .vg-keep .vg-keep-say {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 400;
}
.eg-matches.vg-game .vg-keep .vg-keep-say strong {
  font-weight: 700;
}
.eg-matches.vg-game .vg-keep .ega-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
/* The address and the button on the first line; everything else under them. */
.eg-matches.vg-game .vg-keep .ega-form::before {
  flex: 0 0 100%;
  order: 2;
  height: 0;
  content: "";
}
.eg-matches.vg-game .vg-keep .ega-form > .ega-field {
  flex: 1 1 200px;
  order: 1;
  max-width: 360px;
  margin: 0;
}
.eg-matches.vg-game .vg-keep .ega-form > .ega-actions {
  flex: none;
  order: 1;
  margin: 0;
}
.eg-matches.vg-game .vg-keep .ega-form > .ega-turnstile {
  flex: 0 0 100%;
  order: 2;
  margin: 0;
}
.eg-matches.vg-game .vg-keep .ega-form > .ega-turnstile.is-shown {
  margin: 4px 0;
}
.eg-matches.vg-game .vg-keep .ega-form > .ega-fine,
.eg-matches.vg-game .vg-keep .ega-form > .ega-switch {
  flex: 0 1 auto;
  order: 3;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--vg2-muted, #6a7267) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.eg-matches.vg-game .vg-keep .ega-form > .ega-status {
  flex: 0 0 100%;
  order: 4;
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
}
.eg-matches.vg-game .vg-keep .ega-form > .ega-status[hidden] {
  display: none;
}
.eg-matches.vg-game .vg-keep .ega-form .ega-field input[type="email"] {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-height: 0;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--eg-border-strong, #c9cfc2);
  border-radius: var(--vg-radius, 8px);
  background: #ffffff;
  color: var(--eg-ink, #1f2a1c);
  -webkit-text-fill-color: currentColor;
  font: inherit;
  font-size: 16px; /* no zoom on focus on a phone */
  box-shadow: none;
}
.eg-matches.vg-game .vg-keep .ega-form .ega-field input[type="email"]:focus-visible {
  outline: 3px solid var(--vg-focus-color, #355d20);
  outline-offset: 2px;
}
.eg-matches.vg-game .vg-keep .ega-form button.ega-button {
  width: auto;
  height: 44px;
  min-height: 0;
  margin: 0;
  padding: 0 20px;
  border: 1px solid var(--eg-pro-line, #dbb857);
  border-radius: var(--vg-radius, 8px);
  background: var(--eg-pro-gradient, linear-gradient(135deg, #fff5ce 0%, #f3cf62 100%));
  box-shadow: none;
  color: var(--eg-pro-ink, #5c430e) !important;
  -webkit-text-fill-color: var(--eg-pro-ink, #5c430e) !important;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.eg-matches.vg-game .vg-keep .ega-form button.ega-button:hover,
.eg-matches.vg-game .vg-keep .ega-form button.ega-button:focus-visible {
  border-color: var(--eg-pro-deep-line, #c9a33d);
  background: var(--eg-pro-gradient-hover, linear-gradient(135deg, #ffefb3 0%, #ecc95f 100%));
}
.eg-matches.vg-game .vg-keep .ega-form button.ega-button:focus-visible {
  outline: 3px solid var(--vg-focus-color, #355d20);
  outline-offset: 2px;
}
.eg-matches.vg-game .vg-keep .ega-form a {
  color: var(--eg-accent-strong) !important;
  -webkit-text-fill-color: currentColor !important;
  font-weight: var(--eg-weight-semibold);
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
/* A narrow game: the button under the address, as wide as it (the form is a container: EG Account's compact
   form; without that the button still goes under the address, at its own width). */
@container (max-width: 330px) {
  .eg-matches.vg-game .vg-keep .ega-form > .ega-field {
    flex-basis: 100%;
    max-width: none;
  }
  .eg-matches.vg-game .vg-keep .ega-form > .ega-actions {
    flex: 0 0 100%;
  }
  .eg-matches.vg-game .vg-keep .ega-form button.ega-button {
    width: 100%;
  }
}

/* ==== EG Matches 4.18.0: under Start, the story and the numbers ====
   Before a scored Daily the Start card says where Grammy is and how the last Daily went. That was
   one small sentence, which broke onto a second line with a word or two. Now the two are apart:
   the story as a postcard of the place, a little askew like a card pinned up, with its caption
   ("Grammy is in the orchard", "Daily 3 of 5" and the five dots of the scene's label); the
   numbers as two figures with their names. One white strip, as wide as what it holds: in a game
   of 700px or more the two stand side by side with a line between and nothing wraps; in a
   narrower game the numbers go under the story, and the caption may take two even lines. */
.eg-matches.vg-game.vg-skin-2 .vg-gate-where {
  display: grid;
  gap: 11px;
  box-sizing: border-box;
  width: fit-content;
  max-width: min(100%, 400px);
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #d5e4c7;
  border-radius: 14px;
  background: #ffffff;
  text-align: left;
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-story {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
/* The postcard: the place's small picture in a white frame, turned a little. */
.eg-matches.vg-game.vg-skin-2 .vg-gate-story .vg-postcard {
  --vgj-pk: 0.66;
  flex: none;
  width: 84px;
  border: 3px solid #ffffff;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(35, 59, 23, 0.18), 0 5px 10px -4px rgba(35, 59, 23, 0.45);
  transform: rotate(-3deg);
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-story-text {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 0;
  color: var(--vg2-text);
  -webkit-text-fill-color: currentColor;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-story-text b {
  color: var(--vg2-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-story-day {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--vg2-moss);
  -webkit-text-fill-color: currentColor;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-story-day .vg-journey-pips {
  gap: 4px;
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-story-day .vg-journey-pips i {
  width: 9px;
  height: 9px;
  background: #dfe8d5;
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-story-day .vg-journey-pips i.is-done {
  background: var(--vg2-moss);
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-story-day .vg-journey-pips i.is-now {
  border: 2px solid var(--vg2-moss);
  background: #ffffff;
}
.eg-matches.vg-game .vg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* The numbers: under the story, after a line. */
.eg-matches.vg-game.vg-skin-2 .vg-gate-stats {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 18px;
  margin: 0;
  padding: 10px 4px 0;
  border-top: 1px solid var(--vg2-field-line);
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-stats:first-child {
  padding-top: 0;
  border-top: 0;
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-stat {
  display: grid;
  gap: 1px;
  margin: 0;
  text-align: left;
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-stat dt {
  margin: 0;
  color: var(--vg2-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-stat dd {
  margin: 0;
  color: var(--vg2-text);
  -webkit-text-fill-color: currentColor;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}
.eg-matches.vg-game.vg-skin-2 .vg-gate-stat dd b {
  color: var(--vg2-ink);
  -webkit-text-fill-color: currentColor;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
/* A game of 700px or more: side by side, a line between, every phrase on one line. */
@container eg-matches (min-width: 700px) {
  .eg-matches.vg-game.vg-skin-2 .vg-gate-where {
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: 100%;
    padding: 12px 20px 12px 14px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-gate-story-text b {
    white-space: nowrap;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-gate-stats {
    display: flex;
    flex: none;
    gap: 22px;
    padding: 2px 0 2px 22px;
    border-top: 0;
    border-left: 1px solid var(--vg2-field-line);
  }
  .eg-matches.vg-game.vg-skin-2 .vg-gate-stats:first-child {
    padding-left: 6px;
    border-left: 0;
  }
}
/* A very narrow game: the postcard over its caption, in the middle. */
@container eg-matches (max-width: 340px) {
  .eg-matches.vg-game.vg-skin-2 .vg-gate-story {
    flex-direction: column;
    gap: 9px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-gate-story-text,
  .eg-matches.vg-game.vg-skin-2 .vg-gate-stat {
    justify-items: center;
    text-align: center;
  }
}

/* ==== EG Matches 4.14.0: the journey ====
   Every scored Daily a player finishes is one bridge. Five bridges make a place, and a place is one
   day's walk: its first bridge at dawn, the second by day, then afternoon, sunset and night. After
   the fifth bridge the next Daily is in the next place: ten places, from the meadow to the coast,
   then round again. The script (journeyAt) counts the finished Dailies this browser or the account
   holds and names the place and the hour on .vg-bridge: vg-place-<name>, vg-time-<hour>,
   vg-trip-<1 to 4>. Nothing is stored for it, and a day without a Daily costs nothing.

   The scene, from the back: the hour's sky (the scene's own background), .vg-bridge-sky (sun, moon,
   stars, clouds), .vg-bridge-far and .vg-bridge-near (the place: small SVG pictures, kept as data
   URIs in custom properties at the end of this block), the water and the cliffs, then
   .vg-bridge-tint, the hour's light, multiplied over all of that. The deck, the dog and the label
   stand over the light, so they read the same at any hour. */
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-bridge-scene {
  --vgj-k: 1; /* the pictures' size: 1 in a wide game, smaller in a narrow one */
  --vgj-ground: 20px; /* where the pictures stand: just under the water's edge */
  isolation: isolate;
  overflow: hidden;
  background: var(--vgj-sky, linear-gradient(180deg, #f3f9f4 0%, #e9f4ea 100%));
}
/* The hills of 4.7.0: each place has its own now. */
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-bridge-scene::before {
  content: none;
}
.eg-matches.vg-game.vg-skin-2 .vg-bridge-sky,
.eg-matches.vg-game.vg-skin-2 .vg-bridge-far,
.eg-matches.vg-game.vg-skin-2 .vg-bridge-near,
.eg-matches.vg-game.vg-skin-2 .vg-bridge-tint {
  position: absolute;
  right: 0;
  left: 0;
  pointer-events: none;
}
.eg-matches.vg-game.vg-skin-2 .vg-bridge-sky {
  top: 0;
  bottom: 0;
  background: var(--vgj-orbs, none);
}
.eg-matches.vg-game.vg-skin-2 .vg-bridge-far {
  bottom: var(--vgj-ground);
  height: calc(46px * var(--vgj-k));
  background: var(--vgj-far, none) repeat-x 0 100% / auto 100%;
}
.eg-matches.vg-game.vg-skin-2 .vg-bridge-near {
  bottom: var(--vgj-ground);
  height: calc(58px * var(--vgj-k));
  background:
    var(--vgj-mark, none) no-repeat 69% 100% / auto calc(var(--vgj-mark-h, 40px) * var(--vgj-k)),
    var(--vgj-near, none) repeat-x 46px 100% / auto calc(34px * var(--vgj-k));
}
.eg-matches.vg-game.vg-skin-2 .vg-bridge-tint {
  top: 0;
  bottom: 0;
  background: var(--vgj-light, transparent);
  mix-blend-mode: multiply;
}
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-bridge-water {
  border-radius: 0;
  background: var(--vgj-water, linear-gradient(180deg, #d8ebe5 0%, #bfdad1 100%));
}
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-bridge-cliff::before {
  border-radius: 0;
  background: var(--vgj-cliff, linear-gradient(180deg, #8db44f 0 6px, #6f9640 6px 8px, #cfb68c 8px, #b3966c 100%));
}
/* A frozen river has no waves. */
.eg-matches.vg-game.vg-skin-2 .vg-place-glacier .vg-bridge-water::before {
  content: none;
}

/* The hours. --vgj-light is multiplied over the sky too, so each sky is a little lighter here than it shows. */
.eg-matches.vg-game.vg-skin-2 .vg-time-dawn {
  --vgj-sky: linear-gradient(180deg, #cfe0f5 0%, #f6e4e8 50%, #ffeed2 100%);
  --vgj-light: #fff2ea;
  --vgj-orbs:
    radial-gradient(circle at 17% 46%, #fff8d9 0 7px, rgba(255, 244, 200, 0.6) 8px 12px, rgba(255, 244, 200, 0) 22px),
    var(--vgj-cloud) no-repeat 58% 16% / 30px auto;
}
.eg-matches.vg-game.vg-skin-2 .vg-time-day {
  --vgj-sky: linear-gradient(180deg, #cbe6f8 0%, #edf7f5 100%);
  --vgj-light: #ffffff;
  --vgj-orbs:
    radial-gradient(circle at 21% 26%, #fff2a8 0 7px, rgba(255, 242, 168, 0.55) 8px 11px, rgba(255, 242, 168, 0) 19px),
    var(--vgj-cloud) no-repeat 46% 12% / 34px auto,
    var(--vgj-cloud) no-repeat 62% 34% / 22px auto;
}
.eg-matches.vg-game.vg-skin-2 .vg-time-afternoon {
  --vgj-sky: linear-gradient(180deg, #d6e6f3 0%, #fdf1cf 100%);
  --vgj-light: #fff0d6;
  --vgj-orbs:
    radial-gradient(circle at 79% 30%, #ffdf85 0 7px, rgba(255, 223, 133, 0.55) 8px 12px, rgba(255, 223, 133, 0) 22px),
    var(--vgj-cloud) no-repeat 34% 16% / 32px auto;
}
.eg-matches.vg-game.vg-skin-2 .vg-time-sunset {
  --vgj-sky: linear-gradient(180deg, #b4a5d6 0%, #f3b79b 48%, #ffdca0 100%);
  --vgj-light: #f8d6c0;
  --vgj-orbs:
    radial-gradient(circle at 81% 56%, #ff9c5e 0 10px, rgba(255, 156, 94, 0.5) 11px 16px, rgba(255, 156, 94, 0) 30px),
    var(--vgj-cloud) no-repeat 30% 20% / 30px auto,
    var(--vgj-cloud) no-repeat 54% 10% / 22px auto;
}
.eg-matches.vg-game.vg-skin-2 .vg-time-night {
  --vgj-sky: linear-gradient(180deg, #2b3a70 0%, #5c6fa8 78%, #7d8fc0 100%);
  --vgj-light: #8f9cd2;
  --vgj-orbs:
    var(--vgj-moon) no-repeat 77% 16% / 15px auto,
    radial-gradient(circle at 77% 24%, rgba(255, 251, 230, 0.26) 0 12px, rgba(255, 251, 230, 0) 21px),
    radial-gradient(circle at 9% 30%, #ffffff 0 1.1px, rgba(255, 255, 255, 0) 1.6px),
    radial-gradient(circle at 19% 14%, #ffffff 0 1.3px, rgba(255, 255, 255, 0) 1.8px),
    radial-gradient(circle at 27% 38%, #ffffff 0 0.9px, rgba(255, 255, 255, 0) 1.4px),
    radial-gradient(circle at 36% 20%, #ffffff 0 1.1px, rgba(255, 255, 255, 0) 1.6px),
    radial-gradient(circle at 46% 42%, #ffffff 0 0.9px, rgba(255, 255, 255, 0) 1.4px),
    radial-gradient(circle at 58% 34%, #ffffff 0 1.2px, rgba(255, 255, 255, 0) 1.7px),
    radial-gradient(circle at 66% 12%, #ffffff 0 0.9px, rgba(255, 255, 255, 0) 1.4px),
    radial-gradient(circle at 88% 40%, #ffffff 0 1.1px, rgba(255, 255, 255, 0) 1.6px),
    radial-gradient(circle at 94% 16%, #ffffff 0 1.3px, rgba(255, 255, 255, 0) 1.8px);
}
/* The deck's empty places stand before a picture now: more solid, so they read as places for planks. */
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-plank:not(.is-laid) {
  border-color: rgba(68, 105, 49, 0.42);
  background: rgba(255, 255, 255, 0.8);
}
/* At night they are a little darker, so they do not glare. */
.eg-matches.vg-game.vg-skin-2 .vg-hud .vg-time-night .vg-plank:not(.is-laid) {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.24);
}

/* The label: the place, and its five bridges (crossed, today's, still to come). It stands on the
   water, under the deck: the sky is the hour's, and the rope crosses the middle of it. */
.eg-matches.vg-game.vg-skin-2 .vg-bridge-place {
  position: absolute;
  bottom: 3px;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(35, 59, 23, 0.16);
  color: var(--vg2-moss-dark);
  font-size: 12px;
  font-weight: 650;
  line-height: 17px;
  white-space: nowrap;
  transform: translateX(-50%);
}
.eg-matches.vg-game.vg-skin-2 .vg-bridge-place[hidden] {
  display: none;
}
.eg-matches.vg-game.vg-skin-2 .vg-bridge-pips,
.eg-matches.vg-game.vg-skin-2 .vg-journey-pips {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.eg-matches.vg-game.vg-skin-2 .vg-bridge-pips i,
.eg-matches.vg-game.vg-skin-2 .vg-journey-pips i {
  display: block;
  box-sizing: border-box;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d3ddc8;
}
.eg-matches.vg-game.vg-skin-2 .vg-bridge-pips i.is-done,
.eg-matches.vg-game.vg-skin-2 .vg-journey-pips i.is-done {
  background: var(--vg2-moss);
}
.eg-matches.vg-game.vg-skin-2 .vg-bridge-pips i.is-now {
  border: 1.5px solid var(--vg2-moss);
  background: #ffffff;
}

/* A second, third and fourth time round: the pennant on the far post changes colour. */
.eg-matches.vg-game.vg-skin-2 .vg-trip-2 .vg-bridge-cliff-end .vg-bridge-post::after { border-right-color: #d9544a; }
.eg-matches.vg-game.vg-skin-2 .vg-trip-3 .vg-bridge-cliff-end .vg-bridge-post::after { border-right-color: #4a86c9; }
.eg-matches.vg-game.vg-skin-2 .vg-trip-4 .vg-bridge-cliff-end .vg-bridge-post::after { border-right-color: #8a63b8; }

/* A place as a small picture: on the result and in the Stats panel. */
.eg-matches.vg-game.vg-skin-2 .vg-postcard {
  --vgj-pk: 0.7;
  position: relative;
  display: block;
  height: calc(78px * var(--vgj-pk));
  border-radius: 8px;
  overflow: hidden;
  background:
    var(--vgj-mark, none) no-repeat 50% calc(100% - 18px * var(--vgj-pk)) / auto calc(var(--vgj-mark-h, 40px) * var(--vgj-pk)),
    var(--vgj-near, none) repeat-x 30% calc(100% - 18px * var(--vgj-pk)) / auto calc(34px * var(--vgj-pk)),
    var(--vgj-far, none) repeat-x 60% calc(100% - 18px * var(--vgj-pk)) / auto calc(46px * var(--vgj-pk)),
    linear-gradient(180deg, #cbe6f8 0%, #edf7f5 100%);
  box-shadow: inset 0 0 0 1px rgba(35, 59, 23, 0.16);
  forced-color-adjust: none;
}
.eg-matches.vg-game.vg-skin-2 .vg-postcard::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(20px * var(--vgj-pk));
  background: var(--vgj-water, #bfdad1);
  box-shadow: inset 0 0 0 1px rgba(35, 59, 23, 0.16);
}

/* On the result of a scored Daily: the place, its bridges, the place that comes next, and a line that says it. */
.eg-matches.vg-game.vg-skin-2 .vg-journey {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 16px;
  padding: 12px 14px;
  border: 1px solid #d5e4c7;
  border-radius: 12px;
  background: #ffffff;
}
.eg-matches.vg-game.vg-skin-2 .vg-journey[hidden] {
  display: none;
}
.eg-matches.vg-game.vg-skin-2 .vg-journey-way {
  display: flex;
  align-items: center;
  gap: 9px;
}
.eg-matches.vg-game.vg-skin-2 .vg-journey .vg-postcard {
  --vgj-pk: 0.62;
  flex: 0 0 auto;
  width: 78px;
}
.eg-matches.vg-game.vg-skin-2 .vg-journey .vg-postcard.is-ahead {
  filter: grayscale(1);
  opacity: 0.5;
}
.eg-matches.vg-game.vg-skin-2 .vg-journey-pips {
  gap: 5px;
}
.eg-matches.vg-game.vg-skin-2 .vg-journey-pips i {
  width: 11px;
  height: 11px;
  background: #e1e9d7;
}
.eg-matches.vg-game.vg-skin-2 .vg-journey-text {
  margin: 0;
  color: var(--vg2-text);
  -webkit-text-fill-color: currentColor;
  font-size: 15px;
  line-height: 1.45;
}
.eg-matches.vg-game.vg-skin-2 .vg-journey-text b {
  color: var(--vg2-ink);
  font-weight: 700;
}
.eg-matches.vg-game.vg-skin-2 .vg-journey-pips i.is-new {
  animation: vgj-pip 620ms cubic-bezier(0.2, 0.7, 0.3, 1.4) 1100ms both;
}
.eg-matches.vg-game.vg-skin-2 .vg-journey .vg-postcard.is-new {
  animation: vgj-card 720ms cubic-bezier(0.2, 0.7, 0.3, 1.3) 1500ms both;
}
@keyframes vgj-pip {
  0% { background: #e1e9d7; transform: scale(0.6); }
  60% { transform: scale(1.5); }
  100% { transform: scale(1); }
}
@keyframes vgj-card {
  0% { filter: grayscale(1); opacity: 0.5; transform: scale(0.94); }
  60% { filter: grayscale(0); opacity: 1; transform: scale(1.08); }
  100% { filter: grayscale(0); opacity: 1; transform: scale(1); }
}


/* In the Stats panel: the ten places, those reached in colour. */
.eg-matches.vg-game.vg-skin-2 .vg-trip {
  margin: 0 0 var(--eg-space-4, 16px);
}
.eg-matches.vg-game.vg-skin-2 .vg-trip-places {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 10px;
}
.eg-matches.vg-game.vg-skin-2 .vg-trip-place {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.eg-matches.vg-game.vg-skin-2 .vg-trip-place .vg-postcard {
  margin-bottom: 4px;
}
.eg-matches.vg-game.vg-skin-2 .vg-trip-name {
  color: var(--vg2-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}
.eg-matches.vg-game.vg-skin-2 .vg-trip-state {
  color: var(--vg2-muted);
  font-size: 13px;
  line-height: 1.3;
}
.eg-matches.vg-game.vg-skin-2 .vg-trip-place.is-ahead .vg-postcard {
  filter: grayscale(1);
  opacity: 0.45;
}
.eg-matches.vg-game.vg-skin-2 .vg-trip-place.is-ahead .vg-trip-name {
  color: var(--vg2-muted);
  font-weight: 500;
}
.eg-matches.vg-game.vg-skin-2 .vg-trip-place.is-here .vg-postcard {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--vg2-moss);
}
.eg-matches.vg-game.vg-skin-2 .vg-trip-place.is-here .vg-trip-state {
  color: var(--vg2-moss-dark);
  font-weight: 650;
}
.eg-matches.vg-game.vg-skin-2 .vg-trip-note {
  margin: 12px 0 0;
  color: var(--vg2-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 13.5px;
}

@container eg-matches (max-width: 640px) {
  .eg-matches.vg-game.vg-skin-2 .vg-trip-places {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .eg-matches.vg-game.vg-skin-2 .vg-journey {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* The scene is 66px high up to 640px (4.12.0), but kept its full-size cliffs and dog down to 460px:
   the dog's ears touched the top edge. The smaller cliffs, deck and dog from 640px down. */
@container eg-matches (max-width: 640px) {
  .eg-matches.vg-game.vg-skin-2 .vg-hud .vg-bridge-scene {
    --vg-cliff-h: 34px;
    --vg-deck-h: 7px;
    --vg-walker-w: 30px;
    --vg-walker-h: 23px;
    --vg-edge: 6px;
    --vgj-k: 0.84;
    --vgj-ground: 19px;
  }
}
@container eg-matches (max-width: 460px) {
  .eg-matches.vg-game.vg-skin-2 .vg-bridge-place {
    bottom: 2px;
    gap: 6px;
    padding: 0 8px 0 9px;
    font-size: 11.5px;
    line-height: 16px;
  }
  .eg-matches.vg-game.vg-skin-2 .vg-bridge-pips i {
    width: 6px;
    height: 6px;
  }
}
@container eg-matches (max-width: 340px) {
  .eg-matches.vg-game.vg-skin-2 .vg-trip-places {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .eg-matches.vg-game.vg-skin-2 .vg-journey-pips i.is-new,
  .eg-matches.vg-game.vg-skin-2 .vg-journey .vg-postcard.is-new {
    animation: none !important;
  }
}

/* The pictures: for each place, far (repeats), near (repeats), mark (one landmark) and the colours
   of its water and its cliffs. Drawn as SVG, 46, 34 and up to 56 units high. */
.eg-matches.vg-game.vg-skin-2 .vg-place-meadow {
  --vgj-far: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='46' viewBox='0 0 420 46'%3E%3Cpath d='M0 46V28C40 14 90 10 140 22c40 10 80 8 120-4 50-14 110-8 160 10V46z' fill='%23d6e8bd'/%3E%3Cpath d='M0 46V36c50-8 110-10 170-2 80 10 160 8 250 2V46z' fill='%23c3dda4'/%3E%3C/svg%3E");
  --vgj-near: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='34' viewBox='0 0 260 34'%3E%3Cellipse cx='30' cy='35' rx='24' ry='11' fill='%23a9d07f'/%3E%3Cellipse cx='60' cy='36' rx='15' ry='8' fill='%239bc66f'/%3E%3Cellipse cx='152' cy='36' rx='28' ry='10' fill='%23a9d07f'/%3E%3Cellipse cx='216' cy='35' rx='19' ry='12' fill='%239bc66f'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='22' cy='28' r='1.5'/%3E%3Ccircle cx='38' cy='30' r='1.5'/%3E%3Ccircle cx='148' cy='29' r='1.5'/%3E%3Ccircle cx='222' cy='27' r='1.5'/%3E%3C/g%3E%3Cg fill='%23f4d35e'%3E%3Ccircle cx='30' cy='27' r='1.5'/%3E%3Ccircle cx='162' cy='30' r='1.5'/%3E%3Ccircle cx='210' cy='29' r='1.5'/%3E%3Ccircle cx='64' cy='31' r='1.3'/%3E%3C/g%3E%3Cg fill='none' stroke='%238dbb62' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M96 34l-2-7M99 34l1-9M102 34l3-6M118 34l-1-6M121 34l3-7'/%3E%3C/g%3E%3C/svg%3E");
  --vgj-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='62' height='48' viewBox='0 0 62 48'%3E%3Cpath d='M28 48c1-7 1-13 0-20h6c-1 7-1 13 1 20z' fill='%239a7650'/%3E%3Ccircle cx='31' cy='17' r='15' fill='%2382b45a'/%3E%3Ccircle cx='17' cy='24' r='11' fill='%2382b45a'/%3E%3Ccircle cx='46' cy='24' r='11' fill='%237aad53'/%3E%3Ccircle cx='26' cy='12' r='9' fill='%2393c36b'/%3E%3Ccircle cx='15' cy='22' r='6' fill='%2393c36b'/%3E%3C/svg%3E");
  --vgj-mark-h: 48px;
  --vgj-water: linear-gradient(180deg, #cfeae4 0%, #b3d9cf 100%);
  --vgj-cliff: linear-gradient(180deg, #8db44f 0 6px, #6f9640 6px 8px, #cfb68c 8px, #b3966c 100%);
  --vgj-card: #b9d99a;
}
.eg-matches.vg-game.vg-skin-2 .vg-place-orchard {
  --vgj-far: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='46' viewBox='0 0 420 46'%3E%3Cpath d='M0 46V30C70 16 150 14 220 22s140 14 200 8V46z' fill='%23dbeac2'/%3E%3Cg fill='%23c4dba6'%3E%3Ccircle cx='15' cy='35' r='3.4'/%3E%3Ccircle cx='45' cy='37' r='3.4'/%3E%3Ccircle cx='75' cy='35' r='3.4'/%3E%3Ccircle cx='105' cy='37' r='3.4'/%3E%3Ccircle cx='135' cy='35' r='3.4'/%3E%3Ccircle cx='165' cy='37' r='3.4'/%3E%3Ccircle cx='195' cy='35' r='3.4'/%3E%3Ccircle cx='225' cy='37' r='3.4'/%3E%3Ccircle cx='255' cy='35' r='3.4'/%3E%3Ccircle cx='285' cy='37' r='3.4'/%3E%3Ccircle cx='315' cy='35' r='3.4'/%3E%3Ccircle cx='345' cy='37' r='3.4'/%3E%3Ccircle cx='375' cy='35' r='3.4'/%3E%3Ccircle cx='405' cy='37' r='3.4'/%3E%3C/g%3E%3C/svg%3E");
  --vgj-near: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='34' viewBox='0 0 240 34'%3E%3Crect x='28.5' y='18' width='3' height='16' fill='%2396744c'/%3E%3Ccircle cx='30' cy='15.5' r='11.5' fill='%2384b760'/%3E%3Ccircle cx='27' cy='12.5' r='7' fill='%2397c773'/%3E%3Cg fill='%23dc5548'%3E%3Ccircle cx='25' cy='18.5' r='1.7'/%3E%3Ccircle cx='34' cy='13.5' r='1.7'/%3E%3Ccircle cx='32' cy='21.5' r='1.7'/%3E%3Ccircle cx='29' cy='9.5' r='1.5'/%3E%3C/g%3E%3Crect x='88.5' y='18' width='3' height='16' fill='%2396744c'/%3E%3Ccircle cx='90' cy='17' r='10' fill='%2384b760'/%3E%3Ccircle cx='87' cy='14' r='5.5' fill='%2397c773'/%3E%3Cg fill='%23dc5548'%3E%3Ccircle cx='85' cy='20' r='1.7'/%3E%3Ccircle cx='94' cy='15' r='1.7'/%3E%3Ccircle cx='92' cy='23' r='1.7'/%3E%3Ccircle cx='89' cy='11' r='1.5'/%3E%3C/g%3E%3Crect x='148.5' y='18' width='3' height='16' fill='%2396744c'/%3E%3Ccircle cx='150' cy='15.5' r='11.5' fill='%2384b760'/%3E%3Ccircle cx='147' cy='12.5' r='7' fill='%2397c773'/%3E%3Cg fill='%23dc5548'%3E%3Ccircle cx='145' cy='18.5' r='1.7'/%3E%3Ccircle cx='154' cy='13.5' r='1.7'/%3E%3Ccircle cx='152' cy='21.5' r='1.7'/%3E%3Ccircle cx='149' cy='9.5' r='1.5'/%3E%3C/g%3E%3Crect x='208.5' y='18' width='3' height='16' fill='%2396744c'/%3E%3Ccircle cx='210' cy='17' r='10' fill='%2384b760'/%3E%3Ccircle cx='207' cy='14' r='5.5' fill='%2397c773'/%3E%3Cg fill='%23dc5548'%3E%3Ccircle cx='205' cy='20' r='1.7'/%3E%3Ccircle cx='214' cy='15' r='1.7'/%3E%3Ccircle cx='212' cy='23' r='1.7'/%3E%3Ccircle cx='209' cy='11' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  --vgj-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='42' viewBox='0 0 58 42'%3E%3Cpath d='M4 42V20l8-11 17-7 17 7 8 11v22z' fill='%23cf5b4c'/%3E%3Cpath d='M2 21l9-13 18-8 18 8 9 13-3 1-8-11-16-7-16 7-8 11z' fill='%238e3f37'/%3E%3Cpath d='M21 42V25h16v17z' fill='%23b74a3d'/%3E%3Cpath d='M21 25h16v17H21zM21 25l16 17M37 25L21 42' fill='none' stroke='%23fff' stroke-width='1.3'/%3E%3Crect x='25.5' y='11' width='7' height='6' fill='%23fff'/%3E%3C/svg%3E");
  --vgj-mark-h: 42px;
  --vgj-water: linear-gradient(180deg, #cfe9df 0%, #b0d6c8 100%);
  --vgj-cliff: linear-gradient(180deg, #9cc35c 0 6px, #7ba144 6px 8px, #cdae80 8px, #af8d60 100%);
  --vgj-card: #bfdc9c;
}
.eg-matches.vg-game.vg-skin-2 .vg-place-village {
  --vgj-far: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='46' viewBox='0 0 420 46'%3E%3Cpath d='M0 46V26C60 10 130 14 190 26s150 12 230 0V46z' fill='%23d8e6c8'/%3E%3Cpath d='M110 46c36-15 86-19 136-11 40 6 70 7 104 11z' fill='%23ebe8bb'/%3E%3Cpath d='M0 46V38c50-6 90-6 130 0s70 6 110 2 110-8 180-2V46z' fill='%23c9ddb1'/%3E%3C/svg%3E");
  --vgj-near: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='34' viewBox='0 0 300 34'%3E%3Crect x='8' y='21' width='20' height='13' fill='%23f5ecd9'/%3E%3Cpath d='M6 21L18 12L30 21z' fill='%23c9704f'/%3E%3Cpath d='M11 24h3.400v4h-3.400zM21.6 24h3.400v4h-3.400z' fill='%237f93aa'/%3E%3Crect x='16' y='27' width='4' height='7' fill='%239a6a48'/%3E%3Crect x='30' y='18' width='14' height='16' fill='%23ecdcc0'/%3E%3Cpath d='M28 18L37 10L46 18z' fill='%23b95d41'/%3E%3Cpath d='M35.3 21h3.400v4h-3.400z' fill='%237f93aa'/%3E%3Ccircle cx='58' cy='24' r='8' fill='%238fbd68'/%3E%3Crect x='57' y='28' width='2' height='6' fill='%2396744c'/%3E%3Crect x='112' y='22' width='16' height='12' fill='%23f1e2c8'/%3E%3Cpath d='M110 22L120 14L130 22z' fill='%23c9704f'/%3E%3Cpath d='M115 25h3.400v4h-3.400zM121.6 25h3.400v4h-3.400z' fill='%237f93aa'/%3E%3Crect x='130' y='19' width='22' height='15' fill='%23f7efe0'/%3E%3Cpath d='M128 19L141 9L154 19z' fill='%23b95d41'/%3E%3Cpath d='M133 22h3.400v4h-3.400zM145.6 22h3.400v4h-3.400z' fill='%237f93aa'/%3E%3Crect x='139' y='27' width='4' height='7' fill='%237f5a40'/%3E%3Ccircle cx='170' cy='26' r='7' fill='%239cc777'/%3E%3Crect x='169' y='29' width='2' height='5' fill='%2396744c'/%3E%3Crect x='226' y='21' width='18' height='13' fill='%23ecdcc0'/%3E%3Cpath d='M224 21L235 12L246 21z' fill='%23c9704f'/%3E%3Cpath d='M229 24h3.400v4h-3.400zM237.6 24h3.400v4h-3.400z' fill='%237f93aa'/%3E%3Crect x='233' y='27' width='4' height='7' fill='%239a6a48'/%3E%3Crect x='248' y='23' width='14' height='11' fill='%23f5ecd9'/%3E%3Cpath d='M246 23L255 16L264 23z' fill='%23b95d41'/%3E%3Cpath d='M253.3 26h3.400v4h-3.400z' fill='%237f93aa'/%3E%3Ccircle cx='284' cy='27' r='6' fill='%238fbd68'/%3E%3Crect x='283' y='30' width='2' height='4' fill='%2396744c'/%3E%3C/svg%3E");
  --vgj-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Crect x='22' y='30' width='34' height='22' fill='%23f7efe0'/%3E%3Cpath d='M20 30L39 18l19 12z' fill='%23b95d41'/%3E%3Crect x='6' y='20' width='16' height='32' fill='%23f1e6d2'/%3E%3Cpath d='M4 20L14 0l10 20z' fill='%23a9533a'/%3E%3Cpath d='M14 0v-0' stroke='none'/%3E%3Crect x='12' y='25' width='4' height='6' rx='2' fill='%237f93aa'/%3E%3Ccircle cx='14' cy='38' r='2.6' fill='%23fff' stroke='%238b7a66' stroke-width='0.8'/%3E%3Cg fill='%237f93aa'%3E%3Crect x='28' y='36' width='4' height='8' rx='2'/%3E%3Crect x='37' y='36' width='4' height='8' rx='2'/%3E%3Crect x='46' y='36' width='4' height='8' rx='2'/%3E%3C/g%3E%3Crect x='11' y='45' width='6' height='7' rx='3' fill='%238a5f43'/%3E%3C/svg%3E");
  --vgj-mark-h: 52px;
  --vgj-water: linear-gradient(180deg, #cbe6ec 0%, #a9d0dc 100%);
  --vgj-cliff: linear-gradient(180deg, #8db44f 0 6px, #6f9640 6px 8px, #cdc3b0 8px, #a9a08d 100%);
  --vgj-card: #c3dba6;
}
.eg-matches.vg-game.vg-skin-2 .vg-place-pines {
  --vgj-far: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='46' viewBox='0 0 360 46'%3E%3Cpath d='M0 46V34c60-8 120-10 180-4s120 8 180 4V46z' fill='%23d3e3cc'/%3E%3Cpath d='M-2 46L5 12.3L12 46zM12.4 46L19.4 12.1L26.4 46zM23.2 46L30.2 13.2L37.2 46zM37.4 46L44.4 25.2L51.4 46zM49.3 46L56.3 11.2L63.3 46zM65.9 46L72.9 18L79.9 46zM76.8 46L83.8 17.8L90.8 46zM90.4 46L97.4 14.3L104.4 46zM104.1 46L111.1 19.7L118.1 46zM115.9 46L122.9 13.2L129.9 46zM128.4 46L135.4 18.8L142.4 46zM140.4 46L147.4 14.8L154.4 46zM156.3 46L163.3 20.6L170.3 46zM166.7 46L173.7 11.3L180.7 46zM179.5 46L186.5 19.2L193.5 46zM193.8 46L200.8 24.4L207.8 46zM205.5 46L212.5 16.7L219.5 46zM221.1 46L228.1 24.7L235.1 46zM233.4 46L240.4 12.1L247.4 46zM245.1 46L252.1 17.1L259.1 46zM258.4 46L265.4 21.3L272.4 46zM272 46L279 15.3L286 46zM284.2 46L291.2 23.6L298.2 46zM299.5 46L306.5 16.6L313.5 46zM310.5 46L317.5 11.1L324.5 46zM323.9 46L330.9 23.3L337.9 46zM336 46L343 12.2L350 46zM350.4 46L357.4 18.6L364.4 46z' fill='%23c2d8bd'/%3E%3Cpath d='M-2.5 46L5 32L12.5 46zM14.3 46L21.8 29.1L29.3 46zM32 46L39.5 30.4L47 46zM49.1 46L56.6 24.3L64.1 46zM65.3 46L72.8 25.3L80.3 46zM82.8 46L90.3 32.7L97.8 46zM99 46L106.5 24.4L114 46zM118.7 46L126.2 30.7L133.7 46zM136.2 46L143.7 27.1L151.2 46zM152.1 46L159.6 31.1L167.1 46zM166.7 46L174.2 30L181.7 46zM185.4 46L192.9 25.7L200.4 46zM202.4 46L209.9 28L217.4 46zM219.8 46L227.3 26.1L234.8 46zM236.3 46L243.8 32.9L251.3 46zM254.2 46L261.7 30.9L269.2 46zM270.9 46L278.4 32.8L285.9 46zM286.8 46L294.3 34L301.8 46zM304.9 46L312.4 29.2L319.9 46zM322.9 46L330.4 26.9L337.9 46zM338.9 46L346.4 25.6L353.9 46z' fill='%23aecdaa'/%3E%3C/svg%3E");
  --vgj-near: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='34' viewBox='0 0 220 34'%3E%3Crect x='12.8' y='30' width='2.4' height='4' fill='%236b4f35'/%3E%3Cpath d='M14 18.6L23.5 30.4H4.5z' fill='%233e774c'/%3E%3Cpath d='M14 13.1L21.6 23.6H6.4z' fill='%233e774c'/%3E%3Cpath d='M14 9.1L19.3 17.6H8.7z' fill='%233e774c'/%3E%3Crect x='38.8' y='29.1' width='2.4' height='4.9' fill='%236b4f35'/%3E%3Cpath d='M40 14.9L51 29.5H29z' fill='%234a8557'/%3E%3Cpath d='M40 8.1L48.8 21.1H31.2z' fill='%234a8557'/%3E%3Cpath d='M40 3.2L46.2 13.7H33.8z' fill='%234a8557'/%3E%3Crect x='60.8' y='30' width='2.4' height='4' fill='%236b4f35'/%3E%3Cpath d='M62 18.6L71.5 30.4H52.5z' fill='%233e774c'/%3E%3Cpath d='M62 13.1L69.6 23.5H54.4z' fill='%233e774c'/%3E%3Cpath d='M62 9.1L67.3 17.6H56.7z' fill='%233e774c'/%3E%3Crect x='106.8' y='28.8' width='2.4' height='5.2' fill='%236b4f35'/%3E%3Cpath d='M108 14L119 29.2H97z' fill='%234a8557'/%3E%3Cpath d='M108 6.9L116.8 20.5H99.2z' fill='%234a8557'/%3E%3Cpath d='M108 1.8L114.2 12.7H101.8z' fill='%234a8557'/%3E%3Crect x='130.8' y='29.1' width='2.4' height='4.9' fill='%236b4f35'/%3E%3Cpath d='M132 15L141.5 29.5H122.5z' fill='%233e774c'/%3E%3Cpath d='M132 8.3L139.6 21.1H124.4z' fill='%233e774c'/%3E%3Cpath d='M132 3.4L137.3 13.8H126.7z' fill='%233e774c'/%3E%3Crect x='174.8' y='29.8' width='2.4' height='4.2' fill='%236b4f35'/%3E%3Cpath d='M176 17.7L187 30.2H165z' fill='%234a8557'/%3E%3Cpath d='M176 11.9L184.8 22.9H167.2z' fill='%234a8557'/%3E%3Cpath d='M176 7.7L182.2 16.6H169.8z' fill='%234a8557'/%3E%3Crect x='196.8' y='29.5' width='2.4' height='4.5' fill='%236b4f35'/%3E%3Cpath d='M198 16.6L207.5 29.9H188.5z' fill='%233e774c'/%3E%3Cpath d='M198 10.5L205.6 22.2H190.4z' fill='%233e774c'/%3E%3Cpath d='M198 6L203.3 15.5H192.7z' fill='%233e774c'/%3E%3C/svg%3E");
  --vgj-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='40' viewBox='0 0 56 40'%3E%3Cg fill='%23fff' opacity='.85'%3E%3Ccircle cx='43' cy='9' r='3'/%3E%3Ccircle cx='47' cy='4' r='2.2'/%3E%3C/g%3E%3Crect x='40' y='12' width='5' height='10' fill='%238a7566'/%3E%3Crect x='6' y='22' width='44' height='18' fill='%23b07d4f'/%3E%3Cg stroke='%2396673f' stroke-width='1'%3E%3Cpath d='M6 26.5h44M6 31h44M6 35.500h44'/%3E%3C/g%3E%3Cpath d='M2 23L28 8l26 15z' fill='%236c5038'/%3E%3Crect x='12' y='27' width='8' height='7' fill='%23ffe59a'/%3E%3Cpath d='M16 27v7M12 30.500h8' stroke='%2396673f' stroke-width='0.9'/%3E%3Crect x='32' y='28' width='7' height='12' fill='%237d5536'/%3E%3C/svg%3E");
  --vgj-mark-h: 40px;
  --vgj-water: linear-gradient(180deg, #c2e2d8 0%, #9dcdbf 100%);
  --vgj-cliff: linear-gradient(180deg, #74a04d 0 6px, #577f3a 6px 8px, #ad977a 8px, #8d775a 100%);
  --vgj-card: #a9cba5;
}
.eg-matches.vg-game.vg-skin-2 .vg-place-lake {
  --vgj-far: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='46' viewBox='0 0 480 46'%3E%3Cpath d='M0 46V30C60 20 110 16 170 24s120 10 180 0 90-4 130 6V46z' fill='%23cddded'/%3E%3Cpath d='M0 46V38c80-8 160-8 240-2s160 6 240 2V46z' fill='%23b9cfe2'/%3E%3Cpath d='M0 46V42q4.500-4 9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0t9 0V46z' fill='%23a9c8a4'/%3E%3C/svg%3E");
  --vgj-near: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='34' viewBox='0 0 300 34'%3E%3Cpath d='M14 34Q15.5 23 16.1 12M20 34Q19 20 18.6 6M27 34Q29 24.5 29.8 15M34 34Q34.6 21.5 34.8 9M42 34Q40.4 25.5 39.8 17M206 34Q204.6 24 204 14M213 34Q214 20.5 214.4 7M221 34Q220.4 22.5 220.2 11M229 34Q230.8 25 231.5 16' fill='none' stroke='%237f9148' stroke-width='1.300' stroke-linecap='round'/%3E%3Cpath d='M16.1 16.5L16.4 12M18.6 10.5L18.4 6M29.8 19.5L30.2 15M34.8 13.5L34.9 9M39.8 21.5L39.5 17M204 18.5L203.7 14M214.4 11.5L214.6 7M220.2 15.5L220.1 11M231.5 20.5L231.9 16' fill='none' stroke='%2374512f' stroke-width='2.800' stroke-linecap='round'/%3E%3Cg fill='none' stroke='%2393a65a' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M50 34l2-8M55 34l-1-6M198 34l-2-7M236 34l2-9'/%3E%3C/g%3E%3C/svg%3E");
  --vgj-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='44' viewBox='0 0 46 44'%3E%3Cpath d='M22 3v32' stroke='%237a5a3c' stroke-width='1.6'/%3E%3Cpath d='M24 5c10 8 15 17 17 28H24z' fill='%23fff'/%3E%3Cpath d='M20 9C13 16 8 24 5 33h15z' fill='%23f4ead2'/%3E%3Cpath d='M2 35h42l-6 8H9z' fill='%23c9573f'/%3E%3Cpath d='M2 35h42l-1.500 2H3.500z' fill='%23fff'/%3E%3Cpath d='M22 3l8 2.500-8 2.500z' fill='%23d9b44a'/%3E%3C/svg%3E");
  --vgj-mark-h: 44px;
  --vgj-water: linear-gradient(180deg, #c3e2f3 0%, #97c8e7 100%);
  --vgj-cliff: linear-gradient(180deg, #8db44f 0 6px, #6f9640 6px 8px, #cfbd99 8px, #b29d78 100%);
  --vgj-card: #a7d0ea;
}
.eg-matches.vg-game.vg-skin-2 .vg-place-mountains {
  --vgj-far: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='46' viewBox='0 0 480 46'%3E%3Cpath d='M0 46V34L40 18l22 10L96 4l30 22 18-8 36 20 26-18 34 16L276 8l34 24 22-10 40 18 30-22 38 20 40-4V46z' fill='%23bac7d7'/%3E%3Cpath d='M96 4l30 22-12 8zM276 8l34 24-14 6zM40 18l22 10-10 8zM402 18l38 20-18 2zM206 20l34 16-16 4z' fill='%23a6b5c9'/%3E%3Cpath d='M96 4L107.7 13L103.2 10.5L99.2 13.4L95.1 10.3L90.8 13.4L87.5 10.7L84.3 13z' fill='%23fff'/%3E%3Cpath d='M276 8L286.4 16L282.4 13.8L278.9 16.3L275.2 13.6L271.4 16.3L268.5 13.9L265.6 16z' fill='%23fff'/%3E%3Cpath d='M40 18L46.5 23L44 21.6L41.8 23.2L39.5 21.5L37.1 23.2L35.3 21.7L33.5 23z' fill='%23fff'/%3E%3Cpath d='M402 18L409.8 24L406.8 22.3L404.2 24.2L401.4 22.2L398.5 24.2L396.4 22.4L394.2 24z' fill='%23fff'/%3E%3Cpath d='M206 20L212.5 25L210 23.6L207.8 25.2L205.5 23.5L203.1 25.2L201.3 23.7L199.5 25z' fill='%23fff'/%3E%3C/svg%3E");
  --vgj-near: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='34' viewBox='0 0 300 34'%3E%3Cpath d='M0 34V26l22-9 20 8 26-13 24 12 30-6 26 10 30-12 28 9 34-7 30 9 30-3V34z' fill='%23a9b4ae'/%3E%3Cpath d='M42 25l26-13 8 4-12 5 4 6zM148 28l30-12 9 3-14 5 3 6z' fill='%2396a29c'/%3E%3Crect x='16.8' y='31.3' width='2.4' height='2.7' fill='%236b4f35'/%3E%3Cpath d='M18 23.5L24 31.7H12z' fill='%234f7d64'/%3E%3Cpath d='M18 19.8L22.8 26.9H13.2z' fill='%234f7d64'/%3E%3Cpath d='M18 17.1L21.4 22.8H14.6z' fill='%234f7d64'/%3E%3Crect x='94.8' y='31.5' width='2.4' height='2.5' fill='%236b4f35'/%3E%3Cpath d='M96 24.2L102 31.9H90z' fill='%235c8a70'/%3E%3Cpath d='M96 20.8L100.8 27.4H91.2z' fill='%235c8a70'/%3E%3Cpath d='M96 18.2L99.4 23.6H92.6z' fill='%235c8a70'/%3E%3Crect x='116.8' y='30.3' width='2.4' height='3.7' fill='%236b4f35'/%3E%3Cpath d='M118 19.8L124 30.7H112z' fill='%234f7d64'/%3E%3Cpath d='M118 14.8L122.8 24.4H113.2z' fill='%234f7d64'/%3E%3Cpath d='M118 11.1L121.4 18.9H114.6z' fill='%234f7d64'/%3E%3Crect x='204.8' y='31.6' width='2.4' height='2.4' fill='%236b4f35'/%3E%3Cpath d='M206 24.7L212 32H200z' fill='%235c8a70'/%3E%3Cpath d='M206 21.4L210.8 27.7H201.2z' fill='%235c8a70'/%3E%3Cpath d='M206 19L209.4 24.1H202.6z' fill='%235c8a70'/%3E%3Crect x='260.8' y='31.1' width='2.4' height='2.9' fill='%236b4f35'/%3E%3Cpath d='M262 22.8L268 31.5H256z' fill='%234f7d64'/%3E%3Cpath d='M262 18.8L266.8 26.4H257.2z' fill='%234f7d64'/%3E%3Cpath d='M262 15.9L265.4 22.1H258.6z' fill='%234f7d64'/%3E%3C/svg%3E");
  --vgj-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='38' viewBox='0 0 52 38'%3E%3Cpath d='M46 4v18' stroke='%237a5a3c' stroke-width='1.4'/%3E%3Cpath d='M46 4l-9 3 9 3z' fill='%23d9534a'/%3E%3Crect x='8' y='26' width='34' height='12' fill='%23bdb7ab'/%3E%3Crect x='8' y='20' width='34' height='7' fill='%23b07d4f'/%3E%3Cpath d='M4 21L25 8l21 13z' fill='%237a5a44'/%3E%3Cpath d='M4 21L25 8l21 13-3 .2L25 10.500 7 21.200z' fill='%23fff'/%3E%3Crect x='14' y='22' width='6' height='5' fill='%23ffe59a'/%3E%3Crect x='30' y='22' width='6' height='5' fill='%23ffe59a'/%3E%3Crect x='22' y='29' width='6' height='9' fill='%237d5536'/%3E%3C/svg%3E");
  --vgj-mark-h: 38px;
  --vgj-water: linear-gradient(180deg, #c8ece9 0%, #a1d8d3 100%);
  --vgj-cliff: linear-gradient(180deg, #86aa5e 0 5px, #68894a 5px 7px, #bcb8ad 7px, #98948c 100%);
  --vgj-card: #b9c9d9;
}
.eg-matches.vg-game.vg-skin-2 .vg-place-glacier {
  --vgj-far: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='46' viewBox='0 0 480 46'%3E%3Cpath d='M0 46V30L30 22l26 8L92 8l28 20 24-6 30 14 30-20 28 10L262 12l30 18 28-8 34 14 36-22 30 14 30-8 30 10V46z' fill='%23e6f0f8'/%3E%3Cpath d='M92 8l28 20-10 10zM262 12l30 18-12 10zM390 14l30 14-14 8zM204 16l28 10-12 8zM30 22l26 8-10 8z' fill='%23cfe1ef'/%3E%3Cpath d='M0 46V40c40-5 80-5 120-1s80 5 120 1 80-5 120-1 80 4 120 1V46z' fill='%23f3f8fc'/%3E%3C/svg%3E");
  --vgj-near: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='34' viewBox='0 0 280 34'%3E%3Cpath d='M6 34l4-14 12-5 9 7 3 12z' fill='%23f4f9fd'/%3E%3Cpath d='M22 15l9 7 3 12h-8z' fill='%23c4dced'/%3E%3Cpath d='M40 34l3-8 9-2 6 10z' fill='%23eaf3fa'/%3E%3Cpath d='M52 24l6 10h-5z' fill='%23c4dced'/%3E%3Cpath d='M120 34l2-11 8-9 12 4 6 16z' fill='%23f4f9fd'/%3E%3Cpath d='M130 14l12 4 6 16h-10z' fill='%23c4dced'/%3E%3Cpath d='M196 34l5-10 10-3 8 13z' fill='%23eaf3fa'/%3E%3Cpath d='M211 21l8 13h-6z' fill='%23c4dced'/%3E%3Cpath d='M236 34l3-16 10-6 10 8 4 14z' fill='%23f4f9fd'/%3E%3Cpath d='M249 12l10 8 4 14h-9z' fill='%23c4dced'/%3E%3Crect x='82.8' y='30.8' width='2.4' height='3.2' fill='%236b4f35'/%3E%3Cpath d='M84 21.6L91 31.2H77z' fill='%235d8a72'/%3E%3Cpath d='M84 17.2L89.6 25.6H78.4z' fill='%235d8a72'/%3E%3Cpath d='M84 14L87.9 20.8H80.1z' fill='%235d8a72'/%3E%3Cpath d='M84 14l3.500 5h-7zM84 19.500l5 6.500h-10z' fill='%23fff' opacity='.9'/%3E%3Crect x='168.8' y='31.6' width='2.4' height='2.4' fill='%236b4f35'/%3E%3Cpath d='M170 24.7L175.5 32H164.5z' fill='%235d8a72'/%3E%3Cpath d='M170 21.4L174.4 27.7H165.6z' fill='%235d8a72'/%3E%3Cpath d='M170 19L173.1 24.1H166.9z' fill='%235d8a72'/%3E%3Cpath d='M170 19l3 4.500h-6z' fill='%23fff' opacity='.9'/%3E%3C/svg%3E");
  --vgj-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='30' viewBox='0 0 50 30'%3E%3Cpath d='M40 2v22' stroke='%236f7f8f' stroke-width='1.3'/%3E%3Cpath d='M40 2l-8 2.500 8 2.500z' fill='%23d9534a'/%3E%3Cpath d='M2 30L18 8l18 22z' fill='%23f29a45'/%3E%3Cpath d='M18 8l18 22H24z' fill='%23d97c2a'/%3E%3Cpath d='M18 16l5 14h-9z' fill='%2354402f'/%3E%3Cpath d='M0 30h46' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  --vgj-mark-h: 30px;
  --vgj-water: linear-gradient(112deg, rgba(255, 255, 255, 0) 0 48%, rgba(255, 255, 255, 0.8) 48% 50%, rgba(255, 255, 255, 0) 50%) 0 0 / 118px 100%, linear-gradient(64deg, rgba(255, 255, 255, 0) 0 60%, rgba(160, 196, 219, 0.4) 60% 61.500%, rgba(255, 255, 255, 0) 61.500%) 37px 0 / 171px 100%, linear-gradient(180deg, #e9f5fa 0%, #d3e8f3 100%);
  --vgj-cliff: linear-gradient(180deg, #ffffff 0 6px, #d3e5f0 6px 8px, #a3b4c4 8px, #8798ab 100%);
  --vgj-card: #e3eff7;
}
.eg-matches.vg-game.vg-skin-2 .vg-place-canyon {
  --vgj-far: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='46' viewBox='0 0 480 46'%3E%3Cdefs%3E%3ClinearGradient id='s' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23efc7a4'/%3E%3Cstop offset='.5' stop-color='%23efc7a4'/%3E%3Cstop offset='.5' stop-color='%23e6b58f'/%3E%3Cstop offset='.72' stop-color='%23e6b58f'/%3E%3Cstop offset='.72' stop-color='%23eec2a0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 46V30h18l6-14h54l6 10h30l8 8h40l6-20h70l8 14h36l6 8h46l6-12h50l6 8h44l4-6h20l6 4h10V46z' fill='url(%23s)'/%3E%3Cpath d='M24 16h54l1.500 2.500H23zM168 14h70l1.500 2.500H167zM340 24h50l1.500 2.500H339z' fill='%23f6d9bd'/%3E%3C/svg%3E");
  --vgj-near: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='34' viewBox='0 0 320 34'%3E%3Cpath d='M10 34l2-12 3-10h7l3 9 4 13z' fill='%23d1906a'/%3E%3Cpath d='M22 12l3 9 4 13h-6z' fill='%23bd7a55'/%3E%3Cpath d='M36 34l2-9h6l3 9z' fill='%23c98660'/%3E%3Cpath d='M150 34l3-16 2-6h8l3 8 3 14z' fill='%23d1906a'/%3E%3Cpath d='M163 12l3 8 3 14h-6z' fill='%23bd7a55'/%3E%3Cpath d='M236 34l3-8 2-12h7l2 10 5 10z' fill='%23c98660'/%3E%3Cpath d='M248 14l2 10 5 10h-6z' fill='%23b6734f'/%3E%3Cpath d='M262 34l2-6h6l2 6z' fill='%23d1906a'/%3E%3Cg fill='none' stroke='%2378a266' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M76 34V18'/%3E%3Cpath d='M76 26.8h-4.500v-4.500M76 24.4h4.500v-5'/%3E%3C/g%3E%3Cg fill='none' stroke='%2378a266' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M112 34V23'/%3E%3Cpath d='M112 29.05h-4.500v-4.500M112 27.4h4.500v-5'/%3E%3C/g%3E%3Cg fill='none' stroke='%2378a266' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M198 34V20'/%3E%3Cpath d='M198 27.7h-4.500v-4.500M198 25.6h4.500v-5'/%3E%3C/g%3E%3Cg fill='none' stroke='%2378a266' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M294 34V22'/%3E%3Cpath d='M294 28.6h-4.500v-4.500M294 26.8h4.500v-5'/%3E%3C/g%3E%3C/svg%3E");
  --vgj-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='46' viewBox='0 0 84 46'%3E%3Cpath d='M2 46V20l6-10 14-6h34l16 6 8 12v24H62V28c0-9-8-14-19-14S22 19 22 28v18z' fill='%23cf8a61'/%3E%3Cpath d='M56 4l16 6 8 12v24H68V26c0-8-4-14-12-18z' fill='%23b86f4b'/%3E%3Cpath d='M8 10l14-6h34l4 1.500-36 1.500z' fill='%23e4a57c'/%3E%3Cpath d='M2 28h20M62 30h18M4 38h18M62 39h18' stroke='%23b86f4b' stroke-width='1.2' opacity='.7'/%3E%3C/svg%3E");
  --vgj-mark-h: 46px;
  --vgj-water: linear-gradient(180deg, #d3e6cd 0%, #a9ccb3 100%);
  --vgj-cliff: linear-gradient(180deg, #dea172 0 5px, #b9744b 5px 7px, #d18d62 7px 16px, #c07a52 16px 19px, #d18d62 19px 27px, #b9744b 27px 30px, #c98459 30px);
  --vgj-card: #ecc19c;
}
.eg-matches.vg-game.vg-skin-2 .vg-place-town {
  --vgj-far: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='46' viewBox='0 0 420 46'%3E%3Cpath d='M0 46V30h14v-6h10v6h16V20h6v-6h4v6h6v10h18v-8l8-6 8 6v8h14V24h20v6h12V12h4V6h2v6h4v18h16v-6h18v6h10c0-8 6-14 14-14s14 6 14 14h12V22h16v8h14v-8l6-5 6 5v8h16V18h8v12h18v-6h14v6h14h10V16h10v14h16v-8h12v8h14v-4h16V46z' fill='%23dedbe5'/%3E%3C/svg%3E");
  --vgj-near: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='34' viewBox='0 0 300 34'%3E%3Cpath d='M6 34V15l7.5-6 7.5 6V34z' fill='%23ecd3ad'/%3E%3Cpath d='M5 16l8.5-7 8.5 7' fill='none' stroke='%237d6c75' stroke-width='2'/%3E%3Cpath d='M9 19h3v4h-3zM15 19h3v4h-3zM9 26h3v4h-3zM15 26h3v4h-3z' fill='%236f7f99'/%3E%3Cpath d='M21 34V11l6.5-5 6.5 5V34z' fill='%23e2bba6'/%3E%3Cpath d='M20 12l7.5-6 7.5 6' fill='none' stroke='%237d6c75' stroke-width='2'/%3E%3Cpath d='M24 15h3v4h-3zM24 22h3v4h-3z' fill='%236f7f99'/%3E%3Cpath d='M34 34V17l8-7 8 7V34z' fill='%23cfd9e2'/%3E%3Cpath d='M33 18l9-8 9 8' fill='none' stroke='%236f6068' stroke-width='2'/%3E%3Cpath d='M37 21h3v4h-3zM43 21h3v4h-3z' fill='%236f7f99'/%3E%3Cpath d='M108 34V13l7-6 7 6V34z' fill='%23e9e0c9'/%3E%3Cpath d='M107 14l8-7 8 7' fill='none' stroke='%237d6c75' stroke-width='2'/%3E%3Cpath d='M111 17h3v4h-3zM117 17h3v4h-3zM111 24h3v4h-3zM117 24h3v4h-3z' fill='%236f7f99'/%3E%3Cpath d='M122 34V16l8-7 8 7V34z' fill='%23e2bba6'/%3E%3Cpath d='M121 17l9-8 9 8' fill='none' stroke='%236f6068' stroke-width='2'/%3E%3Cpath d='M125 20h3v4h-3zM131 20h3v4h-3zM125 27h3v4h-3zM131 27h3v4h-3z' fill='%236f7f99'/%3E%3Cpath d='M138 34V10l6.5-5 6.5 5V34z' fill='%23ecd3ad'/%3E%3Cpath d='M137 11l7.5-6 7.5 6' fill='none' stroke='%237d6c75' stroke-width='2'/%3E%3Cpath d='M141 14h3v4h-3zM141 21h3v4h-3z' fill='%236f7f99'/%3E%3Cpath d='M214 34V14l7.5-6 7.5 6V34z' fill='%23cfd9e2'/%3E%3Cpath d='M213 15l8.5-7 8.5 7' fill='none' stroke='%236f6068' stroke-width='2'/%3E%3Cpath d='M217 18h3v4h-3zM223 18h3v4h-3zM217 25h3v4h-3zM223 25h3v4h-3z' fill='%236f7f99'/%3E%3Cpath d='M229 34V18l7-6 7 6V34z' fill='%23e9e0c9'/%3E%3Cpath d='M228 19l8-7 8 7' fill='none' stroke='%237d6c75' stroke-width='2'/%3E%3Cpath d='M232 22h3v4h-3zM238 22h3v4h-3z' fill='%236f7f99'/%3E%3Cpath d='M243 34V12l8-7 8 7V34z' fill='%23e2bba6'/%3E%3Cpath d='M242 13l9-8 9 8' fill='none' stroke='%237d6c75' stroke-width='2'/%3E%3Cpath d='M246 16h3v4h-3zM252 16h3v4h-3zM246 23h3v4h-3zM252 23h3v4h-3z' fill='%236f7f99'/%3E%3Cg fill='%238fbd68'%3E%3Ccircle cx='72' cy='28' r='6'/%3E%3Ccircle cx='182' cy='28' r='6'/%3E%3Ccircle cx='280' cy='28' r='6'/%3E%3C/g%3E%3Cg fill='%2396744c'%3E%3Crect x='71' y='30' width='2' height='4'/%3E%3Crect x='181' y='30' width='2' height='4'/%3E%3Crect x='279' y='30' width='2' height='4'/%3E%3C/g%3E%3C/svg%3E");
  --vgj-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='54' viewBox='0 0 40 54'%3E%3Cpath d='M20 0v8' stroke='%236f6068' stroke-width='1.2'/%3E%3Cpath d='M20 0l7 2.200-7 2.200z' fill='%23d9b44a'/%3E%3Cpath d='M9 22L20 6l11 16z' fill='%236f6068'/%3E%3Crect x='10' y='22' width='20' height='32' fill='%23ddd2bd'/%3E%3Crect x='8' y='21' width='24' height='3' fill='%23c5b9a3'/%3E%3Ccircle cx='20' cy='31' r='5.500' fill='%23fff' stroke='%238b7a66' stroke-width='1'/%3E%3Cpath d='M20 27.500V31l2.500 1.500' fill='none' stroke='%2354402f' stroke-width='1' stroke-linecap='round'/%3E%3Crect x='18' y='40' width='4' height='6' rx='2' fill='%236f7f99'/%3E%3Cpath d='M16 54v-5a4 4 0 0 1 8 0v5z' fill='%238a5f43'/%3E%3C/svg%3E");
  --vgj-mark-h: 54px;
  --vgj-water: linear-gradient(180deg, #c8e0dc 0%, #9fc6c1 100%);
  --vgj-cliff: repeating-linear-gradient(180deg, transparent 0 7px, rgba(120, 108, 92, 0.28) 7px 8px), linear-gradient(180deg, #dcd5c5 0 5px, #b9b1a1 5px 7px, #c6bcaa 7px, #a89e8c 100%);
  --vgj-card: #d9d6e0;
}
.eg-matches.vg-game.vg-skin-2 .vg-place-coast {
  --vgj-far: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='46' viewBox='0 0 480 46'%3E%3Crect y='29' width='480' height='17' fill='%23b9dcf0'/%3E%3Crect y='29' width='480' height='1.500' fill='%23d6ebf7'/%3E%3Cpath d='M0 30c30-13 70-15 110-8 30 5 50 6 70 8z' fill='%23d2dfc9'/%3E%3Cpath d='M310 30c20-7 50-9 80-4 20 3 30 3 40 4z' fill='%23dde6d6'/%3E%3Cpath d='M236 29h15l-3 4.500h-9z' fill='%23fff'/%3E%3Cpath d='M243.500 13v15h-9z' fill='%23fff'/%3E%3Cpath d='M245.500 17v11h7z' fill='%23eef3f6'/%3E%3Cg fill='none' stroke='%238d99a6' stroke-width='1.200' stroke-linecap='round'%3E%3Cpath d='M148 12q3-3 6 0q3-3 6 0M170 6q2.500-2.500 5 0q2.500-2.500 5 0M392 10q3-3 6 0q3-3 6 0'/%3E%3C/g%3E%3C/svg%3E");
  --vgj-near: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='34' viewBox='0 0 300 34'%3E%3Cpath d='M0 34c20-7 44-7 66 0zM170 34c16-6 40-6 60 0z' fill='%23eedcaa'/%3E%3Cpath d='M14 34l-3-8M16 34v-10M18 34l3-9M21 34l1-6' fill='none' stroke='%23a9bd7c' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M40 34l-3-8M42 34v-10M44 34l3-9M47 34l1-6' fill='none' stroke='%23a9bd7c' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M184 34l-3-8M186 34v-10M188 34l3-9M191 34l1-6' fill='none' stroke='%23a9bd7c' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M206 34l-3-8M208 34v-10M210 34l3-9M213 34l1-6' fill='none' stroke='%23a9bd7c' stroke-width='1.3' stroke-linecap='round'/%3E%3Crect x='98' y='17' width='12' height='17' fill='%23d9534a'/%3E%3Cpath d='M101 17v17M107 17v17' stroke='%23fff' stroke-width='2.400'/%3E%3Cpath d='M96.5 17.500l7.500-9 7.500 9z' fill='%23fff'/%3E%3Crect x='113' y='17' width='12' height='17' fill='%234f8fc0'/%3E%3Cpath d='M116 17v17M122 17v17' stroke='%23fff' stroke-width='2.400'/%3E%3Cpath d='M111.5 17.500l7.500-9 7.500 9z' fill='%23fff'/%3E%3Crect x='128' y='17' width='12' height='17' fill='%23f1c84b'/%3E%3Cpath d='M131 17v17M137 17v17' stroke='%23fff' stroke-width='2.400'/%3E%3Cpath d='M126.5 17.500l7.500-9 7.500 9z' fill='%23fff'/%3E%3Cpath d='M262 34c1-5 6-8 11-7 6 0 10 3 11 7z' fill='%23c9b89d'/%3E%3Cpath d='M273 27c6 0 10 3 11 7h-7z' fill='%23b3a184'/%3E%3C/svg%3E");
  --vgj-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='56' viewBox='0 0 40 56'%3E%3Cpath d='M4 56c2-6 8-9 16-9s14 3 16 9z' fill='%23c2b095'/%3E%3Cpath d='M12 50l3-34h10l3 34z' fill='%23fff'/%3E%3Cpath d='M14.200 26h11.600l.700 8H13.500zM12.700 42h14.600l.700 8H12z' fill='%23d9534a'/%3E%3Crect x='12' y='14' width='16' height='2.500' fill='%2354606c'/%3E%3Crect x='15' y='7' width='10' height='7' fill='%23ffe59a'/%3E%3Cpath d='M20 7v7' stroke='%2354606c' stroke-width='1'/%3E%3Cpath d='M13.500 7.500L20 1l6.500 6.500z' fill='%23d9534a'/%3E%3Cpath d='M25 10.500l14-4v8z' fill='%23ffe59a' opacity='.55'/%3E%3C/svg%3E");
  --vgj-mark-h: 56px;
  --vgj-water: linear-gradient(180deg, #a6d6f0 0%, #74b9e0 100%);
  --vgj-cliff: linear-gradient(180deg, #efdca8 0 6px, #d6be82 6px 8px, #dbc89e 8px, #c0aa7b 100%);
  --vgj-card: #9fd0ec;
}
.eg-matches.vg-game.vg-skin-2 {
  --vgj-cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16' viewBox='0 0 40 16'%3E%3Cpath d='M6 14a5 5 0 0 1 1.2-9.8A8 8 0 0 1 22 3a6.4 6.4 0 0 1 10.6 4A4 4 0 0 1 33 14z' fill='%23ffffff'/%3E%3C/svg%3E");
  --vgj-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M10.500 1.400A7 7 0 1 0 14.600 10.400A5.600 5.600 0 0 1 10.500 1.400z' fill='%23fffbe6'/%3E%3C/svg%3E");
}
/* ==== end of the journey ==== */

/* ==== 4.30.0: WhatsApp in the result's share menu ====
   Named, as Copy is: a chat bubble and the word. On a narrow screen, where the menu is squares, the
   bubble alone (its name is in the link's label). */
.eg-matches.vg-game .vg-share-menu > .vg-share-whatsapp {
  width: auto; padding: 0 10px !important; gap: 6px;
  font-size: var(--eg-text-body); line-height: var(--eg-leading); font-weight: var(--eg-weight-semibold);
  color: #0d6b5b !important; -webkit-text-fill-color: #0d6b5b !important;
}
.eg-matches.vg-game .vg-share-compact > .vg-share-whatsapp {
  width: var(--eg-share-size); padding: 0 !important; gap: 0;
}
.eg-matches .vg-share-compact .vg-share-whatsapp span { display: none; }
@media (forced-colors: active) {
  .eg-matches.vg-game .vg-share-menu > .vg-share-whatsapp { color: LinkText !important; -webkit-text-fill-color: LinkText !important; }
}
/* ==== end of 4.30.0 ==== */
