/* Hatefulbox - site styles
   Palette: near-black + the gold, green and red from the logo, plus purple (Twitch), cyan, pink and
   orange for fun. Fonts: Rubik (display) / Inter (body). Every game has its own color (see "Game
   colors"), shared by the filter chips, the video tags and the game tiles. */
:root {
  --bg: #0c0e14;
  --bg-2: #12151d;
  --card: #191d27;
  --card-2: #212633;
  --line: #2b3140;
  --text: #f1f2f6;
  --muted: #a7aebb;
  --dim: #6f7788;
  --gold: #f5c400;
  --gold-2: #ffd43b;
  --gold-ink: #1a1500;
  --green: #4fd964;
  --green-2: #8df59b;
  --red: #ff4655;
  --orange: #ff8a1f;
  --pink: #ff4fa3;
  --cyan: #38d6ff;
  --blue: #6fa8ff;
  --lime: #c6f54a;
  --twitch: #9146ff;
  --twitch-2: #b78aff;
  --yt: #ff0033;
  --c: var(--gold);
  --c-ink: #15120a;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --max: 1180px;
  --nav-h: 70px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: Rubik, Inter, system-ui, sans-serif; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.012em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Eyebrow pills + stickers */
.eyebrow {
  display: inline-block; font-family: Rubik, sans-serif; font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.eyebrow.green { --c: var(--green); }
.eyebrow.pink { --c: var(--pink); }
.eyebrow.purple { --c: var(--twitch-2); }
.eyebrow.cyan { --c: var(--cyan); }
.sticker {
  display: inline-block; font-family: Rubik, sans-serif; font-weight: 800; font-size: .95rem; letter-spacing: .01em;
  color: #fff; background: var(--pink); padding: 7px 14px; border-radius: 10px; transform: rotate(-3deg);
  box-shadow: 4px 4px 0 #000, 4px 4px 0 1px var(--pink); margin-bottom: 20px;
}
.sticker.gold { background: var(--gold); color: var(--gold-ink); box-shadow: 4px 4px 0 #000, 4px 4px 0 1px var(--gold); }
.sticker.green { background: var(--green); color: #06200b; box-shadow: 4px 4px 0 #000, 4px 4px 0 1px var(--green); }
.sticker.purple { background: var(--twitch); box-shadow: 4px 4px 0 #000, 4px 4px 0 1px var(--twitch); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font-family: Rubik, sans-serif; font-weight: 700; font-size: .95rem; line-height: 1; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s ease, background .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--gold-2), var(--orange)); color: var(--gold-ink); box-shadow: 0 8px 24px rgba(245, 196, 0, .25); }
.btn-primary:hover { color: var(--gold-ink); box-shadow: 0 12px 30px rgba(255, 138, 31, .4); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); color: #fff; background: rgba(255, 255, 255, .08); }
.btn-twitch { background: linear-gradient(135deg, var(--twitch), #6b2ee8); color: #fff; box-shadow: 0 8px 24px rgba(145, 70, 255, .3); }
.btn-twitch:hover { color: #fff; box-shadow: 0 12px 30px rgba(145, 70, 255, .5); }
.btn-yt { background: #fff; color: #111; }
.btn-yt:hover { background: #fff; color: #111; box-shadow: 0 12px 30px rgba(255, 0, 51, .3); }
.btn-yt svg { color: var(--yt); }
.btn-x { background: var(--cyan); color: #04202a; }
.btn-x:hover { color: #04202a; box-shadow: 0 12px 30px rgba(56, 214, 255, .35); }
.btn-sm { padding: 10px 16px; font-size: .85rem; }

/* Header (with the rainbow stripe) */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(12, 14, 20, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header::before, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--cyan), var(--twitch), var(--pink), var(--red), var(--orange), var(--gold));
  background-size: 200% 100%; animation: stripe 14s linear infinite;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-family: Rubik, sans-serif; font-weight: 800; letter-spacing: .01em; font-size: 1.25rem; }
.brand img { width: 40px; height: 40px; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-12deg) scale(1.12); }
.brand .wm { line-height: 1; }
.brand .wm span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); font-weight: 600; font-size: .95rem; padding: 9px 13px; border-radius: 10px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--gold-ink); background: var(--gold); }
.nav .btn { margin-left: 10px; }
.nav .btn.btn-twitch, .nav .btn.btn-twitch:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(52px, 8vw, 104px) 0 clamp(40px, 6vw, 70px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10%; pointer-events: none;
  background:
    radial-gradient(42% 38% at 14% 22%, rgba(79, 217, 100, .28), transparent 70%),
    radial-gradient(36% 34% at 86% 18%, rgba(245, 196, 0, .22), transparent 70%),
    radial-gradient(32% 30% at 72% 82%, rgba(145, 70, 255, .26), transparent 70%),
    radial-gradient(26% 26% at 30% 90%, rgba(255, 79, 163, .18), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 10%, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-logo { width: min(100%, 460px); height: auto; margin-bottom: 26px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5)); }
.hero h1 { margin-bottom: 14px; }
.hero h1 em, .grad { font-style: normal; background: linear-gradient(90deg, var(--gold-2), var(--orange) 45%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 54ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats div { font-family: Rubik, sans-serif; }
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--gold); }
.hero-stats div:nth-child(2) strong { color: var(--green); }
.hero-stats div:nth-child(3) strong { color: var(--pink); }
.hero-stats span { font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }

/* Video facade (click-to-play thumbnail) */
.facade {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; text-align: left; padding: 0; color: #fff; font: inherit;
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s ease, border-color .3s ease;
}
.facade:hover { transform: translateY(-4px) rotate(-.6deg); border-color: var(--gold); box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 0 4px rgba(245, 196, 0, .18); }
.facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.facade:hover img { transform: scale(1.04); }
.facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .8)); }
.facade .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; z-index: 2;
  background: linear-gradient(135deg, var(--gold-2), var(--orange)); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(255, 138, 31, .5), 0 0 0 8px rgba(245, 196, 0, .16); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.facade:hover .play { transform: translate(-50%, -50%) scale(1.12); }
.facade .play svg { width: 30px; height: 30px; margin-left: 4px; color: var(--gold-ink); }
.facade .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; z-index: 2; }
.facade .cap small { display: inline-block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold); font-weight: 800; padding: 3px 9px; border-radius: 6px; margin-bottom: 8px; font-family: Rubik, sans-serif; }
.facade .cap strong { font-family: Rubik, sans-serif; font-size: 1.05rem; line-height: 1.3; display: block; }
.facade-big { border-radius: 20px; }
.facade-twitch:hover { border-color: var(--twitch); box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 0 4px rgba(145, 70, 255, .2); }
.facade-twitch .play { background: linear-gradient(135deg, var(--twitch-2), var(--twitch)); box-shadow: 0 10px 30px rgba(145, 70, 255, .5), 0 0 0 8px rgba(145, 70, 255, .16); }
.facade-twitch .play svg { color: #fff; }
.facade-twitch .cap small { color: #fff; background: var(--twitch); }
.facade-twitch .art { width: 100%; height: 100%; background:
  radial-gradient(60% 55% at 18% 22%, rgba(145, 70, 255, .5), transparent 65%),
  radial-gradient(50% 50% at 85% 78%, rgba(255, 79, 163, .35), transparent 65%),
  radial-gradient(40% 40% at 60% 30%, rgba(56, 214, 255, .2), transparent 65%), var(--card-2); display: grid; place-items: center; }
.facade-twitch .art img { width: min(46%, 240px); height: auto; object-fit: contain; opacity: .95; animation: float 5s ease-in-out infinite; }
.stage iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; border-radius: 20px; background: #000; box-shadow: var(--shadow); }

/* Sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-alt {
  position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(120deg, rgba(145, 70, 255, .10), rgba(12, 14, 20, 0) 40%, rgba(255, 79, 163, .08) 100%), var(--bg-2);
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 60ch; margin: 0; }
.section-head h2 { margin: 0 0 6px; }
.section-head h2 mark { background: none; color: var(--c); }
.floaty { width: 120px; height: 120px; animation: float 4.5s ease-in-out infinite; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .5)); }

/* Info cards (Twitch / YouTube / X) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  --c: var(--gold); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); color: var(--text);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, var(--card)), var(--card) 65%);
  border: 1px solid color-mix(in srgb, var(--c) 38%, var(--line));
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s ease, border-color .25s ease;
}
.card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, transparent); filter: blur(30px); pointer-events: none; }
.card:hover { transform: translateY(-5px) rotate(-.7deg); border-color: var(--c); box-shadow: 0 18px 40px rgba(0, 0, 0, .4), 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.card.purple { --c: var(--twitch); }
.card.red { --c: var(--red); }
.card.cyan { --c: var(--cyan); }
.card.green { --c: var(--green); }
.card.pink { --c: var(--pink); }
.card .ico { width: 48px; height: 48px; border-radius: 13px; background: var(--c); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 40%, transparent); transform: rotate(-4deg); }
.card.cyan .ico, .card.green .ico { color: #04202a; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin: 8px 0 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.card .foot { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Game tiles ("What I play") */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gtile {
  --c: var(--gold); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 128px;
  padding: 18px; border-radius: var(--radius); color: var(--text);
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 32%, var(--card)), var(--card) 85%);
  border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line));
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s ease;
}
.gtile::before {
  content: attr(data-initial); position: absolute; right: -6px; top: -26px; font-family: Rubik, sans-serif; font-weight: 800; font-size: 7rem; line-height: 1;
  color: var(--c); opacity: .18; transform: rotate(-8deg); transition: transform .3s ease, opacity .3s ease; pointer-events: none;
}
.gtile:hover { transform: translateY(-5px) rotate(-1deg); color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.gtile:hover::before { transform: rotate(4deg) scale(1.12); opacity: .3; }
.gtile strong { font-family: Rubik, sans-serif; font-size: 1.15rem; font-weight: 800; line-height: 1.15; position: relative; }
.gtile span { font-size: .82rem; color: var(--c); font-weight: 700; position: relative; }

/* Video grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 20px; }
.vcard { --c: var(--gold); display: flex; flex-direction: column; gap: 10px; background: none; border: 0; padding: 0; text-align: left; color: var(--text); cursor: pointer; font: inherit; border-radius: var(--radius-sm); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.vcard:hover { transform: translateY(-4px) rotate(-.8deg); }
.vcard .thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease; }
.vcard:hover .thumb { border-color: var(--c); box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.vcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vcard:hover .thumb img { transform: scale(1.06); }
.vcard .thumb::after { content: ""; position: absolute; inset: 0; background: transparent; transition: background .2s ease; }
.vcard:hover .thumb::after { background: color-mix(in srgb, var(--c) 12%, transparent); }
.vcard .dur { position: absolute; right: 8px; bottom: 8px; z-index: 1; background: rgba(0, 0, 0, .82); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 7px; border-radius: 6px; letter-spacing: .02em; font-family: Rubik, sans-serif; }
.vcard .pl { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.8); width: 52px; height: 52px; border-radius: 50%; background: var(--c); display: grid; place-items: center; opacity: 0; transition: opacity .2s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.vcard:hover .pl { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vcard .pl svg { width: 20px; height: 20px; margin-left: 3px; color: var(--c-ink); }
.vcard h3 { font-size: .98rem; font-weight: 600; margin: 0; line-height: 1.35; font-family: Inter, sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard:hover h3 { color: #fff; }
.vcard .meta { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--dim); }
.vcard .meta .tag { color: var(--c); font-weight: 700; background: color-mix(in srgb, var(--c) 14%, transparent); padding: 2px 8px; border-radius: 6px; }
.vcard[hidden] { display: none; }

/* Library toolbar */
.toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.search { position: relative; max-width: 520px; }
.search input {
  width: 100%; padding: 14px 16px 14px 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 1rem;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 196, 0, .2); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--dim); pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { --c: var(--gold); font: inherit; font-family: Rubik, sans-serif; font-size: .88rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); background: color-mix(in srgb, var(--c) 8%, transparent); color: var(--muted); cursor: pointer; transition: all .18s cubic-bezier(.3, 1.6, .5, 1); }
.chip:hover { color: #fff; border-color: var(--c); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--c-ink); font-weight: 700; box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 35%, transparent); }
.chip .n { opacity: .75; margin-left: 4px; font-size: .78rem; }
.result-count { color: var(--dim); font-size: .9rem; margin: 0 0 18px; }
.empty { display: none; padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty.show { display: block; }
.more { display: flex; justify-content: center; margin-top: 36px; }
.more[hidden] { display: none; }

/* Game colors: shared by chips, video tags, play buttons and game tiles */
[data-game="all"] { --c: var(--gold); --c-ink: #15120a; }
[data-game="minecraft"] { --c: var(--green); --c-ink: #06200b; }
[data-game="hytale"] { --c: var(--lime); --c-ink: #1a2205; }
[data-game="halo"] { --c: var(--cyan); --c-ink: #04202a; }
[data-game="valorant"] { --c: var(--red); --c-ink: #fff; }
[data-game="astroneer"] { --c: var(--orange); --c-ink: #231000; }
[data-game="cod"] { --c: var(--gold); --c-ink: #15120a; }
[data-game="amongus"] { --c: var(--pink); --c-ink: #fff; }
[data-game="fortnite"] { --c: var(--twitch-2); --c-ink: #fff; }
[data-game="unreal"] { --c: #ff6a3d; --c-ink: #fff; }
[data-game="starfield"] { --c: var(--blue); --c-ink: #06142c; }
[data-game="other"] { --c: #b9c2d0; --c-ink: #121620; }

/* Player modal */
.player { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6, 7, 11, .9); backdrop-filter: blur(6px); }
.player.open { display: flex; }
.player-box { width: min(1040px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 4px rgba(245, 196, 0, .12); }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.player-bar h3 { margin: 0; font-size: 1rem; font-family: Inter, sans-serif; font-weight: 600; }
.player-bar .links { display: flex; gap: 8px; flex: none; }
.player-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .2s ease, background .2s ease; }
.player-close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }
.player-close svg { width: 20px; height: 20px; }

/* Page head (inner pages) */
.page-head { padding: clamp(44px, 6vw, 72px) 0 clamp(12px, 2vw, 24px); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(40% 70% at 8% 0%, rgba(245, 196, 0, .16), transparent 70%),
  radial-gradient(30% 60% at 70% 0%, rgba(145, 70, 255, .16), transparent 70%),
  radial-gradient(24% 50% at 95% 30%, rgba(79, 217, 100, .12), transparent 70%); }
.page-head .wrap { position: relative; }
.page-head h1 { margin-bottom: 10px; font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.page-head h1 strong { color: var(--gold); }
.page-head p { color: var(--muted); max-width: 62ch; font-size: 1.08rem; margin: 0; }

/* Live page */
.live-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 32px; align-items: start; }
.form { display: grid; gap: 16px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.form::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--gold), var(--green), var(--cyan), var(--twitch), var(--pink)); }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: .92rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 196, 0, .2); }
.form small { color: var(--dim); font-size: .82rem; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-side { display: grid; gap: 16px; }
.contact-card { --c: var(--gold); padding: 24px; border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, var(--card)), var(--card) 70%); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); }
.contact-card.purple { --c: var(--twitch); }
.contact-card.green { --c: var(--green); }
.contact-card.pink { --c: var(--pink); }
.contact-card.cyan { --c: var(--cyan); }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: .95rem; }
.social-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.social-list a { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), border-color .2s ease; }
.social-list a:hover { border-color: var(--muted); transform: translateX(4px); }
.social-list svg { width: 22px; height: 22px; flex: none; }
.social-list small { color: var(--dim); margin-left: auto; font-size: .82rem; }

/* Simple centered page (thanks / 404) */
.center { min-height: calc(100vh - var(--nav-h) - 140px); display: grid; place-items: center; text-align: center; padding: 60px 0; position: relative; overflow: hidden; }
.center::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(40% 50% at 20% 30%, rgba(145, 70, 255, .18), transparent 70%),
  radial-gradient(40% 50% at 80% 70%, rgba(245, 196, 0, .14), transparent 70%); }
.center .wrap { position: relative; }
.center .big { font-family: Rubik, sans-serif; font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; margin: 0 0 8px; background: linear-gradient(90deg, var(--gold-2), var(--pink), var(--twitch-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center p { color: var(--muted); max-width: 48ch; }
.center .mark { width: 120px; margin: 0 auto 20px; image-rendering: pixelated; animation: float 4s ease-in-out infinite; }

/* Footer */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-2); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.foot p { color: var(--muted); font-size: .95rem; max-width: 40ch; }
.foot h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot ul a { color: var(--muted); font-size: .95rem; }
.foot ul a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s ease, color .2s ease, border-color .2s ease; }
.socials a:hover { color: #fff; transform: translateY(-3px) rotate(-6deg); }
.socials a:nth-child(1):hover { background: var(--twitch); border-color: var(--twitch); }
.socials a:nth-child(2):hover { background: var(--yt); border-color: var(--yt); }
.socials a:nth-child(3):hover { background: var(--cyan); border-color: var(--cyan); color: #04202a; }
.socials svg { width: 20px; height: 20px; }
.copy { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; }

/* Motion */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(4%, 3%) scale(1.08); } }
@keyframes stripe { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .live-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .floaty { width: 84px; height: 84px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.02rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .brand { font-size: 1.1rem; }
  .form .row { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .facade .play { width: 60px; height: 60px; }
  .player-bar { flex-direction: column; align-items: flex-start; }
  .games { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gtile { min-height: 110px; padding: 14px; }
  .gtile::before { font-size: 5.5rem; }
  .section-head .floaty { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
