/* template:ecwonmy */
/**
 * Motion: single prefers-reduced-motion block at file end.
 * Breakpoints (rem only): 36 / 40 / 48 / 56 / 64 / 80.
 */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap");

/* =============================================================================
   1. Tokens
   ============================================================================= */
:root {
  --color-primary: #0b5232;
  --color-accent: #39846b;
  --color-surface: #f8fafc;
  --color-text: #1c1c1c;
  --color-background: #ffffff;
  --color-highlight: #234439;
  --color-on-primary: #fff;
  --color-success: #22c55e;
  --color-error: #ef4444;
  --color-live: #22c55e;
  --font-heading: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-size-base: 16px;
  --space-unit: 9px;
  --radius-base: 14px;
  --border-width: 1px;
  --shadow-sm: 0 4px 24px
    color-mix(in srgb, var(--color-accent) 22%, transparent);
  --container-max-w: 76rem;
  --prose-line-height: 1.72;
  --table-header-bg: color-mix(
    in srgb,
    var(--color-primary) 18%,
    var(--color-surface)
  );
  --table-border: color-mix(
    in srgb,
    var(--color-accent) 35%,
    var(--color-surface)
  );
  --list-marker-color: var(--color-accent);
  --list-gap: 0.55rem;
  --casino-bg-image: url("https://images.unsplash.com/photo-1596838132738-32404f177bef?auto=format&fit=crop&w=1920&q=80");
  --casino-bg-overlay: linear-gradient(
    165deg,
    color-mix(in srgb, var(--color-surface) 88%, transparent) 0%,
    color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)) 45%,
    color-mix(in srgb, var(--color-surface) 94%, transparent) 100%
  );
  --casino-neon-glow: 0 0 28px
    color-mix(in srgb, var(--color-primary) 55%, transparent);
  --token-primary: var(--color-primary);
  --token-accent: var(--color-accent);
  --token-surface: var(--color-surface);
  --token-background: var(--color-background);
  --token-highlight: var(--color-highlight);
  --shell-stack-site-header: 1000;
  --shell-stack-hero-base: 0;
  --shell-stack-nav-flyout: 100;
  /* Form tokens */
  --form-field-height: 48px;
  --form-field-height-sm: 44px;
  --form-radius: var(--radius-base);
  --form-border: color-mix(in srgb, var(--color-text) 22%, transparent);
  --form-border-focus: color-mix(
    in srgb,
    var(--color-accent) 62%,
    var(--color-text)
  );
  --form-bg: color-mix(in srgb, var(--color-surface) 58%, transparent);
  --form-focus-ring: 0 0 0 3px
    color-mix(in srgb, var(--color-accent) 35%, transparent);
  --form-gap: calc(var(--space-unit) * 1.15);
  /* Button tokens */
  --btn-height: var(--form-field-height);
  --btn-height-sm: var(--form-field-height-sm);
  --btn-radius: var(--radius-base);
  --btn-radius-pill: 999px;
  --btn-pad-y: calc(var(--space-unit) * 1.35);
  --btn-pad-x: calc(var(--space-unit) * 2.5);
  --btn-font-weight: 600;
  --btn-transition:
    filter 160ms ease, transform 160ms ease, box-shadow 160ms ease,
    background 160ms ease;
  --btn-primary-bg: linear-gradient(
    160deg,
    color-mix(in srgb, var(--color-primary) 85%, white),
    color-mix(in srgb, var(--color-primary) 55%, var(--color-surface))
  );
  --btn-primary-border: color-mix(
    in srgb,
    var(--color-primary) 40%,
    var(--color-accent)
  );
  --btn-accent-bg: linear-gradient(
    135deg,
    var(--color-accent),
    color-mix(in srgb, var(--color-primary) 55%, var(--color-accent))
  );
  --btn-ghost-bg: color-mix(
    in srgb,
    var(--color-primary) 8%,
    var(--color-surface)
  );
  --btn-ghost-border: color-mix(in srgb, var(--color-primary) 45%, transparent);
  --btn-secondary-bg: color-mix(in srgb, var(--color-accent) 11%, transparent);
  --btn-secondary-border: color-mix(
    in srgb,
    var(--color-accent) 38%,
    transparent
  );
  /* Listing tokens (also set on .m-template-ecwonmy for cascade) */
  --listing-gap-sm: calc(var(--space-unit) * 1);
  --listing-gap-md: calc(var(--space-unit) * 1.35);
  --listing-gap-lg: calc(var(--space-unit) * 1.65);
  --listing-border: color-mix(
    in srgb,
    var(--color-accent) 14%,
    var(--table-border)
  );
  --listing-border-accent: color-mix(
    in srgb,
    var(--color-accent) 18%,
    var(--table-border)
  );
  --listing-border-soft: color-mix(
    in srgb,
    var(--color-accent) 12%,
    var(--table-border)
  );
  --listing-border-hover: color-mix(
    in srgb,
    var(--color-primary) 38%,
    transparent
  );
  --listing-surface: color-mix(in srgb, var(--color-surface) 92%, transparent);
  --listing-surface-elevated: color-mix(
    in srgb,
    var(--color-surface) 93%,
    transparent
  );
  --listing-transition-shell:
    border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  --listing-transition-shell-flat:
    border-color 200ms ease, box-shadow 200ms ease;
  --listing-hover-lift: translateY(-2px);
  --listing-shadow-card:
    0 1px 0 color-mix(in srgb, var(--color-accent) 14%, transparent),
    0 4px 20px color-mix(in srgb, var(--color-primary) 10%, transparent);
  --listing-shadow-card-hover:
    0 1px 0 color-mix(in srgb, var(--color-accent) 22%, transparent),
    0 12px 36px color-mix(in srgb, var(--color-primary) 16%, transparent);
  --listing-ring-focus: 2px solid
    color-mix(in srgb, var(--color-primary) 70%, transparent);
  --listing-grid-min-sm: 10rem;
  --listing-grid-min-md: 14rem;
  --listing-grid-min-lg: 18rem;

  --header-height: 64px;

  --sidebar-width: 270px;
  --sidebar-collapsed-width: 70px;
  --sidebar-bg: #f1f3f4;
  --sidebar-item-bg: #ffffff;
  --sidebar-text: #111111;
  --sidebar-muted: #777777;
  --sidebar-green: #43977f;
  --sidebar-green-dark: #174c3c;
  --sidebar-radius: 10px;
  --sidebar-transition: 0.3s ease;

  --btn-border: 1px solid rgba(255, 255, 255, 0.2);
  --btn-bg: transparent;
  --btn-shadow: 1px 1px 25px 10px rgba(255, 255, 255, 0.5);
  --btn-text-color: #f4f4f4;
  --shine-degree: 120deg;
  --shine-color: rgba(255, 255, 255, 0.5);
  --shine-effect: linear-gradient(
    var(--shine-degree),
    transparent,
    var(--shine-color),
    transparent
  );
  --shine-transition: all 1s ease-in-out;

  --banner-bg: url(/data/upload/1944250e-b947-4e2d-b6dd-1371712205bb/light-banner-logo-green.png);
  --bg-card: #ffffff;
  --glass-bg: #b2b2b226;
  --border-soft: rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.1);
  --brand-100: #0b5232;
  --brand-500: #39846b;
  --brand-700: #234439;
  --td-odd: #f6f6f6;
  --td-even: #ececec;

  --bg-theme-color: #f0f2f4;
  --bg-theme-textcolor: #000000;
}

[data-theme="dark"]:root {
  --banner-bg: url(/data/upload/1944250e-b947-4e2d-b6dd-1371712205bb/banner-logo-bg.png);
  --bg-card: #282828;
  --glass-bg: #00000026;
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
  --td-odd: #323738;
  --td-even: #45474d;
  --bg-theme-color: #202020;
  --bg-theme-textcolor: #ffffff;
}

@keyframes casino-shimmer {
  0% {
    opacity: 0.35;
    transform: translate3d(-8%, 0, 0);
  }
  50% {
    opacity: 0.55;
    transform: translate3d(8%, 0, 0);
  }
  100% {
    opacity: 0.35;
    transform: translate3d(-8%, 0, 0);
  }
}

@keyframes casino-spotlight {
  0% {
    background-position:
      12% 20%,
      88% 80%;
  }
  50% {
    background-position:
      52% 40%,
      48% 60%;
  }
  100% {
    background-position:
      12% 20%,
      88% 80%;
  }
}

@keyframes m-hub-intro-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sf-contact-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@-webkit-keyframes shine {
  0% {
    left: -100%;
    transition-property: left;
  }
  11.5044247788%,
  100% {
    left: 100%;
    transition-property: left;
  }
}
@keyframes shine {
  0% {
    left: -100%;
    transition-property: left;
  }
  11.5044247788%,
  100% {
    left: 100%;
    transition-property: left;
  }
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
}
/* =============================================================================
   2. Base + utilities
   ============================================================================= */
body.m-template-ecwonmy {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--bg-card);
  background-image: unset;
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed;
  position: relative;
  isolation: isolate;
}

body.m-template-ecwonmy::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 120% 80% at 50% -10%,
      color-mix(in srgb, var(--color-accent) 28%, transparent),
      transparent 55%
    ),
    radial-gradient(
      ellipse 90% 60% at 100% 100%,
      color-mix(in srgb, var(--color-primary) 22%, transparent),
      transparent 50%
    ),
    linear-gradient(
      105deg,
      transparent 40%,
      color-mix(in srgb, var(--color-accent) 14%, transparent) 48%,
      transparent 56%
    );
  background-size:
    100% 100%,
    100% 100%,
    200% 100%;
  animation: casino-spotlight 18s ease-in-out infinite;
}

body.m-template-ecwonmy::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background: linear-gradient(
    120deg,
    transparent 0%,
    color-mix(in srgb, var(--color-primary) 25%, transparent) 45%,
    transparent 70%
  );
  mix-blend-mode: screen;
  animation: casino-shimmer 14s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  body.m-template-ecwonmy::after {
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.m-template-ecwonmy::after {
    animation: casino-shimmer 14s ease-in-out infinite;
  }
}

.m-template-ecwonmy #main-content {
  position: relative;
  max-width: 100%;
  margin-inline: auto;
  padding: 0;
  box-sizing: border-box;
}

.m-template-ecwonmy #main-content::before {
  content: "";
  position: absolute;
  inset: calc(var(--space-unit) * -1);
  border-radius: calc(var(--radius-base) + 6px);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-accent) 55%, transparent),
    color-mix(in srgb, var(--color-primary) 45%, transparent),
    color-mix(in srgb, var(--color-accent) 40%, transparent)
  );
  opacity: 0.35;
  z-index: -1;
  filter: blur(12px);
}

.m-template-ecwonmy #page-title,
.m-template-ecwonmy .c-page h1,
.m-template-ecwonmy .prose h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  text-shadow:
    var(--casino-neon-glow),
    0 2px 0 color-mix(in srgb, var(--color-surface) 80%, transparent);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.m-template-ecwonmy .prose h2,
.m-template-ecwonmy .prose h3 {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--color-text) 92%, var(--color-accent));
}

.m-template-ecwonmy #main-content article.c-page,
.m-template-ecwonmy .c-page.prose {
  background: inherit;
  border: inherit;
  border-radius: inherit;
  box-shadow: inherit;
  padding: inherit;
  backdrop-filter: unset;
  box-sizing: inherit;
}

@media (max-width: 36rem) {
  .m-template-ecwonmy #main-content article.c-page,
  .m-template-ecwonmy .c-page.prose {
    padding-left: calc(var(--space-unit) * 3.25);
    padding-right: calc(var(--space-unit) * 3.25);
  }
}

.m-template-ecwonmy article.c-page.prose,
.m-template-ecwonmy .prose {
  color: var(--color-text);
  --prose-links: var(--color-primary);
  --prose-headings: var(--color-text);
  --prose-borders: var(--table-border);
  line-height: var(--prose-line-height);
}

.m-template-ecwonmy .prose :where(p, li, td, th, blockquote, span) {
  color: inherit;
}

.m-template-ecwonmy .prose :where(h1, h2, h3, h4) {
  color: inherit;
}

.m-template-ecwonmy .prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .m-template-ecwonmy .prose a {
    transition: none;
  }
}
.m-template-ecwonmy .prose a:hover {
  color: color-mix(in srgb, var(--color-primary) 70%, white);
  text-shadow: var(--casino-neon-glow);
}

.m-template-ecwonmy .prose img {
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius-base) - 4px);
  box-shadow: var(--shadow-sm);
}

.m-template-ecwonmy .prose blockquote {
  border-left: 4px solid var(--color-accent);
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);
  border-radius: 0 var(--radius-base) var(--radius-base) 0;
}

.m-template-ecwonmy .prose table {
  border-collapse: collapse;
  width: 100%;
}
.m-template-ecwonmy .prose th {
  border: var(--border-width) solid var(--table-border);
  padding: calc(var(--space-unit) * 1.2);
}
.m-template-ecwonmy .prose td {
  border: var(--border-width) solid var(--table-border);
  padding: calc(var(--space-unit) * 1);
}

.m-template-ecwonmy .min-touch {
  min-height: 44px;
  min-width: 44px;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  left: var(--space-unit);
  top: var(--space-unit);
  z-index: 9999;
  width: auto;
  height: auto;
  margin: 0;
  padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);
  clip-path: none;
  overflow: visible;
  white-space: normal;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-base);
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: var(--shadow-sm);
}

.m-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1100;
  background: var(--bg-theme-color);
  border: unset;
}
.m-site-header__inner {
  padding: 10px 0;
  max-width: 98.5dvw;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--space-unit) * 2);
  overflow: visible;
  box-sizing: border-box;
}

.m-site-header__left {
  display: flex;
  gap: 20px;
}
.m-site-header__right {
  display: flex;
  flex-direction: row;
}

.m-lang-zone {
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 99999;
  align-self: center;
  flex-shrink: 0;
  padding: 10px 0;
  width: 100%;
}

.m-lang-switch__list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: space-between;
  gap: 12px;
}
.m-lang-switch__link.min-touch {
  min-width: unset;
  min-height: unset;
}

.m-lang-switch__link {
  display: block;
  min-width: 2.25rem;
  border-radius: 999px;
  font-size: 12px;
  color: var(--color-white);
  padding: 6px 0;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  text-align: center;
}
.m-lang-switch__list .m-lang-switch__item {
  text-align: center;
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff1c, transparent);
  overflow: hidden;
}

.m-lang-switch__link:hover {
  color: #6bff71;
  background: linear-gradient(0deg, #ffffff26, transparent);
}
.m-lang-switch__link--active {
  color: var(--color-white);
  font-weight: 700;
  border: unset;
  pointer-events: none;
  background: var(--color-accent);
  border-radius: unset;
  width: 100%;
  height: 100%;
}

.m-lang-zone .m-lang-switch__link[href="/en"]::before,
.m-lang-zone .m-lang-switch__link[hreflang="en"]::before .m-logo-area {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--space-unit) * 1.5);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
}
.m-logo-area img {
  width: 100%;
}
.m-logo-area__text {
  font-size: calc(var(--font-size-base) + 2px);
}
.m-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--space-unit) * 1.5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-nav__link {
  font-weight: 500;
  text-decoration: none;
  color: color-mix(in srgb, var(--color-text) 94%, transparent);
  border-radius: var(--radius-base);
  padding-inline: calc(var(--space-unit) * 1.5);
}
.m-nav__link:hover {
  color: var(--color-accent);
}
.m-banner {
  position: relative;
  z-index: var(--shell-stack-hero-base);
  /* Default strip; use `.m-banner--hero` on homepage for a taller hero */
  --m-banner-height: clamp(5.5rem, 12vh, 8.5rem);
  height: var(--m-banner-height);
  max-height: 9.5rem;
  min-height: 0;
  overflow: hidden;
  border-bottom: var(--border-width) solid var(--table-border);
}
.m-banner--hero {
  --m-banner-height: clamp(10rem, 22vh, 15rem);
  max-height: 15rem;
}
.m-banner--strip {
  --m-banner-height: clamp(4.25rem, 9vh, 6.5rem);
  max-height: 6.5rem;
}
.m-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.m-banner__overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--color-surface) 55%, transparent) 0%,
    transparent 60%
  );
}
.m-banner__content {
  pointer-events: none;
  position: absolute;
  left: max(calc(var(--space-unit) * 2.25), env(safe-area-inset-left, 0px));
  right: max(calc(var(--space-unit) * 2.25), env(safe-area-inset-right, 0px));
  bottom: max(calc(var(--space-unit) * 2), env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.m-banner__kicker {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 0.8vw + 0.75rem, 1.35rem);
  color: var(--color-text);
  text-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.m-banner--strip .m-banner__kicker {
  font-size: clamp(0.8rem, 0.55vw + 0.7rem, 1rem);
}

.m-main-slot {
  max-width: none;
}
.m-band {
  padding-block: calc(var(--space-unit) * 5);
}
.m-band__inner {
  max-width: var(--container-max-w);
  margin: 0 auto;
  padding-inline: calc(var(--space-unit) * 3);
}
.m-band--muted {
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
  border-block: var(--border-width) solid var(--table-border);
}
.m-site-footer {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  border-top: var(--border-width) solid var(--table-border);
  background: var(--bg-card);
  color: var(--bg-theme-textcolor) !important;
}

body.m-template-ecwonmy #footer-contact .m-site-footer__glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--color-primary) 55%, transparent),
    color-mix(in srgb, var(--color-accent) 45%, transparent),
    transparent
  );
  pointer-events: none;
}

body.m-template-ecwonmy #footer-contact .m-site-footer__inner {
  position: relative;
  max-width: var(--container-max-w);
  margin: 0 auto;
  padding-top: calc(var(--space-unit) * 4);
  padding-bottom: max(
    calc(var(--space-unit) * 3.25),
    env(safe-area-inset-bottom, 0px)
  );
  padding-left: max(
    calc(var(--space-unit) * 3.25),
    env(safe-area-inset-left, 0px)
  );
  padding-right: max(
    calc(var(--space-unit) * 3.25),
    env(safe-area-inset-right, 0px)
  );
  box-sizing: border-box;
}

.m-site-footer__inner {
  display: none;
}

@media (min-width: 48rem) {
  body.m-template-ecwonmy
    #footer-contact
    .m-footer-zone__cols.m-site-footer__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.05fr);
    gap: calc(var(--space-unit) * 3.25);
    align-items: start;
  }
}

body.m-template-ecwonmy #footer-contact .m-site-footer__title {
  margin: 0 0 calc(var(--space-unit) * 1.35);
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

body.m-template-ecwonmy #footer-contact .m-site-footer__text {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-text) 90%, transparent);
}

body.m-template-ecwonmy #footer-contact .m-site-footer__hint {
  margin: 0 0 calc(var(--space-unit) * 1.35);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}

body.m-template-ecwonmy #footer-contact .m-site-footer__newsletter-slot {
  padding: calc(var(--space-unit) * 1.15);
  border-radius: calc(var(--radius-base) + 2px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 14%, var(--table-border));
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  box-shadow: var(--listing-shadow-card);
}

body.m-template-ecwonmy #footer-contact .m-site-footer__newsletter-slot:empty {
  display: none;
}

body.m-template-ecwonmy
  #footer-contact
  .m-site-footer__subscribe:has(.m-site-footer__newsletter-slot:empty)
  .m-site-footer__hint {
  margin-bottom: 0;
}

body.m-template-ecwonmy #footer-contact .m-site-footer__meta {
  margin-top: calc(var(--space-unit) * 3.5);
  padding-top: calc(var(--space-unit) * 2.75);
  border-top: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 12%, var(--table-border));
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 1.15);
}

@media (min-width: 40rem) {
  body.m-template-ecwonmy #footer-contact .m-site-footer__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);
  }
}

body.m-template-ecwonmy #footer-contact .m-site-footer__copyright {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.m-template-ecwonmy #footer-contact .m-site-footer__footer-html {
  margin: 0;
  flex: 2 1 18rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.m-template-ecwonmy #footer-contact .m-site-footer__footer-html:empty {
  display: none;
}

body.m-template-ecwonmy #footer-contact .m-footer-zone__links {
  gap: calc(var(--space-unit) * 1);
}

body.m-template-ecwonmy #footer-contact .m-footer-zone__link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-primary) 65%, transparent);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Region hooks (shell + content zone) */
.m-logo-zone {
  display: flex;
  align-items: center;
}

.m-menu-zone.m-nav {
  flex: 1 1 auto;
  min-width: 0;
}

/*
 * Scoped nav chrome — driven by **`menu_style_vars`** in **`setting.php`** → `#menu-nav` **`style`** (`--tp-nav-*`).
 * Fallbacks preserve previous look when vars omitted.
 */
body.m-template-ecwonmy #menu-nav.m-menu-zone {
  background: var(--tp-nav-bg, transparent);
  border: var(--border-width) solid var(--tp-nav-border, transparent);
  border-radius: var(--radius-base);
  padding-inline: calc(var(--space-unit) * 1.25);
  padding-block: calc(var(--space-unit) * 0.65);
  box-sizing: border-box;
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--color-text) 6%, transparent),
    0 12px 40px color-mix(in srgb, var(--color-primary) 14%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
}

body.m-template-ecwonmy #menu-nav.m-menu-zone .m-nav__link {
  color: var(
    --tp-nav-link,
    color-mix(in srgb, var(--color-text) 94%, transparent)
  );
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  box-sizing: border-box;
  cursor: pointer;
}

body.m-template-ecwonmy #menu-nav.m-menu-zone .m-nav__label {
  min-width: 0;
}

body.m-template-ecwonmy #menu-nav.m-menu-zone .m-nav__link img,
body.m-template-ecwonmy #menu-nav.m-menu-zone .m-nav__link svg {
  width: 1.125em;
  height: 1.125em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

body.m-template-ecwonmy #menu-nav.m-menu-zone .m-nav__link svg {
  display: inline-block;
  fill: currentColor;
}

body.m-template-ecwonmy #menu-nav.m-menu-zone .m-nav__chev {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.82;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

body.m-template-ecwonmy #menu-nav.m-menu-zone .m-nav__chev-svg {
  display: block;
}

body.m-template-ecwonmy
  #menu-nav:is([data-submenu="dropdown"], [data-submenu="none"])
  .m-nav__item--has-sub:is(:hover, :focus-within)
  .m-nav__chev,
body.m-template-ecwonmy
  #menu-nav[data-submenu="stacked"]
  .m-nav__item--has-sub:is(:hover, :focus-within)
  .m-nav__chev {
  opacity: 1;
}

body.m-template-ecwonmy #menu-nav.m-menu-zone .m-nav__link:hover {
  color: var(--tp-nav-link-hover, var(--color-accent));
}

body.m-template-ecwonmy #menu-nav.m-menu-zone .m-nav__link:focus-visible {
  outline: 2px solid var(--tp-nav-link-hover, var(--color-accent));
  outline-offset: 2px;
}

/* ----- Menu `#menu-nav`: layout + submenu — submenu panels still use `--color-*` ----- */
body.m-template-ecwonmy
  .m-site-header__inner[data-site-header-layout="vertical"] {
  flex-direction: column;
  align-items: stretch;
}

body.m-template-ecwonmy
  .m-site-header__inner[data-site-header-layout="vertical"]
  .m-menu-zone.m-nav {
  width: 100%;
}

body.m-template-ecwonmy #menu-nav[data-menu-layout="horizontal"] .m-nav__list {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: calc(var(--space-unit) * 0.5);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--color-primary) 45%, transparent)
    transparent;
  padding-bottom: calc(var(--space-unit) * 0.5);
  scroll-padding-inline: calc(var(--space-unit) * 2);
  -webkit-overflow-scrolling: touch;
}

/* `overflow-x: auto` pairs with implicit non-visible block axis and clips abs-positioned `.m-nav__sub`. */
body.m-template-ecwonmy
  #menu-nav[data-menu-layout="horizontal"]:is(
    [data-submenu="dropdown"],
    [data-submenu="none"],
    [data-submenu="stacked"]
  ) {
  overflow: visible;
}

body.m-template-ecwonmy
  #menu-nav[data-menu-layout="horizontal"]:is(
    [data-submenu="dropdown"],
    [data-submenu="none"],
    [data-submenu="stacked"]
  )
  .m-nav__list {
  overflow: visible;
  flex-wrap: wrap;
  row-gap: calc(var(--space-unit) * 0.5);
}

body.m-template-ecwonmy #menu-nav[data-menu-layout="vertical"] .m-nav__list {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow-x: visible;
  width: 100%;
  gap: calc(var(--space-unit) * 1);
}

body.m-template-ecwonmy #menu-nav[data-menu-layout="vertical"] .m-nav__link {
  width: 100%;
  box-sizing: border-box;
}

/* `data-submenu="none"` (default menu presentation) still emits nested `.m-nav__sub` from DB — share flyout hide/show with `dropdown`. */
body.m-template-ecwonmy
  #menu-nav:is([data-submenu="dropdown"], [data-submenu="none"])
  .m-nav__item--has-sub {
  position: relative;
}

body.m-template-ecwonmy
  #menu-nav:is([data-submenu="dropdown"], [data-submenu="none"])
  .m-nav__sub {
  display: block;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: var(--shell-stack-nav-flyout);
  /* Match parent item width; avoid oversized 12rem panels. */
  min-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: calc(var(--space-unit) * 0.5) 0;
  list-style: none;
  background: var(
    --tp-sub-panel-bg,
    color-mix(in srgb, var(--color-surface) 94%, transparent)
  );
  border: var(--border-width) solid
    var(--tp-sub-panel-border, var(--table-border));
  border-radius: var(--tp-sub-panel-radius, var(--radius-base));
  box-shadow: var(--tp-sub-panel-box-shadow, var(--shadow-sm));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.35rem);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

body.m-template-ecwonmy
  #menu-nav:is([data-submenu="dropdown"], [data-submenu="none"])
  .m-nav__sub
  .m-nav__item--has-sub {
  position: relative;
}

body.m-template-ecwonmy
  #menu-nav:is([data-submenu="dropdown"], [data-submenu="none"])
  .m-nav__sub
  .m-nav__item--has-sub
  > .m-nav__sub {
  left: calc(100% + var(--tp-sub-flyout-gap, 0.125rem));
  top: 0;
  z-index: 40;
}

body.m-template-ecwonmy
  #menu-nav:is([data-submenu="dropdown"], [data-submenu="none"])
  .m-nav__sub
  .m-nav__sub
  .m-nav__item--has-sub
  > .m-nav__sub {
  z-index: 50;
}

body.m-template-ecwonmy
  #menu-nav:is([data-submenu="dropdown"], [data-submenu="none"])
  .m-nav__sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.5rem;
  height: 0.5rem;
}

/* Child combinator: only the direct submenu of the hovered/focused parent opens (not deeper nested panels). */
body.m-template-ecwonmy
  #menu-nav:is([data-submenu="dropdown"], [data-submenu="none"])
  .m-nav__item--has-sub:hover
  > .m-nav__sub,
body.m-template-ecwonmy
  #menu-nav:is([data-submenu="dropdown"], [data-submenu="none"])
  .m-nav__item--has-sub:focus-within
  > .m-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

body.m-template-ecwonmy
  #menu-nav:is([data-submenu="dropdown"], [data-submenu="none"])
  .m-nav__sub__link {
  display: flex;
  align-items: center;
  /* Same rhythm as top-level `.m-nav__link` (no oversized touch row). */
  min-height: 0;
  padding-block: calc(var(--space-unit) * 0.65);
  padding-inline: calc(var(--space-unit) * 1.5);
  font-size: var(--font-size-base);
  line-height: 1.35;
  color: var(
    --tp-sub-link-color,
    color-mix(in srgb, var(--color-text) 92%, transparent)
  );
  text-decoration: none;
  font-weight: 500;
  border-radius: 0;
  transition:
    background 0.22s ease,
    color 0.22s ease;
  touch-action: manipulation;
  cursor: pointer;
}

body.m-template-ecwonmy
  #menu-nav:is([data-submenu="dropdown"], [data-submenu="none"])
  .m-nav__sub__link:focus-visible {
  outline: 2px solid var(--tp-nav-link-hover, var(--color-accent));
  outline-offset: -2px;
  background: var(
    --tp-sub-link-focus-bg,
    color-mix(in srgb, var(--color-primary) 10%, var(--color-surface))
  );
}

body.m-template-ecwonmy
  #menu-nav:is([data-submenu="dropdown"], [data-submenu="none"])
  .m-nav__sub__link:hover {
  background: var(
    --tp-sub-link-hover-bg,
    color-mix(in srgb, var(--color-primary) 16%, var(--color-surface))
  );
  color: var(--tp-sub-link-hover-color, var(--color-primary));
}

/* Stacked: submenus collapsed until parent row is hovered or contains focus (keyboard / touch). */
body.m-template-ecwonmy
  #menu-nav[data-submenu="stacked"]
  .m-nav__item--has-sub
  > .m-nav__sub {
  display: none;
}

body.m-template-ecwonmy
  #menu-nav[data-submenu="stacked"]
  .m-nav__item--has-sub:hover
  > .m-nav__sub,
body.m-template-ecwonmy
  #menu-nav[data-submenu="stacked"]
  .m-nav__item--has-sub:focus-within
  > .m-nav__sub {
  display: block;
  position: static;
  margin: calc(var(--space-unit) * 1) 0 0 calc(var(--space-unit) * 1.5);
  padding: calc(var(--space-unit) * 1) 0 calc(var(--space-unit) * 1)
    calc(var(--space-unit) * 2);
  list-style: none;
  border-left: var(--border-width) solid
    var(
      --tp-sub-stacked-rail,
      color-mix(in srgb, var(--color-primary) 55%, transparent)
    );
  background: var(
    --tp-sub-stacked-bg,
    color-mix(in srgb, var(--color-primary) 6%, var(--color-surface))
  );
  border-radius: 0 var(--radius-base) var(--radius-base) 0;
}

body.m-template-ecwonmy
  #menu-nav[data-submenu="stacked"]
  .m-nav__sub
  .m-nav__sub {
  margin-left: var(--tp-sub-stacked-nested-margin, 0.65rem);
}

body.m-template-ecwonmy #menu-nav[data-submenu="stacked"] .m-nav__sub__link {
  display: block;
  padding-block: calc(var(--space-unit) * 0.65);
  padding-inline: calc(var(--space-unit) * 1.5);
  font-size: var(--font-size-base);
  line-height: 1.35;
  color: var(
    --tp-sub-link-color,
    color-mix(in srgb, var(--color-text) 90%, transparent)
  );
  text-decoration: none;
  font-weight: 500;
}

body.m-template-ecwonmy
  #menu-nav[data-submenu="stacked"]
  .m-nav__sub__link:hover {
  color: var(--tp-sub-link-hover-color, var(--color-primary));
}

body.m-template-ecwonmy
  #menu-nav[data-submenu="stacked"]
  .m-nav__sub__link:focus-visible {
  outline: 2px solid var(--tp-nav-link-hover, var(--color-accent));
  outline-offset: 2px;
}

.m-content-zone {
  min-width: 0;
}

body.m-template-ecwonmy .m-content-zone > .m-content-block:first-child {
  margin-top: 0;
}

.m-footer-zone__cols {
  display: grid;
  gap: calc(var(--space-unit) * 4);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.m-footer-zone__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 1.25);
}

.m-footer-zone__link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.m-footer-zone__link:hover {
  color: var(--color-accent);
}

.m-footer-zone__fineprint {
  margin-top: calc(var(--space-unit) * 3);
  padding-top: calc(var(--space-unit) * 3);
  border-top: var(--border-width) solid var(--table-border);
}
.m-site-footer__title {
  font-family: var(--font-heading);
  margin: 0 0 calc(var(--space-unit) * 2);
  color: var(--color-text);
}
.m-site-footer__line {
  margin: 0;
  opacity: 0.88;
  line-height: var(--prose-line-height);
  color: color-mix(in srgb, var(--color-text) 88%, transparent);
}
.m-site-footer__label {
  font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 92%, transparent);
}
.m-site-footer__sep {
  font-weight: 600;
}
.m-site-footer__value {
  font-weight: 400;
}

/* =============================================================================
   Preview / marketing catalogue (deduped legacy c-card)
   ============================================================================= */

.m-template-ecwonmy .m-band--elevated {
  background: color-mix(in srgb, var(--color-surface) 78%, transparent);
  border-block: var(--border-width) solid var(--table-border);
  backdrop-filter: blur(8px);
}

.m-template-ecwonmy .m-band--cta {
  background: linear-gradient(
    95deg,
    color-mix(in srgb, var(--color-accent) 18%, var(--color-surface)),
    color-mix(in srgb, var(--color-primary) 12%, var(--color-surface))
  );
  border-block: var(--border-width) solid var(--table-border);
}

.m-template-ecwonmy .m-casino-section-head .m-casino-lead:last-child {
  margin-bottom: 0;
}

.m-template-ecwonmy .m-casino-h2 {
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 1.2vw + 0.95rem, 1.45rem);
  margin-block: 0 calc(var(--space-unit) * 2);
  color: var(--color-text);
}

.m-template-ecwonmy .m-casino-h2--inline {
  margin-bottom: calc(var(--space-unit) * 1);
}

.m-template-ecwonmy .m-casino-lead {
  margin: 0 0 calc(var(--space-unit) * 3);
  max-width: 55ch;
  line-height: var(--prose-line-height);
  color: color-mix(in srgb, var(--color-text) 90%, transparent);
}

.m-template-ecwonmy .m-casino-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.12em 0.35em;
  border-radius: calc(var(--radius-base) - 6px);
  background: color-mix(
    in srgb,
    var(--color-primary) 12%,
    var(--color-surface)
  );
}

.m-template-ecwonmy .m-casino-stats {
  display: grid;
  gap: calc(var(--space-unit) * 3);
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.m-template-ecwonmy .m-casino-stats__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem);
  color: color-mix(in srgb, var(--color-accent) 65%, var(--color-text));
  text-shadow: var(--casino-neon-glow);
}

.m-template-ecwonmy .m-casino-stats__suffix {
  font-size: 0.72em;
  vertical-align: super;
}

.m-template-ecwonmy .m-casino-stats__label {
  display: block;
  margin-top: calc(var(--space-unit) * 0.75);
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  font-weight: 500;
}

/* .m-casino-btn → unified .m-btn (see §5b) */

.m-template-ecwonmy .m-product-detail .m-product-detail__title {
  text-transform: none;
  letter-spacing: -0.02em;
  text-shadow: none;
  font-weight: 700;
}

/* PHP/Astro product / news / gallery / FAQ detail: hide shell `.m-page-intro` when the slot supplies its own `<h1 id="page-title">`. */
.m-template-ecwonmy article.c-page:has(.m-product-detail) .m-page-intro,
.m-template-ecwonmy article.c-page:has(.m-news-detail) .m-page-intro,
.m-template-ecwonmy article.c-page:has(.m-gallery-detail) .m-page-intro,
.m-template-ecwonmy article.c-page:has(.m-faq-detail) .m-page-intro {
  display: none;
}

.m-template-ecwonmy .m-news-detail {
  margin: 0;
}

.m-template-ecwonmy .m-gallery-detail {
  margin: 0;
}

.m-template-ecwonmy .m-faq-detail {
  margin: 0;
}

.m-template-ecwonmy .m-news-detail__crumb,
.m-template-ecwonmy .m-gallery-detail__crumb,
.m-template-ecwonmy .m-faq-detail__crumb {
  margin: 0 0 calc(var(--space-unit) * 1.5);
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
  line-height: 1.5;
}

.m-template-ecwonmy .m-news-detail__crumb a,
.m-template-ecwonmy .m-gallery-detail__crumb a,
.m-template-ecwonmy .m-faq-detail__crumb a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.m-template-ecwonmy .m-news-detail__crumb a:hover,
.m-template-ecwonmy .m-gallery-detail__crumb a:hover,
.m-template-ecwonmy .m-faq-detail__crumb a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.m-template-ecwonmy .m-news-detail__crumb-sep,
.m-template-ecwonmy .m-gallery-detail__crumb-sep,
.m-template-ecwonmy .m-faq-detail__crumb-sep {
  margin: 0 calc(var(--space-unit) * 0.45);
  opacity: 0.55;
}

.m-template-ecwonmy .m-news-detail__hero,
.m-template-ecwonmy .m-gallery-detail__hero,
.m-template-ecwonmy .m-faq-detail__hero {
  margin: 0 0 calc(var(--space-unit) * 1.75);
}

.m-template-ecwonmy .m-gallery-detail__lead {
  margin: 0 0 calc(var(--space-unit) * 1.5);
  border-radius: calc(var(--radius-base) + 3px);
  overflow: hidden;
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 16%, var(--table-border));
  box-shadow: var(--listing-shadow-card);
  background: color-mix(in srgb, var(--color-surface) 94%, #000);
}

.m-template-ecwonmy .m-gallery-detail__lead img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(58vh, 32rem);
  object-fit: cover;
}

.m-template-ecwonmy .m-gallery-detail__mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--space-unit) * 0.85);
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .m-template-ecwonmy .m-gallery-detail__mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--space-unit) * 1);
  }

  .m-template-ecwonmy .m-gallery-detail__tile--hero {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (min-width: 960px) {
  .m-template-ecwonmy .m-gallery-detail__mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.m-template-ecwonmy .m-gallery-detail__tile {
  position: relative;
  margin: 0;
  padding: 0;
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 14%, var(--table-border));
  border-radius: calc(var(--radius-base) + 2px);
  overflow: hidden;
  cursor: pointer;
  background: color-mix(in srgb, var(--color-surface) 92%, #000);
  box-shadow: var(--listing-shadow-card);
}

.m-template-ecwonmy .m-gallery-detail__tile img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition:
    transform 260ms ease,
    filter 260ms ease;
}

.m-template-ecwonmy .m-gallery-detail__tile--hero img {
  aspect-ratio: 16 / 10;
  min-height: 12rem;
}

.m-template-ecwonmy .m-gallery-detail__tile:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-primary) 55%, transparent);
  outline-offset: 2px;
}

.m-template-ecwonmy .m-gallery-detail__lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space-unit) * 1.25);
  background: color-mix(in srgb, #000 72%, transparent);
  backdrop-filter: blur(6px);
}

.m-template-ecwonmy .m-gallery-detail__lightbox[hidden] {
  display: none !important;
}

.m-template-ecwonmy body.m-gallery-detail--lightbox-open {
  overflow: hidden;
}

.m-template-ecwonmy .m-gallery-detail__lightbox-panel {
  position: relative;
  width: min(96vw, 72rem);
  max-height: 92vh;
  padding: calc(var(--space-unit) * 1.25);
  border-radius: calc(var(--radius-base) + 4px);
  background: color-mix(in srgb, var(--color-surface) 96%, #111);
  box-shadow: 0 24px 64px color-mix(in srgb, #000 45%, transparent);
}

.m-template-ecwonmy .m-gallery-detail__lightbox-close {
  position: absolute;
  top: calc(var(--space-unit) * 0.65);
  right: calc(var(--space-unit) * 0.65);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
}

.m-template-ecwonmy .m-gallery-detail__lightbox-img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 40rem);
  margin: 0 auto;
  object-fit: contain;
}

.m-template-ecwonmy .m-gallery-detail__lightbox-caption {
  margin: calc(var(--space-unit) * 0.85) 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
}

.m-template-ecwonmy .m-news-detail__cover,
.m-template-ecwonmy .m-faq-detail__cover {
  margin: 0 0 calc(var(--space-unit) * 1.5);
  border-radius: calc(var(--radius-base) + 3px);
  overflow: hidden;
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 16%, var(--table-border));
  box-shadow: var(--listing-shadow-card);
  background: color-mix(in srgb, var(--color-surface) 94%, #000);
}

.m-template-ecwonmy .m-news-detail__cover img,
.m-template-ecwonmy .m-faq-detail__cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 28rem);
  object-fit: cover;
}

.m-template-ecwonmy .m-news-detail__meta,
.m-template-ecwonmy .m-gallery-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--space-unit) * 0.65) calc(var(--space-unit) * 1.35);
  margin: 0 0 calc(var(--space-unit) * 1.15);
  padding: calc(var(--space-unit) * 0.85) calc(var(--space-unit) * 1.05);
  border-radius: calc(var(--radius-base) + 1px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 12%, var(--table-border));
  background: color-mix(in srgb, var(--color-surface) 93%, transparent);
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
}

.m-template-ecwonmy .m-news-detail__meta time,
.m-template-ecwonmy .m-gallery-detail__meta time {
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
}

.m-template-ecwonmy .m-news-detail__cat,
.m-template-ecwonmy .m-gallery-detail__cat {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.m-template-ecwonmy .m-news-detail__cat:hover,
.m-template-ecwonmy .m-gallery-detail__cat:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.m-template-ecwonmy .m-gallery-detail__count {
  font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.m-template-ecwonmy .m-news-detail__author {
  font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}

.m-template-ecwonmy .m-news-detail__title,
.m-template-ecwonmy .m-gallery-detail__title,
.m-template-ecwonmy .m-faq-detail__title {
  margin: 0 0 calc(var(--space-unit) * 1.35);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.4vw + 0.85rem, 2rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.03em;
  text-transform: none;
  text-shadow: none;
  color: var(--color-text);
}

.m-template-ecwonmy .m-news-detail__article {
  max-width: 48rem;
  margin: 0 auto;
  padding-top: calc(var(--space-unit) * 0.25);
}

.m-template-ecwonmy .m-news-detail__divider,
.m-template-ecwonmy .m-gallery-detail__divider,
.m-template-ecwonmy .m-faq-detail__divider {
  height: 3px;
  margin: 0 0 calc(var(--space-unit) * 1.75);
  border: 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-primary) 55%, transparent),
    color-mix(in srgb, var(--color-accent) 35%, transparent),
    transparent
  );
}

.m-template-ecwonmy .m-faq-detail__answer {
  margin: 0 auto;
  padding-top: calc(var(--space-unit) * 0.35);
  max-width: 48rem;
}

/* Shared Back control under news / product / FAQ detail */
.m-template-ecwonmy .m-detail-back {
  margin: calc(var(--space-unit) * 2.5) auto 0;
  padding: calc(var(--space-unit) * 0.5) 0 0;
  max-width: 48rem;
  text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
}

.m-template-ecwonmy .m-detail-back .m-btn {
  min-width: 8rem;
}

.m-template-ecwonmy .m-gallery-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--space-unit) * 1);
  margin: 0;
  padding: 0;
}

.m-template-ecwonmy .m-gallery-detail__cell {
  margin: 0;
  border-radius: calc(var(--radius-base) + 2px);
  overflow: hidden;
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 14%, var(--table-border));
  box-shadow: var(--listing-shadow-card);
  background: color-mix(in srgb, var(--color-surface) 92%, #000);
}

.m-template-ecwonmy .m-gallery-detail__cell img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.m-template-ecwonmy .m-gallery-detail__empty {
  margin: calc(var(--space-unit) * 1.5) 0 0;
  padding: calc(var(--space-unit) * 2);
  text-align: center;
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
  border-radius: calc(var(--radius-base) + 2px);
  border: var(--border-width) dashed
    color-mix(in srgb, var(--color-accent) 22%, var(--table-border));
  background: color-mix(in srgb, var(--color-surface) 91%, transparent);
}

.m-template-ecwonmy .m-product-detail__crumb {
  margin: 0 0 calc(var(--space-unit) * 1.35);
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}

.m-template-ecwonmy .m-product-detail__crumb a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.m-template-ecwonmy .m-product-detail__crumb a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.m-template-ecwonmy .m-product-detail__review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 1.15);
}

.m-template-ecwonmy .m-product-detail__review-li {
  margin: 0;
  padding: calc(var(--space-unit) * 1.1) calc(var(--space-unit) * 1.2);
  border-radius: calc(var(--radius-base) + 1px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 12%, var(--table-border));
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
}

.m-template-ecwonmy .m-product-detail__review-meta {
  margin: 0 0 calc(var(--space-unit) * 0.65);
  font-size: 0.875rem;
}

.m-template-ecwonmy .m-product-detail__review-stars {
  color: #d97706;
  letter-spacing: 0.06em;
}

.m-template-ecwonmy .m-product-detail__review-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: var(--prose-line-height);
  color: color-mix(in srgb, var(--color-text) 88%, transparent);
}

/* Product detail — marketplace-style gallery + buy box (theme tokens only) */
.m-template-ecwonmy .m-product-detail {
  margin: 0;
}

.m-template-ecwonmy .m-product-detail__layout {
  display: grid;
  gap: var(--listing-gap-lg);
  align-items: start;
}

@media (min-width: 56rem) {
  .m-template-ecwonmy .m-product-detail__layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: calc(var(--space-unit) * 2.25);
  }
}

.m-template-ecwonmy .m-product-detail__media {
  position: sticky;
  top: calc(var(--space-unit) * 2);
}

@media (max-width: 55.99rem) {
  .m-template-ecwonmy .m-product-detail__media {
    position: relative;
    top: auto;
  }
}

.m-template-ecwonmy .m-product-detail__stage {
  margin: 0;
  border-radius: calc(var(--radius-base) + 3px);
  overflow: hidden;
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 16%, var(--table-border));
  background: color-mix(in srgb, var(--color-surface) 96%, #fff);
  box-shadow: var(--listing-shadow-card);
}

.m-template-ecwonmy .m-product-detail__main-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 36rem);
  object-fit: contain;
  background: color-mix(in srgb, var(--color-surface) 98%, #fff);
}

.m-template-ecwonmy .m-product-detail__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--listing-gap-sm);
  margin: calc(var(--space-unit) * 1.35) 0 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.m-template-ecwonmy .m-product-detail__thumb {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.m-template-ecwonmy .m-product-detail__thumb-btn {
  display: block;
  padding: 3px;
  margin: 0;
  border-radius: calc(var(--radius-base) + 1px);
  border: 2px solid color-mix(in srgb, var(--color-accent) 22%, transparent);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.m-template-ecwonmy .m-product-detail__thumb-btn:hover {
  border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
}

.m-template-ecwonmy .m-product-detail__thumb-btn:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--color-primary) 22%, transparent);
}

.m-template-ecwonmy .m-product-detail__thumb-btn[aria-current="true"] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px
    color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.m-template-ecwonmy .m-product-detail__thumb-btn img {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
  border-radius: calc(var(--radius-base) - 2px);
}

.m-template-ecwonmy .m-product-detail__buybox {
  padding: calc(var(--space-unit) * 1.65) calc(var(--space-unit) * 1.85);
  border-radius: calc(var(--radius-base) + 3px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 14%, var(--table-border));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--color-surface) 96%, transparent),
    color-mix(in srgb, var(--color-surface) 88%, var(--color-primary) 6%)
  );
  box-shadow: var(--listing-shadow-card);
}

.m-template-ecwonmy .m-product-detail__title {
  margin: 0 0 calc(var(--space-unit) * 1);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.2vw + 0.85rem, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.m-template-ecwonmy .m-product-detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--space-unit) * 0.65) calc(var(--space-unit) * 1.25);
  margin: 0 0 calc(var(--space-unit) * 1.35);
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}

.m-template-ecwonmy .m-product-detail__meta-row time {
  color: color-mix(in srgb, var(--color-text) 52%, transparent);
}

.m-template-ecwonmy .m-product-detail__cat-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.m-template-ecwonmy .m-product-detail__cat-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.m-template-ecwonmy .m-product-detail__reviews-teaser {
  margin: 0 0 calc(var(--space-unit) * 1.25);
  padding: calc(var(--space-unit) * 0.85) calc(var(--space-unit) * 1);
  border-radius: var(--radius-base);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 12%, var(--table-border));
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  font-size: 0.875rem;
}

.m-template-ecwonmy .m-product-detail__reviews-teaser a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.m-template-ecwonmy .m-product-detail__reviews-teaser a:hover {
  text-decoration: underline;
}

.m-template-ecwonmy .m-product-detail__price-block {
  margin: 0 0 calc(var(--space-unit) * 1.5);
  padding: calc(var(--space-unit) * 1.15) calc(var(--space-unit) * 1.25);
  border-radius: calc(var(--radius-base) + 2px);
  background: color-mix(
    in srgb,
    var(--color-highlight, var(--color-accent)) 12%,
    var(--color-surface)
  );
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.m-template-ecwonmy .m-product-detail__price-current {
  margin: 0;
  font-size: clamp(1.45rem, 1.5vw + 0.75rem, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-accent);
}

.m-template-ecwonmy .m-product-detail__price-original {
  margin: calc(var(--space-unit) * 0.5) 0 0;
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  text-decoration: line-through;
}

.m-template-ecwonmy .m-product-detail__price-note {
  margin: calc(var(--space-unit) * 0.35) 0 0;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
}

.m-template-ecwonmy .m-product-detail__kv {
  margin: 0 0 calc(var(--space-unit) * 1.5);
  padding: 0;
  display: grid;
  gap: calc(var(--space-unit) * 0.65);
  font-size: 0.875rem;
}

.m-template-ecwonmy .m-product-detail__kv div {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 0.5);
  padding-bottom: calc(var(--space-unit) * 0.65);
  border-bottom: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 8%, var(--table-border));
}

.m-template-ecwonmy .m-product-detail__kv dt {
  flex: 0 0 5.5rem;
  margin: 0;
  font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
}

.m-template-ecwonmy .m-product-detail__kv dd {
  margin: 0;
  flex: 1 1 12rem;
  color: var(--color-text);
}

.m-template-ecwonmy .m-product-detail__stock--in {
  color: color-mix(in srgb, #15803d 85%, var(--color-text));
  font-weight: 600;
}

.m-template-ecwonmy .m-product-detail__stock--out {
  color: color-mix(in srgb, #b91c1c 88%, var(--color-text));
  font-weight: 600;
}

.m-template-ecwonmy .m-product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 1);
  margin: calc(var(--space-unit) * 1.75) 0 0;
}

.m-template-ecwonmy .m-product-detail__actions .m-casino-btn {
  min-height: 2.75rem;
  padding: calc(var(--space-unit) * 1.35) calc(var(--space-unit) * 2.25);
}

.m-template-ecwonmy .m-product-detail__trust {
  margin: calc(var(--space-unit) * 1.5) 0 0;
  padding-top: calc(var(--space-unit) * 1.25);
  border-top: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 10%, transparent);
  font-size: 0.75rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
}

.m-template-ecwonmy .m-product-detail__below {
  margin-top: calc(var(--space-unit) * 3);
  padding-top: calc(var(--space-unit) * 2);
  border-top: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 14%, var(--table-border));
}

.m-template-ecwonmy .m-product-detail__nav {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 0.5);
  margin: 0 0 calc(var(--space-unit) * 1.75);
  padding: 0;
  list-style: none;
}

.m-template-ecwonmy .m-product-detail__nav a {
  display: inline-flex;
  align-items: center;
  padding: calc(var(--space-unit) * 0.65) calc(var(--space-unit) * 1.15);
  border-radius: var(--radius-base);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 16%, transparent);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.m-template-ecwonmy .m-product-detail__nav a:hover {
  border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
  color: var(--color-primary);
}

.m-template-ecwonmy .m-product-detail__panel {
  margin-bottom: calc(var(--space-unit) * 2.5);
  scroll-margin-top: calc(var(--space-unit) * 6);
}

.m-template-ecwonmy .m-product-detail__panel-title {
  margin: 0 0 calc(var(--space-unit) * 1.15);
  padding-bottom: calc(var(--space-unit) * 0.85);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 2px solid
    color-mix(in srgb, var(--color-primary) 35%, transparent);
  color: var(--color-text);
}

.m-template-ecwonmy .m-product-detail__variants-wrap {
  overflow-x: auto;
}

.m-template-ecwonmy .m-product-detail__variants {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.m-template-ecwonmy .m-product-detail__variants th,
.m-template-ecwonmy .m-product-detail__variants td {
  padding: calc(var(--space-unit) * 0.85) calc(var(--space-unit) * 1);
  text-align: left;
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 12%, var(--table-border));
}

.m-template-ecwonmy .m-product-detail__variants thead th {
  background: color-mix(
    in srgb,
    var(--color-primary) 10%,
    var(--color-surface)
  );
  font-weight: 700;
  white-space: nowrap;
}

.m-template-ecwonmy .m-product-detail__variants tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color-surface) 96%, transparent);
}

.m-template-ecwonmy .m-product-detail__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
  margin: 0;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
}

.m-template-ecwonmy .m-product-detail__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.m-template-ecwonmy article.c-news {
  max-width: 52rem;
  padding: calc(var(--space-unit) * 3);
  border-radius: var(--radius-base);
  border: var(--border-width) solid var(--table-border);
  background: color-mix(in srgb, var(--color-surface) 70%, transparent);
}

.m-template-ecwonmy .c-news__title {
  margin: 0 0 calc(var(--space-unit) * 1);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.m-template-ecwonmy .m-casino-meta {
  margin: 0 0 calc(var(--space-unit) * 2);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
}

.m-template-ecwonmy article.c-news p {
  margin: 0 0 calc(var(--space-unit) * 2);
  line-height: var(--prose-line-height);
}

.m-template-ecwonmy article.c-news .author {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

/* Quote */
.m-template-ecwonmy .m-casino-quote {
  margin: 0;
  max-width: 48rem;
}

.m-template-ecwonmy .m-casino-quote blockquote {
  margin: 0 0 calc(var(--space-unit) * 2);
  border-left: 4px solid var(--color-accent);
  padding-left: calc(var(--space-unit) * 3);
}

.m-template-ecwonmy .m-casino-quote blockquote p {
  margin: 0;
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem);
  line-height: var(--prose-line-height);
}

.m-template-ecwonmy .m-casino-quote figcaption {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
}

/* Gallery */
.m-template-ecwonmy .m-casino-gallery {
  display: grid;
  gap: calc(var(--space-unit) * 2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}

.m-template-ecwonmy .m-casino-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-base) - 4px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 25%, transparent);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* FAQ */
.m-template-ecwonmy dl.c-faq {
  margin: 0;
  max-width: 48rem;
}

.m-template-ecwonmy dl.c-faq dt {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: calc(var(--space-unit) * 3);
  color: color-mix(in srgb, var(--color-text) 95%, var(--color-accent));
}

.m-template-ecwonmy dl.c-faq dt:first-child {
  margin-top: 0;
}

.m-template-ecwonmy dl.c-faq dd {
  margin: calc(var(--space-unit) * 1.25) 0 0;
  padding-left: calc(var(--space-unit) * 2);
  border-left: 2px solid
    color-mix(in srgb, var(--color-primary) 35%, transparent);
  line-height: var(--prose-line-height);
  color: color-mix(in srgb, var(--color-text) 88%, transparent);
}

/* Table box */
.m-template-ecwonmy .c-table-box {
  overflow-x: auto;
  border-radius: var(--radius-base);
  border: var(--border-width) solid var(--table-border);
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
}

.m-template-ecwonmy .c-table-box table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
}

.m-template-ecwonmy .c-table-box th,
.m-template-ecwonmy .c-table-box td {
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);
  border: var(--border-width) solid var(--table-border);
  text-align: start;
}

.m-template-ecwonmy .c-table-box th {
  background: var(--table-header-bg);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Timeline */
.m-template-ecwonmy .m-casino-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 36rem;
}

.m-template-ecwonmy .m-casino-timeline li {
  display: flex;
  gap: calc(var(--space-unit) * 2);
  align-items: flex-start;
  padding: calc(var(--space-unit) * 2) 0;
  border-bottom: var(--border-width) solid var(--table-border);
  line-height: var(--prose-line-height);
}

.m-template-ecwonmy .m-casino-timeline li:last-child {
  border-bottom: 0;
}

.m-template-ecwonmy .m-casino-timeline__step {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  border: var(--border-width) solid var(--color-accent);
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
}

/* Newsletter */
.m-template-ecwonmy .m-casino-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 2);
  align-items: flex-end;
  margin-top: calc(var(--space-unit) * 2);
}

.m-template-ecwonmy .m-casino-newsletter__field {
  flex: 1 1 14rem;
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 0.75);
}

.m-template-ecwonmy .m-casino-newsletter__field label {
  font-weight: 600;
  font-size: 0.875rem;
}

.m-template-ecwonmy .m-casino-newsletter__field input {
  min-height: var(--form-field-height-sm);
  padding: calc(var(--space-unit) * 1.25) calc(var(--space-unit) * 1.5);
  border-radius: var(--form-radius);
  border: var(--border-width) solid var(--form-border);
  background: var(--form-bg);
  color: var(--color-text);
  font: inherit;
}

.m-template-ecwonmy .m-casino-newsletter__field input:focus-visible {
  outline: none;
  border-color: var(--form-border-focus);
  box-shadow: var(--form-focus-ring);
}

.m-template-ecwonmy .m-casino-newsletter__hint {
  margin: calc(var(--space-unit) * 2) 0 0;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
}

/* Dual CTA */
.m-template-ecwonmy .m-casino-cta-split {
  display: grid;
  gap: calc(var(--space-unit) * 3);
  align-items: center;
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-casino-cta-split {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.m-template-ecwonmy .m-casino-cta-split p {
  margin: calc(var(--space-unit) * 1) 0 0;
  max-width: 42ch;
  line-height: var(--prose-line-height);
  color: color-mix(in srgb, var(--color-text) 88%, transparent);
}

.m-template-ecwonmy .m-casino-cta-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 2);
  justify-content: flex-start;
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-casino-cta-split__actions {
    justify-content: flex-end;
  }
}

/* Partners */
.m-template-ecwonmy ul.m-casino-partners {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 2);
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.m-template-ecwonmy .m-casino-partners__mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2.5);
  border-radius: 999px;
  border: var(--border-width) dashed
    color-mix(in srgb, var(--color-accent) 45%, transparent);
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Service pills */
.m-template-ecwonmy ul.m-casino-pill-grid {
  display: grid;
  gap: calc(var(--space-unit) * 2);
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.m-template-ecwonmy li.m-casino-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--space-unit) * 1);
  padding: calc(var(--space-unit) * 2);
  border-radius: var(--radius-base);
  border: var(--border-width) solid var(--table-border);
  background: color-mix(in srgb, var(--color-surface) 76%, transparent);
  font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 90%, transparent);
}

/* Contact + aside */
.m-template-ecwonmy .m-casino-contact {
  display: grid;
  gap: calc(var(--space-unit) * 4);
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-casino-contact {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
  }
}

.m-template-ecwonmy address.m-casino-address {
  font-style: normal;
  line-height: var(--prose-line-height);
  color: color-mix(in srgb, var(--color-text) 88%, transparent);
}

.m-template-ecwonmy .m-casino-address__link {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.m-template-ecwonmy aside.m-casino-aside {
  padding: calc(var(--space-unit) * 2.5);
  border-radius: var(--radius-base);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 30%, transparent);
  background: color-mix(in srgb, var(--color-accent) 6%, var(--color-surface));
}

.m-template-ecwonmy .m-casino-aside__title {
  margin: 0 0 calc(var(--space-unit) * 1.5);
  font-size: 0.95rem;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.m-template-ecwonmy ul.m-casino-aside__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 1.25);
}

.m-template-ecwonmy ul.m-casino-aside__list a {
  color: var(--color-primary);
  font-weight: 500;
}

body.m-template-ecwonmy ::selection {
  background: color-mix(in srgb, var(--color-highlight) 45%, transparent);
}

/* =============================================================================
   Detail layout modifiers
   ============================================================================= */

/* ── Listing layouts (lay/{product|news|faq|gallery}) — class names fixed per merchant templates ── */

/* Shared media + card body */
.m-template-ecwonmy .m-card__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-base);
  background: color-mix(
    in srgb,
    var(--color-surface) 90%,
    var(--color-primary) 10%
  );
  aspect-ratio: 4 / 3;
}

.m-template-ecwonmy .m-card__media--empty {
  display: block;
  width: 100%;
  min-height: 8rem;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-primary) 8%, var(--color-surface)),
    color-mix(in srgb, var(--color-accent) 12%, var(--color-surface))
  );
}

.m-template-ecwonmy .m-card__media--has-img {
  aspect-ratio: 4 / 3;
}

.m-template-ecwonmy .m-card__media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .m-template-ecwonmy .m-card__media-img {
    transition: none;
  }
}

.m-template-ecwonmy a:hover .m-card__media-img,
.m-template-ecwonmy a:focus-visible .m-card__media-img {
  transform: scale(1.03);
}

.m-template-ecwonmy .m-card__body {
  padding: calc(var(--space-unit) * 1.25) calc(var(--space-unit) * 1.5)
    calc(var(--space-unit) * 1.5);
}

.m-template-ecwonmy .m-card__title {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.35;
}

.m-template-ecwonmy .m-card__price {
  margin: calc(var(--space-unit) * 0.75) 0 0;
  font-weight: 600;
  color: color-mix(in srgb, var(--color-accent) 70%, var(--color-text));
}

.m-template-ecwonmy .m-card__price-was {
  margin-left: 0.35em;
  opacity: 0.55;
  font-weight: 400;
}

.m-template-ecwonmy .m-card__copy {
  margin: calc(var(--space-unit) * 0.75) 0 0;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
  line-height: var(--prose-line-height);
}

/* Storefront listings & hubs — refinement (spacing, elevation, a11y focus) */
.m-template-ecwonmy {
  --listing-gap-sm: calc(var(--space-unit) * 1);
  --listing-gap-md: calc(var(--space-unit) * 1.35);
  --listing-gap-lg: calc(var(--space-unit) * 1.65);
  --listing-border: color-mix(
    in srgb,
    var(--color-accent) 14%,
    var(--table-border)
  );
  --listing-border-accent: color-mix(
    in srgb,
    var(--color-accent) 18%,
    var(--table-border)
  );
  --listing-border-soft: color-mix(
    in srgb,
    var(--color-accent) 12%,
    var(--table-border)
  );
  --listing-border-hover: color-mix(
    in srgb,
    var(--color-primary) 38%,
    transparent
  );
  --listing-surface: color-mix(in srgb, var(--color-surface) 92%, transparent);
  --listing-surface-elevated: color-mix(
    in srgb,
    var(--color-surface) 93%,
    transparent
  );
  --listing-transition-shell:
    border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  --listing-transition-shell-flat:
    border-color 200ms ease, box-shadow 200ms ease;
  --listing-hover-lift: translateY(-2px);
  --listing-shadow-card:
    0 1px 0 color-mix(in srgb, var(--color-accent) 14%, transparent),
    0 4px 20px color-mix(in srgb, var(--color-primary) 10%, transparent);
  --listing-shadow-card-hover:
    0 1px 0 color-mix(in srgb, var(--color-accent) 22%, transparent),
    0 12px 36px color-mix(in srgb, var(--color-primary) 16%, transparent);
  --listing-ring-focus: 2px solid
    color-mix(in srgb, var(--color-primary) 70%, transparent);
}

.m-template-ecwonmy .m-product-list .m-card__link:focus-visible,
.m-template-ecwonmy .m-product-grid .m-card__link:focus-visible,
.m-template-ecwonmy .m-product-masonry .m-card__link:focus-visible,
.m-template-ecwonmy .m-product-bento .m-card--bento:focus-visible,
.m-template-ecwonmy .m-product-center .m-card__link:focus-visible,
.m-template-ecwonmy .m-product-center .m-card--thumb:focus-visible,
.m-template-ecwonmy .m-news__lead-link:focus-visible,
.m-template-ecwonmy .m-news-card__link:focus-visible,
.m-template-ecwonmy .m-news-bento-card:focus-visible,
.m-template-ecwonmy .m-news__node-link:focus-visible,
.m-template-ecwonmy .m-news-spotlight__link:focus-visible,
.m-template-ecwonmy .m-news__tail-link:focus-visible,
.m-template-ecwonmy .m-news__list-link:focus-visible,
.m-template-ecwonmy .m-gallery__link:focus-visible,
.m-template-ecwonmy .m-gallery-bento__album:focus-visible,
.m-template-ecwonmy .m-gallery-filmstrip__frame:focus-visible,
.m-template-ecwonmy .m-gallery__hero-link:focus-visible,
.m-template-ecwonmy .m-gallery-carousel__slide-link:focus-visible,
.m-template-ecwonmy .m-module-hub__category-link:focus-visible,
.m-template-ecwonmy .m-module-hub__search-btn:focus-visible {
  outline: var(--listing-ring-focus);
  outline-offset: 3px;
}

.m-template-ecwonmy .m-faq__q:focus-visible {
  outline: var(--listing-ring-focus);
  outline-offset: -2px;
}

.m-template-ecwonmy .m-gallery-carousel__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Listing — shared card shell (border, elevation, lift hover) */
.m-template-ecwonmy .m-news-card,
.m-template-ecwonmy .m-faq__tile,
.m-template-ecwonmy .m-product-masonry .m-card--masonry,
.m-template-ecwonmy .m-gallery-masonry .m-gallery__item,
.m-template-ecwonmy .m-module-hub__category .m-card--category,
.m-template-ecwonmy .m-faq-card .m-card--faq {
  border-radius: calc(var(--radius-base) + 2px);
  box-shadow: var(--listing-shadow-card);
}

.m-template-ecwonmy .m-news-card,
.m-template-ecwonmy .m-faq__tile,
.m-template-ecwonmy .m-product-masonry .m-card--masonry,
.m-template-ecwonmy .m-gallery-masonry .m-gallery__item {
  border: var(--border-width) solid var(--listing-border);
  background: var(--listing-surface);
}

.m-template-ecwonmy .m-module-hub__category .m-card--category {
  border: var(--border-width) solid var(--listing-border-accent);
  background: var(--listing-surface);
  margin: 0;
}

.m-template-ecwonmy .m-news-card,
.m-template-ecwonmy .m-faq__tile,
.m-template-ecwonmy .m-product-masonry .m-card--masonry,
.m-template-ecwonmy .m-module-hub__category .m-card--category,
.m-template-ecwonmy .m-faq-card .m-card--faq {
  transition: var(--listing-transition-shell);
}

.m-template-ecwonmy .m-gallery-masonry .m-gallery__item {
  transition: var(--listing-transition-shell-flat);
  background: var(--listing-surface);
}

.m-template-ecwonmy .m-news-card,
.m-template-ecwonmy .m-faq__tile,
.m-template-ecwonmy .m-module-hub__category .m-card--category {
  height: 100%;
}

.m-template-ecwonmy .m-news-card {
  overflow: hidden;
  background: var(--listing-surface-elevated);
}

.m-template-ecwonmy .m-faq__tile {
  padding: calc(var(--space-unit) * 1.2) calc(var(--space-unit) * 1.25);
}

.m-template-ecwonmy .m-product-masonry .m-card--masonry,
.m-template-ecwonmy .m-gallery-masonry .m-gallery__item {
  break-inside: avoid;
  overflow: hidden;
}

.m-template-ecwonmy .m-product-masonry .m-card--masonry {
  margin: 0 0 calc(var(--space-unit) * 1.25);
  padding: 0;
}

.m-template-ecwonmy .m-gallery-masonry .m-gallery__item {
  margin: 0 0 var(--listing-gap-md);
}

.m-template-ecwonmy .m-product-bento .m-card--bento,
.m-template-ecwonmy .m-gallery-bento__album {
  box-shadow: var(--listing-shadow-card);
  transition: var(--listing-transition-shell-flat);
}

.m-template-ecwonmy .m-news-card:hover,
.m-template-ecwonmy .m-faq__tile:hover,
.m-template-ecwonmy .m-faq-card .m-card--faq:hover,
.m-template-ecwonmy .m-module-hub__category .m-card--category:hover,
.m-template-ecwonmy .m-product-masonry .m-card--masonry:hover {
  border-color: var(--listing-border-hover);
  box-shadow: var(--listing-shadow-card-hover);
  transform: var(--listing-hover-lift);
}

.m-template-ecwonmy .m-gallery-masonry .m-gallery__item:hover,
.m-template-ecwonmy .m-product-bento .m-card--bento:hover,
.m-template-ecwonmy .m-gallery-bento__album:hover {
  border-color: var(--listing-border-hover);
  box-shadow: var(--listing-shadow-card-hover);
}
/* Detail pages inherit listing layout slug via `--lay-{slug}` on root (product/news/gallery/faq). */
@media (min-width: 56rem) {
  .m-template-ecwonmy .m-product-detail--lay-grid .m-product-detail__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: calc(var(--space-unit) * 1.65);
  }

  .m-template-ecwonmy .m-product-detail--lay-bento .m-product-detail__layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: calc(var(--space-unit) * 2.5);
  }

  .m-template-ecwonmy .m-product-detail--lay-zigzag .m-product-detail__layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }

  .m-template-ecwonmy .m-product-detail--lay-masonry .m-product-detail__layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}

.m-template-ecwonmy
  .m-product-detail--lay-center-stage
  .m-product-detail__layout {
  grid-template-columns: 1fr;
  max-width: 52rem;
  margin-inline: auto;
}

.m-template-ecwonmy
  .m-product-detail--lay-center-stage
  .m-product-detail__media {
  position: relative;
  top: auto;
}

.m-template-ecwonmy .m-product-detail--lay-bento .m-product-detail__stage,
.m-template-ecwonmy .m-product-detail--lay-carousel .m-product-detail__stage {
  border-radius: calc(var(--radius-base) + 8px);
}

.m-template-ecwonmy .m-product-detail--lay-card .m-product-detail__buybox {
  border-radius: calc(var(--radius-base) + 4px);
  padding: calc(var(--space-unit) * 1.25);
  border: var(--border-width) solid var(--listing-border);
  background: color-mix(in srgb, var(--color-surface) 96%, transparent);
}

.m-template-ecwonmy .m-news-detail--lay-editorial .m-news-detail__article {
  max-width: 40rem;
}

.m-template-ecwonmy .m-news-detail--lay-bento .m-news-detail__article {
  max-width: 56rem;
  padding: calc(var(--space-unit) * 1.25);
  border-radius: calc(var(--radius-base) + 4px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 10%, var(--table-border));
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
}

.m-template-ecwonmy .m-news-detail--lay-hybrid-list .m-news-detail__title {
  font-size: clamp(1.2rem, 1vw + 0.9rem, 1.65rem);
}

.m-template-ecwonmy .m-news-detail--lay-timeline .m-news-detail__article {
  border-left: 4px solid
    color-mix(in srgb, var(--color-primary) 55%, transparent);
  padding-left: calc(var(--space-unit) * 1.75);
}

.m-template-ecwonmy
  .m-gallery-detail--lay-fullscreen
  .m-gallery-detail__lead
  img {
  max-height: min(78vh, 40rem);
}

.m-template-ecwonmy .m-gallery-detail--lay-carousel .m-gallery-detail__lead {
  border-radius: calc(var(--radius-base) + 10px);
  box-shadow:
    var(--listing-shadow-card),
    0 22px 70px color-mix(in srgb, var(--color-primary) 16%, transparent);
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-gallery-detail--lay-masonry .m-gallery-detail__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .m-template-ecwonmy .m-gallery-detail--lay-filmstrip .m-gallery-detail__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: calc(var(--space-unit) * 0.85);
  }

  .m-template-ecwonmy .m-gallery-detail--lay-bento .m-gallery-detail__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .m-template-ecwonmy
    .m-gallery-detail--lay-bento
    .m-gallery-detail__cell:first-child {
    grid-column: span 2;
  }

  .m-template-ecwonmy .m-gallery-detail--lay-cards .m-gallery-detail__mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: calc(var(--space-unit) * 0.65);
  }

  .m-template-ecwonmy
    .m-gallery-detail--lay-cards
    .m-gallery-detail__tile--hero {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (min-width: 960px) {
  .m-template-ecwonmy .m-gallery-detail--lay-cards .m-gallery-detail__mosaic {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .m-template-ecwonmy .m-gallery-detail--lay-cards .m-gallery-detail__mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: calc(var(--space-unit) * 0.55);
  }
}

.m-template-ecwonmy .m-gallery-detail--lay-cards .m-gallery-detail__tile img {
  aspect-ratio: 3 / 2;
  min-height: 5.5rem;
}

.m-template-ecwonmy
  .m-gallery-detail--lay-cards
  .m-gallery-detail__tile--hero
  img {
  aspect-ratio: 3 / 2;
  min-height: 5.5rem;
}

.m-template-ecwonmy .m-faq-detail--lay-accordion .m-faq-detail__answer {
  border-left: 4px solid
    color-mix(in srgb, var(--color-primary) 50%, transparent);
  padding-left: calc(var(--space-unit) * 1.35);
}

.m-template-ecwonmy .m-faq-detail--lay-card .m-faq-detail__answer {
  padding: calc(var(--space-unit) * 1.5);
  border-radius: calc(var(--radius-base) + 3px);
  border: var(--border-width) solid var(--listing-border);
  box-shadow: var(--listing-shadow-card);
  background: color-mix(in srgb, var(--color-surface) 95%, transparent);
}

.m-template-ecwonmy .m-faq-detail--lay-sidebar .m-faq-detail__answer {
  padding-left: calc(var(--space-unit) * 1.85);
  border-left: 3px solid
    color-mix(in srgb, var(--color-accent) 55%, transparent);
}

.m-template-ecwonmy .m-faq-detail--lay-grid .m-faq-detail__answer {
  max-width: none;
  display: grid;
  gap: calc(var(--space-unit) * 1);
}

.m-template-ecwonmy .m-faq-detail--lay-search-centric .m-faq-detail__answer {
  max-width: 38rem;
  text-align: left;
}

/* =============================================================================
   Product listings (unique layouts only)
   ============================================================================= */

/* Product listings (lay/p) — shared */
.m-template-ecwonmy .m-product-list .m-card__link,
.m-template-ecwonmy .m-product-grid .m-card__link,
.m-template-ecwonmy .m-product-masonry .m-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.m-template-ecwonmy .m-card__visual {
  position: relative;
  overflow: hidden;
}

.m-template-ecwonmy .m-card__badge {
  position: absolute;
  top: calc(var(--space-unit) * 0.65);
  left: calc(var(--space-unit) * 0.65);
  z-index: 2;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-on-primary, #fff);
  background: color-mix(in srgb, var(--color-accent) 88%, #c00);
  box-shadow: var(--shadow-sm);
}

.m-template-ecwonmy .m-card__eyebrow {
  margin: 0 0 calc(var(--space-unit) * 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-primary) 75%, var(--color-text));
}

/* Product — card */
.m-template-ecwonmy .m-product-list.m-product-list--card {
  display: grid;
  gap: var(--listing-gap-lg);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  list-style: none;
  padding: 0;
  margin: calc(var(--space-unit) * 1.5) 0 0;
}

.m-template-ecwonmy .m-product-list .m-card--product {
  height: 100%;
  padding: 0;
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 28%, transparent);
  border-radius: calc(var(--radius-base) + 2px);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--color-surface) 94%, transparent),
    color-mix(in srgb, var(--color-surface) 76%, var(--color-primary) 9%)
  );
  box-shadow: var(--listing-shadow-card);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.m-template-ecwonmy .m-product-list .m-card--product:hover {
  border-color: color-mix(
    in srgb,
    var(--color-primary) 45%,
    var(--color-accent)
  );
  box-shadow: var(--listing-shadow-card-hover);
  transform: translateY(-3px);
}

.m-template-ecwonmy .m-product-list .m-card--product .m-card__media {
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-base) + 2px) calc(var(--radius-base) + 2px) 0
    0;
}

.m-template-ecwonmy .m-product-list .m-card--product .m-card__body {
  padding: calc(var(--space-unit) * 1.15) calc(var(--space-unit) * 1.35)
    calc(var(--space-unit) * 1.4);
}

.m-template-ecwonmy .m-product-list .m-card--product .m-card__title {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.m-template-ecwonmy .m-product-list .m-card--product .m-card__price {
  margin-top: calc(var(--space-unit) * 0.85);
}
/* Product — grid */
.m-template-ecwonmy .m-product-grid {
  display: grid;
  gap: var(--listing-gap-md);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: calc(var(--space-unit) * 1.5) 0 0;
}

@media (min-width: 40rem) {
  .m-template-ecwonmy .m-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .m-template-ecwonmy .m-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.m-template-ecwonmy .m-product-grid .m-card--grid {
  padding: 0;
  border-radius: var(--radius-base);
  border: var(--border-width) solid var(--table-border);
  overflow: hidden;
  background: var(--listing-surface);
  transition:
    border-color 200ms ease,
    transform 200ms ease;
}

.m-template-ecwonmy .m-product-grid .m-card--grid:hover {
  border-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
  transform: scale(1.02);
}

.m-template-ecwonmy .m-product-grid .m-card__media {
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

.m-template-ecwonmy .m-product-grid .m-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--space-unit) * 0.85);
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--color-primary) 82%, #000) 0%,
    transparent 62%
  );
  opacity: 0;
  transition: opacity 220ms ease;
}

.m-template-ecwonmy .m-product-grid .m-card--grid:hover .m-card__overlay,
.m-template-ecwonmy
  .m-product-grid
  .m-card--grid:focus-within
  .m-card__overlay {
  opacity: 1;
}

.m-template-ecwonmy .m-product-grid .m-card__overlay-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.m-template-ecwonmy .m-product-grid .m-card__price--overlay {
  margin: 0.35em 0 0;
  color: #fff;
  font-weight: 600;
}

.m-template-ecwonmy .m-product-grid .m-card__body--compact {
  padding: calc(var(--space-unit) * 0.75) calc(var(--space-unit) * 0.9);
  border-top: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 12%, transparent);
}

.m-template-ecwonmy .m-product-grid .m-card__body--compact .m-card__title {
  font-size: 0.8125rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-template-ecwonmy .m-product-grid .m-card__body--compact .m-card__price {
  margin: 0.25em 0 0;
  font-size: 0.8125rem;
}

/* Product — bento */
.m-template-ecwonmy .m-product-bento {
  display: grid;
  gap: var(--listing-gap-md);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(9.5rem, auto);
  list-style: none;
  padding: 0;
  margin: calc(var(--space-unit) * 1.5) 0 0;
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-product-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(10.5rem, auto);
  }
}

.m-template-ecwonmy .m-product-bento__cell--hero {
  grid-column: span 2;
  grid-row: span 2;
}

.m-template-ecwonmy .m-product-bento__cell--wide {
  grid-column: span 2;
}

.m-template-ecwonmy .m-product-bento__cell--tall {
  grid-row: span 2;
}

.m-template-ecwonmy .m-product-bento .m-card--bento {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: 0;
  border-radius: calc(var(--radius-base) + 2px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 22%, transparent);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
}

.m-template-ecwonmy .m-product-bento .m-card--bento .m-card__visual {
  flex: 1 1 auto;
  min-height: 55%;
}

.m-template-ecwonmy .m-product-bento .m-card--bento .m-card__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 7rem;
}

.m-template-ecwonmy .m-product-bento__cell--hero .m-card__title {
  font-size: clamp(1.05rem, 1.5vw + 0.5rem, 1.35rem);
}

.m-template-ecwonmy .m-product-bento .m-card__body {
  padding: calc(var(--space-unit) * 1) calc(var(--space-unit) * 1.15);
  border-top: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 12%, transparent);
}
/* Product — masonry */
.m-template-ecwonmy .m-product-masonry {
  column-gap: calc(var(--space-unit) * 1.25);
  margin: calc(var(--space-unit) * 1.5) 0 0;
}

@media (min-width: 36rem) {
  .m-template-ecwonmy .m-product-masonry {
    columns: 2;
  }
}

@media (min-width: 56rem) {
  .m-template-ecwonmy .m-product-masonry {
    columns: 3;
  }
}

@media (min-width: 80rem) {
  .m-template-ecwonmy .m-product-masonry {
    columns: 4;
  }
}

.m-template-ecwonmy .m-product-masonry .m-card--masonry-tall .m-card__media {
  aspect-ratio: 3 / 4;
}

.m-template-ecwonmy .m-product-masonry .m-card--masonry .m-card__media {
  aspect-ratio: 4 / 3;
}

.m-template-ecwonmy .m-product-masonry .m-card__body {
  padding: calc(var(--space-unit) * 1.05) calc(var(--space-unit) * 1.2);
}

.m-template-ecwonmy .m-product-masonry .m-card__copy {
  font-size: 0.875rem;
}

/* Product — zigzag */
.m-template-ecwonmy .m-product-zigzag {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 2);
  margin-top: calc(var(--space-unit) * 1.5);
}

.m-template-ecwonmy .m-card--zig {
  position: relative;
  display: grid;
  gap: var(--listing-gap-md);
  padding: calc(var(--space-unit) * 1.35) calc(var(--space-unit) * 1.45);
  border-radius: calc(var(--radius-base) + 2px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 22%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-surface) 90%, transparent),
    color-mix(in srgb, var(--color-surface) 82%, var(--color-primary) 6%)
  );
  box-shadow: var(--listing-shadow-card);
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-card--zig {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    padding: calc(var(--space-unit) * 1.5);
  }

  .m-template-ecwonmy .m-card--zig-reverse {
    direction: rtl;
  }

  .m-template-ecwonmy .m-card--zig-reverse > * {
    direction: ltr;
  }
}

.m-template-ecwonmy .m-card--zig .m-card__media {
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius-base) * 0.85);
  overflow: hidden;
}

.m-template-ecwonmy .m-card--zig .m-card__body {
  padding: 0 calc(var(--space-unit) * 0.5);
}

.m-template-ecwonmy .m-card--zig .m-card__title {
  font-size: clamp(1.15rem, 1.2vw + 0.75rem, 1.5rem);
}

.m-template-ecwonmy .m-card--zig .m-cta {
  display: inline-flex;
  align-items: center;
  margin-top: calc(var(--space-unit) * 1.1);
  padding: calc(var(--space-unit) * 0.85) calc(var(--space-unit) * 1.6);
  border-radius: var(--radius-base);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-primary) 45%, transparent);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
  transition:
    background 200ms ease,
    color 200ms ease;
}

.m-template-ecwonmy .m-card--zig:hover .m-cta {
  background: color-mix(
    in srgb,
    var(--color-primary) 16%,
    var(--color-surface)
  );
}

.m-template-ecwonmy .m-card--zig .m-card__cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.m-template-ecwonmy .m-card--zig .m-card__body {
  position: relative;
  z-index: 0;
}

/* Product — center stage */
.m-template-ecwonmy .m-product-center {
  display: grid;
  gap: calc(var(--space-unit) * 1.25);
  margin-top: calc(var(--space-unit) * 1.5);
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-product-center {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.m-template-ecwonmy .m-product-center .m-card--feature {
  padding: 0;
  border-radius: calc(var(--radius-base) + 3px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-primary) 38%, transparent);
  overflow: hidden;
  background: linear-gradient(
    145deg,
    var(--listing-surface),
    color-mix(in srgb, var(--color-primary) 12%, var(--color-surface))
  );
  box-shadow:
    var(--listing-shadow-card),
    0 16px 48px color-mix(in srgb, var(--color-primary) 14%, transparent);
}

.m-template-ecwonmy .m-product-center .m-card--feature .m-card__media {
  aspect-ratio: 16 / 9;
}

.m-template-ecwonmy .m-product-center .m-card--feature .m-card__body {
  padding: calc(var(--space-unit) * 1.35) calc(var(--space-unit) * 1.5);
}

.m-template-ecwonmy .m-product-center .m-card--feature .m-card__title {
  font-size: clamp(1.35rem, 2vw + 0.5rem, 1.85rem);
}

.m-template-ecwonmy .m-product-center .m-card--feature .m-cta {
  display: inline-flex;
  margin-top: calc(var(--space-unit) * 1);
  padding: calc(var(--space-unit) * 0.75) calc(var(--space-unit) * 1.5);
  border-radius: var(--radius-base);
  font-weight: 600;
  color: var(--color-on-primary, #fff);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-primary) 92%, #000),
    color-mix(in srgb, var(--color-accent) 75%, #000)
  );
}

.m-template-ecwonmy .m-product-center__rail {
  display: flex;
  flex-direction: row;
  gap: calc(var(--space-unit) * 0.85);
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-product-center__rail {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    max-height: 100%;
  }
}

.m-template-ecwonmy .m-product-center__rail-item {
  flex: 0 0 min(72%, 11rem);
  scroll-snap-align: start;
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-product-center__rail-item {
    flex: 0 0 auto;
  }
}

.m-template-ecwonmy .m-product-center .m-card--thumb {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 5.5rem;
  padding: 0;
  border-radius: calc(var(--radius-base) + 1px);
  border: var(--border-width) solid var(--listing-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--listing-surface-elevated);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-accent) 12%, transparent);
  transition: var(--listing-transition-shell-flat);
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-product-center .m-card--thumb {
    flex-direction: column;
    min-height: 0;
  }
}

.m-template-ecwonmy .m-product-center .m-card--thumb:hover {
  border-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
  box-shadow: var(--listing-shadow-card);
}

.m-template-ecwonmy .m-product-center .m-card--thumb .m-card__media {
  flex: 0 0 5.5rem;
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-product-center .m-card--thumb .m-card__media {
    flex: none;
    width: 100%;
  }
}

.m-template-ecwonmy .m-product-center .m-card--thumb .m-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--space-unit) * 0.65) calc(var(--space-unit) * 0.85);
}

.m-template-ecwonmy .m-product-center .m-card--thumb .m-card__title {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

.m-template-ecwonmy .m-product-center .m-card--thumb .m-card__price {
  margin: 0.35em 0 0;
  font-size: 0.8125rem;
}
/* =============================================================================
   News listings (unique layouts only)
   ============================================================================= */

/* News listings (lay/n) — shared */
.m-template-ecwonmy .m-news__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-base);
  aspect-ratio: 16 / 9;
  background: color-mix(
    in srgb,
    var(--color-surface) 88%,
    var(--color-primary) 12%
  );
}

.m-template-ecwonmy .m-news__media--lead {
  aspect-ratio: 16 / 10;
}

.m-template-ecwonmy .m-news__media--timeline {
  aspect-ratio: 4 / 3;
  max-width: 12rem;
}

.m-template-ecwonmy .m-news__date {
  display: block;
  margin: 0 0 calc(var(--space-unit) * 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}

.m-template-ecwonmy .m-news__headline {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.35;
  color: var(--color-text);
}

.m-template-ecwonmy .m-news__headline--lead {
  font-size: clamp(1.35rem, 2.2vw + 0.65rem, 2rem);
}

.m-template-ecwonmy .m-news__headline--spotlight {
  font-size: clamp(1.1rem, 1vw + 0.75rem, 1.35rem);
}

.m-template-ecwonmy .m-news__excerpt {
  margin: calc(var(--space-unit) * 0.85) 0 0;
  font-size: 0.9375rem;
  line-height: var(--prose-line-height);
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
}

.m-template-ecwonmy .m-news__read-more {
  display: inline-block;
  margin-top: calc(var(--space-unit) * 1);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* News — editorial */
.m-template-ecwonmy .m-news-editorial {
  margin-top: calc(var(--space-unit) * 1.5);
}

.m-template-ecwonmy .m-news--lead {
  margin-bottom: calc(var(--space-unit) * 2.25);
  border-radius: calc(var(--radius-base) + 3px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-primary) 28%, transparent);
  overflow: hidden;
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  box-shadow: var(--listing-shadow-card);
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.m-template-ecwonmy .m-news--lead:hover {
  border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
  box-shadow: var(--listing-shadow-card-hover);
}

.m-template-ecwonmy .m-news__lead-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.m-template-ecwonmy .m-news__lead-grid {
  display: grid;
  gap: calc(var(--space-unit) * 1.25);
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-news__lead-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
  }
}

.m-template-ecwonmy .m-news__lead-copy {
  padding: calc(var(--space-unit) * 1.1) calc(var(--space-unit) * 1.25);
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-news__lead-copy {
    padding: calc(var(--space-unit) * 1.5);
  }
}

.m-template-ecwonmy .m-news-editorial__grid {
  display: grid;
  gap: var(--listing-gap-lg);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.m-template-ecwonmy .m-news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.m-template-ecwonmy .m-news-card__body {
  padding: calc(var(--space-unit) * 1.05) calc(var(--space-unit) * 1.15);
}

.m-template-ecwonmy .m-news-card .m-news__headline {
  font-size: 1rem;
}

.m-template-ecwonmy .m-news__tail-wrap {
  margin-top: calc(var(--space-unit) * 2.5);
  padding-top: calc(var(--space-unit) * 1.5);
  border-top: var(--border-width) solid var(--table-border);
}

.m-template-ecwonmy .m-news__tail-title {
  margin: 0 0 calc(var(--space-unit) * 1);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.m-template-ecwonmy .m-news__tail {
  list-style: none;
  padding: 0;
  margin: 0;
}

.m-template-ecwonmy .m-news__tail li {
  border-bottom: var(--border-width) solid var(--table-border);
}

.m-template-ecwonmy .m-news__tail-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: calc(var(--space-unit) * 0.75);
  padding: calc(var(--space-unit) * 0.85) 0;
  text-decoration: none;
  color: inherit;
  transition: color 180ms ease;
}

.m-template-ecwonmy .m-news__tail-link:hover {
  color: var(--color-primary);
}

.m-template-ecwonmy .m-news__tail-link .m-news__date {
  margin: 0;
  flex: 0 0 auto;
}

.m-template-ecwonmy .m-news__tail-headline {
  font-weight: 600;
  line-height: 1.4;
}

/* News — bento */
.m-template-ecwonmy .m-news-bento {
  display: grid;
  gap: var(--listing-gap-md);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(9rem, auto);
  list-style: none;
  padding: 0;
  margin: calc(var(--space-unit) * 1.5) 0 0;
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-news-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(10rem, auto);
  }
}

.m-template-ecwonmy .m-news-bento__cell--hero {
  grid-column: span 2;
  grid-row: span 2;
}

.m-template-ecwonmy .m-news-bento__cell--wide {
  grid-column: span 2;
}

.m-template-ecwonmy .m-news-bento__cell--tall {
  grid-row: span 2;
}

.m-template-ecwonmy .m-news-bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius-base) + 2px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 20%, transparent);
  text-decoration: none;
  color: #fff;
  background: color-mix(in srgb, var(--color-surface) 85%, #000);
  box-shadow: var(--listing-shadow-card);
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.m-template-ecwonmy .m-news-bento-card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
  box-shadow: var(--listing-shadow-card-hover);
}

.m-template-ecwonmy .m-news-bento-card .m-news__media {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 100%;
  border-radius: 0;
}

.m-template-ecwonmy .m-news-bento-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: calc(var(--space-unit) * 1.1) calc(var(--space-unit) * 1.15);
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--color-primary) 88%, #000) 0%,
    transparent 100%
  );
}

.m-template-ecwonmy .m-news-bento-card .m-news__date {
  color: color-mix(in srgb, #fff 82%, transparent);
}

.m-template-ecwonmy .m-news-bento-card .m-news__headline {
  color: #fff;
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.15rem);
}

/* News — timeline */
.m-template-ecwonmy .m-news-timeline {
  list-style: none;
  padding: 0 0 0 calc(var(--space-unit) * 2.25);
  margin: calc(var(--space-unit) * 1.5) 0 0;
  border-left: 2px solid
    color-mix(in srgb, var(--color-primary) 50%, var(--table-border));
}

.m-template-ecwonmy .m-news__node {
  position: relative;
  margin-bottom: calc(var(--space-unit) * 2);
}

.m-template-ecwonmy .m-news__node-marker {
  position: absolute;
  left: calc(var(--space-unit) * -2.25 - 6px);
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px
    color-mix(in srgb, var(--color-primary) 22%, transparent);
}

.m-template-ecwonmy .m-news__node-link {
  display: grid;
  gap: calc(var(--space-unit) * 1);
  padding: calc(var(--space-unit) * 1.15);
  border-radius: calc(var(--radius-base) + 2px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 10%, transparent);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  box-shadow: var(--listing-shadow-card);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.m-template-ecwonmy .m-news__node-link:hover {
  border-color: color-mix(
    in srgb,
    var(--color-primary) 32%,
    var(--table-border)
  );
  background: color-mix(in srgb, var(--color-surface) 97%, transparent);
  box-shadow: var(--listing-shadow-card-hover);
}

@media (min-width: 40rem) {
  .m-template-ecwonmy .m-news__node-link {
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
    align-items: start;
  }
}

.m-template-ecwonmy .m-news__node-date-col .m-news__date {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.m-template-ecwonmy .m-news__node-content .m-news__headline {
  font-size: 1.05rem;
}

@media (min-width: 40rem) {
  .m-template-ecwonmy .m-news__node-content {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: calc(var(--space-unit) * 1);
    align-items: start;
  }
}

/* News — hybrid */
.m-template-ecwonmy .m-news-hybrid {
  display: grid;
  gap: var(--listing-gap-lg);
  margin-top: calc(var(--space-unit) * 1.5);
}

@media (min-width: 48rem) {
  .m-template-ecwonmy .m-news-hybrid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.m-template-ecwonmy .m-news-hybrid__label {
  margin: 0 0 calc(var(--space-unit) * 1);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-primary) 70%, var(--color-text));
}

.m-template-ecwonmy .m-news-hybrid__featured {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 1.25);
}

.m-template-ecwonmy .m-news-spotlight {
  border: var(--border-width) solid var(--listing-border);
  border-radius: calc(var(--radius-base) + 2px);
  overflow: hidden;
  background: var(--listing-surface-elevated);
  transition: var(--listing-transition-shell-flat);
}

.m-template-ecwonmy .m-news-spotlight:hover {
  border-color: var(--listing-border-hover);
  box-shadow: var(--listing-shadow-card-hover);
}

.m-template-ecwonmy .m-news-spotlight__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.m-template-ecwonmy .m-news-spotlight__body {
  padding: calc(var(--space-unit) * 1) calc(var(--space-unit) * 1.15)
    calc(var(--space-unit) * 1.25);
}

.m-template-ecwonmy .m-news-hybrid__index {
  padding: calc(var(--space-unit) * 1.25);
  border-radius: calc(var(--radius-base) + 2px);
  border: var(--border-width) solid var(--listing-border-soft);
  background: color-mix(in srgb, var(--color-surface) 91%, transparent);
  box-shadow: inset 0 1px 0
    color-mix(in srgb, var(--color-accent) 10%, transparent);
}

.m-template-ecwonmy .m-news__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.m-template-ecwonmy .m-news__list-item {
  border-bottom: var(--border-width) solid var(--table-border);
}

.m-template-ecwonmy .m-news__list-item:last-child {
  border-bottom: none;
}

.m-template-ecwonmy .m-news__list-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(var(--space-unit) * 0.65);
  padding: calc(var(--space-unit) * 0.85) 0;
  text-decoration: none;
  color: inherit;
  transition: color 180ms ease;
}

.m-template-ecwonmy .m-news__list-link:hover {
  color: var(--color-primary);
}

.m-template-ecwonmy .m-news__list-title {
  flex: 1 1 12rem;
  font-weight: 600;
  line-height: 1.4;
}

.m-template-ecwonmy .m-news__list-link .m-news__date {
  margin: 0;
  flex: 0 0 auto;
  font-size: 0.75rem;
}

/* =============================================================================
   FAQ listings (unique layouts only)
   ============================================================================= */

/* FAQ listings (lay/faq) — shared */
.m-template-ecwonmy .m-faq__item {
  border: var(--border-width) solid var(--listing-border-soft);
  border-radius: calc(var(--radius-base) + 2px);
  background: var(--listing-surface-elevated);
  box-shadow: var(--listing-shadow-card);
  overflow: hidden;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.m-template-ecwonmy .m-faq__item[open] {
  border-color: color-mix(
    in srgb,
    var(--color-primary) 42%,
    var(--table-border)
  );
  box-shadow: var(--listing-shadow-card-hover);
}

.m-template-ecwonmy .m-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--space-unit) * 1);
  cursor: pointer;
  padding: calc(var(--space-unit) * 1.1) calc(var(--space-unit) * 1.25);
  font-weight: 600;
  list-style: none;
  font-family: var(--font-heading);
  line-height: 1.4;
}

.m-template-ecwonmy .m-faq__q::-webkit-details-marker {
  display: none;
}

.m-template-ecwonmy .m-faq__q-text {
  flex: 1 1 auto;
  min-width: 0;
}

.m-template-ecwonmy .m-faq__chevron {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

.m-template-ecwonmy .m-faq__item[open] .m-faq__chevron {
  transform: rotate(-135deg);
  opacity: 1;
}

.m-template-ecwonmy .m-faq__panel {
  padding: 0 calc(var(--space-unit) * 1.25) calc(var(--space-unit) * 1.15);
  border-top: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 8%, transparent);
}

.m-template-ecwonmy .m-faq__a {
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 88%, transparent);
  line-height: var(--prose-line-height);
}

.m-template-ecwonmy .m-faq__more {
  margin: calc(var(--space-unit) * 0.85) 0 0;
}

.m-template-ecwonmy .m-faq__more-link,
.m-template-ecwonmy .m-faq__more-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
  text-decoration: none;
}

.m-template-ecwonmy .m-faq__more-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.m-template-ecwonmy .m-faq__q-link {
  color: inherit;
  text-decoration: none;
}

.m-template-ecwonmy .m-faq__q-link:hover {
  color: var(--color-primary);
}

/* FAQ card / grid — whole-surface link (same pattern as product .m-card__link) */
.m-template-ecwonmy .m-faq-card .m-card__link,
.m-template-ecwonmy .m-faq-grid .m-card__link,
.m-template-ecwonmy .m-faq-card__shell,
.m-template-ecwonmy .m-faq-grid__shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.m-template-ecwonmy .m-faq-card .m-card__link:hover .m-faq__q--card,
.m-template-ecwonmy .m-faq-grid .m-card__link:hover .m-faq__q--tile {
  color: var(--color-primary);
}

.m-template-ecwonmy .m-faq-card .m-card__link:hover .m-faq__more-label,
.m-template-ecwonmy .m-faq-grid .m-card__link:hover .m-faq__more-label {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.m-template-ecwonmy .m-faq__excerpt {
  margin: calc(var(--space-unit) * 0.65) 0 0;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
  line-height: 1.5;
}

/* FAQ — accordion */
.m-template-ecwonmy .m-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--listing-gap-sm);
  margin: calc(var(--space-unit) * 1.5) 0 0;
}

/* FAQ — grid */
.m-template-ecwonmy .m-faq-grid {
  display: grid;
  gap: var(--listing-gap-md);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  list-style: none;
  padding: 0;
  margin: calc(var(--space-unit) * 1.5) 0 0;
}

.m-template-ecwonmy .m-faq__q--tile {
  margin: 0 0 calc(var(--space-unit) * 0.75);
  font-size: 1rem;
  padding: 0;
}

.m-template-ecwonmy .m-faq__tile--preview {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 9rem;
  padding: 0;
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 20%, transparent);
  border-radius: calc(var(--radius-base) + 2px);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--color-surface) 96%, transparent),
    color-mix(in srgb, var(--color-surface) 88%, var(--color-primary) 6%)
  );
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
  overflow: hidden;
}

.m-template-ecwonmy .m-faq-grid .m-faq-grid__shell {
  padding: calc(var(--space-unit) * 1.1) calc(var(--space-unit) * 1.15);
}

.m-template-ecwonmy .m-faq__excerpt--tile {
  flex: 1 1 auto;
  margin: 0 0 calc(var(--space-unit) * 0.85);
  font-size: 0.875rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.m-template-ecwonmy .m-faq__tile--preview .m-faq__more,
.m-template-ecwonmy .m-faq-card .m-faq__more {
  margin-top: auto;
  margin-bottom: 0;
}

.m-template-ecwonmy .m-faq__a--tile {
  display: none;
}

/* FAQ — card */
.m-template-ecwonmy .m-faq-card {
  display: grid;
  gap: var(--listing-gap-md);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  list-style: none;
  padding: 0;
  margin: calc(var(--space-unit) * 1.5) 0 0;
}

.m-template-ecwonmy .m-faq-card .m-card--faq {
  height: 100%;
  padding: 0;
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 22%, transparent);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--color-surface) 94%, transparent),
    color-mix(in srgb, var(--color-surface) 82%, var(--color-primary) 8%)
  );
  overflow: hidden;
}

.m-template-ecwonmy .m-faq-card .m-faq-card__shell {
  padding: calc(var(--space-unit) * 1.2) calc(var(--space-unit) * 1.25)
    calc(var(--space-unit) * 1.35);
}

.m-template-ecwonmy .m-faq-card .m-faq__media,
.m-template-ecwonmy .m-faq-grid .m-faq__media {
  margin: 0 0 calc(var(--space-unit) * 0.85);
  border-radius: calc(var(--radius-base) + 2px);
  overflow: hidden;
}

.m-template-ecwonmy .m-faq-card .m-faq__media-img,
.m-template-ecwonmy .m-faq-grid .m-faq__media-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.m-template-ecwonmy .m-faq__q--card {
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
}

.m-template-ecwonmy .m-faq__cat-badge {
  margin: 0 0 calc(var(--space-unit) * 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.m-template-ecwonmy .m-faq__cat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 calc(var(--space-unit) * 0.55);
}

.m-template-ecwonmy .m-faq__cat-badges .m-faq__cat-badge {
  margin: 0;
}

.m-template-ecwonmy .m-faq__cat-badge--link {
  text-decoration: none;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  transition:
    background 200ms ease,
    color 200ms ease;
}

.m-template-ecwonmy .m-faq__cat-badge--link:hover,
.m-template-ecwonmy .m-faq__cat-badge--link:focus-visible {
  background: color-mix(in srgb, var(--color-primary) 22%, transparent);
  color: var(--color-primary);
}

.m-template-ecwonmy .m-faq-detail__crumb-cats a {
  text-decoration: none;
}

.m-template-ecwonmy .m-faq-detail__crumb-cat-sep {
  opacity: 0.55;
}

.m-template-ecwonmy .m-faq__excerpt--card {
  margin: calc(var(--space-unit) * 0.65) 0 calc(var(--space-unit) * 0.85);
  font-size: 0.875rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.m-template-ecwonmy .m-faq__a--card {
  display: none;
}

/* =============================================================================
   Gallery listings (unique layouts only)
   ============================================================================= */

/* Gallery listings (lay/g) — shared */
.m-template-ecwonmy .m-gallery__link,
.m-template-ecwonmy .m-gallery__link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: calc(var(--radius-base) + 2px);
}

.m-template-ecwonmy .m-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 260ms ease,
    filter 260ms ease;
}

.m-template-ecwonmy .m-gallery__placeholder {
  display: block;
  width: 100%;
  min-height: 10rem;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-base) + 2px);
  background: color-mix(
    in srgb,
    var(--color-surface) 88%,
    var(--color-primary) 12%
  );
}

.m-template-ecwonmy .m-gallery__caption {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.35;
}

/* Gallery — masonry */
.m-template-ecwonmy .m-gallery-masonry {
  column-gap: var(--listing-gap-md);
  margin: calc(var(--space-unit) * 1.5) 0 0;
}

@media (min-width: 36rem) {
  .m-template-ecwonmy .m-gallery-masonry {
    columns: 2;
  }
}

@media (min-width: 56rem) {
  .m-template-ecwonmy .m-gallery-masonry {
    columns: 3;
  }
}

@media (min-width: 80rem) {
  .m-template-ecwonmy .m-gallery-masonry {
    columns: 4;
  }
}

.m-template-ecwonmy
  .m-gallery-masonry
  .m-gallery__link:hover
  .m-gallery__caption--overlay,
.m-template-ecwonmy
  .m-gallery-masonry
  .m-gallery__link:focus-visible
  .m-gallery__caption--overlay {
  opacity: 1;
}

.m-template-ecwonmy .m-gallery-masonry .m-gallery__item--tall .m-gallery__img,
.m-template-ecwonmy
  .m-gallery-masonry
  .m-gallery__item--tall
  .m-gallery__placeholder {
  aspect-ratio: 3 / 4;
  min-height: 14rem;
}

.m-template-ecwonmy .m-gallery-masonry .m-gallery__img {
  height: auto;
  width: 100%;
  border-radius: 0;
}

/* Gallery — cards (uniform photo-wall grid) */
.m-template-ecwonmy .m-gallery-cards {
  display: grid;
  grid-template-columns: repeat(
    var(--gallery-cards-cols-sm, 2),
    minmax(0, 1fr)
  );
  gap: calc(var(--space-unit) * 0.75);
  list-style: none;
  padding: 0;
  margin: calc(var(--space-unit) * 1.5) 0 0;
}

@media (min-width: 40rem) {
  .m-template-ecwonmy .m-gallery-cards {
    grid-template-columns: repeat(
      var(--gallery-cards-cols-md, 3),
      minmax(0, 1fr)
    );
    gap: var(--listing-gap-sm, calc(var(--space-unit) * 0.85));
  }
}

@media (min-width: 64rem) {
  .m-template-ecwonmy .m-gallery-cards {
    grid-template-columns: repeat(
      var(--gallery-cards-cols-lg, 5),
      minmax(0, 1fr)
    );
    gap: var(--listing-gap-md);
  }
}

.m-template-ecwonmy .m-gallery-cards__cell {
  margin: 0;
  min-width: 0;
}

.m-template-ecwonmy .m-gallery-cards__card {
  margin: 0;
  height: 100%;
}

.m-template-ecwonmy .m-gallery-cards__link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.m-template-ecwonmy .m-gallery-cards__img,
.m-template-ecwonmy .m-gallery-cards__link .m-gallery__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: var(--gallery-cards-aspect, 3 / 2);
  border-radius: 0;
}

.m-template-ecwonmy .m-gallery__caption--cards {
  position: absolute;
  inset: auto 0 0 0;
  padding: calc(var(--space-unit) * 1.75) calc(var(--space-unit) * 0.75)
    calc(var(--space-unit) * 0.65);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--color-primary) 88%, #000),
    transparent
  );
  opacity: 0;
  transition: opacity 200ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-template-ecwonmy .m-gallery-cards__link:hover .m-gallery__caption--cards,
.m-template-ecwonmy
  .m-gallery-cards__link:focus-visible
  .m-gallery__caption--cards {
  opacity: 1;
}

/* Image Store — grid (flat platform images, no detail links) */
.m-template-ecwonmy .m-image-grid {
  display: grid;
  grid-template-columns: repeat(var(--image-grid-cols-sm, 2), minmax(0, 1fr));
  gap: calc(var(--space-unit) * 0.75);
  list-style: none;
  padding: 0;
  margin: calc(var(--space-unit) * 1.5) 0 0;
}

@media (min-width: 40rem) {
  .m-template-ecwonmy .m-image-grid {
    grid-template-columns: repeat(var(--image-grid-cols-md, 3), minmax(0, 1fr));
    gap: var(--listing-gap-sm, calc(var(--space-unit) * 0.85));
  }
}

@media (min-width: 64rem) {
  .m-template-ecwonmy .m-image-grid {
    grid-template-columns: repeat(var(--image-grid-cols-lg, 4), minmax(0, 1fr));
    gap: var(--listing-gap-md, calc(var(--space-unit) * 1));
  }
}

.m-template-ecwonmy .m-image-grid__cell {
  margin: 0;
  min-width: 0;
}

/* grid2: first cell double width + double height */
.m-template-ecwonmy .m-image-grid--featured .m-image-grid__cell--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.m-template-ecwonmy
  .m-image-grid--featured
  .m-image-grid__cell--featured
  .m-image-grid__figure {
  height: 100%;
}

.m-template-ecwonmy .m-image-grid__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md, 0.5rem);
  /* Prefer page canvas — light #e2e8f0 fallback flashed white cells on dark storefronts before img paint */
  aspect-ratio: var(--image-grid-aspect, 1 / 1);
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition:
    outline-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.m-template-ecwonmy .m-image-grid__cell:hover .m-image-grid__figure,
.m-template-ecwonmy .m-image-grid__cell:focus-within .m-image-grid__figure {
  outline-color: color-mix(
    in srgb,
    var(--color-primary, #2563eb) 55%,
    transparent
  );
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--color-primary, #2563eb) 35%, transparent),
    0 8px 20px
      color-mix(in srgb, var(--color-primary, #2563eb) 18%, transparent);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .m-template-ecwonmy .m-image-grid__figure {
    transition: none;
  }

  .m-template-ecwonmy .m-image-grid__cell:hover .m-image-grid__figure,
  .m-template-ecwonmy .m-image-grid__cell:focus-within .m-image-grid__figure {
    transform: none;
  }
}

.m-template-ecwonmy .m-image-grid__img,
.m-template-ecwonmy .m-image-grid__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-template-ecwonmy .m-image-grid__placeholder {
  min-height: 6rem;
}

.m-template-ecwonmy .m-image-grid__caption {
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted, var(--color-text, #64748b));
  background: var(--color-surface, var(--surface, #252525));
}

/* grid-caption: caption pinned to image bottom with theme tokens (40% transparent) */
.m-template-ecwonmy .m-image-grid--caption .m-image-grid__caption--on-image {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  margin: 0;
  padding: calc(var(--space-unit, 0.5rem) * 0.9)
    calc(var(--space-unit, 0.5rem) * 1);
  font-size: 0.85rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--color-text, #f1f5f9);
  background: color-mix(
    in srgb,
    var(--color-surface, #252525) 60%,
    transparent
  );
  border-top: 1px solid
    color-mix(in srgb, var(--color-primary, #1c4268) 35%, transparent);
}

.m-template-ecwonmy .m-gallery__caption--overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: calc(var(--space-unit) * 2.5) calc(var(--space-unit) * 1)
    calc(var(--space-unit) * 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--color-primary) 85%, #000),
    transparent
  );
  opacity: 0;
  transition: opacity 220ms ease;
}

.m-template-ecwonmy .m-gallery__link:hover .m-gallery__caption--overlay,
.m-template-ecwonmy
  .m-gallery__link:focus-visible
  .m-gallery__caption--overlay {
  opacity: 1;
}

.m-template-ecwonmy .m-gallery__link {
  position: relative;
}

.m-template-ecwonmy .m-gallery__open-hint {
  position: absolute;
  right: calc(var(--space-unit) * 0.65);
  bottom: calc(var(--space-unit) * 0.65);
  z-index: 1;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: color-mix(in srgb, #000 55%, transparent);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.m-template-ecwonmy .m-gallery__link:hover .m-gallery__open-hint,
.m-template-ecwonmy .m-gallery__link:focus-visible .m-gallery__open-hint {
  opacity: 1;
}

/* =============================================================================
   Banner listings (unique layouts only)
   ============================================================================= */

/* Banner listings (lay/banner) — autoplay active states */
.m-template-ecwonmy .m-banner-stacked {
  position: relative;
  aspect-ratio: auto;
  border-radius: var(--radius-base);
  overflow: hidden;
}

.m-template-ecwonmy .m-banner-stacked .m-banner__card {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
  z-index: 1;
}

.m-template-ecwonmy .m-banner-stacked .m-banner__card.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.m-template-ecwonmy .m-banner-stacked-cards {
  position: relative;
  overflow: hidden;
}

.m-template-ecwonmy .m-banner-stacked-cards [data-banner-slide].is-active {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

/* =============================================================================
   Module hub (unique layouts only)
   ============================================================================= */

/* Module hub — /p/, /n/, /g/, /faq */
.m-template-ecwonmy .c-module-hub.m-module-hub {
  margin: calc(var(--space-unit) * 1.5) 0 calc(var(--space-unit) * 2.5);
}

.m-template-ecwonmy .m-module-hub__section + .m-module-hub__section {
  margin-top: calc(var(--space-unit) * 2.75);
}

.m-template-ecwonmy .m-module-hub__title {
  margin: 0 0 calc(var(--space-unit) * 1.35);
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw + 0.5rem, 1.375rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.m-template-ecwonmy .m-module-hub__intro {
  position: relative;
  isolation: isolate;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1rem, 2.8vw, 1.75rem) clamp(1rem, 3vw, 1.85rem);
  padding-left: clamp(1.1rem, 3vw, 1.95rem);
  border-radius: calc(var(--radius-base) + 6px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 28%, var(--table-border));
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--color-surface) 82%, transparent) 0%,
    color-mix(in srgb, var(--color-surface) 58%, transparent) 100%
  );
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--color-accent) 14%, transparent),
    0 12px 36px color-mix(in srgb, #000 38%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--color-text) 8%, transparent);
  overflow: hidden;
}

/* Editorial rail — hierarchy without relying on color alone (UI/UX: structure + contrast). */
.m-template-ecwonmy .m-module-hub__intro::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: calc(var(--radius-base) + 6px) 0 0
    calc(var(--radius-base) + 6px);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-accent) 95%, #fff),
    color-mix(in srgb, var(--color-primary) 75%, var(--color-accent))
  );
  pointer-events: none;
  z-index: 1;
}

.m-template-ecwonmy .m-module-hub__intro::after {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: min(52vw, 22rem);
  height: min(52vw, 22rem);
  background: radial-gradient(
    circle at 30% 30%,
    color-mix(in srgb, var(--color-primary) 22%, transparent),
    transparent 68%
  );
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .m-template-ecwonmy .m-module-hub__intro {
    animation: m-hub-intro-rise 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes m-hub-intro-rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.m-template-ecwonmy .m-hub-intro__body {
  position: relative;
  z-index: 2;
  max-width: min(100%, 56rem);
  overflow-x: auto;
  font-size: clamp(0.9375rem, 0.25vw + 0.9rem, 1.0625rem);
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-text) 94%, transparent);
}

.m-template-ecwonmy .m-hub-intro__body :where(h1, h2, h3, h4) {
  margin-top: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-text);
}

.m-template-ecwonmy .m-hub-intro__body h1 {
  font-size: clamp(1.35rem, 2vw + 0.65rem, 1.85rem);
}

.m-template-ecwonmy .m-hub-intro__body h2 {
  font-size: clamp(1.2rem, 1.2vw + 0.85rem, 1.5rem);
}

.m-template-ecwonmy .m-hub-intro__body h3 {
  font-size: clamp(1.05rem, 0.8vw + 0.85rem, 1.2rem);
}

.m-template-ecwonmy .m-hub-intro__body :where(p, ul, ol, blockquote, pre) {
  margin-top: 0;
}

.m-template-ecwonmy
  .m-hub-intro__body
  :where(p, ul, ol, blockquote, pre, h1, h2, h3, h4):not(:first-child) {
  margin-top: 0.85em;
}

.m-template-ecwonmy .m-hub-intro__body :where(ul, ol) {
  padding-inline-start: 1.35em;
}

.m-template-ecwonmy .m-hub-intro__body li + li {
  margin-top: 0.35em;
}

.m-template-ecwonmy .m-hub-intro__body blockquote {
  margin-inline: 0;
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 3px solid
    color-mix(in srgb, var(--color-accent) 55%, transparent);
  background: color-mix(in srgb, var(--color-surface) 35%, transparent);
  border-radius: 0 calc(var(--radius-base) + 2px) calc(var(--radius-base) + 2px)
    0;
  font-style: italic;
  color: color-mix(in srgb, var(--color-text) 88%, transparent);
}

.m-template-ecwonmy .m-hub-intro__body :where(a) {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition:
    color 180ms ease,
    text-underline-offset 180ms ease;
}

.m-template-ecwonmy .m-hub-intro__body :where(a:hover) {
  color: color-mix(in srgb, var(--color-primary) 82%, var(--color-accent));
}

.m-template-ecwonmy .m-hub-intro__body :where(a:focus-visible) {
  outline: 2px solid
    color-mix(in srgb, var(--color-primary) 70%, var(--color-accent));
  outline-offset: 3px;
  border-radius: 2px;
}

.m-template-ecwonmy .m-hub-intro__body :where(img, video, iframe) {
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius-base) + 2px);
}

.m-template-ecwonmy .m-hub-intro__body :where(table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94em;
}

.m-template-ecwonmy .m-hub-intro__body :where(th, td) {
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 18%, var(--table-border));
  padding: 0.5rem 0.65rem;
}

.m-template-ecwonmy .m-hub-intro__body :where(th) {
  text-align: start;
  background: color-mix(in srgb, var(--color-surface) 42%, transparent);
}

.m-template-ecwonmy .m-module-hub__notice {
  margin: 0 0 calc(var(--space-unit) * 1.25);
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

.m-template-ecwonmy .m-module-hub__categories {
  display: grid;
  gap: var(--listing-gap-md);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.m-template-ecwonmy .m-module-hub__category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--space-unit) * 0.75);
  padding: calc(var(--space-unit) * 1.1) calc(var(--space-unit) * 1.25);
  text-decoration: none;
  color: inherit;
}

.m-template-ecwonmy .m-module-hub__category-cta {
  flex-shrink: 0;
  opacity: 0.55;
  font-size: 1.125rem;
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

.m-template-ecwonmy
  .m-module-hub__category-link:hover
  .m-module-hub__category-cta,
.m-template-ecwonmy
  .m-module-hub__category-link:focus-visible
  .m-module-hub__category-cta {
  opacity: 1;
  transform: translateX(3px);
}

.m-template-ecwonmy .m-module-hub__listing {
  margin-top: calc(var(--space-unit) * 0.5);
}

.m-template-ecwonmy .m-module-hub__empty {
  text-align: center;
  padding: calc(var(--space-unit) * 3) calc(var(--space-unit) * 1.5);
  border: var(--border-width) dashed
    color-mix(in srgb, var(--color-accent) 35%, transparent);
  border-radius: calc(var(--radius-base) + 2px);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  box-shadow: inset 0 1px 0
    color-mix(in srgb, var(--color-accent) 8%, transparent);
}

.m-template-ecwonmy .m-module-hub__empty--inline {
  text-align: left;
  padding: calc(var(--space-unit) * 1.25);
  margin: calc(var(--space-unit) * 0.75) 0 0;
}

.m-template-ecwonmy .m-module-hub__empty-text {
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.m-template-ecwonmy .m-module-hub__empty-action {
  margin: calc(var(--space-unit) * 1) 0 0;
}

.m-template-ecwonmy .m-module-hub__empty-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* =============================================================================
   Contact page (layout; fields → .m-form)
   ============================================================================= */

/* ---- Storefront contact hub (/…/c/) — PHP fallback + shared motion tokens ---- */
.sf-contact-entrance {
  animation: sf-contact-rise 440ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sf-contact-entrance--defer {
  animation-delay: 75ms;
}

@keyframes sf-contact-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.m-template-ecwonmy .m-contact-page[data-storefront-contact="1"] {
  width: 100%;
  max-width: min(72rem, 100%);
  margin-inline: auto;
}

.m-template-ecwonmy .m-contact-page__hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-base) + 10px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 38%, transparent);
  padding: calc(var(--space-unit) * 3.25) calc(var(--space-unit) * 3);
  background:
    radial-gradient(
      ellipse 120% 90% at 100% 0%,
      color-mix(in srgb, var(--color-accent) 18%, transparent),
      transparent 52%
    ),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--color-surface) 82%, transparent),
      color-mix(in srgb, var(--color-accent) 14%, var(--color-surface)),
      color-mix(in srgb, var(--color-surface) 88%, transparent)
    );
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 color-mix(in srgb, var(--color-text) 10%, transparent);
  box-sizing: border-box;
}

.m-template-ecwonmy .m-contact-page__hero-kicker {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-accent) 82%, var(--color-text));
}

.m-template-ecwonmy .m-contact-page__hero-headline {
  margin: calc(var(--space-unit) * 1.1) 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--color-text);
  text-transform: none;
  text-shadow: none;
}

.m-template-ecwonmy .m-contact-page__hero-sub {
  margin: calc(var(--space-unit) * 1.25) 0 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-text) 88%, var(--color-surface));
}

.m-template-ecwonmy .m-contact-page__layout {
  display: grid;
  gap: calc(var(--space-unit) * 3);
  margin-top: calc(var(--space-unit) * 3.5);
  align-items: start;
}

@media (min-width: 64rem) {
  .m-template-ecwonmy .m-contact-page__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: calc(var(--space-unit) * 4);
  }
}

.m-template-ecwonmy .m-contact-page__card {
  border-radius: calc(var(--radius-base) + 8px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 28%, transparent);
  background: color-mix(in srgb, var(--color-surface) 74%, transparent);
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 color-mix(in srgb, var(--color-text) 8%, transparent);
  padding: calc(var(--space-unit) * 3);
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.m-template-ecwonmy .m-contact-page__eyebrow {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-accent) 78%, var(--color-text));
}

.m-template-ecwonmy .m-contact-page__intro-body {
  margin-top: calc(var(--space-unit) * 2);
}

.m-template-ecwonmy .m-contact-page__intro-body :where(p, li, td, th) {
  color: color-mix(in srgb, var(--color-text) 93%, var(--color-surface));
  line-height: 1.65;
}

.m-template-ecwonmy .m-contact-page__intro-body :where(a) {
  color: var(--color-primary);
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.m-template-ecwonmy .m-contact-page__empty {
  margin: calc(var(--space-unit) * 2) 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 72%, var(--color-surface));
}

.m-template-ecwonmy .m-contact-page__notice {
  font-size: 0.95rem;
  line-height: 1.6;
  border-left: 4px solid
    color-mix(in srgb, var(--color-accent) 55%, transparent);
}

.m-template-ecwonmy .m-contact-page__form-head {
  margin-bottom: calc(var(--space-unit) * 2.25);
  padding-bottom: calc(var(--space-unit) * 2);
  border-bottom: var(--border-width) solid
    color-mix(in srgb, var(--color-text) 12%, transparent);
}

.m-template-ecwonmy .m-contact-page__form-title {
  margin: calc(var(--space-unit) * 0.75) 0 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text);
  text-transform: none;
  text-shadow: none;
}

.m-template-ecwonmy .m-contact-page__form {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 2.25);
}

.m-template-ecwonmy .m-contact-page__field-row {
  display: grid;
  gap: calc(var(--space-unit) * 2);
}

@media (min-width: 36rem) {
  .m-template-ecwonmy .m-contact-page__field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.m-template-ecwonmy .m-contact-page__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 94%, var(--color-surface));
}

.m-template-ecwonmy .m-contact-page__input,
.m-template-ecwonmy .m-contact-page__textarea {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-base);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-text) 22%, transparent);
  background: color-mix(in srgb, var(--color-surface) 58%, transparent);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px
    color-mix(in srgb, var(--color-background) 55%, transparent);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.m-template-ecwonmy .m-contact-page__textarea {
  min-height: 168px;
  resize: vertical;
}

.m-template-ecwonmy .m-contact-page__input:focus-visible,
.m-template-ecwonmy .m-contact-page__textarea:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--color-accent) 62%, var(--color-text));
  box-shadow:
    inset 0 1px 2px color-mix(in srgb, var(--color-background) 55%, transparent),
    0 0 0 3px color-mix(in srgb, var(--color-accent) 35%, transparent);
}
.m-template-ecwonmy .m-contact-page__submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 2);
  align-items: center;
  justify-content: space-between;
  padding-top: calc(var(--space-unit) * 0.5);
}

.m-template-ecwonmy .m-contact-page__submit {
  min-height: 48px;
  min-width: 10rem;
  padding-inline: calc(var(--space-unit) * 3);
  cursor: pointer;
}

.m-template-ecwonmy .m-contact-page__hint {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 68%, var(--color-surface));
}

.m-template-ecwonmy .m-contact-page__captcha {
  margin-top: calc(var(--space-unit) * 0.25);
  padding-top: calc(var(--space-unit) * 2);
  border-top: var(--border-width) solid
    color-mix(in srgb, var(--color-text) 10%, transparent);
}

.m-template-ecwonmy .m-contact-page__label--captcha {
  margin-bottom: calc(var(--space-unit) * 0.5);
}

.m-template-ecwonmy .m-contact-page__captcha-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: calc(var(--space-unit) * 1.25);
}

@media (min-width: 40rem) {
  .m-template-ecwonmy .m-contact-page__captcha-inner {
    flex-direction: row;
    align-items: center;
    gap: calc(var(--space-unit) * 1.75);
  }
}

.m-template-ecwonmy .m-contact-page__captcha-visual {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: calc(var(--space-unit) * 1.5);
  flex-shrink: 0;
}

.m-template-ecwonmy .m-contact-page__captcha-img {
  display: block;
  flex-shrink: 0;
  width: 160px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius-base) + 4px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-text) 18%, transparent);
  box-sizing: border-box;
  background: color-mix(
    in srgb,
    var(--color-surface) 70%,
    var(--color-background)
  );
}

.m-template-ecwonmy .m-contact-page__captcha-refresh {
  box-sizing: border-box;
  min-height: 48px;
  height: 48px;
  padding-inline: calc(var(--space-unit) * 2);
  cursor: pointer;
  font-size: 0.82rem;
  white-space: nowrap;
}

.m-template-ecwonmy .m-contact-page__captcha-input-wrap {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 22rem;
}

@media (min-width: 40rem) {
  .m-template-ecwonmy .m-contact-page__captcha-input-wrap {
    max-width: none;
  }
}

/* Async contact submit feedback (same hooks as Astro {@code sf-contact-feedback}). */
.sf-contact-feedback {
  display: none;
  margin-bottom: calc(var(--space-unit) * 2.5);
  border-radius: calc(var(--radius-base) + 6px);
  padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 2.75);
  font-size: 0.875rem;
  line-height: 1.65;
  border-width: var(--border-width);
  border-style: solid;
}

.sf-contact-feedback.sf-contact-feedback--show {
  display: block;
}

.sf-contact-feedback--success {
  border-color: color-mix(in srgb, rgb(16 185 129) 38%, transparent);
  background: color-mix(in srgb, rgb(236 253 245) 96%, var(--color-surface));
  color: rgb(6 78 59);
}

.sf-contact-feedback--error {
  border-color: color-mix(in srgb, rgb(239 68 68) 42%, transparent);
  background: color-mix(in srgb, rgb(254 242 242) 96%, var(--color-surface));
  color: rgb(127 29 29);
}

.sf-contact-feedback__text {
  margin: 0;
}

.sf-contact-feedback__reload {
  margin-top: calc(var(--space-unit) * 1.75);
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius-base) + 4px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-text) 14%, transparent);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  padding: calc(var(--space-unit) * 1) calc(var(--space-unit) * 2.25);
  font-size: 0.8125rem;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}

.sf-contact-feedback__reload:hover {
  background: color-mix(in srgb, var(--color-surface) 100%, transparent);
}

/* =============================================================================
   Shortcodes (lotto / livescore / livestream / LinkV2 / transferlist / PWA)
   ============================================================================= */

/* =============================================================================
   Storefront shortcodes (lotto, livescore, livestream) — edit in this file
   Mirror: assets/storefront-shortcodes.css (tools/sync_shortcode_css_from_tp.py)
   ============================================================================= */

/* =============================================================================
   Shared design tokens (lotto, livescore, livestream)
   ============================================================================= */

.cms-livescore-root,
.cms-livestream-root,
#cms-lotto-block.cms-lotto-root {
  --cms-widget-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --cms-widget-duration: 260ms;
  --cms-widget-duration-fast: 220ms;
  --cms-widget-panel-bg: color-mix(
    in srgb,
    var(--color-surface) 82%,
    var(--color-background)
  );
  --cms-widget-panel-border: color-mix(
    in srgb,
    var(--color-accent) 28%,
    transparent
  );
  --cms-widget-league-bg: color-mix(
    in srgb,
    var(--color-accent) 22%,
    var(--color-surface)
  );
  --cms-widget-row-hover: color-mix(
    in srgb,
    var(--color-primary) 10%,
    transparent
  );
  --cms-widget-live: color-mix(
    in srgb,
    var(--color-success) 75%,
    var(--color-highlight)
  );
  --cms-widget-finished: color-mix(in srgb, var(--color-text) 55%, transparent);
  --cms-widget-bg: var(--color-background, #020617);
  --cms-widget-surface: var(--color-surface, #060a12);
  --cms-widget-text: var(--color-text, #f1f5f9);
  --cms-widget-accent: var(--color-primary, #38bdf8);
}

/* =============================================================================
   Widget chrome (lotto toolbar + match-feed panels share cms-widget tokens)
   ============================================================================= */

#cms-lotto-block .m-lotto-toolbar,
.cms-livescore-root--pro .m-livescorepro-toolbar {
  border: 1px solid var(--cms-widget-panel-border);
  box-shadow: var(--shadow-sm, 0 4px 24px rgba(0, 0, 0, 0.12));
}

/* =============================================================================
   Lottery shortcode (lottoresult) — scoped under #cms-lotto-block
   Editable here for designers; bundled with this template CSS.
   ============================================================================= */
/*
  Lottery shortcode — scoped under #cms-lotto-block.
  Colors follow merchant template :root tokens (--color-*, --table-*, --shadow-*, --radius-base)
  when present; fallbacks keep blocks readable off-template.
*/
#cms-lotto-block.cms-lotto-root {
  --lotto-radius-lg: var(--radius-base, 0.875rem);
  --lotto-radius-md: max(0.375rem, calc(var(--lotto-radius-lg) * 0.55));
  --lotto-radius-sm: max(0.25rem, calc(var(--lotto-radius-lg) * 0.32));
  --lotto-space-1: 0.25rem;
  --lotto-space-2: 0.5rem;
  --lotto-space-3: 0.75rem;
  --lotto-space-4: 1rem;
  --lotto-space-5: 1.25rem;
  --lotto-ease: var(--cms-widget-ease);
  --lotto-duration: var(--cms-widget-duration-fast);
  --lotto-bg: var(--cms-widget-bg);
  --lotto-surface: var(--cms-widget-surface);
  --lotto-cell: color-mix(
    in srgb,
    var(--color-surface, #060a12) 88%,
    var(--color-text, #f1f5f9) 12%
  );
  --lotto-cell-border: var(
    --table-border,
    color-mix(
      in srgb,
      var(--color-accent, #e8c547) 35%,
      var(--color-surface, #060a12)
    )
  );
  --lotto-text: var(--cms-widget-text);
  --lotto-muted: color-mix(
    in srgb,
    var(--color-text, #f1f5f9) 68%,
    var(--color-surface, #060a12)
  );
  --lotto-accent: var(--cms-widget-accent);
  --lotto-accent-head: color-mix(
    in srgb,
    var(--color-primary, #38bdf8) 78%,
    var(--color-background, #020617)
  );
  --lotto-accent-muted: color-mix(
    in srgb,
    var(--color-primary, #38bdf8) 35%,
    var(--color-surface, #060a12)
  );
  --lotto-border: color-mix(
    in srgb,
    var(--color-accent, #e8c547) 40%,
    var(--color-surface, #060a12)
  );
  --lotto-shadow-1: var(
    --shadow-sm,
    0 4px 24px color-mix(in srgb, var(--color-accent, #e8c547) 22%, transparent)
  );
  --lotto-shadow-2:
    var(
      --shadow-sm,
      0 4px 24px
        color-mix(in srgb, var(--color-accent, #e8c547) 22%, transparent)
    ),
    0 12px 40px
      color-mix(in srgb, var(--color-primary, #38bdf8) 18%, transparent);
  --lotto-type-label: 0.75rem;
  --lotto-type-body: 0.8125rem;
  --lotto-type-title: 0.875rem;
  --lotto-type-data: 0.9375rem;
  --lotto-type-subgrid: 1.0625rem;
  isolation: isolate;
  font-family: var(--font-body, ui-sans-serif, system-ui, sans-serif);
}

#cms-lotto-block .m-lotto-result {
  margin: var(--lotto-space-5) 0;
  max-width: none;
}

#cms-lotto-block .m-lotto-toolbar {
  margin-bottom: var(--lotto-space-4);
  padding: var(--lotto-space-4);
  border-radius: var(--lotto-radius-md);
  background: var(--bg-card);
  border: 1px solid var(--bg-theme-color);
  box-shadow: var(--lotto-shadow-1);
}
/* Bento-style toolbar: field group + actions row; 8px rhythm (UI/UX spacing). */
#cms-lotto-block .m-lotto-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: var(--lotto-space-4);
}

#cms-lotto-block .m-lotto-toolbar__field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--lotto-space-2);
  min-width: min(100%, 12.5rem);
  flex: 0 1 auto;
}

#cms-lotto-block .m-lotto-toolbar__label {
  font-size: var(--lotto-type-label);
  font-weight: 600;
  color: var(--lotto-muted);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

#cms-lotto-block .m-lotto-toolbar__date-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 16rem;
  min-height: 2.75rem;
  border-radius: var(--lotto-radius-sm);
  border: 1px solid var(--bg-theme-color);
  background: var(--bg-card);
  overflow: hidden;
}

#cms-lotto-block .m-lotto-toolbar__open-cal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid var(--bg-theme-color);
  background: var(--bg-card);
  color: var(--lotto-accent);
  cursor: pointer;
  transition: unset;
}

#cms-lotto-block .m-lotto-toolbar__open-cal:hover {
  background: color-mix(in srgb, var(--lotto-accent) 12%, var(--lotto-cell));
}

#cms-lotto-block .m-lotto-toolbar__open-cal:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--lotto-accent) 65%, transparent);
  outline-offset: 2px;
  z-index: 1;
}

#cms-lotto-block .m-lotto-toolbar__cal-icon {
  display: block;
}

#cms-lotto-block .m-lotto-toolbar__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--lotto-space-4);
  margin-left: auto;
  min-height: 2.75rem;
}

#cms-lotto-block .m-lotto-toolbar__credit {
  display: block;
  margin: 0;
  padding: 0;
  text-align: right;
}

/* Single baseline-aligned line: no awkward wrap between “powered by” and brand */
#cms-lotto-block .m-lotto-toolbar__credit-line {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.25em;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--lotto-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

#cms-lotto-block .m-lotto-toolbar__credit-suffix {
  opacity: 0.92;
}

#cms-lotto-block .m-lotto-toolbar__brand {
  color: color-mix(in srgb, var(--lotto-accent) 88%, var(--lotto-text));
  font-weight: 700;
  letter-spacing: 0.03em;
}

#cms-lotto-block .m-lotto-toolbar__btn {
  flex: 0 0 auto;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 var(--lotto-space-4);
  border-radius: var(--lotto-radius-sm);
  border: 1px solid
    color-mix(
      in srgb,
      var(--color-accent, #e8c547) 55%,
      var(--color-background, #020617)
    );
  background: linear-gradient(
    180deg,
    color-mix(
        in srgb,
        var(--color-accent, #e8c547) 92%,
        var(--color-background, #020617)
      )
      0%,
    color-mix(
        in srgb,
        var(--color-accent, #e8c547) 72%,
        var(--color-primary, #38bdf8)
      )
      100%
  );
  color: var(--color-background, #020617);
  font-size: var(--lotto-type-label);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--lotto-duration) var(--lotto-ease),
    filter var(--lotto-duration) var(--lotto-ease);
}

#cms-lotto-block .m-lotto-toolbar__btn:focus-visible {
  outline: 2px solid
    color-mix(in srgb, var(--color-accent, #e8c547) 70%, transparent);
  outline-offset: 2px;
}

#cms-lotto-block .m-lotto-toolbar__btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

#cms-lotto-block .m-lotto-toolbar__btn:active:not(:disabled) {
  transform: translateY(1px);
}

#cms-lotto-block .m-lotto-toolbar__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#cms-lotto-block .m-lotto-toolbar__status {
  display: block;
  margin-top: var(--lotto-space-2);
  min-height: 1.25rem;
  font-size: var(--lotto-type-label);
  color: var(--lotto-muted);
}

@media (max-width: 639px) {
  #cms-lotto-block .m-lotto-toolbar__row {
    flex-direction: column;
    align-items: stretch;
  }

  #cms-lotto-block .m-lotto-toolbar__field {
    max-width: none;
  }

  #cms-lotto-block .m-lotto-toolbar__date-field {
    max-width: none;
  }

  #cms-lotto-block .m-lotto-toolbar__actions {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--lotto-space-3);
  }

  #cms-lotto-block .m-lotto-toolbar__credit {
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
  }

  #cms-lotto-block .m-lotto-toolbar__credit-line {
    white-space: normal;
    justify-content: flex-end;
    text-align: right;
  }
}

#cms-lotto-block .m-lotto-result--empty,
#cms-lotto-block .m-lotto-result--error {
  padding: var(--lotto-space-4) 1.125rem;
  border-radius: var(--lotto-radius-md);
  border: 1px solid var(--lotto-cell-border);
  background: color-mix(
    in srgb,
    var(--color-surface, #060a12) 92%,
    var(--color-text, #f1f5f9) 8%
  );
  color: var(--lotto-text);
  line-height: 1.55;
}

#cms-lotto-block .m-lotto-result--loading {
  padding: var(--lotto-space-4, 1rem) 0.5rem 1.25rem;
}

#cms-lotto-block .m-lotto-result__msg--loading {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  opacity: 0.75;
}

#cms-lotto-block .m-lotto-result__skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.75rem;
}

#cms-lotto-block .m-lotto-result__skeleton-card {
  display: block;
  min-height: 7.5rem;
  border-radius: var(--lotto-radius-md, 0.5rem);
  background: linear-gradient(
    90deg,
    color-mix(
        in srgb,
        var(--color-surface, #060a12) 88%,
        var(--lotto-cell-border, #334155)
      )
      0%,
    color-mix(
        in srgb,
        var(--color-surface, #060a12) 70%,
        var(--lotto-cell-border, #334155)
      )
      50%,
    color-mix(
        in srgb,
        var(--color-surface, #060a12) 88%,
        var(--lotto-cell-border, #334155)
      )
      100%
  );
  background-size: 200% 100%;
  animation: m-lotto-skeleton-shimmer 1.1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  #cms-lotto-block .m-lotto-result__skeleton-card {
    animation: none;
  }
}

@keyframes m-lotto-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

#cms-lotto-block .m-lotto-result--error {
  border-color: color-mix(
    in srgb,
    var(--color-error) 45%,
    var(--color-surface, #060a12)
  );
  background: color-mix(
    in srgb,
    var(--color-error) 12%,
    var(--color-surface, #060a12)
  );
}

#cms-lotto-block .m-lotto-result--empty .m-lotto-result__msg,
#cms-lotto-block .m-lotto-result__lead,
#cms-lotto-block .m-lotto-result__msg {
  margin: 0;
  font-size: 1rem;
  color: var(--lotto-text);
}

#cms-lotto-block .m-lotto-result__lead {
  font-weight: 600;
  color: color-mix(
    in srgb,
    var(--color-accent, #e8c547) 85%,
    var(--color-text, #f1f5f9)
  );
}

#cms-lotto-block .m-lotto-result__detail {
  margin: var(--lotto-space-2) 0 0;
  font-size: 0.9375rem;
  color: var(--lotto-muted);
  line-height: 1.5;
}

#cms-lotto-block .m-lotto-result__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lotto-space-4);
  align-items: stretch;
  max-width: 80rem;
  margin-inline: auto;
}

@media (min-width: 40rem) {
  #cms-lotto-block .m-lotto-result__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 68.75rem) {
  #cms-lotto-block .m-lotto-result__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#cms-lotto-block .m-lotto-result__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

#cms-lotto-block .m-lotto-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  border: 1px solid var(--lotto-border);
  border-radius: var(--lotto-radius-lg);
  background: var(--bg-theme-color);
  color: var(--bg-theme-textcolor);
  overflow: hidden;
  font-size: var(--lotto-type-body);
  line-height: 1.45;
  box-shadow: var(--lotto-shadow-1);
}

#cms-lotto-block .m-lotto-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px
    color-mix(in srgb, var(--color-text, #f1f5f9) 8%, transparent) inset;
}

#cms-lotto-block .m-lotto-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--lotto-space-3);
  padding: var(--lotto-space-3) var(--lotto-space-3);
  min-height: 3.25rem;
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--color-text, #f1f5f9) 18%, transparent) 0%,
      color-mix(in srgb, var(--color-background, #020617) 35%, transparent) 42%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      var(--lotto-accent) 0%,
      var(--lotto-accent-head) 100%
    );
  color: var(--color-background, #020617);
}

#cms-lotto-block .m-lotto-card__brand {
  display: flex;
  align-items: center;
  gap: var(--lotto-space-3);
  min-width: 0;
}

#cms-lotto-block .m-lotto-card__logo {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: color-mix(
    in srgb,
    var(--color-background, #020617) 32%,
    transparent
  );
  box-shadow: 0 0 0 1px
    color-mix(in srgb, var(--color-background, #020617) 45%, transparent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8125rem;
}

#cms-lotto-block .m-lotto-card__titles {
  min-width: 0;
}

#cms-lotto-block .m-lotto-card__title {
  margin: 0;
  font-size: var(--lotto-type-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}

#cms-lotto-block .m-lotto-card__class {
  display: inline-block;
  margin-top: var(--lotto-space-1);
  padding: 0.125rem 0.4rem;
  border-radius: 999px;
  font-size: var(--lotto-type-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: color-mix(
    in srgb,
    var(--color-background, #020617) 28%,
    transparent
  );
  color: color-mix(
    in srgb,
    var(--color-background, #020617) 92%,
    var(--color-text, #f1f5f9)
  );
  line-height: 1.35;
}

#cms-lotto-block .m-lotto-card--empty .m-lotto-card__body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
}

#cms-lotto-block .m-lotto-card__empty {
  margin: 0;
  padding: var(--lotto-space-3);
  text-align: center;
  font-size: var(--lotto-type-body);
  color: var(--lotto-muted);
  line-height: 1.5;
}

#cms-lotto-block .m-lotto-card__meta {
  text-align: right;
  flex-shrink: 0;
}

#cms-lotto-block .m-lotto-card__date-label {
  display: block;
  font-size: var(--lotto-type-label);
  font-weight: 600;
  opacity: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

#cms-lotto-block .m-lotto-card__date {
  display: block;
  margin-top: var(--lotto-space-1);
  font-size: var(--lotto-type-body);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

#cms-lotto-block .m-lotto-card__body {
  flex: 1 1 auto;
  padding: var(--lotto-space-3) var(--lotto-space-3) var(--lotto-space-4);
  touch-action: manipulation;
}

#cms-lotto-block .m-lotto-card__draw-id {
  display: block;
  margin-top: var(--lotto-space-3);
  padding-top: var(--lotto-space-2);
  border-top: 1px solid var(--lotto-cell-border);
  font-size: var(--lotto-type-label);
  color: var(--lotto-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#cms-lotto-block .m-lotto-card__top3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--lotto-space-2);
  margin-bottom: var(--lotto-space-3);
}

#cms-lotto-block .m-lotto-card__prize-col {
  text-align: center;
}

#cms-lotto-block .m-lotto-card__prize-label {
  display: block;
  font-size: var(--lotto-type-label);
  font-weight: 600;
  color: var(--lotto-muted);
  margin-bottom: var(--lotto-space-1);
  line-height: 1.35;
}

#cms-lotto-block .m-lotto-card__prize-num {
  display: block;
  padding: var(--lotto-space-2) var(--lotto-space-1);
  background: var(--bg-card);
  border: 1px solid var(--bg-theme-color);
  border-radius: var(--lotto-radius-sm);
  font-weight: 700;
  font-size: var(--lotto-type-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

#cms-lotto-block .m-lotto-card__section {
  margin-top: var(--lotto-space-3);
}

#cms-lotto-block .m-lotto-card__section--subdraw .m-lotto-card__section-title {
  font-size: calc(var(--lotto-type-label) + 0.0625rem);
}

#cms-lotto-block .m-lotto-card__section--subdraw .m-lotto-card__cell {
  min-height: 2.625rem;
  font-size: var(--lotto-type-subgrid);
  font-weight: 700;
  letter-spacing: 0.04em;
}

#cms-lotto-block .m-lotto-card__section-title {
  margin: 0 0 var(--lotto-space-2);
  text-align: center;
  font-size: var(--lotto-type-label);
  font-weight: 700;
  color: var(--lotto-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

#cms-lotto-block .m-lotto-card__grid {
  display: grid;
  gap: var(--lotto-space-2);
}

#cms-lotto-block .m-lotto-card__grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#cms-lotto-block .m-lotto-card__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  text-align: center;
  padding: var(--lotto-space-2) var(--lotto-space-1);
  background: var(--bg-card);
  border: 1px solid var(--bg-theme-color);
  border-radius: var(--lotto-radius-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: var(--lotto-type-body);
  line-height: 1.2;
}

#cms-lotto-block .m-lotto-card__cell--empty {
  color: var(--lotto-muted);
  font-weight: 500;
}

#cms-lotto-block .m-lotto-card--5d .m-lotto-card__body,
#cms-lotto-block .m-lotto-card--6d .m-lotto-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--lotto-space-2);
}

#cms-lotto-block .m-lotto-card__row {
  display: grid;
  grid-template-columns: minmax(5rem, 36%) 1fr;
  gap: var(--lotto-space-2);
  align-items: stretch;
}

#cms-lotto-block .m-lotto-card__rank {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--lotto-space-2);
  background: var(--bg-card);
  border: 1px solid var(--bg-theme-color);
  border-radius: var(--lotto-radius-sm);
  font-size: var(--lotto-type-label);
  font-weight: 600;
  color: var(--bg-theme-textcolor);
  text-align: center;
  line-height: 1.35;
}

#cms-lotto-block .m-lotto-card__num,
#cms-lotto-block .m-lotto-card__nums {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--lotto-space-2);
  padding: var(--lotto-space-2) var(--lotto-space-3);
  background: var(--bg-card);
  border: 1px solid var(--bg-theme-color);
  border-radius: var(--lotto-radius-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: var(--lotto-type-data);
  letter-spacing: 0.04em;
  line-height: 1.25;
}

#cms-lotto-block .m-lotto-card__num--wide {
  width: 100%;
  text-align: center;
}

#cms-lotto-block .m-lotto-card__nums {
  flex-wrap: wrap;
}

#cms-lotto-block .m-lotto-card__nums .m-lotto-card__num {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  padding: 0;
  border: none;
}

#cms-lotto-block .m-lotto-card__n3d {
  max-height: 14rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#cms-lotto-block .m-lotto-card__n3d-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--lotto-type-body);
  line-height: 1.45;
}

#cms-lotto-block .m-lotto-card__n3d-table th,
#cms-lotto-block .m-lotto-card__n3d-table td {
  padding: var(--lotto-space-2) var(--lotto-space-2);
  border-bottom: 1px solid var(--lotto-cell-border);
  text-align: left;
}

#cms-lotto-block .m-lotto-card__n3d-table th {
  color: var(--lotto-muted);
  font-weight: 600;
  font-size: var(--lotto-type-label);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  background: var(--lotto-surface);
  backdrop-filter: blur(6px);
}

#cms-lotto-block .m-lotto-card__n3d-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
@media (prefers-reduced-motion: no-preference) {
  #cms-lotto-block .m-lotto-card {
    transition:
      box-shadow var(--lotto-duration) var(--lotto-ease),
      transform var(--lotto-duration) var(--lotto-ease),
      border-color var(--lotto-duration) var(--lotto-ease);
  }

  #cms-lotto-block .m-lotto-card:hover {
    box-shadow: var(--lotto-shadow-2);
    transform: translateY(-2px);
    border-color: color-mix(
      in srgb,
      var(--color-accent, #e8c547) 55%,
      var(--color-surface, #060a12)
    );
  }
}

/* =============================================================================
   Match feed shared (livescore + livestream list / league chrome)
   ============================================================================= */

.cms-livescore-root .m-livescore__list,
.cms-livestream-root .m-livestream__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cms-livescore-root .m-livescore__list {
  display: flex;
  flex-direction: column;
}

.cms-livescore-root[data-has-width="1"] {
  width: var(--cms-ls-width);
  max-width: 100%;
  box-sizing: border-box;
}

.cms-livescore-root .m-livescore__viewport {
  position: relative;
}

.cms-livescore-root[data-has-height="1"] .m-livescore__viewport {
  height: var(--cms-ls-height);
  max-height: var(--cms-ls-height);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.cms-livescore-root[data-autoplay="1"] .m-livescore__viewport,
.cms-livescore-root[data-autoplay="1"][data-has-height="1"]
  .m-livescore__viewport {
  overflow: hidden;
}

.cms-livescore-root .m-livescore__viewport--marquee {
  overflow: hidden;
}

.cms-livescore-root .m-livescore__track {
  will-change: transform;
}

.cms-livescore-root .m-livescore__track--marquee-x.m-livescore__list--cards,
.cms-livescore-root .m-livescore__track--marquee-x {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  grid-template-columns: unset;
  gap: clamp(0.75rem, 2vw, 1rem);
  padding: clamp(0.5rem, 2vw, 0.85rem);
}

.cms-livescore-root .m-livescore__track--marquee-x .m-livescore__item--card {
  flex: 0 0 auto;
  width: min(18rem, 85vw);
}

.cms-livescore-root .m-livescore__track--marquee-y {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.cms-livescore-root .m-livescore__track--animate-x {
  animation-name: m-livescore-marquee-x;
  animation-duration: var(--cms-ls-marquee-duration, 20s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.cms-livescore-root .m-livescore__track--animate-y {
  animation-name: m-livescore-marquee-y;
  animation-duration: var(--cms-ls-marquee-duration, 20s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes m-livescore-marquee-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--cms-ls-marquee-distance, 50%)));
  }
}

@keyframes m-livescore-marquee-y {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-1 * var(--cms-ls-marquee-distance, 50%)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cms-livescore-root[data-autoplay="1"] .m-livescore__track--animate-x,
  .cms-livescore-root[data-autoplay="1"] .m-livescore__track--animate-y {
    animation-duration: var(--cms-ls-marquee-duration, 20s) !important;
    animation-iteration-count: infinite !important;
  }
}

.cms-livescore-root .m-livescore__league-group,
.cms-livestream-root .m-livestream__league-group {
  list-style: none;
}

.cms-livescore-root .m-livescore__fixtures,
.cms-livestream-root .m-livestream__fixtures {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cms-livescore-root .m-livescore--has-data,
.cms-livestream-root .m-livestream--has-data {
  border-radius: calc(var(--radius-base, 0.5rem) + 4px);
  border: 1px solid var(--cms-widget-panel-border);
  background: var(--cms-widget-panel-bg);
  box-shadow: var(--shadow-sm, 0 4px 24px rgba(0, 0, 0, 0.12));
  overflow: hidden;
}

.cms-livescore-root .m-livescore__loading,
.cms-livescore-root .m-livescore__msg,
.cms-livestream-root .m-livestream__loading,
.cms-livestream-root .m-livestream__msg {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-text) 86%, transparent);
}

.cms-livescore-root .m-livescore,
.cms-livestream-root .m-livestream {
  margin-block: clamp(0.75rem, 2vw, 1.25rem);
}

@media (prefers-reduced-motion: reduce) {
  #cms-lotto-block .m-lotto-toolbar__btn {
    transition: none;
  }

  .cms-livescore-root .m-livescore__skeleton-bar,
  .cms-livescore-root .m-livescore__skeleton-row,
  .cms-livestream-root .m-livestream__skeleton-bar,
  .cms-livestream-root .m-livestream__skeleton-row {
    animation: none;
  }

  .cms-livestream-root .m-livestream__watch-btn {
    transition: none;
  }
}

.cms-livescore-root .m-livescore__league-bar,
.cms-livestream-root .m-livestream__league-bar {
  margin: 0;
  padding: 0.55rem 1rem;
  font-family: var(--font-heading, inherit);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  color: color-mix(in srgb, var(--color-text) 92%, transparent);
  background: var(--cms-widget-league-bg);
  border-block: 1px solid
    color-mix(in srgb, var(--color-accent) 18%, transparent);
  border-inline-start: 3px solid var(--color-accent);
}

.cms-livescore-root .m-livescore__item,
.cms-livestream-root .m-livestream__item {
  list-style: none;
  border-block-end: 1px solid
    color-mix(in srgb, var(--color-text) 8%, transparent);
}

.cms-livescore-root .m-livescore__item:last-child,
.cms-livestream-root .m-livestream__item:last-child {
  border-block-end: none;
}

.cms-livescore-root .m-livescore__fixture,
.cms-livestream-root .m-livestream__fixture {
  transition: background-color var(--cms-widget-duration) var(--cms-widget-ease);
}

.cms-livescore-root .m-livescore__item:hover .m-livescore__fixture,
.cms-livescore-root .m-livescore__item:focus-within .m-livescore__fixture,
.cms-livestream-root .m-livestream__fixture:hover {
  background: var(--cms-widget-row-hover);
}

.cms-livescore-root .m-livescore__skeleton-bar,
.cms-livescore-root .m-livescore__skeleton-row,
.cms-livestream-root .m-livestream__skeleton-bar,
.cms-livestream-root .m-livestream__skeleton-row {
  border-radius: calc(var(--radius-base, 0.5rem) - 4px);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-text) 8%, transparent) 0%,
    color-mix(in srgb, var(--color-text) 16%, transparent) 50%,
    color-mix(in srgb, var(--color-text) 8%, transparent) 100%
  );
  background-size: 200% 100%;
  animation: cms-widget-shimmer 1.2s ease-in-out infinite;
}

@keyframes cms-widget-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.cms-livescore-root .m-livescore--empty .m-livescore__empty-panel,
.cms-livescore-root .m-livescore--offline,
.cms-livescore-root .m-livescore--error {
  padding: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}

/* =============================================================================
   Livescore shortcode ([[type:livescore;...]]) — scoped under .cms-livescore-root
   ============================================================================= */

.cms-livescore-root .m-livescore-announce {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cms-livescore-root .m-livescore-toast {
  position: fixed;
  bottom: 5%;
  inset-inline: 0;
  margin: 0 auto;
  z-index: 60;
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.72rem 1rem;
  border-radius: calc(var(--radius-base, 0.5rem) + 2px);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  color: var(--color-text);
  border: 1px solid var(--cms-widget-panel-border);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity var(--cms-widget-duration) var(--cms-widget-ease),
    transform var(--cms-widget-duration) var(--cms-widget-ease);
}

.cms-livescore-root .m-livescore-toast--on {
  opacity: 1;
  transform: translateY(0);
}

.cms-livescore-root
  .m-livescore-mount[data-state="loading"]
  .m-livescore__loading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cms-livescore-root .m-livescore__skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: clamp(0.85rem, 2vw, 1.1rem);
}

.cms-livescore-root .m-livescore__skeleton-bar {
  height: 2rem;
  width: 42%;
}

.cms-livescore-root .m-livescore__skeleton-row {
  height: 3.25rem;
}

.cms-livescore-root .m-livescore--offline .m-livescore__msg,
.cms-livescore-root .m-livescore--error .m-livescore__msg {
  color: color-mix(in srgb, #fca5a5 90%, var(--color-text));
}

.cms-livescore-root .m-livescore__card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cms-livescore-root .m-livescore__fixture {
  display: grid;
  grid-template-columns: minmax(4.75rem, 5.75rem) minmax(0, 1fr) minmax(
      4.5rem,
      auto
    );
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.72rem 1rem;
}

.cms-livescore-root .m-livescore__col--time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.cms-livescore-root .m-livescore__date {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
  white-space: nowrap;
}

.cms-livescore-root .m-livescore__kick {
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--color-text);
  white-space: nowrap;
}

.cms-livescore-root .m-livescore__minute {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cms-widget-live);
  font-variant-numeric: tabular-nums;
}

.cms-livescore-root .m-livescore__col--match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.cms-livescore-root .m-livescore__team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.cms-livescore-root .m-livescore__team--home {
  justify-content: flex-start;
}

.cms-livescore-root .m-livescore__team--away {
  justify-content: flex-end;
  flex-direction: row-reverse;
  text-align: end;
}

.cms-livescore-root .m-livescore__name {
  font-weight: 600;
  font-size: clamp(0.8125rem, 2vw, 0.9375rem);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cms-livescore-root .m-livescore__col--score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
}

.cms-livescore-root .m-livescore__score {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.55rem;
  border-radius: calc(var(--radius-base) - 6px);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  line-height: 1;
  background: color-mix(in srgb, var(--color-background) 65%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}

.cms-livescore-root .m-livescore__sep {
  opacity: 0.65;
  font-weight: 700;
}

.cms-livescore-root .m-livescore__state {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  border: 1px solid transparent;
}

.cms-livescore-root .m-livescore__state--running {
  color: #052e16;
  background: color-mix(in srgb, var(--cms-widget-live) 88%, #fff);
  border-color: color-mix(in srgb, var(--cms-widget-live) 55%, transparent);
  box-shadow: 0 0 12px
    color-mix(in srgb, var(--cms-widget-live) 35%, transparent);
}

.cms-livescore-root .m-livescore__state--finished,
.cms-livescore-root .m-livescore__state--cancelled {
  color: var(--cms-widget-finished);
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
  border-color: color-mix(in srgb, var(--color-text) 12%, transparent);
}

.cms-livescore-root .m-livescore__state--suspended {
  color: color-mix(in srgb, #fbbf24 90%, var(--color-text));
  background: color-mix(in srgb, #fbbf24 15%, transparent);
}

.cms-livescore-root .m-livescore__badge {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent);
  background: color-mix(in srgb, var(--color-background) 80%, transparent);
}

.cms-livescore-root .m-livescore__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================================================
   Card layout (style:card) — responsive match tiles
   ============================================================================= */

.cms-livescore-root .m-livescore--layout-card.m-livescore--has-data {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.cms-livescore-root .m-livescore__list--cards {
  list-style: none;
  margin: 0;
  padding: clamp(0.5rem, 2vw, 0.85rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  align-items: stretch;
}

.cms-livescore-root .m-livescore__item--card {
  list-style: none;
  border: none;
  margin: 0;
  min-width: 0;
  display: flex;
}

.cms-livescore-root .m-livescore__card--tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(0.85rem, 2.2vw, 1.1rem);
  gap: 0.85rem;
  border-radius: calc(var(--radius-base) + 2px);
  border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  background: color-mix(
    in srgb,
    var(--color-surface) 96%,
    var(--color-background)
  );
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition:
    transform var(--cms-widget-duration) var(--cms-widget-ease),
    box-shadow var(--cms-widget-duration) var(--cms-widget-ease),
    border-color var(--cms-widget-duration) var(--cms-widget-ease);
}

.cms-livescore-root .m-livescore__item--card:hover .m-livescore__card--tile,
.cms-livescore-root
  .m-livescore__item--card:focus-within
  .m-livescore__card--tile {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-accent) 42%, transparent);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent);
}

.cms-livescore-root .m-livescore__card--tile[data-playstate="running"] {
  border-color: color-mix(in srgb, var(--cms-widget-live) 35%, transparent);
}

.cms-livescore-root .m-livescore__card-head {
  margin: 0;
  padding: 0;
}

.cms-livescore-root .m-livescore__card-meta-line {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cms-livescore-root .m-livescore__card-league {
  font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 92%, transparent);
}

.cms-livescore-root .m-livescore__card-dot {
  opacity: 0.55;
}

.cms-livescore-root .m-livescore__card-when {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cms-livescore-root .m-livescore__card-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 0.65rem;
  flex: 1;
}

.cms-livescore-root .m-livescore__card-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-width: 0;
  text-align: center;
}

.cms-livescore-root .m-livescore__card-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding-inline: 0.15rem;
}

.cms-livescore-root .m-livescore__card-vs {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  text-transform: lowercase;
}

.cms-livescore-root .m-livescore__card-score {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.125rem, 3.2vw, 1.5rem);
  line-height: 1;
  color: var(--color-text);
}

.cms-livescore-root .m-livescore__card-sep {
  opacity: 0.5;
  font-weight: 700;
}

.cms-livescore-root .m-livescore__card-name {
  width: 100%;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cms-livescore-root .m-livescore__card-foot {
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}

.cms-livescore-root .m-livescore__badge--card {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.cms-livescore-root .m-livescore__badge--placeholder {
  background: color-mix(in srgb, var(--color-text) 10%, transparent);
  border-style: dashed;
}

.cms-livescore-root
  .m-livescore-mount[data-style="card"]
  .m-livescore__skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
}

.cms-livescore-root
  .m-livescore-mount[data-style="card"]
  .m-livescore__skeleton-bar {
  display: none;
}

.cms-livescore-root
  .m-livescore-mount[data-style="card"]
  .m-livescore__skeleton-row {
  height: 10.5rem;
  border-radius: calc(var(--radius-base) + 2px);
}

@media (max-width: 36rem) {
  .cms-livescore-root .m-livescore--layout-list .m-livescore__fixture {
    grid-template-columns: minmax(4.25rem, 5rem) minmax(0, 1fr) minmax(
        3.5rem,
        auto
      );
    gap: 0.5rem 0.65rem;
    padding: 0.65rem 0.75rem;
  }

  .cms-livescore-root .m-livescore--layout-list .m-livescore__col--match {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .cms-livescore-root .m-livescore--layout-list .m-livescore__team--away {
    flex-direction: row;
    justify-content: flex-start;
    text-align: start;
  }

  .cms-livescore-root .m-livescore--layout-list .m-livescore__badge {
    width: 2rem;
    height: 2rem;
  }

  .cms-livescore-root .m-livescore__list--cards {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Livescore Pro — toolbar ([[type:livescorepro;...]])                        */
/* -------------------------------------------------------------------------- */
.cms-livescore-root--pro .m-livescorepro-toolbar {
  margin-block: 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: calc(var(--radius-base, 0.5rem) + 4px);
  border: 1px solid
    var(
      --cms-widget-panel-border,
      color-mix(in srgb, var(--color-accent) 28%, transparent)
    );
  background: color-mix(
    in srgb,
    var(--color-surface) 65%,
    var(--color-background)
  );
}

.cms-livescore-root--pro .m-livescorepro-toolbar__inner {
  display: grid;
  gap: 0.55rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  align-items: end;
}

.cms-livescore-root--pro .m-livescorepro-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.cms-livescore-root--pro .m-livescorepro-field__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

.cms-livescore-root--pro .m-livescorepro-market-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cms-livescore-root--pro .m-livescorepro-market-btn {
  flex: 1 1 auto;
  min-width: min(5.25rem, 100%);
  cursor: pointer;
  padding: 0.42rem 0.65rem;
  border-radius: var(--radius-base, 0.5rem);
  border: 1px solid
    var(
      --cms-widget-panel-border,
      color-mix(in srgb, var(--color-accent) 28%, transparent)
    );
  background: color-mix(
    in srgb,
    var(--color-background) 88%,
    var(--color-surface)
  );
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  transition:
    border-color 240ms cubic-bezier(0.33, 1, 0.68, 1),
    background 240ms cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 240ms cubic-bezier(0.33, 1, 0.68, 1),
    transform 200ms cubic-bezier(0.33, 1, 0.68, 1);
}

.cms-livescore-root--pro .m-livescorepro-market-btn:hover {
  border-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
  background: color-mix(
    in srgb,
    var(--color-primary) 10%,
    var(--color-background)
  );
}

.cms-livescore-root--pro .m-livescorepro-market-btn:active {
  transform: scale(0.98);
}

.cms-livescore-root--pro .m-livescorepro-market-btn--active {
  border-color: color-mix(in srgb, var(--color-accent) 55%, transparent);
  background: color-mix(in srgb, var(--color-accent) 24%, var(--color-surface));
  box-shadow: 0 0 0 2px
    color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.cms-livescore-root--pro .m-livescorepro-market-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--color-primary) 22%, transparent),
    0 0 0 4px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.cms-livescore-root--pro .m-livescorepro-date-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 0;
}

.cms-livescore-root--pro
  .m-livescorepro-date-row
  .m-livescorepro-field__control--date {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
}

.cms-livescore-root--pro .m-livescorepro-calendar-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.35rem;
  border-radius: var(--radius-base, 0.5rem);
  border: 1px solid
    var(
      --cms-widget-panel-border,
      color-mix(in srgb, var(--color-accent) 28%, transparent)
    );
  background: color-mix(
    in srgb,
    var(--color-background) 92%,
    var(--color-surface)
  );
  color: var(--color-text);
  transition:
    border-color 200ms cubic-bezier(0.33, 1, 0.68, 1),
    background 200ms cubic-bezier(0.33, 1, 0.68, 1),
    transform 220ms cubic-bezier(0.33, 1, 0.68, 1);
}

.cms-livescore-root--pro .m-livescorepro-calendar-btn:hover {
  border-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
  background: color-mix(
    in srgb,
    var(--color-primary) 12%,
    var(--color-background)
  );
}

.cms-livescore-root--pro .m-livescorepro-calendar-btn:active {
  transform: scale(0.97);
}

.cms-livescore-root--pro .m-livescorepro-calendar-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--color-primary) 22%, transparent),
    0 0 0 4px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.cms-livescore-root--pro .m-livescorepro-calendar-btn svg {
  display: block;
}

.cms-livescore-root--pro
  .m-livescorepro-field--date
  .m-livescorepro-field__control--date {
  min-height: 2.35rem;
}

/* Isolate from article.c-page.prose (not-prose utility is not in template CSS) */
.m-template-ecwonmy .prose .cms-livescore-root,
.m-template-casino-gold .prose .cms-livescore-root {
  max-width: none;
}

.m-template-ecwonmy .prose .cms-livescore-root :where(p, li, span),
.m-template-casino-gold .prose .cms-livescore-root :where(p, li, span) {
  color: inherit;
}

.m-template-ecwonmy .prose .cms-livescore-root :where(ul, ol),
.m-template-casino-gold .prose .cms-livescore-root :where(ul, ol) {
  margin: 0;
  padding: 0;
}

.m-template-ecwonmy .prose .cms-livescore-root .m-livescore__league-bar,
.m-template-casino-gold .prose .cms-livescore-root .m-livescore__league-bar {
  margin: 0;
}

/* =============================================================================
   Livestream shortcode ([[type:livestream;...]]) — scoped under .cms-livestream-root
   ============================================================================= */

.cms-livestream-root
  .m-livestream-mount[data-state="loading"]
  .m-livestream__loading {
  text-align: center;
  padding: 1rem;
}

.cms-livestream-root .m-livestream__skeleton {
  padding: 0.75rem 1rem;
}

.cms-livestream-root .m-livestream__skeleton-bar {
  height: 0.65rem;
  width: 40%;
  margin-bottom: 0.5rem;
}

.cms-livestream-root .m-livestream__skeleton-row {
  height: 0.65rem;
  margin-bottom: 0.5rem;
}

.cms-livestream-root .m-livestream__fixture {
  display: grid;
  grid-template-columns: minmax(3.5rem, auto) 1fr auto;
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 0.65rem 1rem;
}

.cms-livestream-root .m-livestream__col--time {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.cms-livestream-root .m-livestream__live-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--cms-widget-live);
  text-transform: uppercase;
}

.cms-livestream-root .m-livestream__col--match {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.cms-livestream-root .m-livestream__name {
  font-size: 0.875rem;
  font-weight: 600;
}

.cms-livestream-root .m-livestream__vs {
  font-size: 0.75rem;
  opacity: 0.65;
}

.cms-livestream-root .m-livestream__watch-btn {
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: calc(var(--radius-base, 0.5rem) + 2px);
  border: 1px solid color-mix(in srgb, var(--color-accent) 55%, transparent);
  background: color-mix(in srgb, var(--color-accent) 18%, var(--color-surface));
  color: var(--color-text);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--cms-widget-duration) var(--cms-widget-ease),
    transform var(--cms-widget-duration) var(--cms-widget-ease);
}

.cms-livestream-root .m-livestream__watch-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--color-accent) 28%, var(--color-surface));
}

.cms-livestream-root .m-livestream__watch-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.cms-livestream-root .m-livestream__watch-btn--disabled,
.cms-livestream-root .m-livestream__watch-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: color-mix(in srgb, var(--color-text) 18%, transparent);
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
}

.cms-livestream-root .m-livestream__list--cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
}

.cms-livestream-root .m-livestream__card--tile {
  padding: 0.85rem;
  border-radius: calc(var(--radius-base, 0.5rem) + 2px);
  border: 1px solid var(--cms-widget-panel-border);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
}

.cms-livestream-root .m-livestream__card-league {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.75;
}

.cms-livestream-root .m-livestream__card-teams {
  margin: 0.35rem 0;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Modal may be portaled to document.body — do not scope under .cms-livestream-root */
.m-livestream-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.m-livestream-modal[hidden] {
  display: none !important;
}

.m-livestream-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #000 55%, transparent);
}

.m-livestream-modal__panel {
  position: relative;
  z-index: 1;
  width: min(56rem, 100%);
  max-height: min(90vh, 40rem);
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius-base, 0.5rem) + 6px);
  border: 1px solid var(--cms-widget-panel-border);
  background: var(--cms-widget-panel-bg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.m-livestream-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--cms-widget-panel-border);
}

.m-livestream-modal__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.m-livestream-modal__close {
  min-width: 2.25rem;
  min-height: 2.25rem;
  border: none;
  border-radius: var(--radius-base, 0.5rem);
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.m-livestream-modal__body {
  padding: 0.75rem 1rem 1rem;
}

.m-livestream-modal__player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: calc(var(--radius-base, 0.5rem) + 2px);
  overflow: hidden;
}

.m-livestream-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.m-livestream-modal__status {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  text-align: center;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
}

body.m-livestream-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

/* FAQ card pop layer (may be portaled to document.body) */
.m-faq-pop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.m-faq-pop[hidden] {
  display: none !important;
}

.m-faq-pop__backdrop {
  position: absolute;
  inset: 0;
  background-color: color-mix(in oklab, var(--bg-theme-color) 80%, transparent);
}

.m-faq-pop__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(48rem, calc(100vw - 2rem));
  max-height: min(90vh, 40rem);
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-surface, #fff);
  color: var(--color-text, #111);
  box-shadow: 0 18px 48px color-mix(in srgb, #000 28%, transparent);
}

.m-faq-pop__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid
    color-mix(in srgb, var(--color-text, #111) 12%, transparent);
}

.m-faq-pop__title {
  flex: 1 1 auto;
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.35;
  font-weight: 700;
}

.m-faq-pop__close {
  flex: 0 0 auto;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.m-faq-pop__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 1rem 1.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.m-template-ecwonmy .m-faq-card-pop[data-faq-pop] .m-card__link {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  width: 100%;
}

body.m-faq-pop-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
  .m-faq-pop,
  .m-faq-pop__panel {
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .cms-livestream-root .m-livestream__fixture {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .cms-livestream-root .m-livestream__col--action {
    justify-self: start;
  }
}

/* ==========================================================================
   Movie shortcode ([[type:movie;...]]) — cinema widget + ArtPlayer modal
   Progressive category disclosure (parent → child) + poster wall
   ========================================================================== */

.cms-movie-root {
  --movie-gap: clamp(0.85rem, 2.2vw, 1.35rem);
  --movie-chip-min: 2.75rem;
  margin-block: clamp(1rem, 3vw, 1.75rem);
  color: var(--color-text);
}

.cms-movie-root .m-movie__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--movie-gap);
  padding: 0.85rem 1rem;
  border-radius: calc(var(--radius-base, 0.5rem) + 4px);
  background: color-mix(in srgb, var(--color-surface, #fff) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}

.cms-movie-root .m-movie__nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1 1 16rem;
  min-width: 0;
}

.cms-movie-root .m-movie__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 100%;
}

.cms-movie-root .m-movie__cats--children {
  padding: 0.45rem 0.15rem 0.1rem;
  border-top: 1px dashed color-mix(in srgb, var(--color-text) 14%, transparent);
  animation: cms-movie-child-in 220ms ease;
}

@keyframes cms-movie-child-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cms-movie-root .m-movie__chip {
  appearance: none;
  min-height: var(--movie-chip-min);
  border: 1px solid color-mix(in srgb, var(--color-text) 16%, transparent);
  background: var(--color-surface, #fff);
  color: inherit;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.2;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    box-shadow 200ms ease;
}

.cms-movie-root .m-movie__chip--parent {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cms-movie-root .m-movie__chip--child {
  font-weight: 500;
  font-size: 0.8125rem;
  background: color-mix(
    in srgb,
    var(--color-text) 4%,
    var(--color-surface, #fff)
  );
}

.cms-movie-root .m-movie__chip:hover,
.cms-movie-root .m-movie__chip:active {
  border-color: var(--color-primary, #e11d48);
}

.cms-movie-root .m-movie__chip:focus-visible {
  outline: 2px solid var(--color-primary, #e11d48);
  outline-offset: 2px;
}

.cms-movie-root .m-movie__chip.is-active {
  background: color-mix(
    in srgb,
    var(--color-primary, #e11d48) 16%,
    transparent
  );
  border-color: var(--color-primary, #e11d48);
  color: var(--color-primary, #e11d48);
  box-shadow: 0 0 0 1px
    color-mix(in srgb, var(--color-primary, #e11d48) 35%, transparent);
}

.cms-movie-root .m-movie__search {
  display: flex;
  gap: 0.45rem;
  flex: 0 1 18rem;
  max-width: 22rem;
  width: 100%;
}

.cms-movie-root .m-movie__search .m-form__input {
  min-height: var(--movie-chip-min);
  flex: 1 1 auto;
}

.cms-movie-root .m-movie__search .m-btn {
  min-height: var(--movie-chip-min);
  min-width: var(--movie-chip-min);
}

.cms-movie-root .m-movie__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--movie-gap);
}

.cms-movie-root .m-movie__grid--cards {
  grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
}

.cms-movie-root .m-movie__grid--list {
  grid-template-columns: 1fr;
}

.cms-movie-root .m-movie__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  border-radius: calc(var(--radius-base, 0.5rem) + 2px);
  overflow: hidden;
  transition: transform 220ms ease;
}

.cms-movie-root .m-movie__item--list .m-movie__card {
  flex-direction: row;
  gap: 0.95rem;
  align-items: stretch;
}

.cms-movie-root .m-movie__card:hover,
.cms-movie-root .m-movie__card:active {
  transform: translateY(-3px);
}

.cms-movie-root .m-movie__card:focus-visible {
  outline: 2px solid var(--color-primary, #e11d48);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cms-movie-root .m-movie__card,
  .cms-movie-root .m-movie__chip,
  .cms-movie-root .m-movie__spinner,
  .cms-movie-root .m-movie__cats--children {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

.cms-movie-root .m-movie__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: color-mix(in srgb, var(--color-text) 10%, transparent);
  border-radius: calc(var(--radius-base, 0.5rem) + 2px);
  overflow: hidden;
  box-shadow: 0 10px 28px color-mix(in srgb, #000 18%, transparent);
  isolation: isolate;
}

.cms-movie-root .m-movie__item--list .m-movie__media {
  width: 5.75rem;
  flex: 0 0 5.75rem;
  aspect-ratio: 2 / 3;
  box-shadow: 0 6px 16px color-mix(in srgb, #000 14%, transparent);
}

/* Fill frame without distortion (crop overflow). Beat global img { height:auto }. */
.cms-movie-root .m-movie__media > img.m-movie__poster {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

.cms-movie-root .m-movie__media > img.m-movie__poster.is-broken,
.cms-movie-root .m-movie__media > .m-movie__poster--empty {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--color-text) 10%, transparent),
    color-mix(in srgb, var(--color-primary, #e11d48) 22%, transparent)
  );
}

.cms-movie-root .m-movie__badge {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  max-width: calc(100% - 0.9rem);
  padding: 0.18rem 0.45rem;
  border-radius: 0.3rem;
  font-size: 0.7rem;
  line-height: 1.2;
  background: color-mix(in srgb, #000 68%, transparent);
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-movie-root .m-movie__meta {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.6rem 0.15rem 0.25rem;
}

.cms-movie-root .m-movie__type {
  font-size: 0.75rem;
  opacity: 0.68;
}

.cms-movie-root .m-movie__title {
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cms-movie-root .m-movie__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--movie-gap);
}

.cms-movie-root .m-movie__pager .m-btn {
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.cms-movie-root .m-movie__page-indicator {
  font-size: 0.875rem;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

.cms-movie-root .m-movie__loading,
.cms-movie-root .m-movie__empty-panel,
.cms-movie-root .m-movie__panel {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 12rem;
  text-align: center;
  padding: 1.25rem;
}

.cms-movie-root .m-movie__spinner {
  width: 1.55rem;
  height: 1.55rem;
  border: 2px solid color-mix(in srgb, var(--color-text) 20%, transparent);
  border-top-color: var(--color-primary, #e11d48);
  border-radius: 50%;
  animation: cms-movie-spin 0.7s linear infinite;
}

@keyframes cms-movie-spin {
  to {
    transform: rotate(360deg);
  }
}

.cms-movie-root .m-movie__disclaimer {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  font-size: 0.75rem;
  line-height: 1.55;
  opacity: 0.72;
}

.cms-movie-root .m-movie__disclaimer p {
  margin: 0;
}

.cms-movie-root .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.m-movie-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.m-movie-modal[hidden] {
  display: none !important;
}

.m-movie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #000 62%, transparent);
}

.m-movie-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 56rem);
  max-height: min(92vh, 48rem);
  overflow: auto;
  border-radius: calc(var(--radius-base, 0.5rem) + 4px);
  background: var(--color-surface, #111);
  color: var(--color-text, #f8fafc);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  padding: 1rem 1rem 1.25rem;
}

.m-movie-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.m-movie-modal__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.3;
}

.m-movie-modal__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-base, 0.5rem);
  overflow: hidden;
}

.m-movie-modal__status {
  margin-top: 0.75rem;
  text-align: center;
}

.m-movie-modal__meta {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.m-movie-modal__blurb {
  flex: 1 1 100%;
  margin: 0.35rem 0 0;
  line-height: 1.5;
  opacity: 0.85;
}

.m-movie-modal__label {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.75;
}

.m-movie-modal__line-tabs,
.m-movie-modal__ep-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.m-movie-modal__line-btn.is-active,
.m-movie-modal__ep-btn.is-active {
  border-color: var(--color-primary, #e11d48);
  color: var(--color-primary, #e11d48);
}

html.m-movie-modal-open,
html.m-movie-modal-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 640px) {
  .cms-movie-root .m-movie__toolbar {
    padding: 0.75rem;
  }

  .cms-movie-root .m-movie__search {
    flex: 1 1 100%;
    max-width: none;
  }

  .cms-movie-root .m-movie__grid--cards {
    grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr));
    gap: 0.75rem;
  }
}

.lv2-json-bootstrap {
  display: none !important;
}

/* Panel shell — energy near .m-contact-page__card (merchant :root tokens) */
.lv2-remote-shell {
  --lv2-shell-pad: calc(var(--space-unit, 10px) * 3);
  --lv2-field-gap-y: clamp(0.85rem, 2.2vw, 1.1rem);
  --lv2-ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  max-width: min(100%, 26.75rem);
  margin-block: clamp(1rem, 3vw, 1.75rem);
  box-sizing: border-box;
  border-radius: calc(var(--radius-base, 0.5rem) + 6px);
  border: var(--border-width, 1px) solid
    color-mix(in srgb, var(--color-accent) 26%, transparent);
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
  padding: var(--lv2-shell-pad);
  box-shadow:
    var(--shadow-sm, 0 4px 24px rgba(0, 0, 0, 0.06)),
    inset 0 1px 0 color-mix(in srgb, var(--color-text) 7%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lv2-remote-shell--login {
  max-width: min(100%, 22.5rem);
}

.registerform.lv2-remote-register,
.customform.lv2-remote-login {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit, 10px) * 0.25);
  touch-action: manipulation;
  margin: 0;
}

.lv2-remote-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin: 0 0 var(--lv2-field-gap-y);
}

.lv2-remote-field:last-child {
  margin-bottom: 0;
}

.lv2-remote-field__lbl {
  margin: 0;
  padding: 0;
  font-size: clamp(0.82rem, 1.95vw, 0.9rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--color-text) 92%, transparent);
}

.lv2-remote-field__body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  min-width: 0;
}

.lv2-remote-inline.lv2-remote-inline--check {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.6rem;
}

.lv2-remote-inline.lv2-remote-inline--check .lv2-remote-input {
  flex: 1 1 14rem;
  min-width: min(100%, 10rem);
}

.registerform.lv2-remote-register .lv2-remote-input,
.customform.lv2-remote-login .lv2-remote-input,
.registerform.lv2-remote-register .lv2-remote-select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-base, 0.5rem);
  border: var(--border-width, 1px) solid
    var(
      --table-border,
      color-mix(in srgb, var(--color-accent) 28%, transparent)
    );
  background: color-mix(
    in srgb,
    var(--color-background) 88%,
    var(--color-surface)
  );
  color: var(--color-text);
  padding: 0.5rem 0.72rem;
  font-family: var(--font-body, inherit);
  font-size: max(var(--font-size-base, 1rem) * 0.94, 0.9375rem);
  line-height: 1.35;
  transition:
    border-color 0.2s var(--lv2-ease-out),
    box-shadow 0.2s var(--lv2-ease-out),
    filter 0.2s var(--lv2-ease-out);
}

.registerform.lv2-remote-register .lv2-remote-select {
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 0.72rem auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 12'%3E%3Cpath stroke='%2394a3b8' stroke-width='2.2' d='M2 3l8 7 8-7'/%3E%3C/svg%3E");
  padding-right: 2.25rem;
}

.registerform.lv2-remote-register .lv2-remote-input:focus-visible,
.customform.lv2-remote-login .lv2-remote-input:focus-visible,
.registerform.lv2-remote-register .lv2-remote-select:focus-visible {
  outline: none;
  border-color: var(--color-accent, #e8c547);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--color-accent, #e8c547) 42%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .registerform.lv2-remote-register .lv2-remote-input,
  .customform.lv2-remote-login .lv2-remote-input,
  .registerform.lv2-remote-register .lv2-remote-select {
    transition: none;
  }
}
.registerform.lv2-remote-register .lv2-remote-input--captcha-num {
  max-width: 12rem;
  font-variant-numeric: tabular-nums;
}

.lv2-remote-hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--color-text) 64%, transparent);
}

.registerform.lv2-remote-register .lv2-remote-feedback.lv2-msg {
  min-height: 1rem;
  font-size: 0.8125rem;
  line-height: 1.42;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}

.registerform.lv2-remote-register .lv2-msg--warn {
  color: color-mix(in srgb, var(--color-error) 88%, var(--color-text));
}

.registerform.lv2-remote-register .lv2-msg--ok {
  color: color-mix(in srgb, var(--color-success) 88%, var(--color-text));
}

.customform.lv2-remote-login .lv2-remote-login-status {
  margin-top: calc(var(--space-unit, 10px) * 1.5);
  min-height: 1.35rem;
  padding: calc(var(--space-unit, 10px) * 0.9)
    calc(var(--space-unit, 10px) * 1.25);
  border-radius: var(--radius-base, 0.5rem);
  border: var(--border-width, 1px) solid
    color-mix(in srgb, var(--color-text) 10%, transparent);
  background: color-mix(in srgb, var(--color-surface) 55%, transparent);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.42;
}

.customform.lv2-remote-login .lv2-remote-login-status:empty {
  display: none;
}

.customform.lv2-remote-login .lv2-remote-login-status:not(:empty) {
  display: block;
}

.registerform.lv2-remote-register .lv2-remote-otp-hint {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-text, #222) 72%, transparent);
}

.registerform.lv2-remote-register .lv2-otp-channel-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.registerform.lv2-remote-register .lv2-otp-channel-picker__lbl {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--color-text, #222) 78%, transparent);
}

.registerform.lv2-remote-register .lv2-otp-channel-picker__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.registerform.lv2-remote-register .lv2-otp-channel-pill {
  appearance: none;
  border: var(--border-width, 1px) solid
    color-mix(in srgb, var(--color-accent, #c9a227) 35%, transparent);
  background: color-mix(
    in srgb,
    var(--color-surface, #fff) 92%,
    var(--color-accent, #c9a227)
  );
  color: var(--color-text, #222);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.registerform.lv2-remote-register .lv2-otp-channel-pill:hover {
  border-color: color-mix(
    in srgb,
    var(--color-accent, #c9a227) 55%,
    transparent
  );
}

.registerform.lv2-remote-register .lv2-otp-channel-pill.is-active {
  background: var(--color-accent, #c9a227);
  border-color: var(--color-accent, #c9a227);
  color: var(--color-accent-contrast, #111);
  box-shadow: 0 1px 0 color-mix(in srgb, #000 12%, transparent);
}

.registerform.lv2-remote-register .lv2-otp-send-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.registerform.lv2-remote-register .lv2-otp-send-row .lv2-otp-code-row[hidden] {
  display: none;
}

.registerform.lv2-remote-register
  .lv2-otp-send-row:has(.lv2-otp-code-row[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.registerform.lv2-remote-register .lv2-otp-send-row .lv2-remote-otp-grid {
  grid-template-columns: minmax(0, 1fr);
}

.registerform.lv2-remote-register .lv2-reverse-otp-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.65rem 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: calc(var(--radius-base, 0.5rem) * 0.75);
  border: var(--border-width, 1px) solid
    color-mix(in srgb, var(--color-accent, #c9a227) 28%, transparent);
  background: color-mix(
    in srgb,
    var(--color-surface, #fff) 88%,
    var(--color-accent, #c9a227)
  );
}

.registerform.lv2-remote-register .lv2-reverse-otp-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.registerform.lv2-remote-register .lv2-reverse-otp-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--color-text, #222) 65%, transparent);
}

.registerform.lv2-remote-register .lv2-reverse-otp-val {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: calc(var(--radius-base, 0.5rem) * 0.45);
  background: color-mix(in srgb, var(--color-surface, #fff) 70%, transparent);
  font-size: 0.875rem;
  word-break: break-all;
}

@media (max-width: 28rem) {
  .registerform.lv2-remote-register .lv2-reverse-otp-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .registerform.lv2-remote-register .lv2-otp-channel-pill {
    transition: none;
  }
}

.customform.lv2-remote-login .lv2-remote-captcha-grid,
.customform.lv2-remote-login .lv2-remote-captcha-grid--login {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: clamp(0.65rem, 2vw, 1rem);
  align-items: center;
}

@media (max-width: 28rem) {
  .registerform.lv2-remote-register .lv2-remote-captcha-grid,
  .registerform.lv2-remote-register .lv2-remote-otp-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .registerform.lv2-remote-register .lv2-remote-input--captcha-num {
    max-width: none;
  }

  .customform.lv2-remote-login .lv2-remote-captcha-grid,
  .customform.lv2-remote-login .lv2-remote-captcha-grid--login {
    grid-template-columns: minmax(0, 1fr);
  }

  .customform.lv2-remote-login .lv2-remote-input--captcha-num {
    max-width: none;
  }
}

.registerform.lv2-remote-register .lv2-remote-captcha-visual {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.customform.lv2-remote-login .lv2-remote-captcha-visual {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.registerform.lv2-remote-register .lv2-reg-captcha-img {
  display: block;
  flex-shrink: 0;
  border-radius: calc(var(--radius-base, 0.5rem) * 0.55);
  border: var(--border-width, 1px) solid
    color-mix(in srgb, var(--color-accent) 24%, transparent);
  background: #fff;
}

.customform.lv2-remote-login .lv2-captcha-img {
  display: block;
  flex-shrink: 0;
  border-radius: calc(var(--radius-base, 0.5rem) * 0.55);
  border: var(--border-width, 1px) solid
    color-mix(in srgb, var(--color-accent) 24%, transparent);
  background: #fff;
  min-width: 60px;
  min-height: 24px;
}

.customform.lv2-remote-login .lv2-remote-input--captcha-num {
  max-width: 12rem;
  font-variant-numeric: tabular-nums;
}

.registerform.lv2-remote-register .lv2-remote-secondary-btn,
.registerform.lv2-remote-register .lv2-remote-icon-btn,
.registerform.lv2-remote-register .btnCheckUser.lv2-btn-check-user,
.customform.lv2-remote-login .lv2-remote-secondary-btn,
.customform.lv2-remote-login .lv2-remote-icon-btn {
  /* visual → .m-btn--secondary; keep LinkV2 layout sizing */
  min-height: 48px;
}

.registerform.lv2-remote-register .lv2-remote-icon-btn.lv2-captcha-reload,
.customform.lv2-remote-login .lv2-remote-icon-btn.lv2-captcha-reload {
  min-width: 48px;
  padding-inline: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.registerform.lv2-remote-register .lv2-remote-icon-slot {
  display: inline-flex;
}

.registerform.lv2-remote-register
  .lv2-remote-secondary-btn:hover:not(:disabled),
.registerform.lv2-remote-register .lv2-remote-icon-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.registerform.lv2-remote-register
  .lv2-remote-secondary-btn:active:not(:disabled),
.registerform.lv2-remote-register .lv2-remote-icon-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.registerform.lv2-remote-register .lv2-remote-secondary-btn:focus-visible,
.registerform.lv2-remote-register .lv2-remote-icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--color-accent, #e8c547) 40%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .registerform.lv2-remote-register .lv2-remote-secondary-btn,
  .registerform.lv2-remote-register .lv2-remote-icon-btn,
  .registerform.lv2-remote-register .btnCheckUser.lv2-btn-check-user {
    transition: none;
    transform: none;
  }
}

.registerform.lv2-remote-register .lv2-hp-field,
.customform.lv2-remote-login .lv2-hp-field {
  position: absolute !important;
  opacity: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
}

.registerform.lv2-remote-register .lv2-remote-field--submit,
.customform.lv2-remote-login .lv2-remote-field--submit-login {
  margin-top: calc(var(--space-unit, 10px) * 0.5);
}

.registerform.lv2-remote-register
  .lv2-remote-field--submit
  .lv2-remote-field__body,
.customform.lv2-remote-login
  .lv2-remote-field--submit-login
  .lv2-remote-field__body {
  padding-top: 0.35rem;
}

.customform.lv2-remote-login .lv2-forgot-password,
.lv2-remote-shell--login .lv2-forgot-password {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.customform.lv2-remote-login .lv2-forgot-password a,
.lv2-remote-shell--login .lv2-forgot-password a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.customform.lv2-remote-login .lv2-forgot-password a:hover,
.lv2-remote-shell--login .lv2-forgot-password a:hover {
  text-decoration-thickness: 2px;
}

/* LinkV2 player forgot / reset password pages (/{lang}/forgotpassword, reset-password.php) */

/* ---- Forgot password hub — premium split layout (UI UX Pro Max) ---- */
.sf-forgot-entrance {
  animation: sf-forgot-rise 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sf-forgot-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.m-template-ecwonmy
  .m-forgot-password-page[data-storefront-forgot-password="1"] {
  width: 100%;
  max-width: min(72rem, 100%);
  margin: clamp(1rem, 3vw, 2.25rem) auto;
  padding-inline: clamp(0.75rem, 3vw, 1.25rem);
  box-sizing: border-box;
}

.m-template-ecwonmy .m-forgot-password-page__skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.m-template-ecwonmy .m-forgot-password-page__skip:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 calc(var(--space-unit) * 1.5);
  padding: calc(var(--space-unit) * 0.75) calc(var(--space-unit) * 1.25);
  clip: auto;
  overflow: visible;
  border-radius: calc(var(--radius-base) + 2px);
  background: var(--color-surface);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 45%, transparent);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.m-template-ecwonmy .m-forgot-password-page__hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-base) + 10px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 38%, transparent);
  padding: calc(var(--space-unit) * 3.25) calc(var(--space-unit) * 3);
  background:
    radial-gradient(
      ellipse 120% 90% at 100% 0%,
      color-mix(in srgb, var(--color-accent) 18%, transparent),
      transparent 52%
    ),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--color-surface) 82%, transparent),
      color-mix(in srgb, var(--color-accent) 14%, var(--color-surface)),
      color-mix(in srgb, var(--color-surface) 88%, transparent)
    );
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 color-mix(in srgb, var(--color-text) 10%, transparent);
  box-sizing: border-box;
  text-align: left;
}

.m-template-ecwonmy .m-forgot-password-page__hero-glow {
  position: absolute;
  inset: -20% auto auto -10%;
  width: min(42%, 16rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--color-accent) 22%, transparent),
    transparent 68%
  );
  pointer-events: none;
  opacity: 0.85;
}

.m-template-ecwonmy .m-forgot-password-page__eyebrow {
  position: relative;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-accent) 82%, var(--color-text));
}

.m-template-ecwonmy .m-forgot-password-page__headline {
  position: relative;
  margin: calc(var(--space-unit) * 1.1) 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--color-text);
  text-transform: none;
  text-shadow: none;
}

.m-template-ecwonmy .m-forgot-password-page__subline {
  position: relative;
  margin: calc(var(--space-unit) * 1.25) 0 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-text) 88%, var(--color-surface));
}

.m-template-ecwonmy .m-forgot-password-page__layout {
  display: grid;
  gap: calc(var(--space-unit) * 3);
  margin-top: calc(var(--space-unit) * 3.5);
  align-items: start;
}

.m-template-ecwonmy .m-forgot-password-page__layout--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: min(100%, 36rem);
  margin-inline: auto;
}

@media (min-width: 64rem) {
  .m-template-ecwonmy
    .m-forgot-password-page__layout:not(.m-forgot-password-page__layout--solo) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: calc(var(--space-unit) * 4);
  }
}

.m-template-ecwonmy .m-forgot-password-page__aside-card {
  border-radius: calc(var(--radius-base) + 8px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 28%, transparent);
  background: color-mix(in srgb, var(--color-surface) 74%, transparent);
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 color-mix(in srgb, var(--color-text) 8%, transparent);
  padding: calc(var(--space-unit) * 3);
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.m-template-ecwonmy .m-forgot-password-page__aside-eyebrow {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-accent) 78%, var(--color-text));
}

.m-template-ecwonmy .m-forgot-password-page__steps {
  list-style: none;
  margin: calc(var(--space-unit) * 2.25) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 2);
}

.m-template-ecwonmy .m-forgot-password-page__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(var(--space-unit) * 1.5);
  align-items: start;
}

.m-template-ecwonmy .m-forgot-password-page__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-accent) 22%, var(--color-surface));
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 42%, transparent);
  box-shadow: inset 0 1px 0
    color-mix(in srgb, var(--color-text) 8%, transparent);
}

.m-template-ecwonmy .m-forgot-password-page__step-body {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 0.35);
  padding-top: 0.15rem;
}

.m-template-ecwonmy .m-forgot-password-page__step-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.m-template-ecwonmy .m-forgot-password-page__step-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 78%, var(--color-surface));
}

.m-template-ecwonmy .m-forgot-password-page__security {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--space-unit) * 1.1);
  margin: calc(var(--space-unit) * 2.75) 0 0;
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 1.35);
  border-radius: calc(var(--radius-base) + 4px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 24%, transparent);
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
  font-size: 0.86rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 86%, var(--color-surface));
}

.m-template-ecwonmy .m-forgot-password-page__icon--shield {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: color-mix(in srgb, var(--color-accent) 75%, var(--color-text));
}

.m-template-ecwonmy .m-forgot-password-page__card {
  border-radius: calc(var(--radius-base) + 8px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-accent) 28%, transparent);
  background: color-mix(in srgb, var(--color-surface) 74%, transparent);
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 color-mix(in srgb, var(--color-text) 8%, transparent);
  padding: calc(var(--space-unit) * 3);
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.m-template-ecwonmy .m-forgot-password-page__card--error {
  border-color: color-mix(
    in srgb,
    var(--color-danger, #dc2626) 35%,
    transparent
  );
}

.m-template-ecwonmy .lv2-remote-shell--forgot {
  max-width: none;
  margin-inline: 0;
}

.m-template-ecwonmy .m-forgot-password-page__card-head {
  margin-bottom: calc(var(--space-unit) * 2);
  padding-bottom: calc(var(--space-unit) * 2);
  border-bottom: var(--border-width) solid
    color-mix(in srgb, var(--color-text) 12%, transparent);
}

.m-template-ecwonmy .m-forgot-password-page__card-eyebrow {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-accent) 78%, var(--color-text));
}

.m-template-ecwonmy .m-forgot-password-page__title {
  margin: calc(var(--space-unit) * 0.75) 0 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text);
  text-transform: none;
  text-shadow: none;
}

.m-template-ecwonmy .m-forgot-password-page__intro {
  margin: calc(var(--space-unit) * 1) 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 86%, var(--color-surface));
}

.m-template-ecwonmy .m-forgot-password-page__feedback {
  min-height: 0;
  margin: 0 0 calc(var(--space-unit) * 2);
  padding: calc(var(--space-unit) * 1.1) calc(var(--space-unit) * 1.35);
  border-radius: calc(var(--radius-base) + 4px);
  font-size: 0.9rem;
  line-height: 1.55;
  border: var(--border-width) solid transparent;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.m-template-ecwonmy .m-forgot-password-page__feedback:empty,
.m-template-ecwonmy .m-forgot-password-page__feedback[hidden] {
  display: none;
}

.m-template-ecwonmy .m-forgot-password-page__feedback--error {
  color: var(--color-danger, #dc2626);
  background: color-mix(
    in srgb,
    var(--color-danger, #dc2626) 8%,
    var(--color-surface)
  );
  border-color: color-mix(
    in srgb,
    var(--color-danger, #dc2626) 32%,
    transparent
  );
}

.m-template-ecwonmy .m-forgot-password-page__feedback--ok {
  color: color-mix(in srgb, #059669 82%, var(--color-text));
  background: color-mix(in srgb, #059669 10%, var(--color-surface));
  border-color: color-mix(in srgb, #059669 28%, transparent);
}

.m-template-ecwonmy .m-forgot-password-page__form {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 2.25);
}

.m-template-ecwonmy .m-forgot-password-page__label {
  display: block;
  margin-bottom: calc(var(--space-unit) * 0.65);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 88%, var(--color-surface));
}

.m-template-ecwonmy .m-forgot-password-page__input {
  width: 100%;
  box-sizing: border-box;
}

.m-template-ecwonmy .m-forgot-password-page__hint {
  margin: calc(var(--space-unit) * 0.65) 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
}

.m-template-ecwonmy .m-forgot-password-page__captcha {
  margin-top: calc(var(--space-unit) * 0.25);
  padding-top: calc(var(--space-unit) * 2);
  border-top: var(--border-width) solid
    color-mix(in srgb, var(--color-text) 10%, transparent);
}

.m-template-ecwonmy .m-forgot-password-page__captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--space-unit) * 1.25);
  margin-bottom: calc(var(--space-unit) * 1.25);
}

.m-template-ecwonmy .m-forgot-password-page__captcha-img {
  display: block;
  border-radius: calc(var(--radius-base) + 2px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-text) 14%, transparent);
  background: color-mix(in srgb, var(--color-surface) 92%, #fff);
  box-shadow: inset 0 1px 2px
    color-mix(in srgb, var(--color-text) 6%, transparent);
}

.m-template-ecwonmy .m-forgot-password-page__captcha-refresh {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--space-unit) * 0.75);
  white-space: nowrap;
}

.m-template-ecwonmy .m-forgot-password-page__icon {
  flex-shrink: 0;
  display: block;
}

.m-template-ecwonmy .m-forgot-password-page__actions {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 1.5);
  padding-top: calc(var(--space-unit) * 0.5);
}

.m-template-ecwonmy .m-forgot-password-page__submit {
  width: 100%;
  justify-content: center;
}

@media (min-width: 36rem) {
  .m-template-ecwonmy .m-forgot-password-page__submit {
    width: auto;
    min-width: min(100%, 14rem);
  }
}

.m-template-ecwonmy .m-forgot-password-page__back {
  margin: 0;
  font-size: 0.9rem;
}

.m-template-ecwonmy .m-forgot-password-page__back-link {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--space-unit) * 0.65);
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition:
    color 200ms ease,
    opacity 200ms ease;
}

.m-template-ecwonmy .m-forgot-password-page__back-link:hover {
  color: color-mix(in srgb, var(--color-primary) 82%, var(--color-accent));
  text-decoration: underline;
}

.m-template-ecwonmy .m-forgot-password-page__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.m-template-ecwonmy .m-forgot-password-page__notice {
  margin: 0;
  padding: calc(var(--space-unit) * 1.35) calc(var(--space-unit) * 1.5);
  border-radius: calc(var(--radius-base) + 4px);
  border: var(--border-width) solid
    color-mix(in srgb, var(--color-danger, #dc2626) 35%, transparent);
  background: color-mix(
    in srgb,
    var(--color-danger, #dc2626) 8%,
    var(--color-surface)
  );
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---- Reset password page (reset-password.php) — compact card ---- */
.lv2-remote-shell--reset {
  max-width: min(100%, 26.75rem);
  margin-inline: auto;
}

.m-reset-password-page {
  max-width: min(100%, 42rem);
  margin: clamp(1rem, 3vw, 2rem) auto;
  padding-inline: clamp(0.75rem, 3vw, 1.25rem);
}

.m-reset-password-page__hero {
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  text-align: center;
}

.m-reset-password-page__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-accent) 78%, var(--color-text));
}

.m-reset-password-page__headline {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  line-height: 1.2;
}

.m-reset-password-page__intro {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}

.m-reset-password-page__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.m-reset-password-page__notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: calc(var(--radius-base, 0.5rem) + 2px);
  border: 1px solid
    color-mix(in srgb, var(--color-danger, #dc2626) 35%, transparent);
  background: color-mix(
    in srgb,
    var(--color-danger, #dc2626) 8%,
    var(--color-surface)
  );
  color: var(--color-text);
  font-size: 0.92rem;
}

.lv2-remote-msg.m-reset-password-page__msg {
  min-height: 1.25rem;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.lv2-remote-msg--error {
  color: var(--color-danger, #dc2626);
}

.lv2-remote-msg--ok {
  color: color-mix(in srgb, var(--color-accent) 70%, #059669);
}

.m-reset-password-page__back {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  text-align: center;
}

.m-reset-password-page__hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
}

.lv2-remote-submit__busy {
  display: none;
}

.lv2-remote-submit[aria-busy="true"] .lv2-remote-submit__label {
  display: none;
}

.lv2-remote-submit[aria-busy="true"] .lv2-remote-submit__busy {
  display: inline;
}

@media (prefers-reduced-motion: reduce) {
  .sf-forgot-entrance,
  .sf-reset-entrance {
    animation: none !important;
  }

  .m-template-ecwonmy .m-forgot-password-page__feedback {
    transition: none;
  }

  .m-template-ecwonmy .m-forgot-password-page__back-link {
    transition: none;
  }
}

/* .lv2-remote-submit hover/focus/disabled → unified .m-btn */

/* =============================================================================
   Transferlist shortcode ([[type:transferlist;...]]) — scoped under .cms-transferlist-root
   ============================================================================= */

.cms-transferlist-root .m-transferlist__header {
  margin-bottom: 0.75rem;
}

.cms-transferlist-root .m-transferlist__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.cms-transferlist-root .m-transferlist__badge--deposit {
  background: color-mix(
    in srgb,
    var(--color-success) 22%,
    var(--color-surface, #0f172a)
  );
  color: #86efac;
}

.cms-transferlist-root .m-transferlist__badge--prize {
  background: color-mix(in srgb, #a855f7 22%, var(--color-surface, #0f172a));
  color: #e9d5ff;
}

.cms-transferlist-root .m-transferlist__badge--withdraw {
  background: color-mix(in srgb, #f59e0b 22%, var(--color-surface, #0f172a));
  color: #fcd34d;
}

.cms-transferlist-root
  .m-transferlist-mount[data-state="loading"]
  .m-transferlist__loading {
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted, #94a3b8);
}

.cms-transferlist-root .m-transferlist__skeleton {
  padding: 0.75rem 1rem;
}

.cms-transferlist-root .m-transferlist__skeleton-bar {
  height: 0.65rem;
  width: 35%;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-text, #e2e8f0) 12%, transparent);
  animation: m-transferlist-pulse 1.2s ease-in-out infinite;
}

.cms-transferlist-root .m-transferlist__skeleton-row {
  height: 0.55rem;
  margin-bottom: 0.45rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-text, #e2e8f0) 8%, transparent);
  animation: m-transferlist-pulse 1.2s ease-in-out infinite;
}

@keyframes m-transferlist-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.cms-transferlist-root .m-transferlist__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cms-transferlist-root[data-has-width="1"] {
  width: var(--cms-tl-width);
  max-width: 100%;
  box-sizing: border-box;
}

.cms-transferlist-root .m-transferlist__viewport {
  position: relative;
}

.cms-transferlist-root[data-has-height="1"] .m-transferlist__viewport {
  height: var(--cms-tl-height);
  max-height: var(--cms-tl-height);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.cms-transferlist-root[data-autoplay="1"] .m-transferlist__viewport,
.cms-transferlist-root[data-autoplay="1"][data-has-height="1"]
  .m-transferlist__viewport {
  overflow: hidden;
}

.cms-transferlist-root .m-transferlist__viewport--marquee {
  overflow: hidden;
}

.cms-transferlist-root .m-transferlist__viewport--static {
  overflow-y: auto;
  overflow-x: hidden;
}

.cms-transferlist-root .m-transferlist__track {
  will-change: transform;
}

.cms-transferlist-root .m-transferlist__list--cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.65rem;
}

.cms-transferlist-root
  .m-transferlist__track--marquee-x.m-transferlist__list--cards,
.cms-transferlist-root .m-transferlist__track--marquee-x {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.65rem;
  width: max-content;
  grid-template-columns: unset;
}

.cms-transferlist-root .m-transferlist__track--marquee-y {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.cms-transferlist-root
  .m-transferlist__track--marquee-x
  .m-transferlist__item--card {
  flex: 0 0 auto;
  width: 10.5rem;
}

.cms-transferlist-root .m-transferlist__track--animate-x {
  animation-name: m-transferlist-marquee-x;
  animation-duration: var(--cms-tl-marquee-duration, 20s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.cms-transferlist-root .m-transferlist__track--animate-y {
  animation-name: m-transferlist-marquee-y;
  animation-duration: var(--cms-tl-marquee-duration, 20s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes m-transferlist-marquee-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--cms-tl-marquee-distance, 50%)));
  }
}

@keyframes m-transferlist-marquee-y {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-1 * var(--cms-tl-marquee-distance, 50%)));
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep opted-in transferlist marquee looping (autoplay:1); global gate would otherwise stop it. */
  .cms-transferlist-root[data-autoplay="1"] .m-transferlist__track--animate-x,
  .cms-transferlist-root[data-autoplay="1"] .m-transferlist__track--animate-y {
    animation-duration: var(--cms-tl-marquee-duration, 20s) !important;
    animation-iteration-count: infinite !important;
  }
}

.cms-transferlist-root .m-transferlist__thead {
  display: grid;
  grid-template-columns:
    minmax(6rem, 1.2fr) minmax(4rem, 0.8fr) minmax(6.5rem, 1fr)
    minmax(6.5rem, 1fr);
  gap: 0.65rem 1rem;
  padding: 0.35rem 1rem 0.25rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.65;
}

.cms-transferlist-root .m-transferlist__th--money {
  text-align: right;
}

.cms-transferlist-root .m-transferlist__row {
  display: grid;
  grid-template-columns:
    minmax(6rem, 1.2fr) minmax(4rem, 0.8fr) minmax(6.5rem, 1fr)
    minmax(6.5rem, 1fr);
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: calc(var(--radius-base, 0.5rem) + 2px);
  background: color-mix(
    in srgb,
    var(--color-surface-elevated, #1e293b) 88%,
    transparent
  );
  border: 1px solid
    color-mix(in srgb, var(--color-border, #334155) 65%, transparent);
}

.cms-transferlist-root .m-transferlist__col--money {
  text-align: right;
}

.cms-transferlist-root .m-transferlist--group-deposit .m-transferlist__thead,
.cms-transferlist-root
  .m-transferlist--group-deposit
  .m-transferlist__row--feed,
.cms-transferlist-root .m-transferlist--group-withdraw .m-transferlist__thead,
.cms-transferlist-root
  .m-transferlist--group-withdraw
  .m-transferlist__row--feed,
.cms-transferlist-root .m-transferlist--group-prize .m-transferlist__thead,
.cms-transferlist-root .m-transferlist--group-prize .m-transferlist__row--feed {
  grid-template-columns: minmax(6rem, 1.2fr) minmax(4rem, 0.8fr) minmax(
      6.5rem,
      1fr
    );
}

.cms-transferlist-root .m-transferlist__card--deposit {
  border-left: 3px solid var(--color-success);
}

.cms-transferlist-root .m-transferlist__card--prize {
  border-left: 3px solid #a855f7;
}

.cms-transferlist-root .m-transferlist__card--withdraw {
  border-left: 3px solid #f59e0b;
}

.cms-transferlist-root .m-transferlist__label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.65;
  margin-bottom: 0.15rem;
}

.cms-transferlist-root .m-transferlist__value {
  font-size: 0.875rem;
  font-weight: 600;
}

.cms-transferlist-root .m-transferlist__amount {
  font-variant-numeric: tabular-nums;
  color: var(--color-accent, #38bdf8);
}

.cms-transferlist-root .m-transferlist__time {
  font-size: 0.8125rem;
  opacity: 0.85;
  white-space: nowrap;
}

.cms-transferlist-root .m-transferlist__card--tile {
  padding: 0.85rem 1rem;
  border-radius: calc(var(--radius-base, 0.5rem) + 2px);
  background: color-mix(
    in srgb,
    var(--color-surface-elevated, #1e293b) 88%,
    transparent
  );
  border: 1px solid
    color-mix(in srgb, var(--color-border, #334155) 65%, transparent);
}

.cms-transferlist-root .m-transferlist__card-amount {
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.35rem;
  color: var(--color-accent, #38bdf8);
}

.cms-transferlist-root .m-transferlist__card-user {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
}

.cms-transferlist-root .m-transferlist__card-type {
  font-size: 0.8125rem;
  opacity: 0.75;
  font-weight: 500;
}

.cms-transferlist-root .m-transferlist__card-line {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
}

.cms-transferlist-root .m-transferlist__summary {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: calc(var(--radius-base, 0.5rem) + 2px);
  background: color-mix(
    in srgb,
    var(--color-surface-elevated, #1e293b) 88%,
    transparent
  );
  border: 1px solid
    color-mix(in srgb, var(--color-border, #334155) 65%, transparent);
}

.cms-transferlist-root .m-transferlist__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
}

.cms-transferlist-root .m-transferlist__summary-label {
  font-size: 0.8125rem;
  opacity: 0.85;
}

.cms-transferlist-root .m-transferlist__summary-value {
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent, #38bdf8);
}

.cms-transferlist-root .m-transferlist__hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.75;
}

.cms-transferlist-root .m-transferlist__empty-panel,
.cms-transferlist-root .m-transferlist--offline .m-transferlist__msg,
.cms-transferlist-root .m-transferlist--error .m-transferlist__msg {
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted, #94a3b8);
}

@media (max-width: 640px) {
  .cms-transferlist-root .m-transferlist__thead {
    display: none;
  }

  .cms-transferlist-root .m-transferlist__row {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .cms-transferlist-root .m-transferlist__col--player {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cms-transferlist-root .m-transferlist__skeleton-bar,
  .cms-transferlist-root .m-transferlist__skeleton-row {
    animation: none;
  }
}
/* =============================================================================
/* =============================================================================
   PWA shortcode ([[type:pwa;...]]) â€” scoped under .cms-pwa-root
   ============================================================================= */

.cms-pwa-root {
  margin: 1rem 0;
}

/* .m-pwa__btn base → unified .m-btn--pill; size modifiers only */
.cms-pwa-root .m-pwa__btn--size-1 {
  font-size: 0.75rem;
  padding: 0.45rem 0.9rem;
  min-height: auto;
}

.cms-pwa-root .m-pwa__btn--size-2 {
  font-size: 0.8125rem;
  padding: 0.55rem 1rem;
  min-height: auto;
}

.cms-pwa-root .m-pwa__btn--size-3 {
  font-size: 0.9375rem;
}

.cms-pwa-root .m-pwa__btn--size-4 {
  font-size: 1.0625rem;
  padding: 0.75rem 1.5rem;
}

.cms-pwa-root .m-pwa__btn--size-5 {
  font-size: 1.1875rem;
  padding: 0.85rem 1.75rem;
}

.cms-pwa-root .m-pwa__guide {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cms-pwa-root .m-pwa__guide[hidden] {
  display: none;
}

.cms-pwa-root .m-pwa__guide-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #000 55%, transparent);
}

.cms-pwa-root .m-pwa__guide-panel {
  position: relative;
  width: min(100%, 22rem);
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
  background: var(--color-surface, #fff);
  color: var(--color-text, #1c1917);
  box-shadow: 0 20px 50px color-mix(in srgb, #000 25%, transparent);
}

.cms-pwa-root .m-pwa__guide-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.cms-pwa-root .m-pwa__guide-steps {
  margin: 0 0 0.75rem 1.1rem;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cms-pwa-root .m-pwa__guide-note {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted, #78716c);
}

.cms-pwa-root .m-pwa__guide-close {
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-primary, #2563eb);
  color: var(--color-on-primary, #fff);
}

body.m-pwa-guide-open {
  overflow: hidden;
}

/* =============================================================================
   Motion — single prefers-reduced-motion gate
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
  body.m-template-ecwonmy::before,
  body.m-template-ecwonmy::after {
    animation: none !important;
  }
  body.m-template-ecwonmy::after {
    opacity: 0.28;
  }

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

  .m-template-ecwonmy .m-card__media-img,
  .m-template-ecwonmy .m-gallery__img {
    transition: none !important;
    transform: none !important;
  }

  .m-template-ecwonmy .m-card:hover,
  .m-template-ecwonmy .m-news-card:hover,
  .m-template-ecwonmy .m-faq__tile:hover,
  .m-template-ecwonmy .m-product-list .m-card--product:hover,
  .m-template-ecwonmy .m-product-masonry .m-card--masonry:hover,
  .m-template-ecwonmy .m-faq-card .m-card--faq:hover,
  .m-template-ecwonmy .m-module-hub__category .m-card--category:hover {
    transform: none !important;
  }

  /* autoplay:1 opted into continuous marquee — restore infinite duration under reduce gate */
  .m-template-ecwonmy
    .cms-transferlist-root[data-autoplay="1"]
    .m-transferlist__track--animate-x,
  .m-template-ecwonmy
    .cms-transferlist-root[data-autoplay="1"]
    .m-transferlist__track--animate-y {
    animation-duration: var(--cms-tl-marquee-duration, 20s) !important;
    animation-iteration-count: infinite !important;
  }

  .m-template-ecwonmy
    .cms-livescore-root[data-autoplay="1"]
    .m-livescore__track--animate-x,
  .m-template-ecwonmy
    .cms-livescore-root[data-autoplay="1"]
    .m-livescore__track--animate-y {
    animation-duration: var(--cms-ls-marquee-duration, 20s) !important;
    animation-iteration-count: infinite !important;
  }
}

/* LinkV2 OAuth buttons */
.lv2-oauth {
  margin: 0 0 1.1rem;
}
.lv2-oauth__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  opacity: 0.7;
  font-size: 0.85rem;
}
.lv2-oauth__divider--after {
  margin: 0.85rem 0 0;
}
.lv2-oauth__divider::before,
.lv2-oauth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}
.lv2-oauth__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lv2-oauth__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
}

/* =====================================*/
/* ============ CUSTOM CSS ============ */
/* =====================================*/

.prose {
  max-width: 100% !important;
}
header.m-page-intro,
.mobile-bottom-nav {
  display: none;
}

/*GREEN GRADIENT BACKGROUND*/

.m-theme-content::after {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  background: radial-gradient(at top left, #235848 0, transparent 66%);
  position: fixed;
  top: 0px;
  left: -160px;
  z-index: -1;
}

/*FIXED HEADER*/
.m-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1100;
}

.m-site-header__inner {
  height: 100%;
  box-sizing: border-box;
}

/*THEME FRAMEWORK (SIDEBAR MENU & MAIN CONTENT)*/
.m-theme {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns:
    var(--sidebar-width)
    minmax(0, 1fr);
  width: 100%;
  overflow: hidden;
  transition: grid-template-columns var(--sidebar-transition);
}

/*SIDEBAR MENU GRID*/
.m-theme-menu {
  width: 100%;
  min-width: 0;
}

/*SIDEBAR SCROLLBAR*/
.side-menu::-webkit-scrollbar {
  width: 5px;
}

.side-menu::-webkit-scrollbar-track {
  background: transparent;
}

.side-menu::-webkit-scrollbar-thumb {
  background: #c8cecc;
  border-radius: 10px;
}

/*SIDEBAR STYLING*/
.side-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  padding: 12px 14px;
  box-sizing: border-box;
  background: var(--bg-theme-color);

  /*
       Sidebar stays still, but if there are too many menu
       items, the SIDEBAR itself can scroll independently.
    */

  z-index: 1000;
  transition:
    width var(--sidebar-transition),
    padding var(--sidebar-transition);
  overflow: hidden;
}
.side-theme.language .side-menu-group {
  margin: 0;
}
.language-title svg {
  width: 30px;
  height: auto;
  fill: var(--color-background);
}
/* ================================
   LANGUAGE MODAL
================================ */

.language-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  align-items: center;
  justify-content: center;

  padding: 1rem;

  background: color-mix(in srgb, var(--bg-theme-color) 80%, transparent);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  transition: opacity 300ms ease;
}

/* ================================
   POPUP
================================ */

.language-modal-popup {
  width: 100%;
  max-width: 24rem;

  overflow: hidden;

  border-radius: 1rem;

  background: var(--brand-700);
  color: #fff;

  box-shadow:
    0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

  transition: all 300ms ease-out;
}

/* ================================
   HEADER
================================ */

.language-header {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1rem 1.25rem;

  border-bottom: 1px solid rgb(255 255 255 / 0.5);
}

.language-title {
  margin: 0;

  font-size: 1rem;
  font-weight: 700;
}

/* ================================
   CLOSE BUTTON
================================ */

.language-close {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  transform: translateY(-50%);
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  color: var(--color-surface);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

/* ================================
   COUNTRY
================================ */

.language-country {
  padding: 20px;
  border-bottom: 1px solid rgb(255 255 255 / 0.4);
}

.language-country:last-child {
  border-bottom: 0;
}
.language-flag {
  width: 26px;
}
.language-flag img {
  width: 100%;
}
/* ================================
   COUNTRY TITLE
================================ */

.language-country-title {
  display: flex;
  align-items: center;

  gap: 0.5rem;
  margin-bottom: 0.5rem;

  font-weight: 700;
}

/* ================================
   LANGUAGE OPTIONS
================================ */

.language-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 12px;
}
.language-option {
  color: var(--color-white);
  padding: 6px 0;
  font-size: 12px;
  text-align: center;
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff1c, transparent);
}
.language-option:hover {
  color: #6bff71;
  background: linear-gradient(0deg, #ffffff26, transparent);
}

/*MAIN CONTENT*/
.m-theme-content {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/*
   Prevent images / banners from forcing the content
   wider than its available area.
*/

.m-theme-content img {
  max-width: 100%;
  height: auto;
}

/*LIGHTDARK MODE*/

.side-theme {
  display: flex;
  align-items: center;
  padding: 0px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border-radius: var(--sidebar-radius);
}

.side-theme button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 42px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--bg-theme-textcolor);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.side-theme button.active {
  background: var(--sidebar-green-dark);
  color: #ffffff;
}
/* =========================================================
   TOGGLE BUTTON
========================================================= */
#theme-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.side-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--bg-card);
  color: var(--bg-theme-textcolor);
  font-size: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: unset;
}
.side-menu-toggle:hover {
  background: var(--bg-theme-color);
  color: var(--color-primary);
}

.side-menu-group {
  width: 100%;
  margin-bottom: 12px;
  padding: 8px;
  box-sizing: border-box;
  background: var(--bg-card);
  border-radius: var(--sidebar-radius);
  transition: padding var(--sidebar-transition);
}

/*SIDEBAR MENU CLOSE*/
.side-menu .m-nav {
  width: 100%;
}

.side-menu .m-nav__list {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-menu .m-nav__item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.side-menu .m-nav__item a img {
  width: 26px;
  margin-right: 14px;
  filter: brightness(0) saturate(100%) invert(43%) sepia(54%) saturate(398%)
    hue-rotate(109deg) brightness(92%) contrast(86%);
}

/*CMS NAV LINKS*/
.side-menu .m-nav__link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 4px 10px;
  box-sizing: border-box;
  color: var(--bg-theme-textcolor);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 7px;
  white-space: nowrap;
  overflow: hidden;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    padding var(--sidebar-transition);
  gap: 16px;
}

.side-menu .m-nav__link:hover {
  color: var(--sidebar-green-dark);
}

.side-menu .m-nav__item.active .m-nav__link,
.side-menu .m-nav__link.active {
  background: #f2f6f4;
  color: var(--sidebar-green-dark);
}

/*CUSTOM SIDE MENU ITEMS*/

.side-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 4px 10px;
  box-sizing: border-box;
  color: var(--sidebar-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 7px;
  white-space: nowrap;
  overflow: hidden;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    padding var(--sidebar-transition);
}

.side-menu-item:hover {
  background: #f2f6f4;
  color: var(--sidebar-green-dark);
}

.side-menu-item.active {
  background: #f2f6f4;
  color: var(--sidebar-green-dark);
}

/*MENU ICONS*/

.side-menu-icon {
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--sidebar-green);
  font-size: 20px;
}

.side-menu-icon img,
.side-menu-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/*MENU LABEL*/

.menu-label {
  display: block;
  opacity: 1;
  white-space: nowrap;
}

/*COLLAPSED STATE*/

/*
   Change grid column:
   240px | CONTENT
   becomes:
   70px | CONTENT
*/

body.sidebar-collapsed .m-theme {
  grid-template-columns:
    var(--sidebar-collapsed-width)
    minmax(0, 1fr);
}

/*Actual fixed sidebar also becomes 70px*/

body.sidebar-collapsed .side-menu {
  width: var(--sidebar-collapsed-width);
  padding-left: 8px;
  padding-right: 8px;
}

/* Smaller group padding */

body.sidebar-collapsed .side-menu-group {
  padding-left: 5px;
  padding-right: 5px;
}
body.sidebar-collapsed .side-menu-group ul li a span {
  display: none;
}
body.sidebar-collapsed .side-menu .m-nav__item a img {
  margin-right: 0;
}
/* Center CMS navigation links */

body.sidebar-collapsed .side-menu .m-nav__link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

/*COLLAPSED THEME SWITCHER*/

body.sidebar-collapsed .side-theme {
  flex-direction: column;
  gap: 3px;
  padding: 4px;
}

body.sidebar-collapsed .side-theme button {
  flex: none;
  width: 100%;
  height: 42px;
  padding: 0;
}

body.sidebar-collapsed .side-theme .menu-label {
  display: none;
}

/*MOBILE VIEW STYLING FOR MENU ONLY*/
@media (max-width: 768px) {
  .m-theme,
  body.sidebar-collapsed .m-theme {
    grid-template-columns: minmax(0, 1fr);
  }

  .m-theme-menu {
    position: static;
    width: 0;
    min-width: 0;
    overflow: visible;
  }

  .side-menu,
  body.sidebar-collapsed .side-menu {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    padding: 70px 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 99;

    /*
         * CLOSED:
         * menu physically exists one viewport to the left.
         */
    transform: translateX(-100%) !important;
    transition: transform 350ms ease !important;
    will-change: transform;
  }

  /* OPEN */
  body.mobile-menu-open .side-menu,
  body.mobile-menu-open.sidebar-collapsed .side-menu {
    transform: translateX(0) !important;
  }

  /* Prevent initial refresh animation only */
  html.mobile-menu-init .side-menu {
    transition: none !important;
  }

  /* Reset desktop collapsed styling */
  body.sidebar-collapsed .side-menu-group {
    padding: 7px;
  }

  body.sidebar-collapsed .menu-label {
    display: block;
  }

  body.sidebar-collapsed .side-menu-item {
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
  }

  body.sidebar-collapsed .side-menu-icon {
    flex: 0 0 34px;
    width: 34px;
  }

  body.sidebar-collapsed .side-menu .m-nav__link {
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
  }

  body.sidebar-collapsed .side-theme {
    flex-direction: row;
    gap: 0;
    padding: 4px;
  }

  body.sidebar-collapsed .side-theme button {
    flex: 1;
    width: auto;
    height: 42px;
    padding: 0 7px;
  }

  body.sidebar-collapsed .side-theme .menu-label {
    display: block;
  }
}

/*HEADER LINK*/
button.log-btn {
  position: relative;
  min-width: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  height: 40px;
  border-radius: 8px;
  color: var(--bg-theme-textcolor);
  font-size: 14px;
  padding: 2px 10px;
  font-weight: bold;
}
.register {
  position: relative;
  min-width: 100px;
  background: var(--color-primary);
  border: 1px solid var(--border-soft);
  height: stretch;
  border-radius: 8px;
  color: var(--color-white);
  font-size: 14px;
  padding: 2px 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  position: relative;
  height: 40px;
  border-radius: 5px;
  display: flex;
  aspect-ratio: 1 / 1;
  justify-content: center;
  align-items: center;
  padding: 6px;
}
.auth-box img {
  filter: invert(1);
  width: 100%;
}
[data-theme="light"] .auth-box img {
  filter: invert(0);
}

/*LANG BUTTON ON THE SIDE*/

.m-lang-zone nav details {
  display: flex;
  align-items: center;
  padding: 4px 10px;
}

header.m-page-intro {
  display: none;
}
/*Home Banner*/

section.m-banner.m-banner--strip {
  display: none;
}

section.home-banner {
  margin-top: 30px;
  padding: 10px;
  background:
    var(--banner-bg) -104px -23px no-repeat,
    linear-gradient(45deg, var(--bg-card, transparent));
  background-size: 37%;
  animation: bannerFloat -7s 6s infinite reverse;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}
.banner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  border-radius: 1rem;
  overflow: hidden;
}
.b-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 300px;
  margin: auto;
  padding: 10px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.banner-l {
  margin-left: 130px;
}
.b-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.banner-tagline {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--bg-theme-textcolor);
}

.b-glass {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  color: var(--bg-theme-textcolor);
}

.b-glass-small {
  font-size: 1rem;
  line-height: 1.5rem;
}

.b-glass-large {
  font-size: 1.5rem;
  line-height: 2rem;
}

.b-right {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.b-right .m-banner-splide {
  width: 100%;
  height: 100%;
}

.b-glass strong {
  color: var(--brand-500);
}

.b-text a {
  display: block;
  width: 250px;
  margin: auto;
  padding: 10px;
  background: var(--brand-700);
  color: #fff !important;
  border-bottom: 2px solid var(--brand-500);
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  transition: 0.2s ease;
}

.b-text a:hover {
  transform: translateY(-4px);
  filter: brightness(1.2);
}

@keyframes bannerFloat {
  0% {
    background-position:
      -104px -23px,
      0 0;
  }
  50% {
    background-position:
      -104px -41px,
      0 0;
  }
  100% {
    background-position:
      -104px -23px,
      0 0;
  }
}

/*SCROLLTEXT*/
section.scrolltxt {
  background: var(--bg-card);
  color: var(--bg-theme-textcolor);
  margin: 20px 0;
  border-radius: 10px;
  position: relative;
}

.scrolltxt::before,
.scrolltxt::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  aspect-ratio: 2;
  z-index: 2;
}

.scrolltxt::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-card) 40%, transparent);
}

.scrolltxt::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-card) 40%, transparent);
}

/*WINNERLIST*/
.m-transferlist__thead {
  background: var(--brand-100);
}
.m-transferlist__th {
  padding: 10px;
}
.m-transferlist__list {
  gap: 0 !important;
}
.m-transferlist__row {
  background: unset !important;
}
.winner-box {
  width: 100%;
  min-width: 0;
}

.win-wrapper {
  display: flex;
  width: 100%;
  gap: 30px;
}

.win-table {
  position: relative;
  width: 100%;
  background: var(--td-odd);
  box-shadow: var(--shadow-soft);
}
.win-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0;
}

.win-table :is(td, th) {
  padding: 12px 10px !important;
  border: 0 !important;
  font-weight: 700;
  text-align: left;
}

.win-table td {
  color: var(--bg-theme-textcolor) !important;
}

.win-table thead th {
  background: var(--brand-700);
  color: var(--color-white) !important;
  font-size: 15px;
  text-transform: uppercase;
  white-space: nowrap;
}

.win-table .table-striped > tbody > tr:nth-of-type(odd) {
  background: var(--td-odd);
}

.win-table .table-striped > tbody > tr:nth-of-type(even) {
  background: var(--td-even);
}

.win-table img {
  width: 20px;
}

.player-flag {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.player-flag .flag {
  font-size: 16px;
}

.scroll-table {
  position: relative;
  max-height: 324px;
  overflow-x: auto;
  overflow-y: hidden;
}

.scroll-table table {
  min-width: 720px;
  table-layout: auto;
  margin: 0 !important;
}

.scroll-table tbody {
  display: block;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
}

.scroll-table thead,
.scroll-table tbody tr {
  position: relative;
  z-index: 5;
  display: table;
  width: 100%;
  table-layout: fixed;
}

.scroll-table :is(td, th) {
  white-space: nowrap;
}

.scroll-table :is(th, td):first-child {
  width: 80px;
}

.scroll-table tbody td:first-child img {
  margin-left: 20px;
  filter: invert(1) brightness(0.8);
}

.scroll-table thead tr {
  background: var(--color-primary) !important;
}

/*Home Promo Text Box*/

.hpi-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 54px;
  background:
    url(/data/upload/1944250e-b947-4e2d-b6dd-1371712205bb/promobg.png)
      center/cover no-repeat,
    var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  color: var(--bg-theme-textcolor);
}

.hpi-box h2 {
  margin: 0;
  color: var(--text-primary);
  font-weight: bold;
}

.hpi-box strong {
  color: var(--brand-500);
}

.hpi-box > img {
  width: 100%;
  filter: brightness(0) saturate(100%) invert(35%) sepia(0%) saturate(1240%)
    hue-rotate(234deg) brightness(178%) contrast(100%);
  transition: filter 0.2s;
  box-shadow: none !important;
}

.hpi-box:hover > img {
  filter: brightness(1) contrast(0.5);
}

button svg {
  color: var(--bg-theme-textcolor);
}

/*PROMOTION CARDS*/
.faq-carousel-controls {
  position: absolute;
  top: 0;
  right: 0;
}
.m-faq-card {
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, 20rem), 1fr)
  ) !important;
}

.m-faq-card .m-card__link:hover .m-faq__q--card,
.m-faq-grid .m-card__link:hover .m-faq__q--tile,
.m-faq__more-link,
.m-faq__more-label {
  color: var(--color-accent) !important;
}

.home-faq .m-faq-card {
  display: flex !important;
  gap: 16px !important;
  margin: 0 !important;
  overflow-x: auto;
  scrollbar-width: none;
}

.m-template-ecwonmy .m-faq-card .m-card--faq {
  background: var(--bg-theme-color);
  box-shadow: none !important;
}

.m-faq__q--card {
  color: var(--bg-theme-textcolor) !important;
}

.m-faq-card .m-faq-card__shell,
.home-faq .m-faq-card__shell {
  padding: 0 !important;
}

.home-faq .m-faq-card__shell {
  overflow: hidden;
}

.m-card__media-img,
.m-card__media--has-img {
  aspect-ratio: unset !important;
}

.home-faq .m-faq-card__cell {
  flex: 1 0 40% !important;
}

.m-faq-card__shell > :not(figure) {
  margin-inline: 20px !important;
}

.m-faq-card__shell > .m-faq__cat-badges {
  margin-block: -45px 20px !important;
}

.m-faq__cat-badge--link {
  display: flex;
  align-items: center;
  min-width: unset !important;
  min-height: unset !important;
  padding: 4px 6px !important;
  background: color-mix(
    in srgb,
    var(--color-accent) 50%,
    transparent
  ) !important;
  backdrop-filter: blur(4px);
  text-decoration: none !important;
}

.m-faq-card__shell > .m-faq__more {
  margin-bottom: 20px !important;
  text-align: right !important;
  width: fit-content;
  background: var(--bg-card);
  padding: 10px;
  margin-top: 0 !important;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  align-self: end;
}
.promo-countdown {
  color: var(--bg-theme-textcolor);
  opacity: 0.4;
  font-size: 14px;
  padding: 4px 0;
}
.m-faq__excerpt--card {
  display: none !important;
}
.m-faq__cat-badges {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow: hidden;
}
.m-faq__cat-badge {
  flex-shrink: 0;
}
.m-faq__cat-badges .m-faq__cat-badge {
  margin: 0;
  color: var(--color-white);
}

.m-banner-splide--multi-card .splide__slide {
  overflow: hidden;
  border-radius: 20px;
}

.m-banner-splide .m-banner-splide__caption {
  position: unset !important;
  display: flex;
  justify-content: center;
  padding: 10px !important;
  font-size: 10px !important;
  text-transform: uppercase;
}

.m-banner__hover-text,
.m-image-grid__hover-text {
  position: relative;
  overflow: hidden;
  padding: 10px !important;
  background: var(--color-primary) !important;
  border-radius: 50% !important;
  box-shadow: none;
  line-height: unset !important;
  backdrop-filter: blur(2px);
  width: 100px;
  height: 100px;
  margin-top: 10px;
  max-width: unset !important;
  cursor: pointer;
}

.m-banner-splide__link:hover .m-banner__hover-text::after,
.m-image-grid__media:hover .m-image-grid__hover-text::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--shine-effect);
  animation: shine 3s ease-in infinite;
}

.play-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  transform: scale(0.8);
  cursor: pointer;
}

.play-now img {
  width: 40px;
}

.play-now span {
  font-size: 14px;
}

.m-faq-pop__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(48rem, calc(100vw - 2rem));
  max-height: min(90vh, 40rem);
  margin: 0;
  overflow: hidden;
  background: var(--bg-card);
  color: var(--bg-theme-textcolor);
  border-radius: 12px;
  box-shadow: 0 18px 48px color-mix(in srgb, #000 28%, transparent);
}

.m-faq-pop__body.prose {
  color: var(--bg-theme-textcolor);
}

/*HOME UPCOMING LOTTERY CARD*/
.lottery-title {
  color: var(--bg-theme-textcolor);
}

.lottery-card {
  background: var(--bg-card);
  border-radius: 20px;
}
.lottery-card p {
  color: var(--bg-theme-textcolor) !important;
}
.lottery-timer span {
  background: var(--bg-theme-color);
  color: var(--bg-theme-textcolor) !important;
}
.lottery-card a {
  color: var(--color-white) !important;
  text-decoration: unset !important;
}
.lottery-card img {
  pointer-events: none;
}

/*CUSTOM FOOTER*/
.top-footer {
  gap: 100px;
}

.f-sitemap ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.f-sitemap li {
  padding: 8px 0;
}

.top-box ul {
  display: flex;
  gap: 10px;
}

.top-box img {
  width: 40px;
}

.mid-footer {
  margin-bottom: 4%;
  padding: 4% 0;
  border-block: 1px solid var(--border-soft);
}

.mid-footer .m-banner-splide {
  filter: grayscale(1);
}

.mid-footer .m-banner-splide:hover {
  filter: grayscale(0);
}

.mid-footer .m-banner-splide__link {
  box-shadow: none !important;
}

.btm-footer {
  display: flex;
  gap: 130px;
}

.copy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
}

.cf-box {
  font-size: 14px;
}

.cf-box img {
  width: 120px;
}

.ai-answer.subtle {
  margin: 0 12vw !important;
  border-top: 0;
}

/*LOGIN AND REG INPUT STYLING*/
.m-template-ecwonmy .m-form__input,
.m-template-ecwonmy .m-form__textarea,
.m-template-ecwonmy .m-form__select,
.m-template-ecwonmy .m-contact-page__input,
.m-template-ecwonmy .m-contact-page__textarea,
.m-template-ecwonmy .lv2-remote-input,
.m-template-ecwonmy .lv2-remote-select,
.m-template-ecwonmy .m-lotto-toolbar__input,
.m-template-ecwonmy .m-livescorepro-field__control,
.m-template-ecwonmy .c-newsletter-php .m-form__input {
  background: var(--bg-card);
  color: var(--bg-theme-textcolor);
}
input#customformv2_submit:hover {
  background: var(--brand-100);
}
input#customformv2_submit {
  background: var(--brand-500);
  border-radius: 8px;
  margin: 0;
  color: var(--color-white);
  height: 52px;
  padding: 0px 14px;
  box-shadow: var(--shadow-soft);
  -webkit-appearance: none;
  font-weight: bold;
  border: 0;
}
.lv2-remote-shell .lv2-remote-shell {
  max-width: 100%;
  border: unset;
  box-shadow: unset;
  background: unset !important;
  padding: 20px 50px;
}
.lv2-remote-field {
  margin: 0 0 6px;
}
.lv2-remote-field__lbl {
  display: none;
}
.customform.lv2-remote-login .lv2-forgot-password a,
.lv2-remote-shell--login .lv2-forgot-password a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
  color: var(--bg-theme-textcolor);
}

.lv2-remote-shell--register {
  padding: 0;
  margin: 0;
}
.lv2-remote-inline.lv2-remote-inline--check {
  display: flex;
  flex-wrap: nowrap;
}
.lv2-reg-captcha-img {
  margin: 0 !important;
}

/*REGISTRATION PAGE*/

.reg-left img {
  width: 100%;
}
.registelbtn {
  width: 90%;
  background: linear-gradient(to right, #26a5e4 0%, #8fd7fb 50%, #26a5e4 100%);
  background-size: 200% 100%;
  padding: 10px 30px;
  border-radius: 10px;
  margin: 0 auto 20px;
  text-align: center;
  animation:
    shine 3s linear infinite,
    pulse 2s ease-in-out infinite;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #1e88e5;
  transform: scale(1);
  transition: transform 0.5s ease-in-out;
  font-weight: bold;
}
.registelbtn a {
  display: flex;
  justify-content: center;
  gap: 20px;
}
img.telegram-logo {
  width: 28px;
  max-width: unset !important;
  border-radius: unset !important;
  margin: 0 !important;
}

/*SEO STYLING*/
.seo-accordion button {
  background: var(--bg-card);
  color: var(--bg-theme-textcolor);
  border: 1px solid var(--bg-card);
}
.seo-wrapper {
  background: var(--bg-card);
  color: var(--bg-theme-textcolor);
}

/*GAME PRODUCT MENU BUTTON*/
.gametabs {
  display: flex;
  margin: 20px 0;
}

.gametabs .ectab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  color: var(--color-gray-500);
  border-radius: 10px;
  text-decoration: none !important;
}

.gametabs .ectab.active {
  background: var(--bg-card);
  color: var(--bg-theme-textcolor);
}

.gametabicon {
  display: block;
  width: 18px;
  height: 18px;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.gicon1 {
  background-image: url(/data/upload/1944250e-b947-4e2d-b6dd-1371712205bb/gametab-icon-slot.png);
}
.gicon2 {
  background-image: url(/data/upload/1944250e-b947-4e2d-b6dd-1371712205bb/gametab-icon-casino.png);
}
.gicon3 {
  background-image: url(/data/upload/1944250e-b947-4e2d-b6dd-1371712205bb/gametab-icon-sport.png);
}
.gicon4 {
  background-image: url(/data/upload/1944250e-b947-4e2d-b6dd-1371712205bb/gametab-icon-p2p.png);
}
.gicon5 {
  background-image: url(/data/upload/1944250e-b947-4e2d-b6dd-1371712205bb/gametab-icon-battle.png);
}
.gicon6 {
  background-image: url(/data/upload/1944250e-b947-4e2d-b6dd-1371712205bb/gametab-icon-lottery.png);
}

.ectab.active .gametabicon {
  filter: brightness(0) saturate(100%) invert(33%) sepia(65%) saturate(2567%)
    hue-rotate(117deg) brightness(104%) contrast(101%);
}

/*LOTTERY PAGE RESULT*/

/*lottery tab button*/
.m-lotto-tabs {
  display: flex;
  overflow-y: scroll;
  gap: 10px;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: flex-start;
  margin-bottom: 20px;
  scrollbar-color: var(--color-highlight) var(--color-background);
  scrollbar-gutter: stable;
  padding-bottom: 20px;
  scrollbar-width: thin;
}
.m-lotto-tab {
  background: var(--color-surface);
  padding: 10px 20px;
  border-radius: 10px;
  flex: 0 0 fit-content;
  display: block;
  font-weight: bold;
  position: relative;
}

.m-lotto-tab.active {
  background: radial-gradient(
    73% 100% at 50% 100%,
    var(--color-accent),
    var(--color-highlight)
  );
  color: var(--color-white);
}
.m-lotto-result__item:has(.m-lotto-card.active-hide),
.offcanvas-header {
  display: none !important;
}

.btn-anim.m-lotto-tab.active {
  position: relative;
  overflow: hidden;
}
.btn-anim.m-lotto-tab.active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--shine-effect);
  -webkit-animation: shine 3s ease-in-out infinite;
  animation: shine 3s ease-in-out infinite;
}

#cms-lotto-block .m-lotto-card__date-label {
  color: var(--color-surface) !important;
}
#cms-lotto-block .m-lotto-toolbar__brand {
  color: var(--color-accent) !important;
}

/*VIP PAGE*/
.vip-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 350px;
  margin-top: 80px;
  background:
    url(/data/upload/1944250e-b947-4e2d-b6dd-1371712205bb/vip-banner-bg.webp)
      bottom -70px center/auto no-repeat,
    var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.vip-banner img {
  margin: -90px 0 -30px !important;
}

.vip-txt {
  text-align: center;
}

.vip-txt :is(h1, h2) {
  margin: 6px;
  padding: 0;
  color: transparent;
  font-weight: 700;
  background: linear-gradient(#f8e3be 0 80%, #d0ad6e);
  background-clip: text;
  text-shadow: var(--shadow-soft);
}

.vip-txt h5 {
  margin: 20px 0 10px;
  color: var(--brand-500);
  font-weight: 700;
}

.v-jbtn {
  width: 300px;
  margin-top: 20px;
  padding: 12px 20px;
  background: linear-gradient(45deg, var(--brand-100), var(--brand-700));
  border-bottom: 2px solid var(--brand-500);
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.v-jbtn:hover {
  background: var(--brand-500);
}

/* VIP CONTENT */
.vip-tbcntnt {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 16px;
  background: var(--menu-bg);
  border-radius: 16px;
}

.vip-sub {
  flex: 1 0 40%;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}

.vip-sub h3 {
  color: var(--brand-700);
  font-weight: 700;
}

.vip-sub h5 {
  margin: 20px 0;
  color: var(--brand-500);
  line-height: 22px;
}

.vip-sub ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vip-sub li {
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 22px;
}

/* VIP WRAPPER */
.vipWrapper {
  width: 100%;
}

.vipWrapper > div {
  margin-bottom: 0;
  border-radius: 15px;
}

.vipWrapper > h3.golden {
  margin: 40px 0;
  background: linear-gradient(#f13233 10%, #990003 40%);
  background-clip: text;
  color: transparent;
  font-size: 56px;
  font-style: oblique;
  font-weight: 700;
  line-height: 60px;
  text-align: center;
}

.vipBlockHeader {
  padding: 20px 0;
  background: linear-gradient(to right, #f13233 10%, #990003 40%);
  border-radius: 15px 15px 0 0;
  color: var(--bg-main);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
}

.vipBlockBody {
  padding: 20px 15%;
  background: var(--bg-main);
  border-radius: 0 0 15px 15px;
  color: #171a1a;
  text-align: center;
}

.vipBlockBody p {
  font-size: 14px;
  line-height: 16px;
}

/* VIP TABLE */
.vipContent {
  display: block;
  width: 100%;
  margin: 30px 0;
  padding: 16px;
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: 15px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vipTable {
  display: table;
  width: 100%;
  margin: 0;
  border-spacing: 0;
}

.vipTable .vipCell {
  display: table-cell;
  flex: 1;
  min-width: 100px;
  padding: 4px 8px;
  font-size: 16px;
  text-align: center;
}

.vipTable .vipCell:is(.vipCellH1, .vipCellH2) {
  flex: 2;
  padding: 5px;
  font-weight: 700;
  text-align: left;
}

.vipTable .vipCellH1 {
  color: transparent;
  font-size: 28px;
  background: linear-gradient(#e0c7ae 40%, #c2a884 70%);
  background-clip: text;
}

.vipTable .vipCellH2 {
  color: var(--bg-theme-textcolor);
  font-size: 14px;
}

.vipTable > .vipCat > .vipRow:nth-child(1) > .vipCellH2 {
  color: var(--brand-500);
  font-size: 20px;
}

.vipTable .vipCat {
  margin: 20px 0;
  padding: 0 20px;
  background: var(--glass-bg);
  border-radius: 20px;
}

.vipTable .vipRow {
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: var(--bg-theme-textcolor);
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}

.vipTable .vipRow:last-child {
  padding-bottom: 12px;
  border: 0;
}

.sopnImg:is(.ec_starter, .ec_gold, .ec_silver, .ec_platinum) {
  display: block;
}

/* VIP RULES */
.vipRules {
  margin-top: 40px;
}

.vipRules p {
  padding-bottom: 10px;
  color: #171a1a;
  font-size: 14px;
}

.sponBar.vip p {
  margin: 5px 0 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
}

.sponBar.vip ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.sponBar.vip li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*PROMOTION PAGE*/
#promo-tab {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 40px 0;
  list-style: none;
}

.faq-tab-scroll button {
  width: fit-content;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--bg-theme-textcolor);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease-in;
}

.faq-tab-scroll button:is(.active, :hover) {
  background: var(--brand-500);
}

.promo-category {
  display: flex;
  padding: 40px;
  background: linear-gradient(12deg, var(--bg-card) 70%, var(--brand-700));
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.promo-pcat {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.pcat-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 22%;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(0deg, var(--bg-card) -10%, var(--brand-700));
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.pcat-box::after {
  content: "";
  position: absolute;
  inset: -6px auto auto 3px;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: url(/data/upload/1944250e-b947-4e2d-b6dd-1371712205bb/backlight.png)
    center/100% no-repeat;
}

.pcat-box:hover::after {
  filter: hue-rotate(110deg) contrast(1.5);
}

.pcat-box img {
  z-index: 1;
  width: 100%;
  object-fit: cover;
}

.pcat-box:is(:hover, .active) {
  outline: 2px solid var(--brand-100);
  box-shadow:
    0 0 20px var(--brand-100),
    0 0 40px var(--brand-100);
}

.promo-cbox {
  flex-basis: 30%;
}

.promo-cbox.pcat {
  flex-basis: 70%;
}

.promo-title h3,
.promo-title-text {
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.promo-title-text {
  color: var(--bg-theme-textcolor) !important;
  font-size: 24px;
}

/*MOBILE BOTTOM BAR HIDES IN DESKTOP*/

.mobile-bottom-nav {
  display: none;
}

.lv2-remote-shell--login {
  max-width: min(100%, 22.5rem);
  margin: 30px auto;
  box-shadow: unset !important;
  border: inherit;
  background: unset !important;
}
.reg-right .lv2-remote-shell {
  max-width: 100%;
  background: unset !important;
  border: inherit;
  box-shadow: inherit;
}
.m-template-ecwonmy .m-btn--secondary,
.m-template-ecwonmy .lv2-remote-secondary-btn,
.m-template-ecwonmy .lv2-remote-icon-btn,
.m-template-ecwonmy .btnCheckUser.lv2-btn-check-user {
  color: var(--bg-theme-textcolor);
}
span.m-banner__hover-text,
.m-image-grid__hover-text {
  transform: scale(0.8);
}

.m-template-ecwonmy .m-image-grid__figure {
  background: unset !important;
}
.m-banner-splide__link:hover .m-banner__hover-text::after,
.m-image-grid__media:hover .m-image-grid__hover-text::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--shine-effect);
  animation: shine 3s ease-in infinite;
}

.m-banner-splide--multi-card .splide__slide {
  overflow: hidden;
  border-radius: 20px;
}

.m-banner-splide .m-banner-splide__caption {
  position: unset !important;
  display: flex;
  justify-content: center;
  padding: 10px !important;
  font-size: 10px !important;
  text-transform: uppercase;
}

.m-banner__hover-text,
.m-image-grid__hover-text {
  position: relative;
  overflow: hidden;
  padding: 10px !important;
  background: var(--color-primary) !important;
  border-radius: 50% !important;
  box-shadow: none;
  line-height: unset !important;
  backdrop-filter: blur(2px);
  width: 100px;
  height: 100px;
  margin-top: 10px;
  max-width: unset !important;
  cursor: pointer;
}

@media (max-width: 767px) {
  .m-site-header__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 96dvw;
    padding: 0;
  }

  .m-site-header__left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
  }

  .m-site-header__right {
    flex: 0 0 auto;
  }

  .m-logo-zone,
  .m-logo-area,
  .m-logo-area a {
    min-width: 0;
    max-width: 100%;
  }

  .m-logo-area img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 25px;
    object-fit: contain;
  }

  .m-lang-zone nav details {
    display: block;
  }

  .m-template-ecwonmy .m-gallery-detail__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--space-unit) * 1.25);
  }

  .m-site-header__inner {
    max-width: 100dvw;
    flex-wrap: nowrap;
    padding: 8px;
  }

  .login,
  a.reg-btn {
    display: flex;
  }

  .register {
    min-width: unset;
    padding: 0;
    border: 0;
  }

  button.log-btn,
  .reg-btn {
    min-width: fit-content;
    height: inherit;
    padding: 0;
    font-size: 0;
    aspect-ratio: 1;
  }

  button.log-btn::after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    margin: auto;
    background: url(/data/upload/1944250e-b947-4e2d-b6dd-1371712205bb/circle-user-solid-full.svg)
      center/contain no-repeat;
    filter: invert(1);
  }

  [data-theme="light"] button.log-btn::after {
    filter: invert(0);
  }

  .reg-btn::after {
    content: url(/data/upload/1944250e-b947-4e2d-b6dd-1371712205bb/user-plus-solid-full.svg);
    display: block;
    width: 24px;
    margin: auto;
    filter: invert(1);
  }

  .mobile-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 10000;
    display: block;
    width: 100%;
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
  }

  .btm-menu-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    height: 57px;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
    text-align: center;
  }

  .bmenu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 1px;
    color: var(--bg-theme-textcolor);
    font-size: 11px;
    font-weight: 700;
  }

  .side-menu-toggle.bmenu-link {
    width: unset !important;
    height: unset !important;
  }

  .bmimg {
    margin-bottom: 2px;
  }

  .bmimg img {
    max-height: 24px;
  }

  .home-banner {
    background-size: 100%;
  }

  @keyframes bannerFloat {
    0%,
    100% {
      background-position:
        0 -200px,
        0 0;
    }
    50% {
      background-position:
        0 -180px,
        0 0;
    }
  }

  .scroll-table :is(th, td):is(:first-child, :nth-child(2)) {
    display: none;
  }

  .scroll-table table {
    min-width: 100%;
  }

  .win-table :is(th, td) {
    font-size: 12px !important;
    text-align: center !important;
  }

  .player-flag {
    justify-content: center;
  }

  .player-flag .flag {
    display: none;
  }

  .m-banner-splide--multi-card .splide__slide {
    flex: 1 0 40%;
  }

  .home-faq .m-faq-card__cell {
    flex: 1 0 80% !important;
  }

  .hpi-wrapper {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .btm-footer {
    flex-wrap: wrap;
    gap: 40px;
  }

  .gametabs,
  .faq-tab-scroll {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .lottery-timer {
    transform: scale(1.2);
  }

  .promo-category {
    flex-direction: column;
    gap: 20px;
  }

  .promo-pcat {
    flex-wrap: wrap;
  }

  .pcat-box {
    flex: 1 0 30%;
    flex-wrap: wrap;
  }
}

/*PROSE STUFF*/
.prose {
  max-width: 100% !important;
}

.m-template-ecwonmy .prose a {
  color: inherit;
}

.m-template-ecwonmy .prose th {
  background: inherit !important;
}
.m-template-ecwonmy .prose h2,
.m-template-ecwonmy .prose h3,
.m-template-ecwonmy #page-title,
.m-template-ecwonmy .c-page h1,
.m-template-ecwonmy .prose h1 {
  color: var(--bg-theme-textcolor);
}
.prose
  :where(tbody tr):not(:where([class~="not-prose"], [class~="not-prose"] *)),
.prose :where(thead):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
  border: unset !important;
}
.prose :where(img):not(:where([class~="not-prose"], [class~="not-prose"] *)),
.prose :where(h2):not(:where([class~="not-prose"], [class~="not-prose"] *)),
.m-template-ecwonmy #page-title,
.m-template-ecwonmy .c-page h1,
.m-template-ecwonmy .prose h1 {
  margin: unset !important;
}
.m-template-ecwonmy #page-title,
.m-template-ecwonmy .c-page h1,
.m-template-ecwonmy .prose h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg-theme-textcolor);
  text-shadow: unset;
  overflow-wrap: anywhere;
  word-break: break-word;
}
img:not([width]):not([height]):not(.is-icon) {
  aspect-ratio: inherit !important;
  background: transparent !important;
}
.m-template-ecwonmy .prose img {
  max-width: 100%;
  height: auto;
  border-radius: inherit;
  box-shadow: none;
  margin: auto;
}

.c-listing.m-banner-splide {
  --banner-splide-surface: inherit !important;
}
.c-listing.m-banner-splide .m-banner-splide__link:hover,
.c-listing.m-banner-splide .m-banner-splide__link:focus-visible {
  transform: translateY(0) !important;
}


/* custom:bdb913128f38b04d16fb2d9a376fdb26a2bac2d4 */
.w-\[90\%\].\32 xl\:w-3\/4.mx-auto {
    width: calc(3 / 4 * 100%);
    margin: auto;
}

 .language-country .menu-auth {
     display: none;
}
 .m-logo-area > a {
     position: relative;
     display: inline-block;
}
 .m-logo-area > a > img:not(.anniversary-filter) {
     display: block;
}
 .m-logo-area .anniversary-filter {
     position: absolute;
     inset: 0;
     width: 100%;
     height: 100%;
     clip-path: inset(0 0 0 52%);
     filter: drop-shadow(0px 0px 0px #235848) drop-shadow(0px 1px 0px #235848);
     pointer-events: none;
}
 .m-lang-switch__list {
     display: grid !important;
}
 .m-lang-switch__link.min-touch {
     display: block;
     min-width: 2.25rem;
     border-radius: 999px;
     font-size: 12px;
     color: var(--color-white);
     padding: 6px 0;
     text-decoration: none;
     transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
     text-align: center;
}
 .m-site-header__inner {
     align-items: flex-start;
}
 .side-menu {
     overflow: scroll;
}
 .sidebar-collapsed .theme-btn:not(.active) {
     display: none;
}
 .sidebar-collapsed .theme-btn span:nth-child(2) {
     display: none !important;
}
 .sidebar-collapsed div#theme-switcher {
     grid-template-columns: repeat(1, 1fr) !important;
     padding: 0;
}
 .sidebar-collapsed .side-theme .menu-label {
     display: none;
}
 .sidebar-collapsed .m-lang-switch__list.cg-lang-dropdown__menu.cg-lang-dropdown__sub {
     display: none;
}
 .sidebar-collapsed .side-theme button.active {
     background: var(--color-primary);
}
 .side-theme button.active {
     background: inherit;
}
 .lv2-remote-shell--login {
     max-width: min(100%, 22.5rem);
     margin: 30px auto;
     box-shadow: unset !important;
     border: inherit;
     background: unset !important;
}
 .reg-right .lv2-remote-shell {
     max-width: 100%;
     background: unset !important;
     border: inherit;
     box-shadow: inherit;
}
 .lv2-remote-submit.m-btn:hover {
     background: var(--brand-100);
}
 .lv2-remote-submit.m-btn,.lv2-btn-check-user.lv2-remote-secondary-btn.m-btn.m-btn--secondary {
     background: var(--brand-500);
     border-radius: 8px;
     margin: 0;
     color: var(--color-white);
     height: 52px;
     padding: 0px 14px;
     box-shadow: var(--shadow-soft);
     -webkit-appearance: none;
     font-weight: bold;
     border: 0;
}
 .m-template-ecwonmy .m-faq__more-link, .m-template-ecwonmy .m-faq__more-label {
     text-decoration: none;
     font-weight: bold;
     color: var(--brand-500) !important;
     border-radius: 10px;
     font-size: 14px;
     text-align: center;
     transition: 0.3s;
}
 .m-template-ecwonmy .m-faq__more:hover{
     transform: scale(1.05);
     background: var(--brand-100);
}
 .m-template-ecwonmy .m-faq__more:hover .m-faq__more-label {
     color: var(--color-white) !important;
     text-decoration: unset !important;
}
 tr.td-bg-color {
     background-color: var(--brand-500);
}
 .promo-countdown {
     font-size: 14px;
}
 .m-faq-card__shell > .m-faq__more {
     display: flex;
     justify-content: flex-end;
}
 h3.m-faq__q.m-faq__q--card {
     letter-spacing: 0;
}
 .home-faq .m-faq-card__cell {
     flex: 1 0 32% !important;
}
 .theme-label {
     display: inline-block;
     white-space: nowrap;
     overflow: hidden;
     opacity: 1;
     max-width: 70px;
     transition: opacity 180ms ease, max-width 180ms ease;
}
 .sidebar-collapsed .theme-label {
     opacity: 0;
     max-width: 0;
     transition: opacity 80ms ease, max-width 200ms ease;
}
 .sidebar-expanding .theme-label {
     opacity: 0 !important;
     max-width: 0 !important;
}
 .sidebar-collapsed .theme-btn, .sidebar-expanding .theme-btn {
     gap: 0;
}
 .side-theme.language ul {
     cursor: pointer;
}
 .banner-tagline,.b-glass {
     color: var(--bg-theme-textcolor)!important;
}

#theme-switcher {
    background: var(--bg-card);
}
.side-theme button.active {
    background: var(--sidebar-green-dark) !important;
}
.side-theme {
    background: unset;
}
.side-theme .side-menu-group {
    margin: 0;
}
.side-theme {
    flex-direction: column;
    gap: 10px;
}

body.sidebar-collapsed .side-theme {
    padding: 0;
}
body.sidebar-collapsed .side-theme .side-menu-group #v2cryptocurrency {
    display: none !important;
}







 @media (max-width: 767px) {

.w-\[90\%\].\32 xl\:w-3\/4.mx-auto {
    width: 90%;
    margin: auto;
}
     .m-site-header__inner {
         align-items: center;
    }
     body {
         overflow: unset;
    }
     .w-\[90\%\].\32 xl\:w-3\/4.mx-auto, .w-\[90\%\].\32 xl\:w-3\/4.mx-auto.mb-20 {
         width: 100%;
         margin: auto;
    }
     .banner {
         display: flex;
         flex-direction:column;
    }
     .banner-l {
         margin-left:0px;
    }
     section.home-banner {
         background: var(--banner-bg) -104px -23px no-repeat, linear-gradient(45deg, var(--bg-card, transparent));
         background-size: 100%;
    }
     .side-menu-toggle.bmenu-link {
         width: unset !important;
         height: unset !important;
         box-shadow: unset !important;
    }
     .player-flag {
         justify-content: center;
    }
     div#theme-footer {
         padding-left: calc(var(--space-unit) * 3.25);
         padding-right: calc(var(--space-unit) * 3.25);
    }
     .mobile-bottom-nav .side-menu-toggle:hover {
         background: unset;
         color: var(--color-primary);
    }
     .vip-banner {
         height: 300px;
         margin-top: 50px;
    }
     .vip-banner img {
         text-align: center;
         margin-top: -60px !important;
         margin-bottom: 0px !important;
    }
     .vip-tbcntnt {
         flex-direction: column;
         padding: 0;
    }
     .m-site-footer__meta.cg-footer__meta-row {
         display: none !important;
    }
     .copy-footer {
         flex-direction: column;
         gap: 20px;
    }
     .m-site-footer__meta.cg-footer__meta-row {
         display: none !important;
    }
     .m-template-ecwonmy .m-faq__q--card {
         margin: 0;
         padding: 0;
         font-size: 16px;
    }
     .m-faq-card__shell > .m-faq__more {
         margin: 14px auto !important;
         padding: 10px;
         width: 90%;
         text-align: center !important;
         justify-content: center;
    }
     .home-faq .m-faq-card__cell {
         flex: 1 0 100% !important;
         padding: 0;
    }
}
 

/* cms-frontend-base */
/* Shared with Astro build — tokens injected via :root in layout */

/* Image / iframe CLS prevention (req #25):
 * Reserve aspect-ratio so the layout does not jump while images stream in.
 * Authors can override with explicit width+height attrs; otherwise we infer
 * 4:3 for inline content images and 16:9 for hero banners and embedded video.
 */
img,
picture > img,
video,
iframe,
object,
embed {
  max-width: 100%;
  height: auto;
}

img:not([width]):not([height]):not(.is-icon) {
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, currentColor 6%, transparent);
}

img.is-hero,
.banner img,
.hero img {
  aspect-ratio: 16 / 9;
}

iframe[src*="youtube"],
iframe[src*="vimeo"],
.video-embed iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

/* Respect reduced-motion preference (rule from .cursorrules) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* AI answer block — subtle collapsible footer summary (AiAnswer.astro + StorefrontSeoPhp) */
.ai-answer.subtle {
  margin-top: 2.5rem;
  padding: 0.75rem 0 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  border-radius: 0;
  background: transparent;
  font-size: 0.875rem;
  line-height: 1.55;
  color: color-mix(in srgb, currentColor 62%, transparent);
}

.ai-answer.subtle > .ai-answer__summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.15rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, currentColor 48%, transparent);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.ai-answer.subtle > .ai-answer__summary::-webkit-details-marker {
  display: none;
}

.ai-answer.subtle > .ai-answer__summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: auto;
  border-right: 1.5px solid color-mix(in srgb, currentColor 40%, transparent);
  border-bottom: 1.5px solid color-mix(in srgb, currentColor 40%, transparent);
  transform: rotate(-45deg);
  transition: transform 200ms ease;
}

.ai-answer.subtle[open] > .ai-answer__summary::after {
  transform: rotate(45deg);
}

.ai-answer.subtle > .ai-answer__summary:hover {
  color: color-mix(in srgb, currentColor 72%, transparent);
}

.ai-answer.subtle > .ai-answer__body {
  padding: 0.35rem 0 0;
}

.ai-answer.subtle > .ai-answer__body p,
.ai-answer.subtle > .ai-answer__body .ai-answer__text {
  margin: 0;
}

.ai-answer.subtle .ai-answer__faq {
  margin: 0.75rem 0 0;
}

.ai-answer.subtle .ai-answer__question {
  font-weight: 600;
  margin: 0.5rem 0 0.15rem;
}

.ai-answer.subtle .ai-answer__answer {
  margin: 0 0 0.5rem;
  color: inherit;
}

.ai-answer.subtle .ai-answer__facts {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.ai-answer.subtle .ai-answer__fact {
  margin: 0.25rem 0;
}

.ai-answer.subtle .ai-answer__fact-label {
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .ai-answer.subtle > .ai-answer__summary::after {
    transition: none;
  }
}

/* ----------------------------------------------------------------- */
/* Accessibility — skip link, focus-visible outline, screen-reader   */
/* utility class. Keep selectors small and high-specificity.         */
/* ----------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #111827;
  color: #fff;
  border-radius: 0 0 6px 6px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
  transition: top 120ms ease-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

:where(a, button, [role="button"], summary, input, select, textarea):focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}