/* A native-feeling comic ticket and a shareable result keepsake. */
dialog.gh-keepsake{width:calc(100% - 24px);max-width:420px;max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px));margin:auto auto max(12px,env(safe-area-inset-bottom,0px));padding:9px 14px 14px;border:2px solid #10100e;border-radius:22px 22px 16px 16px;background:#f3ecd4;color:#10100e;box-shadow:4px 5px 0 #10100e;overflow:auto;font:500 14px/1.35 'DM Sans',sans-serif;animation:gh-ticket-in .28s ease both}
.gh-keepsake::backdrop{background:#10171099}
.gh-keepsake *{box-sizing:border-box}
.gh-keepsake .gh-sheet-handle{height:4px;width:38px;border-radius:4px;background:#10100e55;margin:0 auto 4px}
.gh-sheet-header{position:sticky;top:0;z-index:3;background:#f3ecd4;display:flex;align-items:center;justify-content:space-between;gap:10px}
.gh-sheet-header>span{font:400 14px/1 'KK Head',sans-serif;letter-spacing:.5px}
.gh-sheet-header>button{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1.5px solid #10100e;border-radius:11px;background:#fff8e5;color:#10100e;font:400 32px/1 'DM Sans',sans-serif;box-shadow:1px 2px 0 #10100e}
.gh-keepsake>h2{font:400 31px/1 'KK Head',sans-serif!important;margin:3px 0 15px!important;color:#10100e!important;letter-spacing:0!important}
.gh-ticket{background:#fff8e5;border:2px solid #10100e;border-radius:15px;overflow:hidden;box-shadow:2px 3px 0 #10100e;margin-bottom:14px}
.gh-ticket-top{position:relative;background:#252d29;color:#fff8e5;padding:14px 14px 17px;display:grid;grid-template-columns:1fr auto;gap:13px 8px}
.gh-ticket-mode{font:400 18px/1 'KK Head',sans-serif;color:#ffda32}
.gh-ticket-seat{align-self:center;font-size:10px;font-weight:800;white-space:nowrap}
.gh-ticket-person{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-width:0}
.gh-pass-avatar{display:block;width:42px;height:42px;flex:none}
.gh-pass-avatar>.kk-avatar{width:100%;height:100%}
.gh-ticket-person>strong{font:400 30px/1 'KK Head',sans-serif;overflow-wrap:anywhere}
.gh-ticket-total{grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.gh-ticket-total>b{font:400 38px/1 'KK Head',sans-serif;color:#ffda32;white-space:nowrap}
.gh-ticket-total>span{font-size:10px;color:#fff8e5c0;max-width:80px;text-align:right}
.gh-ticket-tear{position:relative;height:0;border-top:2px dashed #10100e55}
.gh-ticket-tear::before,.gh-ticket-tear::after{content:'';position:absolute;width:20px;height:20px;top:-11px;border:2px solid #10100e;border-radius:50%;background:#f3ecd4;z-index:1}
.gh-ticket-tear::before{left:-12px}.gh-ticket-tear::after{right:-12px}
.gh-ticket-stops{list-style:none;padding:6px 13px 0;margin:0}
.gh-ticket-stops>li{position:relative;border-bottom:1px solid #10100e20}
.gh-ticket-stops>li:last-child{border:0}
.gh-ticket-stops summary{list-style:none;display:grid;grid-template-columns:25px minmax(0,1fr) auto 10px;align-items:center;gap:8px;min-height:50px;padding:9px 0;cursor:pointer}
.gh-ticket-stops summary::-webkit-details-marker{display:none}
.gh-stop-number{display:grid;place-items:center;width:25px;height:25px;background:#ffda32;border:1.3px solid #10100e;border-radius:50%;font:400 18px/1 'KK Head',sans-serif}
.gh-ticket-stops summary>b{font-size:13px;line-height:1.2;overflow-wrap:anywhere}
.gh-stop-distance{font-size:11px;font-weight:800;white-space:nowrap;padding:4px 5px;border:1px solid #10100e40;border-radius:6px;background:#f3ecd4}
.gh-stop-distance.is-close{background:#e2efd8;border-color:#10100e}
.gh-stop-chevron{display:block;width:10px;height:14px}.gh-stop-chevron>svg{width:100%;height:100%}.gh-ticket-stops details[open] .gh-stop-chevron{transform:rotate(90deg)}
.gh-stop-detail{margin:0 0 11px 33px;padding:0 0 0 8px;border-left:2px solid #b5dcf2}
.gh-stop-year{color:#625e50;font-weight:800;font-size:11px}
.gh-stop-detail p{font-size:12px;line-height:1.4;margin:3px 0;color:#10100e}
.gh-stop-detail small{display:block;font-size:11px;line-height:1.4;color:#625e50}
.gh-ticket-footer{padding:11px 14px 13px;text-align:center;border-top:1.5px dashed #10100e50}
.gh-ticket-footer>span{display:block;font:400 14px/1 'KK Head',sans-serif;margin-bottom:4px}
.gh-ticket-footer>b{display:block;font-size:12px}
.gh-ticket-barcode{height:15px;width:130px;margin:11px auto 0;background:repeating-linear-gradient(90deg,#10100e 0 2px,transparent 2px 5px,#10100e 5px 6px,transparent 6px 8px,#10100e 8px 12px,transparent 12px 15px);opacity:.8}
.gh-keepsake :is(.gh-keep-primary,.gh-keep-secondary){display:block;width:100%;min-height:46px;padding:10px;border:1.5px solid #10100e;border-radius:11px;color:#10100e;font:400 23px/1 'KK Head',sans-serif;cursor:pointer;touch-action:manipulation}
.gh-keepsake .gh-keep-primary{background:#ffda32;box-shadow:2px 3px 0 #10100e}
.gh-keepsake .gh-keep-secondary{background:#fff8e5}
.gh-keepsake button:disabled{opacity:.5;cursor:wait}
.gh-keepsake button:focus-visible,.gh-keepsake summary:focus-visible{outline:3px solid #1675bf;outline-offset:2px}
.gh-keepsake [hidden]{display:none!important}
.gh-share-preview{display:grid;place-items:center;min-height:180px;border:1px solid #10100e;border-radius:12px;overflow:hidden;background:#fff8e5;text-align:center}
.gh-share-preview>img{display:block;max-height:calc(100dvh - 265px);width:100%;height:auto;object-fit:contain;background:#f3ecd4}
.gh-share-status{font-size:12px;line-height:1.35;margin:8px 0}
.gh-share-status:empty{margin:12px 0 0}
.gh-share-actions{display:grid;gap:8px;margin-top:12px}
@keyframes gh-ticket-in{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
@media(max-height:700px){dialog.gh-keepsake{padding:7px 11px 12px}.gh-keepsake>h2{font-size:27px!important;margin-bottom:10px!important}.gh-ticket-top{padding:11px 12px 14px;gap:9px}.gh-ticket-person>strong{font-size:27px}.gh-ticket-total>b{font-size:32px}.gh-ticket-stops summary{min-height:45px}.gh-ticket-footer{padding:9px 12px}.gh-pass-avatar{width:34px;height:34px}}
@media(prefers-reduced-motion:reduce){dialog.gh-keepsake{animation:none}}
