:root {
  color-scheme: dark;
  --ink-950: #030708;
  --ink-900: #071114;
  --ink-800: #0c1919;
  --jade-900: #0a2020;
  --gold-300: #f1d39a;
  --gold-500: #c69a54;
  --gold-800: #6c4c23;
  --mist: rgba(247, 229, 188, 0.72);
  font-family: Georgia, "Songti SC", "STSong", serif;
  background: var(--ink-950);
  color: var(--gold-300);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(41, 73, 70, 0.18), transparent 38rem),
    var(--ink-950);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

.site-frame {
  display: flex;
  min-height: 100vh;
  justify-content: center;
}

.client-shell {
  position: relative;
  width: min(100%, 440px);
  min-height: 100vh;
  overflow: hidden;
  padding: max(12px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(3, 7, 8, 0.74), rgba(3, 7, 8, 0.92) 67%, #030708),
    url("./assets/background-circuit.png") center top / 780px auto no-repeat,
    var(--ink-950);
}

.client-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.17), transparent 35%, transparent 65%, rgba(0, 0, 0, 0.17));
  content: "";
  pointer-events: none;
}

.client-shell > * {
  position: relative;
  z-index: 1;
}

.brand-bar {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(198, 154, 84, 0.58);
}

.brand-lockup,
.brand-actions {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 9px;
}

.brand-emblem {
  width: 33px;
  height: 33px;
  object-fit: contain;
}

.brand-name {
  color: var(--gold-300);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.35px;
}

.brand-actions {
  gap: 10px;
}

.icon-button {
  display: grid;
  width: 35px;
  height: 35px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(198, 154, 84, 0.74);
  border-radius: 50%;
  color: var(--gold-300);
  background: rgba(3, 7, 8, 0.55);
  place-items: center;
}

.icon-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-button--service {
  font-size: 25px;
  line-height: 1;
}

.hero-panel,
.ky-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(198, 154, 84, 0.68);
  border-radius: 12px;
  background: var(--ink-900);
}

.hero-panel {
  height: clamp(210px, 54vw, 252px);
  margin-top: 20px;
}

.hero-art,
.ky-art {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art {
  inset: 0;
  object-position: 69% center;
  filter: saturate(0.86) contrast(1.04) brightness(0.84);
}

.hero-panel::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 8, 0.95), rgba(3, 7, 8, 0.73) 44%, rgba(3, 7, 8, 0.07) 78%),
    linear-gradient(180deg, rgba(3, 7, 8, 0.08), rgba(3, 7, 8, 0.18));
  content: "";
}

.hero-copy,
.ky-copy {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  width: 55%;
  height: 100%;
  padding: 28px 0 25px 24px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  margin: 0;
  color: rgba(241, 211, 154, 0.65);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.45px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
}

.hero-copy h1 {
  margin-top: 8px;
  color: var(--gold-300);
  font-size: clamp(30px, 8.1vw, 37px);
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.hero-rule {
  width: 92px;
  height: 1px;
  margin: 16px 0 14px;
  background: linear-gradient(90deg, var(--gold-500), rgba(198, 154, 84, 0.1));
}

.gold-button {
  min-width: 126px;
  min-height: 38px;
  padding: 0 20px;
  border: 1px solid var(--gold-500);
  border-radius: 9px;
  color: var(--gold-300);
  background: rgba(3, 7, 8, 0.42);
  box-shadow: inset 0 0 0 1px rgba(241, 211, 154, 0.1);
  font-size: 16px;
  letter-spacing: 1.2px;
}

.games-section {
  margin-top: 30px;
}

.section-heading {
  display: flex;
  min-height: 45px;
  align-items: end;
  justify-content: space-between;
}

.section-heading h2,
.ky-copy h2 {
  margin-top: 4px;
  color: var(--gold-300);
  font-size: 25px;
  letter-spacing: 0.7px;
}

.section-mark {
  padding-bottom: 3px;
  color: var(--gold-500);
  font-size: 18px;
}

.provider-tabs {
  display: flex;
  margin: 14px -2px 15px;
  border-bottom: 1px solid rgba(108, 76, 35, 0.76);
  justify-content: space-between;
}

.provider-tabs button {
  min-height: 31px;
  padding: 0 4px 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: rgba(247, 229, 188, 0.63);
  background: transparent;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
}

.provider-tabs button[aria-selected="true"] {
  border-bottom-color: var(--gold-300);
  color: var(--gold-300);
}

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

.game-card {
  position: relative;
  min-height: clamp(125px, 37vw, 158px);
  overflow: hidden;
  border: 1px solid rgba(198, 154, 84, 0.52);
  border-radius: 10px;
  background: var(--ink-900);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
}

.game-card--single {
  grid-column: 1 / -1;
  min-height: 172px;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.62) contrast(1.05) brightness(0.75);
}

.game-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 7, 8, 0.03) 26%, rgba(3, 7, 8, 0.84) 100%),
    linear-gradient(90deg, rgba(3, 7, 8, 0.12), transparent 70%);
  content: "";
  pointer-events: none;
}

.game-provider,
.game-card h3,
.card-action {
  position: absolute;
  z-index: 1;
}

.game-provider {
  top: 10px;
  left: 10px;
  padding: 2px 5px;
  border: 1px solid rgba(241, 211, 154, 0.36);
  color: var(--gold-300);
  background: rgba(3, 7, 8, 0.58);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
}

.game-card h3 {
  right: 12px;
  bottom: 12px;
  left: 12px;
  color: var(--gold-300);
  font-size: 25px;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 9px #000;
}

.card-action {
  right: 10px;
  bottom: 11px;
  min-width: 42px;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(241, 211, 154, 0.68);
  border-radius: 13px;
  color: var(--gold-300);
  background: rgba(3, 7, 8, 0.5);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
}

.game-card h3 + .card-action {
  bottom: 44px;
}

.ky-panel {
  height: 125px;
  margin-top: 30px;
}

.ky-art {
  inset: 0;
  object-position: 62% center;
  filter: saturate(0.72) contrast(1.05) brightness(0.61);
}

.ky-panel::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 8, 0.94), rgba(3, 7, 8, 0.7) 48%, rgba(3, 7, 8, 0.04));
  content: "";
}

.ky-copy {
  display: flex;
  height: 100%;
  padding: 21px 22px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.ky-copy h2 {
  font-size: 28px;
}

.gold-button--compact {
  min-width: 106px;
  min-height: 30px;
  margin-top: 9px;
  font-size: 13px;
}

.bottom-nav {
  display: grid;
  margin: 28px -16px -18px;
  padding: 8px 13px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(198, 154, 84, 0.38);
  background: rgba(3, 7, 8, 0.86);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bottom-nav button {
  display: flex;
  min-height: 42px;
  border: 0;
  color: rgba(247, 229, 188, 0.56);
  background: transparent;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.bottom-nav button span:first-child {
  color: inherit;
  font-size: 15px;
}

.bottom-nav .is-current {
  color: var(--gold-300);
}

.visual-status {
  position: fixed;
  right: 50%;
  bottom: 72px;
  z-index: 4;
  width: min(340px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  transform: translateX(50%);
  opacity: 0;
  color: var(--gold-300);
  background: transparent;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
  text-align: center;
  transition: opacity 150ms ease;
}

.visual-status.is-visible {
  padding: 10px 12px;
  border: 1px solid rgba(198, 154, 84, 0.72);
  border-radius: 8px;
  opacity: 1;
  background: rgba(3, 7, 8, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
}

@media (min-width: 640px) {
  .site-frame {
    padding: 24px;
  }

  .client-shell {
    min-height: 877px;
    border: 1px solid rgba(198, 154, 84, 0.32);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  }
}

@media (max-width: 365px) {
  .client-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .bottom-nav {
    margin-right: -12px;
    margin-left: -12px;
  }

  .brand-name {
    font-size: 19px;
  }

  .provider-tabs button {
    padding-right: 2px;
    padding-left: 2px;
    font-size: 11px;
  }
}
