:root {
  --bronze: #bd8165;
  --icon-bronze: #c89278;
  --gold: #e8b87a;
  --title: #e7d7cc;
  --body: #d2a087;
  --bg: #0a0508;
  --card-top: #1a1614;
  --card-bottom: #14110f;
  --border: rgba(189, 129, 101, 0.32);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  --font: "Raleway", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--title);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    #1c1410 0%,
    #1a1614 28%,
    #14110f 62%,
    #0a0508 100%
  );
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

.page-bg::before {
  top: -80px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(189, 129, 101, 0.22), transparent 70%);
}

.page-bg::after {
  bottom: 140px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(232, 184, 122, 0.14), transparent 70%);
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 8px;
  max-width: 720px;
  margin: 0 auto;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(189, 129, 101, 0.45);
  background: linear-gradient(135deg, rgba(189, 129, 101, 0.22), rgba(10, 5, 8, 0.9));
  padding: 8px;
}

.eyebrow {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(232, 184, 122, 0.9);
}

h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px 24px;
}

.status {
  margin: 8px 4px 16px;
  font-size: 0.85rem;
  color: rgba(231, 215, 204, 0.55);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--card-top) 0%, var(--card-bottom) 100%);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.event-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.event-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(189, 129, 101, 0.12);
}

.event-image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    135deg,
    rgba(189, 129, 101, 0.22),
    rgba(10, 5, 8, 0.85)
  );
  color: rgba(189, 129, 101, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.event-body {
  padding: 16px 16px 18px;
}

.event-category {
  margin: 0 0 8px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(189, 129, 101, 0.4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

.event-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.meta-item {
  font-size: 0.84rem;
  color: var(--body);
  line-height: 1.4;
}

.meta-label {
  color: rgba(232, 184, 122, 0.85);
  font-weight: 700;
  margin-right: 6px;
}

.meta-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-pill {
  font-size: 0.86rem;
  color: var(--body);
  line-height: 1.45;
}

.detail-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(189, 129, 101, 0.22);
}

.detail-heading {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.event-excerpt {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(231, 215, 204, 0.72);
}

.event-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(231, 215, 204, 0.86);
}

.event-description p {
  margin: 0 0 12px;
}

.event-description h1,
.event-description h2,
.event-description h3 {
  margin: 14px 0 8px;
  color: var(--title);
  font-weight: 800;
  line-height: 1.3;
}

.event-description h1 {
  font-size: 1.15rem;
}

.event-description h2 {
  font-size: 1.05rem;
}

.event-description h3 {
  font-size: 0.95rem;
}

.event-description ul,
.event-description ol {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.event-description li {
  margin-bottom: 4px;
}

.event-description a {
  color: var(--gold);
  font-weight: 700;
}

.event-description img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 8px 0;
}

.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.detail-label {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(232, 184, 122, 0.9);
}

.detail-value {
  flex: 1 1 auto;
  text-align: right;
  font-size: 0.88rem;
  color: rgba(231, 215, 204, 0.88);
  line-height: 1.4;
}

.empty-state {
  padding: 36px 18px;
  text-align: center;
  border-radius: 18px;
  border: 1px dashed rgba(189, 129, 101, 0.35);
  color: rgba(231, 215, 204, 0.6);
}

.cta-spacer {
  height: calc(96px + env(safe-area-inset-bottom));
}

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(
    180deg,
    rgba(10, 5, 8, 0) 0%,
    rgba(10, 5, 8, 0.88) 28%,
    #0a0508 100%
  );
}

.primary-btn {
  display: flex;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--bg);
  background: linear-gradient(135deg, #e8b87a 0%, #bd8165 50%, #c89278 100%);
  box-shadow:
    0 6px 18px rgba(189, 129, 101, 0.5),
    0 2px 8px rgba(232, 184, 122, 0.12);
}

.primary-btn:active {
  transform: scale(0.99);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.72);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden],
.modal-overlay[hidden] {
  display: none !important;
}

.modal-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 22px 22px;
  border-radius: 22px;
  border: 1px solid rgba(189, 129, 101, 0.45);
  background: linear-gradient(
    180deg,
    rgba(26, 22, 20, 0.98) 0%,
    rgba(20, 17, 15, 0.97) 45%,
    #0a0508 100%
  );
  box-shadow: 0 -8px 40px 2px rgba(189, 129, 101, 0.18);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--title);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-logo {
  margin: 0 auto 12px;
  display: block;
}

.modal-panel h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-panel p {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(231, 215, 204, 0.78);
}

.store-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.store-link {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(189, 129, 101, 0.4);
  color: var(--title);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(26, 22, 20, 0.65);
}

@media (min-width: 768px) {
  .content,
  .top-bar {
    padding-left: 24px;
    padding-right: 24px;
  }
}
