:root {
  color-scheme: dark;
  --night: #110f17;
  --night-soft: #1b1722;
  --panel: #211c29;
  --panel-up: #2a2233;
  --line: #3c3247;
  --paper: #f3e9d4;
  --paper-deep: #dfcfad;
  --paper-ink: #2d2530;
  --muted: #aaa0b0;
  --violet: #8c71c5;
  --violet-deep: #60478e;
  --pink: #e66f93;
  --orange: #e99a5b;
  --cyan: #6ec2c8;
  --green: #72b68d;
  --shadow: 0 24px 72px rgb(0 0 0 / 35%);
  font-family: Inter, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 14% 4%, rgb(140 113 197 / 13%), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgb(230 111 147 / 9%), transparent 25rem),
    linear-gradient(#110f17, #15111a 52%, #100e14);
  color: #f7f1e7;
  margin: 0;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  background: var(--paper);
  color: var(--paper-ink);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
footer,
.hero,
.ledger,
.simple-page,
.not-found {
  margin-inline: auto;
  max-width: 1180px;
  width: calc(100% - 2rem);
}

.site-header {
  align-items: center;
  display: flex;
  height: 72px;
  justify-content: space-between;
}

.brand,
.footer-brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 0.65rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.logo-mark {
  display: inline-block;
  height: 28px;
  position: relative;
  transform: rotate(-5deg);
  width: 34px;
}

.logo-ticket {
  background: var(--pink);
  border-radius: 3px;
  box-shadow: inset -8px 0 var(--violet);
  height: 20px;
  left: 1px;
  position: absolute;
  top: 4px;
  width: 31px;
}

.logo-ticket::before,
.logo-ticket::after {
  background: var(--night);
  border-radius: 50%;
  content: "";
  height: 6px;
  position: absolute;
  right: 5px;
  width: 6px;
}

.logo-ticket::before {
  top: -3px;
}

.logo-ticket::after {
  bottom: -3px;
}

.logo-ring {
  border: 2px solid var(--paper);
  border-radius: 50%;
  bottom: 1px;
  height: 10px;
  position: absolute;
  right: -1px;
  width: 10px;
}

.site-header nav,
footer nav {
  display: flex;
  gap: 1.4rem;
}

.site-header nav a,
footer nav a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.site-header nav a:hover,
footer nav a:hover {
  color: #fff;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  min-height: 560px;
  padding-block: 3.5rem 5rem;
}

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

.eyebrow,
.section-kicker {
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(1.75rem, 3.2vw, 2rem);
  letter-spacing: 0.025em;
  line-height: 1.35;
  margin: 0;
}

.hero-copy > p:not(.eyebrow) {
  color: #c9c0ca;
  line-height: 1.9;
  margin: 1.25rem 0 1.75rem;
}

.hero-actions,
.header-actions,
.dialog-actions,
.detail-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.primary-button,
.quiet-button,
.danger-button,
.data-button,
.round-button,
.file-button {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.15rem;
  text-decoration: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--pink), #c9589b);
  border: 1px solid #f38cad;
  box-shadow: 0 12px 28px rgb(230 111 147 / 24%);
  color: #fff;
}

.quiet-button,
.data-button,
.file-button {
  background: #28212f;
  border: 1px solid var(--line);
  color: #eee7ef;
}

.quiet-button:hover,
.data-button:hover,
.file-button:hover {
  background: #342a3c;
  border-color: #645274;
}

.danger-button {
  background: transparent;
  border: 1px solid #814153;
  color: #f5a1b5;
}

.small {
  min-height: 40px;
  padding: 0.56rem 0.9rem;
}

.text-button {
  background: none;
  border: 0;
  color: #d9c7ed;
  padding: 0.65rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.trust-row {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.75rem;
  gap: 0.9rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.trust-row li {
  align-items: center;
  display: flex;
  gap: 0.35rem;
}

.trust-row span {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgb(114 182 141 / 12%);
  height: 6px;
  width: 6px;
}

.stage-scene {
  aspect-ratio: 1.23;
  background:
    linear-gradient(105deg, transparent 14%, rgb(140 113 197 / 18%) 38%, transparent 54%),
    linear-gradient(255deg, transparent 12%, rgb(230 111 147 / 17%) 39%, transparent 56%),
    radial-gradient(ellipse at 50% 92%, #44334f 0 8%, transparent 38%),
    linear-gradient(#181321, #0d0b10);
  border: 1px solid #352b3e;
  border-radius: 22px;
  box-shadow:
    var(--shadow),
    inset 0 0 90px rgb(0 0 0 / 50%);
  min-height: 400px;
  overflow: hidden;
  position: relative;
}

.spotlight {
  filter: blur(2px);
  height: 112%;
  opacity: 0.34;
  position: absolute;
  top: -20%;
  transform-origin: top;
  width: 27%;
}

.spotlight.left {
  background: linear-gradient(90deg, transparent, rgb(135 106 205 / 65%), transparent);
  left: 6%;
  transform: rotate(-18deg);
}

.spotlight.right {
  background: linear-gradient(90deg, transparent, rgb(235 99 144 / 55%), transparent);
  right: 6%;
  transform: rotate(18deg);
}

.truss {
  border-bottom: 5px solid #38323d;
  height: 20px;
  left: -2%;
  position: absolute;
  top: 11%;
  transform: rotate(-1deg);
  width: 104%;
}

.truss::before {
  background: repeating-linear-gradient(
    120deg,
    transparent 0 20px,
    #38323d 21px 24px,
    transparent 25px 42px
  );
  content: "";
  inset: -12px 0 0;
  position: absolute;
}

.stage-board {
  align-items: center;
  background: #201a25;
  border: 5px solid #39303f;
  box-shadow: 0 16px 30px rgb(0 0 0 / 35%);
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  left: 12%;
  padding: 1rem;
  position: absolute;
  top: 25%;
  transform: perspective(450px) rotateY(11deg) rotate(-3deg);
  width: 43%;
}

.board-date {
  color: var(--orange);
  font-family: ui-monospace, monospace;
  font-size: clamp(1.1rem, 3vw, 2.2rem);
  font-weight: 900;
}

.board-lines {
  display: grid;
  gap: 6px;
}

.board-lines i {
  background: #665a6c;
  height: 5px;
}

.board-lines i:nth-child(2) {
  width: 72%;
}

.board-status {
  color: #96899c;
  font-size: 0.56rem;
  grid-column: 1 / -1;
  letter-spacing: 0.22em;
  margin-top: 0.7rem;
}

.hero-ticket {
  background:
    radial-gradient(circle at 0 50%, transparent 0 10px, var(--paper) 11px),
    linear-gradient(102deg, var(--paper), #f9f0de);
  border-radius: 5px;
  bottom: 15%;
  box-shadow: 0 20px 45px rgb(0 0 0 / 45%);
  color: var(--paper-ink);
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  padding: 1rem 1.2rem;
  position: absolute;
  right: 8%;
  transform: rotate(5deg);
  width: 58%;
  z-index: 2;
}

.hero-ticket::after {
  border-left: 2px dashed #b6a888;
  content: "";
  inset: 0 21% 0 auto;
  position: absolute;
}

.ticket-day {
  color: var(--pink);
  font-size: 0.65rem;
  font-weight: 900;
}

.ticket-date {
  font-size: 3.1rem;
  font-weight: 900;
  grid-column: 1;
  line-height: 1;
}

.ticket-copy {
  align-self: center;
  display: grid;
  gap: 8px;
  grid-column: 2;
  grid-row: 1 / 3;
  padding-right: 25%;
}

.ticket-copy i {
  background: #4c3e49;
  display: block;
  height: 7px;
}

.ticket-copy i:nth-child(2) {
  width: 72%;
}

.ticket-copy i:nth-child(3) {
  background: #c3b696;
  height: 5px;
  width: 48%;
}

.ticket-seat {
  color: #8e7b68;
  font-size: 0.55rem;
  font-weight: 800;
  grid-column: 1 / -1;
  letter-spacing: 0.12em;
  margin-top: 1rem;
}

.ticket-code {
  background: repeating-linear-gradient(90deg, #282028 0 2px, transparent 2px 5px);
  bottom: 13%;
  height: 30%;
  position: absolute;
  right: 5%;
  width: 11%;
}

.ticket-hole {
  background: #17121b;
  border-radius: 50%;
  height: 9px;
  position: absolute;
  right: 20%;
  width: 9px;
}

.ticket-hole.h1 {
  top: -5px;
}

.ticket-hole.h2 {
  bottom: -5px;
}

.wristband {
  background: linear-gradient(90deg, #bb4f85, var(--violet), #7a61b2);
  border: 2px solid rgb(255 255 255 / 16%);
  bottom: 9%;
  color: rgb(255 255 255 / 78%);
  font-size: 0.55rem;
  font-weight: 900;
  left: 8%;
  letter-spacing: 0.25em;
  padding: 0.75rem 2.6rem;
  position: absolute;
  transform: rotate(-13deg);
}

.stage-floor {
  bottom: 0;
  display: flex;
  gap: 16%;
  height: 25%;
  inset-inline: 0;
  justify-content: center;
  overflow: hidden;
  position: absolute;
}

.stage-floor i {
  background: #08070a;
  border-radius: 50% 50% 0 0;
  height: 80px;
  margin-top: 55px;
  width: 54px;
}

.ledger {
  background: #19151f;
  border: 1px solid #342b3d;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 6rem;
  min-height: 520px;
  overflow: hidden;
}

.ledger-header {
  align-items: center;
  background: linear-gradient(90deg, rgb(140 113 197 / 11%), transparent 45%), #211b28;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 1.8rem;
}

.ledger-header h2,
.dialog-heading h2,
.event-detail h2,
.data-grid h3 {
  margin: 0;
}

.section-kicker {
  color: #9f8ab3;
  font-size: 0.58rem;
  margin-bottom: 0.35rem;
}

.data-button {
  font-size: 0.8rem;
  min-height: 40px;
}

.data-button span {
  color: var(--cyan);
  margin-right: 0.4rem;
}

.round-button {
  background: var(--pink);
  border: 0;
  color: #fff;
  min-height: 40px;
}

.round-button span {
  font-size: 1.2rem;
  margin-right: 0.3rem;
}

.summary-board {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  padding: 1px;
}

.summary-board article {
  align-items: center;
  background: #1e1925;
  display: flex;
  gap: 0.9rem;
  min-height: 92px;
  padding: 1.1rem 1.5rem;
}

.summary-board strong {
  display: block;
  font-size: 1.35rem;
}

.summary-board small {
  color: var(--muted);
  font-size: 0.68rem;
}

.summary-board .deadline strong {
  color: #f19f72;
}

.summary-icon {
  border: 2px solid #766781;
  border-radius: 6px;
  display: inline-block;
  height: 26px;
  position: relative;
  width: 26px;
}

.summary-icon.calendar::before {
  border-top: 4px solid #766781;
  content: "";
  inset: 5px 3px 0;
  position: absolute;
}

.summary-icon.bell {
  border-radius: 50% 50% 4px 4px;
  border-color: #bd795d;
}

.summary-icon.stamp {
  border-color: var(--green);
  border-radius: 50%;
}

.summary-icon.stamp::after {
  border-bottom: 2px solid var(--green);
  border-right: 2px solid var(--green);
  content: "";
  height: 8px;
  left: 8px;
  position: absolute;
  top: 5px;
  transform: rotate(45deg);
  width: 4px;
}

.summary-icon.yen {
  align-items: center;
  border: 0;
  color: var(--cyan);
  display: flex;
  font-size: 1.3rem;
  font-weight: 900;
  justify-content: center;
}

.ledger-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 1rem 1.4rem 0;
}

.ledger-tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  min-width: max-content;
  padding: 0.7rem 1rem;
}

.ledger-tabs button[aria-pressed="true"] {
  border-bottom-color: var(--pink);
  color: #fff;
}

.ticket-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1.5rem;
}

.event-ticket {
  background:
    radial-gradient(circle at 0 50%, #19151f 0 9px, transparent 10px),
    linear-gradient(100deg, var(--paper), #f8efdf);
  border: 0;
  border-radius: 5px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 22%);
  color: var(--paper-ink);
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 112px;
  min-height: 128px;
  overflow: hidden;
  padding: 0 0 0 0.75rem;
  position: relative;
  text-align: left;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.event-ticket:hover {
  box-shadow: 0 15px 32px rgb(0 0 0 / 32%);
  transform: translateY(-2px) rotate(-0.2deg);
}

.ticket-date-block {
  align-self: center;
  border-right: 1px solid #cabea6;
  display: grid;
  justify-items: center;
  padding-right: 0.75rem;
}

.ticket-date-block small {
  color: #b95577;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.ticket-date-block strong {
  font-size: 2rem;
}

.ticket-body {
  align-content: center;
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  padding: 1rem;
}

.ticket-performer {
  color: #927f90;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-title {
  font-size: 0.98rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-meta {
  color: #736776;
  font-size: 0.67rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-stub {
  align-content: center;
  background: #e6d8bd;
  border-left: 2px dashed #bcae93;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  padding: 0.8rem;
  position: relative;
}

.ticket-stub::before,
.ticket-stub::after {
  background: #19151f;
  border-radius: 50%;
  content: "";
  height: 18px;
  left: -10px;
  position: absolute;
  width: 18px;
}

.ticket-stub::before {
  top: -9px;
}

.ticket-stub::after {
  bottom: -9px;
}

.ticket-stub > small {
  color: #8f7d71;
  font-size: 0.52rem;
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-status {
  color: var(--violet-deep);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.deadline-flag {
  color: #b14d3c;
  display: block;
  font-size: 0.5rem;
  margin-top: 0.35rem;
}

.status-attended {
  filter: saturate(0.75);
}

.status-cancelled {
  filter: grayscale(0.9);
  opacity: 0.64;
}

.empty-ledger {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-ledger h3 {
  color: #f5edf4;
  margin-bottom: 0;
}

.empty-ledger p {
  line-height: 1.7;
  max-width: 450px;
}

.empty-ticket {
  background: #4f405a;
  border-radius: 4px;
  height: 54px;
  position: relative;
  transform: rotate(-7deg);
  width: 90px;
}

.empty-ticket::before {
  border-left: 2px dashed #897792;
  content: "";
  inset: 0 22px 0 auto;
  position: absolute;
}

.empty-ticket i {
  background: #84699a;
  height: 5px;
  left: 12px;
  position: absolute;
  top: 16px;
  width: 36px;
}

dialog {
  background: var(--panel);
  border: 1px solid #4b3d55;
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: #f6eff5;
  max-height: calc(100vh - 2rem);
  max-width: 820px;
  padding: 0;
  width: calc(100% - 2rem);
}

dialog::backdrop {
  backdrop-filter: blur(7px);
  background: rgb(8 6 11 / 72%);
}

.dialog-heading,
.event-detail > header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}

.dialog-close {
  background: #302738;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #ddd3df;
  font-size: 1.2rem;
  height: 36px;
  width: 36px;
}

.event-form {
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label {
  display: grid;
  gap: 0.45rem;
}

.form-grid label > span {
  color: #bdb1c2;
  font-size: 0.72rem;
  font-weight: 700;
}

.span-two {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  background: #151119;
  border: 1px solid #46394f;
  border-radius: 8px;
  color: #f8f2f8;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

textarea {
  line-height: 1.6;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(110 194 200 / 55%);
  outline-offset: 2px;
}

.money-input {
  align-items: center;
  display: flex;
  position: relative;
}

.money-input > span {
  color: #978a9c;
  left: 0.8rem;
  position: absolute;
}

.money-input input {
  padding-left: 1.8rem;
}

.form-state {
  color: #e5a77e;
  font-size: 0.8rem;
  min-height: 1.2rem;
}

.dialog-actions {
  justify-content: flex-end;
}

.event-detail > header p {
  color: var(--pink);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 0.35rem;
}

.event-detail > header span {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.status-track {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow-x: auto;
  padding: 1rem 1.5rem;
}

.status-track button {
  background: none;
  border: 0;
  color: #8d8292;
  font-size: 0.65rem;
  min-width: 75px;
  padding: 1.4rem 0.2rem 0;
  position: relative;
}

.status-track button::before {
  background: #4b4052;
  border: 4px solid var(--panel);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #55475e;
  content: "";
  height: 13px;
  left: calc(50% - 6px);
  position: absolute;
  top: 0;
  width: 13px;
}

.status-track button::after {
  background: #4b4052;
  content: "";
  height: 2px;
  left: calc(50% + 7px);
  position: absolute;
  top: 6px;
  width: calc(100% - 13px);
}

.status-track button:nth-last-of-type(1)::after {
  display: none;
}

.status-track button.active {
  color: #fff;
  font-weight: 800;
}

.status-track button.active::before {
  background: var(--pink);
  box-shadow: 0 0 0 4px rgb(230 111 147 / 16%);
}

.cancelled-label {
  color: #db8497;
  font-size: 0.7rem;
  padding: 1.4rem 0 0.2rem;
}

.detail-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  padding: 1px 1.5rem;
}

.detail-grid > div {
  background: #1b1620;
  display: grid;
  gap: 0.3rem;
  min-height: 76px;
  padding: 1rem;
}

.detail-grid span,
.detail-note > span,
.detail-reflection > span {
  color: #918596;
  font-size: 0.63rem;
}

.detail-grid strong {
  font-size: 0.8rem;
}

.detail-note,
.detail-reflection {
  border-top: 1px solid var(--line);
  margin: 1rem 1.5rem 0;
  padding-top: 1rem;
}

.detail-note p,
.detail-reflection p {
  line-height: 1.75;
  white-space: pre-wrap;
}

.detail-reflection {
  background: #261d2a;
  border: 1px solid #45364b;
  border-radius: 9px;
  padding: 1rem;
}

.detail-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
}

.source-link {
  color: #8ed1d2;
  font-size: 0.75rem;
  margin-right: auto;
}

.data-dialog {
  max-width: 900px;
}

.data-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  padding: 1px;
}

.data-grid section {
  background: #1c1721;
  min-height: 250px;
  padding: 1.4rem;
}

.data-grid h3 {
  font-size: 0.95rem;
  margin-top: 1rem;
}

.data-grid p {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
}

.data-illustration {
  align-items: center;
  background: #30263a;
  border: 1px solid #54445e;
  border-radius: 8px;
  color: var(--pink);
  display: flex;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 52px;
}

.file-button {
  cursor: pointer;
  font-size: 0.78rem;
  width: max-content;
}

.file-button input {
  display: none;
}

.data-dialog > .form-state {
  margin: 1rem 1.4rem;
}

.data-danger {
  align-items: center;
  border-top: 1px solid #593643;
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
}

.data-danger strong,
.data-danger span {
  display: block;
}

.data-danger span {
  color: var(--muted);
  font-size: 0.68rem;
  margin-top: 0.25rem;
}

.simple-page {
  min-height: 70vh;
  padding: 4rem 0 6rem;
}

.page-intro {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.mini-ticket {
  align-items: center;
  background: var(--paper);
  border-radius: 4px;
  color: var(--paper-ink);
  display: flex;
  font-size: 1.3rem;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  position: relative;
  transform: rotate(-6deg);
  width: 96px;
}

.mini-ticket::after {
  border-left: 2px dashed #b6a889;
  content: "";
  inset: 0 20px 0 auto;
  position: absolute;
}

.guide-track {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
}

.guide-track article {
  border-top: 1px solid var(--line);
  padding: 2rem 1.4rem 2rem 0;
}

.guide-track article > span,
.anatomy-labels span {
  color: var(--pink);
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
}

.guide-track h2 {
  font-size: 1rem;
}

.guide-track p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.8;
}

.ticket-anatomy {
  align-items: center;
  background: #1c1721;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.2fr 0.8fr;
  margin-top: 3rem;
  padding: 3rem;
}

.anatomy-ticket {
  background: var(--paper);
  border-radius: 5px;
  color: var(--paper-ink);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 90px 1fr;
  padding: 2rem;
  position: relative;
  transform: rotate(-2deg);
}

.a-date {
  color: var(--pink);
  font-size: 1.4rem;
  font-weight: 900;
}

.a-title,
.a-venue {
  background: #4a3c49;
  height: 10px;
}

.a-title {
  width: 70%;
}

.a-venue {
  background: #b6a88f;
  width: 45%;
}

.a-seat {
  border-top: 1px dashed #b4a586;
  grid-column: 1 / -1;
  padding-top: 0.8rem;
}

.anatomy-labels {
  display: grid;
  gap: 0.75rem;
}

.anatomy-labels p {
  color: #c7bccb;
  margin: 0;
}

.anatomy-labels span {
  margin-right: 0.7rem;
}

.privacy-pass {
  align-items: center;
  background: linear-gradient(135deg, #5e4880, #9b517d);
  border: 2px solid #ac7aa1;
  border-radius: 8px;
  display: flex;
  height: 62px;
  justify-content: center;
  transform: rotate(-4deg);
  width: 92px;
}

.privacy-pass span {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.privacy-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.privacy-grid article {
  background: #1c1721;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 230px;
  padding: 1.5rem;
}

.privacy-grid h2,
.privacy-details h2 {
  font-size: 1rem;
}

.privacy-grid p,
.privacy-details {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

.privacy-icon {
  border: 2px solid var(--violet);
  display: block;
  height: 34px;
  margin-bottom: 1.5rem;
  width: 44px;
}

.privacy-icon.ticket {
  border-radius: 4px;
}

.privacy-icon.pulse {
  border-radius: 50%;
  width: 34px;
}

.privacy-icon.eye {
  border-radius: 60% 20%;
  transform: rotate(45deg);
}

.privacy-details {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 2rem;
}

.privacy-details li {
  margin-block: 0.5rem;
}

.not-found {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(360px, 1fr) 0.8fr;
  min-height: 75vh;
}

.not-found .stage-scene {
  min-height: 340px;
}

footer {
  align-items: center;
  border-top: 1px solid #2e2635;
  color: var(--muted);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto 1fr;
  padding-block: 2rem 3rem;
}

footer p {
  font-size: 0.75rem;
  margin: 0;
}

footer nav {
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

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

  .stage-scene {
    margin-inline: auto;
    max-width: 650px;
    width: 100%;
  }

  .summary-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .ticket-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .guide-track {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header nav {
    gap: 0.8rem;
  }

  .site-header nav a {
    font-size: 0.74rem;
  }

  .hero {
    min-height: auto;
    padding-block: 2rem 3rem;
  }

  .stage-scene {
    min-height: 300px;
  }

  .hero-ticket {
    width: 68%;
  }

  .ledger {
    border-radius: 12px;
    width: calc(100% - 1rem);
  }

  .ledger-header {
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1rem;
  }

  .data-button {
    font-size: 0;
    padding: 0;
    width: 42px;
  }

  .data-button span {
    font-size: 1rem;
    margin: 0;
  }

  .summary-board article {
    min-height: 78px;
    padding: 0.9rem;
  }

  .ticket-grid {
    padding: 1rem;
  }

  .event-ticket {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .ticket-date-block {
    padding-right: 0.5rem;
  }

  .ticket-stub {
    border-left: 0;
    border-top: 2px dashed #bcae93;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    min-height: 44px;
    padding: 0.5rem 1rem;
  }

  .ticket-stub::before,
  .ticket-stub::after {
    left: auto;
    top: -10px;
  }

  .ticket-stub::before {
    right: -9px;
  }

  .ticket-stub::after {
    left: -9px;
  }

  .form-grid,
  .data-grid,
  .ticket-anatomy,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: 1;
  }

  .data-grid section {
    min-height: 0;
  }

  .data-danger {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .guide-track {
    grid-template-columns: 1fr;
  }

  .ticket-anatomy {
    padding: 1.5rem;
  }

  .page-intro {
    align-items: flex-start;
  }

  .mini-ticket,
  .privacy-pass {
    flex: 0 0 auto;
  }

  .not-found {
    grid-template-columns: 1fr;
    padding-block: 2rem 5rem;
  }

  footer nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  footer,
  .hero,
  .header-actions,
  .ledger-tabs {
    display: none;
  }

  body {
    background: #fff;
  }

  .ledger {
    border: 0;
    box-shadow: none;
    margin: 0;
    width: 100%;
  }

  .ticket-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
