:root {
  --bg: #eef5ff;
  --surface: #ffffff;
  --surface-soft: #f6fbff;
  --text: #132238;
  --muted: #5f7087;
  --line: #d9e4f1;
  --brand: #1f78ff;
  --brand-dark: #1359c8;
  --brand-soft: #e7f1ff;
  --accent: #ff8a1f;
  --accent-soft: #fff1e2;
  --green: #1ecf8f;
  --footer: #0f1f36;
  --shadow: 0 14px 30px rgba(19, 34, 56, 0.08);
  --shadow-strong: 0 24px 48px rgba(19, 34, 56, 0.14);
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI Variable", "Bahnschrift", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(31, 120, 255, 0.08), transparent 28%),
    radial-gradient(circle at top left, rgba(255, 138, 31, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}

.container {
  width: min(1180px, calc(100% - 16px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(31, 120, 255, 0.14);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  color: var(--brand-dark);
}

.site-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-logo span {
  font-size: 24px;
  letter-spacing: 0.03em;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.desktop-only,
.user-pill {
  display: none;
}

.mobile-only {
  display: block;
}

.user-pill,
.header-button {
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.user-pill {
  padding: 10px 12px;
  background: linear-gradient(180deg, #f7fbff 0%, #e8f2ff 100%);
  border: 1px solid rgba(31, 120, 255, 0.14);
  color: var(--brand-dark);
}

.header-button {
  padding: 11px 14px;
  font-size: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.header-button:hover {
  transform: translateY(-1px);
}

.header-button.primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 120, 255, 0.24);
}

.header-button.ghost {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  color: var(--text);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 0 12px;
}

.quick-links a {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.page {
  padding: 14px 0 108px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  height: 260px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #d9eaff 0%, #fef2e5 100%);
  box-shadow: var(--shadow-strong);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.48);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(19, 34, 56, 0.72);
}

.hero-arrow-prev {
  left: 14px;
}

.hero-arrow-next {
  right: 14px;
}

.stats-section,
.mini-banner-row {
  margin-top: 12px;
}

.mini-banner-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-banner {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mini-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-banner-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.2) 0%, rgba(17, 24, 39, 0.82) 100%);
  color: #fff;
}

.mini-banner-overlay strong {
  font-size: 14px;
  font-weight: 800;
}

.mini-banner-overlay small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  display: grid;
  gap: 4px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.95) 100%);
  box-shadow: var(--shadow);
}

.stat-card strong {
  font-size: 22px;
  color: var(--brand-dark);
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.live-section,
.content-section {
  margin-top: 14px;
}

.live-card,
.section-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.live-card {
  padding: 16px 14px;
}

.live-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.live-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(68, 206, 114, 0.14);
}

.status-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9b4f00;
  font-size: 13px;
  font-weight: 800;
}

.live-title-wrap h2 {
  font-size: 22px;
}

.live-title-wrap p {
  color: var(--muted);
  font-size: 13px;
}

.live-price {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.live-list {
  display: grid;
  gap: 10px;
}

.live-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d7e5fb;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
  text-align: center;
  font-size: 14px;
}

.section-box {
  padding: 16px 14px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-header h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

.section-header p {
  color: var(--muted);
  font-size: 13px;
}

.section-header a {
  flex-shrink: 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(31, 120, 255, 0.2);
}

.card-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card-grid.compact {
  grid-template-columns: repeat(2, 1fr);
}

.service-card,
.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover,
.news-card:hover {
  transform: translateY(-2px);
  border-color: #c5dafb;
  box-shadow: var(--shadow-strong);
}

.service-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eff2f7;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img,
.mini-banner:hover img {
  transform: scale(1.04);
}

.service-info,
.news-body {
  padding: 12px;
}

.service-info h3,
.news-body h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.service-info p,
.news-body p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.news-thumb {
  aspect-ratio: 16 / 9;
}

.thumb-blue {
  background: linear-gradient(135deg, #86d2ff 0%, #2665ff 100%);
}

.thumb-fire {
  background: linear-gradient(135deg, #ffb347 0%, #ff3c2e 100%);
}

.thumb-gold {
  background: linear-gradient(135deg, #ffe082 0%, #f2a400 100%);
}

.game-groups-section {
  margin-top: 18px;
}

.game-group {
  padding: 24px 0;
  border-top: 1px solid #dbe6f4;
}

.game-group:first-child {
  border-top: none;
  padding-top: 4px;
}

.game-group-header {
  margin-bottom: 14px;
}

.game-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-group-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d6e4f8;
  object-fit: cover;
  background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
}

.game-group-title h2 {
  font-size: 22px;
  line-height: 1.1;
}

.game-service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.game-service-card {
  overflow: hidden;
  border: 1px solid #d7e3f4;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-service-card:hover {
  transform: translateY(-2px);
  border-color: #bfd4f7;
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.12);
}

.game-service-thumb {
  padding: 4px 4px 0;
}

.game-service-thumb img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  border-radius: 10px;
}

.game-service-body {
  display: grid;
  gap: 4px;
  padding: 10px 10px 12px;
}

.game-service-body h3 {
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  min-height: 30px;
}

.game-service-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.game-service-meta strong {
  color: var(--accent);
  font-size: 12px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 140px;
  border: 1px dashed #d7dce5;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: #fafbfd;
}

.floating-actions {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-actions a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
  opacity: 0.92;
}

.floating-actions a:nth-child(1) {
  background: linear-gradient(180deg, #ff8f33 0%, #ff6a00 100%);
}

.floating-actions a:nth-child(2) {
  background: linear-gradient(180deg, #3bb6ff 0%, #1f78ff 100%);
}

.floating-actions a:nth-child(3) {
  background: linear-gradient(180deg, #20d0a3 0%, #0ea67d 100%);
}

.site-footer {
  margin-top: 18px;
  padding: 30px 0 96px;
  background:
    radial-gradient(circle at top left, rgba(66, 153, 225, 0.18), transparent 24%),
    linear-gradient(180deg, #132946 0%, var(--footer) 100%);
  color: #eef5ff;
}

.footer-inner {
  display: grid;
  gap: 22px;
}

.footer-brand img {
  width: 78px;
  height: 78px;
  margin-bottom: 12px;
  object-fit: contain;
}

.footer-brand h2,
.footer-column h3 {
  margin-bottom: 10px;
}

.footer-brand p,
.footer-column li {
  color: #c9d7ea;
  line-height: 1.55;
}

.footer-highlight {
  margin-top: 10px;
  color: #7dc5ff;
  font-weight: 800;
}

.footer-column ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  min-height: 68px;
  padding: 8px 6px 10px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(17, 24, 39, 0.08);
}

.bottom-nav a {
  text-align: center;
  font-size: 12px;
  color: #202533;
}

.bottom-nav a.is-active {
  color: var(--brand);
  font-weight: 800;
}

.bottom-nav-center {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -26px auto 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(31, 120, 255, 0.28);
}

@media (max-width: 420px) {
  .site-logo span {
    font-size: 15px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-button {
    padding: 10px 12px;
    font-size: 12px;
  }

  .mini-banner-row,
  .stats-grid,
  .card-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .game-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-banner {
    min-height: 260px;
  }

  .hero-content h1,
  .hero-empty h1 {
    font-size: 28px;
  }

  .floating-actions {
    right: 8px;
    top: auto;
    bottom: 88px;
    transform: none;
  }

  .floating-actions a {
    width: 44px;
    height: 44px;
    font-size: 10px;
  }
}

@media (min-width: 768px) {
  .container {
    width: min(1180px, calc(100% - 28px));
  }

  .desktop-only,
  .user-pill {
    display: inline-flex;
    align-items: center;
  }

  .mobile-only {
    display: none;
  }

  .page {
    padding-top: 18px;
    padding-bottom: 112px;
  }

  .hero-banner {
    height: 340px;
  }

  .hero-content,
  .hero-empty {
    inset: auto 28px 24px 28px;
  }

  .hero-content h1,
  .hero-empty h1 {
    font-size: 56px;
  }

  .hero-kicker {
    font-size: 13px;
  }

  .hero-copy,
  .hero-empty p {
    font-size: 16px;
  }

  .mini-banner {
    min-height: 180px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .live-header {
    align-items: center;
  }

  .live-item {
    grid-template-columns: 1.1fr 1fr 1.3fr 0.8fr;
    align-items: center;
    text-align: left;
  }

  .section-box {
    padding: 20px;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .game-service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid.compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .bottom-nav {
    display: none;
  }

  .floating-actions {
    right: 18px;
  }

  .page {
    padding-bottom: 28px;
  }

  .site-footer {
    padding-bottom: 36px;
  }

  .hero-banner {
    height: 360px;
  }

  .hero-content,
  .hero-empty {
    inset: auto 28px 26px 28px;
  }

  .hero-content h1,
  .hero-empty h1 {
    font-size: 52px;
  }

  .hero-copy,
  .hero-empty p {
    max-width: 620px;
    font-size: 15px;
  }

  .mini-banner-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .mini-banner {
    min-height: 190px;
  }

  .mini-banner-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini-banner:nth-child(1) {
    transform: translateY(0);
  }

  .mini-banner:nth-child(2) {
    transform: translateY(10px);
  }

  .mini-banner:nth-child(3) {
    transform: translateY(20px);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .game-service-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .card-grid.compact {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-info h3,
  .news-body h3 {
    font-size: 16px;
  }
}

@media (min-width: 1280px) {
  .hero-banner {
    height: 380px;
  }

  .mini-banner {
    min-height: 210px;
  }
}
