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

:root {
  --lc-bg: #0b0e1a;
  --lc-panel: rgba(255,255,255,.012);
  --lc-line: rgba(234,236,240,.1);
  --lc-muted: #97a1af;
  --lc-text: #ced2da;
  --lc-purple: #8874ff;
  --lc-purple-soft: #8e8eff;
  --lc-green: #00ff86;
}

body {
  background: var(--lc-bg);
}

.livecodes-app {
  grid-template-columns: 236px minmax(0, 1fr);
  background: var(--lc-bg);
}

.livecodes-main {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  overflow: visible;
  zoom: 1;
  transform: none;
  font-family: Geist, "Geist Fallback", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lc-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.lc-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--lc-purple-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

.lc-page-heading h1 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.lc-page-heading p {
  margin: 7px 0 0;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  line-height: 1.5;
}

.lc-source-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  font-weight: 500;
}

.lc-source-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lc-green);
  box-shadow: 0 0 10px rgba(0,255,134,.55);
}

.lc-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  gap: 12px;
}

.lc-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 260px;
  height: 42px;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.02);
}

.lc-search::before,
.lc-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(80px at 0 0, rgba(123,125,138,.75), transparent),
              radial-gradient(80px at 100% 100%, rgba(123,125,138,.45), transparent),
              linear-gradient(135deg, rgba(255,255,255,.08), rgba(15,20,36,.05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.lc-search img {
  position: relative;
  z-index: 1;
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: .5;
}

.lc-search input {
  position: relative;
  z-index: 1;
  width: 204px;
  height: 21px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  line-height: 21px;
}

.lc-search input::placeholder { color: rgba(255,255,255,.5); }

.lc-drop-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 42px;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 52px;
  background: rgba(142,142,255,.04);
  color: var(--lc-purple-soft);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  backdrop-filter: blur(35.5px);
  transition: background .2s, transform .2s;
}

.lc-drop-alert:hover {
  background: rgba(142,142,255,.1);
  transform: translateY(-1px);
}

.lc-drop-alert img { width: 24px; height: 24px; }

.lc-glass-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--lc-panel);
}

.lc-feed-card {
  min-height: 849px;
  margin-top: 24px;
  padding: 16px;
}

.lc-feed-glow {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 90px;
  background: rgba(31,38,63,.8);
  filter: blur(50px);
  pointer-events: none;
}

.lc-feed-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lc-feed-head,
.lc-feed-title-wrap,
.lc-feed-filters,
.lc-stat-head {
  display: flex;
  align-items: center;
}

.lc-feed-head {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.lc-feed-title-wrap { gap: 8px; }

.lc-feed-title-wrap h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.lc-feed-title-wrap h2 span { color: rgba(255,255,255,.58); }

.lc-live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  gap: 6px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid #346a63;
  border-radius: 50px;
  background: rgba(255,255,255,.05);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  backdrop-filter: blur(35.5px);
}

.lc-live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b7280;
  transition: background .2s, box-shadow .2s;
}

.lc-live-pill i.is-connected {
  background: var(--lc-green);
  box-shadow: 0 0 8px rgba(0,255,134,.8);
}

.lc-feed-filters { gap: 14px; }

.lc-high-roller,
.lc-casino-select,
.lc-sound-btn {
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(142,142,255,.04);
  color: rgba(255,255,255,.6);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}

.lc-high-roller {
  height: 32px;
  padding: 0 14px;
  border-width: .5px;
  border-radius: 999px;
  white-space: nowrap;
}

.lc-high-roller:hover,
.lc-high-roller.is-active,
.lc-casino-select:hover,
.lc-sound-btn:hover,
.lc-sound-btn.is-active {
  color: #fff;
  border-color: rgba(142,142,255,.55);
  background: rgba(142,142,255,.12);
}

.lc-casino-select {
  height: 36px;
  min-width: 130px;
  padding: 0 34px 0 13px;
  border-radius: 999px;
  outline: none;
  color-scheme: dark;
}

.lc-casino-select option { background: #161c32; color: #fff; }

.lc-filter-divider { width: 1px; height: 25px; background: rgba(255,255,255,.1); }

.lc-sound-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-width: .5px;
  border-radius: 52px;
  font-size: 16px;
}

.lc-feed-tabs,
.lc-period-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(123,125,138,.28);
  background: rgba(255,255,255,.01);
  backdrop-filter: blur(35.5px);
}

.lc-feed-tabs {
  width: 240px;
  border-radius: 50px;
}

.lc-feed-tabs button,
.lc-period-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.5);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.lc-feed-tabs button {
  flex: 1;
  height: 30px;
  border-radius: 22px;
}

.lc-feed-tabs button.is-active,
.lc-period-tabs button.is-active {
  background: rgba(142,142,255,.14);
  color: #fff;
}

.lc-lock { color: var(--lc-purple); font-size: 8px; }

.lc-table-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(142,142,255,.3) transparent;
}

.lc-codes-table,
.lc-stats-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  table-layout: auto;
}

.lc-codes-table tbody {
  height: 686px;
}

.lc-codes-table th,
.lc-stats-table th {
  height: 31px;
  padding: 0 8px 12px;
  border-bottom: 1px solid var(--lc-line);
  color: var(--lc-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lc-codes-table tbody tr,
.lc-stats-table tbody tr {
  height: 49px;
}

.lc-codes-table td,
.lc-stats-table td {
  padding: 0 8px;
  border-bottom: 1px solid var(--lc-line);
  vertical-align: middle;
  color: var(--lc-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  transition: background .2s;
}

.lc-codes-table tbody tr:hover td,
.lc-stats-table tbody tr:hover td { background: rgba(255,255,255,.02); }

.lc-codes-table th:nth-child(2) { width: 100%; }
.num { text-align: right; }

.lc-casino-cell {
  display: flex;
  align-items: center;
  min-width: 112px;
  gap: 10px;
}

.lc-casino-logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  overflow: hidden;
  border-radius: 6px;
  background: #1d2437;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.lc-casino-logo img { width: 100%; height: 100%; object-fit: contain; }
.lc-casino-name { color: #fff; font-weight: 500; white-space: nowrap; }

.lc-code-wrap { display: flex; align-items: center; gap: 6px; }
.lc-code-text { max-width: 220px; overflow: hidden; color: var(--lc-text); text-overflow: ellipsis; white-space: nowrap; }

.lc-copy-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  cursor: pointer;
}

.lc-copy-btn:hover { color: #fff; }
.lc-value { color: #fff !important; font-weight: 600 !important; }

.lc-redeem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 30px;
  gap: 4px;
  padding: 0 14px;
  border: .5px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: transparent;
  color: var(--lc-purple);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.lc-redeem-btn:hover { background: rgba(142,142,255,.08); }

.lc-empty {
  height: 160px !important;
  color: rgba(255,255,255,.4) !important;
  text-align: center !important;
}

.lc-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--lc-purple);
  border-radius: 50%;
  vertical-align: -2px;
  animation: lc-spin .8s linear infinite;
}

@keyframes lc-spin { to { transform: rotate(360deg); } }

.lc-supported {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.lc-supported h2,
.lc-stat-head h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.lc-casino-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.lc-casino-marquee::before,
.lc-casino-marquee::after {
  content: "";
  position: absolute;
  inset-block: 0;
  z-index: 2;
  width: 45px;
  pointer-events: none;
}

.lc-casino-marquee::before { left: 0; background: linear-gradient(90deg, var(--lc-bg), transparent); }
.lc-casino-marquee::after { right: 0; background: linear-gradient(270deg, var(--lc-bg), transparent); }

.lc-casino-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: lc-marquee 55s linear infinite;
}

.lc-casino-track:hover { animation-play-state: paused; }

@keyframes lc-marquee { to { transform: translateX(calc(-33.333% - 5.333px)); } }

.lc-casino-banner {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-shrink: 0;
  width: 247px;
  gap: 8px;
  color: var(--lc-muted);
  font-size: 13px;
  font-weight: 500;
}

.lc-casino-banner img {
  width: 247px;
  height: 80px;
  object-fit: cover;
  overflow: hidden;
  border-radius: 12px;
  transition: transform .25s, filter .25s;
}

.lc-casino-banner:hover { color: #fff; }
.lc-casino-banner:hover img { transform: translateY(-2px); filter: brightness(1.08); }

.lc-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lc-stat-card {
  min-width: 0;
  min-height: 366px;
  padding: 16px;
}

.lc-stat-head {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lc-period-tabs { border-radius: 999px; }
.lc-period-tabs button { min-width: 42px; height: 28px; padding: 0 10px; border-radius: 999px; }

.lc-stats-table { position: relative; z-index: 1; min-width: 520px; }
.lc-stats-table th:nth-child(1) { width: 100%; }
.lc-stats-table td { white-space: nowrap; }
.lc-stats-table .lc-code-stat { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.lc-share { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
.lc-share-bar { display: inline-block; width: 48px; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.lc-share-bar i { display: block; height: 100%; border-radius: inherit; background: var(--lc-purple); }
.lc-rank { width: 26px !important; }

.lc-disclaimer {
  margin: 18px 0 0;
  color: rgba(255,255,255,.3);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.lc-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  padding: 11px 16px;
  border: 1px solid rgba(136,116,255,.45);
  border-radius: 10px;
  background: #161c32;
  color: #fff;
  font-family: Geist, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s;
}

.lc-toast.is-visible { opacity: 1; transform: translateY(0); }

.lc-modal[hidden] { display: none; }
.lc-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; }
.lc-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(5px); cursor: default; }

.lc-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  background: #161c32;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  font-family: Geist, Arial, sans-serif;
}

.lc-modal-card::before { content: ""; position: absolute; inset: -100px 0 auto; height: 200px; background: radial-gradient(ellipse, rgba(79,45,236,.28), transparent 70%); pointer-events: none; }
.lc-modal-close { position: absolute; top: 10px; right: 12px; z-index: 2; border: 0; background: transparent; color: rgba(255,255,255,.5); font-size: 25px; cursor: pointer; }
.lc-modal-kicker { position: relative; display: block; color: var(--lc-purple-soft); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.lc-modal-card h2 { position: relative; margin: 7px 0 4px; color: #fff; font-size: 20px; }
.lc-modal-card p { position: relative; margin: 0; color: rgba(255,255,255,.5); font-size: 12px; line-height: 1.55; }
.lc-modal-code { position: relative; width: 100%; margin: 18px 0; padding: 14px; border: 1px dashed rgba(136,116,255,.55); border-radius: 10px; background: rgba(136,116,255,.08); color: #fff; font-family: "Geist Mono", monospace; font-size: 15px; font-weight: 600; word-break: break-all; cursor: pointer; }
.lc-modal-actions { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.lc-modal-actions button, .lc-modal-actions a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 9px; font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.lc-modal-actions button { border: 1px solid rgba(255,255,255,.15); background: transparent; color: #fff; }
.lc-modal-actions a { background: var(--lc-purple); color: #fff; }

@media (max-width: 1200px) {
  .lc-stats-grid { grid-template-columns: 1fr; }
  .lc-feed-card { min-height: 0; }
}

@media (max-width: 1100px) {
  .livecodes-app { grid-template-columns: 1fr; }
  .livecodes-main { padding-top: 82px; }
}

@media (max-width: 760px) {
  .livecodes-main { padding: 82px 14px 36px; }
  .lc-page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .lc-source-status { display: none; }
  .lc-toolbar { height: auto; margin-bottom: 18px; }
  .lc-search { width: 100%; }
  .lc-search input { width: calc(100% - 24px); }
  .lc-drop-alert { width: 100%; font-size: 14px; }
  .lc-feed-card { padding: 12px; border-radius: 16px; }
  .lc-feed-head { align-items: flex-start; flex-direction: column; }
  .lc-feed-title-wrap h2 span { display: none; }
  .lc-feed-filters { width: 100%; gap: 8px; }
  .lc-casino-select-wrap { flex: 1; }
  .lc-casino-select { width: 100%; }
  .lc-filter-divider { display: none; }
  .lc-feed-tabs { width: 100%; }
  .lc-codes-table { min-width: 500px; }
  .lc-codes-table { height: auto; }
  .lc-codes-table tbody { height: auto; }
  .lc-codes-table .lc-wide { display: none; }
  .lc-casino-name { display: none; }
  .lc-casino-cell { min-width: 32px; }
  .lc-code-text { max-width: 92px; }
  .lc-redeem-btn { min-width: 70px; padding: 0 10px; }
  .lc-supported { margin: 18px 0; }
  .lc-casino-banner, .lc-casino-banner img { width: 210px; }
  .lc-stat-card { min-height: 0; padding: 12px; border-radius: 16px; }
  .lc-stat-head { align-items: flex-start; flex-direction: column; }
  .lc-period-tabs { width: 100%; }
  .lc-period-tabs button { flex: 1; }
  .lc-stat-wide { display: none; }
  .lc-stats-table { min-width: 430px; }
  .lc-biggest-table { min-width: 500px; }
  .lc-modal-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-casino-track { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
