/* ==========================================================================
   link casino - linkcasino.click
   Mobile-first gaming site surface stylesheet.
   All custom classes and CSS variables use the cdeba4- prefix.
   Palette: #6A5ACD | #8B008B | #778899 | #4B0082 | #212F3D
   Design direction: tabbed top bar, side drawer, brand emphasis bottom band,
   containerized symbol tiles, slight-lift active state, soft color transitions.
   ========================================================================== */

:root {
  --cdeba4-bg-deep: #212F3D;
  --cdeba4-bg-indigo: #4B0082;
  --cdeba4-accent-slate: #6A5ACD;
  --cdeba4-accent-magenta: #8B008B;
  --cdeba4-muted: #778899;
  --cdeba4-text: #e8eaf6;
  --cdeba4-text-strong: #ffffff;
  --cdeba4-surface: #2a3a4d;
  --cdeba4-surface-2: #1c2837;
  --cdeba4-border: rgba(119, 136, 153, 0.32);
  --cdeba4-glow: rgba(106, 90, 205, 0.55);
  --cdeba4-radius: 12px;
  --cdeba4-radius-lg: 18px;
  --cdeba4-header-h: 58px;
  --cdeba4-bottom-h: 68px;
  --cdeba4-maxw: 430px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: #0f1620;
  color: var(--cdeba4-text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cdeba4-accent-slate); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--cdeba4-text-strong); }

button { font-family: inherit; }

/* Mobile canvas: locked to phone width, centered on wider screens. */
.cdeba4-canvas {
  max-width: var(--cdeba4-maxw);
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #1c2837 0%, #212F3D 38%, #1c2837 100%);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
  overflow-x: hidden;
}

/* ============================ HEADER ============================ */
.cdeba4-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--cdeba4-header-h);
  background: linear-gradient(90deg, #1c2837 0%, #2a1a3a 55%, #3a0f3f 100%);
  border-bottom: 1px solid var(--cdeba4-border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
}

.cdeba4-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.cdeba4-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(106, 90, 205, 0.6);
  background: #fff;
  flex-shrink: 0;
}

.cdeba4-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.cdeba4-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--cdeba4-text-strong);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.cdeba4-brand-tag {
  font-size: 10px;
  color: var(--cdeba4-muted);
  white-space: nowrap;
}

/* Tabbed action group on the right edge of the top bar. */
.cdeba4-tab-group {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 22, 32, 0.55);
  border: 1px solid var(--cdeba4-border);
  border-radius: 12px;
  padding: 4px;
}

.cdeba4-tab-btn {
  border: none;
  background: transparent;
  color: var(--cdeba4-text);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 8px;
  min-height: 36px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.cdeba4-tab-btn:hover { color: var(--cdeba4-text-strong); transform: translateY(-1px); }

.cdeba4-tab-register {
  background: linear-gradient(135deg, var(--cdeba4-accent-magenta), var(--cdeba4-accent-slate));
  color: var(--cdeba4-text-strong);
  box-shadow: 0 3px 10px rgba(139, 0, 139, 0.4);
}

.cdeba4-tab-login {
  background: rgba(106, 90, 205, 0.28);
  color: var(--cdeba4-text-strong);
  border: 1px solid rgba(106, 90, 205, 0.4);
}

.cdeba4-tab-menu {
  background: rgba(119, 136, 153, 0.2);
  color: var(--cdeba4-text);
  padding: 8px 9px;
  border: 1px solid var(--cdeba4-border);
}

.cdeba4-tab-menu svg { width: 16px; height: 16px; }

/* ====================== SIDE DRAWER + OVERLAY ====================== */
.cdeba4-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 70;
}
.cdeba4-overlay-show { opacity: 1; visibility: visible; }

.cdeba4-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 82%;
  max-width: 320px;
  background: linear-gradient(180deg, #2a1a3a 0%, #1c2837 100%);
  border-left: 1px solid var(--cdeba4-border);
  transform: translateX(105%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 80;
  padding: 18px 14px calc(var(--cdeba4-bottom-h) + 24px);
  overflow-y: auto;
}
.cdeba4-drawer-open { transform: translateX(0); }

.cdeba4-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cdeba4-drawer-head img {
  width: 30px; height: 30px; border-radius: 8px; background: #fff;
}

.cdeba4-drawer-head span {
  color: var(--cdeba4-text-strong);
  font-weight: 800;
  font-size: 15px;
  flex: 1;
  margin-left: 10px;
}

.cdeba4-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--cdeba4-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--cdeba4-text);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.cdeba4-drawer-close:hover { background: rgba(106, 90, 205, 0.3); }

.cdeba4-drawer-title {
  font-size: 11px;
  color: var(--cdeba4-muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin: 16px 4px 8px;
  font-weight: 700;
}

.cdeba4-drawer-link {
  display: block;
  padding: 11px 12px;
  color: var(--cdeba4-text);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
}
.cdeba4-drawer-link:hover {
  background: rgba(106, 90, 205, 0.18);
  color: var(--cdeba4-text-strong);
  border-color: var(--cdeba4-border);
  padding-left: 16px;
}
.cdeba4-drawer-link.cdeba4-active {
  background: linear-gradient(90deg, rgba(139, 0, 139, 0.32), rgba(106, 90, 205, 0.28));
  color: var(--cdeba4-text-strong);
  border-color: rgba(106, 90, 205, 0.6);
}

.cdeba4-drawer-promo {
  display: block;
  margin-top: 14px;
  text-align: center;
  background: linear-gradient(135deg, var(--cdeba4-accent-magenta), var(--cdeba4-accent-slate));
  color: var(--cdeba4-text-strong);
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 4px 14px rgba(139, 0, 139, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cdeba4-drawer-promo:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(139, 0, 139, 0.6); }

/* ============================ MAIN ============================ */
.cdeba4-main {
  padding: 14px 12px calc(var(--cdeba4-bottom-h) + 28px);
}

.cdeba4-h1 {
  font-size: 22px;
  line-height: 1.28;
  margin: 4px 0 12px;
  color: var(--cdeba4-text-strong);
  font-weight: 800;
}

.cdeba4-lead {
  font-size: 14px;
  color: var(--cdeba4-text);
  margin: 0 0 16px;
}

/* ====================== HERO CAROUSEL ====================== */
.cdeba4-carousel {
  position: relative;
  border-radius: var(--cdeba4-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--cdeba4-border);
}
.cdeba4-carousel-viewport { overflow: hidden; }
.cdeba4-carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.cdeba4-slide {
  min-width: 100%;
  position: relative;
}
.cdeba4-slide img {
  width: 100%;
  height: 184px;
  object-fit: cover;
}
.cdeba4-slide-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 30px 14px 16px;
  background: linear-gradient(180deg, rgba(15, 22, 32, 0) 0%, rgba(15, 22, 32, 0.78) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.cdeba4-slide-caption strong {
  color: var(--cdeba4-text-strong);
  font-size: 14px;
  line-height: 1.3;
  display: block;
}
.cdeba4-slide-cta {
  background: linear-gradient(135deg, var(--cdeba4-accent-magenta), var(--cdeba4-accent-slate));
  color: var(--cdeba4-text-strong);
  border: none;
  padding: 9px 16px;
  border-radius: 22px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 0, 139, 0.55);
  min-height: 38px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.cdeba4-slide-cta:hover { transform: translateY(-2px); }

.cdeba4-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}
.cdeba4-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.cdeba4-dot-active {
  background: var(--cdeba4-text-strong);
  width: 20px;
  border-radius: 4px;
}

/* ====================== SECTION ============================ */
.cdeba4-section { margin-bottom: 24px; }

.cdeba4-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
  color: var(--cdeba4-text-strong);
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--cdeba4-border);
}
.cdeba4-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cdeba4-accent-slate), var(--cdeba4-accent-magenta));
  flex-shrink: 0;
}

.cdeba4-section-meta {
  font-size: 12px;
  color: var(--cdeba4-muted);
  margin: -6px 0 12px;
}

/* ====================== GAME GRID ====================== */
.cdeba4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 375px) {
  .cdeba4-game-grid { gap: 10px; }
}
@media (min-width: 400px) {
  .cdeba4-game-grid { grid-template-columns: repeat(5, 1fr); }
}

.cdeba4-game-card {
  background: var(--cdeba4-surface);
  border: 1px solid var(--cdeba4-border);
  border-radius: var(--cdeba4-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.cdeba4-game-card:hover, .cdeba4-game-card:focus {
  transform: translateY(-3px);
  border-color: rgba(106, 90, 205, 0.75);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.42);
}
.cdeba4-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0f1620;
  border-bottom: 1px solid var(--cdeba4-border);
}
.cdeba4-game-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--cdeba4-text);
  padding: 6px 5px 8px;
  text-align: center;
  line-height: 1.25;
  min-height: 32px;
  word-break: break-word;
}
.cdeba4-game-card:hover .cdeba4-game-name { color: var(--cdeba4-text-strong); }

/* ====================== CONTENT MODULES ====================== */
.cdeba4-module {
  background: linear-gradient(160deg, var(--cdeba4-surface), var(--cdeba4-surface-2));
  border: 1px solid var(--cdeba4-border);
  border-radius: var(--cdeba4-radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}
.cdeba4-module h2 {
  font-size: 17px;
  color: var(--cdeba4-text-strong);
  margin: 0 0 10px;
  font-weight: 800;
  line-height: 1.3;
}
.cdeba4-module h3 {
  font-size: 14px;
  color: var(--cdeba4-accent-slate);
  margin: 14px 0 6px;
  font-weight: 700;
}
.cdeba4-module p {
  margin: 0 0 10px;
  color: var(--cdeba4-text);
  font-size: 14px;
}
.cdeba4-module ul, .cdeba4-module ol { margin: 0 0 10px; padding-left: 20px; }
.cdeba4-module li { margin-bottom: 6px; font-size: 14px; }

.cdeba4-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}
.cdeba4-pill {
  background: rgba(106, 90, 205, 0.18);
  border: 1px solid rgba(106, 90, 205, 0.45);
  color: var(--cdeba4-text-strong);
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.cdeba4-step-list {
  list-style: none;
  counter-reset: cdeba4step;
  margin: 6px 0 10px;
  padding: 0;
}
.cdeba4-step-list li {
  counter-increment: cdeba4step;
  position: relative;
  padding: 8px 10px 8px 40px;
  margin-bottom: 8px;
  background: rgba(15, 22, 32, 0.45);
  border-radius: 10px;
  border: 1px solid var(--cdeba4-border);
  font-size: 13.5px;
}
.cdeba4-step-list li::before {
  content: counter(cdeba4step);
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cdeba4-accent-magenta), var(--cdeba4-accent-slate));
  color: var(--cdeba4-text-strong);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cdeba4-body-link {
  color: var(--cdeba4-accent-slate);
  font-weight: 700;
  border-bottom: 1px dashed rgba(106, 90, 205, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cdeba4-body-link:hover {
  color: var(--cdeba4-text-strong);
  border-bottom-color: var(--cdeba4-text-strong);
}

.cdeba4-promo-text {
  color: var(--cdeba4-text-strong);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(139, 0, 139, 0.3), rgba(106, 90, 205, 0.28));
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding: 1px 3px;
  cursor: pointer;
  border-radius: 3px;
}
.cdeba4-promo-text:hover { color: var(--cdeba4-text-strong); background: linear-gradient(90deg, rgba(139, 0, 139, 0.45), rgba(106, 90, 205, 0.42)); }

/* Compact two-tile highlight row used inside modules. */
.cdeba4-twin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 12px;
}
.cdeba4-twin-card {
  background: rgba(15, 22, 32, 0.5);
  border: 1px solid var(--cdeba4-border);
  border-radius: 12px;
  padding: 12px;
}
.cdeba4-twin-card h3 { margin: 0 0 6px; font-size: 13.5px; }
.cdeba4-twin-card p { margin: 0; font-size: 12.5px; color: var(--cdeba4-muted); }

/* ====================== EXTENDED FOOTER ====================== */
.cdeba4-ext-footer {
  margin-top: 22px;
  padding: 18px 14px 8px;
  background: linear-gradient(180deg, #1c2837, #131c26);
  border-top: 1px solid var(--cdeba4-border);
  border-radius: var(--cdeba4-radius-lg) var(--cdeba4-radius-lg) 0 0;
}
.cdeba4-ext-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
}
.cdeba4-ext-brand { grid-column: 1 / -1; }
.cdeba4-ext-brand-name {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cdeba4-text-strong);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 6px;
}
.cdeba4-ext-brand-name img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid rgba(106, 90, 205, 0.5);
}
.cdeba4-ext-brand p {
  font-size: 12.5px;
  color: var(--cdeba4-muted);
  margin: 0;
  line-height: 1.6;
}

.cdeba4-ext-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--cdeba4-muted);
  margin: 0 0 8px;
  font-weight: 700;
}

.cdeba4-ext-list { list-style: none; margin: 0; padding: 0; }
.cdeba4-ext-list li { margin-bottom: 7px; }
.cdeba4-ext-list a {
  color: var(--cdeba4-text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}
.cdeba4-ext-list a:hover { color: var(--cdeba4-text-strong); }

.cdeba4-promo-stack { display: flex; flex-direction: column; gap: 8px; grid-column: 1 / -1; }
.cdeba4-promo-btn {
  background: linear-gradient(135deg, var(--cdeba4-accent-magenta), var(--cdeba4-accent-slate));
  color: var(--cdeba4-text-strong);
  border: none;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cdeba4-promo-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(139, 0, 139, 0.45); }

.cdeba4-disclaimer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--cdeba4-border);
  padding-top: 12px;
  font-size: 11.5px;
  color: var(--cdeba4-muted);
  line-height: 1.6;
}

/* ====================== FOOTER ====================== */
.cdeba4-footer {
  text-align: center;
  padding: 12px 14px;
  font-size: 11.5px;
  color: var(--cdeba4-muted);
  border-top: 1px solid var(--cdeba4-border);
  background: #131c26;
}
.cdeba4-footer a { color: var(--cdeba4-muted); margin: 0 4px; }

/* ====================== BOTTOM NAV ====================== */
.cdeba4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--cdeba4-maxw);
  height: var(--cdeba4-bottom-h);
  background: linear-gradient(90deg, #1c2837 0%, #2a1a3a 55%, #3a0f3f 100%);
  border-top: 1px solid var(--cdeba4-border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 65;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.45);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.cdeba4-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--cdeba4-muted);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 7px 2px 4px;
  position: relative;
  transition: color 0.25s ease;
  min-height: 44px;
  font-family: inherit;
}
.cdeba4-bottom-tile {
  width: 38px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(119, 136, 153, 0.14);
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.cdeba4-bottom-tile svg { width: 18px; height: 18px; }
.cdeba4-bottom-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.cdeba4-bottom-item:hover { color: var(--cdeba4-text-strong); }
.cdeba4-bottom-item:hover .cdeba4-bottom-tile {
  background: rgba(106, 90, 205, 0.24);
  border-color: rgba(106, 90, 205, 0.55);
}
/* Active: slight lift + brand accent tile. */
.cdeba4-bottom-item.cdeba4-active { color: var(--cdeba4-text-strong); }
.cdeba4-bottom-item.cdeba4-active .cdeba4-bottom-tile {
  background: linear-gradient(135deg, rgba(139, 0, 139, 0.6), rgba(106, 90, 205, 0.6));
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
/* Promo roles get a stronger standing accent. */
.cdeba4-bottom-promo .cdeba4-bottom-tile {
  background: linear-gradient(135deg, rgba(139, 0, 139, 0.42), rgba(106, 90, 205, 0.42));
  border-color: rgba(255, 255, 255, 0.2);
}

.cdeba4-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Reduce motion for users who prefer it. */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
