@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700;900&display=swap");

:root {
  --theme1-bg: #8c6612;
  --theme2-bg: #0d5c54;
  --theme-red: #c41e1e;
  --site-max: 480px;
  --fab-bottom: 70px;
  --footer-h: 50px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Roboto, "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  background: #000;
  color: #212529;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.app {
  max-width: var(--site-max);
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  position: relative;
}

/* ===== Header ===== */
.site-header {
  background: var(--theme1-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  gap: 8px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.home-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.brand-logo {
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-signup,
.btn-login {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 3px;
  line-height: 1.25;
  white-space: nowrap;
}

.btn-signup {
  background: var(--theme2-bg);
  color: #fff;
}

.btn-login {
  background: #fff;
  color: #111;
}

/* ===== Ticker ===== */
.ticker {
  background: #fff;
  height: 20px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #eee;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  position: absolute;
  left: 0;
  top: 50%;
  color: #111;
  font-size: 11px;
  font-weight: 500;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}

.ticker-track span {
  display: inline-block;
  padding-right: 80px;
}

@keyframes ticker-scroll {
  0% {
    transform: translate(100%, -50%);
  }
  100% {
    transform: translate(-100%, -50%);
  }
}

/* ===== Main nav — mustard like original ===== */
.main-nav {
  background: var(--theme1-bg);
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex: 1 1 auto;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  padding: 7px 8px;
  white-space: nowrap;
  text-align: center;
  position: relative;
}

.main-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(255, 255, 255, 0.65);
}

/* ===== Filters ===== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  background: #fff;
}

.filter-pills {
  display: flex;
  gap: 6px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #111;
  background: #fff;
  text-transform: uppercase;
  line-height: 1.45;
}

.filter-pill .dash {
  margin-right: 3px;
  font-weight: 700;
}

.view-by {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #222;
}

.view-by select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--theme1-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23fff'/%3E%3C/svg%3E")
    no-repeat right 7px center;
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 20px 3px 7px;
  cursor: pointer;
}

.norecords {
  background: #bdbdbd;
  color: #333;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  line-height: 1.3;
}

/* ===== Game grids ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #ddd;
  width: 100%;
}

.game-tile {
  display: block;
  position: relative;
  background: #0a0a0a;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.game-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Featured static GIFs — slightly less tall, match shot 1 */
.static-home-games {
  background: #111;
  gap: 1px;
}

.static-home-games .game-tile {
  aspect-ratio: 1 / 1.02;
}

#newLaunchGames .game-tile,
.casino-panel .game-tile {
  aspect-ratio: 1 / 1.12;
}

/* ===== NEW LAUNCH ===== */
.new-launch-bar {
  display: block;
  background: var(--theme-red);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 10px;
  line-height: 1.2;
}

.new-launch-bar span {
  display: inline-block;
  animation: zoom-pulse 2s infinite;
}

@keyframes zoom-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===== Casino tabs ===== */
.casino-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #000;
  padding: 4px;
}

.casino-tabs::-webkit-scrollbar {
  display: none;
}

.casino-tab {
  flex: 0 0 auto;
  background: var(--theme2-bg);
  color: #fff;
  border: 1px solid var(--theme2-bg);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 10px;
  white-space: nowrap;
  line-height: 1.35;
}

.casino-tab.active {
  background: var(--theme1-bg);
  border-color: #fff;
}

.casino-panel {
  display: none;
  background: #111;
}

.casino-panel.active {
  display: grid;
}

/* ===== SSL / trust — match shot 12 ===== */
.trust-strip {
  background: #fff;
  padding: 12px 10px 5px;
}

.ssl-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ssl-badge {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0;
}

.ssl-badge img {
  grid-row: 1 / 3;
  width: 48px;
  margin-right: 4px;
}

.ssl-pill {
  grid-column: 2;
  grid-row: 1;
  background: #62c354;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px 3px 0 0;
  letter-spacing: 0;
  line-height: 1;
  margin-top: 0;
}

.ssl-sub {
  grid-column: 2;
  grid-row: 2;
  background: #444;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 0 0 3px 3px;
  line-height: 1;
  margin-top: 0;
}

.ssl-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #000;
  line-height: 1.15;
}

.ssl-copy span {
  display: block;
  font-size: 10px;
  color: #111;
}

.trust-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0;
}

.trust-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
}

.trust-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trust-icons .faq-circle {
  background: #333;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.page-copyright {
  text-align: center;
  font-size: 11px;
  color: #555;
  padding: 8px 8px 6px;
  line-height: 1.2;
  background: #fff;
  margin-bottom: 0;
}

/* ===== Sticky footer ===== */
.sticky-footer {
  width: 100%;
  background: var(--theme1-bg);
  padding: 0;
  height: 50px;
  display: flex;
  align-items: center;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.footer-mini {
  display: none;
}

.btn-download {
  background: #000000;
  color: #111;
  border-radius: 25px;
  padding: 4px 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 170px;
  margin: 0 auto;
}

.btn-download .dl-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.btn-download .dl-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #666;
  margin-top: 2px;
}

.footer-socials {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.footer-socials .tg {
  background: #0088cc;
}

.footer-socials .wa {
  background: #25d366;
}

.footer-socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ===== FABs — match original stacking ===== */
.fab-chat {
  position: fixed;
  left: max(8px, calc(50% - var(--site-max) / 2 + 8px));
  bottom: 74px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #7b2cbf;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 210;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.fab-chat svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.fab-minigames {
  display: none;
}

.fab-support {
  position: fixed;
  right: max(6px, calc(50% - var(--site-max) / 2 + 6px));
  bottom: 18px;
  width: 66px;
  height: 66px;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-support img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.back-to-top {
  position: fixed;
  right: max(12px, calc(50% - var(--site-max) / 2 + 12px));
  bottom: 75px;
  width: 34px;
  height: 34px;
  background: var(--theme2-bg);
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 210;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  display: flex;
}

@media (min-width: 481px) {
  body {
    background: #0a0a0a;
  }

  .app {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
  }
}
