/* ============================================================
   Legend Link - style.css
   Mobile-first responsive styles. All custom classes use g893- prefix.
   Palette: #2D2D2D (bg) | #95A5A6 (mid) | #BBBBBB (text)
   ============================================================ */

:root {
  --g893-bg: #2d2d2d;
  --g893-bg-alt: #1f1f1f;
  --g893-bg-soft: #3a3a3a;
  --g893-text: #bbbbbb;
  --g893-text-strong: #f3f3f3;
  --g893-mid: #95a5a6;
  --g893-accent: #d4af37;
  --g893-accent-2: #e8c25a;
  --g893-line: rgba(187, 187, 187, 0.16);
  --g893-radius: 14px;
  --g893-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--g893-bg);
  color: var(--g893-text);
  font-size: 1.5rem;
  line-height: 1.5rem * 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--g893-accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.g893-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

main.g893-main {
  padding-top: 6.4rem;
  padding-bottom: 1rem;
}

@media (max-width: 768px) {
  main.g893-main {
    padding-bottom: 9rem;
  }
}

/* ---------------- Header ---------------- */
.g893-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #232323 0%, #2d2d2d 100%);
  border-bottom: 1px solid var(--g893-line);
  box-shadow: var(--g893-shadow);
}

.g893-header__bar {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.2rem;
  min-height: 5.6rem;
}

.g893-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--g893-text-strong);
  font-weight: 700;
}

.g893-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.g893-brand__name {
  font-size: 1.7rem;
  letter-spacing: 0.03em;
}

.g893-brand__name span {
  color: var(--g893-accent);
}

.g893-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.g893-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  min-height: 3.6rem;
  min-width: 4.4rem;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, background 0.2s ease;
}

.g893-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.g893-btn--ghost {
  background: transparent;
  color: var(--g893-text);
  border: 1px solid var(--g893-line);
}

.g893-btn--primary {
  background: linear-gradient(135deg, var(--g893-accent), var(--g893-accent-2));
  color: #1c1c1c;
}

.g893-btn--accent {
  background: var(--g893-bg-soft);
  color: var(--g893-text-strong);
}

.g893-menu-toggle {
  background: transparent;
  border: 1px solid var(--g893-line);
  color: var(--g893-text-strong);
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------------- Mobile Menu ---------------- */
.g893-mobile-menu {
  position: fixed;
  top: 5.6rem;
  right: 0;
  width: 78%;
  max-width: 320px;
  background: #1b1b1b;
  border-left: 1px solid var(--g893-line);
  box-shadow: var(--g893-shadow);
  transform: translateX(110%);
  transition: transform 0.28s ease;
  z-index: 9999;
  padding: 1.2rem 0.8rem;
  visibility: hidden;
}

.g893-mobile-menu.g893-menu-open {
  transform: translateX(0);
  visibility: visible;
}

.g893-mobile-menu a {
  display: block;
  padding: 1.05rem 1.1rem;
  color: var(--g893-text);
  border-radius: 8px;
  font-size: 1.45rem;
  border-bottom: 1px dashed rgba(187, 187, 187, 0.08);
}

.g893-mobile-menu a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--g893-text-strong);
  text-decoration: none;
}

.g893-mobile-menu__title {
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--g893-mid);
  letter-spacing: 0.1em;
  padding: 0 1.1rem 0.5rem;
}

/* ---------------- Carousel ---------------- */
.g893-carousel {
  position: relative;
  border-radius: var(--g893-radius);
  overflow: hidden;
  margin: 1.2rem 0;
  box-shadow: var(--g893-shadow);
}

.g893-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.g893-slide.g893-slide-active {
  display: block;
}

.g893-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.g893-slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  color: var(--g893-text-strong);
}

.g893-slide__caption strong {
  color: var(--g893-accent-2);
  font-size: 1.55rem;
}

.g893-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g893-carousel__arrow--prev { left: 0.8rem; }
.g893-carousel__arrow--next { right: 0.8rem; }

.g893-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.g893-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}

.g893-dot.g893-dot-active {
  background: var(--g893-accent);
  width: 18px;
  border-radius: 6px;
}

/* ---------------- Sections ---------------- */
.g893-section {
  margin: 2rem 0;
}

.g893-section__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.g893-section__title {
  font-size: 1.8rem;
  color: var(--g893-text-strong);
  margin: 0;
  font-weight: 700;
}

.g893-section__title span,
.g893-h1 span,
.g893-cta__title span {
  color: var(--g893-accent);
}

.g893-h1 {
  font-size: 2rem;
  line-height: 1.25;
  color: var(--g893-text-strong);
  margin: 1.2rem 0 0.6rem;
}

.g893-lead {
  color: var(--g893-text);
  margin-bottom: 1.2rem;
}

/* ---------------- Game Grid ---------------- */
.g893-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.g893-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--g893-bg-alt);
  border-radius: 12px;
  padding: 0.7rem 0.5rem;
  border: 1px solid var(--g893-line);
  transition: transform 0.15s ease, border-color 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.g893-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--g893-accent);
  text-decoration: none;
}

.g893-game-card img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.45rem;
}

.g893-game-card__name {
  font-size: 1.15rem;
  color: var(--g893-text);
  line-height: 1.2;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g893-cat-label {
  display: inline-block;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1c1c1c;
  background: linear-gradient(135deg, var(--g893-accent), var(--g893-accent-2));
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

/* ---------------- Info / Feature blocks ---------------- */
.g893-card {
  background: var(--g893-bg-alt);
  border: 1px solid var(--g893-line);
  border-radius: var(--g893-radius);
  padding: 1.4rem;
  margin-bottom: 1.1rem;
}

.g893-card h2,
.g893-card h3 {
  color: var(--g893-text-strong);
  margin-top: 0;
}

.g893-card h2 { font-size: 1.7rem; }
.g893-card h3 { font-size: 1.45rem; }

.g893-card p {
  margin: 0.6rem 0;
  color: var(--g893-text);
}

.g893-list {
  padding-left: 1.6rem;
  margin: 0.6rem 0;
}

.g893-list li {
  margin-bottom: 0.5rem;
}

.g893-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.g893-feature {
  background: var(--g893-bg-soft);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.g893-feature i,
.g893-feature .material-icons,
.g893-feature ion-icon {
  color: var(--g893-accent);
  font-size: 2.2rem;
}

.g893-feature__title {
  display: block;
  margin-top: 0.5rem;
  color: var(--g893-text-strong);
  font-weight: 600;
  font-size: 1.25rem;
}

.g893-inline-link {
  color: var(--g893-accent-2);
  font-weight: 700;
}

.g893-promo-line {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.04));
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  margin: 1rem 0;
  color: var(--g893-text-strong);
  font-weight: 600;
}

.g893-promo-line a {
  color: var(--g893-accent-2);
  font-weight: 800;
}

/* Testimonials, winners */
.g893-review {
  border-left: 3px solid var(--g893-accent);
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  background: var(--g893-bg-alt);
  border-radius: 0 10px 10px 0;
}

.g893-review__who {
  color: var(--g893-text-strong);
  font-weight: 700;
  font-size: 1.3rem;
}

.g893-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 1.3rem;
}

.g893-table th,
.g893-table td {
  border: 1px solid var(--g893-line);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.g893-table th {
  background: var(--g893-bg-soft);
  color: var(--g893-text-strong);
}

.g893-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.g893-badge {
  background: var(--g893-bg-soft);
  color: var(--g893-text-strong);
  border: 1px solid var(--g893-line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 1.15rem;
}

/* ---------------- CTA block ---------------- */
.g893-cta {
  background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.22), transparent 70%), var(--g893-bg-alt);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--g893-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1.5rem 0;
}

.g893-cta__title {
  font-size: 1.9rem;
  margin: 0 0 0.6rem;
  color: var(--g893-text-strong);
}

/* ---------------- Footer ---------------- */
.g893-footer {
  background: #1a1a1a;
  border-top: 1px solid var(--g893-line);
  padding: 2rem 1.2rem 2.5rem;
  margin-top: 2rem;
  color: var(--g893-text);
}

.g893-footer__brand {
  font-size: 1.6rem;
  color: var(--g893-text-strong);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.g893-footer__desc {
  margin-bottom: 1.1rem;
  font-size: 1.3rem;
}

.g893-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  margin-bottom: 1.1rem;
}

.g893-footer__links a {
  color: var(--g893-text);
  font-size: 1.25rem;
  background: var(--g893-bg-soft);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--g893-line);
}

.g893-footer__links a:hover {
  color: var(--g893-accent-2);
  border-color: var(--g893-accent);
  text-decoration: none;
}

.g893-footer__copy {
  font-size: 1.15rem;
  color: var(--g893-mid);
  border-top: 1px dashed var(--g893-line);
  padding-top: 0.9rem;
}

/* ---------------- Bottom Nav ---------------- */
.g893-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .g893-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #1b1b1b;
    border-top: 1px solid var(--g893-line);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    z-index: 1000;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.5);
  }

  .g893-bottom-nav__btn {
    flex: 1;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--g893-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
    position: relative;
  }

  .g893-bottom-nav__btn i,
  .g893-bottom-nav__btn .material-icons,
  .g893-bottom-nav__btn ion-icon,
  .g893-bottom-nav__btn bi {
    font-size: 22px;
  }

  .g893-bottom-nav__btn:hover,
  .g893-bottom-nav__btn:active {
    color: var(--g893-accent-2);
    transform: translateY(-2px);
    text-decoration: none;
  }

  .g893-bottom-nav__btn--active {
    color: var(--g893-accent);
  }

  .g893-bottom-nav__btn--active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    background: var(--g893-accent);
    border-radius: 0 0 3px 3px;
  }

  .g893-bottom-nav__btn--promo {
    color: #1c1c1c;
    background: linear-gradient(135deg, var(--g893-accent), var(--g893-accent-2));
  }
}

/* ---------------- Desktop tweaks ---------------- */
@media (min-width: 769px) {
  .g893-wrapper { max-width: 760px; }
  .g893-game-grid { grid-template-columns: repeat(5, 1fr); }
  .g893-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .g893-menu-toggle { display: none; }
}

.g893-skip {
  position: absolute;
  left: -9999px;
}

.g893-text-accent { color: var(--g893-accent-2); font-weight: 700; }
