:root {
  --gold-1: #fff3cf;
  --gold-2: #f6c245;
  --gold-3: #d2961f;
  --cream: #fbe9c4;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  background: #0a0503;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  color: var(--cream);
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.catalog {
  height: 100%;
  padding: max(28px, env(safe-area-inset-top, 0px)) 20px max(24px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}

.catalog-header {
  text-align: center;
}

.catalog-header p {
  color: var(--gold-3);
  font-size: 13px;
  letter-spacing: 0.28em;
}

.catalog-header h1 {
  margin-top: 4px;
  color: var(--gold-2);
  font-family: 'Anton', sans-serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
}

.game-list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.game-card {
  display: block;
  padding: 20px 20px 18px;
  border: 1.5px solid var(--gold-2);
  border-radius: 20px;
  background: radial-gradient(ellipse at 20% 0%, #1a7d47 0%, #0b4f2b 58%, #052916 100%);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-card:not(.is-soon):active {
  transform: scale(0.985);
}

.game-card.is-slot {
  background: radial-gradient(ellipse at 20% 0%, #c25a18 0%, #7a2f0c 58%, #3c1707 100%);
}

.game-card.is-poker {
  background: radial-gradient(ellipse at 20% 0%, #3a4a78 0%, #1e2a4a 58%, #10182c 100%);
  border-color: rgba(246, 194, 69, 0.45);
}

.game-card.is-soon {
  opacity: 0.82;
  cursor: default;
  user-select: none;
}

.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-card small {
  display: block;
  color: var(--gold-3);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.game-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border: 1px solid var(--gold-2);
  border-radius: 999px;
  color: var(--gold-2);
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.game-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--gold-2);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.game-card strong {
  display: block;
  color: var(--gold-1);
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.game-card span {
  display: block;
  margin-top: 8px;
  color: var(--cream);
  font-size: 14px;
}

.empty {
  margin-top: 28px;
  color: var(--gold-1);
  text-align: center;
}

#error p,
.loading p {
  max-width: 280px;
  color: var(--gold-1);
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  text-align: center;
}

/* Экран «Авторизация истекла» — как в Buffalo. */
.auth-expired {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  min-height: 0;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, #2a1407, #160b04);
  border: 2px solid var(--gold-2);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.auth-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 38% 30%, #2a7d4a, #0b3a1f 75%);
  border: 2px solid var(--gold-2);
  color: var(--gold-1);
  box-shadow: 0 3px 0 #06200f, inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.auth-icon svg {
  width: 30px;
  height: 30px;
}

.auth-card h2 {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: var(--gold-1);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.auth-card p {
  font-size: 13.5px;
  color: #d8c9a8;
  line-height: 1.5;
  max-width: 300px;
}

.auth-btn {
  margin-top: 6px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  display: block;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(180deg, #1f9c4e, #0b5226);
  border: 1.5px solid var(--gold-2);
  color: var(--gold-1);
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 0 #062e16, inset 0 1px 2px rgba(255, 255, 255, 0.25);
  transition: transform 0.1s;
}

.auth-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #062e16, inset 0 1px 2px rgba(255, 255, 255, 0.25);
}
