:root {
  --bg: #0b1a26; /* Main Background Colour */
  --bg-2: #0f2636;
  --text: #e6ecef;
  --muted: #a9bac6;
  --accent: #d4af37; /* gold */
  --accent-2: #2bb3b1; /* teal */
  --danger: #e35d5b;
  --card: #112737;
  --link: #ffd166;
  --shadow: rgba(0,0,0,0.4);
}

[data-theme="contrast"] {
  --bg: #000;
  --bg-2: #000;
  --text: #fff;
  --muted: #fff;
  --accent: #ff0;
  --accent-2: #0ff;
  --card: #111;
  --link: #ff0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(80% 60% at 50% 0%, #12324a 0%, var(--bg) 60%);
  line-height: 1.6;
}

a { color: var(--link); text-decoration: none; }
a:hover, .btn:hover { filter: brightness(1.1); }
.logo { max-width: 90vw; width: 200px; height: auto; }
.eclogo { max-width: 90vw; width: 600px; height: auto; }
.live-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(90deg, #0e2232, #12324a);
  color: var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  box-shadow: 0 2px 6px var(--shadow);
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  height: 70px
}
.live-banner.show {
  transform: translateY(0);
}
body.banner-active {
  padding-top: 70px;
  transition: padding 0.4s ease;
}


.site-header, .site-footer {
  background: linear-gradient(180deg, rgba(0,0,0,0.5), transparent), url('../img/wood.jpg') repeat-x left center;
  background-size: contain;
  border-bottom: 1px solid #0a141e;
  box-shadow: 0 2px 8px var(--shadow);
  position: sticky;
  top: 0; z-index: 50;
}

.site-header { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; color: var(--text); }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-title { font-family: Cinzel, serif; font-weight: 700; letter-spacing: 1px; }

.nav-toggle { display: none; background: none; color: var(--text); border: 1px solid var(--muted); padding: 0.3rem 0.5rem; border-radius: 6px; }
.nav-menu { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-menu a { padding: 0.4rem 0.6rem; border-radius: 6px; }
.nav-menu .is-current a { background: rgba(255,255,255,0.08); }

.hero {
  position: relative; min-height: calc(100vh - 5rem);
  background: url('../img/bg.jpg') center/cover no-repeat, linear-gradient(#0b1a26, #0b1a26);
  display: grid; place-items: center; text-align: center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 26%), rgb(11 26 38 / 59%)); }
.hero-content { position: relative; max-width: 900px; }
h1, h2, h3 { font-family: Cinzel, serif; margin: 0.2em 0 0.4em; }
.lead { color: var(--muted); }

.btn { border: 1px solid var(--accent); background: transparent; color: var(--text); padding: 0.6rem 1rem; border-radius: 8px; cursor: pointer; }
.btn.primary { background: var(--accent); color: #1a1400; border-color: var(--accent); }
.btn.secondary { border-color: var(--accent-2); color: var(--accent-2); }
.btn.ghost { border-color: var(--muted); color: var(--muted); }

.cta-row { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0 2rem; }

.countdown { margin-top: 1rem; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(80px,1fr)); gap: 0.5rem; max-width: 600px; margin: 0 auto; }
.countdown-grid div { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); padding: 0.6rem; border-radius: 10px; }
.countdown-grid span { font-size: 1.6rem; font-weight: 700; display: block; }

.cannon { position: relative; height: 60px; margin-top: 1rem; }
.cannon-body { width: 150px; height: 24px; background: #333; border: 2px solid #111; border-radius: 12px; margin: 0 auto; position: relative; }
.cannonball { width: 14px; height: 14px; background: #222; border: 2px solid #000; border-radius: 50%; position: absolute; left: calc(50% + 70px); top: 14px; opacity: 0; transform: translateX(0); }
.cannonball.fire { animation: fire 1.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes fire {
  0% { opacity: 1; transform: translateX(0) translateY(0); }
  60% { opacity: 1; transform: translateX(220px) translateY(-40px); }
  100% { opacity: 0; transform: translateX(360px) translateY(20px); }
}
.ticket-modal {
  background: var(--card);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 600px;
  box-shadow: 0 8px 24px var(--shadow);
}

.ticket-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.ticket-table th, .ticket-table td {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.6rem;
  text-align: left;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

main { padding: 1.5rem; }
.content { max-width: 1000px; margin: 0 auto; }
section { margin: 2.5rem auto; max-width: 1800px; }
.everyonecan { text-align: center; border-top: solid medium red; background-color: var(--bg2); }
.islands .island-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.island { display: block; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); padding: 1rem; border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; transition: transform .2s; }
.island:hover { transform: translateY(-4px); }

.feature-list, .timeline, .downloads { padding-left: 1.1rem; }
.timeline li { margin-bottom: 0.4rem; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 1rem 0; }
.chips { display: flex; gap: 0.5rem; }
.chip { background: #0e2232; color: var(--text); border: 1px solid rgba(255,255,255,0.15); padding: 0.3rem 0.7rem; border-radius: 999px; cursor: pointer; }
.chip.is-active { background: var(--accent-2); color: #062b2a; border-color: var(--accent-2); }

.schedule { width: 100%; border-collapse: collapse; }
.schedule th, .schedule td { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0.6rem; text-align: left; }
.schedule tr:hover { background: rgba(255,255,255,0.06); cursor: pointer; }

dialog { background: var(--card); color: var(--text); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 1rem; max-width: 560px; }
dialog::backdrop { background: rgba(0,0,0,0.6); }

.card { background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 1rem; box-shadow: 0 6px 20px var(--shadow); }
label { display: block; margin: 0.6rem 0; }
input, textarea, select {
  width: 100%; padding: 0.6rem; background: #0e2232; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px; color: var(--text);
}
.small { color: var(--muted); font-size: 0.95rem; }

.bottle-wall { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; padding: 0; }
.bottle-wall li { position: relative; background: url('../img/bottle.png') center/contain no-repeat; aspect-ratio: 3/5; padding: 1rem; display: grid; align-content: end; }
.bottle-note { background: rgba(255,255,255,0.1); border: 1px dashed rgba(255,255,255,0.3); padding: 0.5rem; border-radius: 8px; }
.bottle-author { font-weight: 600; color: var(--accent); }

.spotlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; }
.spotlight { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; overflow: hidden; }
.spotlight img { width: 100%; height: 180px; object-fit: cover; display: block; padding: 0; }

.responsive-media { position: relative; padding-top: 56.25%; }
.responsive-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.yt { width: 100%; aspect-ratio: 16/9; border: 0; }

.logo-row { display: flex; gap: 1rem; align-items: center; list-style: none; padding: 0; flex-wrap: wrap; }
.logo-row img { height: 40px; filter: brightness(0.9) contrast(1.2); }

.badge { display: inline-flex; gap: 0.6rem; align-items: center; background: #0e2232; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 0.4rem 0.8rem; }
.badge-status { background: var(--accent-2); color: #062b2a; padding: 0.2rem 0.6rem; border-radius: 999px; }

.loot {
  position: absolute; right: 1rem; bottom: 1rem; opacity: 0.2; background: transparent; border: none; font-size: 1.2rem; cursor: pointer;
}
.loot:focus, .loot:hover { opacity: 1; transform: scale(1.1); }

.site-footer { text-align: center; padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }


@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-menu { display: none; flex-direction: column; background: var(--bg-2); padding: 0.6rem; position: absolute; right: 0.5rem; top: 3rem; border-radius: 8px; box-shadow: 0 8px 20px var(--shadow); }
  .nav-menu.is-open { display: flex; }
  .cta-row { flex-direction: column; }
}
