/* Red Storm: one look for every page (fonts, sizes, divider, footer, readable forms) */
/* titles keep the original Red Storm style (Impact, spaced small caps); Arabic keeps its own font */
:root { --rs-red: var(--red,#e51b1b); --rs-text: var(--paper,#f2eee7); --rs-muted: rgba(242, 238, 231, .68); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.nav, header.nav { opacity: 1 !important; transform: none !important; filter: none !important; }
/* every big title = the Rules title style (Impact, white, last word red to gold) */
h1:not(#hero-title) { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important; font-size: clamp(2.2rem, 5.6vw, 3.9rem) !important;
  font-weight: 400 !important; letter-spacing: .02em !important; font-synthesis: none; line-height: 1.05 !important; color: var(--paper,#f2eee7); }
h2.rs-big { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important; font-weight: 400 !important; letter-spacing: .02em !important; font-synthesis: none; color: var(--paper,#f2eee7); }
h1 .accent, h2.rs-big .accent, h2.rs-big span { background: linear-gradient(90deg, var(--red,#e5091a) 0%, var(--red,#e5091a) 45%, var(--gold,#d6a75a) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== page backgrounds (profile, leaderboard, rules): same moving city as the home page ===== */
html.rs-has-bg, html.rs-has-bg body { background: #070607 !important; }
.rs-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.rs-bg i { position: absolute; inset: -4%; background-size: cover; background-position: center; animation: rsDrift 32s ease-in-out infinite alternate; }
.rs-bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 30%, rgba(7,6,7,.15), rgba(7,6,7,.62) 78%),
  linear-gradient(180deg, rgba(7,6,7,.5), rgba(7,6,7,.3) 40%, rgba(7,6,7,.6)),
  radial-gradient(circle at 50% 115%, rgba(229,27,27,.3), transparent 55%); }
.rs-bg canvas { position: absolute; inset: 0; z-index: 1; }
@keyframes rsDrift { from { transform: scale(1.06); } to { transform: scale(1.15) translate(-1.5%, -1%); } }
html.rs-has-bg body > *:not(.rs-bg):not(#rs-progress) { position: relative; z-index: 1; }
html.rs-has-bg h3, html.rs-has-bg p { text-shadow: 0 2px 18px rgba(0,0,0,.65); }

/* ===== forms (applications, profile): clear and easy to read ===== */
label { color: var(--rs-text) !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: .02em; }
input, textarea, select {
  color: var(--rs-text) !important; font-size: 15px !important; line-height: 1.5 !important;
  background: rgba(255, 255, 255, .04) !important; border: 1px solid rgba(255, 255, 255, .14) !important; border-radius: 10px !important;
}
input::placeholder, textarea::placeholder { color: rgba(242, 238, 231, .4) !important; }
input:focus, textarea:focus, select:focus { outline: none !important; border-color: var(--rs-red) !important; box-shadow: 0 0 0 3px rgba(229, 27, 27, .18) !important; }

/* ===== the line between sections: thin, soft, a glowing point in the middle ===== */
.section-divider {
  position: relative !important; height: 1px !important; margin: 0 auto !important; width: min(1100px, 86%) !important;
  background: linear-gradient(90deg, transparent, rgba(229, 27, 27, .55) 30%, rgba(229, 27, 27, .55) 70%, transparent) !important;
  box-shadow: none !important; border: 0 !important; opacity: 1 !important;
}
.section-divider::before, .section-divider::after { content: none !important; display: none !important; }
.section-divider { overflow: visible !important; }
.section-divider + * { margin-top: 0; }
.section-divider { mask: none !important; }
.section-divider { --dot: 1; }
.section-divider {
  background-image:
    radial-gradient(circle at 50% 50%, #ff3b3b 0 3px, transparent 4px),
    linear-gradient(90deg, transparent, rgba(229, 27, 27, .55) 30%, rgba(229, 27, 27, .55) 70%, transparent) !important;
  height: 9px !important; background-size: 100% 9px, 100% 1px !important; background-repeat: no-repeat !important;
  background-position: center, center !important; filter: drop-shadow(0 0 6px rgba(229, 27, 27, .7));
}

/* ===== footer: small, blended into the page, rights line left + credit right ===== */
.site-footer {
  display: flex !important; flex-direction: column; align-items: center; gap: 6px; text-align: center !important;
  padding: 26px max(16px, 5vw) 5px !important; margin: 0 !important; position: relative; z-index: 3; border: 0 !important;
  opacity: 1 !important; transform: none !important; filter: none !important; visibility: visible !important;
  background: linear-gradient(180deg, rgba(7, 6, 7, 0) 0%, rgba(7, 6, 7, .85) 45%, #070607 100%) !important;
}
.site-footer .footer-logo { width: 30px !important; height: 30px !important; margin: 0 !important; filter: drop-shadow(0 0 8px rgba(229, 27, 27, .5)); }
.site-footer .footer-tagline { margin: 0 0 4px !important; font-size: 10px !important; letter-spacing: .28em !important; color: var(--rs-muted) !important; }
.site-footer .footer-bottom {
  display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; align-items: center; width: 100%; max-width: 1200px;
  margin: 0 !important; padding: 10px 0 0 !important; line-height: 1.2; border: 0 !important;
  font-size: 12px !important; color: rgba(242, 238, 231, .7) !important; opacity: 1 !important;
}
.site-footer .footer-bottom span, .site-footer .footer-bottom a { display: inline-block !important; color: rgba(242, 238, 231, .7) !important; text-shadow: none; }
.site-footer .footer-bottom strong { color: var(--gold,#d6a75a); }
/* no big gap between the page and the footer */
.wrap, .pf, main { padding-bottom: 8px; }
.pf { padding-bottom: 20px !important; }

/* ===== scroll effects ===== */
.rs-reveal { opacity: 0; transform: translateY(34px) scale(.985); filter: blur(4px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2, .7, .2, 1), filter .85s ease; transition-delay: var(--rs-d, 0ms); }
.rs-reveal.rs-in { opacity: 1; transform: none; filter: none; }
#rs-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #8d0711, var(--rs-red), #ff6b6b); z-index: 9999; pointer-events: none; box-shadow: 0 0 10px rgba(229, 27, 27, .7); }
@media (prefers-reduced-motion: reduce) { .rs-reveal { opacity: 1; transform: none; filter: none; transition: none; } }

.pf-name { letter-spacing: -.01em !important; }
.wrap { padding-bottom: 14px !important; }

/* ===== clean titles: no blurry shadow inside the letters (it muddied the gradient) ===== */
h1, h2.rs-big, h1 .accent, h2.rs-big .accent, h1 span { text-shadow: none !important; }
h1 .accent, h2.rs-big .accent { filter: drop-shadow(0 2px 5px rgba(0,0,0,.55)); }
h1:not(#hero-title), h2.rs-big { filter: drop-shadow(0 2px 5px rgba(0,0,0,.5)); }
#hero-title, #hero-title span { background: linear-gradient(180deg, #ff4d4d 0%, var(--red,#e5091a) 52%, #a30613 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .03em !important; text-shadow: none !important; }
#hero-title { filter: drop-shadow(0 6px 16px rgba(229, 9, 26, .35)); }
/* leaderboard title: Top = gold, Players = white */
.lb-head h1 { color: var(--gold,#d6a75a) !important; }
.lb-head h1 .accent { background: none !important; -webkit-text-fill-color: var(--paper,#f2eee7) !important; color: var(--paper,#f2eee7) !important; }
/* footer sits on the picture, no dark slab */
html.rs-has-bg .site-footer { background: linear-gradient(180deg, rgba(7, 6, 7, 0), rgba(7, 6, 7, .55)) !important; }

/* ===== account: only the picture, click for Profile / Log out ===== */
.rs-user { margin-inline-start: auto; position: relative; }
.rs-ava { all: unset; cursor: pointer; display: block; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; transition: transform .2s; }
.rs-ava:hover { transform: scale(1.07); }
.rs-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-menu { display: none; position: absolute; right: 0; top: calc(100% + 12px); min-width: 160px; padding: 6px; z-index: 60;
  background: rgba(14, 11, 12, .94); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; }
.rs-user.open .rs-menu { display: block; }
.rs-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--paper,#f2eee7); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-decoration: none; }
.rs-menu a:hover { background: rgba(255, 255, 255, .08); }
.rs-menu a.out { color: #ff3b3b; }
.rs-login { margin-inline-start: auto; color: var(--paper,#f2eee7); font-weight: 800; letter-spacing: .22em; font-size: 12px; text-decoration: none; }
.rs-login:hover { color: #ff3b3b; }
/* footer always at the bottom of the screen, picture fills the whole page */
html.rs-has-bg body { min-height: 100vh; display: flex; flex-direction: column; }
html.rs-has-bg .wrap { flex: 1 0 auto; width: 100%; }
html.rs-has-bg .site-footer { margin-top: auto !important; }

/* ===== Impact has one weight: never fake-bold it (that smeared the letters) ===== */
h1, h2.rs-big, #hero-title, #hero-title span, h1 .accent { font-weight: 400 !important; font-synthesis: none; }
#hero-title { font-size: clamp(3.6rem, 10vw, 8rem) !important; line-height: 1 !important; letter-spacing: .005em !important; }
.gl-name, .gl-stats b, .gl-hours b, .gl-title, .lb-p .hrs, .lb-row .hrs { font-weight: 400 !important; font-synthesis: none; }

/* ===== buttons: red, slanted sides, arrow that slides on hover ===== */
.cta { clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%) !important; border-radius: 0 !important; border: 0 !important;
  position: relative; overflow: hidden; cursor: pointer !important; align-items: center; justify-content: center; gap: 14px;
  min-width: 230px !important; padding: 17px 46px 17px 40px !important; font-weight: 800 !important; font-size: 12px !important; letter-spacing: .24em !important; text-indent: 0 !important;
  text-transform: uppercase; color: #fff !important; background: linear-gradient(100deg, #b3061a 0%, var(--red,#e5091a) 55%, #ff3434 100%) !important; backdrop-filter: none !important;
  box-shadow: none !important; filter: drop-shadow(0 10px 22px rgba(229, 9, 26, .35)); transition: transform .3s, filter .3s, background-position .4s !important; background-size: 160% 100% !important; background-position: 0 0 !important; }
.cta::before { display: none !important; content: none !important; }
.cta::after { content: "\2192" !important; display: inline-block !important; position: static !important; width: auto !important; height: auto !important; background: none !important; box-shadow: none !important;
  font-size: 17px; letter-spacing: 0; line-height: 1; transform: translateX(0) !important; transition: transform .3s cubic-bezier(.2, .8, .2, 1) !important; }
.cta:hover { transform: translateY(-2px) !important; filter: drop-shadow(0 14px 28px rgba(229, 9, 26, .5)); background-position: 100% 0 !important; }
.cta:hover::after { transform: translateX(7px) !important; }
.cta:disabled { opacity: .55; filter: saturate(.5); transform: none !important; }
.cta:disabled::after { content: none !important; }

/* ===== red lines: softer ===== */
.nav-link::after { height: 1px !important; opacity: .45; box-shadow: none !important; }
.section-divider { opacity: .35 !important; filter: none !important; }

/* ===== leaderboard: warm photo, list on the left, the character stays visible ===== */
html:has(body.bg-warm) .rs-bg i { background-position: 72% 40%; }
html:has(body.bg-warm) .rs-bg::after { background: linear-gradient(90deg, rgba(7, 6, 7, .78) 0%, rgba(7, 6, 7, .35) 55%, rgba(7, 6, 7, .05) 100%), linear-gradient(180deg, rgba(7, 6, 7, .25), rgba(7, 6, 7, .1) 50%, rgba(7, 6, 7, .65)); }
body.bg-warm .pf { max-width: 1180px; }
body.bg-warm .lb-head { text-align: left; margin: 26px 0 22px; }
body.bg-warm #lb, body.bg-warm .lb-head { width: min(620px, 100%); }
@media (max-width: 900px) { body.bg-warm .lb-head { text-align: center; } body.bg-warm #lb, body.bg-warm .lb-head { margin-inline: auto; } }

.hero-copy { transform: translateY(4vh); }

/* ===== home: fixed city picture (like Rules), words scroll over it ===== */
body[data-parallax] .hero, body[data-parallax] .experience { background: transparent !important; }
body[data-parallax] .hero::before, body[data-parallax] .hero::after { display: none !important; }
body[data-parallax] .rs-bg::after { background:
  linear-gradient(180deg, rgba(5,4,6,.8) 0%, rgba(8,5,8,.25) 28%, rgba(7,5,7,.45) 60%, rgba(4,3,5,.85) 100%),
  linear-gradient(90deg, rgba(7,3,9,.75) 0%, rgba(120,8,21,.05) 48%, rgba(7,3,9,.65) 100%) !important; }
.rs-shade { position: absolute; inset: 0; z-index: 2; background: #070607; opacity: 0; pointer-events: none; }
body[data-parallax] .hero-copy { will-change: transform, opacity, filter; }
body[data-parallax] .experience-title { transform: translateY(calc((1 - var(--rs-q, 1)) * 60px)) scale(calc(.9 + var(--rs-q, 1) * .1)) !important; opacity: var(--rs-q, 1) !important; transition: none !important; }
body[data-parallax] .stats-bar { transform: translateY(calc((1 - var(--rs-q, 1)) * 110px)) !important; opacity: calc(var(--rs-q, 1) * 1.2) !important; transition: none !important; }
body[data-parallax] .site-footer { background: linear-gradient(180deg, rgba(7, 6, 7, 0), rgba(7, 6, 7, .55)) !important; }

/* every page: same fixed picture idea; the content block of applications stays readable */
body[data-parallax] main.hero { background: transparent !important; }
/* leaderboard: rights are below the first screen, you scroll down to them */
body.bg-warm .wrap { min-height: calc(100vh + 40px); }
.cta:not([style*="display: none"]):not([style*="display:none"]) { display: inline-flex; }

/* the rights footer shows on the Home page only (the code stays in every page, just hidden) */
body:not([data-bg="/assets/hero-bg.jpg"]) .site-footer { display: none !important; }

/* ===== Hero title: Red Storm (style 1: chrome + red metal) ===== */
@font-face { font-family: "RS Montserrat"; src: url("fonts/Montserrat.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
#hero-title { font-family: "RS Montserrat", Montserrat, "Segoe UI", Arial, sans-serif !important; font-weight: 900 !important; font-style: normal !important;
  font-size: clamp(2.6rem, 6vw, 5rem) !important; letter-spacing: -.04em !important; line-height: 1.08 !important;
  background: linear-gradient(180deg, #fff 0%, #e9e9ee 45%, #9a9aa3 52%, #f4f4f7 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0; text-shadow: none !important; filter: drop-shadow(0 8px 20px rgba(0,0,0,.6)) !important; }
#hero-title span { font-weight: 900 !important; margin-left: .14em; -webkit-text-stroke: 0; text-shadow: none !important;
  background: linear-gradient(180deg, #ff6a6a 0%, #e5091a 48%, #8d0410 52%, #ff2a3a 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 18px rgba(229,9,26,.55)) !important; }

/* ===== Page titles: same font style as the home title (Montserrat 900), colors unchanged ===== */
h1:not(#hero-title), h1:not(#hero-title) .accent { font-family: "RS Montserrat", Montserrat, "Segoe UI", Arial, sans-serif !important; font-weight: 900 !important; }
h1:not(#hero-title) { letter-spacing: -.035em !important; line-height: 1.1 !important; filter: drop-shadow(0 8px 20px rgba(0,0,0,.6)) !important; }

/* ===== Page titles: style 1 metal shine, each title keeps its own colors ===== */
h1:not(#hero-title), h1:not(#hero-title) .accent {
  background-image: linear-gradient(180deg, color-mix(in srgb, currentColor 45%, #fff) 0%, currentColor 45%, color-mix(in srgb, currentColor 55%, #000) 52%, color-mix(in srgb, currentColor 70%, #fff) 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; }
/* Rules: keep the red-to-gold accent, add the shine on top */
h1:not(#hero-title)[data-t="rules.title"] .accent {
  background-image: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,.45) 52%, rgba(255,255,255,.25) 100%),
    linear-gradient(90deg, var(--red,#e5091a) 0%, var(--red,#e5091a) 45%, var(--gold,#d6a75a) 100%) !important; }
