/* Rumble site — shared components. Spec: style-guide.html. Tokens: tokens.css. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-display); font-size: var(--fs-body); line-height: 1.45; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

:root {
	--brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3.4 L12 2.2 L30 3.1 L46 1.6 L63 2.8 L79 1.9 L99 2.6 L98 4.6 L74 4.9 L55 4.2 L33 5.2 L14 4.4 L2 5 Z' fill='%231de9b6'/%3E%3C/svg%3E");
	--tear-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16 V9 L7 6 L13 10 L22 4 L29 8 L37 5 L44 11 L53 3 L61 7 L70 4 L76 9 L85 2 L93 7 L101 5 L109 10 L116 6 L120 8 V16 Z' fill='%2308182a'/%3E%3C/svg%3E");
	--tear-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0 V7 L8 10 L15 6 L23 12 L31 7 L40 11 L47 5 L55 12 L63 8 L72 13 L79 6 L88 11 L95 8 L104 13 L111 7 L120 9 V0 Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--white); display: flex; align-items: center; gap: var(--space-6); padding: 0 var(--space-4) 0 190px; transition: filter var(--t-base); }
.site-header.scrolled { filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.site-header .badge { position: absolute; left: 16px; top: 6px; width: 160px; transform: rotate(-3deg); filter: drop-shadow(0 4px 0 var(--night)); transition: transform var(--t-fast) var(--ease-snap); }
.site-header .badge:hover { transform: rotate(-1deg) scale(1.04); }
.nav { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav a { position: relative; display: block; padding: var(--space-2); font-weight: 800; font-size: var(--fs-ui); text-decoration: none; color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 8px; bottom: 0; width: calc(100% - 16px); height: 5px; background: var(--mint); -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat; clip-path: inset(0 100% 0 0); transition: clip-path var(--t-base) ease-out; }
.nav a:hover::after, .nav a.active::after { clip-path: inset(0 0 0 0); }
.nav .drop { position: absolute; top: 100%; left: 0; width: 200px; padding: var(--space-2); margin: 0; list-style: none; background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path var(--t-base) ease-out; }
.nav > li:hover .drop, .nav > li:focus-within .drop { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transition-delay: .1s; }
.nav .drop a { font-size: 15px; clip-path: var(--cut-chip); }
.nav .drop a::after { display: none; }
.nav .drop a:hover { background: rgba(0,0,0,.08); }
.site-header .spacer { flex: 1; }
.socials { display: flex; gap: 4px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-3); transition: color var(--t-fast); }
.socials a:hover { color: var(--mint); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 3px; background: var(--ink); margin: 5px 0; transition: transform var(--t-base), opacity var(--t-base); }
.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: var(--header-h) 0 0 auto; width: min(340px, 86vw); z-index: 49; background: var(--white); padding: var(--space-6) var(--space-5); transform: translateX(105%); transition: transform .25s var(--ease-snap); overflow-y: auto; filter: drop-shadow(-4px 0 10px rgba(0,0,0,.15)); }
.menu-open .mobile-nav { transform: none; }
.menu-scrim { position: fixed; inset: var(--header-h) 0 0 0; z-index: 48; background: rgba(8,24,42,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
.mobile-nav a { display: block; padding: 10px 0; font-size: 22px; font-weight: 800; text-decoration: none; transition: transform var(--t-fast); }
.mobile-nav a:hover { transform: translateX(8px); }
.mobile-nav .sub { padding-left: var(--space-4); }
.mobile-nav .sub a { font-size: 17px; color: var(--ink-2); padding: 6px 0; }
.mobile-nav .socials { margin-top: var(--space-5); }

/* ---------- CTA ---------- */
.cta { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; color: #fff; font-weight: 800; font-style: italic; font-size: 22px; text-decoration: none; letter-spacing: .01em; white-space: nowrap; -webkit-text-stroke: 1px var(--cta-stroke); paint-order: stroke fill; text-shadow: 0 1px 0 var(--cta-stroke); background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom)); clip-path: var(--cut-band); box-shadow: inset 0 -4px 0 rgba(8,24,42,.25); transition: transform var(--t-fast) var(--ease-snap), filter var(--t-fast); }
.cta::before { content: ""; position: absolute; inset: 3px; border: 2px solid var(--cta-stroke); clip-path: var(--cut-band); pointer-events: none; opacity: .9; }
.cta:hover { transform: scale(1.04) rotate(-1deg); filter: brightness(1.06); }
.cta:active { transform: scale(.98); }
.cta.big { height: 80px; padding: 0 36px; font-size: 42px; -webkit-text-stroke: 2px var(--cta-stroke); text-shadow: 0 2px 0 var(--cta-stroke); }
.cta.wiggle { animation: wiggle 2.4s ease-in-out infinite; }
.cta.wiggle:hover { animation-play-state: paused; }
@keyframes wiggle { 0%,100% { transform: translateY(-4px) rotate(-2deg); } 50% { transform: translateY(4px) rotate(2deg); } }
@keyframes wobble { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

/* ---------- Primitives ---------- */
.wrap { padding-inline: var(--gutter); }
section.block { padding-block: var(--space-7); }
.eyebrow { font-size: var(--fs-tag); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); margin: 0 0 var(--space-2); }
h1.display, h2.display { font-size: var(--fs-h1); font-weight: 800; line-height: 1; letter-spacing: -.02em; margin: 0 0 var(--space-5); }
h2.sec { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
p.lede { max-width: 720px; color: var(--ink-2); font-family: var(--font-body); font-weight: 500; margin: 0 0 var(--space-6); }
/* padding grows the tap area to ~44px; the negative margin keeps the layout where it was */
.more { color: var(--volt); font-weight: 800; font-size: var(--fs-ui); text-decoration: none; display: inline-flex; gap: 6px; padding-block: 10px; margin-block: -10px; }
.more span { transition: transform var(--t-fast); }
.more:hover span { transform: translateX(3px); }
.tag { display: inline-block; padding: 6px 8px; background: var(--paper); color: var(--ink); font-size: var(--fs-tag); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; clip-path: var(--cut-chip); transition: background var(--t-base); }
a.tag:hover { background: var(--mint); }
.tag.hot { background: var(--signal); color: #fff; }
.grid { display: grid; gap: var(--space-5); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Torn divider ---------- */
.tear { height: 16px; background: var(--tear-up) left bottom / auto 100% repeat-x; }
.tear.down { background-image: var(--tear-down); }

/* ---------- News card ---------- */
.card { text-decoration: none; display: block; }
.card .frame { background: var(--paper); padding: 12px; clip-path: var(--cut-panel); transition: background var(--t-base); }
.card .thumb { aspect-ratio: 16/9; clip-path: var(--cut-panel); background-size: cover; background-position: center; overflow: hidden; }
.card:hover .frame { background: var(--mint); }
.card time { display: block; margin: 12px 0 2px; font-size: var(--fs-meta); font-weight: 700; color: var(--ink-3); }
.card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; line-height: 1.15; }
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Game tile ---------- */
.tile { position: relative; aspect-ratio: 3/4; clip-path: var(--cut-card); overflow: hidden; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-4); text-decoration: none; }
.tile::before { content: ""; position: absolute; inset: 0; background: var(--art) center / cover; transition: transform .35s var(--ease-snap); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(8,24,42,.92)); }
.tile > * { position: relative; z-index: 1; }
.tile .logo { position: absolute; z-index: 1; left: 8%; right: 8%; top: 16%; width: 84%; filter: drop-shadow(0 6px 0 rgba(8,24,42,.45)); transition: transform .35s var(--ease-snap); }
.tile:hover::before { transform: scale(1.06) rotate(-1deg); }
.tile:hover .logo { transform: scale(1.06) translateY(-4px) rotate(-2deg); }
.tile h3 { margin: 0; font-size: 26px; font-weight: 800; font-style: italic; -webkit-text-stroke: 1px var(--night); paint-order: stroke fill; }
.tile p { margin: 2px 0 0; font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--steel); }
.tile .tag { align-self: flex-start; margin-bottom: 8px; }

/* ---------- Feature band ---------- */
.band { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; padding: var(--space-6); background: var(--paper); clip-path: var(--cut-band); }
.band figure { margin: 0; text-align: center; flex: 1 1 120px; }
.band .ico { width: 60px; height: 60px; margin: 0 auto 10px; display: grid; place-items: center; background: var(--ink); color: var(--mint); clip-path: var(--cut-chip); }
.band .ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.band figcaption { font-size: var(--fs-h3); font-weight: 800; color: var(--ink-2); line-height: 1.1; }

/* ---------- Quote / pillar ---------- */
.quote { background: var(--paper); padding: var(--space-5); clip-path: var(--cut-card); }
.quote b { font-size: 20px; font-weight: 800; display: block; margin-bottom: 6px; }
.quote p { margin: 0; font-family: var(--font-body); font-weight: 500; color: var(--ink-2); font-size: 16px; }

/* ---------- Page banner ---------- */
.banner { position: relative; overflow: hidden; background: var(--night); padding: var(--space-7) var(--gutter) 88px; }
.banner .bg { position: absolute; inset: -2%; background: var(--art) center 60% / cover; animation: drift 40s ease-in-out infinite alternate; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,24,42,.85), rgba(8,24,42,.35)); }
.banner > *:not(.bg) { position: relative; z-index: 1; }
.banner h1 { margin: 0; color: #fff; font-size: clamp(56px, 8vw, 104px); font-weight: 800; font-style: italic; line-height: .95; -webkit-text-stroke: 2px var(--night); paint-order: stroke fill; text-shadow: 0 4px 0 var(--night); }
.banner p { margin: var(--space-3) 0 0; color: var(--steel); font-family: var(--font-body); font-weight: 500; max-width: 480px; }
.banner + .tear { margin-top: -16px; position: relative; z-index: 2; }


/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: var(--space-8); color: #fff; background: var(--night); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; background: var(--tear-up) left bottom / auto 100% repeat-x; z-index: 2; }
.site-footer .bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.site-footer .bg img { width: 100%; height: 100%; object-fit: cover; animation: drift 40s ease-in-out infinite alternate; }
.site-footer .bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90vw 70% at center 30%, rgba(8,24,42,.35), rgba(8,24,42,.92)), linear-gradient(rgba(8,24,42,.2) 0%, rgba(8,24,42,.55) 45%, var(--night) 80%); }
@keyframes drift { from { transform: scale(1.08) translateX(-2%); } to { transform: scale(1.08) translateX(2%); } }
.site-footer > div { position: relative; z-index: 1; }
.site-footer .c2a { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-7) var(--gutter) var(--space-6); gap: var(--space-5); }
.site-footer .c2a img { width: min(560px, 80vw); animation: wobble 4s ease-in-out infinite; filter: drop-shadow(0 10px 0 rgba(0,0,0,.35)); }
.site-footer .c2a p { margin: 0; max-width: 520px; font-size: 22px; font-weight: 800; font-style: italic; color: #fff; text-shadow: 0 2px 0 var(--night), 0 0 18px rgba(8,24,42,.8); }
.site-footer .links { display: flex; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; padding: var(--space-7) var(--gutter) var(--space-6); }
.site-footer nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav a { display: block; padding: 10px 0; text-decoration: none; opacity: .5; font-weight: 500; transition: opacity var(--t-fast); }
.site-footer nav a:hover { opacity: 1; }
.site-footer .socials a { color: #fff; opacity: .5; }
.site-footer .socials a:hover { opacity: 1; color: #fff; }
.site-footer .legal { opacity: .5; font-size: var(--fs-meta); padding: 0 var(--gutter) var(--space-7); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

@media (max-width: 1100px) {
	.site-header .socials { display: none; }
}
@media (max-width: 950px) {
	a.tag, button.tag { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; }
	.site-header { padding-left: 130px; }
	.site-header .badge { width: 110px; }
	.nav { display: none; }
	.burger { display: block; }
	.site-header .cta { display: none; }
}
@media (max-width: 600px) {
	:root { --gutter: 12px; }
	/* big CTAs shrink with the screen so long labels (PRESS CONTACT) never push past the edge */
	.cta.big { height: 64px; font-size: clamp(24px, 8.5vw, 32px); padding: 0 clamp(16px, 5vw, 26px); max-width: 100%; }
	/* 2×2 grid of smaller icons so the strip doesn't fill a whole phone screen */
	.band { padding: var(--space-5) var(--space-4); gap: var(--space-4) var(--space-3); }
	.band figure { flex-basis: 40%; }
	.band .ico { width: 44px; height: 44px; margin-bottom: 6px; }
	.band .ico svg { width: 22px; height: 22px; }
	.band figcaption { font-size: 17px; }
	.band .cta { margin: 0 auto; }
}
/* ---------- Touch screens ----------
   Hover lifts and zooms stick after a tap on phones, so touch devices skip them and get a press state instead.
   `html` prefix: beats the page-level hover rules that load after this file. */
@media (hover: none) {
	html .cta:hover { transform: none; filter: none; }
	html .tile:hover::before, html .tile:hover .logo { transform: none; }
	html .card:hover .frame, html .featured:hover .frame { background: var(--paper); }
	html .game-cta:hover::before { transform: none; }
	html .modes li:hover { background: var(--paper); transform: none; }
	html .modes li:hover span { color: var(--volt); }
	html .modes li:hover small { color: var(--ink-3); }
	html a.tag:hover { background: var(--paper); }
	html .more:hover span { transform: none; }
	.card:active .frame, .featured:active .frame { background: var(--mint); }
	.tile:active::before { transform: scale(1.03); }
	a.tag:active, .modes li:active { background: var(--mint); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
