/* NovaInfinity Games - NOVAINFINITY LLC */
:root {
  --bg: #0b0b1e;
  --bg2: #13132e;
  --panel: #1a1a3a;
  --line: #2c2c5a;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --text: #e7e7ff;
  --dim: #a3a3c7;
  --rad: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(1px 1px at 10% 20%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 30% 80%, #fff6 50%, transparent 51%), radial-gradient(1.5px 1.5px at 70% 30%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 85% 70%, #fff5 50%, transparent 51%), radial-gradient(1px 1px at 50% 50%, #fff4 50%, transparent 51%);
  background-size: 320px 320px;
  color: var(--text);
  line-height: 1.7;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.nv-container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.grad { background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nv-nav { position: sticky; top: 0; z-index: 60; background: rgba(11, 11, 30, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nv-nav .nv-container { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nv-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: .03em; }
.nv-logo:hover { text-decoration: none; }
.nv-logo img { width: 34px; height: 34px; }
.nv-links { display: flex; gap: 26px; list-style: none; }
.nv-links a { color: var(--dim); font-weight: 600; font-size: .95rem; }
.nv-links a:hover, .nv-links a.on { color: var(--text); text-decoration: none; }
.nv-links a.on { border-bottom: 2px solid var(--violet); padding-bottom: 4px; }
.nv-menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 4px 10px; font-size: 1.2rem; cursor: pointer; }

/* Buttons */
.nv-btn { display: inline-block; padding: 12px 26px; border-radius: 12px; font: inherit; font-weight: 700; border: 0; cursor: pointer; transition: box-shadow .2s, transform .15s; }
.nv-btn:hover { text-decoration: none; transform: translateY(-2px); }
.nv-btn-main { background: linear-gradient(90deg, var(--violet), var(--pink)); color: #fff; box-shadow: 0 6px 24px rgba(139, 92, 246, .4); }
.nv-btn-main:hover { box-shadow: 0 8px 30px rgba(236, 72, 153, .5); }
.nv-btn-line { border: 1.5px solid var(--cyan); color: var(--cyan); background: transparent; }

/* Hero */
.nv-hero { padding: 110px 0 90px; position: relative; overflow: hidden; }
.nv-hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .45), transparent 65%); }
.nv-hero::after { content: ""; position: absolute; width: 460px; height: 460px; left: -180px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .25), transparent 65%); }
.nv-hero .nv-container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.nv-pill { display: inline-block; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--cyan); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; background: rgba(34, 211, 238, .06); }
.nv-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; margin-bottom: 20px; font-weight: 900; }
.nv-hero p { color: var(--dim); font-size: 1.12rem; max-width: 560px; margin-bottom: 32px; }
.nv-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.nv-planet { width: 100%; max-width: 380px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c4b5fd, var(--violet) 40%, #3b1d7a 75%); box-shadow: 0 0 80px rgba(139, 92, 246, .55), inset -30px -30px 60px rgba(0, 0, 0, .45); position: relative; animation: float 6s ease-in-out infinite; }
.nv-planet::after { content: ""; position: absolute; left: -18%; right: -18%; top: 44%; height: 14%; border-radius: 50%; border: 6px solid rgba(34, 211, 238, .7); transform: rotate(-14deg); }
@keyframes float { 50% { transform: translateY(-14px); } }

/* Sections */
.nv-sec { padding: 80px 0; }
.nv-sec-alt { background: linear-gradient(180deg, transparent, rgba(26, 26, 58, .6), transparent); }
.nv-title { margin-bottom: 44px; }
.nv-title.center { text-align: center; }
.nv-title h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; }
.nv-title p { color: var(--dim); max-width: 620px; }
.nv-title.center p { margin: 8px auto 0; }

.nv-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nv-game { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.nv-game:hover { border-color: var(--violet); transform: translateY(-5px); }
.nv-game-art { height: 170px; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.nv-game-info { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.nv-game-info .kind { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); font-weight: 800; }
.nv-game-info h3 { font-size: 1.3rem; margin: 4px 0 8px; }
.nv-game-info p { color: var(--dim); flex: 1; margin-bottom: 18px; }

.nv-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nv-feat { padding: 24px; border-radius: var(--rad); background: rgba(26, 26, 58, .7); border: 1px solid var(--line); }
.nv-feat b { display: block; font-size: 1.7rem; margin-bottom: 8px; }
.nv-feat h3 { font-size: 1.05rem; margin-bottom: 6px; }
.nv-feat p { color: var(--dim); font-size: .94rem; }

.nv-about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.nv-about p { color: var(--dim); margin-bottom: 14px; }
.nv-id { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.nv-id h3 { margin-bottom: 14px; }
.nv-id table { width: 100%; border-collapse: collapse; }
.nv-id td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.nv-id tr:last-child td { border-bottom: 0; }
.nv-id td:first-child { color: var(--dim); width: 34%; font-size: .9rem; }

/* Inner page header */
.nv-head { padding: 70px 0 40px; text-align: center; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at top, rgba(139, 92, 246, .25), transparent 70%); }
.nv-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.nv-head p { color: var(--dim); }

/* Legal */
.nv-legal { max-width: 860px; margin: 50px auto 80px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 48px; }
.nv-legal h2 { font-size: 1.3rem; margin: 32px 0 10px; color: #c4b5fd; }
.nv-legal h2:first-child { margin-top: 0; }
.nv-legal h3 { font-size: 1.02rem; margin: 16px 0 6px; }
.nv-legal p, .nv-legal li { color: #cfcfee; margin-bottom: 10px; }
.nv-legal ul { padding-left: 22px; }
.nv-entity { border: 1px solid var(--violet); background: rgba(139, 92, 246, .08); border-radius: 12px; padding: 16px 20px; margin: 14px 0 18px; }
.nv-entity p { margin-bottom: 4px; }

/* Contact */
.nv-contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 30px; padding: 60px 0 80px; }
.nv-box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.nv-box h2 { font-size: 1.35rem; margin-bottom: 18px; }
.nv-ci { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nv-ci:last-child { border-bottom: 0; }
.nv-ci i { font-style: normal; font-size: 1.3rem; width: 30px; }
.nv-ci strong { display: block; }
.nv-ci span { color: var(--dim); }
.nv-input { margin-bottom: 16px; }
.nv-input label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.nv-input input, .nv-input select, .nv-input textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; }
.nv-input input:focus, .nv-input select:focus, .nv-input textarea:focus { outline: none; border-color: var(--violet); }
.nv-note { font-size: .85rem; color: var(--dim); margin-top: 10px; }

/* Game pages */
.nv-play { padding: 40px 0 80px; }
.nv-play-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.nv-play-top h1 { font-size: 2rem; font-weight: 900; }
.nv-play-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.nv-stage { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; align-items: center; }
.nv-hud { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.nv-hud div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 16px; text-align: center; min-width: 92px; }
.nv-hud small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.nv-hud b { font-size: 1.3rem; }
.nv-stage canvas { width: min(480px, 88vw); height: auto; border-radius: 12px; border: 1px solid var(--line); touch-action: none; display: block; }
.nv-msg { margin-top: 14px; font-weight: 700; min-height: 1.7em; text-align: center; color: #c4b5fd; }
.nv-aside .nv-box { margin-bottom: 20px; padding: 24px; }
.nv-aside h3 { margin-bottom: 10px; }
.nv-aside ul { padding-left: 18px; color: var(--dim); }
.nv-levels { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; justify-content: center; }
.nv-levels button { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: var(--dim); font: inherit; font-weight: 700; cursor: pointer; }
.nv-levels button.on { border-color: var(--violet); color: #fff; background: rgba(139, 92, 246, .25); }

/* Minesweeper */
.nv-mines { display: grid; gap: 3px; user-select: none; touch-action: manipulation; }
.nv-mines button { width: var(--cs); height: var(--cs); border: 0; border-radius: 5px; background: #2e2e64; color: var(--text); font: inherit; font-weight: 800; font-size: calc(var(--cs) * .5); cursor: pointer; padding: 0; }
.nv-mines button:hover:not(.open) { background: #3c3c80; }
.nv-mines button.open { background: #15152f; cursor: default; }
.nv-mines button.boom { background: var(--pink); }

/* Footer */
.nv-footer { border-top: 1px solid var(--line); background: #08081a; padding: 60px 0 0; margin-top: 30px; }
.nv-fcols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.nv-footer h4 { margin-bottom: 14px; font-size: 1.02rem; }
.nv-footer p, .nv-footer li { color: var(--dim); font-size: .94rem; margin-bottom: 7px; }
.nv-footer ul { list-style: none; }
.nv-policy { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.nv-policy a { padding: 8px 18px; border-radius: 10px; border: 1px solid var(--violet); color: #fff; font-weight: 700; font-size: .9rem; background: rgba(139, 92, 246, .15); }
.nv-policy a:hover { background: var(--violet); text-decoration: none; }
.nv-copy { border-top: 1px solid var(--line); text-align: center; padding: 22px 0; font-size: .88rem; color: #8585ad; }

/* Responsive */
@media (max-width: 960px) {
  .nv-hero .nv-container, .nv-about, .nv-contact, .nv-play-grid { grid-template-columns: 1fr; }
  .nv-games { grid-template-columns: repeat(2, 1fr); }
  .nv-feats { grid-template-columns: repeat(2, 1fr); }
  .nv-fcols { grid-template-columns: 1fr 1fr; }
  .nv-planet { max-width: 260px; }
}
@media (max-width: 680px) {
  .nv-menu-btn { display: block; }
  .nv-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nv-links.open { display: flex; }
  .nv-links a { display: block; padding: 14px 22px; }
  .nv-links a.on { border-bottom: 0; }
  .nv-games, .nv-feats, .nv-fcols { grid-template-columns: 1fr; }
  .nv-legal { padding: 28px 20px; margin: 30px 0 60px; }
  .nv-hero { padding: 70px 0 60px; }
}

/* ---- Plainer homepage (v2) ---- */
.nv-btn-main { background: var(--violet); box-shadow: none; }
.nv-btn-main:hover { background: #7c4dea; box-shadow: none; }
.nv-game:hover { transform: none; }
.nv-intro { padding: 56px 0 24px; }
.nv-intro h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; margin-bottom: 8px; }
.nv-intro p { color: var(--dim); max-width: 640px; font-size: 1.08rem; }
.nv-games-sec { padding-top: 16px; }
.nv-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 24px; }
.nv-featured img, .nv-game-cover img { width: 100%; height: auto; display: block; border-radius: 10px; }
.nv-featured h2 { font-size: 1.9rem; margin: 4px 0 10px; }
.nv-featured p { color: var(--dim); margin-bottom: 14px; }
.kind { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); font-weight: 800; }
.nv-game-info p.nv-controls, .nv-controls { flex: 0 0 auto; font-size: .9rem; color: #c4b5fd; }
.nv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nv-game-cover { display: block; padding: 12px 12px 0; }
.nv-h2 { font-size: 1.7rem; margin-bottom: 6px; }
.nv-sub { color: var(--dim); margin-bottom: 22px; }
.nv-records { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.nv-records div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.nv-records span { display: block; color: var(--dim); font-size: .88rem; }
.nv-records b { display: block; font-size: 1.6rem; margin: 4px 0; }
.nv-records small { color: #8585ad; font-size: .78rem; }
.more-link { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--text); font-weight: 700; }
.more-link img { width: 64px; height: 36px; border-radius: 6px; border: 1px solid var(--line); }
@media (max-width: 960px) {
  .nv-featured, .nv-pair { grid-template-columns: 1fr; }
  .nv-records { grid-template-columns: repeat(2, 1fr); }
}
.nv-play-grid > * { min-width: 0; }
.nv-stage canvas { width: 100%; max-width: 480px; }
@media (max-width: 680px) { .nv-stage { padding: 14px; } }
