:root {
  color-scheme: light;
  --black: #090909;
  --ink: #17120e;
  --cream: #f6ecdf;
  --paper: #fffaf3;
  --orange: #f26026;
  --orange-dark: #c83d16;
  --front: #66bd35;
  --arena: #f2cf24;
  --stand: #54c4e7;
  --pano: #f4872d;
  --stage: #e74635;
  --condensed: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  --sans: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; background: var(--orange); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.35;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }

.noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: radial-gradient(rgba(9, 9, 9, .5) .7px, transparent .7px);
  background-size: 7px 7px;
  mix-blend-mode: multiply;
}
.app-shell { width: min(760px, 100%); margin: 0 auto; padding: 10px clamp(10px, 3vw, 20px) 16px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--black); font-family: var(--condensed); font-size: 1.4rem; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--black); border-radius: 50%; background: var(--front); box-shadow: 2px 2px 0 var(--black); font-size: .78rem; }
.header-note, .eyebrow { margin: 0; font-family: var(--condensed); font-size: .69rem; letter-spacing: .09em; }
.header-note { text-transform: uppercase; }
.header-note { text-align: right; }

.home-screen { overflow: hidden; background: var(--cream); }
.tour-header { position: relative; overflow: hidden; padding: clamp(16px, 4vh, 28px) 18px 14px; background: var(--black); color: var(--paper); }
.tour-header::after { position: absolute; right: -14px; bottom: -30px; width: 118px; height: 118px; border: 2px solid var(--orange); border-radius: 50%; box-shadow: 0 0 0 15px var(--black), 0 0 0 17px var(--orange), 0 0 0 31px var(--black), 0 0 0 33px var(--orange); content: ""; }
.tour-header h1 { position: relative; z-index: 1; margin: 8px 0 10px; font-size: clamp(1.65rem, 7vw, 2.8rem); font-weight: 900; letter-spacing: -.04em; line-height: .96; }
.tour-header h1 span { color: var(--orange); }
.tour-prompt { position: absolute; z-index: 2; right: 14px; top: 14px; margin: 0; border: 1px solid currentColor; border-radius: 999px; padding: 4px 8px; font-family: var(--condensed); font-size: .58rem; letter-spacing: .06em; }
.show-list { padding: 0 16px; background: var(--cream); }
.show-row { display: grid; grid-template-columns: 20px minmax(76px, .8fr) minmax(58px, .6fr) minmax(0, 1.7fr); align-items: center; gap: 7px; min-height: 61px; border-bottom: 1px solid rgba(23, 18, 14, .42); color: var(--ink); text-decoration: none; }
.show-row:last-child { border-bottom: 0; }
.show-row:focus-visible { outline: 3px solid var(--black); outline-offset: -3px; }
.show-row strong { font-family: var(--condensed); font-size: clamp(1.75rem, 8vw, 2.6rem); letter-spacing: -.02em; line-height: .8; }
.show-index { align-self: start; margin-top: 10px; color: var(--orange-dark); font-family: var(--condensed); font-size: .58rem; }
.show-day { font-family: var(--condensed); font-size: .72rem; letter-spacing: .05em; line-height: 1.05; }
.venue-tag { min-width: 0; border: 1.5px solid var(--black); border-radius: 999px; padding: 4px 5px; font-size: clamp(.52rem, 2.15vw, .72rem); font-weight: 800; line-height: 1.15; text-align: center; white-space: normal; overflow-wrap: anywhere; }

.show-screen {
  --cream: #f7e3d3;
  --orange: #f26522;
  --front: #a7c850;
  --arena: #f4cf45;
  --stand: #7bdaf1;
  --pano: #eb662b;
  --stage: #e7211a;
  width: 100%;
  min-width: 0;
}
.show-bar { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; min-height: 45px; border-radius: 14px 14px 0 0; padding: 5px 10px; background: var(--black); color: var(--paper); }
.show-bar h1 { min-width: 0; margin: 0; overflow: hidden; font-size: clamp(.72rem, 3vw, .92rem); font-weight: 800; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.back-link { color: inherit; font-size: .78rem; font-weight: 800; text-decoration: none; }
.date-chips { display: flex; gap: 6px; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; padding: 7px; background: var(--cream); scrollbar-width: none; }
.date-chips::-webkit-scrollbar { display: none; }
.date-chip { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 4px; border-radius: 999px; padding: 4px 8px; background: var(--paper); color: var(--ink); font-size: .62rem; text-decoration: none; }
.date-chip strong { font-family: var(--condensed); font-size: .84rem; }
.date-chip.is-active { background: var(--black); color: var(--paper); }

.map-section { border-radius: 0 0 18px 18px; padding: 9px 9px 10px; background: var(--cream); }
.map-intro, .filter-row { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.map-intro > div { min-width: 0; }
.map-intro h2, .filter-row h2 { margin: 1px 0 0; font-family: var(--condensed); font-size: 1.35rem; letter-spacing: .02em; text-transform: uppercase; }
.map-intro h2 { font-size: clamp(1.05rem, 5vw, 1.35rem); white-space: nowrap; }
.map-intro > p { flex: 0 0 auto; margin: 0; border-radius: 999px; padding: 3px 7px; background: var(--orange); color: white; font-size: clamp(.52rem, 2vw, .63rem); font-weight: 800; white-space: nowrap; }
.venue-map { display: grid; place-items: center; width: 100%; min-width: 0; overflow: hidden; }
.stadium-svg { display: block; width: min(100%, 430px); height: auto; max-height: none; touch-action: manipulation; }
.map-background { fill: url(#map-ground); }
.map-paper { fill: var(--cream); }
.map-contour { fill: rgba(242, 101, 34, .07); }
.map-dot { fill: rgba(242, 101, 34, .1); }
.arena-field { fill: var(--cream); }
.zone { cursor: pointer; outline: none; }
.zone-shape { transform-box: fill-box; transform-origin: center; transition: filter .16s ease, opacity .16s ease, transform .16s ease; }
.zone.pano .zone-shape { fill: var(--pano); }
.zone.stand .zone-shape { fill: var(--stand); }
.zone.arena .zone-shape { fill: var(--arena); }
.zone.front .zone-shape { fill: var(--front); }
.zone:hover .zone-shape, .zone:focus-visible .zone-shape { filter: brightness(1.06); }
.has-selection .zone:not(.is-selected) { opacity: .4; }
.zone.pano.is-selected .zone-shape { fill: var(--pano); }
.zone.stand.is-selected .zone-shape { fill: var(--stand); }
.zone.arena.is-selected .zone-shape { fill: var(--arena); }
.zone.front.is-selected .zone-shape { fill: var(--front); }
.zone.is-selected .zone-shape { filter: brightness(.85); transform: scale(.88); }
.zone.is-selected { opacity: 1; }
.zone-label, .zone-count { fill: white; font-family: var(--sans); font-weight: 900; pointer-events: none; text-anchor: middle; dominant-baseline: middle; }
.zone-label { font-size: 5px; }
.edge-zone-label { font-size: 3.2px; }
.zone-badge { fill: var(--cream); pointer-events: none; }
.zone-count { font-size: 6.5px; }
.zone-count { fill: var(--ink); }
.stand .zone-count, .pano .zone-count { font-size: 8px; }
.closed-area { fill: #a0a0a0; pointer-events: none; }
.area-label { fill: white; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-anchor: middle; pointer-events: none; }
.stage { fill: var(--stage); pointer-events: none; }
.stage-label { fill: white; font-family: var(--condensed); font-size: 16px; font-weight: 900; letter-spacing: .12em; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.legend { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 1.4vw, 9px); overflow: hidden; padding-top: 7px; font-size: clamp(.45rem, 1.95vw, .62rem); font-weight: 800; white-space: nowrap; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.legend .front { background: var(--front); }.legend .arena { background: var(--arena); }.legend .stand { background: var(--stand); }.legend .pano { background: var(--pano); }

.setlist-details { width: 100%; min-width: 0; margin-top: 8px; overflow: hidden; border-radius: 14px; background: var(--paper); }
.setlist-details summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 10px 12px; font-family: var(--condensed); font-size: 1.1rem; font-weight: 900; letter-spacing: .02em; cursor: pointer; list-style: none; }
.setlist-details summary::-webkit-details-marker { display: none; }
.setlist-details summary::after { flex: 0 0 auto; content: "+"; font-size: 1.25rem; line-height: 1; }
.setlist-details[open] summary::after { content: "−"; }
.setlist-list { min-width: 0; padding: 0 10px 10px; }
.setlist-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 42px; border: 0; border-top: 1px solid rgba(242, 101, 34, .2); padding: 7px 3px; background: transparent; text-align: left; cursor: pointer; }
.setlist-row > * { min-width: 0; }
.setlist-entry.is-expanded { border-radius: 8px; background: var(--cream); }
.setlist-entry.is-expanded .setlist-row { padding-inline: 8px; border-top-color: transparent; }
.setlist-row:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.setlist-count { flex: 0 0 auto; min-width: 22px; border-radius: 999px; padding: 2px 6px; background: var(--front); color: var(--ink); font-family: var(--condensed); font-size: .68rem; text-align: center; white-space: nowrap; }
.setlist-links { padding: 0 8px 7px; }
.setlist-links .link-row { min-height: 43px; }
.setlist-links .link-row:last-child { border-bottom: 0; }
.setlist-empty { margin: 0; padding: 8px 0 4px; color: #5f5851; font-size: .7rem; }

.links-section { margin-top: 8px; border-radius: 14px; padding: 12px 10px; background: var(--paper); }
.count-pill { border-radius: 999px; padding: 3px 8px; background: var(--front); font-family: var(--condensed); font-size: .74rem; }
.active-filter { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 9px 0 2px; border-radius: 999px; padding: 5px 6px 5px 10px; background: var(--black); color: var(--paper); font-size: .69rem; font-weight: 800; }
.active-filter span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-filter button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 4px 8px; background: var(--orange); font-size: .65rem; font-weight: 800; cursor: pointer; }
.link-list { margin-top: 7px; }
.link-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 14px auto; align-items: center; gap: 7px; min-height: 51px; border-top: 1px solid rgba(242, 101, 34, .2); color: var(--ink); }
.link-row:last-child { border-bottom: 1px solid rgba(242, 101, 34, .2); }
.link-open { display: contents; color: inherit; text-decoration: none; }
.platform-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--orange); font-family: var(--condensed); font-size: .58rem; }
.platform-icon svg { width: 58%; height: 58%; fill: currentColor; }
.platform-icon.youtube { background: #FF0000; color: white; }.platform-icon.instagram { background: #E4405F; color: white; }.platform-icon.tiktok, .platform-icon.x { background: var(--black); color: white; }
.link-copy { min-width: 0; }
.link-copy > strong { display: block; overflow: hidden; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.link-meta { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 2px; color: #5f5851; font-size: .59rem; }
.link-meta em { flex: 0 1 auto; min-width: 0; overflow: hidden; border-radius: 999px; padding: 1px 5px; background: var(--arena); color: var(--ink); font-style: normal; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.link-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-badges { display: flex; align-items: center; justify-content: end; gap: 3px; }
.duration { border-radius: 999px; padding: 2px 5px; background: var(--cream); font-family: var(--condensed); font-size: .64rem; }
.external { font-weight: 900; }
.like-button { display: flex; align-items: center; gap: 3px; border: 0; border-radius: 999px; padding: 3px 7px; background: var(--cream); color: var(--orange-dark); font-family: var(--condensed); font-size: .64rem; white-space: nowrap; cursor: pointer; }
.like-button:disabled { opacity: .6; cursor: default; }
.like-button.is-liked { background: var(--orange); color: white; }
.empty-state { margin: 8px 0 0; padding: 14px 4px; font-size: .75rem; }
.site-footer { display: flex; justify-content: space-between; gap: 10px; padding: 11px 3px 0; color: var(--black); font-size: .57rem; }
.site-footer strong { font-family: var(--condensed); font-size: .85rem; }
.site-footer span { text-align: right; }

/* Fan submission */
.links-actions { display: flex; align-items: center; gap: 6px; }
.submission-button, .zone-submission { display: inline-flex; align-items: center; justify-content: center; min-height: 27px; border: 0; border-radius: 999px; padding: 4px 9px; background: var(--black); color: var(--paper); font-family: var(--condensed); font-size: .72rem; font-weight: 900; letter-spacing: .02em; cursor: pointer; white-space: nowrap; }
.submission-button:hover, .zone-submission:hover { background: var(--orange-dark); }
.submission-button:focus-visible, .zone-submission:focus-visible, .submission-close:focus-visible, .song-toggle:focus-visible, .submission-submit:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.active-filter .zone-submission { flex: 0 0 auto; min-height: 25px; background: var(--paper); color: var(--ink); }

.submission-modal { position: fixed; z-index: 40; inset: 0; display: grid; align-items: end; padding: 0; }
.submission-modal[hidden] { display: none; }
.submission-backdrop { position: absolute; inset: 0; background: rgba(9, 9, 9, .58); }
.submission-sheet, .submission-dialog { position: relative; width: min(100%, 620px); max-height: min(88vh, 760px); margin: 0 auto; overflow: auto; border: 2px solid var(--black); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 13px 13px calc(16px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -7px 0 var(--orange); }
.submission-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.submission-header h2 { margin: 1px 0 0; font-family: var(--condensed); font-size: 1.5rem; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.submission-header .eyebrow { color: var(--orange-dark); }
.submission-close { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border: 1.5px solid var(--black); border-radius: 50%; padding: 0; background: var(--cream); font-family: var(--sans); font-size: 1.1rem; font-weight: 900; line-height: 1; cursor: pointer; }
.submission-form { display: grid; gap: 11px; }
.submission-field { display: grid; gap: 5px; }
.submission-label { font-size: .69rem; font-weight: 900; }
.submission-select, .submission-input { width: 100%; min-height: 39px; border: 1.5px solid var(--black); border-radius: 8px; padding: 8px 9px; background: #fff; color: var(--ink); font: inherit; font-size: .8rem; }
.submission-input::placeholder { color: #81766c; opacity: 1; }
.submission-select:focus, .submission-input:focus { outline: 3px solid rgba(242, 101, 34, .45); outline-offset: 1px; }
.submission-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.submission-platform { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 48px; min-height: 28px; border-radius: 999px; padding: 4px 7px; background: var(--cream); font-family: var(--condensed); font-size: .64rem; letter-spacing: .03em; text-align: center; }
.submission-platform svg { flex-shrink: 0; width: 14px; height: 14px; fill: currentColor; }
.submission-platform.youtube { background: #FF0000; color: white; }.submission-platform.instagram { background: #E4405F; color: white; }.submission-platform.tiktok, .submission-platform.x { background: var(--black); color: white; }
.submission-url-status { min-height: 1em; margin: 0; color: var(--orange-dark); font-size: .62rem; font-weight: 800; }
.song-toggle-list { display: flex; flex-wrap: wrap; gap: 6px; }
.song-toggle { min-height: 29px; border: 1.5px solid var(--black); border-radius: 999px; padding: 4px 8px; background: var(--paper); color: var(--ink); font-size: .66rem; font-weight: 800; cursor: pointer; }
.song-toggle.is-selected, .song-toggle[aria-pressed="true"] { background: var(--black); color: var(--paper); }
.submission-submit { min-height: 43px; border: 0; border-radius: 8px; padding: 9px 14px; background: var(--orange); color: white; font-family: var(--condensed); font-size: .94rem; font-weight: 900; letter-spacing: .04em; cursor: pointer; }
.submission-submit:disabled { background: #c8beb4; color: #6f665e; cursor: not-allowed; }
.submission-note { margin: -3px 0 0; color: #5f5851; font-size: .6rem; }
.submission-toast { position: fixed; z-index: 50; right: max(10px, env(safe-area-inset-right)); bottom: max(13px, env(safe-area-inset-bottom)); left: max(10px, env(safe-area-inset-left)); width: min(440px, calc(100% - 20px)); margin: 0 auto; border: 2px solid var(--black); border-radius: 10px; padding: 10px 12px; background: var(--front); color: var(--ink); box-shadow: 4px 4px 0 var(--black); font-size: .76rem; font-weight: 900; }
.submission-toast.is-error { background: var(--orange); color: white; }

@media (min-width: 600px) {
  .app-shell { padding-top: 18px; }
  .show-row { min-height: 70px; }
  .show-list { padding-inline: 24px; }
  .map-section { padding-inline: 18px; }
  .submission-sheet, .submission-dialog { margin-bottom: 20px; border-bottom: 2px solid var(--black); border-radius: 18px; }
}

@media (max-width: 374px) {
  .app-shell { padding-inline: 6px; }
  .show-list { padding-inline: 10px; }
  .show-row { grid-template-columns: 16px 68px 52px minmax(0, 1fr); gap: 4px; }
  .show-row strong { font-size: 1.7rem; }
  .venue-tag { padding-inline: 3px; font-size: .5rem; }
  .back-link span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
