/* Rolet303 home2 — dark red / gold landing */
:root {
  --h2-bg: #000;
  --h2-red: #e10600;
  --h2-red-dark: #7a0000;
  --h2-gold: #f5c518;
  --h2-text: #fff;
  --h2-muted: #c9c9c9;
  --h2-max: 1180px;
  --h2-tab: 76px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--h2-bg);
  color: var(--h2-text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

.h2-page {
  min-height: 100vh;
  padding-bottom: calc(var(--h2-tab) + 20px);
  background: #000;
}

.h2-wrap {
  width: 100%;
  max-width: var(--h2-max);
  margin: 0 auto;
  padding: 0 14px;
}

/* header */
.h2-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #000 url("../../images/home2/header-line.png") no-repeat center bottom;
  background-size: 100% 10px;
  border-bottom: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.h2-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  max-width: var(--h2-max);
  margin: 0 auto;
  padding: 8px 14px;
}
.h2-logo img {
  height: 38px;
  width: auto;
}
.h2-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.h2-actions img {
  height: 36px;
  width: auto;
}
.h2-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.h2-user span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h2-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
}
.h2-chip-ghost {
  border: 1px solid #8a7a62;
  background: #000;
  color: #fff;
}
.h2-chip-red {
  background: linear-gradient(180deg, #d40d0d 0%, #6b0000 100%);
  color: #fff;
  border: 1px solid #9a1010;
}

/* marquee */
.h2-marquee {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  background: #050505;
  border-bottom: 1px solid #1a1a1a;
  padding: 0 14px;
  max-width: var(--h2-max);
  margin: 0 auto;
}
.h2-marquee img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.h2-marquee marquee,
.h2-marquee .h2-running {
  flex: 1;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* hero */
.h2-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px 14px 4px;
  max-width: var(--h2-max);
  margin: 0 auto;
}
.h2-slider {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 168px;
  background: #120404;
}
.h2-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1475 / 417;
}
.h2-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.h2-slides img.is-on {
  opacity: 1;
  z-index: 1;
}
.h2-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.h2-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #6b6b6b;
  cursor: pointer;
}
.h2-dots button.is-on {
  background: var(--h2-red);
  box-shadow: 0 0 8px rgba(225, 6, 0, 0.8);
}

.h2-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px 4px;
  padding: 12px 10px 14px;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(225, 6, 0, 0.35);
  box-shadow: 0 0 18px rgba(160, 0, 0, 0.25), inset 0 0 24px rgba(80, 0, 0, 0.2);
}
.h2-cats a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: span 2;
  min-height: 92px;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.h2-cats a img {
  width: 86px;
  height: auto;
}
.h2-cats a:nth-child(4) { grid-column: 2 / 4; }
.h2-cats a:nth-child(5) { grid-column: 4 / 6; }
.h2-cats a.is-on,
.h2-cats a:hover {
  background: url("../../images/home2/cat-active.png") no-repeat center / contain;
  box-shadow: none;
}

/* sections */
.h2-section {
  max-width: var(--h2-max);
  margin: 0 auto;
  padding: 10px 14px 6px;
}
.h2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.h2-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.6px;
}
.h2-head h2 img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.h2-more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #eee;
}
.h2-more img {
  width: 10px;
  height: 14px;
}

.h2-promos {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.h2-promos::-webkit-scrollbar { height: 0; }
.h2-promos a {
  flex: 0 0 72%;
  max-width: 320px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 40, 0.45);
}
.h2-promos img {
  width: 100%;
  height: 124px;
  object-fit: cover;
}

.h2-games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.h2-game {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  isolation: isolate;
}
.h2-game > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 300 / 182;
}
.h2-game .h2-game-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 18px 7px 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.82) 55%);
  pointer-events: none;
}
.h2-game .h2-prov {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h2-game .h2-main {
  width: 36%;
  max-width: 68px;
  height: auto;
  flex-shrink: 0;
}

.h2-copy {
  max-width: var(--h2-max);
  margin: 8px auto 0;
  padding: 8px 14px 12px;
  color: #888;
  font-size: 11px;
  text-align: center;
}

.h2-article {
  max-width: var(--h2-max);
  margin: 0 auto;
  padding: 8px 14px 4px;
}
.h2-article .content-text-wrap,
.h2-article.rolet-public-page .content-text-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.h2-article .content-text-wrap > .wrapper {
  width: 100% !important;
  margin: 0 !important;
}

/* bottom nav — design dock (image 2), original site labels (image 1) */
.h2-tabbar-dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 50;
  width: min(calc(100% - 24px), var(--h2-max));
  background: #080808;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow:
    0 -8px 24px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(190, 30, 30, 0.4);
}
.h2-tabbar {
  width: 100%;
  height: var(--h2-tab);
  margin: 0;
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  padding: 6px 6px max(8px, env(safe-area-inset-bottom, 0px));
  gap: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.h2-tabbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  color: #fff;
  text-align: center;
  background: transparent;
}
.h2-tab-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: none;
  min-height: 60px;
  padding: 6px 4px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.15;
  text-transform: uppercase;
}
.h2-tabbar a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none;
}
.h2-tabbar a.is-on .h2-tab-pill {
  background: linear-gradient(180deg, #ff4a4a 0%, #e31818 40%, #b00c0c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 12px rgba(225, 20, 20, 0.3);
}

/* login modal */
.h2-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.72);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.h2-mask.is-open { display: flex; }
.h2-modal {
  width: 100%;
  max-width: 360px;
  padding: 22px 20px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #2a0a0a 0%, #0a0000 100%);
  border: 1px solid rgba(225, 6, 0, 0.45);
  box-shadow: 0 0 28px rgba(180, 0, 0, 0.35);
}
.h2-modal h3 {
  margin: 0 0 14px;
  text-align: center;
  font-size: 20px;
  letter-spacing: 1px;
}
.h2-modal label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  color: #ccc;
}
.h2-modal input {
  width: 100%;
  height: 42px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid #5a2020;
  border-radius: 10px;
  background: #140808;
  color: #fff;
  font-size: 14px;
}
.h2-modal .h2-submit {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #d40d0d 0%, #6b0000 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}
.h2-modal .h2-close {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: 0;
  color: #aaa;
  cursor: pointer;
  font-size: 12px;
}

@media (min-width: 860px) {
  .h2-logo img { height: 46px; }
  .h2-actions img { height: 40px; }
  .h2-hero {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: stretch;
    padding-top: 16px;
  }
  .h2-cats {
    min-height: 100%;
    align-content: center;
  }
  .h2-promos a {
    flex-basis: calc(25% - 8px);
    max-width: none;
  }
  .h2-promos img { height: 148px; }
  .h2-games {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  .h2-head h2 { font-size: 18px; }
}
