:root {
  --gold: #D4AF37;
  --gold-light: #e8c94a;
  --sunset: #d9541f;
  --ember: #d9541f;
  --rust: #8a2e12;
  --teal: #2a7f62;
  --pine: #2a7f62;
  --moon: #e9e4d0;
  --violet: #e9e4d0;
  --dark: #0a0a0a;
  --card: rgba(12, 12, 12, 0.88);
  --text: #ede8e0;
  --dim: #a09888;
  --border: rgba(212, 175, 55, 0.2);
  --slot: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }
/* Fixed layers instead of background-attachment: fixed, which iOS Safari ignores. */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: url('/reel/19.jpeg') 63% top / cover no-repeat;
}
.bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.82) 45%, rgba(10,10,10,0.9) 100%);
}
.wip-bar, .wrap { position: relative; z-index: 1; }
.wip-bar {
  background: rgba(224, 90, 51, 0.12);
  border-bottom: 1px solid rgba(224, 90, 51, 0.35);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: #f3c2b0;
}
.wrap { max-width: 1240px; margin: 0 auto; padding: 48px 20px 64px; }
h1 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  letter-spacing: 3px;
  text-align: center;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 40%, var(--moon) 50%, var(--gold-light) 60%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.sub { text-align: center; color: rgba(255,255,255,0.78); margin: 12px auto 6px; max-width: 640px; }
.dates {
  text-align: center; color: var(--dim);
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 1.5px; font-size: 1.05rem;
  margin-bottom: 28px;
}
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab {
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--dim);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 2px;
  padding: 8px 24px;
  border-radius: 8px;
  cursor: pointer;
}
.tab:hover { border-color: var(--gold); color: var(--text); }
.tab.on { background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold)); color: var(--dark); border-color: var(--gold); }
.legend { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--dim); margin-bottom: 22px; }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.legend span.tbd::before { background: none; border: 2px dashed var(--c); width: 6px; height: 6px; }
.tab { position: relative; }
.tab.today::after { content: 'Now'; position: absolute; top: -8px; right: -6px; padding: 0 5px; border-radius: 4px; background: #ff4d6d; color: #fff; font-size: 0.6rem; letter-spacing: 1px; }
.free {
  z-index: 1; margin: 2px 0; border-radius: 7px; display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed color-mix(in srgb, var(--c) 35%, transparent); color: color-mix(in srgb, var(--c) 70%, #fff);
  font-size: 0.72rem; letter-spacing: 0.3px; opacity: 0.7; pointer-events: none;
}
.free span { padding: 4px 8px; }
.day-note .cal { display: inline-block; margin-left: 6px; border-bottom: 1px solid var(--border); }
.day-note .cal::before { content: '📅 '; }
.has-tip { position: relative; cursor: help; }
.tip {
  display: none; position: absolute; z-index: 30; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 240px; padding: 8px; border-radius: 10px; background: #14120e; color: var(--text);
  border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.8rem; font-weight: 400; line-height: 1.35;
  letter-spacing: 0; text-align: left; text-transform: none;
}
.tip img { width: 100%; height: 120px; object-fit: cover; object-position: center top; border-radius: 6px; display: block; margin-bottom: 8px; }
.has-tip:hover .tip, .has-tip.on .tip { display: block; }

.day { display: none; }
.day.on { display: block; }
.day-note { text-align: center; color: var(--dim); font-size: 0.88rem; margin: 18px 0 0; }

.grid { display: grid; gap: 2px 4px; }
.col-head {
  font-family: 'DM Sans', system-ui, sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.2px; line-height: 1.15;
  text-align: center; padding: 8px; border-radius: 8px 8px 0 0;
  background: color-mix(in srgb, var(--c) 16%, #0b0b0b); color: var(--c);
  position: sticky; top: 0; z-index: 5;
}
.hour {
  grid-column: 1; color: var(--dim); text-align: right; padding-right: 8px;
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hour.night { color: var(--moon); box-shadow: inset 2px 0 0 var(--moon); }
.cell.night { background: rgba(0, 0, 0, 0.28); }
.cell { border-top: 1px solid rgba(255,255,255,0.04); }
.cell.q { border-top-color: transparent; }
.ev {
  z-index: 3; border-radius: 7px; padding: 5px 9px; overflow: hidden;
  background: color-mix(in srgb, var(--c) 14%, #0b0b0b);
  border-left: 3px solid var(--c);
  font-size: 0.82rem; line-height: 1.25;
  transition: transform 0.15s, background 0.15s;
}
.ev:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--c) 24%, #0b0b0b); overflow: visible; z-index: 6; }
.ev.tbd { border-left-style: dashed; opacity: 0.78; }
.ev .n { font-weight: 700; display: block; }
.ev .n .hottub, .list .ln .hottub, .sheet-card .ln .hottub {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400; letter-spacing: 1.5px; font-size: 1.05em;
}
.ev .n a, .list .ln a, .ongoing a, .ev .d a, .list .ld a, a.ig {
  color: #fff; text-decoration: underline; text-decoration-color: var(--gold-light); text-underline-offset: 2px;
}
.ev .n a::after, .list .ln a::after, .ongoing .ln a::after { content: ' ↗'; color: var(--gold-light); }
.ev .w { color: var(--c); display: block; }
a.ig { font-weight: 500; }
.ev .t { color: rgba(255,255,255,0.6); font-size: 0.72rem; display: block; }
.ev .d { display: none; color: rgba(255,255,255,0.8); font-size: 0.74rem; font-style: italic; margin-top: 2px; }
.ev:hover .d, .ev .d.show { display: block; }
.ev.live { opacity: 1; box-shadow: 0 0 0 2px var(--c), 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.mark {
  grid-column: 1 / -1; align-self: start; height: 0; position: relative; z-index: 2; pointer-events: none;
  border-top: 1px dashed var(--sunset);
}
.mark span {
  position: absolute; left: 0; top: 2px; line-height: 1.15;
  font-size: 0.6rem; letter-spacing: 1px; text-transform: uppercase; color: var(--sunset);
}
.mark.now { z-index: 7; border-top: 2px solid var(--moon); }
.mark.now span { color: var(--moon); font-weight: 700; }
.mark.moon { border-top-color: var(--moon); }
.mark.moon span { color: var(--moon); }
.list li.mark-li.moon { border-top-color: var(--moon); color: var(--moon); }
.mark[hidden] { display: none; }
.main { --c: var(--gold); }
.second { --c: var(--teal); }
.food { --c: var(--sunset); }
.around { --c: var(--violet); }

.list { display: none; list-style: none; }
.list li {
  display: grid; grid-template-columns: 78px 1fr; gap: 10px;
  padding: 10px 12px; margin-bottom: 6px; border-radius: 8px;
  background: color-mix(in srgb, var(--c) 10%, #0b0b0b); border-left: 3px solid var(--c);
}
.list li.tbd { border-left-style: dashed; }
.list li.live { box-shadow: 0 0 0 2px var(--c); }
.list li.mark-li {
  display: block; background: none; border: 0; border-top: 1px dashed var(--sunset); border-radius: 0;
  color: var(--sunset); font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 2px 0; margin: 10px 0;
}
.live-tag {
  display: none; margin-right: 6px; padding: 0 5px; border-radius: 4px;
  background: #ff4d6d; color: #fff; font-weight: 700;
}
li.live .live-tag { display: inline-block; }
.list .lt { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; color: var(--dim); font-size: 0.95rem; line-height: 1.25; }
.list .ln { font-weight: 700; }
.ongoing { margin: 0 0 22px; display: flex; align-items: baseline; gap: 8px 10px; flex-wrap: wrap; justify-content: center; }
.ongoing h2 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 2px; font-size: 1rem; color: var(--violet); }
.ongoing > p { display: none; }
.ongoing ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ongoing li {
  padding: 4px 10px; border-radius: 999px; --c: var(--violet); font-size: 0.8rem;
  background: color-mix(in srgb, var(--violet) 14%, #0b0b0b); border: 1px solid color-mix(in srgb, var(--violet) 40%, transparent);
  cursor: help; position: relative;
}
.ongoing li > div { display: inline; }
.ongoing .ln { font-weight: 700; }
.ongoing .lw { color: var(--violet); }
.ongoing .lw::before { content: ' · '; color: var(--dim); }
.ongoing .ld { display: none; color: rgba(255,255,255,0.75); font-size: 0.84rem; margin-top: 2px; }
.ongoing li.on .ld, .ongoing li:hover .ld {
  display: block; position: absolute; z-index: 30; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  width: 220px; padding: 8px 10px; border-radius: 8px; background: #14120e; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); text-align: left;
}
.list .lw { color: var(--c); font-size: 0.88rem; }
.list .la { font-size: 0.78rem; letter-spacing: 0.3px; color: var(--c); opacity: 0.85; }
.list .ld { font-size: 0.84rem; color: rgba(255,255,255,0.75); margin-top: 2px; }

.back { display: block; text-align: center; margin-top: 40px; font-family: 'Bebas Neue', sans-serif; letter-spacing: 2px; font-size: 1.1rem; }

.col-head small { font-size: inherit; font-weight: inherit; }

.sheet {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,0.55); padding: 12px;
}
.sheet[hidden] { display: none; }
.sheet-card {
  position: relative; width: 100%; max-width: 520px; padding: 16px 44px 18px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 16%, #0d0c0a); border-left: 4px solid var(--c);
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
}
.sheet-card.tbd { border-left-style: dashed; }
.sheet-card .la { font-size: 0.78rem; color: var(--c); letter-spacing: 0.3px; }
.sheet-card .ln { font-weight: 700; font-size: 1.15rem; margin-top: 2px; }
.sheet-card .ln a { color: #fff; text-decoration: underline; text-decoration-color: var(--gold-light); text-underline-offset: 2px; }
.sheet-card .ln a::after { content: ' ↗'; color: var(--gold-light); }
.sheet-card .lw { color: var(--c); }
.sheet-card .lt { color: rgba(255,255,255,0.65); font-size: 0.86rem; margin-top: 4px; }
.sheet-card .ld { color: rgba(255,255,255,0.85); font-size: 0.92rem; margin-top: 8px; }
.sheet-card .ld a { color: #fff; text-decoration: underline; text-decoration-color: var(--gold-light); }
.sheet-x {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer;
}

@media (max-width: 760px) {
  :root { --slot: 20px; }
  .wrap { padding: 28px 8px 56px; }
  .tab { padding: 8px 14px; font-size: 1rem; }
  .legend { display: none; }
  .grid { gap: 2px 3px; grid-template-columns: 28px repeat(4, minmax(0, 1fr)) !important; }
  .col-head { font-size: 0.68rem; padding: 6px 3px; letter-spacing: 0; }
  .col-head small { display: block; font-weight: 500; opacity: 0.75; font-size: 0.6rem; }
  .col-head .tip { position: fixed; top: auto; bottom: 14px; left: 12px; right: 12px; width: auto; transform: none; }
  .col-head .tip img { height: 150px; }
  .hour { font-size: 0.74rem; padding-right: 4px; letter-spacing: 0.5px; }
  .ev { padding: 3px 5px; border-left-width: 2px; border-radius: 5px; font-size: 0.68rem; line-height: 1.2; cursor: pointer; -webkit-hyphens: auto; hyphens: auto; }
  .ev .igw { display: none; }
  .ev .w { font-size: 0.62rem; }
  .ev .t, .ev .d, .ev:hover .d, .ev .d.show { display: none; }
  .ev:hover { transform: none; overflow: hidden; z-index: 3; }
  .ev:active { background: color-mix(in srgb, var(--c) 26%, #0b0b0b); }
  .mark span { font-size: 0.5rem; letter-spacing: 0.3px; }
  .list { display: none; }
  .free { font-size: 0.62rem; }
  .ongoing li.on .ld { position: fixed; top: auto; bottom: 14px; left: 12px; right: 12px; width: auto; transform: none; }
  .ongoing li:hover .ld { display: none; }
  .ongoing li.on .ld { display: block; }
}
