body { min-height: 100vh; }
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--ink); color: #FAF7F0; border-bottom: 4px solid var(--red); }
.top .brand img { display: block; height: 42px; width: auto; }
.top .shop { font-size: 18px; font-weight: 700; line-height: 1.2; }
.top .sub { font-size: 12px; color: #C9C2B4; display: flex; align-items: center; gap: 6px; }
.top .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.top .topbtn { background: var(--ink2); border-color: var(--ink2); }
main { max-width: 560px; margin: 0 auto; padding: 12px 16px 120px; display: flex; flex-direction: column; gap: 12px; }
.loading { display: flex; justify-content: center; padding: 60px 0; }
h1.title { margin: 4px 0 0; font-family: var(--disp); font-size: 24px; }
.sect { display: flex; flex-direction: column; gap: 6px; }
.sect > .lbl { font-size: 13px; font-weight: 700; color: var(--muted); }
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.pkgs button { min-height: 50px; border-radius: 6px; border: 1px solid var(--line2); background: #fff; font-family: var(--disp); font-size: 20px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.pkgs button small { font-family: var(--body); font-size: 11px; font-weight: 400; color: var(--muted); }
.pkgs button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.pkgs button[aria-pressed="true"] small { color: #FAD4D5; }
.party { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.party .p { display: flex; flex-direction: column; gap: 3px; justify-content: flex-end; }
.party .p span { font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.party .stepper button { width: 34px; }
.dates { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.dates button { flex: 0 0 auto; min-width: 64px; min-height: 48px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line2); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.dates button b { font-family: var(--disp); font-size: 15px; }
.dates button span { font-size: 11px; color: var(--muted); }
.dates button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dates button[aria-pressed="true"] span { color: #C9C2B4; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; max-height: 176px; overflow-y: auto; padding: 2px; }
.slots button { min-height: 50px; border-radius: 6px; border: 1px solid var(--line2); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.slots button b { font-family: var(--disp); font-size: 16px; font-weight: 600; }
.slots button span { font-size: 11px; font-weight: 700; color: var(--green); }
.slots button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.slots button[aria-pressed="true"] span { color: #fff; }
.slots button:disabled { background: #EDE9E1; border-color: #E2DDD2; color: var(--muted2); }
.slots button:disabled span { color: var(--danger); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.floor .tbl.ok { background: var(--green-bg); border: 2px solid var(--green); color: var(--green-dk); cursor: pointer; }
.floor .tbl.no { background: #E4DFD5; border-color: transparent; color: var(--muted); }
.floor .tbl.rule { background: #EFEBE3; border: 1.5px dashed #BDB5A6; color: var(--muted2); }
.floor .tbl.sel { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px #B9CDEB; cursor: pointer; }
.floor .tbl .n { font-size: 36px; }
.floor .tbl .s1 { font-size: 20px; font-weight: 700; }
.floor .tbl .s2 { font-size: 17px; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
.bar .in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar .t1 { font-family: var(--disp); font-size: 17px; font-weight: 600; line-height: 1.25; }
.bar .t2 { font-size: 12px; color: var(--muted); }
.sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.sum div { display: flex; flex-direction: column; line-height: 1.3; }
.sum span { font-size: 12px; color: var(--muted); }
.sum b { font-size: 15px; }
.otpbox { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.otpbox input { height: 50px; text-align: center; font-family: var(--disp); font-size: 22px; font-weight: 600; border-radius: 6px; border: 1.5px solid var(--line2); padding: 0; }
.otpbox input:focus { border-color: var(--ink); outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 8px; background: #fff; border: 1.5px solid var(--ink); font-size: 13px; line-height: 1.45; }
.consent input { width: 22px; height: 22px; flex: 0 0 auto; margin: 0; accent-color: var(--red); }
.ticketpage { background: var(--red); margin: -12px -16px -120px; padding: 18px 20px 40px; min-height: calc(100vh - 62px); display: flex; flex-direction: column; gap: 14px; color: #fff; }
.ticket { background: #fff; color: var(--ink); border-radius: 14px; overflow: hidden; }
.ticket .tophalf { padding: 16px 20px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ticket .code { font-family: var(--disp); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: 1px; }
.ticket .qr { width: 190px; height: 190px; padding: 8px; border: 1px solid #E2DDD2; border-radius: 10px; margin-top: 8px; }
.ticket .qr img { width: 100%; height: 100%; display: block; }
.ticket .cut { border-top: 2px dashed var(--line); margin: 0 16px; }
.ticket .sum { padding: 14px 20px 18px; }
.ticket .tables { font-family: var(--disp); font-size: 24px; color: var(--blue); }
.ticket .status { padding: 10px 20px; font-weight: 700; text-align: center; }
.ticketpage .btn.white { background: #fff; color: var(--red); border-color: #fff; font-weight: 700; }
.ticketpage .btn.outline { background: transparent; color: #fff; border-color: #F29A9D; }
.ticketpage .note { background: var(--red-dk); padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.bk { display: flex; flex-direction: column; gap: 10px; }
.bk .head { display: flex; align-items: center; justify-content: space-between; }
.bk .code { font-family: var(--disp); font-size: 26px; font-weight: 700; }
.policy { font-size: 13px; line-height: 1.6; white-space: pre-line; }
footer.foot { text-align: center; font-size: 12px; color: var(--muted); padding: 10px 0; }
@media print { .top, .bar, .noprint { display: none !important; } .ticketpage { background: #fff; color: #000; margin: 0; } }

.toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
