:root {
  color-scheme: light;
  --paper: #f1e7d3;
  --ground: #e9dfcb;
  --ink: #1d1915;
  --red: #bc231e;
  --muted: #64584a;
  --line: #ada08b;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --texture: url("/paper.svg");
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--texture), var(--ground); color: var(--ink); font: 16px/1.46 Arial, sans-serif; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
.mono { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .075em; }
.wrap { width: min(calc(100% - 32px), 1080px); margin-inline: auto; }
.masthead { color: var(--paper); background: var(--ink); }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; min-height: 48px; font: 700 .72rem var(--mono); letter-spacing: .11em; }
.brand { text-decoration: none; display: inline-flex; gap: 9px; align-items: center; }
.asterisk { font-size: 1.2rem; color: #fa5548; line-height: 1; }
.mast-label, .mast-age { display: none; }
.eyeline { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--line); margin-bottom: 18px; gap: 8px; font-size: .61rem; }
.eyeline i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 5px; }
.layout { display: grid; gap: 24px; }
.poster { min-width: 0; }
.poster-kicker { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.poster-kicker span { color: var(--red); font-size: 1.15rem; line-height: 1; }
.wordmark { font-family: var(--display); font-weight: 1000; line-height: .84; letter-spacing: -.09em; }
.wordmark span { display: block; font-size: clamp(3.65rem, 19vw, 7.8rem); }
.wordmark span + span { font-size: clamp(2.45rem, 12.6vw, 5.15rem); letter-spacing: -.075em; margin: .105em 0 .24em; }
.shame { display: block; background: var(--texture), var(--red); color: var(--paper); font: 1000 clamp(1.8rem, 10vw, 4.25rem)/.92 var(--display); letter-spacing: -.067em; padding: .18em .21em .22em; white-space: nowrap; }
.edition { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.edition b, .section-label { color: var(--red); letter-spacing: .17em; }
.edition span { flex: 1; border-top: 2px solid; }
.poster-details { display: flex; flex-direction: column; }
.event { display: grid; grid-template-columns: 1.12fr .78fr 1fr; border: 2px solid var(--ink); margin-top: 17px; }
.event > div { min-width: 0; padding: 8px 7px 9px; }
.event > div + div { border-left: 1px solid var(--ink); }
.event dt { font: 700 .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.event dd { font: 950 clamp(.83rem, 4.1vw, 1.15rem)/1.1 var(--display); letter-spacing: -.05em; margin-top: 5px; }
.invitation, .motto { display: none; }
#app { min-width: 0; align-self: start; }
.ticket { position: relative; background: var(--texture), var(--paper); border: 1px solid var(--ink); box-shadow: 4px 4px 0 #211a1424; }
.ticket-head { background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.ticket-body { padding: 20px 16px; }
.ticket-tail { position: relative; border-top: 1px dashed var(--ink); padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-tail::before, .ticket-tail::after { position: absolute; top: -7px; width: 13px; height: 13px; border: 1px solid var(--ink); background: var(--texture), var(--ground); border-radius: 50%; content: ""; }
.ticket-tail::before { left: -7px; clip-path: inset(0 0 0 6px); }
.ticket-tail::after { right: -7px; clip-path: inset(0 6px 0 0); }
.ticket h2 { font: 950 clamp(1.8rem, 7vw, 3rem)/.98 var(--display); letter-spacing: -.072em; margin: 6px 0 11px; overflow-wrap: anywhere; }
.ticket h3 { font: 900 1.2rem/1.13 var(--display); letter-spacing: -.04em; overflow-wrap: anywhere; }
.copy { color: var(--muted); font-size: .94rem; }
.form { display: grid; gap: 9px; margin-top: 17px; }
.form label { text-transform: uppercase; }
input:not([type="file"]), select { min-height: 46px; padding: 9px 11px; width: 100%; border: 1px solid var(--ink); border-radius: 0; background: #faf0dd; color: var(--ink); }
input::placeholder { color: #75695b; }
input[type="file"] { max-width: 100%; font-size: .87rem; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); padding: 10px 13px; background: transparent; color: var(--ink); font: 800 .75rem var(--mono); text-transform: uppercase; letter-spacing: .045em; text-decoration: none; }
.button.primary { background: var(--red); color: #fff4df; border-color: var(--red); justify-content: space-between; }
.button:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button:disabled { opacity: .53; }
.button.full { width: 100%; }
.link-button { border: 0; padding: 7px 0; background: none; text-align: left; color: var(--ink); font: 700 .73rem var(--mono); text-decoration: underline; text-underline-offset: 3px; }
.barcode { display: inline-block; height: 19px; width: 65px; flex: 0 0 65px; background: repeating-linear-gradient(90deg,var(--ink) 0 2px, transparent 2px 4px,var(--ink) 4px 5px,transparent 5px 8px,var(--ink) 8px 11px,transparent 11px 13px); }
.agenda { margin-top: 20px; border-top: 1px solid var(--ink); }
.agenda-row { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 8px; align-items: center; padding: 10px 1px; border-bottom: 1px solid var(--line); }
.agenda-row b { font-size: .95rem; }
.agenda-row .mono:first-child { color: var(--red); }
.agenda-tag { text-transform: uppercase; font-size: .62rem; color: var(--muted); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); color: var(--muted); margin: 26px 0 0; padding: 15px 0 24px; font-size: .63rem; }
.footer a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.notice { margin: 0 0 12px; color: var(--red); font-weight: 700; font-size: .9rem; }
.notice:empty { display: none; }
.stack { display: grid; gap: 17px; }
.block { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 9px; }
.recovery { padding: 12px; background: #e8dac1; display: grid; gap: 8px; }
.recovery code { font: 800 .81rem var(--mono); overflow-wrap: anywhere; user-select: all; }
.progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 0; appearance: none; background: #d3c4ac; }
.progress::-webkit-progress-bar { background: #d3c4ac; }
.progress::-webkit-progress-value { background: var(--red); }
.progress::-moz-progress-bar { background: var(--red); }
.options { border: 0; margin: 6px 0; padding: 0; display: grid; gap: 7px; }
.choice { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; min-height: 49px; padding: 8px 10px; border: 1px solid var(--line); background: #f8efdc; cursor: pointer; }
.choice:has(:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.choice:has(:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.choice input, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.choice span:first-of-type { display: grid; place-items: center; border: 1px solid var(--line); height: 26px; }
.choice:has(:checked) span:first-of-type { background: var(--red); border-color: var(--red); color: var(--paper); }
.photo { background: var(--ink); padding: 7px; color: var(--paper); }
.photo img { width: 100%; max-height: 390px; object-fit: contain; display: block; }
.photo figcaption { padding: 7px 4px 2px; }
.ranking, .guests { list-style: none; padding: 0; margin: 0; }
.ranking li, .guests li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.ranking strong, .guests small { flex-shrink: 0; }
.guest-label { display: grid; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-layout .poster { display: none; }
.admin-layout { grid-template-columns: minmax(0, 680px); justify-content: center; }
.qr { display: block; width: 180px; max-width: 100%; padding: 6px; border: 1px solid var(--line); background: white; }
@media (max-width: 759px) {
  .layout.is-active .poster-details, .layout.is-active .poster-kicker, .layout.is-active .edition { display: none; }
  .layout.is-active .poster { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
  .layout.is-active .wordmark span { display: inline; font-size: .9rem; letter-spacing: -.07em; margin: 0 .13em 0 0; }
  .layout.is-active .shame { font-size: .93rem; padding: .25em .35em; letter-spacing: -.045em; }
  .layout.is-active { gap: 13px; }
}
@media (min-width: 460px) {
  .wrap { width: min(calc(100% - 48px), 1080px); }
  .mast-label, .mast-age { display: inline; }
  .ticket-body { padding: 25px; }
  .ticket-head, .ticket-tail { padding-inline: 25px; }
  .eyeline { font-size: .69rem; }
  .event > div { padding: 10px 13px; }
}
@media (min-width: 760px) {
  .wrap { width: min(calc(100% - 72px), 1080px); }
  .masthead-inner { min-height: 52px; }
  .eyeline { margin-bottom: 25px; min-height: 51px; }
  .layout:not(.admin-layout) { grid-template-columns: minmax(0, 1.19fr) minmax(0, 1fr); gap: clamp(30px, 5.2vw, 70px); }
  .wordmark span { font-size: clamp(4.45rem, 10.25vw, 8.55rem); }
  .wordmark span + span { font-size: clamp(2.95rem, 6.85vw, 5.7rem); }
  .shame { font-size: clamp(2.3rem, 5.65vw, 4.65rem); }
  .event { margin-top: 0; }
  .invitation { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 20px 0; }
  .menu { font: .78rem/1.65 var(--mono); margin-top: 5px; }
  .menu div { display: flex; align-items: baseline; gap: 7px; }
  .menu dt { display: flex; align-items: baseline; gap: 6px; flex: 1; }
  .menu dt::after { content: ""; flex: 1; border-bottom: 1px dotted var(--muted); }
  .menu b { background: var(--ink); color: var(--paper); padding: 0 3px; }
  .stamp { width: 85px; height: 85px; border: 4px double var(--ink); border-radius: 50%; display: grid; place-content: center; text-align: center; transform: rotate(-13deg); font-size: .52rem; line-height: 1.05; }
  .stamp strong { font: 950 1.75rem/.98 var(--display); letter-spacing: -.11em; }
  .motto { display: block; color: var(--red); text-transform: uppercase; font: 950 clamp(1.1rem, 2.6vw, 2rem)/.98 var(--display); letter-spacing: -.06em; margin-top: 15px; }
}
