/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-0: #07080c;
  --bg-1: #0b0d12;
  --bg-2: #111420;
  --bg-3: #161a2a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9ecf5;
  --text-dim: #8b91a8;
  --text-muted: #5f6680;
  --gold: #f5c451;
  --gold-2: #e29a2b;
  --green: #2ecc71;
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
  min-height: 100%;

  background-image:
    radial-gradient(900px 600px at 50% -10%, rgba(124, 92, 255, 0.20), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(0, 212, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #07080c 0%, #0a0c14 60%, #07080c 100%);
  background-attachment: fixed;
}

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

/* ---------- Layout ---------- */
.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 18px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Page heading ---------- */
.page-head {
  text-align: center;
  padding: 6px 4px 18px;
}

.page-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  background: linear-gradient(180deg, #ffffff 0%, #c9cee0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  background:
    radial-gradient(circle at 32% 50%, #fff 1.6px, transparent 2px) 0 0/100% 100% no-repeat,
    radial-gradient(circle at 28% 50%, #e30a17 4.8px, transparent 5.2px) 0 0/100% 100% no-repeat,
    #e30a17;
  box-shadow: 0 2px 6px rgba(227, 10, 23, 0.35);
  flex-shrink: 0;
}

.page-sub {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* ---------- Cards ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--bg-2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    400px 120px at var(--mx, 50%) 0%,
    rgba(124, 92, 255, 0.25),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--bg-3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.card:hover .card-glow {
  opacity: 1;
}

.card:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 56px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.logo img {
  width: 100px;
  height: 40px;
  object-fit: contain;
}

.info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cta {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-dim);
  white-space: nowrap;
}

.cta-gold {
  color: #1a1300;
  background: linear-gradient(180deg, #ffd97a 0%, #e2a02b 100%);
  border-color: rgba(255, 217, 122, 0.4);
  box-shadow: 0 4px 14px rgba(226, 154, 43, 0.25);
}

.cta-green {
  color: #062e18;
  background: linear-gradient(180deg, #6df0a0 0%, #1faa56 100%);
  border-color: rgba(109, 240, 160, 0.35);
  box-shadow: 0 4px 14px rgba(31, 170, 86, 0.25);
}

.meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}

/* ---------- Featured card ---------- */
.card-featured {
  border-color: rgba(245, 196, 81, 0.35);
  background:
    linear-gradient(180deg, rgba(245, 196, 81, 0.06), rgba(245, 196, 81, 0.015)),
    var(--bg-2);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(245, 196, 81, 0.05);
}

.card-featured:hover {
  border-color: rgba(245, 196, 81, 0.55);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(245, 196, 81, 0.15);
}

.ribbon {
  position: absolute;
  top: 10px;
  right: -28px;
  transform: rotate(35deg);
  background: linear-gradient(90deg, #ffd97a, #e29a2b);
  color: #1a1300;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 32px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(226, 154, 43, 0.4);
}

/* ---------- Footer ---------- */
.foot {
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.foot-sub {
  margin-top: 2px;
  opacity: 0.75;
}

/* ---------- Very small phones ---------- */
@media (max-width: 360px) {
  .wrap {
    padding: 22px 14px 32px;
  }
  .card {
    grid-template-columns: 96px 1fr;
    padding: 12px;
    gap: 10px;
  }
  .logo {
    width: 96px;
    height: 50px;
  }
  .logo img {
    width: 88px;
    height: 36px;
  }
  .cta {
    font-size: 10px;
    padding: 4px 8px;
  }
  .page-title {
    font-size: 18px;
  }
}

/* ---------- Tablet / desktop tweaks ---------- */
@media (min-width: 600px) {
  .wrap {
    max-width: 520px;
    padding: 42px 22px 56px;
  }
  .page-title {
    font-size: 24px;
  }
  .page-sub {
    font-size: 14px;
  }
  .card {
    padding: 16px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .card,
  .card-glow {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}

/* ---------- Focus state for accessibility ---------- */
.card:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
