:root {
  --bg: #020617;
  --panel: rgba(8, 13, 31, 0.78);
  --panel-strong: rgba(10, 16, 36, 0.92);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f9fafb;
  --muted: #b7c0d8;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --violet: #a855f7;
  --blue: #60a5fa;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #020617;
}

body {
  min-height: 100vh;
  background-image:
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.10),
      rgba(2, 6, 23, 0.38) 40%,
      rgba(2, 6, 23, 0.70)
    ),
    url("assets/img-arcade.png");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
}

.arcade-app {
  width: 100%;
  max-width: 540px;
  min-height: 100vh;
  padding: 14px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arcade-topbar {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(9, 14, 33, 0.95), rgba(4, 8, 20, 0.86)),
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.25), transparent 40%);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(34, 211, 238, 0.13);
}

.arcade-topbar::after {
  content: "";
  position: absolute;
  inset: auto -30px -48px auto;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.34), transparent 65%);
  pointer-events: none;
}

.brand-block {
  position: relative;
  z-index: 1;
}

.brand-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-weight: 800;
}

.arcade-topbar h1 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 10px rgba(34, 211, 238, 0.55),
    0 0 24px rgba(168, 85, 247, 0.38);
}

.arcade-topbar p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.top-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.pwa-chip {
  border: 1px solid rgba(34, 211, 238, 0.55);
  color: #e0faff;
  background: rgba(34, 211, 238, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.login-link {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
}

.status-card {
  border: 1px solid var(--line);
  background: rgba(5, 10, 24, 0.72);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-orb {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.28), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
  font-weight: 900;
}

.status-card h2 {
  margin: 0;
  font-size: 1rem;
}

.status-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.game-grid {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.game-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(8, 13, 31, 0.90), rgba(5, 9, 22, 0.76));
  backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 15px;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-areas:
    "icon content"
    "button button";
  gap: 12px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.20), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 48%);
  pointer-events: none;
}

.game-damas::before {
  background:
    linear-gradient(90deg, rgba(244, 114, 182, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 48%);
}

.game-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 66%);
}

.game-damas .game-glow {
  background: radial-gradient(circle, rgba(244, 114, 182, 0.34), transparent 66%);
}

.game-icon {
  position: relative;
  z-index: 1;
  grid-area: icon;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ecfeff;
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.36), rgba(15, 23, 42, 0.90));
  border: 1px solid rgba(34, 211, 238, 0.50);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.22);
  font-size: 1.45rem;
  font-weight: 900;
}

.game-damas .game-icon {
  color: #fff1f8;
  background:
    radial-gradient(circle at top, rgba(244, 114, 182, 0.38), rgba(15, 23, 42, 0.90));
  border-color: rgba(244, 114, 182, 0.56);
  box-shadow: 0 0 18px rgba(244, 114, 182, 0.22);
}

.game-content {
  position: relative;
  z-index: 1;
  grid-area: content;
}

.game-label {
  display: block;
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.game-damas .game-label {
  color: var(--pink);
}

.game-content h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.game-content p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.game-button {
  position: relative;
  z-index: 1;
  grid-area: button;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  margin-top: 2px;
  border-radius: 999px;
  color: #031018;
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.28);
}

.game-damas .game-button {
  color: #1d0612;
  background: linear-gradient(135deg, #f9a8d4, #f472b6);
  box-shadow: 0 8px 24px rgba(244, 114, 182, 0.28);
}

.game-button:active {
  transform: scale(0.985);
}

.arcade-footer {
  margin-top: auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  padding-top: 6px;
}

@media (min-width: 640px) {
  .arcade-app {
    padding-top: 22px;
  }
}
