/* FOXSPUN GAMES - foxspun.com site styles (no framework, no external requests). */

:root {
  --bg: #101330;
  --bg-soft: #131740;
  --surface: #181d4a;
  --surface-2: #1f2557;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #fff6e4;
  --muted: #c3bfd6;
  --violet: #e87026;
  --blue: #f59a3a;
  --cyan: #ffc46b;
  --amber: #ffb547;
  --grad: linear-gradient(120deg, var(--violet) 0%, var(--blue) 55%, var(--cyan) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(245, 154, 58, 0.16), transparent 60%),
    radial-gradient(900px 520px at -10% 10%, rgba(232, 112, 38, 0.14), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface-2); color: var(--text); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 23, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 6px; margin-left: auto; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.lang a { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); padding: 4px 10px; border-radius: 999px; }
.lang a:hover { text-decoration: none; color: var(--text); }
.lang a[aria-current="page"] { background: var(--grad); color: #101330; }

/* ---------- buttons, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 0.98rem; padding: 13px 22px; border-radius: 12px;
  border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #101330; box-shadow: 0 10px 30px -10px rgba(245, 154, 58, 0.7); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(245, 154, 58, 0.9); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 14px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 181, 71, 0.4); color: var(--amber); background: rgba(255, 181, 71, 0.08);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 span { display: block; width: fit-content; }
.hero-text { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: -2px; border-radius: calc(var(--radius) + 4px);
  background: var(--grad); filter: blur(28px); opacity: 0.35; z-index: -1;
}
.hero-photo img { border-radius: var(--radius); border: 1px solid var(--line-strong); aspect-ratio: 1200 / 751; object-fit: cover; width: 100%; }

.focus-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.focus-strip a {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--text); font-weight: 650;
}
.focus-strip a:hover { text-decoration: none; border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.focus-strip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-intro { color: var(--muted); font-size: 1.08rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); overflow: hidden;
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); opacity: 0.85; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(245, 154, 58, 0.12); border: 1px solid rgba(245, 154, 58, 0.3); color: var(--cyan);
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------- project ---------- */
.project {
  border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line-strong); overflow: hidden;
  background: linear-gradient(160deg, rgba(232, 112, 38, 0.10), rgba(255, 196, 107, 0.04) 60%), var(--surface);
}
.project-media img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.project-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 36px; }
.project-title { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.project-title img { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line-strong); }
.project-title h3 { font-size: 1.9rem; margin: 0; }
.project-title .kicker { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.project-body p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 18px; height: 18px; border-radius: 6px; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.project-links { display: flex; flex-wrap: wrap; gap: 10px; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 36px 36px; }
.shots img { border-radius: 14px; border: 1px solid var(--line-strong); aspect-ratio: 9 / 16; object-fit: cover; width: 100%; background: var(--surface-2); }
.more-note { margin-top: 22px; color: var(--muted); font-size: 0.98rem; display: flex; align-items: center; gap: 10px; }
.more-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--muted); }

/* ---------- contact ---------- */
.contact-card {
  position: relative; border-radius: calc(var(--radius) + 6px); padding: 56px; text-align: center;
  background: radial-gradient(600px 260px at 50% 0%, rgba(245, 154, 58, 0.22), transparent 70%), var(--surface);
  border: 1px solid var(--line-strong);
}
.contact-card p { color: var(--muted); max-width: 36em; margin: 0 auto 1em; }
.mail-big { display: inline-block; font-family: var(--font-display); font-size: clamp(1.4rem, 3.6vw, 2.3rem); font-weight: 800; margin: 10px 0 26px; word-break: break-all; }
.mail-label { display: block; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em; color: var(--muted); margin-top: 18px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 8px; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- simple content pages (Rusty Rush, data deletion, 404) ---------- */
.page { padding: 56px 0 80px; }
.page .container { max-width: 860px; }
.page h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.page h2 { font-size: 1.45rem; margin-top: 2em; }
.page h2.title { font-size: clamp(2rem, 4.6vw, 3rem); margin-top: 0; }
.page p, .page li { color: #cfd3e4; }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin-bottom: 0.4em; }
.page hr { border: 0; border-top: 1px solid var(--line-strong); margin: 56px 0; }
.page .lead { font-size: 1.15rem; color: var(--muted); }
.page-hero-img { border-radius: var(--radius); border: 1px solid var(--line-strong); margin: 8px 0 28px; width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.link-cards a { display: block; padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
.link-cards a:hover { text-decoration: none; border-color: rgba(255, 196, 107, 0.5); }
.link-cards strong { display: block; margin-bottom: 4px; }
.link-cards span { color: var(--muted); font-size: 0.92rem; }
.callout { border-left: 3px solid var(--cyan); background: rgba(255, 196, 107, 0.06); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.callout p:last-child { margin: 0; }
.page .shots { padding: 0; margin: 8px 0 8px; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.notfound .code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; line-height: 1; margin-bottom: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .project-body { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 44px; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { flex-wrap: wrap; gap: 4px 16px; padding-top: 10px; padding-bottom: 6px; }
  .lang { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 6px 10px; font-size: 0.9rem; }
  html { scroll-padding-top: 112px; }
  .focus-strip { grid-template-columns: 1fr; margin-top: 36px; }
  .project-body { padding: 24px; }
  .shots { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 24px 24px; }
  .shots img { scroll-snap-align: start; }
  .page .shots { grid-template-columns: repeat(4, 46%); }
  .contact-card { padding: 36px 20px; }
  .link-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .hero-photo, .shots { display: none; }
}

/* ---------- foxspun.com home ---------- */
.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo::before {
  content: ""; position: absolute; inset: 12% 14%; border-radius: 50%;
  background: var(--grad); filter: blur(70px); opacity: 0.22; z-index: -1;
}
.hero-logo img { width: min(440px, 82%); height: auto; }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.game-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s;
}
.game-card:hover { border-color: rgba(232, 112, 38, 0.55); transform: translateY(-2px); }
.game-media img { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 500; object-fit: cover; }
.game-body { display: flex; gap: 14px; padding: 16px 18px 18px; }
.game-icon { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; }
.game-body h3 { margin: 0 0 4px; font-size: 1.15rem; }
.game-body h3 a { color: var(--text); }
.game-body p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.game-body .game-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; font-size: 0.88rem; }
.badge-live { color: #7ee2a8; border-color: rgba(126, 226, 168, 0.45); background: rgba(126, 226, 168, 0.08); }
.badge-live::before { background: #7ee2a8; box-shadow: 0 0 10px #7ee2a8; }
a.badge:hover { text-decoration: none; filter: brightness(1.15); }

@media (max-width: 960px) {
  .hero-logo { order: -1; }
  .hero-logo img { width: min(300px, 70%); }
}
@media (max-width: 760px) {
  .games-grid { grid-template-columns: 1fr; }
}
