:root{color-scheme:dark;font:16px/1.5 system-ui,sans-serif;color:#eaf4fa;background:#07111b}*{box-sizing:border-box}body{margin:0}main{max-width:780px;margin:auto;padding:18px clamp(16px,4vw,38px) 40px}nav,.actions{display:flex;flex-wrap:wrap;gap:16px;align-items:center}nav{justify-content:space-between;border-bottom:1px solid #344852;padding:5px 0 16px}a{color:#86e9bf;text-underline-offset:3px}h1{font-size:clamp(2rem,7vw,3.2rem);line-height:1.08;letter-spacing:-.04em;margin:36px 0 24px}h2{font-size:1.35rem;margin:0 0 14px}section{margin:18px 0;padding:clamp(17px,4vw,28px);background:#11232e;border:1px solid #34505f;border-radius:14px}form{display:grid;gap:10px}button,input,textarea{font:inherit;color:inherit;border:1px solid #557280;border-radius:7px;padding:10px 12px}input,textarea{width:100%;background:#091921}textarea{resize:vertical}button{background:#82eac1;border-color:#82eac1;color:#082a21;cursor:pointer;justify-self:start;font-weight:700;min-height:44px}button.sub{background:transparent;border-color:#608080;color:#d1e4eb}button:disabled{opacity:.5;cursor:default}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #ffc46d;outline-offset:3px}label{font-weight:650}small,footer,dt{color:#b7cbd6}dt{font-size:.9rem}dd{margin:0 0 12px;overflow-wrap:anywhere}.mono,code{font-family:ui-monospace,monospace;overflow-wrap:anywhere}.price{font-size:1.9rem;font-weight:750}.notice,.alert{padding:.65em .85em;border-left:3px solid #d7b363;background:#1c2b30}.alert{border-color:#f39782}footer{margin-top:18px;font-size:.9rem}.record{border-top:1px solid #38505b;padding:9px 0}/* The two equal panels fold back-to-back. Only the reverse carries the secret. */
.ticket{max-width:150mm;margin:20px 0;color:#18362c}
.note-side{position:relative;display:flex;flex-direction:column;justify-content:space-between;aspect-ratio:15/7;min-height:165px;padding:clamp(10px,3vw,19px);border:3px double #436951;background:#f3f0df;overflow:hidden;isolation:isolate}
.note-front::before{content:"";position:absolute;z-index:-1;right:-6%;top:-106%;width:75%;height:310%;opacity:.55;transform:rotate(24deg);background:repeating-radial-gradient(ellipse at center,transparent 0 3px,#91a681 3.6px 4px,transparent 4.5px 8px)}
.note-back{border-top:1px dashed #546b54;background:#f8f5e8}.ticket header,.note-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px}
.ticket header{border-bottom:1px solid #8c9d83;padding-bottom:4px;font-size:.85rem}
.ticket .word{font-weight:750;letter-spacing:.08em;font-size:clamp(.64rem,2.5vw,.82rem)}
.ticket img{width:36px;height:36px;object-fit:contain}
.ticket p{margin:0}.ticket .note-name{font-size:clamp(15px,4vw,23px);font-family:Georgia,serif}
.ticket .face{font-size:clamp(28px,7vw,47px);line-height:1.13}
.ticket .code{display:block;font:700 clamp(10px,3.15vw,21px)/1.5 ui-monospace,monospace;letter-spacing:.025em;overflow-wrap:anywhere}
.note-bottom{border-top:1px solid #8c9d83;padding-top:4px;font-size:clamp(.6rem,2.4vw,.8rem)}
.ticket .claim-url{font-weight:650}.ticket .mono{font-size:inherit}
@media print{@page{size:A4;margin:13mm}body{background:white;color:black}main{max-width:none;padding:0}main>:not(.ticket){display:none!important}
.ticket{margin:0;width:150mm;max-width:none;print-color-adjust:exact;-webkit-print-color-adjust:exact;break-inside:avoid}
.note-side{height:70mm;min-height:0;aspect-ratio:auto;padding:5mm}.ticket .code{font-size:15pt}.ticket .face{font-size:34pt}.ticket .note-name{font-size:17pt}
.ticket .word{font-size:9pt}.note-bottom{font-size:8pt}}
