
:root {
  --page: #202129;
  --header: #1e2028;
  --panel: #242630;
  --panel2: #22242d;
  --border: #2d303b;
  --text: #f6f6f8;
  --muted: #b7b8c0;
  --green: #43dc32;
  --purple: #8054f3;
  --sidebar: 174px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Poppins, Arial, sans-serif;
  font-size: 13px;
  overflow-x: hidden
}

button {
  font: inherit;
  cursor: pointer
}

.topbar {
  height: 54px;
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  background: var(--header);
  border-bottom: 1px solid #2c2e38;
  display: flex;
  align-items: center
}

.menu-button {
  position: absolute;
  left: 21px;
  top: 9px;
  width: 32px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #343743;
  background: #282b35;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px
}

.menu-button span {
  width: 15px;
  height: 1.5px;
  background: #d6d7dc;
  border-radius: 2px
}

.logo {
  position: absolute;
  left: 228px;
  top: 8px;
  width: 90px;
  height: 37px;
  display: flex;
  align-items: center
}

.logo img,
.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen
}

.account-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 34px
}

.account-actions button {
  height: 37px;
  border: 0;
  border-radius: 9px;
  padding: 0 16px;
  font-size: 12px
}

.sign-in {
  background: #8054f3;
  color: white
}

.sign-up {
  background: #35d42d;
  color: #071006
}

.language {
  margin-left: 1px;
  background: #252833;
  color: #fff;
  min-width: 68px
}

.language span {
  margin-left: 6px;
  color: #bbb
}

.sidebar {
  position: fixed;
  z-index: 30;
  top: 54px;
  left: 0;
  width: var(--sidebar);
  height: 643px;
  background: #242630;
  border-right: 1px solid #2e303b
}

.sidebar nav {
  display: flex;
  flex-direction: column
}

.sidebar nav a {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  color: #c7c8cf;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap
}

.sidebar nav a:hover {
  background: #2b2e39
}

.sidebar nav i {
  font-style: normal;
  color: #65e879;
  font-size: 18px;
  width: 16px;
  text-align: center;
  font-weight: 800
}

.separator {
  height: 1px;
  background: #30323c;
  margin: 5px 0
}

.content {
  width: min(879px, calc(100vw - 401px));
  margin: 90px 0 0 205px
}

.hero {
  height: auto;
  aspect-ratio: 16 / 5;
  min-height: 190px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #16182e
}

.hero-track {
  height: 100%;
  display: flex;
  transition: transform .5s ease
}

.hero-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden
}

.hero-slide picture,
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%
}

.hero-slide img {
  object-fit: contain;
  object-position: center;
  background: #10131d;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px
}

.hero-dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #777985
}

.hero-dots button.active {
  background: white
}

.games-section {
  margin-top: 16px
}

.section-heading {
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.section-heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px
}

.flame {
  font-size: 20px
}

.controls {
  display: flex;
  gap: 7px
}

.controls button {
  height: 42px;
  min-width: 42px;
  border: 1px solid var(--border);
  background: #22252e;
  color: #c8c9d0;
  border-radius: 9px;
  font-size: 24px;
  line-height: 1
}

.controls .see-all {
  font-size: 12px;
  padding: 0 16px;
  min-width: 76px
}

.rail-frame {
  height: 215px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  overflow: hidden
}

.game-rail {
  height: 100%;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab
}

.game-rail::-webkit-scrollbar {
  display: none
}

.game {
  flex: 0 0 160px;
  height: 185px;
  background: #242630;
  border-radius: 9px;
  overflow: hidden
}

.art {
  height: 166px;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #171922
}

.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.tag {
  position: absolute;
  left: -3px;
  top: 8px;
  padding: 3px 8px 3px 5px;
  border-radius: 3px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  transform: rotate(-25deg);
  box-shadow: 0 1px 3px #0007
}

.tag.hot {
  background: #ff623e
}

.tag.new {
  background: #f12f3c
}

.game h3 {
  font-size: 10px;
  line-height: 1.25;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 7px 6px 0
}

.game p {
  font-size: 9px;
  color: #a9abb4;
  margin: 3px 6px 0
}

.new-games {
  margin-top: 58px
}

.new-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ed2635;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 7px;
  font-weight: 800
}

.promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 64px;
  margin-bottom: 60px
}

.promo {
  height: 86px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #22242d;
  display: flex;
  align-items: center;
  padding: 0 15px 0 23px;
  gap: 17px;
  min-width: 0
}

.promo-emoji {
  width: 52px;
  flex: 0 0 52px;
  font-size: 42px;
  text-align: center;
  line-height: 1
}

.promo-text {
  flex: 1;
  min-width: 0
}

.promo-text h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 3px
}

.promo-text p {
  font-size: 12px;
  color: #c0c1c9;
  line-height: 1.45;
  margin: 0
}

.promo>button {
  height: 40px;
  min-width: 78px;
  border: 0;
  border-radius: 8px;
  background: var(--purple);
  color: white;
  font-size: 12px
}

.footer {
  border-top: 1px solid #2d303a;
  background: #202129
}

.footer-inner {
  width: min(879px, calc(100vw - 401px));
  margin: 0 0 0 205px;
  min-height: 250px;
  padding: 42px 0 25px;
  display: grid;
  grid-template-columns: 1.5fr .8fr 1.05fr .75fr 1.65fr;
  gap: 20px
}

.footer-logo {
  width: 100px;
  align-self: start;
  margin-top: 0
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 400;
  color: #777984;
  margin: 0 0 2px;
  white-space: nowrap
}

.footer-col a {
  font-size: 12px;
  color: #c6c7ce;
  text-decoration: none;
  line-height: 1.35
}

.licenses picture {
  display: block
}

.licenses img {
  width: 100%;
  max-width: 245px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left top
}

.copyright {
  height: 56px;
  border-top: 1px solid #2d303a;
  display: grid;
  place-items: center;
  color: #777984;
  font-size: 11px
}

.mobile-nav {
  display: none
}

.chat {
  position: fixed;
  z-index: 60;
  right: 12px;
  bottom: 14px;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: #0869ee;
  color: #fff;
  font-size: 25px;
  box-shadow: 0 3px 10px #0005
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0009;
  align-items: center;
  justify-content: center;
  padding: 20px
}

.modal-backdrop.open {
  display: flex
}

.modal {
  width: min(360px, 100%);
  background: #292c37;
  border: 1px solid #414452;
  border-radius: 14px;
  padding: 28px;
  position: relative;
  text-align: center;
  box-shadow: 0 15px 50px #0008
}

.modal h2 {
  font-size: 20px;
  margin: 0 0 10px
}

.modal p {
  font-size: 13px;
  color: #c6c8d0;
  line-height: 1.6
}

.close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: none;
  color: #ddd;
  font-size: 25px
}

.modal-ok {
  background: var(--purple);
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 10px 20px
}

@media(max-width:700px) {
  :root {
    --sidebar: 0px
  }

  .topbar {
    height: 62px
  }

  .menu-button,
  .sidebar {
    display: none
  }

  .logo {
    left: 29px;
    top: 14px;
    width: 55px;
    height: 34px
  }

  .account-actions {
    padding-right: 16px;
    gap: 8px
  }

  .account-actions button {
    height: 41px;
    padding: 0 14px;
    font-size: 12px;
    border-radius: 9px
  }

  .language {
    display: none
  }

  .content {
    width: auto;
    margin: 76px 13px 0;
    position: static
  }

  .hero {
    height: auto;
    aspect-ratio: 334/196;
    border-radius: 14px
  }

  .hero-slide img {
    object-fit: cover
  }

  .hero-dots {
    bottom: 19px;
    gap: 8px
  }

  .hero-dots button {
    width: 8px;
    height: 8px
  }

  .games-section {
    margin-top: 9px
  }

  .section-heading {
    height: 63px
  }

  .section-heading h2 {
    font-size: 15px;
    gap: 9px
  }

  .flame {
    font-size: 19px
  }

  .controls {
    gap: 6px
  }

  .controls button {
    height: 43px;
    min-width: 44px;
    border-radius: 9px;
    font-size: 23px
  }

  .controls .see-all {
    min-width: 65px;
    padding: 0 11px;
    font-size: 12px
  }

  .rail-frame {
    height: 195px;
    padding: 7px;
    border-radius: 11px
  }

  .game-rail {
    gap: 9px
  }

  .game {
    flex-basis: 139px;
    height: 178px;
    border-radius: 8px
  }

  .art {
    height: 139px;
    border-radius: 6px
  }

  .game h3 {
    font-size: 10px;
    margin: 7px 7px 0
  }

  .game p {
    font-size: 10px;
    margin: 3px 7px 0
  }

  .tag {
    top: 7px;
    font-size: 9px
  }

  .new-games {
    margin-top: 32px
  }

  .new-games .section-heading {
    height: 59px
  }

  .new-dot {
    width: 19px;
    height: 19px;
    font-size: 7px
  }

  .promos {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 37px;
    margin-bottom: 48px
  }

  .promo {
    height: 295px;
    border: 2px solid #2c2f39;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 23px 9px 17px;
    gap: 0
  }

  .promo-emoji {
    height: 70px;
    width: auto;
    flex: none;
    font-size: 42px
  }

  .promo-text {
    flex: 1;
    text-align: center
  }

  .promo-text h3 {
    font-size: 15px;
    margin: 4px 0 18px;
    white-space: nowrap
  }

  .promo-text p {
    font-size: 12px;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 145px
  }

  .promo>button {
    height: 40px;
    min-width: 68px;
    margin-top: 4px
  }

  .footer-inner {
    width: auto;
    margin: 0;
    min-height: 0;
    padding: 22px 12px 29px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 44px
  }

  .footer-logo {
    grid-column: 1/-1;
    width: 65px;
    margin: 0 0 8px 17px
  }

  .footer-col {
    gap: 13px
  }

  .footer-col h4 {
    font-size: 11px;
    line-height: 1.45;
    white-space: normal;
    margin: 0
  }

  .footer-col a {
    font-size: 12px;
    line-height: 1.35
  }

  .licenses {
    grid-column: 2;
    grid-row: 3
  }

  .licenses img {
    width: 165px;
    max-width: 100%;
    margin-top: 0
  }

  .copyright {
    height: 88px;
    font-size: 12px
  }

  .mobile-nav {
    position: fixed;
    z-index: 55;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: #252832f5;
    border-top: 1px solid #343742;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 2px
  }

  .mobile-nav a {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #c7c8d0;
    text-decoration: none;
    font-size: 11px
  }

  .mobile-nav a span {
    font-size: 19px;
    font-weight: 700;
    line-height: 1
  }

  .mobile-nav a.active {
    color: #fff
  }

  .chat {
    right: 10px;
    bottom: 78px;
    width: 48px;
    height: 48px;
    font-size: 22px
  }
}

@media(min-width:701px) and (max-width:1050px) {

  .content,
  .footer-inner {
    width: calc(100vw - 220px);
    margin-left: 195px
  }

  .game {
    flex-basis: 145px
  }

  .footer-inner {
    gap: 12px
  }

  .footer-col h4 {
    white-space: normal
  }
}

.sidebar.sidebar-open {
  display: block !important;
  box-shadow: 8px 0 24px #0007
}

.game-rail.dragging {
  cursor: grabbing;
  user-select: none
}

.second-slide img {
  object-position: center
}


/* ===== Professional desktop layout refinement ===== */
@media (min-width:701px) {
  .content {
    width: min(1800px, calc(100vw - 401px));
    margin: 90px 0 0 205px;
  }

  .hero {
    height: auto;
    aspect-ratio: 2.78 / 1;
    max-height: 560px;
    min-height: 315px;
  }

  .hero-slide img {
    object-fit: cover
  }

  .games-section {
    margin-top: 20px
  }

  .section-heading {
    height: 64px
  }

  .rail-frame {
    height: clamp(218px, calc(12vw + 65px), 285px);
    padding: 9px;
  }

  .game-rail {
    gap: 14px
  }

  .game {

    flex-basis: clamp(160px, calc((100vw - 700px)/6), 240px);
    height: auto;
    align-self: stretch;
  }

  .art {
    height: auto;
    aspect-ratio: 1 / 1
  }

  .game h3 {
    font-size: 11px;
    margin: 8px 8px 0
  }

  .game p {
    font-size: 10px;
    margin: 4px 8px 0
  }

  .new-games {
    margin-top: 30px
  }

  .new-games .section-heading {
    height: 64px
  }

  .promos {
    margin-top: 38px;
    margin-bottom: 58px;
    gap: 16px
  }

  .promo {
    height: 92px
  }

  .promo-text h3 {
    font-size: 17px
  }

  .promo-text p {
    font-size: 12px
  }

  .footer-inner {
    width: min(1700px, calc(100vw - 300px));
    margin: 0 auto;
    min-height: 250px;
    grid-template-columns: 1.5fr .75fr 1.15fr .75fr 1.6fr;
    gap: 32px;
    padding: 42px 0 30px;
  }

  .footer-logo {
    width: 112px
  }

  .licenses img {
    max-width: 320px
  }
}

@media (min-width:1600px) {
  .content {
    width: min(1800px, calc(100vw - 401px))
  }

  .hero {
    max-height: 600px
  }

  .game {
    flex-basis: clamp(190px, 12vw, 250px)
  }

  .rail-frame {
    height: clamp(255px, 13vw, 310px)
  }

  .art {
    height: auto
  }
}

@media (max-width:700px) {
  .content {
    width: auto;
    margin: 76px 13px 0
  }

  .hero {
    aspect-ratio: 334/196;
    max-height: none;
    min-height: 0
  }

  .games-section {
    margin-top: 9px
  }

  .section-heading {
    height: 63px
  }

  .rail-frame {
    height: 195px;
    padding: 7px
  }

  .game {
    flex: 0 0 139px;
    height: 178px
  }

  .art {
    height: 139px;
    aspect-ratio: auto
  }

  .new-games {
    margin-top: 32px
  }

  .new-games .section-heading {
    height: 59px
  }

  .promos {
    margin-top: 37px;
    margin-bottom: 48px
  }

  .footer-inner {
    width: auto;
    margin: 0
  }

  .licenses img {
    width: 165px
  }
}

/* Better visual finish */
.logo img,
.footer-logo img {
  mix-blend-mode: normal;
  object-fit: contain
}

.logo img {
  filter: drop-shadow(0 1px 1px #0005)
}

.menu-button:hover,
.controls button:hover {
  background: #303440;
  border-color: #444958
}

.sign-in,
.sign-up,
.promo>button,
.modal-ok {
  transition: filter .18s ease, transform .18s ease
}

.sign-in:hover,
.sign-up:hover,
.promo>button:hover,
.modal-ok:hover {
  filter: brightness(1.1);
  transform: translateY(-1px)
}

.game {
  transition: transform .18s ease, box-shadow .18s ease
}

.game:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px #0003
}

.game-rail.dragging {
  cursor: grabbing;
  user-select: none
}

.game-rail {
  scroll-snap-type: x proximity
}

.game {
  scroll-snap-align: start
}


/* ===== Sidebar, responsive menu and authentication overlays ===== */
.sidebar {
  height: calc(100dvh - 54px);
  min-height: 0;
  overflow-y: auto;
  transition: transform .24s ease, width .24s ease;
  z-index: 70;
}

.sidebar.sidebar-open {
  transform: translateX(0)
}

.sidebar nav {
  padding-bottom: 24px
}

.sidebar-backdrop {
  display: none
}

body.sidebar-hidden .sidebar {
  transform: translateX(-100%)
}

body.sidebar-hidden .content {
  margin-left: 30px;
  width: calc(100vw - 60px)
}

body.sidebar-hidden .footer-inner {
  width: calc(100vw - 90px)
}

body.sidebar-hidden .logo {
  left: 78px
}

body.mobile-sidebar-open {
  overflow: hidden
}

.mobile-nav a#mobileMenuToggle {
  cursor: pointer
}

.mobile-nav a#mobileMenuToggle[aria-expanded="true"] {
  color: #fff
}

.auth-backdrop,
.notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .66);
  backdrop-filter: blur(2px);
}

.auth-backdrop.open,
.notice-backdrop.open {
  display: flex
}

.auth-modal {
  width: min(500px, 100%);
  max-height: min(90dvh, 900px);
  overflow: auto;
  background: #1b1e25;
  border: 1px solid #2b303a;
  border-radius: 13px;
  box-shadow: 0 24px 80px #0009;
  color: #f5f6f8;
}

.auth-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 20px 17px;
  border-bottom: 1px solid #2d323c;
  position: sticky;
  top: 0;
  background: #1b1e25;
  z-index: 2;
}

.auth-head h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 5px
}

.auth-head p {
  font-size: 13px;
  color: #c1c4cc;
  margin: 0
}

.auth-head p button,
.forgot-row button {
  border: 0;
  background: none;
  padding: 0;
  color: #65e85c;
  font: inherit;
  cursor: pointer;
}

.auth-close {
  border: 0;
  background: transparent;
  color: #bfc3cb;
  font-size: 29px;
  line-height: 1;
  padding: 0 0 0 12px;
  cursor: pointer;
}

.auth-form {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 17px
}

.auth-form[hidden] {
  display: none
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #c9cbd2;
  font-size: 13px
}

.auth-form label em {
  font-style: normal;
  color: #65e85c
}

.auth-input {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #303541;
  border-radius: 6px;
  background: #1e2129;
  padding: 0 12px;
  color: #bfc3cb;
}

.auth-input:focus-within {
  border-color: #686f80;
  box-shadow: 0 0 0 2px #777d891c
}

.auth-input input,
.auth-input select {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f0f1f4;
  font: inherit;
  font-size: 13px;
}

.auth-input input::placeholder {
  color: #9ca2af
}

.auth-input select {
  appearance: none;
  cursor: pointer
}

.auth-input select option {
  background: #1e2129
}

.auth-input>span:first-child {
  font-size: 15px;
  min-width: 12px
}

.toggle-password {
  border: 0;
  background: none;
  color: #b9bec8;
  font-size: 16px;
  padding: 3px
}

.field-error {
  display: none;
  color: #ff514e;
  font-size: 11px;
  margin-top: -2px
}

.auth-form label.invalid .auth-input {
  border-color: #e34b4b
}

.auth-form label.invalid .field-error {
  display: block
}

.forgot-row {
  text-align: center;
  color: #c4c6cd;
  font-size: 12px;
  margin-top: -5px
}

.forgot-row button {
  text-decoration: underline;
  color: #67e65d
}

.auth-submit {
  min-height: 43px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #67e64f, #32c91e);
  color: #071006;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.auth-submit:hover {
  filter: brightness(1.08)
}

.auth-feedback {
  font-size: 12px;
  color: #7ce66e;
  min-height: 0;
  margin: 0;
  text-align: center
}

.auth-feedback:empty {
  display: none
}

.register-form {
  gap: 14px
}

.phone-row {
  display: flex;
  gap: 8px
}

.phone-row .auth-input {
  flex: 1
}

.country-code {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #242832;
  border: 1px solid #303541;
  border-radius: 6px;
  color: #d5d7dd;
  white-space: nowrap;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 1px
}

.auth-cancel {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #343a46;
  border-radius: 8px;
  background: #252a34;
  color: #e1e3e8;
  font: inherit;
}

.auth-actions .auth-submit {
  padding: 0 17px
}

.notice-modal {
  position: relative;
  width: min(390px, 100%);
  padding: 28px;
  border-radius: 13px;
  background: #1b1e25;
  border: 1px solid #303541;
  color: #f4f5f7;
  text-align: center;
}

.notice-modal h3 {
  margin: 0 0 12px;
  font-size: 18px
}

.notice-modal p {
  color: #c3c6ce;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 20px
}

.notice-modal .auth-close {
  position: absolute;
  right: 15px;
  top: 12px
}

.notice-modal .auth-submit {
  width: 100%
}

body.dialog-open {
  overflow: hidden
}

@media(min-width:701px) {
  .sidebar {
    width: 174px
  }

  .content {
    transition: margin-left .24s ease, width .24s ease
  }

  .footer-inner {
    transition: width .24s ease
  }
}

@media(max-width:700px) {
  .topbar {
    height: 62px
  }

  .sidebar {
    display: block;
    position: fixed;
    top: 62px;
    bottom: 64px;
    left: 0;
    width: min(270px, 82vw);
    height: auto;
    min-height: 0;
    transform: translateX(-105%);
    box-shadow: 12px 0 36px #0008;
    background: #242630;
  }

  .sidebar.sidebar-open {
    transform: translateX(0)
  }

  .sidebar-backdrop.visible {
    display: block;
    position: fixed;
    z-index: 65;
    inset: 62px 0 64px;
    background: #0008;
  }

  .sidebar nav a {
    height: 48px;
    font-size: 14px
  }

  body.sidebar-hidden .sidebar {
    transform: translateX(-105%)
  }

  body.sidebar-hidden .content {
    margin: 76px 13px 0;
    width: auto
  }

  body.sidebar-hidden .footer-inner {
    width: auto
  }

  body.sidebar-hidden .logo {
    left: 29px
  }

  .auth-backdrop,
  .notice-backdrop {
    padding: 12px
  }

  .auth-modal {
    max-height: calc(100dvh - 24px);
    border-radius: 12px
  }

  .auth-head {
    padding: 17px 17px 14px
  }

  .auth-form {
    padding: 14px 17px 17px;
    gap: 14px
  }

  .register-form {
    gap: 11px
  }

  .auth-form label {
    font-size: 12px
  }

  .auth-input {
    min-height: 41px
  }

  .auth-input input,
  .auth-input select {
    height: 39px
  }
}

@media(min-width:701px) {
  .game {
    flex-basis: clamp(190px, 14vw, 255px)
  }
}

@media(min-width:1600px) {
  .game {
    flex-basis: clamp(230px, 13.3vw, 255px)
  }
}


/* ==========================================================
   LUCKY GOLDEN SLOT — premium black & gold brand theme
   Layout and existing interactions are intentionally retained.
   ========================================================== */
:root {
  --page: #090806;
  --header: #0b0906;
  --panel: #15110b;
  --panel2: #1b150b;
  --border: #493719;
  --text: #fff8e9;
  --muted: #c9b98f;
  --green: #d9a83e;
  --purple: #d6a33a;
  --gold: #e5b84f;
  --gold-light: #ffe39a;
  --gold-deep: #8e5c12;
  --sidebar: 174px;
}

body {
  background: radial-gradient(ellipse at 50% -18%, #30200b 0%, #100d08 42%, #090806 78%);
  color: var(--text)
}

.topbar {
  background: linear-gradient(180deg, #171108, #0b0906);
  border-bottom: 1px solid #59421d;
  box-shadow: 0 3px 18px #0008
}

.logo {
  left: 218px;
  top: 3px;
  width: 205px;
  height: 48px
}

.logo img,
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal
}

.menu-button {
  background: #1c160c;
  border-color: #6a4c1e
}

.menu-button span {
  background: #f5d77e
}

.account-actions button {
  border: 1px solid #9a6d23;
  font-weight: 700;
  letter-spacing: .01em
}

.sign-in {
  background: linear-gradient(180deg, #f3d27a, #b77a1b);
  color: #1b1003;
  border-color: #ffdf8a !important
}

.sign-up {
  background: linear-gradient(180deg, #fff0b1, #d49a2d);
  color: #1b1003;
  border-color: #ffe29a !important
}

.language {
  background: #1a140b;
  color: #f7e5b3;
  border: 1px solid #61491f
}

.sidebar {
  background: linear-gradient(180deg, #171209, #100d08);
  border-right: 1px solid #4a3618
}

.sidebar nav a {
  color: #dfd0aa
}

.sidebar nav a:hover {
  background: linear-gradient(90deg, #39280e, #21180b);
  color: #fff1c5
}

.sidebar nav i {
  color: #e4b64c
}

.separator {
  background: #493719
}

.content {
  position: relative
}

.hero {
  border: 1px solid #8d641e;
  box-shadow: 0 0 0 1px #f1c65b22, 0 12px 34px #0008
}

.hero-dots button.active {
  background: #f3ca63;
  box-shadow: 0 0 10px #f3ca63
}

.section-heading h2 {
  color: #ffedbd;
  text-shadow: 0 1px 10px #e3aa3a22
}

.flame {
  filter: saturate(.65)
}

.controls button {
  background: linear-gradient(180deg, #21190d, #151009);
  border-color: #57401c;
  color: #f2d58b
}

.controls button:hover {
  background: #39270e;
  border-color: #d6a33a;
  color: #fff0bb
}

.rail-frame {
  background: linear-gradient(180deg, #171209, #100d08);
  border-color: #493719;
  box-shadow: inset 0 1px #ffffff08, 0 8px 24px #0004
}

.game {
  background: #171209;
  border: 1px solid #493719;
  box-shadow: 0 2px 10px #0005
}

.game:hover {
  border-color: #d6a33a;
  box-shadow: 0 8px 24px #d6a33a20
}

.art {
  background: #0d0a06
}

.tag.hot,
.tag.new {
  background: linear-gradient(135deg, #ffe28a, #b87917);
  color: #211302;
  border: 1px solid #fff0b5;
  box-shadow: 0 2px 8px #0009
}

.new-dot {
  background: linear-gradient(135deg, #ffe28a, #b87917);
  color: #211302
}

.promos .promo {
  background: linear-gradient(115deg, #21180b, #151009 70%);
  border-color: #6b4b1b;
  box-shadow: inset 0 1px #fff1, 0 7px 20px #0004
}

.promo-text h3 {
  color: #ffe3a0
}

.promo-text p {
  color: #d4c39b
}

.promo>button,
.modal-ok {
  background: linear-gradient(180deg, #ffe18a, #c58a25);
  color: #211302;
  border: 1px solid #ffebad;
  font-weight: 700;
  box-shadow: 0 3px 12px #d69b2b33
}

.footer {
  background: linear-gradient(180deg, #100d08, #090806);
  border-top: 1px solid #493719
}

.footer-inner {
  color: #f5e7c2
}

.footer-col h4 {
  color: #c49b4b
}

.footer-col a {
  color: #d8c9a7
}

.footer-col a:hover {
  color: #ffe49b
}

.copyright {
  border-top: 1px solid #382a15;
  color: #9e8a63
}

.chat {
  background: linear-gradient(180deg, #f2cc68, #a86c14);
  color: #1c1103;
  border: 1px solid #ffe5a0;
  box-shadow: 0 3px 15px #d99c2d55
}

.modal {
  background: #1b150c;
  border-color: #73521e;
  color: #fff2d0
}

.modal p {
  color: #d4c39b
}

.auth-backdrop,
.notice-backdrop {
  background: rgba(0, 0, 0, .78)
}

.auth-modal,
.notice-modal {
  background: #171209;
  border-color: #64491d;
  color: #fff2d0
}

.auth-head {
  background: #171209;
  border-bottom-color: #493719
}

.auth-head p,
.auth-form label {
  color: #dfd0aa
}

.auth-head p button,
.forgot-row button {
  color: #f0c45d
}

.auth-close {
  color: #e5cf9c
}

.auth-input {
  background: #0e0b07;
  border-color: #59411d;
  color: #e8d8b4
}

.auth-input:focus-within {
  border-color: #e1b44f;
  box-shadow: 0 0 0 2px #d6a33a22
}

.auth-input input,
.auth-input select {
  color: #fff4d8
}

.auth-input input::placeholder {
  color: #958363
}

.auth-input select option {
  background: #171209
}

.country-code {
  background: #21190d;
  border-color: #59411d;
  color: #e9d7ac
}

.auth-submit {
  background: linear-gradient(180deg, #ffe18a, #c58a25);
  color: #211302;
  border: 1px solid #ffebad;
  font-weight: 700
}

.auth-cancel {
  background: #21190d;
  border-color: #59411d;
  color: #f1dfb7
}

.notice-modal p {
  color: #d4c39b
}

.mobile-nav {
  background: #120e08f5;
  border-top-color: #57401c
}

.mobile-nav a {
  color: #cdbb92
}

.mobile-nav a.active,
.mobile-nav a:hover {
  color: #ffe39a
}

.sidebar-backdrop.visible {
  background: #000b
}

@media(min-width:701px) {
  .logo {
    left: 218px;
    width: 205px;
    height: 48px
  }

  .footer-logo {
    width: 190px;
    height: 54px
  }
}

@media(max-width:700px) {
  .logo {
    left: 18px;
    top: 8px;
    width: 155px;
    height: 45px
  }

  .account-actions {
    padding-right: 12px;
    gap: 7px
  }

  .account-actions button {
    height: 38px;
    padding: 0 12px;
    font-size: 11px
  }

  .sidebar {
    background: linear-gradient(180deg, #171209, #100d08)
  }

  .footer-logo {
    width: 155px;
    height: 48px
  }

  .promo {
    background: linear-gradient(160deg, #21180b, #151009) !important;
    border-color: #6b4b1b !important
  }

  .chat {
    background: linear-gradient(180deg, #f2cc68, #a86c14)
  }
}


/* ==========================================================
   FINAL LAYOUT + GAME HOVER + AUTOPLAY REFINEMENT
   ========================================================== */
@media (min-width:701px) {
  :root {
    --sidebar: 174px;
  }

  .sidebar {
    width: var(--sidebar);
    height: calc(100dvh - 54px);
    top: 54px;
  }

  .content {
    width: calc(100vw - var(--sidebar) - 56px);
    max-width: none;
    margin: 82px 28px 0 calc(var(--sidebar) + 28px);
    min-width: 0;
  }

  .logo {
    left: calc(var(--sidebar) + 28px);
    width: 190px;
    height: 48px;
  }

  .footer-inner {
    width: calc(100vw - var(--sidebar) - 56px);
    max-width: none;
    margin: 0 28px 0 calc(var(--sidebar) + 28px);
    min-width: 0;
  }

  body.sidebar-hidden .content {
    width: calc(100vw - 56px);
    margin-left: 28px;
    margin-right: 28px;
  }

  body.sidebar-hidden .footer-inner {
    width: calc(100vw - 56px);
    margin-left: 28px;
    margin-right: 28px;
  }

  body.sidebar-hidden .logo {
    left: 78px;
  }

  .footer {
    width: 100%;
  }

  .footer-inner>* {
    min-width: 0;
  }

  .licenses img {
    max-width: 100%;
  }
}

.content,
.footer-inner,
.rail-frame,
.game-rail {
  min-width: 0;
}

.content {
  overflow: visible;
}

.hero,
.games-section,
.promos {
  width: 100%;
  min-width: 0;
}

.game-rail {
  overscroll-behavior-inline: contain;
}

.game {
  position: relative;
  overflow: hidden;
}

.art {
  isolation: isolate;
}

.game-download {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 12px;
  background: linear-gradient(180deg, rgba(5, 4, 2, .12), rgba(5, 4, 2, .82));
  color: #211302;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  cursor: pointer;
}

.game-download span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #fff0b5;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffe9a0, #c58a25);
  box-shadow: 0 5px 18px #0009, 0 0 18px #e5b84f33;
  color: #211302;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.game:hover .game-download,
.game:focus-within .game-download,
.game-download:focus-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.game-download:hover span {
  filter: brightness(1.08);
}

@media (hover:none) {
  .game-download {
    inset: auto 7px 7px;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    justify-content: flex-end;
    padding: 0;
  }

  .game-download span {
    min-height: 32px;
    padding: 0 10px;
    font-size: 10px;
  }
}

@media (max-width:700px) {
  .content {
    width: auto;
    max-width: none;
    margin: 76px 13px 0;
  }

  .footer-inner {
    width: auto;
    margin: 0;
  }

  .game-download {
    inset: auto 6px 6px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .game-download {
    transition: none;
  }

  .hero-track,
  .game-rail {
    scroll-behavior: auto !important;
  }
}

@media (min-width:701px) and (max-width:1050px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px 28px;
    padding-top: 32px;
  }

  .footer-logo {
    grid-column: 1 / -1;
  }

  .licenses {
    grid-column: 1 / -1;
  }

  .licenses img {
    max-width: 280px;
  }
}


/* ===== Requested final refinements ===== */
@media (min-width:701px) {
  :root {
    --sidebar: 194px
  }

  .sidebar {
    width: var(--sidebar)
  }

  .sidebar nav a {
    height: 46px;
    padding-left: 27px;
    padding-right: 18px;
    gap: 16px;
    font-size: 15px;
    letter-spacing: .01em
  }

  .sidebar nav i {
    width: 18px;
    font-size: 19px
  }

  .content {
    width: calc(100vw - var(--sidebar) - 64px);
    margin-left: calc(var(--sidebar) + 32px);
    margin-right: 32px
  }

  .footer-inner {
    width: calc(100vw - var(--sidebar) - 64px);
    margin-left: calc(var(--sidebar) + 32px);
    margin-right: 32px
  }

  body.sidebar-hidden .content {
    width: calc(100vw - 64px);
    margin-left: 32px;
    margin-right: 32px
  }

  body.sidebar-hidden .footer-inner {
    width: calc(100vw - 64px);
    margin-left: 32px;
    margin-right: 32px
  }

  .logo {
    left: calc(var(--sidebar) + 30px);
    width: 205px;
    height: 46px
  }

  body.sidebar-hidden .logo {
    left: 78px
  }

  .section-heading h2 {
    font-size: 17px
  }

  .promo-text h3 {
    font-size: 17px
  }

  .promo-text p,
  .footer-col a {
    font-size: 13px
  }

  .footer-col h4 {
    font-size: 12px
  }
}

.logo {
  overflow: hidden;
  border-radius: 10px;
  clip-path: inset(0 round 10px)
}

.logo img {
  border-radius: 10px
}

.sidebar nav a {
  transition: background .18s ease, color .18s ease, padding-left .18s ease
}

.sidebar nav a:focus-visible,
.mobile-nav a:focus-visible {
  outline: 2px solid #ffe39a;
  outline-offset: -3px;
  border-radius: 5px
}

.game-download span {
  min-height: 39px
}

@media (hover:hover) {
  .game-download {
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px)
  }

  .game:hover .game-download,
  .game:focus-within .game-download {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
  }
}

@media (hover:none) {
  .game-download {
    inset: auto 7px 7px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    background: transparent;
    justify-content: flex-end;
    padding: 0
  }

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

  .game-download span {
    min-height: 27px;
    padding: 0 9px;
    font-size: 9px;
    border-radius: 7px;
    gap: 5px
  }
}

@media(max-width:700px) {
  .logo {
    border-radius: 9px;
    clip-path: inset(0 round 9px)
  }

  .game-download span {
    min-height: 26px;
    padding: 0 8px;
    font-size: 9px
  }

  .sidebar nav a {
    font-size: 15px;
    letter-spacing: .01em
  }
}

/* Charcoal and gold refresh — existing page structure retained. */
:root {
  --page: #151922;
  --header: #11151d;
  --panel: #1c222d;
  --panel2: #232a36
}

body {
  background: #151922;
  color: #f4e9cf
}

.topbar,
.sidebar,
.footer,
.mobile-nav {
  background: #11151d
}

.rail-frame,
.game,
.promo,
.auth-modal,
.auth-head,
.notice-modal {
  background: #202632 !important
}

.art,
.hero,
.auth-input {
  background: #11151d
}

.controls button {
  background: #252c38
}

.sidebar nav a:hover {
  background: #303746
}

.hero-slide img {
  object-fit: contain !important;
  background: #0a0b0e
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  align-items: center;
  margin-top: 12px
}

.license-grid img {
  width: 100%;
  height: 38px;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border-radius: 0 !important
}

.license-note {
  display: block;
  font-size: 10px;
  color: #c9c1af;
  margin-top: 12px;
  line-height: 1.5
}

.game-download {
  text-decoration: none;
  inset: 0;
  justify-content: center;
  align-items: center;
  display: flex;
  visibility: visible;
  opacity: 0;
  pointer-events: none;
  transform: none;
  background: #0005
}

.game:hover .game-download,
.game:focus-within .game-download,
.game.download-open .game-download,
.game-download:focus-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: none
}

@media(min-width:701px) {
  :root {
    --sidebar: 220px
  }

  .logo {
    width: 255px;
    max-width: calc(100vw - 460px)
  }

  .footer-logo {
    width: 215px;
    max-width: 100%
  }

  .hero {
    aspect-ratio: 2.78/1
  }
}

@media(max-width:700px) {
  .sidebar {
    width: min(290px, 85vw)
  }

  .logo {
    width: clamp(145px, 43vw, 205px)
  }

  .game-download {
    inset: 0;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: #0004;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: none
  }

  .game.download-open .game-download,
  .game:focus-within .game-download {
    opacity: 1;
    pointer-events: auto;
    visibility: visible
  }

  .game-download span {
    min-height: 28px;
    padding: 0 8px;
    font-size: 10px
  }

  .hero {
    aspect-ratio: 16/9
  }
}

/* Full-width banners and expanded original brand logo */
.hero-slide a {
  display: block;
  width: 100%;
  height: 100%
}

.hero-slide img {
  object-fit: cover !important;
  object-position: center
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 44px;
  border: 1px solid #d3a64b80;
  border-radius: 9px;
  background: #11151dcc;
  color: #ffe6a3;
  font-size: 27px;
  cursor: pointer
}

.hero-arrow.prev {
  left: 12px
}

.hero-arrow.next {
  right: 12px
}

.hero-dots {
  z-index: 6
}

.hero-dots button {
  width: 10px;
  height: 10px;
  cursor: pointer
}

.logo {
  clip-path: none;
  border-radius: 0;
  overflow: visible
}

.logo img {
  border-radius: 0;
  object-fit: contain;
  object-position: left center
}

.telegram-chat {
  display: grid;
  place-items: center;
  background: #229ed9;
  color: white;
  border: 1px solid #72d2ff;
  box-shadow: 0 4px 20px #0007;
  cursor: pointer
}

.reveal-section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease
}

.reveal-section.revealed,
.reveal-section:focus-within {
  opacity: 1;
  transform: none
}

@media(min-width:701px) {
  .topbar {
    height: 96px
  }

  .sidebar {
    top: 96px;
    height: calc(100dvh - 96px)
  }

  .content {
    margin-top: 120px
  }

  .logo {
    top: 4px;
    height: 88px;
    width: 270px;
    max-width: calc(100vw - 450px)
  }

  .menu-button {
    top: 30px
  }

  .hero {
    aspect-ratio: 2.35/1;
    min-height: 0;
    max-height: none
  }

  .hero-slide:first-child img {
    object-position: center 55%
  }

  .footer-logo {
    height: auto;
    width: 260px
  }
}

@media(max-width:700px) {
  .topbar {
    height: 70px
  }

  .logo,
  body.sidebar-hidden .logo {
    left: 12px;
    top: 4px;
    height: 62px;
    width: clamp(130px, 48vw, 225px)
  }

  .sidebar {
    top: 70px
  }

  .sidebar-backdrop.visible {
    top: 70px
  }

  .content,
  body.sidebar-hidden .content {
    margin-top: 84px
  }

  .hero {
    aspect-ratio: 16/9
  }

  .hero-arrow {
    width: 26px;
    height: 34px;
    font-size: 21px
  }

  .hero-arrow.prev {
    left: 6px
  }

  .hero-arrow.next {
    right: 6px
  }

  .account-actions {
    gap: 5px;
    padding-right: 8px
  }

  .account-actions button {
    padding: 0 9px
  }

  .footer-logo {
    width: 180px;
    height: auto
  }
}

@media(prefers-reduced-motion:reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none
  }

  .hero-track {
    transition: none
  }
}


/* ===== V4 refinements: shorter hero + transparent logo treatment ===== */
.logo,
.footer-logo {
  background: transparent !important
}

.logo img,
.footer-logo img {
  background: transparent !important;
  mix-blend-mode: normal !important;
  object-fit: contain !important
}

.logo img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)) !important
}

@media(min-width:701px) {
  .logo {
    top: 2px !important;
    height: 90px !important;
    width: 300px !important;
    max-width: calc(100vw - 430px) !important
  }

  .footer-logo {
    width: 270px !important;
    height: auto !important
  }

  .hero {
    aspect-ratio: 2.8 / 1 !important;
    max-height: 420px !important;
    min-height: 0 !important
  }

  .hero-slide img {
    object-fit: cover !important;
    object-position: center center !important
  }
}

@media(max-width:700px) {

  .logo,
  body.sidebar-hidden .logo {
    left: 12px !important;
    top: 4px !important;
    height: 62px !important;
    width: clamp(150px, 50vw, 235px) !important
  }

  .footer-logo {
    width: 185px !important;
    height: auto !important
  }

  .hero {
    aspect-ratio: 16 / 8.6 !important;
    max-height: 220px !important
  }

  .hero-slide img {
    object-fit: cover !important;
    object-position: center center !important
  }
}

/* ===== Two supplied 1983x793 promotional banners ===== */
/* Keep the exact source-image ratio so the supplied artwork is not cropped. */
.hero {
  width: 100%;
  aspect-ratio: 1983 / 793 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background: #08090d;
}
.hero-track,
.hero-slide {
  height: 100%;
}
.hero-slide a,
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-slide img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #08090d;
}
@media (max-width: 700px) {
  .hero {
    aspect-ratio: 1983 / 793 !important;
    max-height: none !important;
  }
  .hero-slide img {
    object-fit: contain !important;
  }
}


/* ===== Auto-opening Telegram support chat ===== */
.telegram-support {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
}
.telegram-support .telegram-chat {
  position: relative;
  right: auto;
  bottom: auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg,#36bafa,#168bd0);
  color: #fff;
  box-shadow: 0 6px 24px #0008;
  border: 1px solid #8cdbff;
}
.telegram-unread {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8b84c;
  border: 2px solid #168bd0;
}
.telegram-chat.is-open .telegram-unread { display:none; }
.telegram-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #bd9140;
  background: #171b24;
  box-shadow: 0 18px 55px #000a;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.telegram-panel.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.telegram-panel-head {
  display:flex;
  align-items:center;
  gap:11px;
  padding:15px 16px;
  background: linear-gradient(115deg,#b98525,#e8c66c);
  color:#17120a;
}
.telegram-avatar {
  width:39px;
  height:39px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:white;
  background:#168bd0;
  flex:0 0 auto;
}
.telegram-head-copy { display:flex; flex-direction:column; gap:3px; flex:1; }
.telegram-head-copy strong { font-size:14px; }
.telegram-head-copy small { font-size:11px; opacity:.85; }
.support-online-dot {
  display:inline-block;
  width:7px;height:7px;border-radius:50%;
  background:#218b42;margin-right:5px;
}
.telegram-close {
  width:30px;height:30px;border:0;border-radius:50%;
  background:#0002;color:#211909;font-size:23px;line-height:1;cursor:pointer;
}
.telegram-chat-body {
  min-height:145px;
  padding:17px 15px 12px;
  background:radial-gradient(ellipse at top right,#253044 0%,#171b24 65%);
}
.telegram-message {
  width:90%;
  padding:12px 13px 9px;
  border-radius:12px 12px 12px 3px;
  background:#252d3a;
  border:1px solid #394354;
  color:#f5f0e5;
}
.telegram-message strong { color:#f2cc75;font-size:12px; }
.telegram-message p { margin:7px 0 8px;font-size:12px;line-height:1.55;color:#e5e7ec; }
.telegram-message time { display:block;text-align:right;font-size:9px;color:#aeb7c5; }
.telegram-chat-hint { margin:11px 2px 0;color:#b7bfcb;font-size:10px;line-height:1.45; }
.telegram-compose {
  display:flex;align-items:center;gap:8px;
  padding:11px 12px;
  border-top:1px solid #303846;
  background:#11151d;
}
.telegram-compose input {
  min-width:0;flex:1;height:42px;
  padding:0 12px;border:1px solid #3b4555;border-radius:22px;
  outline:none;background:#202632;color:#fff;font:inherit;font-size:12px;
}
.telegram-compose input:focus { border-color:#d7ad51;box-shadow:0 0 0 2px #d7ad5122; }
.telegram-compose button {
  width:40px;height:40px;display:grid;place-items:center;
  border:0;border-radius:50%;background:#229ed9;color:#fff;cursor:pointer;
}
.telegram-powered {
  padding:0 12px 10px;text-align:center;background:#11151d;
  color:#8e98a7;font-size:9px;
}
@media(max-width:700px) {
  .telegram-support { right:13px;bottom:13px; }
  .telegram-support .telegram-chat { width:54px;height:54px; }
  .telegram-panel { bottom:66px; }
}
@media(prefers-reduced-motion:reduce) {
  .telegram-panel { transition:none; }
}


/* Rounded brand mark and compact account-page links */
.logo {
  overflow: hidden;
  border-radius: 17px;
}
.logo img {
  border-radius: 17px;
}
.footer-logo {
  display: inline-block;
  overflow: hidden;
  border-radius: 18px;
}
.footer-logo img {
  border-radius: 18px;
}
.account-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 37px;
  padding: 0 13px;
  border: 1px solid #8f6b2d;
  border-radius: 9px;
  color: #f0d18a;
  background: #171923;
  font-size: 12px;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.account-page-link:hover {
  color: #17120a;
  background: linear-gradient(135deg,#f6d889,#bd8529);
  border-color: #f6d889;
}
.account-page-body {
  min-height: 100vh;
  background: #151821;
  color: #f4f0e8;
  font-family: Poppins, sans-serif;
}
.account-page-top {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px,4vw,54px);
  background: #10131b;
  border-bottom: 1px solid #725323;
}
.account-page-top img {
  width: 220px;
  max-height: 66px;
  object-fit: contain;
  border-radius: 17px;
}
.account-page-top a {
  color: #f2d28d;
  text-decoration: none;
  font-size: 13px;
}
.account-page-wrap {
  width: min(1000px, calc(100% - 36px));
  margin: 44px auto 70px;
}
.account-page-heading {
  margin: 0 0 7px;
  font-size: clamp(24px,3vw,32px);
  color: #f4d38b;
}
.account-page-subtitle {
  margin: 0 0 26px;
  color: #aeb4c0;
  font-size: 13px;
}
.account-page-card {
  padding: clamp(20px,3vw,30px);
  border: 1px solid #343a48;
  border-radius: 16px;
  background: #1d222d;
  box-shadow: 0 12px 35px #0003;
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid #343a48;
}
.profile-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg,#f4d78d,#b47b22);
  color: #201708;
  font-size: 25px;
  font-weight: 700;
}
.profile-summary h2 { margin: 0 0 4px; font-size: 17px; }
.profile-summary p { margin: 0; color: #aeb4c0; font-size: 12px; }
.profile-details {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.profile-detail {
  padding: 14px 15px;
  border: 1px solid #343a48;
  border-radius: 10px;
  background: #171b24;
}
.profile-detail small {
  display: block;
  margin-bottom: 5px;
  color: #b9a16f;
  font-size: 11px;
}
.profile-detail strong {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.settings-list { display: grid; gap: 0; }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #343a48;
}
.settings-row:last-child { border-bottom: 0; }
.settings-row strong { display: block; font-size: 13px; }
.settings-row small { display: block; margin-top: 4px; color: #aeb4c0; font-size: 11px; }
.settings-row input[type="checkbox"] { width: 19px; height: 19px; accent-color: #d7a943; }
.settings-row select {
  min-width: 130px;
  padding: 9px 11px;
  border: 1px solid #66502b;
  border-radius: 8px;
  background: #151923;
  color: #f4e5c2;
}
.account-page-note {
  margin-top: 18px;
  color: #929aa8;
  font-size: 11px;
  line-height: 1.6;
}
.account-page-action {
  display: inline-flex;
  margin-top: 22px;
  padding: 10px 17px;
  border-radius: 9px;
  background: linear-gradient(135deg,#f4d889,#b98122);
  color: #211708 !important;
  font-weight: 600;
}
@media(max-width:700px) {
  .account-actions { gap: 5px; padding-right: 12px; }
  .account-page-link { height: 33px; padding: 0 8px; font-size: 10px; }
  .account-page-top { height: 66px; }
  .account-page-top img { width: 165px; max-height: 58px; }
  .account-page-wrap { margin-top: 28px; }
  .profile-details { grid-template-columns: 1fr; }
  .settings-row { align-items: flex-start; }
}

/* Provider navigation and non-linked referral/VIP promo cards */
.sidebar nav a.active{color:#f0c35b;background:#292a30}
.sidebar nav a.active i{color:#e9bd58}
.promo{cursor:default}

/* Telegram channel links in Help > Contact */
.telegram-channel-list .telegram-channel-card{display:block;text-decoration:none;border:1px solid #6b5124;background:linear-gradient(145deg,#20232c,#171a22);transition:border-color .2s,transform .2s}
.telegram-channel-list .telegram-channel-card:hover{border-color:#e4b64c;transform:translateY(-2px)}
.telegram-channel-card span{color:#e8c36c;font-size:12px}

/* Dedicated category pages */
.category-page{background:#151821;color:#f4f0e8}
.category-main{width:min(1336px,calc(100vw - 270px));margin:92px auto 60px;min-height:calc(100vh - 400px)}
.category-banner{min-height:150px;display:flex;align-items:center;padding:26px 34px;margin:0 0 28px;border:1px solid #5b451f;border-radius:13px;overflow:hidden;background:radial-gradient(ellipse at 75% 35%,#72501b55,transparent 38%),linear-gradient(110deg,#0c0d11,#211a10 58%,#0c0d11);box-shadow:inset 0 0 40px #e6a92b0b}
.category-kicker{font-size:10px;letter-spacing:3px;color:#dcb45a;font-weight:700}
.category-banner h1{font-size:clamp(28px,4vw,44px);margin:7px 0 3px;color:#f8d783;text-shadow:0 2px 18px #d49c3b33}
.category-banner p{margin:0;color:#c3c5ce;font-size:12px}
.category-heading{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.category-heading h2{margin:0;color:#f5e6c1;font-size:17px}
.category-heading p{margin:3px 0 0;color:#9299a7;font-size:11px}
.category-tabs{display:flex;align-items:center;gap:0;border-bottom:1px solid #30343e;margin-bottom:18px;overflow-x:auto}
.category-tabs a{position:relative;white-space:nowrap;padding:12px 16px;color:#bfc1ca;text-decoration:none;font-size:12px}
.category-tabs a:hover,.category-tabs a.active{color:#f0c35b}
.category-tabs a.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:linear-gradient(90deg,#f7d778,#c58a24)}
.category-toolbar{display:grid;grid-template-columns:minmax(200px,1fr) minmax(150px,240px) minmax(150px,220px);gap:12px;margin:18px 0 24px}
.category-search{height:42px;display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid #343946;border-radius:9px;background:#1b1e27;color:#9fa6b4}
.category-search input{width:100%;border:0;outline:0;background:transparent;color:#f5f5f7;font:12px Poppins,sans-serif}
.category-toolbar select{height:42px;padding:0 12px;border:1px solid #343946;border-radius:9px;background:#1b1e27;color:#d9dce4;font:12px Poppins,sans-serif}
.category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.category-game{min-width:0;overflow:hidden;border:1px solid #303541;border-radius:11px;background:#20242e;transition:transform .2s,border-color .2s}
.category-game:hover{transform:translateY(-3px);border-color:#96702e}
.category-game-art{height:auto;aspect-ratio:1/1;display:block;position:relative;background:#111}
.category-game-art img{width:100%;height:100%;display:block;object-fit:cover}
.category-game-art .tag{position:absolute;top:8px;left:8px}
.category-game-meta{padding:10px 11px 12px}
.category-game-meta h2{margin:0 0 3px;color:#f1e8d5;font-size:12px;font-weight:600}
.category-game-meta span{font-size:10px;color:#9da4b1}
.category-empty{grid-column:1/-1;min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 20px;border:1px dashed #4a402b;border-radius:12px;background:#1b1e27;text-align:center}
.category-empty[hidden]{display:none}
.empty-symbol{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#3a2e19;color:#edc15e;font-size:23px}
.category-empty h2{margin:13px 0 5px;font-size:16px;color:#f1d18a}
.category-empty p{max-width:480px;margin:0;color:#aeb4c0;font-size:12px;line-height:1.7}
.promo-explore{margin-left:auto;flex:none;display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:1px solid #d4a642;border-radius:9px;background:linear-gradient(135deg,#f8d982,#bd8529);color:#1b1408;text-decoration:none;font-size:12px;font-weight:700;box-shadow:0 4px 14px #d49c3b1c}
.promo-explore:hover{filter:brightness(1.08);transform:translateY(-1px)}
.promo-explore[aria-disabled="true"]{opacity:.7}
@media(max-width:1100px){.category-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:850px){.category-main{width:calc(100vw - 230px)}.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.category-main{width:auto;margin:88px 13px 35px}.category-banner{min-height:118px;padding:20px}.category-toolbar{grid-template-columns:1fr 1fr}.category-search{grid-column:1/-1}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.category-tabs a{padding:12px 13px;font-size:11px}.promo-explore{padding:8px 11px;font-size:10px}}

/* V9: full-width category/provider page canvas aligned to the fixed sidebar */
@media (min-width:701px){
  .category-main,
  .provider-main{
    width:auto !important;
    max-width:none !important;
    margin:82px 28px 60px calc(var(--sidebar,174px) + 28px) !important;
  }
  body.category-page .footer-inner,
  body.provider-page .footer-inner{
    width:calc(100vw - var(--sidebar,174px) - 56px) !important;
    max-width:none !important;
    margin:0 28px 0 calc(var(--sidebar,174px) + 28px) !important;
  }
  body.category-page .footer,
  body.provider-page .footer{width:100%}
}
@media (max-width:700px){
  .category-main,.provider-main{width:auto !important;margin:88px 13px 35px !important}
  body.category-page .footer-inner,
  body.provider-page .footer-inner{width:auto !important;margin:0 13px !important}
}
/* Provider cards keep the same rounded gold-accent visual language as game cards */
.provider-card{cursor:default}
.provider-card:focus-within{outline:1px solid #d6aa4d}


/* ==========================================================
   Unified category & provider catalogue layout
   Shared visual rhythm across Slot, Live Casino, Fishing,
   Sport and Provider pages.
   ========================================================== */
:root {
  --catalog-gutter: 28px;
  --catalog-top-space: 112px;
}
body.category-page .category-main,
body.provider-page .provider-main {
  width: auto !important;
  max-width: none !important;
  margin: var(--catalog-top-space) var(--catalog-gutter) 64px calc(var(--sidebar,174px) + var(--catalog-gutter)) !important;
  min-height: calc(100vh - 410px);
}
body.category-page .category-banner,
body.provider-page .provider-banner {
  min-height: 184px;
  padding: 34px 38px;
  margin: 0 0 34px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 82% 30%, rgba(211,158,54,.20), transparent 34%),
    radial-gradient(ellipse at 18% 100%, rgba(112,78,24,.16), transparent 40%),
    linear-gradient(110deg,#0c0d11 0%,#211a10 56%,#0c0d11 100%);
}
body.category-page .category-banner h1,
body.provider-page .provider-banner h1 {
  margin: 10px 0 7px;
  letter-spacing: .4px;
}
body.category-page .category-banner p,
body.provider-page .provider-banner p {
  max-width: 620px;
  font-size: 13px;
  line-height: 1.7;
}
body.category-page .category-heading,
body.provider-page .provider-title {
  margin: 0 0 18px;
}
body.category-page .category-tabs,
body.provider-page .provider-tabs {
  min-height: 46px;
  margin: 0 0 22px;
}
body.category-page .category-toolbar,
body.provider-page .provider-toolbar {
  margin: 0 0 26px;
}
body.category-page .category-grid {
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 16px;
}
body.category-page .category-game,
body.provider-page .provider-card {
  border-radius: 12px;
  background: linear-gradient(145deg,#222631,#1d2029);
  border-color: #303541;
  box-shadow: 0 5px 18px rgba(0,0,0,.12);
}
body.category-page .category-game:hover,
body.provider-page .provider-card:hover {
  border-color: #a47b36;
  box-shadow: 0 9px 24px rgba(0,0,0,.22), 0 0 0 1px rgba(212,166,66,.08);
}
body.category-page .category-game-art {
  aspect-ratio: 1 / 1;
}
body.category-page .category-game-meta {
  min-height: 54px;
  padding: 10px 11px 12px;
}
body.category-page .category-game-meta h2 {
  font-size: 12px;
  line-height: 1.45;
}
body.category-page .category-game-meta span {
  display: block;
  margin-top: 3px;
}
body.provider-page .provider-grid {
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 16px;
}
body.provider-page .provider-card {
  min-height: 156px;
  padding: 19px 13px 15px;
  justify-content: center;
  gap: 12px;
}
body.provider-page .provider-logo {
  width: 76px;
  height: 76px;
  border-radius: 17px;
}
body.provider-page .provider-card h2 {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}
body.provider-page .provider-count {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: #9da4b1;
  font-size: 11px;
}
body.category-page .category-empty {
  min-height: 250px;
  padding: 42px 24px;
}
body.category-page .category-empty p {
  line-height: 1.8;
}
@media (max-width: 1250px) {
  body.category-page .category-grid,
  body.provider-page .provider-grid {
    grid-template-columns: repeat(5,minmax(0,1fr));
  }
}
@media (max-width: 1000px) {
  :root { --catalog-gutter: 22px; --catalog-top-space: 100px; }
  body.category-page .category-grid,
  body.provider-page .provider-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 13px;
  }
}
@media (max-width: 800px) {
  body.category-page .category-grid,
  body.provider-page .provider-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 11px;
  }
  body.category-page .category-banner,
  body.provider-page .provider-banner {
    min-height: 164px;
    padding: 28px;
  }
}
@media (max-width: 700px) {
  :root { --catalog-gutter: 13px; --catalog-top-space: 92px; }
  body.category-page .category-main,
  body.provider-page .provider-main {
    margin: var(--catalog-top-space) var(--catalog-gutter) 38px !important;
  }
  body.category-page .category-banner,
  body.provider-page .provider-banner {
    min-height: 150px;
    padding: 24px 21px;
    margin-bottom: 27px;
  }
  body.category-page .category-banner h1,
  body.provider-page .provider-banner h1 {
    font-size: 30px;
  }
  body.category-page .category-banner p,
  body.provider-page .provider-banner p {
    font-size: 11px;
  }
  body.category-page .category-grid,
  body.provider-page .provider-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  body.category-page .category-toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  body.category-page .category-search {
    grid-column: 1 / -1;
  }
  body.provider-page .provider-toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  body.provider-page .provider-search {
    grid-column: 1 / -1;
  }
  body.category-page .category-tabs a,
  body.provider-page .provider-tabs a {
    padding-left: 13px;
    padding-right: 13px;
  }
}


/* Category-page account dropdown and Home-matched gold auth buttons */
.category-page .account-actions { gap: 10px; padding-right: 34px; }
.category-page .account-dropdown { position: relative; }
.category-page .account-menu-trigger {
  height: 37px; min-width: 112px; padding: 0 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid #9a6d23; border-radius: 9px;
  color: #f0d18a; background: #171923; font-size: 12px; font-weight: 500;
}
.category-page .account-menu-trigger > svg:first-child { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.category-page .account-menu-trigger .account-chevron { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.category-page .account-dropdown.open .account-chevron { transform: rotate(180deg); }
.category-page .account-menu-trigger:hover,
.category-page .account-dropdown.open .account-menu-trigger { color: #17120a; background: linear-gradient(135deg,#f6d889,#bd8529); border-color: #f6d889; }
.category-page .account-dropdown-menu {
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 80;
  min-width: 178px; padding: 6px; display: none;
  border: 1px solid #76551f; border-radius: 10px;
  background: #191c25; box-shadow: 0 14px 32px #0008;
}
.category-page .account-dropdown.open .account-dropdown-menu { display: block; }
.category-page .account-dropdown-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px;
  border-radius: 7px; color: #f2e4c5; text-decoration: none; font-size: 12px;
}
.category-page .account-dropdown-menu a:hover { color: #17120a; background: linear-gradient(135deg,#f6d889,#bd8529); }
.category-page .account-dropdown-menu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.category-page .account-actions > .sign-in,
.category-page .account-actions > .sign-up {
  height: 37px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; border: 1px solid #ffdf8a; border-radius: 9px;
  font-size: 12px; font-weight: 700; text-decoration: none;
}
.category-page .account-actions > .sign-in { background: linear-gradient(180deg,#f3d27a,#b77a1b); color: #1b1003; }
.category-page .account-actions > .sign-up { background: linear-gradient(180deg,#fff0b1,#d49a2d); color: #1b1003; border-color: #ffe29a; }
.category-page .account-actions > .sign-in:hover,
.category-page .account-actions > .sign-up:hover { filter: brightness(1.08); }
.category-page .category-tabs { justify-content: flex-start; }
@media (max-width: 700px) {
  .category-page .account-actions { gap: 5px; padding-right: 12px; }
  .category-page .account-menu-trigger { min-width: 36px; width: 36px; padding: 0; }
  .category-page .account-menu-trigger span, .category-page .account-menu-trigger .account-chevron { display: none; }
  .category-page .account-actions > .sign-in, .category-page .account-actions > .sign-up { height: 33px; padding: 0 9px; font-size: 10px; }
}


/* Shared account icon/dropdown and persistent mobile navigation on every page */
.site-account-actions { display:flex; align-items:center; gap:10px; }
.site-account-actions .account-dropdown { position:relative; }
.site-account-actions .account-menu-trigger { height:37px; min-width:40px; padding:0 10px; display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid #9a6d23; border-radius:9px; color:#f0d18a; background:#171923; font:500 12px Poppins,sans-serif; cursor:pointer; }
.site-account-actions .account-menu-trigger > svg:first-child { width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.site-account-actions .account-menu-trigger .account-chevron { width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .18s; }
.site-account-actions .account-dropdown.open .account-chevron { transform:rotate(180deg); }
.site-account-actions .account-dropdown-menu { position:absolute;top:calc(100% + 9px);right:0;z-index:150;min-width:178px;padding:6px;display:none;border:1px solid #76551f;border-radius:10px;background:#191c25;box-shadow:0 14px 32px #0008; }
.site-account-actions .account-dropdown.open .account-dropdown-menu { display:block; }
.site-account-actions .account-dropdown-menu a { display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:7px;color:#f2e4c5;text-decoration:none;font-size:12px; }
.site-account-actions .account-dropdown-menu a:hover { color:#17120a;background:linear-gradient(135deg,#f6d889,#bd8529); }
.site-account-actions .account-dropdown-menu svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7; }
.site-account-actions > .sign-in,.site-account-actions > .sign-up { height:37px;display:inline-flex;align-items:center;justify-content:center;padding:0 16px;border:1px solid #ffdf8a;border-radius:9px;font:700 12px Poppins,sans-serif;text-decoration:none; }
.site-account-actions > .sign-in { background:linear-gradient(180deg,#f3d27a,#b77a1b);color:#1b1003; }
.site-account-actions > .sign-up { background:linear-gradient(180deg,#fff0b1,#d49a2d);color:#1b1003;border-color:#ffe29a; }
.site-mobile-nav { display:none; }
@media(max-width:700px) {
  .site-account-actions { gap:5px; padding-right:10px; }
  .site-account-actions .account-menu-trigger { width:36px;min-width:36px;height:33px;padding:0; }
  .site-account-actions .account-menu-trigger span,.site-account-actions .account-menu-trigger .account-chevron { display:none; }
  .site-account-actions > .sign-in,.site-account-actions > .sign-up { height:33px;padding:0 9px;font-size:10px; }
  .site-mobile-nav { display:flex; }
  .telegram-support { right:12px; bottom:calc(78px + env(safe-area-inset-bottom)); z-index:120; }
  .telegram-support .telegram-chat { width:48px;height:48px; }
  .telegram-panel { bottom:calc(136px + env(safe-area-inset-bottom)); max-height:calc(100dvh - 160px - env(safe-area-inset-bottom)); width:min(360px,calc(100vw - 24px)); }
  .telegram-chat-body { min-height:0;max-height:26vh;overflow-y:auto;padding:12px; }
  .telegram-panel-head { padding:11px 13px; }
  .telegram-powered { padding-bottom:7px; }
  body { padding-bottom:64px; }
}

@media(max-width:700px) {
  .sidebar.sidebar-open { display:block !important; position:fixed; top:70px; bottom:64px; left:0; width:220px; height:auto; z-index:110; overflow-y:auto; transform:none; box-shadow:12px 0 30px #0008; }
  .sidebar-backdrop.visible { display:block; position:fixed; inset:70px 0 64px; z-index:105; background:#0009; }
  .telegram-panel { bottom:calc(136px + env(safe-area-inset-bottom)); max-height:calc(100dvh - 160px - env(safe-area-inset-bottom)); }
}

/* Promotions, VIP and Referral pages — LuckyGoldenSlot brand */

/* Feature pages sit below the fixed header; keep the hero fully visible. */
.feature-main{margin-left:200px;padding:84px 28px 54px;min-height:calc(100vh - 160px)}
.feature-main > :first-child{scroll-margin-top:90px}
.feature-hero,.vip-page-hero,.referral-hero{scroll-margin-top:90px}

.feature-hero,.vip-page-hero{position:relative;overflow:hidden;min-height:220px;border:1px solid #6f4e1d;border-radius:16px;background:radial-gradient(ellipse at 82% 30%,#68450f55,transparent 34%),linear-gradient(110deg,#211a10,#17171b 58%,#101116);display:flex;align-items:center;justify-content:space-between;padding:34px 42px}
.feature-hero-copy,.vip-hero-copy{position:relative;z-index:2;max-width:700px}
.feature-kicker{display:block;color:#e5b64d;font-size:10px;font-weight:800;letter-spacing:2.2px;margin-bottom:10px}
.feature-hero h1,.vip-page-hero h1{color:#f2d17f;font-size:clamp(27px,3vw,42px);font-weight:800;margin:0 0 12px}
.feature-hero p,.vip-page-hero p{color:#c5c2c0;max-width:650px;margin:0;font-size:14px;line-height:1.7}
.feature-hero-art{width:32%;max-width:360px;align-self:stretch;display:flex;align-items:center;justify-content:center}
.feature-hero-art img{max-width:100%;max-height:210px;object-fit:contain;filter:drop-shadow(0 10px 20px #0008)}
.feature-title-row{display:flex;justify-content:space-between;align-items:end;margin:34px 0 18px}
.feature-title-row h2{color:#f5e5c1;font-size:22px;margin:0 0 5px;font-weight:700}
.feature-title-row p{color:#9295a1;font-size:12px;margin:0}
.promotion-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.promotion-card{position:relative;overflow:hidden;min-height:230px;padding:25px;border:1px solid #30333e;border-radius:15px;background:linear-gradient(145deg,#20232d,#171920);box-shadow:0 8px 20px #0002}
.promotion-featured{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,38%) 1fr;align-items:center;gap:28px}
.promotion-image{height:190px;display:flex;justify-content:center;align-items:center}
.promotion-image img{max-width:100%;max-height:100%;object-fit:contain}
.promotion-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:14px;background:#d7a83d1c;color:#e8bd58;font-size:30px;margin-bottom:20px}
.feature-chip{color:#e4b74f;font-size:10px;font-weight:800;letter-spacing:1.4px}
.promotion-card h3{color:#f4e7c9;font-size:21px;margin:9px 0;font-weight:700}
.promotion-card p{color:#aeb0b9;font-size:13px;line-height:1.65;max-width:540px}
.feature-button{display:inline-flex;align-items:center;gap:18px;padding:11px 18px;border-radius:8px;background:linear-gradient(180deg,#f4d47e,#b77a1c);color:#1b1204;text-decoration:none;font-size:12px;font-weight:700;border:1px solid #f2d27b;margin-top:9px}
.feature-link{color:#e8c36c;text-decoration:none;font-size:12px;font-weight:700}
.feature-note{color:#858995;font-size:11px;line-height:1.6;margin:18px 0 0}
.feature-page-heading{display:flex;align-items:center;gap:12px;color:#f5e5c1;margin:0 0 20px}
.feature-heading-icon{width:34px;height:34px;border-radius:10px;background:#d6a43b1a;color:#e6b84f;display:grid;place-items:center;font-size:21px}
.feature-page-heading h1{font-size:20px;font-weight:800;margin:0 0 3px}
.feature-page-heading p{font-size:12px;color:#9a9daa;margin:0}
.feature-tabs{border-bottom:1px solid #30333d;margin-bottom:28px}
.feature-tabs a{display:inline-block;padding:0 12px 12px;color:#d2c5a8;text-decoration:none;font-size:12px;border-bottom:2px solid #e5b64d}
.referral-hero{min-height:235px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative;padding:32px 40px;border:1px solid #30333d;border-radius:16px;background:radial-gradient(ellipse at 83% 45%,#7a561c22,transparent 32%),linear-gradient(120deg,#20232c,#171a22)}
.referral-copy{max-width:600px;position:relative;z-index:2}
.referral-copy h2{color:#f1e4c7;font-size:23px;font-weight:700;margin:4px 0 10px}
.referral-copy p{color:#a9abb5;font-size:13px;line-height:1.65;max-width:540px}
.referral-art{width:290px;height:190px;position:relative;display:grid;place-items:center;flex-shrink:0}
.referral-medallion{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;font-size:76px;color:#f3d178;border:2px solid #b98935;background:radial-gradient(circle,#74521d,#20170b 68%);box-shadow:0 0 45px #d29a2b33,inset 0 0 22px #e5b64d33}
.referral-coins{position:absolute;right:0;top:22px;color:#f1c65e;font-size:25px}
.referral-people{position:absolute;bottom:0;left:0;display:flex;gap:5px;color:#d9ad52;font-size:34px;opacity:.65}
.referral-steps{margin:48px auto 8px;max-width:900px}
.referral-steps-heading{text-align:center;margin-bottom:22px}
.referral-steps-heading h2{color:#eee2c9;font-size:21px;font-weight:700}
.referral-step-grid{display:grid;grid-template-columns:1fr 42px 1fr;align-items:center;gap:12px}
.referral-step{position:relative;overflow:hidden;min-height:170px;padding:25px 28px;border:1px solid #30333d;border-radius:16px;background:linear-gradient(145deg,#20232d,#171a22)}
.step-number{display:block;color:#80df61;font-size:48px;line-height:1.1;font-weight:800;font-style:italic;margin-bottom:8px}
.referral-step h3{color:#f5e8ce;font-size:13px;font-weight:700;margin:0 0 8px}
.referral-step p{color:#a7aab4;font-size:12px;line-height:1.6;margin:0;max-width:340px}
.step-watermark{position:absolute;right:22px;top:20px;font-size:48px;color:#ffffff12}
.step-connector{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#d6a43b;color:#1a1409;font-size:25px;justify-self:center}
.vip-page-hero{min-height:190px;align-items:center;text-align:center;justify-content:center}
.vip-hero-copy{max-width:760px}
.vip-crown-art{position:absolute;right:7%;top:50%;transform:translateY(-50%);font-size:90px;color:#d9a83f;opacity:.16;text-shadow:0 0 30px #d9a83f}
.vip-benefit-section{margin:30px 0}
.centered{justify-content:center;text-align:center}
.vip-benefit-cards{display:grid;grid-template-columns:repeat(2,minmax(0,220px));justify-content:center;gap:16px}
.vip-benefit-cards article{padding:18px;border:1px solid #30333d;border-radius:14px;background:#1d2029;text-align:center}
.benefit-icon{font-size:30px}
.vip-benefit-cards h3{color:#f1e3c7;font-size:13px;margin:8px 0 5px}
.vip-benefit-cards p{color:#969aa6;font-size:11px;margin:0}
.vip-data-panel{border:1px solid #6f5428;border-radius:17px;padding:22px 24px 28px;background:#191c24}
.vip-panel-banner{min-height:115px;display:flex;align-items:center;justify-content:space-between;text-align:center;padding:10px 18px 18px;border-bottom:1px solid #30333d;background:radial-gradient(ellipse at center,#5c451d22,transparent 65%)}
.vip-panel-banner h2{color:#f4e3c2;font-size:17px;font-weight:700}
.vip-panel-banner p{color:#aeb0b9;font-size:12px;margin:0}
.vip-side-character{color:#d8ad50;font-size:42px;opacity:.65}
.vip-main-tabs,.vip-category-tabs{display:flex;gap:22px;border-bottom:1px solid #30333d;margin:12px 0 18px}
.vip-main-tabs button,.vip-category-tabs button{background:none;border:0;color:#c7c2b7;padding:10px 12px 12px;font-size:12px}
.vip-main-tabs button.active,.vip-category-tabs button.active{color:#f1c65e;border-bottom:2px solid #e4b64d}
.vip-category-tabs{padding:0 10px;border:1px solid #30333d;border-radius:10px;gap:12px;margin:0 0 14px}
.vip-table-wrap{overflow-x:auto}
.vip-table{width:100%;border-collapse:collapse;min-width:620px;color:#c5c6cc;font-size:12px}
.vip-table th{text-align:left;background:#252832;color:#e0dfdf;font-weight:700;padding:12px;white-space:nowrap}
.vip-table td{padding:11px 12px;border-bottom:1px solid #292c35}
.vip-table tbody tr:hover{background:#ffffff06}
.vip-point-rule{color:#d0c9bc;font-size:12px;margin:22px 0 0}
@media(max-width:900px){.feature-main{margin-left:0;padding:22px 16px 80px}.promotion-featured{grid-template-columns:1fr;gap:10px}.promotion-image{height:150px}.feature-hero{padding:26px}.feature-hero-art{width:28%}.referral-hero{padding:25px}.referral-art{width:210px}}
@media(max-width:700px){.feature-main{padding:18px 12px 82px}.feature-hero{min-height:190px;padding:22px}.feature-hero-art{width:34%}.feature-hero h1,.vip-page-hero h1{font-size:25px}.feature-hero p,.vip-page-hero p{font-size:11px}.feature-title-row h2{font-size:18px}.promotion-cards{grid-template-columns:1fr}.promotion-featured{grid-column:auto}.promotion-card{min-height:190px;padding:19px}.referral-hero{min-height:230px;padding:22px}.referral-copy{max-width:100%}.referral-copy h2{font-size:19px}.referral-copy p{max-width:65%;font-size:11px}.referral-art{position:absolute;right:-42px;bottom:-18px;width:160px;height:150px;opacity:.7}.referral-medallion{width:110px;height:110px;font-size:54px}.referral-steps{margin-top:32px}.referral-step-grid{grid-template-columns:1fr;gap:10px}.step-connector{transform:rotate(90deg)}.referral-step{min-height:145px;padding:20px}.vip-page-hero{min-height:175px;padding:22px 16px}.vip-crown-art{right:5%;font-size:58px}.vip-benefit-cards{grid-template-columns:1fr 1fr;gap:9px}.vip-benefit-cards article{padding:13px 8px}.vip-data-panel{padding:12px}.vip-panel-banner{min-height:100px;padding:10px 0}.vip-panel-banner h2{font-size:14px}.vip-panel-banner p{font-size:10px}.vip-side-character{font-size:27px}.vip-main-tabs{gap:8px}.vip-main-tabs button,.vip-category-tabs button{padding:9px 8px;font-size:11px}}

/* Consistent top offset for Promotions, VIP and Referral on smaller screens. */
@media(max-width:900px){
  .feature-main{padding-top:82px}
}
@media(max-width:700px){
  .feature-main{padding-top:82px}
  .feature-hero,.vip-page-hero{min-height:205px}
  .referral-hero{min-height:225px}
}


/* ================================================================
   LUCKYGOLDENSLOT RESPONSIVE LAYOUT REPAIR
   Keeps the existing visual theme while using the full available canvas.
   ================================================================ */
:root { --sidebar: 174px; }
html, body { width:100%; min-height:100%; overflow-x:hidden; }
.topbar { width:100%; left:0; right:0; }
.logo { left:calc(var(--sidebar) + 22px); width:190px; height:48px; top:3px; }
.logo img { max-height:52px; object-fit:contain; }
.sidebar { top:62px; height:calc(100vh - 62px); overflow-y:auto; }
.content {
  width:calc(100% - var(--sidebar) - 48px) !important;
  max-width:1600px;
  margin:78px auto 38px calc(var(--sidebar) + 24px) !important;
  padding:0;
}
.hero { width:100%; height:clamp(220px, 26vw, 430px); border-radius:14px; }
.hero-slide a, .hero-slide picture { display:block; width:100%; height:100%; }
.hero-slide img { width:100%; height:100%; object-fit:cover; object-position:center; }
.games-section { width:100%; }
.rail-frame { width:100%; height:auto; min-height:220px; }
.game-rail { width:100%; min-height:194px; }
.game { flex:0 0 clamp(128px, 12vw, 180px); height:auto; min-height:190px; }
.game .art { width:100%; aspect-ratio:1/1; height:auto; }
.game h3 { margin:7px 7px 2px; font-size:12px; }
.game p { margin:0 7px 8px; font-size:10px; }
.promos { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.footer { width:100%; margin-left:0; }
.footer-inner { width:min(1400px, calc(100% - 48px)); margin:0 auto; }
@media (min-width:1600px) {
  .content { width:calc(100% - var(--sidebar) - 80px) !important; max-width:1680px; }
  .game { flex-basis:180px; }
}
@media (max-width:1050px) {
  .content { width:calc(100% - var(--sidebar) - 32px) !important; margin-left:calc(var(--sidebar) + 16px) !important; }
  .logo { left:calc(var(--sidebar) + 18px); }
}
@media (max-width:700px) {
  :root { --sidebar:0px; }
  .topbar { height:58px; }
  .logo { left:58px !important; width:150px; height:46px; top:5px; }
  .menu-button { left:12px; top:10px; }
  .account-actions { padding-right:10px; gap:6px; }
  .account-actions button { height:32px; padding:0 10px; font-size:10px; }
  .sidebar { top:58px; height:calc(100vh - 58px); transform:translateX(-105%); transition:transform .25s ease; }
  body.sidebar-open .sidebar { transform:translateX(0); }
  .content { width:calc(100% - 24px) !important; max-width:none; margin:72px 12px 28px !important; }
  .hero { height:clamp(150px, 48vw, 260px); border-radius:10px; }
  .section-heading { height:54px; }
  .section-heading h2 { font-size:14px; }
  .controls button { min-width:34px; height:34px; }
  .controls .see-all { min-width:58px; padding:0 9px; }
  .rail-frame { min-height:176px; padding:6px; }
  .game-rail { min-height:158px; gap:8px; }
  .game { flex-basis:clamp(112px, 34vw, 145px); min-height:154px; }
  .promos { grid-template-columns:1fr; gap:10px; }
  .footer-inner { width:calc(100% - 28px); grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }


/* Final homepage carousel sizing and transition overrides */
.hero{position:relative;width:100%;aspect-ratio:16/5;min-height:170px;max-height:430px;overflow:hidden;border-radius:12px;background:#10131b;isolation:isolate}
.hero-track{display:flex;width:100%;height:100%;transition:transform .65s cubic-bezier(.22,.61,.36,1);will-change:transform}
.hero-slide{position:relative;flex:0 0 100%;width:100%;height:100%;min-width:100%;overflow:hidden}
.hero-slide>a{display:block;width:100%;height:100%}
.hero-slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.hero-arrow{z-index:3;position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:38px;height:46px;border:1px solid #f3d27b66;border-radius:9px;background:#10131bbd;color:#ffe29a;font-size:27px;line-height:1;cursor:pointer}
.hero-arrow.prev{left:12px}.hero-arrow.next{right:12px}.hero-arrow:hover{background:#d5a33b;color:#17120a}
.hero-dots{z-index:3;position:absolute;left:50%;bottom:13px;transform:translateX(-50%);display:flex;gap:8px;padding:7px 10px;border-radius:30px;background:#10131b70}
.hero-dots button{width:8px;height:8px;min-width:8px;padding:0;border:0;border-radius:50%;background:#d4d4d4a8;cursor:pointer}
.hero-dots button.active{width:22px;border-radius:10px;background:#f4ca63}
.hero-caption{position:absolute;left:5%;bottom:9%;display:flex;flex-direction:column;gap:5px;color:#fff;text-shadow:0 2px 8px #000}.hero-caption strong{font-size:clamp(16px,2vw,30px)}.hero-caption small{font-size:clamp(11px,1.2vw,16px)}
@media(max-width:700px){.hero{aspect-ratio:16/7;min-height:130px;border-radius:8px}.hero-arrow{width:30px;height:36px;font-size:21px}.hero-arrow.prev{left:7px}.hero-arrow.next{right:7px}.hero-dots{bottom:7px}.hero-caption{left:4%;bottom:10%}}
@media(prefers-reduced-motion:reduce){.hero-track{transition:none}}



/* =========================================================
   LuckyGoldenSlot responsive shell repair (Dec 2026)
   Header always spans the viewport; sidebar starts below it.
   ========================================================= */
:root { --lgs-header-height: 88px; --lgs-sidebar-width: 158px; }
html, body { min-height:100%; width:100%; overflow-x:hidden; }
body { padding-top:var(--lgs-header-height); }
.topbar {
  position:fixed !important; inset:0 0 auto 0 !important;
  width:100% !important; height:var(--lgs-header-height) !important;
  z-index:1050 !important; display:flex !important;
}
.menu-button {
  position:absolute !important; left:17px !important; top:25px !important;
  z-index:3 !important;
}
.logo {
  position:absolute !important; left:calc(var(--lgs-sidebar-width) + 18px) !important;
  top:12px !important; width:150px !important; height:64px !important;
  display:flex !important; align-items:center !important;
}
.logo img { width:100% !important; max-height:64px !important; object-fit:contain !important; }
.site-account-actions { margin-left:auto !important; padding:0 28px 0 12px !important; }
.sidebar {
  position:fixed !important; left:0 !important; top:var(--lgs-header-height) !important;
  width:var(--lgs-sidebar-width) !important; height:calc(100dvh - var(--lgs-header-height)) !important;
  min-height:0 !important; overflow-y:auto !important; overflow-x:hidden !important;
  z-index:1040 !important; background:#12151e !important;
}
.sidebar nav a { min-height:43px !important; height:auto !important; padding:0 18px !important; }
.sidebar-backdrop { z-index:1030 !important; }
.content {
  box-sizing:border-box !important; display:block !important;
  width:auto !important; max-width:none !important;
  min-width:0 !important; margin:0 28px 0 calc(var(--lgs-sidebar-width) + 22px) !important;
  padding:0 0 34px !important;
}
.hero {
  width:100% !important; height:clamp(260px, 34vw, 600px) !important;
  min-height:220px !important; border:1px solid #6b5422 !important;
  border-radius:12px !important; isolation:isolate;
}
.hero-track { width:100%; height:100%; will-change:transform; }
.hero-slide { flex:0 0 100% !important; width:100% !important; height:100% !important; position:relative; }
.hero-slide > a { display:block; width:100%; height:100%; }
.hero-slide img { width:100% !important; height:100% !important; object-fit:cover !important; object-position:center !important; }
.hero-caption { position:absolute; left:5%; bottom:7%; z-index:2; display:flex; flex-direction:column; gap:5px; max-width:50%; color:#fff; text-shadow:0 2px 8px #000; }
.hero-caption strong { font-size:clamp(16px,2vw,30px); }
.hero-caption small { font-size:clamp(11px,1.2vw,16px); }
.hero-caption b { display:inline-flex; width:max-content; padding:7px 16px; border-radius:20px; background:linear-gradient(#ffe99a,#d69a2e); color:#211606; }
.hero-arrow { z-index:5 !important; }
.hero-dots { z-index:6 !important; }
.games-section { width:100%; min-width:0; margin-top:20px !important; }
.rail-frame { width:100% !important; height:clamp(190px, 17vw, 250px) !important; overflow:hidden !important; }
.game-rail { height:100% !important; overflow-x:auto !important; overflow-y:hidden !important; scroll-snap-type:x proximity; }
.game { flex:0 0 clamp(130px, 10.5vw, 176px) !important; height:100% !important; scroll-snap-align:start; }
.game .art { height:calc(100% - 36px) !important; min-height:130px; }
.game .art img { width:100%; height:100%; object-fit:cover; }
.game h3 { font-size:12px !important; }
.game p { font-size:10px !important; }
.new-games { margin-top:24px !important; }
.promos { margin-top:28px !important; margin-bottom:30px !important; }
.footer { margin-left:var(--lgs-sidebar-width) !important; width:calc(100% - var(--lgs-sidebar-width)) !important; }
.account-dropdown { position:relative; }
.account-dropdown-menu { z-index:1100 !important; }
@media (max-width: 900px) {
  :root { --lgs-sidebar-width:0px; --lgs-header-height:76px; }
  .logo { left:70px !important; width:138px !important; top:7px !important; height:60px !important; }
  .menu-button { top:20px !important; }
  .sidebar { width:250px !important; max-width:82vw; transform:translateX(-105%); transition:transform .25s ease; }
  body.sidebar-open .sidebar, .sidebar.open, .sidebar.active { transform:translateX(0); }
  .content { margin:0 14px !important; }
  .footer { margin-left:0 !important; width:100% !important; }
  .hero { height:clamp(210px, 42vw, 390px) !important; }
}
@media (max-width: 560px) {
  :root { --lgs-header-height:68px; }
  .logo { left:60px !important; width:122px !important; height:54px !important; }
  .menu-button { left:12px !important; top:16px !important; }
  .site-account-actions { padding-right:10px !important; gap:6px !important; }
  .account-actions button, .site-account-actions > button { height:32px !important; padding:0 10px !important; font-size:11px !important; }
  .content { margin:0 10px !important; padding-bottom:20px !important; }
  .hero { min-height:190px !important; height:55vw !important; max-height:280px !important; border-radius:8px !important; }
  .hero-caption { max-width:68%; bottom:5%; left:4%; }
  .hero-caption strong { font-size:14px; }
  .hero-caption small { font-size:10px; }
  .hero-caption b { padding:5px 10px; font-size:10px; }
  .section-heading { height:54px !important; }
  .controls button { min-width:34px !important; height:34px !important; }
  .rail-frame { height:190px !important; padding:6px !important; }
  .game { flex-basis:124px !important; }
  .game .art { min-height:140px; }
  .promos { grid-template-columns:1fr !important; gap:10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-track, .sidebar, .game-rail { scroll-behavior:auto !important; transition:none !important; }
}


/* Final geometry correction: keep the sidebar entirely below the fixed header. */
:root { --lgs-header-height:88px; --lgs-sidebar-width:158px; }
.topbar { height:88px !important; min-height:88px !important; z-index:1200 !important; }
.sidebar { top:88px !important; height:calc(100dvh - 88px) !important; z-index:1100 !important; }
.content { margin-top:14px !important; }
.category-main { margin-top:14px !important; }
.sidebar-backdrop { top:88px !important; height:calc(100dvh - 88px) !important; z-index:1090 !important; }
@media(max-width:900px) {
  :root { --lgs-header-height:76px; --lgs-sidebar-width:0px; }
  .topbar { height:76px !important; min-height:76px !important; }
  .sidebar { top:76px !important; height:calc(100dvh - 76px) !important; z-index:1100 !important; }
  .sidebar-backdrop { top:76px !important; height:calc(100dvh - 76px) !important; }
  .content,.category-main { margin-top:12px !important; }
}
@media(max-width:560px) {
  :root { --lgs-header-height:68px; }
  .topbar { height:68px !important; min-height:68px !important; }
  .sidebar { top:68px !important; height:calc(100dvh - 68px) !important; }
  .sidebar-backdrop { top:68px !important; height:calc(100dvh - 68px) !important; }
}

/* Image-only clickable homepage slider; admin title/link remain stored, not overlaid. */
.hero-slide{position:relative;flex:0 0 100%;width:100%;height:100%;overflow:hidden}
.hero-slide>a.hero-image-link{display:block;width:100%;height:100%;line-height:0}
.hero-slide>img,.hero-slide>a.hero-image-link>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.hero-caption{display:none!important}

/* Final layout repair v4 */

body:is(#lgs-public, :not(#lgs-public)) { --page-sidebar: var(--lgs-sidebar-width,158px); --page-gutter:24px; padding-top:var(--lgs-header-height,88px) !important; margin:0 !important; }
body:is(#lgs-public, :not(#lgs-public)).sidebar-hidden { --page-sidebar:0px; }
body:is(#lgs-public, :not(#lgs-public)) main.category-main, body:is(#lgs-public, :not(#lgs-public)) main.provider-main, body:is(#lgs-public, :not(#lgs-public)) main.feature-main, body:is(#lgs-public, :not(#lgs-public)) main.help-main, body:is(#lgs-public, :not(#lgs-public)) main.account-main { box-sizing:border-box; width:auto !important; max-width:none !important; min-width:0 !important; margin:0 var(--page-gutter) 40px calc(var(--page-sidebar) + var(--page-gutter)) !important; padding:16px 0 0 !important; }
body:is(#lgs-public, :not(#lgs-public)) .category-banner { margin-top:0 !important; }
body:is(#lgs-public, :not(#lgs-public)) .category-toolbar { grid-template-columns:minmax(0,1fr) minmax(150px,240px) !important; }
body:is(#lgs-public, :not(#lgs-public)) footer.footer { box-sizing:border-box; width:auto !important; max-width:none !important; margin:0 0 0 var(--page-sidebar) !important; padding:0 !important; }
body:is(#lgs-public, :not(#lgs-public)) footer.footer .footer-inner { box-sizing:border-box; display:grid !important; width:100% !important; max-width:1600px !important; min-width:0 !important; margin:0 auto !important; padding:36px var(--page-gutter) 28px !important; grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr) minmax(0,1.1fr) minmax(0,.65fr) minmax(0,1.4fr) !important; gap:24px !important; min-height:0 !important; }
body:is(#lgs-public, :not(#lgs-public)) footer.footer .footer-inner > * { min-width:0 !important; max-width:100% !important; overflow-wrap:anywhere; }
body:is(#lgs-public, :not(#lgs-public)) footer.footer .footer-logo { width:100% !important; max-width:250px !important; height:auto !important; margin:0 !important; }
body:is(#lgs-public, :not(#lgs-public)) footer.footer .footer-logo img { width:100% !important; height:auto !important; }
body:is(#lgs-public, :not(#lgs-public)) footer.footer .footer-col h4 { white-space:normal !important; }
body:is(#lgs-public, :not(#lgs-public)) footer.footer .license-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
body:is(#lgs-public, :not(#lgs-public)) footer.footer .license-grid img { width:100% !important; max-width:100% !important; height:38px; object-fit:contain; }
body:is(#lgs-public, :not(#lgs-public)) footer.footer .copyright { width:auto !important; margin:0 !important; height:auto !important; min-height:56px; padding:12px; text-align:center; }
body:is(#lgs-public, :not(#lgs-public)) .telegram-support { z-index:1190; }
body:is(#lgs-public, :not(#lgs-public)) .telegram-support .telegram-panel { bottom:72px; max-height:calc(100dvh - 170px); overflow-y:auto; }
@media(max-width:1100px){body:is(#lgs-public, :not(#lgs-public)) footer.footer .footer-inner {grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:20px !important;}}
@media(max-width:900px){body:is(#lgs-public, :not(#lgs-public)) {--page-sidebar:0px;--page-gutter:14px;}}
@media(max-width:700px){body:is(#lgs-public, :not(#lgs-public)) {--page-gutter:12px;} body:is(#lgs-public, :not(#lgs-public)) main.category-main,body:is(#lgs-public, :not(#lgs-public)) main.provider-main,body:is(#lgs-public, :not(#lgs-public)) main.feature-main,body:is(#lgs-public, :not(#lgs-public)) main.help-main,body:is(#lgs-public, :not(#lgs-public)) main.account-main {padding-top:12px !important;} body:is(#lgs-public, :not(#lgs-public)) .category-toolbar {grid-template-columns:minmax(0,1fr) !important;} body:is(#lgs-public, :not(#lgs-public)) footer.footer .footer-inner {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:20px !important;padding:24px 12px !important;} body:is(#lgs-public, :not(#lgs-public)) footer.footer .footer-logo,body:is(#lgs-public, :not(#lgs-public)) footer.footer .licenses {grid-column:1/-1;grid-row:auto;} body:is(#lgs-public, :not(#lgs-public)) footer.footer .license-grid {max-width:340px;} body:is(#lgs-public, :not(#lgs-public)) .telegram-support .telegram-panel {bottom:60px;max-height:calc(100dvh - 210px);} }

/* Explicit sizing of the outer and inner footer; no second sidebar offset. */
body:is(#lgs-public, :not(#lgs-public)) footer.footer {width:calc(100% - var(--page-sidebar)) !important; max-width:calc(100% - var(--page-sidebar)) !important; overflow:hidden;}
body:is(#lgs-public, :not(#lgs-public)) footer.footer .footer-inner {width:100% !important; max-width:100% !important;}
body:is(#lgs-public, :not(#lgs-public)) footer.footer .license-grid {display:grid; width:100%; min-width:0; gap:12px;}
body:is(#lgs-public, :not(#lgs-public)) footer.footer .license-grid img {min-width:0;}
body:is(#lgs-public, :not(#lgs-public)) main.category-main .category-banner {margin-top:0 !important;}
body:is(#lgs-public, :not(#lgs-public)) .telegram-panel.open {visibility:visible !important;opacity:1 !important;transform:none !important;display:block !important;}

.telegram-support .telegram-compose {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.telegram-compose input {
    display: block !important;
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    background: #252b36;
    color: #fff;
    border: 1px solid #3a4250;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
}

.telegram-compose button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: #229ed9;
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.telegram-compose button:hover {
    background: #168ac0;
}

.telegram-powered {
    padding: 10px;
    text-align: center;
    font-size: 12px;
}

.telegram-powered a {
    color: #e8c56e;
    text-decoration: none;
}

/* Homepage carousel and uncropped mobile banner */
#home .game-rail { scroll-snap-type: x mandatory; position: relative; }
#home .game-rail .game { scroll-snap-align: start; }
#home .game-rail.dragging { scroll-snap-type: none; scroll-behavior: auto !important; }
@media (max-width: 900px) {
  #home .hero { width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: var(--mobile-banner-ratio, 2.85 / 1) !important; }
  #home .hero .hero-track { position: absolute; inset: 0; width: 100%; height: 100%; }
  #home .hero .hero-slide img { width: 100% !important; height: 100% !important; object-fit: contain !important; }
  #home .hero-dots { bottom: 3px; padding: 4px 7px; }
  #home .game-rail { gap: 8px; }
  #home .game-rail .game { flex: 0 0 calc((100% - 16px) / 3) !important; min-width: 0; }
  #home .game .art { min-height: 0 !important; }
  #home .game-download-hover { max-width: calc(100% - 8px); padding: 7px 8px !important; gap: 4px !important; }
}

/* 3:1 banner: preserve full artwork on every viewport */
#home .hero { width:100%!important; height:auto!important; min-height:0!important; max-height:none!important; aspect-ratio:3/1!important; overflow:hidden; }
#home .hero-track { display:flex; width:100%; height:100%!important; }
#home .hero-slide { flex:0 0 100%; min-width:0; height:100%!important; }
#home .hero-slide a, #home .hero-slide picture { display:block; width:100%; height:100%; }
#home .hero-slide img { display:block!important; width:100%!important; height:100%!important; object-fit:contain!important; object-position:center!important; }
@media(max-width:767px){ #home .hero-dots{bottom:7px;} #home .hero-arrow{width:26px;height:30px;} }
@media(prefers-reduced-motion:reduce){#home .hero-track{transition:none!important;}}
