.game-type-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.game-type-filters button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-weight: 700;
  transition: all var(--transition);
}

.game-type-filters button.active {
  color: #fff;
  background: var(--brand-600);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(88, 100, 220, .2);
}

.game-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: flex-start;
  gap: 12px;
  overflow: visible;
  padding: 2px 2px 18px;
}

.game-tabs button {
  width: 100%;
  min-width: 0;
  height: 82px;
  justify-content: flex-start;
  padding: 12px 14px;
  border: 1px solid rgba(103, 117, 220, .12);
  background: rgba(255, 255, 255, .88);
  color: var(--text);
  text-align: left;
}

.game-tabs button.active {
  color: var(--text);
  background: linear-gradient(145deg, #fff, var(--brand-50));
  border-color: var(--brand-300);
  box-shadow: 0 12px 28px rgba(88, 100, 220, .14);
}

.game-tabs button.unavailable {
  opacity: .62;
  filter: saturate(.5);
}

.game-tabs button.unavailable.active {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.game-tab-icon {
  width: 60px;
  height: 48px;
  flex: 0 0 60px;
  object-fit: contain;
}

.venue-tab-copy {
  display: block;
  min-width: 0;
}

.venue-tab-copy b,
.venue-tab-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-tab-copy b {
  font-size: 14px;
  color: var(--text);
}

.venue-tab-copy small {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 500;
}

.member-chip-avatar {
  object-fit: cover;
  object-position: center;
}

.mobile-app-banner,
.mobile-account-strip {
  display: none;
}

@media (max-width: 680px) {
  body {
    background: #f1f5fc;
  }

  .mobile-app-banner {
    display: grid;
    grid-template-columns: 26px 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 54px;
    padding: 6px 11px 6px 5px;
    background: linear-gradient(90deg, #eef4ff, #f4f1ff);
    border-bottom: 1px solid rgba(98, 113, 210, .12);
  }

  .mobile-app-banner[hidden] {
    display: none;
  }

  .mobile-app-banner-close {
    width: 26px;
    height: 32px;
    padding: 0;
    background: transparent;
    color: var(--text-faint);
    font-size: 20px;
  }

  .mobile-app-banner > img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(80, 92, 190, .16);
  }

  .mobile-app-banner span,
  .mobile-app-banner b,
  .mobile-app-banner small {
    display: block;
    min-width: 0;
  }

  .mobile-app-banner b {
    font-size: 12px;
  }

  .mobile-app-banner small {
    margin-top: 2px;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-app-banner > a {
    padding: 8px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
    color: #fff;
    font-size: 11px;
    box-shadow: 0 7px 16px rgba(88, 100, 220, .2);
  }

  .header-inner {
    min-height: 58px;
  }

  .brand {
    width: 132px;
  }

  .hero-slider {
    height: 188px;
    border-radius: 17px;
  }

  .hero-content {
    width: 62%;
    justify-content: center;
    padding: 18px 0 18px 18px;
  }

  .hero-content h1 {
    max-width: 210px;
    margin-block: 6px 9px;
    font-size: 23px;
  }

  .hero-content p {
    display: none;
  }

  .hero-kicker {font-size: 9px}
  .hero-brand-logo {width: 128px;margin-bottom: 2px}
  .hero-buttons {gap: 7px}

  .hero-buttons .large {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .hero-device {
    width: 62%;
    height: 102%;
    right: -7%;
    bottom: -9%;
    object-position: right bottom;
  }

  .hero-slide.worldcup .hero-content {width:72%;padding:20px 18px}
  .hero-slide.worldcup .hero-overlay {background:linear-gradient(90deg,rgba(22,33,79,.78),rgba(31,49,105,.16))}
  .hero-dots {bottom:7px}

  main {
    display: flex;
    flex-direction: column;
  }

  main > .hero {order: 1}
  main > .notice-strip {order: 2}
  main > .mobile-account-strip {order: 3}
  main > .quick-actions {order: 4}
  main > .game-section {order: 5}
  main > #live {order: 6}
  main > .download-section {order: 7}
  main > .service-section {order: 8}

  .mobile-account-strip {
    display: block;
    margin-top: 8px;
  }

  .mobile-account-strip button {
    width: 100%;
    min-height: 58px;
    padding: 10px 13px;
    border: 1px solid rgba(103, 117, 220, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .88);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    box-shadow: 0 8px 24px rgba(56, 68, 125, .06);
  }

  .mobile-account-strip span,
  .mobile-account-strip b,
  .mobile-account-strip small {display:block}
  .mobile-account-strip b {font-size:15px}
  .mobile-account-strip small {margin-top:3px;color:var(--text-soft);font-size:10px}
  .mobile-account-strip em {font-style:normal;color:var(--brand-600);font-size:11px;font-weight:700}

  .notice-strip {
    margin-top: 8px;
  }

  .quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .quick-action {
    display: flex;
    min-width: 0;
    min-height: 74px;
    padding: 8px 4px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    text-align: center;
  }

  .quick-action-icon {
    width: 34px;
    height: 34px;
  }

  .quick-action-icon img {
    width: 23px;
    height: 23px;
  }

  .quick-action b {
    align-self: center;
    font-size: 11px;
  }

  .quick-action small {
    display: none;
  }

  .content-section {
    padding-top: 44px;
  }

  .game-section {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 8px;
    padding-top: 26px;
  }

  .game-section .section-heading {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 14px;
    text-align: left;
  }

  .game-section .section-heading .section-kicker {font-size:9px}
  .game-section .section-heading h2 {margin:3px 0 4px;font-size:23px}
  .game-section .section-heading p {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  .game-type-filters {
    grid-column: 1;
    position: sticky;
    top: 70px;
    align-self: start;
    max-height: calc(100vh - 150px);
    margin: 0;
    padding: 4px;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-y: auto;
    border: 1px solid rgba(103, 117, 220, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 24px rgba(53, 65, 120, .07);
  }

  .game-type-filters button {
    width: 48px;
    height: 64px;
    flex: 0 0 64px;
    padding: 5px 2px;
    flex-direction: column;
    gap: 2px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
  }

  .game-type-filter-icon {width:26px;height:26px;object-fit:contain}
  .game-type-filter-copy,.game-type-filter-copy b,.game-type-filter-copy small {display:block}
  .game-type-filter-copy b {font-size:10px}
  .game-type-filter-copy small {font-size:8px;color:var(--text-faint)}
  .game-type-filters button.active .game-type-filter-copy small {color:rgba(255,255,255,.72)}

  .game-tabs {
    grid-column: 2;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 0 0 4px;
  }

  .game-tabs button {
    position: relative;
    height: 104px;
    min-width: 0;
    padding: 9px 7px 9px 14px;
    justify-content: space-between;
    gap: 2px;
    overflow: hidden;
    border-radius: 17px;
    background: linear-gradient(135deg,rgba(255,255,255,.96),rgba(235,241,255,.92));
    box-shadow: 0 10px 25px rgba(55, 68, 127, .07);
  }

  .game-tab-icon {
    order: 2;
    width: 112px;
    height: 98px;
    flex: 0 0 112px;
    margin: 6px -5px -10px 0;
    object-position: center bottom;
  }

  .venue-tab-copy {position:relative;z-index:1;order:1;align-self:center}

  .venue-tab-copy b {
    max-width: 120px;
    font-size: 14px;
  }

  .venue-tab-copy small {
    margin-top: 6px;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(88,100,220,.08);
    font-size: 9px;
  }

  .game-showcase {
    display: none;
  }

  .download-section {
    padding-top: 48px;
  }

  .download-visual {
    min-height: 280px;
  }

  .mobile-bottom-nav {
    grid-template-columns: repeat(4, 1fr);
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px rgba(46, 58, 108, .09);
  }

  .mobile-bottom-nav button > img,
  .mobile-bottom-nav a > img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
  }

  .mobile-bottom-nav em {font-style:normal}
}

/* v3.4 layout, venue discovery and mobile-input refinements */
body.modal-open {
  overflow: hidden;
}

.venue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.venue-scope-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px;
  border: 1px solid rgba(103, 117, 220, .11);
  border-radius: 14px;
  background: rgba(255, 255, 255, .74);
}

.venue-scope-filters button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 750;
}

.venue-scope-filters button.active {
  background: #fff;
  color: var(--brand-600);
  box-shadow: 0 5px 15px rgba(59, 72, 132, .09);
}

.venue-result-count {
  color: var(--text-faint);
  font-size: 11px;
}

.game-tabs button {
  position: relative;
}

.venue-enter {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(88, 100, 220, .08);
  color: var(--brand-600);
  font-size: 9px;
  font-weight: 800;
}

.game-tabs button.unavailable .venue-enter {
  background: #f0f2f7;
  color: var(--text-faint);
}

.game-tabs button.loading {
  pointer-events: none;
  opacity: .68;
}

.game-tabs button.loading .venue-enter {
  min-width: 54px;
  text-align: center;
}

.venue-monogram {
  display: grid;
  place-items: center;
  border: 1px solid hsl(var(--venue-hue) 62% 76% / .65);
  border-radius: 15px;
  background: linear-gradient(145deg, hsl(var(--venue-hue) 72% 96%), hsl(var(--venue-hue) 66% 88%));
  color: hsl(var(--venue-hue) 48% 36%);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.venue-empty-state {
  grid-column: 1 / -1;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, .68);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--text-soft);
  text-align: center;
}

.venue-empty-state b {
  color: var(--text);
  font-size: 14px;
}

.venue-empty-state span {
  font-size: 11px;
}

.floating-tools {
  right: max(10px, calc((100vw - var(--container)) / 2 - 68px));
  transition: width var(--transition), height var(--transition), padding var(--transition);
}

.floating-tools.collapsed {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

.floating-tools.collapsed > button:not(.floating-close) {
  display: none;
}

.floating-tools.collapsed .floating-close {
  position: static;
  width: 46px;
  height: 46px;
  min-height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--brand-600);
  font-size: 22px;
}

@media (min-width: 981px) {
  .hero-slider {
    height: 400px;
  }

  .game-section .game-showcase {
    min-height: 280px;
    grid-template-columns: minmax(0, 1fr) 370px;
    border-radius: 25px;
  }

  .game-section .game-copy {
    padding: 28px 34px;
  }

  .game-section .game-copy h2 {
    margin: 7px 0 8px;
    font-size: 31px;
  }

  .game-section .game-copy p {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .game-section .game-copy ul {
    margin-bottom: 17px;
  }

  .game-section .game-visual {
    min-height: 280px;
    padding: 8px 20px 0;
  }

  .game-section .game-visual img {
    max-height: 275px;
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  .hero-slider {
    height: 350px;
  }

  .quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .quick-action {
    min-height: 82px;
    padding: 12px;
    grid-template-columns: 42px 1fr;
    column-gap: 9px;
  }

  .quick-action-icon {
    width: 42px;
    height: 42px;
  }

  .quick-action b {font-size: 13px}
  .quick-action small {font-size: 10px}

  .game-section .game-showcase {
    min-height: 300px;
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .game-section .game-copy {
    padding: 28px 32px;
  }

  .game-section .game-copy h2 {font-size: 30px}
  .game-section .game-copy p {font-size: 13px}
  .game-section .game-visual {min-height: 300px;padding: 8px}
  .game-section .game-visual img {max-height: 290px}
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .venue-toolbar {
    grid-column: 1 / -1;
    margin-bottom: 10px;
    align-items: flex-end;
  }

  .venue-scope-filters {
    width: 100%;
    gap: 3px;
    padding: 3px;
  }

  .venue-scope-filters button {
    flex: 1;
    min-height: 36px;
    padding: 0 5px;
    font-size: 10px;
  }

  .venue-result-count {
    display: none;
  }

  .game-type-filter-copy b {font-size: 11px}
  .game-type-filter-copy small {font-size: 9px}

  .venue-enter {
    position: absolute;
    z-index: 3;
    right: 9px;
    top: 9px;
    margin: 0;
    background: rgba(255, 255, 255, .82);
  }

  .venue-monogram {
    order: 2;
    width: 92px;
    height: 84px;
    flex: 0 0 92px;
    margin: 11px -2px -8px 0;
    border-radius: 22px;
    font-size: 24px;
  }

  .venue-empty-state {
    min-height: 180px;
    padding: 18px 12px;
  }

  .mobile-bottom-nav {
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }

  .modal-mask {
    align-items: start;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .auth-modal-card {
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: auto 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 90px 220px;
    -webkit-overflow-scrolling: touch;
  }

  .auth-agreement input {
    width: 20px;
    height: 20px;
  }

  .auth-agreement span {
    font-size: 11px;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .game-section {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 6px;
  }

  .game-type-filters {
    padding: 4px;
    border-radius: 16px;
    scrollbar-width: none;
  }

  .game-type-filters::-webkit-scrollbar {
    display: none;
  }

  .game-type-filters button {
    width: 42px;
    height: 58px;
    flex-basis: 58px;
    padding: 4px 1px;
    border-radius: 12px;
  }

  .game-type-filter-icon {
    width: 23px;
    height: 23px;
  }

  .game-type-filter-copy b {font-size: 10px}
  .game-type-filter-copy small {font-size: 8px}

  .game-tabs {
    gap: 7px;
  }

  .game-tabs button {
    height: 86px;
    padding: 8px 8px 8px 12px;
    gap: 6px;
    border-radius: 15px;
  }

  .game-tab-icon:not(.venue-monogram) {
    order: 2;
    width: 72px;
    height: 66px;
    flex: 0 0 72px;
    margin: 0;
    object-fit: contain;
    object-position: center;
  }

  .venue-monogram {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    margin: 0;
    border-radius: 18px;
    font-size: 21px;
  }

  .venue-tab-copy b {
    max-width: 155px;
    font-size: 14px;
  }

  .venue-tab-copy small {
    margin-top: 4px;
    padding: 2px 6px;
    font-size: 9px;
  }

  .venue-enter {
    display: none;
  }

  .mobile-bottom-nav {
    height: calc(58px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
  }

  .mobile-bottom-nav button > img,
  .mobile-bottom-nav a > img {
    width: 22px;
    height: 22px;
  }
}

@supports not (height: 100dvh) {
  @media (max-width: 680px) {
    .auth-modal-card {max-height: calc(100vh - 20px)}
  }
}
