/* XtremeCrazyGamers: arcade-poster look. Thick ink outlines, hard offset shadows. */
:root {
  --ink: #14112B;
  --violet: #3B22F5;
  --pink: #FF4FA3;
  --citrus: #FFD21F;
  --paper: #F7F4FF;
  --lilac: #E6E0FF;
  --white: #FFFFFF;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --radius: 10px;
  --display: "Bungee", "Impact", "Arial Black", sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); }
a:hover { color: var(--pink); }
:focus-visible { outline: 4px solid var(--pink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--citrus); padding: .6rem 1rem; border: var(--line); z-index: 100; color: var(--ink); }
.skip:focus { top: 1rem; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3, .h3 { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.25rem; max-width: 62ch; }
.meta { font-size: .95rem; color: #5a5478; margin-bottom: .4rem; }
.note { margin-top: 2rem; font-size: .95rem; color: #5a5478; }
code { background: var(--lilac); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }

/* Header */
.site-header { background: var(--paper); border-bottom: var(--line); position: sticky; top: 0; z-index: 50; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-mark { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; background: var(--pink); border: var(--line); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-6deg); font-size: 1.1rem; }
.site-nav { display: flex; gap: .4rem; }
.site-nav a { padding: .45rem .9rem; border: 3px solid transparent; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { border-color: var(--ink); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--citrus); border-color: var(--ink); font-weight: 700; }
.nav-toggle { display: none; font: 700 1rem var(--body); background: var(--citrus); border: var(--line); border-radius: 999px; padding: .4rem 1rem; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn { display: inline-block; font: 700 1rem var(--body); padding: .8rem 1.4rem; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--citrus); color: var(--ink); }
.btn-primary:hover { color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { color: var(--ink); }

/* Hero */
.hero { background: var(--violet); color: var(--white); border-bottom: var(--line); overflow: hidden; }
.hero-inner { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero-title { font-size: clamp(2.6rem, 9vw, 6.2rem); line-height: 1.02; text-shadow: 5px 5px 0 var(--ink); margin-bottom: 1.2rem; }
.hero-title .hl { color: var(--citrus); }
.hero-sub { font-size: 1.25rem; max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.marquee { background: var(--citrus); color: var(--ink); border-top: var(--line); overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 2.5rem; padding: .7rem 0; font-family: var(--display); font-size: 1.1rem; animation: scroll 34s linear infinite; }
.marquee-track span::after { content: "\2022"; margin-left: 2.5rem; color: var(--pink); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections and page heads */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-tint { background: var(--lilac); border-block: var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.text-link { font-weight: 700; }
.page-head { background: var(--pink); border-bottom: var(--line); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-head h1 { margin-bottom: .4em; }
.page-head .lead { margin-bottom: 0; }
.page-head .filters { margin-top: 1.6rem; }

/* Grids and cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--violet); text-decoration: underline; }
.card > :last-child { margin-bottom: 0; }
.member { text-align: left; }
.avatar { display: grid; place-items: center; width: 4rem; height: 4rem; background: var(--tile, var(--violet)); color: var(--white); font-family: var(--display); font-size: 1.4rem; border: var(--line); border-radius: 50%; margin-bottom: 1rem; }

/* Gallery tiles */
.tile { position: relative; margin: 0; padding: 0; aspect-ratio: 1; background: var(--tile, var(--violet)); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center; color: var(--white); font: inherit; text-align: left; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-initials { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4rem); text-shadow: 4px 4px 0 var(--ink); }
.tile figcaption, .tile-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: .7rem .9rem; background: var(--white); color: var(--ink); border-top: var(--line); font-size: .95rem; line-height: 1.3; }
.tile figcaption span, .tile-cap span { color: #5a5478; font-size: .85rem; }
.tile-btn { cursor: pointer; transition: transform .12s, box-shadow .12s; width: 100%; }
.tile-btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.tile[hidden] { display: none; }
.chip { font: 500 1rem var(--body); background: var(--white); color: var(--ink); border: var(--line); border-radius: 999px; padding: .35rem 1rem; margin: 0 .4rem .5rem 0; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.lightbox { border: var(--line); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); padding: 1.2rem; width: min(640px, 92vw); background: var(--paper); color: var(--ink); }
.lightbox::backdrop { background: rgba(20, 17, 43, .75); }
.lightbox-media { aspect-ratio: 16/10; display: grid; place-items: center; background: var(--tile, var(--violet)); border: var(--line); border-radius: 8px; overflow: hidden; color: var(--white); font-family: var(--display); font-size: 5rem; text-shadow: 5px 5px 0 var(--ink); }
.lightbox-media img { width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.lightbox-caption { margin: 1rem 0; }
.lightbox-close { box-shadow: 3px 3px 0 var(--ink); }

/* News, prose */
.post-row { padding: 1.6rem 0; border-bottom: var(--line); }
.post-row:first-child { padding-top: 0; }
.post-row h2 a { color: var(--ink); text-decoration: none; }
.post-row h2 a:hover { color: var(--violet); text-decoration: underline; }
.prose p { font-size: 1.15rem; max-width: 68ch; }
.rules { padding-left: 1.2rem; }
.rules li { margin-bottom: .8rem; }
.cta-band { background: var(--citrus); border: var(--line); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); padding: clamp(1.8rem, 5vw, 3rem); }
.cta-band p { max-width: 54ch; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.form label { display: block; font-weight: 700; margin: 1.1rem 0 .35rem; }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--white); border: var(--line); border-radius: 8px; padding: .75rem .9rem; }
.form textarea { resize: vertical; }
.form .btn { margin-top: 1.5rem; }
.hp { position: absolute; left: -9999px; }
.alert { border: var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.alert-ok { background: #C9F7E5; }
.alert-err { background: #FFD6E8; }
.side h2 { margin-bottom: .4em; }
.side h2:not(:first-child) { margin-top: 1.6rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); border-top: var(--line); padding-top: 2.5rem; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.foot-logo { font-family: var(--display); font-size: 1.3rem; color: var(--citrus); margin-bottom: .4rem; }
.foot nav { display: flex; flex-direction: column; gap: .35rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--citrus); }
.copy { padding: 1.5rem 0; margin-top: 1.5rem; border-top: 1px solid rgba(247, 244, 255, .25); font-size: .9rem; }

/* Responsive */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--paper); border-bottom: var(--line); padding: .8rem 1.25rem 1.2rem; }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .btn, .tile-btn { transition: none; }
}
