* { box-sizing: border-box; }

:root {
  --panel: rgba(9, 9, 9, 0.86);
  --panel-soft: rgba(13, 13, 13, 0.82);
  --line: rgba(132, 20, 20, 0.42);
  --line-strong: rgba(188, 32, 32, 0.82);
  --text: #ece7e7;
  --muted: #c8a6a6;
  --red: #d5222b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

html, body {
  margin: 0;
  min-height: 100%;
  background: #040404;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
}

button, input, a { font: inherit; }

body.js-cursor, body.js-cursor a, body.js-cursor button, body.js-cursor input,
body.js-cursor .link-btn, body.js-cursor .btn, body.js-cursor .icon-btn {
  cursor: none !important;
}

.bg-image {
  position: fixed;
  inset: 0;
  background-image: url('./artist-bg.png');
  background-size: cover;
  background-position: center top;
  opacity: 0.16;
  transform: scale(1.04);
  z-index: 0;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.62), rgba(0,0,0,0.88)),
    radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 38%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
  mix-blend-mode: soft-light;
  z-index: 1;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.06), transparent 26%),
    linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.85));
  backdrop-filter: blur(14px);
  animation: introOut 1.4s ease 0.7s forwards;
}
.intro-inner {
  text-align: center;
  transform: rotate(-2deg);
}
.intro-tag {
  color: #d9baba;
  font-size: 12px;
  letter-spacing: .45em;
  margin-bottom: 18px;
}
.intro-title,
.intro-sub {
  font-family: "Special Elite", cursive;
  text-transform: uppercase;
  color: #ddd;
  text-shadow:
    0 0 10px rgba(255,255,255,0.08),
    3px 3px 0 rgba(0,0,0,0.7),
    -2px -2px 0 rgba(0,0,0,0.35);
}
.intro-title {
  font-size: clamp(54px, 13vw, 160px);
  line-height: .88;
}
.intro-sub {
  margin-top: 4px;
  font-size: clamp(22px, 4vw, 44px);
  letter-spacing: .16em;
}
.intro-title::after {
  content: "";
  display: block;
  width: 70%;
  height: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, rgba(213,34,43,0.7), transparent);
}
@keyframes introOut {
  0% { opacity: 1; }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; visibility: hidden; transform: scale(1.04); }
}

.custom-cursor {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 34px;
  height: 14px;
  pointer-events: none;
  z-index: 30;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 10px rgba(255, 198, 122, 0.24)) drop-shadow(0 0 18px rgba(213,34,43,0.08));
}
body.js-cursor .custom-cursor { display: block; }

.bullet-tip, .bullet-body, .bullet-rim {
  position: absolute;
  top: 0;
  height: 14px;
}
.bullet-tip {
  left: 0;
  width: 13px;
  background: linear-gradient(90deg, #f7e1b2 0%, #efc97b 48%, #ca8b3d 100%);
  clip-path: polygon(0 50%, 35% 0, 100% 0, 100% 100%, 35% 100%);
  border-radius: 2px 0 0 2px;
}
.bullet-body {
  left: 12px;
  width: 16px;
  background: linear-gradient(180deg, #d59d48 0%, #b57329 46%, #7f4516 100%);
  border-radius: 2px;
}
.bullet-rim {
  right: 0;
  width: 6px;
  background: linear-gradient(180deg, #7a3118 0%, #4b1b10 100%);
  border-left: 1px solid rgba(255,220,164,0.2);
  border-radius: 0 3px 3px 0;
}
.custom-cursor::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 2px;
  width: 15px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.34), rgba(255,255,255,0));
  transform: rotate(-2deg);
  opacity: .7;
}
.custom-cursor::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: radial-gradient(circle at 22% 50%, rgba(255,255,255,0.16), transparent 32%);
  opacity: .6;
}

.trail-layer,
.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 29;
  overflow: hidden;
}
.bullet-trail {
  position: absolute;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,236,198,0.98), rgba(255,157,76,0.82) 48%, rgba(213,34,43,0) 72%);
  box-shadow: 0 0 16px rgba(255,176,88,0.42);
  animation: trailFade 0.38s linear forwards;
}
@keyframes trailFade {
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.22); }
}
.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,228,165,1), rgba(255,128,59,0.86) 48%, rgba(213,34,43,0.12) 72%, transparent 74%);
  box-shadow: 0 0 18px rgba(255,188,110,0.45);
  animation: sparkBurst .52s ease-out forwards;
}
.trail {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255,238,189,0.95), rgba(255,123,60,0.85), rgba(213,34,43,0));
  animation: shotTrail .46s ease-out forwards;
}
.ring {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,174,121,0.75);
  border-radius: 999px;
  animation: ringOut .45s ease-out forwards;
}
@keyframes sparkBurst {
  from { transform: translate(0,0) scale(.5); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}
@keyframes shotTrail {
  from { opacity: 1; }
  to { opacity: 0; transform: translateX(32px) scaleX(1.18); }
}
@keyframes ringOut {
  from { transform: translate(-50%,-50%) scale(.5); opacity: .95; }
  to { transform: translate(-50%,-50%) scale(4); opacity: 0; }
}

.app {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.01), transparent),
    linear-gradient(180deg, rgba(10,10,10,0.68), rgba(8,8,8,0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.03) 48%, transparent 56%);
  transform: translateX(-120%);
  animation: sheen 2.3s ease 1.1s 1;
}
@keyframes sheen { to { transform: translateX(120%); } }

.hero-copy { max-width: 860px; }

.eyebrow {
  color: #e2bbbb;
  letter-spacing: .36em;
  font-size: 12px;
  margin-bottom: 12px;
}
h1, h2, h3 {
  margin: 0;
  font-family: "Special Elite", cursive;
}
.big-title {
  position: relative;
  font-size: clamp(44px, 8vw, 92px);
  line-height: .92;
  color: #d6d6d6;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-shadow:
    0 0 6px rgba(255,255,255,0.08),
    2px 2px 0 rgba(0,0,0,0.68),
    -2px -2px 0 rgba(0,0,0,0.32),
    0 0 18px rgba(213,34,43,0.11);
  transform: skew(-2deg);
}
.big-title::before {
  content: "";
  position: absolute;
  inset: 10% 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.025) 2px,
    rgba(255,255,255,0.025) 4px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.big-title:hover {
  animation: glitch .28s steps(2) 3;
}
@keyframes glitch {
  0% { transform: skew(-2deg) translate(0); }
  30% { transform: skew(-2deg) translate(2px,-1px); }
  60% { transform: skew(-2deg) translate(-2px,1px); }
  100% { transform: skew(-2deg) translate(0); }
}
.lead {
  margin-top: 18px;
  color: #dfbcbc;
  font-size: clamp(15px, 2.2vw, 19px);
  line-height: 1.65;
  max-width: 820px;
}

.panel, .card, .modal-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.table-head, .concert-row {
  display: grid;
  grid-template-columns: .9fr 1.45fr 1.25fr .72fr .85fr .85fr;
  gap: 16px;
  align-items: center;
}
.table-head {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  color: #c9a0a0;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.concert-row {
  padding: 18px;
  border-bottom: 1px solid rgba(80, 12, 12, 0.3);
  transition: background .25s ease, border-color .25s ease;
}
.concert-row:hover {
  background: rgba(213,34,43,0.05);
  border-color: rgba(213,34,43,0.18);
}
.concert-row:last-child { border-bottom: 0; }
.city {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff3f3;
  font-size: 18px;
}
.venue, .date, .age {
  color: var(--text);
  font-size: 15px;
}

.btn, .link-btn, .icon-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: #fff0f0;
  transition: .22s ease;
}
.btn {
  padding: 13px 18px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.btn-primary {
  background: linear-gradient(180deg, rgba(71, 9, 13, 0.9), rgba(24, 5, 7, 0.96));
}
.btn:hover, .icon-btn:hover {
  background: rgba(213,34,43,0.12);
  transform: translateY(-1px);
}
.link-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 12px 14px;
  font-size: 13px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 0 rgba(213,34,43,0.16);
}
.link-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.09) 48%, transparent 55%);
  transform: translateX(-135%);
  transition: transform .55s ease;
  z-index: -1;
}
.link-btn::after {
  content: "";
  position: absolute;
  inset: auto -18% -70% auto;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213,34,43,0.35), transparent 68%);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .35s ease, transform .35s ease;
  z-index: -1;
}
.link-btn:hover {
  border-color: rgba(255,120,120,0.75);
  box-shadow: inset 0 0 30px 0 rgba(213,34,43,0.16), 0 0 16px rgba(213,34,43,0.12);
  transform: translateY(-2px);
}
.link-btn:hover::before { transform: translateX(135%); }
.link-btn:hover::after { opacity: 1; transform: scale(1); }
.link-btn:active { transform: translateY(0) scale(.985); }

.icon-btn { width: 42px; height: 42px; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .84);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 40;
}
.modal-card { width: min(1080px, 100%); padding: 18px; }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.hidden { display: none !important; }
.stack { display: grid; gap: 12px; }
input {
  width: 100%;
  padding: 14px;
  background: rgba(0,0,0,0.56);
  color: var(--text);
  border: 1px solid var(--line-strong);
  outline: none;
}
input:focus { border-color: var(--red); }
.hint { margin: 0 0 14px; color: var(--muted); }
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 16px;
}
.card { padding: 16px; background: var(--panel-soft); }
.admin-list {
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow: auto;
}
.admin-item {
  border: 1px solid rgba(95, 16, 16, 0.38);
  background: rgba(0,0,0,0.35);
  padding: 12px;
}
.admin-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.admin-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.empty {
  padding: 34px 16px;
  color: var(--muted);
  text-align: center;
}
.mobile-label { display: none; }

.reveal.typing::after {
  content: "|";
  margin-left: 4px;
  color: var(--red);
  animation: blink .7s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 920px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body.js-cursor, body.js-cursor a, body.js-cursor button, body.js-cursor input,
  body.js-cursor .link-btn, body.js-cursor .btn, body.js-cursor .icon-btn {
    cursor: auto !important;
  }
  .custom-cursor, .trail-layer { display: none !important; }

  .app {
    width: min(100% - 14px, 1180px);
    padding-top: 12px;
  }
  .hero { padding: 20px 16px; }
  .desktop-only { display: none; }
  .concert-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .concert-cell {
    display: grid;
    gap: 5px;
  }
  .mobile-label {
    display: block;
    color: #caa4a4;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .btn { width: 100%; }
  .modal-card { padding: 14px; }
  .city { font-size: 17px; }
  .venue, .date, .age { font-size: 14px; }
}
