/* JayceHale.com — public site. Dark graphite + midnight blue, electric blue/purple neon. */
:root {
  --bg: #05070f;
  --bg2: #0a0f22;
  --panel: rgba(16, 24, 48, 0.82);
  --panel-solid: #0d1526;
  --line: rgba(96, 140, 255, 0.35);
  --blue: #38b6ff;
  --blue2: #2f7bff;
  --purple: #a855f7;
  --purple2: #7c3aed;
  --text: #eef2ff;
  --muted: #a5b4d9;
  --radius: 18px;
  --glow: 0 0 18px rgba(56, 182, 255, 0.35), 0 0 34px rgba(168, 85, 247, 0.22);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  background:
    radial-gradient(900px 480px at 85% -5%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(800px 500px at -10% 22%, rgba(47, 123, 255, 0.20), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg) 340px);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 8, 18, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(96, 140, 255, 0.25);
}
.nav-in { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.logo { font-size: 1.7rem; font-weight: 900; font-style: italic; letter-spacing: -1px; color: #fff; text-decoration: none; line-height: 1; }
.logo .dot { color: var(--purple); text-shadow: 0 0 12px var(--purple); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: 2.5px;
  font-size: 0.82rem; text-transform: uppercase; padding: 6px 2px; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple)); transition: right 0.25s ease;
  box-shadow: 0 0 10px var(--blue);
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.burger {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 10px; color: #fff; font-size: 1.25rem; padding: 4px 12px; cursor: pointer;
}
@media (max-width: 640px) {
  .burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 14px;
    background: rgba(5, 8, 18, 0.97); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 2px; border-top: 1px solid rgba(96, 140, 255, 0.14); }
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: 18px 0 8px; }
.hero-img {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--glow); position: relative;
}
.hero-img img { width: 100%; height: auto; }
.hero h1 {
  font-size: clamp(2.6rem, 10vw, 5.2rem); font-weight: 900; font-style: italic;
  letter-spacing: 1px; margin-top: 26px; line-height: 1.02; color: #fff;
  text-shadow: 0 0 26px rgba(56, 182, 255, 0.45);
}
.hero .divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px auto 10px; max-width: 520px; }
.hero .divider::before, .hero .divider::after {
  content: ""; flex: 1; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}
.hero .divider svg { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(56,182,255,.8)); }
.tagline { letter-spacing: 5px; font-weight: 700; font-size: clamp(0.85rem, 3.4vw, 1.25rem); color: var(--text); }
.btn-journey {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px;
  padding: 15px 34px; border-radius: 999px; text-decoration: none; color: #fff;
  font-weight: 800; font-size: 1.12rem;
  background: linear-gradient(90deg, var(--blue2), var(--purple2));
  border: 1px solid rgba(140, 190, 255, 0.7);
  box-shadow: 0 0 22px rgba(88, 101, 242, 0.55), inset 0 0 14px rgba(255,255,255,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-journey:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 34px rgba(124, 58, 237, 0.75); }
.btn-journey .play { width: 26px; height: 26px; flex: none; }
.btn-journey .chev { font-size: 1.3rem; opacity: 0.85; }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 8px; }
@media (max-width: 560px) { .cards { gap: 12px; } }
.card {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text);
  background: linear-gradient(160deg, rgba(30, 44, 84, 0.75), rgba(10, 15, 34, 0.9));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(140, 190, 255, 0.8); box-shadow: var(--glow); }
.card .ic { flex: none; width: 52px; height: 52px; }
.card .ic svg { width: 100%; height: 100%; }
.card h3 { font-size: clamp(1.02rem, 3.6vw, 1.35rem); font-weight: 800; }
.card p { color: var(--muted); font-size: clamp(0.8rem, 2.8vw, 0.95rem); }
.card .go { margin-left: auto; font-size: 1.5rem; color: var(--blue); flex: none; }
.card.purple .go { color: var(--purple); }
@media (max-width: 420px) { .card { gap: 10px; padding: 16px 12px; } .card .ic { width: 42px; height: 42px; } }

/* ---------- sections ---------- */
section.block { padding: 52px 0 8px; scroll-margin-top: 84px; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(1.5rem, 5.4vw, 2.1rem); font-weight: 900; font-style: italic; }
.sec-head .bar { flex: 1; height: 2px; background: linear-gradient(90deg, var(--blue), var(--purple), transparent); box-shadow: 0 0 8px rgba(56,182,255,.5); }
.sec-sub { color: var(--muted); margin-bottom: 20px; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.soon {
  text-align: center; padding: 40px 22px;
  background: linear-gradient(160deg, rgba(47, 123, 255, 0.14), rgba(124, 58, 237, 0.14));
}
.soon .big { font-size: clamp(1.4rem, 5.6vw, 2rem); font-weight: 900; font-style: italic; letter-spacing: 1px; }
.soon p { color: var(--muted); max-width: 520px; margin: 10px auto 0; }
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.step { background: rgba(10, 16, 36, 0.8); border: 1px solid rgba(96,140,255,0.25); border-radius: 14px; padding: 14px; text-align: left; }
.step .n { font-weight: 900; color: var(--blue); font-size: 0.78rem; letter-spacing: 2px; }
.step h4 { margin: 4px 0; font-size: 1rem; }
.step p { color: var(--muted); font-size: 0.86rem; }
.level-chip {
  display: inline-flex; gap: 10px; align-items: center; margin-top: 16px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(10,16,36,.85); font-weight: 700;
}
.level-chip .xp { color: var(--purple); }

/* videos / highlights / favorites / projects grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile .thumb { position: relative; aspect-ratio: 16/9; background: #0a1020; cursor: pointer; }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile .thumb .playbtn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: #fff; text-shadow: 0 0 16px rgba(0,0,0,.9);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35));
}
.tile iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.tile .body { padding: 14px 16px 16px; }
.tile h3 { font-size: 1.05rem; margin-bottom: 4px; }
.tile p { color: var(--muted); font-size: 0.9rem; }
.tile .stars { color: #ffd94d; letter-spacing: 2px; font-size: 1rem; }
.tile .cat { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.hl-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* setup */
.setup-group { margin-bottom: 18px; }
.setup-group h3 { color: var(--blue); letter-spacing: 1.5px; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 8px; }
.setup-item { display: flex; justify-content: space-between; gap: 14px; padding: 10px 4px; border-bottom: 1px solid rgba(96,140,255,0.15); }
.setup-item:last-child { border-bottom: 0; }
.setup-item .name { font-weight: 700; }
.setup-item .det { color: var(--muted); text-align: right; font-size: 0.92rem; }

/* ---------- arcade ---------- */
.arcade-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.game-pick {
  cursor: pointer; text-align: left; color: var(--text); font: inherit;
  background: linear-gradient(160deg, rgba(30,44,84,.75), rgba(10,15,34,.92));
  border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.game-pick:hover, .game-pick.active { transform: translateY(-2px); box-shadow: var(--glow); border-color: rgba(140,190,255,.8); }
.game-pick .gi { font-size: 1.6rem; }
.game-pick h4 { margin: 4px 0 2px; font-size: 1rem; }
.game-pick .best { color: var(--purple); font-size: 0.82rem; font-weight: 700; }
.arcade-stage { padding: 18px; }
.game-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.game-head h3 { font-size: 1.25rem; font-weight: 800; }
.game-head .score { margin-left: auto; font-weight: 800; color: var(--blue); }
.btn {
  display: inline-block; cursor: pointer; font: inherit; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, var(--blue2), var(--purple2));
  border: 1px solid rgba(140,190,255,.6); border-radius: 999px; padding: 9px 20px;
  box-shadow: 0 0 14px rgba(88,101,242,.4); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: rgba(10,16,36,.8); box-shadow: none; }
.game-canvas { display: block; margin: 0 auto; max-width: 100%; background: #070c1a; border: 1px solid var(--line); border-radius: 12px; touch-action: none; }
.game-msg { text-align: center; min-height: 1.5em; margin-top: 10px; color: var(--muted); font-weight: 600; }
.dpad { display: none; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 56px); gap: 6px; justify-content: center; margin-top: 12px; }
.dpad button { font-size: 1.3rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(20,30,60,.9); color: #fff; cursor: pointer; }
@media (pointer: coarse) { .dpad { display: grid; } }
.ttt-grid { display: grid; grid-template-columns: repeat(3, 92px); gap: 8px; justify-content: center; margin: 6px auto; }
.ttt-cell {
  width: 92px; height: 92px; font-size: 2.4rem; font-weight: 900; color: var(--text);
  background: rgba(12,20,44,.9); border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
}
.ttt-cell.x { color: var(--blue); } .ttt-cell.o { color: var(--purple); }
.ttt-cell.win { border-color: #ffd94d; box-shadow: 0 0 14px rgba(255,217,77,.5); }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 380px; margin: 0 auto; }
.mem-card {
  aspect-ratio: 1; font-size: clamp(1.4rem, 7vw, 2rem); border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: linear-gradient(160deg, #1c2c58, #0b1226); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: transform .15s ease;
}
.mem-card.flipped { background: rgba(24,36,72,.95); }
.mem-card.matched { border-color: #3ddc84; box-shadow: 0 0 10px rgba(61,220,132,.45); cursor: default; }
.reaction-box {
  height: 240px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 1.3rem; font-weight: 800; padding: 20px; user-select: none; -webkit-user-select: none;
  background: #23304f; transition: background .1s;
}
.reaction-box.wait { background: #7a2436; }
.reaction-box.go { background: #1d7a43; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { font: inherit; font-weight: 700; padding: 7px 16px; background: transparent; color: var(--muted); border: 0; cursor: pointer; }
.seg button.on { background: linear-gradient(90deg, var(--blue2), var(--purple2)); color: #fff; }

/* ---------- footer ---------- */
footer { margin-top: 60px; text-align: center; padding: 34px 16px 44px; position: relative; overflow: hidden; }
footer::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 130px; pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(10, 16, 40, 0.9)),
    radial-gradient(600px 90px at 50% 100%, rgba(47, 123, 255, 0.35), transparent 70%);
}
.closing { letter-spacing: 5px; font-weight: 800; font-size: clamp(0.9rem, 3.6vw, 1.3rem); position: relative; }
.creator-login {
  position: relative; display: inline-flex; gap: 9px; align-items: center; margin-top: 30px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.02rem; padding: 8px 10px;
}
.creator-login::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple)); box-shadow: 0 0 10px var(--purple);
}
.fade-in { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
