:root {
  --wall-1: #9ea3a6;
  --wall-2: #8b8f93;
  --wall-3: #7b7f82;
  --ink: #111111;
  --accent: #ffb400;
  --accent-2: #ff3b3b;
  --text: #f5f5f5;
  /* Brand colors */
  --discord: #5865F2;
  --tiktok1: #25F4EE;
  --tiktok2: #FE2C55;
  --youtube: #FF0000;
  --instagram: #E4405F;
  --twitch: #9146FF;
  --pinterest: #BD081C;
  --telegram: #229ED9;
  --tumblr: #36465D;
  --facebook: #1877F2;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 0%, #a8adb1 0%, var(--wall-1) 30%, var(--wall-2) 60%, var(--wall-3) 100%);
  overflow: hidden;
  cursor: none;
}

/* Restore native cursor when modal is open */
body.is-modal-open { cursor: default; }
body.is-modal-open .btn,
body.is-modal-open .credits a,
body.is-modal-open .modal-close,
body.is-modal-open .social-list a { cursor: pointer; }

/* Canvas covers entire viewport */
#graffiti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  cursor: none;
  background-image:
    radial-gradient(120px 40px at 10% 20%, rgba(255,255,255,0.07) 0, rgba(255,255,255,0.03) 30%, rgba(0,0,0,0.12) 31%, rgba(0,0,0,0.2) 32%, transparent 33%),
    linear-gradient(90deg, rgba(0,0,0,0.25) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,0,0,0.25) 1px, transparent 1px),
    url('Media/background.png');
  background-size: auto, 80px 80px, 80px 80px, cover;
  background-position: center center;
  z-index: 0;
}

.spray-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  margin-top: -36px;
  pointer-events: none;
  z-index: 4;
  background-image: url('Media/Cursor.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.55));
}

.spray-color {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin-left: 26px; /* relative to cursor center via JS translate */
  margin-top: 24px;
  border-radius: 4px;
  border: 2px solid #111;
  box-shadow: 0 2px 0 rgba(0,0,0,0.6), 0 6px 12px rgba(0,0,0,0.45);
  pointer-events: none;
  z-index: 4;
}

 

.content {
  position: relative;
  z-index: 2;
  height: 100vh;
  width: 100vw;
  display: grid;
  place-items: center;
  padding: 96px 16px 24px;
  pointer-events: none; /* allow drawing anywhere; buttons will restore events */
}

.hero {
  width: min(84vw, 720px);
  max-width: 90vw;
  height: auto;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 8px 0 rgba(0,0,0,0.6)) drop-shadow(0 18px 26px rgba(0,0,0,0.5));
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  pointer-events: auto; /* re-enable on interactive elements */
}

.btn {
  appearance: none;
  border: 0;
  cursor: none;
  text-decoration: none;
  padding: 20px 36px;
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 12px;
  color: #111;
  transform: skewX(-6deg);
  transition: transform 0.08s ease, filter 0.08s ease, box-shadow 0.08s ease;
  box-shadow: 0 0 0 3px #111 inset, 0 10px 0 rgba(0,0,0,0.55), 0 18px 32px rgba(0,0,0,0.5);
  font-family: 'Bangers', cursive;
  text-transform: uppercase;
}

.btn.primary {
  background: linear-gradient(180deg, #ffd24a, var(--accent));
}

.btn.secondary {
  background: linear-gradient(180deg, #ff6b6b, var(--accent-2));
}

.btn:hover { transform: skewX(-6deg) translateY(-2px) scale(1.02); }
.btn:active { transform: skewX(-6deg) translateY(2px) scale(0.98); box-shadow: 0 6px 0 rgba(0,0,0,0.55), 0 10px 20px rgba(0,0,0,0.45); }

.hint {
  margin-top: 18px;
  font-size: 12px;
  opacity: 0.75;
  text-align: center;
}

.credits {
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
  font-size: 12px;
  opacity: 0.85;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  pointer-events: auto;
}
.credits a { color: #ffd24a; text-decoration: none; border-bottom: 1px dashed rgba(255,210,74,0.6); cursor: none; }
.credits a:hover { filter: brightness(1.1); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 5;
}

.modal[aria-hidden="false"] { display: block; }
.modal[aria-hidden="false"] .modal-card { animation: modal-pop 260ms cubic-bezier(.2,1.1,.2,1); }
@keyframes modal-pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px) saturate(110%);
}

.modal-card {
  position: relative;
  max-width: 560px;
  margin: 12vh auto 0;
  background:
    linear-gradient(rgba(10,10,10,0.92), rgba(10,10,10,0.9)),
    url('Media/background.png');
  background-size: cover;
  color: #fff;
  border-radius: 20px;
  padding: 26px 26px 30px;
  box-shadow: 0 0 0 4px #0b0b0b, 0 14px 0 rgba(0,0,0,0.65), 0 22px 36px rgba(0,0,0,0.6), 0 0 0 6px rgba(255,180,0,0.08) inset;
}

.modal-card h2 {
  margin: 0 0 10px;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffd24a;
  text-shadow: 0 4px 0 #000, 0 10px 22px rgba(0,0,0,0.6);
}

.modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #333;
  color: #fff;
  font-size: 22px;
  cursor: none;
  box-shadow: 0 0 0 2px #000 inset, 0 8px 14px rgba(0,0,0,0.45);
}

.social-list {
  list-style: none;
  padding: 6px 10px 14px;
  margin: 16px auto 0;
  display: grid;
  gap: 16px;
  max-width: 480px;
}

.social-list li { position: relative; }
.social-list li::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

.social-list a {
  color: #111;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffd24a, var(--accent));
  box-shadow: 0 0 0 3px #111 inset, 0 12px 0 rgba(0,0,0,0.55), 0 22px 36px rgba(0,0,0,0.55);
  font-family: 'Bangers', cursive;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: none;
}

.social-list a::before { display: none !important; content: none; }

.social-list a::after {
  content: '›';
  font-size: 22px;
  line-height: 1;
  padding-left: 6px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.5));
  transition: transform 120ms ease;
}

.social-list a:hover { transform: translateY(-2px) scale(1.02); }
.social-list a:hover::after { transform: translateX(2px); }
.social-list a:active { transform: translateY(2px) scale(0.98); box-shadow: 0 8px 0 rgba(0,0,0,0.55), 0 12px 20px rgba(0,0,0,0.45); }
.social-list a:focus-visible { outline: 3px solid #ffe27a; outline-offset: 3px; }

/* Brand color overrides */
.social-list a[href*="discord.gg"] { background: linear-gradient(180deg, #8a96ff, var(--discord)); }
.social-list a[href*="discord.gg"]::before { display: none !important; content: none; }
.social-list a[href*="tiktok.com"] { background: linear-gradient(180deg, #46f7f0, #fe2c55); color: #111; }
.social-list a[href*="tiktok.com"]::before { display: none !important; content: none; }
.social-list a[href*="youtube.com"] { background: linear-gradient(180deg, #ff6b6b, var(--youtube)); }
.social-list a[href*="youtube.com"]::before { display: none !important; content: none; }
.social-list a[href*="instagram.com"] { background: linear-gradient(180deg, #ff8aa5, var(--instagram)); }
.social-list a[href*="instagram.com"]::before { display: none !important; content: none; }
.social-list a[href*="twitch.tv"] { background: linear-gradient(180deg, #b391ff, var(--twitch)); }
.social-list a[href*="twitch.tv"]::before { display: none !important; content: none; }
.social-list a[href*="pinterest.com"] { background: linear-gradient(180deg, #ff6f7e, var(--pinterest)); }
.social-list a[href*="pinterest.com"]::before { display: none !important; content: none; }
.social-list a[href*="t.me"] { background: linear-gradient(180deg, #63cfff, var(--telegram)); }
.social-list a[href*="t.me"]::before { display: none !important; content: none; }
.social-list a[href*="tumblr.com"] { background: linear-gradient(180deg, #5e6f85, var(--tumblr)); color: #f5f5f5; }
.social-list a[href*="tumblr.com"]::before { display: none !important; content: none; }
.social-list a[href*="facebook.com"] { background: linear-gradient(180deg, #6ea5ff, var(--facebook)); }
.social-list a[href*="facebook.com"]::before { display: none !important; content: none; }
.social-list a[href^="mailto:"] { background: linear-gradient(180deg, #ffe27a, #ffb400); }
.social-list a[href^="mailto:"]::before { display: none !important; content: none; }

@media (max-width: 640px) {
  .cta-group { gap: 12px; }
  .btn { padding: 14px 22px; }
}


/* Consent banner */
.consent-banner[hidden] { display: none !important; }
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 12px;
}
.consent-inner {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(15,15,15,0.92);
  border-radius: 16px;
  box-shadow: 0 0 0 3px #0b0b0b, 0 14px 30px rgba(0,0,0,0.6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 16px 16px 18px;
}
.consent-text h2 {
  margin: 0 0 6px;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  color: #ffd24a;
  text-shadow: 0 3px 0 #000;
}
.consent-text p { margin: 0; font-size: 14px; opacity: 0.9; }
.consent-actions { display: flex; gap: 10px; }
.consent-btn { cursor: pointer !important; }

@media (max-width: 720px) {
  .consent-inner { grid-template-columns: 1fr; gap: 12px; }
  .consent-actions { justify-content: flex-end; }
}
