/* Infinity Inc. — palette from the guild logo: white → silver → graphite ribbon
   on black. Game sections keep their own accents (Forever teal, Midnight violet,
   Star Citizen ice). The --gold / --gold-2 names are the brand accent slots. */
:root {
  --bg: #07080a;
  --bg-2: #0d0e12;
  --surface: #121419;
  --surface-2: #181b21;
  --border: rgba(220, 226, 236, 0.12);
  --text: #eef0f3;
  --muted: #9a9fa8;
  --gold: #e9ebef;
  --gold-2: #8e939c;
  --teal: #2bb3d9;
  --violet: #8b7bff;
  --ice: #b4dcff;
  --danger: #ff6b6b;
  --ok: #4ad6a0;
  --radius: 14px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --grad: linear-gradient(90deg, #ffffff 0%, #cfd3da 40%, #8e939c 75%, #5d6168 100%);
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(220, 226, 236, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(180, 220, 255, 0.04), transparent 60%);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffffff; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  font: 600 .78rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #cfd3da; max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--font-body); letter-spacing: .02em; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: linear-gradient(180deg, #ffffff, #b9bec7);
  color: #0b0c10; box-shadow: 0 8px 30px -8px rgba(230, 234, 240, .35), inset 0 1px 0 rgba(255,255,255,.8);
}
.btn--gold:hover { color: #0b0c10; box-shadow: 0 12px 36px -8px rgba(230, 234, 240, .55), inset 0 1px 0 rgba(255,255,255,.8); }
.btn--ghost { border-color: rgba(180, 220, 255, .35); color: var(--text); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--ice); color: #fff; background: rgba(180,220,255,.08); }
.btn--sm { padding: .62em 1.15em; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 10, .74); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.2rem/1 var(--font-display); }
.brand em { font-style: normal; color: var(--gold); }
.brand:hover { color: #fff; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; }
.lang-switch a { padding: .32em .7em; border-radius: 999px; font: 600 .74rem/1 var(--font-body); letter-spacing: .08em; color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.on { background: rgba(230,234,240,.12); color: var(--text); }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(80px, 14vh, 150px) 0 40px; min-height: min(88vh, 860px); display: flex; flex-direction: column; justify-content: center; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .55; transform: scale(1.04); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,8,10,.95) 0%, rgba(7,8,10,.72) 45%, rgba(7,8,10,.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero__inner { position: relative; }
.hero__logo { width: clamp(150px, 17vw, 220px); height: auto; margin-bottom: 18px; filter: drop-shadow(0 0 28px rgba(255,255,255,.22)); }
.hero h1 { text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__strip { display: flex; gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: clamp(48px, 9vh, 90px); flex-wrap: wrap; }
.strip-logo img { height: clamp(70px, 9vw, 104px); width: auto; opacity: .85; transition: opacity .2s, transform .2s; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.strip-logo:hover img { opacity: 1; transform: translateY(-3px); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--tight { padding: 40px 0 90px; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(20, 22, 27, .7) 20%, rgba(20, 22, 27, .7) 80%, transparent); }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 6vw, 64px); }

/* ---------- game rows ---------- */
.game {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  margin-bottom: clamp(56px, 8vw, 96px);
  --accent: var(--gold);
}
.game--flip .game__art { order: 2; }
.game:last-child { margin-bottom: 0; }
.game__art {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
.game__art > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.game:hover .game__art > img:first-child { transform: scale(1.04); }
.game__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,8,10,.85), transparent 55%); }
.game__logo { position: absolute; z-index: 1; left: 20px; bottom: 16px; height: 38%; width: auto; filter: drop-shadow(0 6px 20px rgba(0,0,0,.7)); }
.game__body h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.game__body p { color: #c4c8cf; }
.tag {
  display: inline-block; margin-bottom: 14px; padding: .4em .85em; border-radius: 999px;
  font: 600 .74rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: .45em; }
.ticks li { position: relative; padding-left: 1.6em; }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--accent, var(--gold)); font-size: .85em; top: .15em; }
.link { font-weight: 600; color: var(--accent); }

/* ---------- values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value {
  padding: 28px 24px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); transition: border-color .2s, transform .2s;
}
.value:hover { border-color: rgba(230, 234, 240, .35); transform: translateY(-3px); }
.value__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  font-size: 1.3rem; color: var(--gold); background: rgba(230, 234, 240, .06); border: 1px solid rgba(230, 234, 240, .2);
}
.value h3 { font-size: 1.15rem; }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- steps / cta ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li {
  counter-increment: s; position: relative; padding: 64px 24px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); display: grid; gap: 6px;
}
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; top: 18px; left: 24px;
  font: 800 1.6rem/1 var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps strong { font-size: 1.08rem; }
.steps span { color: var(--muted); font-size: .95rem; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 36px 40px; border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(120deg, rgba(255,255,255,.08), rgba(180,220,255,.05) 55%, rgba(139,123,255,.08)),
    var(--surface);
  border: 1px solid rgba(230, 234, 240, .22);
}
.cta-band h3 { font-size: 1.7rem; margin-bottom: .2em; }
.cta-band p { margin: 0; }

/* ---------- inner page hero ---------- */
.page-hero { padding: 72px 0 24px; }
.page-hero--center { text-align: center; padding: 110px 0 120px; }
.page-hero--center img { margin: 0 auto 20px; }
.page-hero--center .lead { margin-inline: auto; }
.page-hero--center .hero__cta { justify-content: center; }

/* ---------- form ---------- */
.apply { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.form { padding: clamp(22px, 4vw, 40px); }
fieldset { border: 0; padding: 0; margin: 0 0 30px; }
legend { font: 700 1.15rem/1.2 var(--font-display); color: var(--gold); margin-bottom: 18px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > span { font-size: .9rem; font-weight: 500; color: #cdd1d8; }
input, select, textarea {
  width: 100%; padding: .78em .95em; border-radius: 10px; border: 1px solid rgba(220,226,236,.16);
  background: var(--bg-2); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 140px; }
input::placeholder, textarea::placeholder { color: #61656d; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43,179,217,.2); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.game-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.pick {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer;
  border-radius: 12px; border: 1px solid rgba(220,226,236,.16); background: var(--bg-2); font-weight: 500; font-size: .93rem;
  transition: border-color .15s, background .15s;
}
.pick input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.pick { --accent: var(--gold); }
.pick input { accent-color: var(--accent); }
.pick:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: #cdd1d8; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 20px; }
.fine { font-size: .82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.alert {
  border: 1px solid rgba(255,107,107,.45); background: rgba(255,107,107,.08); color: #ffd1d1;
  border-radius: 12px; padding: 14px 18px; margin-bottom: 26px;
}
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.apply__side { display: grid; gap: 18px; position: sticky; top: 92px; }
.side-card { padding: 26px; }
.side-card h3 { font-size: 1.15rem; }
.side-card .ticks { margin: 0; font-size: .94rem; color: #c4c8cf; }
.side-art { display: grid; gap: 12px; }
.side-art img { border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--border); opacity: .85; }

/* ---------- admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 30px 0 28px; }
.admin-head h1 { font-size: 2.2rem; }
.admin-head small { color: var(--muted); font-size: .55em; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a { padding: .5em 1em; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.filters a.on, .filters a:hover { color: var(--text); border-color: var(--gold); }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.app { padding: 22px; display: flex; flex-direction: column; }
.app header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.app h2 { font-size: 1.3rem; margin: 0; overflow-wrap: anywhere; }
.app dl { display: grid; grid-template-columns: 96px 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: .9rem; }
.app dt { color: var(--muted); }
.app dd { margin: 0; overflow-wrap: anywhere; }
.app code { color: var(--ice); }
.about { white-space: pre-wrap; font-size: .93rem; color: #c4c8cf; background: var(--bg-2); border-radius: 10px; padding: 12px 14px; flex: 1; overflow-wrap: anywhere; }
.app__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.badge { padding: .3em .75em; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .05em; white-space: nowrap; }
.badge--pending { color: #f2c14e; background: rgba(242,193,78,.12); }
.badge--approved { color: var(--ok); background: rgba(74,214,160,.12); }
.badge--rejected { color: var(--danger); background: rgba(255,107,107,.12); }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- admin: navigation, games ---------- */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 26px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); width: fit-content; }
.admin-nav a { padding: .55em 1.05em; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.admin-nav a:hover { color: var(--text); }
.admin-nav a.on { background: rgba(230,234,240,.1); color: var(--text); }
.admin-nav__site { margin-left: 6px; }
.game-rows { display: grid; gap: 14px; }
.game-row { display: grid; grid-template-columns: 200px 1fr auto; gap: 20px; align-items: center; padding: 14px; border-left: 3px solid var(--accent); }
.game-row--off { opacity: .6; }
.game-row__thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.game-row__thumb > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.game-row__logo { position: absolute; left: 8px; bottom: 6px; height: 46%; width: auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,.7)); }
.game-row__body h2 { font-size: 1.25rem; margin-bottom: .25em; }
.game-row__body p { margin: 0 0 .6em; font-size: .88rem; }
.game-row__actions { display: flex; gap: 8px; align-items: flex-start; }
.confirm { position: relative; }
.confirm summary { list-style: none; }
.confirm summary::-webkit-details-marker { display: none; }
.confirm__box { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: 260px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid rgba(255,107,107,.4); box-shadow: var(--shadow); }
.confirm__box p { font-size: .88rem; margin-bottom: .8em; }
.btn--danger { background: rgba(255,107,107,.14); border-color: rgba(255,107,107,.5); color: #ffd1d1; }
.btn--danger:hover { background: rgba(255,107,107,.24); color: #fff; }
.help { color: var(--muted); font-size: .8rem; }
.grid-2--tight { gap: 0 12px; }
input.color { padding: 4px; height: 46px; cursor: pointer; }
input[type=file] { padding: .55em; font-size: .88rem; }
input[readonly] { opacity: .6; }
.img-preview { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); aspect-ratio: 16/9; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview--logo img { object-fit: contain; padding: 10px; }
.field .img-preview + input, .field input + input, .field small + input { margin-top: 6px; }
.lang-cols { gap: 0 28px; align-items: start; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
@media (max-width: 820px) {
  .game-row { grid-template-columns: 1fr; }
  .game-row__actions { justify-content: flex-start; }
  .confirm__box { left: 0; right: auto; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; background: rgba(4, 5, 7, .7); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand strong { font-family: var(--font-display); font-size: 1.15rem; }
.footer__brand p { margin: 0; color: var(--muted); font-size: .9rem; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(220,226,236,.07); font-size: .78rem; color: #6c7079; }
.footer__legal p { margin: 0 0 .5em; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .apply { grid-template-columns: 1fr; }
  .apply__side { position: static; }
  .side-art { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .brand { margin-right: auto; }
  .game, .game--flip { grid-template-columns: 1fr; }
  .game--flip .game__art { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .game-picks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__strip { gap: 18px; }
  .cta-band { padding: 26px 22px; }
  .side-art { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
