/* ============================================================
   Return to Memes — landing page, League of Legends styling
   Palette: hextech blue-black + antique gold + hextech teal
   ============================================================ */

:root {
  --bg0: #010a13;
  --bg1: #091428;
  --bg2: #0a1930;
  --gold: #c8aa6e;
  --gold-bright: #f0e6d2;
  --gold-mid: #c89b3c;
  --gold-deep: #785a28;
  --gold-dark: #463714;
  --teal: #0ac8b9;
  --teal-deep: #005a82;
  --grey: #a09b8c;
  --grey-dim: #5b5a56;
  --ink: #f0e6d2;
  --fud: #e04a38;
  --meme: #3fa9f5;
  --serif: 'Cinzel', 'Beaufort', Georgia, serif;
  --sans: 'Inter', 'Spiegel', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg0);
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* hextech backdrop */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 760px at 50% -12%, rgba(10, 200, 185, 0.10), transparent 60%),
    radial-gradient(900px 700px at 12% 18%, rgba(24, 78, 140, 0.28), transparent 58%),
    radial-gradient(1000px 800px at 92% 88%, rgba(120, 40, 34, 0.16), transparent 55%),
    linear-gradient(180deg, #010a13, #050f1f 45%, #010a13);
}
.bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(200,170,110,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(200,170,110,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 24%, #000, transparent 72%);
}
.bg::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 260px 60px rgba(0,0,0,0.85);
  pointer-events: none;
}

.wrap { position: relative; z-index: 1; }

/* ---------- top bar ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 34px;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(1,10,19,0.94), rgba(1,10,19,0.35));
  border-bottom: 1px solid var(--gold-dark);
}
header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep) 30%, var(--gold) 50%, var(--gold-deep) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand .mark { width: 30px; height: 30px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(200,170,110,0.4)); }
.brand .name {
  font-family: var(--serif); font-weight: 800;
  letter-spacing: 4px; font-size: 16px; color: var(--gold-bright);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* LoL-style angular beveled buttons */
.btn {
  cursor: pointer; font-family: var(--sans);
  font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  padding: 11px 20px;
  border: 1px solid var(--gold-deep);
  background: linear-gradient(180deg, #0a1a2a, #061019);
  color: var(--gold); transition: all 0.16s;
  display: inline-flex; align-items: center; gap: 8px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  position: relative;
}
.btn:hover { border-color: var(--gold); color: var(--gold-bright); box-shadow: 0 0 14px rgba(200,170,110,0.22); }
.btn .ico { width: 15px; height: 15px; }
.btn-wallet { border-color: var(--teal-deep); color: #7fe3d8; }
.btn-wallet:hover { border-color: var(--teal); color: #baf5ee; box-shadow: 0 0 16px rgba(10,200,185,0.3); }
.btn.connected { border-color: #0a8; color: #7ff0c8; }

/* ---------- hero ---------- */
.hero {
  min-height: 88vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 54px 20px 40px;
}
.free-badge {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid var(--teal-deep);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  background: rgba(10, 200, 185, 0.06);
}
.hero .skull { width: 54px; height: 54px; color: var(--gold); margin-bottom: 12px; filter: drop-shadow(0 0 16px rgba(200,170,110,0.4)); }
.hero h1 {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(44px, 8.6vw, 100px); line-height: 0.96;
  letter-spacing: 7px; color: var(--gold-bright);
  text-shadow: 0 0 50px rgba(10,200,185,0.28), 0 6px 14px #000;
}
.hero h1 .lo { color: var(--gold); }
.hero .tagline {
  margin-top: 22px; font-size: clamp(15px, 1.9vw, 19px);
  color: #cdd7e2; max-width: 640px; line-height: 1.6;
}
.hero .tagline b { color: var(--gold); }
.hero .cta-row { margin-top: 42px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; align-items: stretch; }

/* primary PLAY — LoL gold beveled */
.play-btn {
  cursor: pointer; font-family: var(--serif); font-weight: 700;
  font-size: 21px; letter-spacing: 5px;
  padding: 19px 72px;
  color: #061019;
  background: linear-gradient(180deg, #f0e6d2, #c8aa6e 55%, #a17c37);
  border: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 6px 26px rgba(200,170,110,0.35);
  transition: all 0.16s;
  position: relative;
}
.play-btn::before {
  content: ''; position: absolute; inset: 2px;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  border: 1px solid rgba(255,255,255,0.35); pointer-events: none;
}
.play-btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 10px 34px rgba(200,170,110,0.5); }

.play-online {
  cursor: pointer; font-family: var(--serif); font-weight: 700;
  font-size: 17px; letter-spacing: 3px;
  padding: 19px 42px;
  color: var(--gold);
  background: linear-gradient(180deg, #0c1c2e, #06111d);
  border: 1px solid var(--gold-deep);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: all 0.16s;
  display: inline-flex; align-items: center; gap: 10px;
}
.play-online:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold-bright); box-shadow: 0 0 22px rgba(200,170,110,0.28); }
.play-online .tag {
  font-family: var(--sans); font-size: 10px; letter-spacing: 1px; font-weight: 700;
  padding: 2px 8px; color: var(--teal);
  border: 1px solid var(--teal-deep); background: rgba(10,200,185,0.08);
}
.hero .note { margin-top: 22px; font-size: 12px; color: var(--grey); letter-spacing: 1px; text-transform: uppercase; }

/* champion showcase — LoL champion-select angular frames */
.champ-strip {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  margin-top: 52px; max-width: 940px;
}
.champ { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 96px; }
.champ .disc {
  width: 82px; height: 82px; position: relative;
  border: 2px solid var(--gold-deep);
  background: linear-gradient(160deg, #0e1c2c, #050d16);
  overflow: hidden;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.champ:hover .disc { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.6); border-color: var(--gold); }
.champ.enemy .disc { border-color: #7a2a22; }
.champ.enemy:hover .disc { border-color: var(--fud); box-shadow: 0 8px 20px rgba(224,74,56,0.25); }
.champ .disc img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.champ .cname {
  font-family: var(--serif); font-size: 12px; letter-spacing: 1px;
  color: var(--gold); text-align: center;
}
.champ.enemy .cname { color: #ffab9d; }
.champ .cteam {
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--grey-dim);
}

/* ---------- ornamental divider ---------- */
.divider-orn {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 26px auto 4px; max-width: 520px;
}
.divider-orn span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-deep)); }
.divider-orn span:last-child { background: linear-gradient(90deg, var(--gold-deep), transparent); }
.divider-orn .diamond { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 10px rgba(200,170,110,0.5); }

.section-title {
  text-align: center; font-family: var(--serif); font-weight: 800;
  font-size: 30px; letter-spacing: 4px; color: var(--gold-bright);
  margin: 34px 0 4px; text-transform: uppercase;
}
.section-sub { text-align: center; color: var(--grey); font-size: 14px; margin-bottom: 8px; }

/* ---------- features ---------- */
.features {
  max-width: 1080px; margin: 14px auto; padding: 34px 24px 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px;
}
.feature {
  background: linear-gradient(160deg, rgba(12,26,42,0.85), rgba(6,15,26,0.9));
  border: 1px solid var(--gold-dark);
  padding: 26px 24px;
  transition: border-color 0.2s, transform 0.2s;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  position: relative;
}
.feature::before {
  content: ''; position: absolute; top: 10px; left: 10px;
  width: 18px; height: 18px;
  border-top: 1px solid var(--gold-deep); border-left: 1px solid var(--gold-deep);
}
.feature:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.feature .ico { width: 28px; height: 28px; color: var(--gold); margin-bottom: 14px; }
.feature h3 { font-family: var(--serif); font-size: 16px; letter-spacing: 1.5px; margin-bottom: 8px; color: var(--gold); text-transform: uppercase; }
.feature p { font-size: 13.5px; color: #b6c0cf; line-height: 1.6; }

footer {
  text-align: center; padding: 40px 20px 60px;
  color: var(--grey-dim); font-size: 12.5px;
  border-top: 1px solid var(--gold-dark); position: relative;
}
footer::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep) 40%, var(--gold-deep) 60%, transparent);
}
footer b { color: var(--gold); }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(1,6,12,0.85); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
}
.modal-backdrop.show { display: flex; }
.modal {
  width: 408px; max-width: 92vw;
  background: linear-gradient(180deg, #0c1a2b, #050e18);
  border: 1px solid var(--gold-deep);
  padding: 32px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.75);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.modal h2 { font-family: var(--serif); font-size: 23px; letter-spacing: 3px; color: var(--gold-bright); text-align: center; margin-bottom: 4px; text-transform: uppercase; }
.modal .sub { text-align: center; color: var(--grey); font-size: 13px; margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; color: var(--grey); margin-bottom: 6px; letter-spacing: 1px; text-transform: uppercase; }
.field input {
  width: 100%; padding: 12px 14px;
  background: #04101c; border: 1px solid var(--gold-dark);
  color: var(--ink); font-size: 14px; font-family: var(--sans);
  transition: border-color 0.16s;
}
.field input:focus { outline: none; border-color: var(--gold); }
.modal .btn-full { width: 100%; justify-content: center; padding: 14px; font-size: 13px; margin-top: 6px; }
.btn-gold { border-color: var(--gold); color: var(--gold-bright); background: linear-gradient(180deg, #16283c, #0a1725); }
.btn-gold:hover { box-shadow: 0 0 20px rgba(200,170,110,0.35); }
.modal .switch { text-align: center; font-size: 13px; color: var(--grey); margin-top: 16px; }
.modal .switch a { color: var(--gold); cursor: pointer; }
.modal .err { color: #ff8a7a; font-size: 13px; text-align: center; min-height: 18px; margin-top: 8px; }
.modal-close {
  position: absolute; top: 16px; right: 20px; cursor: pointer;
  color: var(--grey-dim); font-size: 26px; line-height: 1; transition: color 0.16s;
}
.modal-close:hover { color: var(--gold); }

/* toast */
#toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #0c1a2b; border: 1px solid var(--gold-deep);
  padding: 12px 24px; color: var(--ink); font-size: 14px; z-index: 200;
  opacity: 0; transition: all 0.3s; pointer-events: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  header { padding: 12px 16px; }
  .nav-actions .label-full { display: none; }
}
