/* ==========================================================================
   Sunwi (sunwi.homes) — mobile-first base stylesheet
   Canvas: 320-430px phone viewport, centered shell on wide screens.
   All classes and CSS variables use the site prefix "framecd3ec-".
   Comments in English only.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --framecd3ec-bg: #1c2833;            /* deep slate base */
  --framecd3ec-bg-deep: #101a23;       /* canvas backdrop */
  --framecd3ec-panel: #243240;         /* raised panel */
  --framecd3ec-panel-2: #2b3d4e;       /* hover / alt panel */
  --framecd3ec-line: rgba(204, 204, 204, 0.16);
  --framecd3ec-line-soft: rgba(204, 204, 204, 0.09);
  --framecd3ec-text: #cccccc;          /* light body text */
  --framecd3ec-text-dim: #9db0bf;      /* muted text */
  --framecd3ec-heading: #f4f7fa;       /* near-white headings */
  --framecd3ec-royal: #4169e1;         /* royal blue */
  --framecd3ec-navy: #000080;          /* deep navy */
  --framecd3ec-gold: #fff176;          /* warm highlight */
  --framecd3ec-gold-deep: #e8cf55;
  --framecd3ec-sky: #1e90ff;           /* action blue */
  --framecd3ec-ink: #14202b;           /* text on gold buttons */
  --framecd3ec-radius: 10px;
  --framecd3ec-radius-sm: 7px;
  --framecd3ec-radius-xs: 5px;
  --framecd3ec-font-round: ui-rounded, "Segoe UI Variable Display", "Baloo 2",
    "Quicksand", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --framecd3ec-font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial,
    system-ui, sans-serif;
  --framecd3ec-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
  --framecd3ec-dock-h: 62px;
  --framecd3ec-top-h: 66px;
}

/* ---------- Minimal reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--framecd3ec-bg-deep);
  color: var(--framecd3ec-text);
  font-family: var(--framecd3ec-font-body);
  font-size: 14px;
  line-height: 1.58;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--framecd3ec-sky);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--framecd3ec-gold);
  outline-offset: 2px;
  border-radius: var(--framecd3ec-radius-xs);
}

/* ---------- Centered phone shell ---------- */
.framecd3ec-shell {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background:
    radial-gradient(120% 42% at 50% 0%, rgba(65, 105, 225, 0.22), transparent 62%),
    var(--framecd3ec-bg);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
  overflow-x: clip;
}

/* Skip link for keyboard users */
.framecd3ec-skip {
  position: absolute;
  left: 10px;
  top: -48px;
  z-index: 90;
  padding: 9px 14px;
  border-radius: var(--framecd3ec-radius-sm);
  background: var(--framecd3ec-gold);
  color: var(--framecd3ec-ink);
  font-weight: 700;
  transition: top 0.16s ease;
}

.framecd3ec-skip:focus {
  top: 8px;
}

/* ==========================================================================
   Fixed asymmetric brand header
   ========================================================================== */
.framecd3ec-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 60;
  background: linear-gradient(180deg, rgba(28, 40, 51, 0.98), rgba(13, 21, 29, 0.96));
  border-bottom: 1px solid var(--framecd3ec-line);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.framecd3ec-topbar__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--framecd3ec-top-h);
  padding: 9px 12px 11px;
}

/* Brand cluster: tilted gold plate + wordmark. Asymmetry comes from the
   off-kilter plate and the uneven baseline of the action cluster. */
.framecd3ec-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
}

.framecd3ec-brand__plate {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--framecd3ec-gold) 0%, var(--framecd3ec-gold-deep) 58%, #c9a72e 100%);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: rotate(-6deg);
}

.framecd3ec-brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  transform: rotate(6deg); /* straighten the mark inside the tilted plate */
}

.framecd3ec-brand__name {
  font-family: var(--framecd3ec-font-round);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--framecd3ec-heading);
  line-height: 1.1;
}

.framecd3ec-brand__name em {
  font-style: normal;
  color: var(--framecd3ec-gold);
}

/* Action cluster sits lower-right: register on top, login below */
.framecd3ec-topbar__actions {
  display: grid;
  gap: 5px;
  justify-items: stretch;
}

.framecd3ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: var(--framecd3ec-radius-sm);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  text-align: center;
  transition: transform 0.14s ease, filter 0.14s ease, background-color 0.14s ease;
}

.framecd3ec-btn:active {
  transform: translateY(1px);
}

/* Solid primary CTA */
.framecd3ec-btn--solid {
  background: linear-gradient(180deg, #fff8b0, var(--framecd3ec-gold) 55%, var(--framecd3ec-gold-deep));
  color: var(--framecd3ec-ink);
  box-shadow: 0 4px 12px rgba(255, 241, 118, 0.18);
}

.framecd3ec-btn--solid:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

/* Outlined secondary CTA */
.framecd3ec-btn--ghost {
  border: 1px solid var(--framecd3ec-sky);
  color: #eaf4ff;
  background: rgba(30, 144, 255, 0.1);
}

.framecd3ec-btn--ghost:hover {
  background: rgba(30, 144, 255, 0.2);
  text-decoration: none;
}

/* Compact header variant of the buttons keeps the 44px touch band */
.framecd3ec-topbar__actions .framecd3ec-btn {
  min-height: 26px;
  padding: 4px 12px;
  font-size: 12px;
}

/* Burger toggle for the stacked overlay menu */
.framecd3ec-burger {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--framecd3ec-radius-sm);
  border: 1px solid var(--framecd3ec-line);
  background: rgba(204, 204, 204, 0.05);
}

.framecd3ec-burger__bars {
  position: relative;
  width: 19px;
  height: 14px;
}

.framecd3ec-burger__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--framecd3ec-gold);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.framecd3ec-burger__bars span:nth-child(1) { top: 0; }
.framecd3ec-burger__bars span:nth-child(2) { top: 6px; width: 78%; }
.framecd3ec-burger__bars span:nth-child(3) { top: 12px; }

.framecd3ec-burger[aria-expanded="true"] .framecd3ec-burger__bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.framecd3ec-burger[aria-expanded="true"] .framecd3ec-burger__bars span:nth-child(2) {
  opacity: 0;
}

.framecd3ec-burger[aria-expanded="true"] .framecd3ec-burger__bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* ==========================================================================
   Stacked overlay menu
   ========================================================================== */
.framecd3ec-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  background: linear-gradient(168deg, rgba(10, 17, 24, 0.97), rgba(9, 14, 25, 0.99) 46%, rgba(0, 0, 128, 0.34));
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.framecd3ec-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.framecd3ec-menu__panel {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.framecd3ec-menu__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 14px;
  border-bottom: 1px dashed var(--framecd3ec-line);
}

.framecd3ec-menu__head .framecd3ec-brand__plate {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.framecd3ec-menu__head .framecd3ec-brand__logo {
  width: 30px;
  height: 30px;
}

.framecd3ec-menu__title {
  font-family: var(--framecd3ec-font-round);
  font-size: 17px;
  font-weight: 800;
  color: var(--framecd3ec-heading);
}

.framecd3ec-menu__close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: var(--framecd3ec-radius-sm);
  border: 1px solid var(--framecd3ec-line);
  color: var(--framecd3ec-text);
  font-size: 20px;
  line-height: 1;
}

.framecd3ec-menu__group {
  margin: 16px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--framecd3ec-text-dim);
}

.framecd3ec-menu__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px 10px 16px;
  border-radius: var(--framecd3ec-radius-sm);
  color: var(--framecd3ec-heading);
  font-weight: 600;
  font-size: 15px;
  background: rgba(204, 204, 204, 0.04);
  border: 1px solid var(--framecd3ec-line-soft);
  margin-bottom: 6px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.framecd3ec-menu__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--framecd3ec-royal);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.framecd3ec-menu__link:hover,
.framecd3ec-menu__link:focus-visible {
  background: rgba(65, 105, 225, 0.16);
  text-decoration: none;
  transform: translateY(-2px); /* short vertical lift */
}

.framecd3ec-menu__link:hover::before,
.framecd3ec-menu__link--current::before {
  opacity: 1;
}

.framecd3ec-menu__link--current {
  color: var(--framecd3ec-gold);
}

.framecd3ec-menu__link .framecd3ec-menu__arrow {
  margin-left: auto;
  color: var(--framecd3ec-text-dim);
  font-size: 13px;
}

.framecd3ec-menu__foot {
  margin-top: auto;
  padding-top: 16px;
  font-size: 11.5px;
  color: var(--framecd3ec-text-dim);
}

/* ==========================================================================
   Main canvas
   ========================================================================== */
.framecd3ec-main {
  padding: calc(var(--framecd3ec-top-h) + 14px) 12px
    calc(var(--framecd3ec-dock-h) + 34px + env(safe-area-inset-bottom));
}

.framecd3ec-section {
  margin-top: 22px;
}

.framecd3ec-h2 {
  font-family: var(--framecd3ec-font-round);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--framecd3ec-heading);
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--framecd3ec-gold);
}

.framecd3ec-h3 {
  font-family: var(--framecd3ec-font-round);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--framecd3ec-heading);
  margin: 14px 0 6px;
}

.framecd3ec-p {
  margin: 0 0 10px;
}

.framecd3ec-p a {
  font-weight: 600;
}

.framecd3ec-kicker {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 241, 118, 0.4);
  color: var(--framecd3ec-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==========================================================================
   Hero carousel (scroll-snap track, JS only advances it)
   ========================================================================== */
.framecd3ec-hero {
  margin-top: 4px;
}

.framecd3ec-hero__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--framecd3ec-radius);
  border: 1px solid var(--framecd3ec-line);
  scrollbar-width: none;
}

.framecd3ec-hero__track::-webkit-scrollbar {
  display: none;
}

.framecd3ec-hero__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.framecd3ec-hero__img {
  width: 100%;
  aspect-ratio: 20 / 11;
  object-fit: cover;
}

.framecd3ec-hero__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 30px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(10, 17, 24, 0.92));
}

.framecd3ec-hero__txt {
  min-width: 0;
}

.framecd3ec-hero__tag {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--framecd3ec-gold);
}

.framecd3ec-hero__head {
  display: block;
  font-family: var(--framecd3ec-font-round);
  font-size: 16px;
  font-weight: 800;
  color: var(--framecd3ec-heading);
  line-height: 1.25;
}

.framecd3ec-hero__cta {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 7px 13px;
  font-size: 12px;
}

.framecd3ec-hero__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 9px;
}

.framecd3ec-hero__dot {
  width: 26px;
  height: 6px;
  border-radius: 999px;
  background: rgba(204, 204, 204, 0.24);
  transition: background-color 0.18s ease, width 0.18s ease;
}

.framecd3ec-hero__dot--on {
  width: 34px;
  background: var(--framecd3ec-gold);
}

/* ==========================================================================
   Intro / H1 block
   ========================================================================== */
.framecd3ec-intro {
  margin-top: 18px;
}

.framecd3ec-title {
  font-family: var(--framecd3ec-font-round);
  font-size: 23px;
  line-height: 1.28;
  font-weight: 800;
  color: var(--framecd3ec-heading);
  margin: 6px 0 10px;
}

.framecd3ec-title em {
  font-style: normal;
  color: var(--framecd3ec-gold);
}

.framecd3ec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 4px;
}

.framecd3ec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(65, 105, 225, 0.16);
  border: 1px solid rgba(65, 105, 225, 0.45);
  font-size: 11.5px;
  font-weight: 700;
  color: #dfe8fb;
}

.framecd3ec-chip b {
  color: var(--framecd3ec-gold);
  font-weight: 800;
}

/* ==========================================================================
   Game arena
   ========================================================================== */
.framecd3ec-cat {
  margin-top: 16px;
  padding: 12px 11px 13px;
  border-radius: var(--framecd3ec-radius);
  background: linear-gradient(180deg, rgba(36, 50, 64, 0.85), rgba(24, 35, 46, 0.9));
  border: 1px solid var(--framecd3ec-line-soft);
}

.framecd3ec-cat__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 11px;
}

.framecd3ec-cat__title {
  font-family: var(--framecd3ec-font-round);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--framecd3ec-heading);
}

.framecd3ec-cat__count {
  font-size: 11px;
  font-weight: 700;
  color: var(--framecd3ec-gold);
}

.framecd3ec-cat__more {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.framecd3ec-cat__morelink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(30, 144, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  color: #cfe8ff;
  white-space: nowrap;
}

.framecd3ec-cat__morelink:hover {
  background: rgba(30, 144, 255, 0.14);
  text-decoration: none;
}

/* Compact icon grid: 4 columns at 320px */
.framecd3ec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.framecd3ec-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 4px 7px;
  border-radius: var(--framecd3ec-radius-sm);
  background: rgba(16, 26, 35, 0.55);
  border: 1px solid var(--framecd3ec-line-soft);
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.framecd3ec-tile:hover {
  border-color: rgba(255, 241, 118, 0.45);
  background: rgba(65, 105, 225, 0.14);
}

.framecd3ec-tile__img {
  width: 46px;
  height: 46px;
  border-radius: var(--framecd3ec-radius-sm);
  object-fit: cover;
  transition: transform 0.18s ease; /* icon state micro-change budget */
}

.framecd3ec-tile:hover .framecd3ec-tile__img,
.framecd3ec-tile:focus-visible .framecd3ec-tile__img {
  transform: translateY(-2px) scale(1.07);
}

.framecd3ec-tile__name {
  font-size: 10px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--framecd3ec-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* Hot flag tile variant */
.framecd3ec-tile--hot {
  position: relative;
}

.framecd3ec-tile--hot::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--framecd3ec-gold);
  box-shadow: 0 0 8px rgba(255, 241, 118, 0.85);
}

/* Horizontal icon + name strips (live casino list, winners, directory) */
.framecd3ec-strips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.framecd3ec-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 7px 9px;
  border-radius: var(--framecd3ec-radius-sm);
  background: rgba(16, 26, 35, 0.55);
  border: 1px solid var(--framecd3ec-line-soft);
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.framecd3ec-strip:hover {
  border-color: rgba(255, 241, 118, 0.45);
  background: rgba(65, 105, 225, 0.14);
}

.framecd3ec-strip__img {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: var(--framecd3ec-radius-xs);
  object-fit: cover;
  transition: transform 0.18s ease;
}

.framecd3ec-strip:hover .framecd3ec-strip__img {
  transform: scale(1.08);
}

.framecd3ec-strip__body {
  min-width: 0;
}

.framecd3ec-strip__name {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--framecd3ec-heading);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.framecd3ec-strip__meta {
  display: block;
  font-size: 10px;
  color: var(--framecd3ec-text-dim);
  line-height: 1.35;
}

/* ==========================================================================
   Content modules
   ========================================================================== */
.framecd3ec-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.framecd3ec-stylecard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 10px;
  border-radius: var(--framecd3ec-radius-sm);
  background: rgba(36, 50, 64, 0.65);
  border: 1px solid var(--framecd3ec-line-soft);
}

.framecd3ec-stylecard__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.framecd3ec-stylecard__img {
  width: 34px;
  height: 34px;
  border-radius: var(--framecd3ec-radius-xs);
  object-fit: cover;
}

.framecd3ec-stylecard__title {
  font-family: var(--framecd3ec-font-round);
  font-size: 13px;
  font-weight: 800;
  color: var(--framecd3ec-heading);
  line-height: 1.25;
}

.framecd3ec-stylecard p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--framecd3ec-text);
}

/* Winner feed */
.framecd3ec-wboard {
  border-radius: var(--framecd3ec-radius);
  border: 1px solid var(--framecd3ec-line-soft);
  background: linear-gradient(180deg, rgba(0, 0, 128, 0.28), rgba(16, 26, 35, 0.6));
  padding: 12px 11px;
}

.framecd3ec-wrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 4px;
  border-bottom: 1px dashed var(--framecd3ec-line-soft);
}

.framecd3ec-wrow:last-of-type {
  border-bottom: 0;
}

.framecd3ec-wrow__img {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 241, 118, 0.55);
}

.framecd3ec-wrow__txt {
  min-width: 0;
  flex: 1;
}

.framecd3ec-wrow__who {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--framecd3ec-heading);
}

.framecd3ec-wrow__game {
  display: block;
  font-size: 10.5px;
  color: var(--framecd3ec-text-dim);
}

.framecd3ec-wrow__prize {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--framecd3ec-gold);
  white-space: nowrap;
}

.framecd3ec-wboard__note {
  margin: 8px 2px 0;
  font-size: 10.5px;
  color: var(--framecd3ec-text-dim);
}

/* Question-driven guide list */
.framecd3ec-qlist li {
  position: relative;
  margin-bottom: 9px;
  padding: 10px 11px 10px 38px;
  border-radius: var(--framecd3ec-radius-sm);
  background: rgba(36, 50, 64, 0.6);
  border: 1px solid var(--framecd3ec-line-soft);
}

.framecd3ec-qlist li::before {
  counter-increment: framecd3ec-step;
  content: counter(framecd3ec-step);
  position: absolute;
  left: 10px;
  top: 11px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--framecd3ec-royal);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.framecd3ec-qlist {
  counter-reset: framecd3ec-step;
}

.framecd3ec-qlist b {
  color: var(--framecd3ec-heading);
}

.framecd3ec-qlist p {
  margin: 3px 0 0;
  font-size: 12.5px;
}

/* Security checkpoints */
.framecd3ec-checks li {
  position: relative;
  padding: 9px 10px 9px 34px;
  margin-bottom: 8px;
  border-radius: var(--framecd3ec-radius-sm);
  background: rgba(16, 26, 35, 0.5);
  border: 1px solid var(--framecd3ec-line-soft);
  font-size: 12.5px;
}

.framecd3ec-checks li::before {
  content: "✓";
  position: absolute;
  left: 9px;
  top: 9px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(30, 144, 255, 0.18);
  border: 1px solid rgba(30, 144, 255, 0.6);
  color: var(--framecd3ec-sky);
  font-size: 11px;
  font-weight: 800;
}

/* Pros and limits split */
.framecd3ec-procon {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.framecd3ec-procon__col {
  padding: 12px 11px;
  border-radius: var(--framecd3ec-radius-sm);
  border: 1px solid var(--framecd3ec-line-soft);
}

.framecd3ec-procon__col--good {
  background: linear-gradient(180deg, rgba(65, 105, 225, 0.2), rgba(16, 26, 35, 0.4));
}

.framecd3ec-procon__col--bad {
  background: linear-gradient(180deg, rgba(204, 204, 204, 0.09), rgba(16, 26, 35, 0.4));
}

.framecd3ec-procon__head {
  font-family: var(--framecd3ec-font-round);
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 7px;
  color: var(--framecd3ec-heading);
}

.framecd3ec-procon__col--good .framecd3ec-procon__head {
  color: var(--framecd3ec-gold);
}

.framecd3ec-procon__col li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.5;
}

.framecd3ec-procon__col--good li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--framecd3ec-gold);
  font-weight: 800;
}

.framecd3ec-procon__col--bad li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--framecd3ec-text-dim);
  font-weight: 800;
}

/* Inline promo text link */
.framecd3ec-promotxt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 2px 4px;
  color: var(--framecd3ec-gold);
  font-weight: 700;
  border-bottom: 1px dashed rgba(255, 241, 118, 0.55);
}

.framecd3ec-promotxt:hover {
  text-decoration: none;
  color: #fff3b8;
}

/* ==========================================================================
   Homepage extended footer: brand > promotions > directory > disclaimer
   ========================================================================== */
.framecd3ec-xfooter {
  margin-top: 26px;
  padding: 15px 12px 12px;
  border-radius: var(--framecd3ec-radius) var(--framecd3ec-radius) 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 128, 0.4), rgba(13, 21, 29, 0.96));
  border: 1px solid var(--framecd3ec-line-soft);
  border-bottom: 0;
}

.framecd3ec-xfooter__brand {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.framecd3ec-xfooter__logo {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 241, 118, 0.4);
}

.framecd3ec-xfooter__brandtext {
  font-size: 12.5px;
  color: var(--framecd3ec-text);
  margin: 0;
}

.framecd3ec-promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.framecd3ec-promos .framecd3ec-btn {
  font-size: 12px;
  padding: 9px 10px;
  line-height: 1.3;
}

.framecd3ec-promos .framecd3ec-btn--wide {
  grid-column: 1 / -1;
}

.framecd3ec-dir {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px dashed var(--framecd3ec-line);
}

.framecd3ec-dir__title {
  font-family: var(--framecd3ec-font-round);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--framecd3ec-heading);
  margin-bottom: 9px;
}

.framecd3ec-dir__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
}

.framecd3ec-dir__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 3px 0 3px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--framecd3ec-text);
  line-height: 1.3;
}

.framecd3ec-dir__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--framecd3ec-sky);
}

.framecd3ec-dir__link:hover {
  color: var(--framecd3ec-gold);
}

.framecd3ec-disclaimer {
  margin-top: 13px;
  padding: 10px 11px;
  border-radius: var(--framecd3ec-radius-sm);
  background: rgba(204, 204, 204, 0.06);
  border: 1px solid var(--framecd3ec-line-soft);
  font-size: 11px;
  color: var(--framecd3ec-text-dim);
  line-height: 1.55;
}

/* Common legal line (2026 only) */
.framecd3ec-legal {
  padding: 14px 12px 10px;
  text-align: center;
  font-size: 11px;
  color: var(--framecd3ec-text-dim);
  background: rgba(13, 21, 29, 0.96);
}

/* ==========================================================================
   Fixed compact icon dock (5 roles)
   ========================================================================== */
.framecd3ec-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: var(--framecd3ec-dock-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(180deg, rgba(16, 26, 35, 0.97), rgba(9, 15, 22, 0.99));
  border-top: 1px solid var(--framecd3ec-line);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.framecd3ec-dock__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--framecd3ec-dock-h);
  padding: 8px 2px 7px;
  color: var(--framecd3ec-text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.framecd3ec-dock__item svg {
  width: 22px;
  height: 22px;
  display: block;
}

.framecd3ec-dock__item:hover {
  color: var(--framecd3ec-text);
  text-decoration: none;
}

/* Active role: top indicator line + short vertical lift */
.framecd3ec-dock__item--on {
  color: var(--framecd3ec-gold);
  transform: translateY(-2px);
}

.framecd3ec-dock__item--on::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--framecd3ec-gold);
  box-shadow: 0 2px 8px rgba(255, 241, 118, 0.5);
}

.framecd3ec-dock__item--promo {
  color: #9fc9f2;
}

.framecd3ec-dock__item--promo:hover {
  color: #c9e4ff;
}

/* Scroll lock while the menu overlay is open */
.framecd3ec-noscroll {
  overflow: hidden;
}

/* ==========================================================================
   Breakpoints — 320px base, 375px refinements, 430px wide-phone grid
   ========================================================================== */
@media (min-width: 375px) {
  .framecd3ec-tile__img {
    width: 50px;
    height: 50px;
  }

  .framecd3ec-tile__name {
    font-size: 10.5px;
  }

  .framecd3ec-title {
    font-size: 24px;
  }

  .framecd3ec-h2 {
    font-size: 20px;
  }

  .framecd3ec-hero__head {
    font-size: 17px;
  }
}

@media (min-width: 430px) {
  .framecd3ec-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)); /* 5-column game grid */
  }

  .framecd3ec-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .framecd3ec-title {
    font-size: 25px;
  }

  .framecd3ec-h2 {
    font-size: 21px;
  }

  .framecd3ec-hero__img {
    aspect-ratio: 21 / 9;
  }

  .framecd3ec-tile__name {
    font-size: 11px;
  }

  .framecd3ec-strip__name {
    font-size: 12px;
  }
}

/* Respect users who prefer calmer motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
