/* Dedicated mobile theme for Lucky Ducks */
:root {
  --mobile-shell: #f4f8ff;
  --mobile-panel: rgba(255,255,255,.98);
  --mobile-panel-strong: #ffffff;
  --mobile-line: rgba(16,33,59,.10);
  --mobile-shadow: 0 18px 36px rgba(10,30,58,.12);
  --mobile-radius: 22px;
  --mobile-gap: 1rem;
  --mobile-header-h: 72px;
  --mobile-safe-top: env(safe-area-inset-top, 0px);
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html,
body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,213,74,.18), transparent 28%),
    linear-gradient(180deg, #f9fcff 0%, var(--mobile-shell) 100%);
}

body {
  font-size: 16px;
  line-height: 1.55;
}

.page-bubbles {
  display: none !important;
}

.utility-bar {
  font-size: .78rem;
}

.utility-inner,
.utility-note,
.utility-points {
  gap: .45rem;
}

.utility-point {
  padding: .28rem .55rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4000;
  background: rgba(248,251,255,.94);
  border-bottom: 1px solid rgba(16,33,59,.08);
  box-shadow: 0 12px 28px rgba(10,30,58,.08);
  backdrop-filter: blur(16px);
}

.site-header .container.nav {
  position: relative;
  width: min(100% - 1rem, 100%);
  min-height: var(--mobile-header-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding-block: .6rem;
}

.primary-nav-desktop {
  display: none !important;
}

.brand {
  min-width: 0;
  gap: .72rem;
}

.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 18px;
  font-size: 1.2rem;
  box-shadow: 0 10px 22px rgba(255,213,75,.28);
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  font-size: 1rem;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text small {
  margin-top: .15rem;
  font-size: .67rem;
  letter-spacing: .12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ldm-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-width: 104px;
  height: 46px;
  padding: 0 1rem;
  border: 1px solid rgba(16,33,59,.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(242,247,255,.98));
  color: var(--blue-dark);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(8,18,33,.12);
}

.ldm-toggle:active {
  transform: translateY(1px);
}

.ldm-toggle[aria-expanded="true"] {
  background: linear-gradient(180deg, rgba(31,111,229,.16), rgba(31,111,229,.08));
  border-color: rgba(31,111,229,.24);
  box-shadow: 0 14px 28px rgba(31,111,229,.16);
}

.ldm-toggle-text {
  font-size: .94rem;
  line-height: 1;
}

.ldm-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.ldm-toggle-lines span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-dark);
}

.ldm-menu[hidden] {
  display: none !important;
}

.ldm-menu {
  position: fixed;
  top: calc(var(--mobile-safe-top) + var(--mobile-header-h) + .4rem);
  left: .75rem;
  right: .75rem;
  z-index: 5000;
  max-height: calc(100dvh - var(--mobile-safe-top) - var(--mobile-header-h) - 1.25rem);
  overflow: auto;
  border: 1px solid var(--mobile-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.995), rgba(247,251,255,.995));
  box-shadow: 0 24px 44px rgba(11,24,44,.22);
  padding: 1rem;
  scrollbar-width: thin;
}

.ldm-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(16,33,59,.08);
}

.ldm-menu-brand {
  display: grid;
  gap: .15rem;
}

.ldm-menu-brand strong {
  color: var(--blue-dark);
  font-size: 1rem;
  line-height: 1.15;
}

.ldm-menu-brand span {
  color: #5b799c;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}

.ldm-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(16,33,59,.10);
  border-radius: 14px;
  background: var(--mobile-panel-strong);
  color: var(--blue-dark);
  font-size: 1.4rem;
  line-height: 1;
}

.ldm-menu-body {
  display: grid;
  gap: .95rem;
}

.ldm-group {
  display: grid;
  gap: .5rem;
}

.ldm-group + .ldm-group {
  padding-top: .85rem;
  border-top: 1px solid rgba(16,33,59,.07);
}

.ldm-label {
  padding: 0 .25rem;
  color: #5b799c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ldm-link,
.ldm-button,
.ldm-group .button,
.ldm-group .button-full {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 50px;
  padding: .85rem .95rem;
  border-radius: 18px;
  text-decoration: none;
}

.ldm-link,
.ldm-button {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(16,33,59,.08);
  color: var(--blue-dark);
  font-weight: 700;
}

.ldm-link.active,
.ldm-button:hover,
.ldm-link:hover {
  background: rgba(31,111,229,.08);
  border-color: rgba(31,111,229,.20);
}

.ldm-form {
  margin: 0;
}

.ldm-button {
  cursor: pointer;
  text-align: left;
}

body.ldm-open {
  overflow: hidden;
}

main {
  padding-top: .75rem;
}

.container,
body.is-admin .container {
  width: min(100% - 1rem, 100%);
}

.page-section,
.builder-section {
  margin-top: 1rem;
}

.hero,
.card-grid,
.how-grid,
.dashboard-grid,
.detail-grid,
.footer-grid,
.form-grid,
.list-grid,
.studio-top-grid,
.builder-feature-grid,
.builder-gallery,
.builder-stats,
.builder-split,
.trust-strip,
.conditions-grid,
.games-detail-grid,
.games-grid {
  grid-template-columns: 1fr !important;
}

.hero {
  gap: 1rem;
  padding: 1rem;
  border-radius: 26px;
}

.hero h1 {
  max-width: none;
  font-size: clamp(2rem, 10vw, 3rem);
}

.hero-copy {
  max-width: none;
  font-size: .98rem;
}

.hero-card,
.panel,
.card-body,
.builder-section,
.studio-section-card,
.table-wrap {
  padding: 1rem;
  border-radius: 22px;
}

.card,
.panel,
.builder-section,
.table-wrap {
  border-radius: 22px;
}

.card img,
.detail-image {
  height: 220px;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  min-width: 640px;
}

.section-head,
.actions,
.stats,
.pill-row,
.meta-row,
.card-topline,
.account-strip,
.bundle-row {
  flex-direction: column;
  align-items: stretch;
}

.section-head {
  gap: .6rem;
}

.actions > *,
.section-head > *,
.stats > *,
.pill-row > * {
  width: 100%;
}

.button,
.button-light,
.button-sm {
  min-height: 46px;
}

.button-full {
  width: 100%;
}

.form-grid > *,
.dashboard-grid > *,
.detail-grid > *,
.footer-grid > *,
.list-grid > *,
.builder-feature-grid > *,
.builder-gallery > *,
.trust-strip > *,
.conditions-grid > * {
  min-width: 0;
}

input,
select,
textarea {
  font-size: 16px;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 calc(2rem + var(--mobile-safe-bottom));
}

.site-footer .container {
  width: min(100% - 1rem, 100%);
}

.site-footer .container,
.site-footer .footer-grid {
  gap: 1rem;
}

.site-footer-bottom {
  display: grid;
  gap: .75rem;
}

.pagination-wrap nav > div,
.pagination-wrap .hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between {
  flex-direction: column;
  align-items: stretch;
}

.pagination-wrap a,
.pagination-wrap span[aria-current="page"] span,
.pagination-wrap span:not([aria-current]) > span {
  width: 100%;
}

.duckcade-shell,
.duckcade-stage,
.game-shell,
.game-card {
  border-radius: 22px;
}

@supports (padding: max(0px)) {
  .site-header .container.nav {
    padding-top: max(.6rem, var(--mobile-safe-top));
  }
}

.simple-home-hero {
  display: block !important;
  padding: 1rem !important;
}

.simple-home-hero__content {
  max-width: none;
}

.simple-home-hero h1 {
  max-width: none;
}

.simple-home-hero__actions,
.simple-home-hero__stats {
  width: 100%;
}


/* v26x site studio shell polish */
.brand-logo-image{display:inline-flex;align-items:center;justify-content:center;min-width:3rem;min-height:3rem;padding:.35rem .55rem;border-radius:1rem;background:rgba(255,255,255,.96);box-shadow:0 10px 24px rgba(8,18,33,.10);border:1px solid rgba(16,33,59,.08)}
.brand-logo-image img{display:block;max-height:42px;max-width:140px;width:auto;height:auto;object-fit:contain}
.footer-brand-lockup{margin-bottom:.85rem}
.footer-logo-image{display:block;max-height:42px;max-width:180px;width:auto;height:auto;object-fit:contain;border-radius:.75rem;background:rgba(255,255,255,.08);padding:.35rem .5rem}
.footer-meta-stack{display:grid;gap:.25rem;margin-top:.9rem;color:#dbe9ff;font-size:.92rem;line-height:1.55}
.footer-social-block{margin-top:1rem;padding-top:.85rem;border-top:1px solid rgba(255,255,255,.12)}
.footer-social-links{display:flex;flex-wrap:wrap;gap:.55rem .75rem}
.footer-social-links a{display:inline-flex;margin:0}
.studio-subgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.studio-subpanel{height:100%}
@media (max-width: 860px){.studio-subgrid{grid-template-columns:1fr}.brand-logo-image{min-width:2.7rem;min-height:2.7rem;padding:.3rem .45rem}.brand-logo-image img{max-height:34px;max-width:112px}.ldm-brand-image{max-height:28px;max-width:120px;width:auto;height:auto;object-fit:contain;display:block;margin-bottom:.35rem}}
