#p9-upc-guide {
  --ink: #193b3d;
  --teal: #105c58;
  --yellow: #ffdf6a;
  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  color: var(--ink);
  font: 400 16px/1.55 "DM Sans", "Avenir Next", Arial, sans-serif;
  text-align: left;
}
#p9-upc-guide *, #p9-upc-guide *::before, #p9-upc-guide *::after { box-sizing: border-box; }
#p9-upc-guide :is(figure, h2, h3, p, ol) { margin: 0; padding: 0; }
#p9-upc-guide :is(h2, h3) { color: var(--ink); font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; font-weight: 750; line-height: 1.12; text-transform: none; letter-spacing: -.025em; }
#p9-upc-guide h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
#p9-upc-guide p { font-size: 1rem; line-height: 1.5; }
#p9-upc-guide a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
#p9-upc-guide a:focus-visible, #p9-upc-guide summary:focus-visible { outline: 3px solid #b74e18; outline-offset: 3px; }
#p9-upc-guide [id] { scroll-margin-top: 7rem; }
#p9-upc-guide .top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; padding: 8px 0 10px; border-bottom: 2px solid var(--ink); }
#p9-upc-guide .wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .03em; }
#p9-upc-guide .brand-logo { display: block; width: 40px; height: 32px; object-fit: contain; }
#p9-upc-guide .venue { color: #425a58; font-size: .825rem; }
#p9-upc-guide .hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin: 0; padding: 22px 0 26px; }
#p9-upc-guide .hero > div { flex: 1 1 22rem; }
#p9-upc-guide .eyebrow { margin-bottom: 5px; color: #12635e; font-size: .85rem; font-weight: 700; line-height: 1.35; }
#p9-upc-guide .hero h2 { font-size: clamp(2rem, 4.8vw, 3.25rem); }
#p9-upc-guide .lede { margin-top: 10px; max-width: 60ch; font-size: 1.075rem; }
#p9-upc-guide .quick-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: .94rem; }
#p9-upc-guide .stub { padding: 11px 20px; background: #ffdc64; border: 2px solid #203639; border-left: 5px dashed #49645b; box-shadow: 3px 3px 0 #34635f; }
#p9-upc-guide .stub :is(strong, span) { display: block; }
#p9-upc-guide .stub-date { font-size: 1.18rem; line-height: 1.2; }
#p9-upc-guide .stub-time { font-size: 1rem; font-weight: 700; }
#p9-upc-guide .stub-round { font-size: .86rem; }
#p9-upc-guide .story { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.25rem), 1fr)); gap: 22px 16px; list-style: none; }
#p9-upc-guide .panel { min-width: 0; margin: 0; padding: 0; list-style: none; background: #fff; border: 2px solid #233b3b; border-radius: 3px; box-shadow: 3px 3px 0 #426c68; }
#p9-upc-guide .scene { position: relative; overflow: hidden; border-bottom: 2px solid #233b3b; background: #faf0d2; }
#p9-upc-guide .scene > .art { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin: 0; }
#p9-upc-guide .label { position: absolute; z-index: 1; inset: 0 auto auto 0; display: flex; align-items: center; gap: 6px; max-width: 99%; padding: 4px 8px; border: solid var(--ink); border-width: 0 2px 2px 0; background: #ffe477; color: #193737; font-size: clamp(1rem, 1.7vw, 1.2rem); letter-spacing: -.025em; line-height: 1.12; }
#p9-upc-guide .label .n { border-right: 1px solid currentColor; padding-right: 6px; font-size: .87em; }
#p9-upc-guide .panel-sign { position: absolute; display: flex; align-items: center; justify-content: center; background: linear-gradient(122deg, #f2bd6b, #ffd589 38%, #edb562 75%, #dba553); border-radius: 3px; }
#p9-upc-guide .panel-sign img { width: 90%; height: 96%; object-fit: contain; }
#p9-upc-guide .panel:nth-child(1) .panel-sign { left: 67.6%; top: 64.1%; width: 19.6%; height: 16%; }
#p9-upc-guide .panel:nth-child(5) .panel-sign { left: 70.8%; top: 22%; width: 21.3%; height: 17.8%; }
#p9-upc-guide figcaption { padding: 0 13px 16px; }
#p9-upc-guide .balloon { position: relative; width: fit-content; max-width: 100%; margin: -13px 0 10px; padding: 8px 11px; border: 2px solid var(--ink); border-radius: 14px 17px 16px 11px; box-shadow: 2px 2px 0 var(--ink); background: #fffcef; font-size: 1rem; font-weight: 700; line-height: 1.28; }
#p9-upc-guide .balloon::before { content: ""; position: absolute; top: -7px; left: 20px; width: 10px; height: 10px; border: solid var(--ink); border-width: 2px 0 0 2px; background: #fffcef; transform: rotate(45deg); }
#p9-upc-guide .panel:nth-child(even) .balloon { margin-left: auto; }
#p9-upc-guide .panel:nth-child(even) .balloon::before { left: auto; right: 20px; }
#p9-upc-guide .caption { font-size: 1rem; line-height: 1.5; }
#p9-upc-guide .ticketline { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
#p9-upc-guide .ticketline span { padding: 2px 5px; border: 1px solid var(--ink); background: #fff0a8; font-size: .75rem; font-weight: 700; }
#p9-upc-guide .ticketline .skip { background: #f2f3ef; border-style: dashed; }
#p9-upc-guide .sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#p9-upc-guide .comic-link { margin: 12px 0 0; font-size: .94rem; }
#p9-upc-guide .rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 22px 30px; padding: 30px 0 24px; }
#p9-upc-guide .rules h2 { margin-bottom: 12px; }
#p9-upc-guide .rules p + p, #p9-upc-guide .technical p { margin-top: 10px; }
#p9-upc-guide .score { width: 100%; border-collapse: collapse; margin: 0 0 12px; border: 0; color: var(--ink); }
#p9-upc-guide .score :is(th, td) { padding: 6px 4px; background: transparent; border: 0; border-bottom: 1px solid #bccfc7; text-align: left; line-height: 1.35; font-size: .98rem; }
#p9-upc-guide .score :is(th, td):last-child { text-align: right; font-weight: 700; }
#p9-upc-guide .score th { background: #e8f4ed; font-size: .9rem; }
#p9-upc-guide .future { padding: 16px 18px; background: #e5f3eb; border-left: 4px solid #668b78; }
#p9-upc-guide .future h2 { margin-bottom: 5px; font-size: 1.4rem; }
#p9-upc-guide .technical { margin: 18px 0 24px; }
#p9-upc-guide summary { cursor: pointer; font-weight: 700; }
#p9-upc-guide .replay { padding: clamp(15px, 3vw, 26px); background: #103e42; border-left: 6px solid #efac3e; color: #fff; }
#p9-upc-guide .replay h2 { color: #fff; }
#p9-upc-guide .replay p { margin: 9px 0; max-width: 72ch; }
#p9-upc-guide .action { display: inline-block; padding: 9px 16px; margin-top: 4px; border: 2px solid #122d2c; background: #ffe075; color: #193b3d; box-shadow: 2px 2px 0 #081c1e; font-weight: 700; text-decoration: none; }
#p9-upc-guide .action:hover { background: #ffebaa; }
#p9-upc-guide .inline-verifier { margin: 15px 0 0; }
#p9-upc-guide .inline-verifier iframe { display: block; width: 100%; max-width: 100%; height: min(75vh, 720px); min-height: 360px; margin: 12px 0 0; background: #fffaf0; border: 0; }
@media (max-width: 600px) {
  #p9-upc-guide .story { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #p9-upc-guide .hero { padding: 15px 0 18px; }
  #p9-upc-guide .stub { padding: 6px 12px; }
  #p9-upc-guide .brand-logo { width: 32px; height: 25px; }
  #p9-upc-guide .label { font-size: 1.05rem; }
  #p9-upc-guide .replay { padding: 16px 12px; border-left-width: 4px; }
}
@media print {
  #p9-upc-guide .panel { break-inside: avoid; }
  #p9-upc-guide .inline-verifier, #p9-upc-guide .quick-links { display: none; }
}
