* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body-font), system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--primary); }
h1, h2 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: 20px; }
.notice { background: rgba(0,0,0,.78); color: #fff; font-size: 13px; text-align: center; padding: 8px 16px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 120px; display: grid; gap: 16px; }
.wrap.narrow { max-width: 560px; }
.card { background: var(--surface); border-radius: 22px; padding: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.06); }
.hero { text-align: center; padding: 18px 0 4px; }
.logo { max-height: 64px; margin-bottom: 8px; }
.org { margin: 0 0 6px; font-weight: 700; opacity: .75; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font: 400 clamp(40px, 9vw, 72px)/1.05 var(--title-font), cursive; color: var(--primary); margin-bottom: 10px; }
.decor { font-size: .7em; }
.sub { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.highlight { display: inline-block; background: var(--primary); color: #fff; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin: 6px 0 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.facts div { background: var(--surface); border-radius: 16px; padding: 12px; display: grid; }
.facts small { opacity: .7; font-size: 12px; }
.facts b { font-size: 16px; }
.countdown { margin-top: 14px; font-weight: 700; display: flex; justify-content: center; gap: 8px; }
.countdown span { background: var(--surface); border-radius: 12px; padding: 8px 10px; min-width: 62px; display: grid; font-size: 22px; }
.countdown span small { font-size: 11px; font-weight: 500; opacity: .7; }
.countdown.small span { font-size: 18px; min-width: 54px; }
.prize { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.prize + .prize { border-top: 1px solid rgba(0,0,0,.06); }
.prize img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; }
.prize p { margin: 4px 0 0; font-size: 14px; opacity: .85; }
.pos { color: var(--primary); font-weight: 800; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.board-head p { margin: 0; }
.legend { display: flex; gap: 14px; font-size: 13px; margin: 4px 0 14px; flex-wrap: wrap; opacity: .85; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; border: 1px solid rgba(0,0,0,.12); }
.lg.free { background: var(--free); } .lg.held { background: repeating-linear-gradient(45deg, var(--sold), var(--sold) 3px, var(--free) 3px, var(--free) 6px); } .lg.sold { background: var(--sold); }
.board { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 6px; }
.cell { position: relative; aspect-ratio: 1; border: 1.5px solid color-mix(in srgb, var(--primary) 35%, transparent); background: var(--free); color: var(--text);
  font: 700 clamp(11px, 3.4vw, 17px)/1 var(--body-font), sans-serif; cursor: pointer; padding: 0; border-radius: 6px; transition: transform .12s ease, background .2s ease; }
.shape-rounded .cell { border-radius: 30%; }
.shape-circle .cell { border-radius: 50%; }
.cell:not(:disabled):hover { transform: scale(1.06); }
.cell:active:not(:disabled) { transform: scale(.94); }
.cell.sel { background: var(--primary); color: #fff; border-color: var(--primary); }
.cell.sold, .cell.held { cursor: not-allowed; background: var(--sold); }
.cell.sold span, .cell.held span { opacity: .3; }
.cell.held { background: repeating-linear-gradient(45deg, var(--sold), var(--sold) 4px, var(--free) 4px, var(--free) 8px); }
.cell.sold::after { content: attr(data-m); position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(14px, 4.4vw, 24px); }
.cell.flash { animation: flash .6s ease; }
@keyframes flash { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
.closed { margin: 14px 0 0; text-align: center; font-weight: 700; }
.info ul { padding-left: 18px; display: grid; gap: 6px; margin: 0 0 12px; }
.pms { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.pms span { background: var(--bg); padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.staff { padding-left: 18px; margin: 0; }
.contact p { margin: 0 0 10px; }
.wa, .btn-share { display: inline-block; background: #25d366; color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.links { font-size: 14px; }
.powered { text-align: center; font-size: 13px; opacity: .6; }
.winners .win { display: flex; gap: 14px; align-items: center; padding: 8px 0; }
.num { display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 8px; border-radius: 14px; background: var(--primary); color: #fff; font: 800 22px var(--body-font), sans-serif; }
.cart { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 10; }
.cart-in { max-width: 728px; margin: 0 auto; background: var(--text); color: var(--bg); border-radius: 18px; padding: 12px 12px 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25);
  animation: up .25s cubic-bezier(.2,.9,.3,1); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.cart-in div { display: grid; }
.cart-in small { opacity: .8; }
.btn { background: var(--primary); color: #fff; border: 0; border-radius: 12px; padding: 12px 18px; font: 700 16px var(--body-font), sans-serif; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid rgba(0,0,0,.15); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; }
dialog { border: 0; padding: 0; border-radius: 22px; width: min(480px, calc(100vw - 24px)); background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,.45); }
.sheet { padding: 22px; display: grid; gap: 12px; }
.sheet label, .form-pay label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.sheet .check { display: flex; gap: 10px; font-weight: 500; align-items: flex-start; }
input, select { width: 100%; font: 16px var(--body-font), sans-serif; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,.18); background: #fff; color: #111; }
input[type=checkbox] { width: auto; margin-top: 3px; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.error { color: #c3243b; font-weight: 600; margin: 0; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; }
.muted { opacity: .75; }
.small { font-size: 14px; }
.back { margin: 0; }
.h-order { font: 400 34px/1.1 var(--title-font), cursive; color: var(--primary); }
.status { font-weight: 600; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.st-paid { background: #e5f6ec; color: #13804b; }
.st-rejected, .st-expired { background: #fdecef; color: #c3243b; }
.mynums { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pm { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.06); display: grid; gap: 4px; }
.acct { display: flex; gap: 8px; align-items: center; }
.acct code { font-size: 18px; font-weight: 700; }
.copy { background: var(--bg); border: 0; border-radius: 8px; padding: 6px 10px; font-weight: 700; cursor: pointer; color: var(--text); }
.form-pay { display: grid; gap: 12px; }
.tix { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tix li { display: flex; align-items: center; gap: 12px; }
.ticket { text-align: center; }
.big-num { font: 800 96px/1 var(--body-font), sans-serif; color: var(--primary); margin: 6px 0; }
.valid { color: #13804b; font-weight: 700; }
.won { font-size: 20px; font-weight: 800; }
.ticket dl { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 4px 12px; text-align: left; }
.ticket dt { opacity: .7; }
.ticket dd { margin: 0; font-weight: 600; }
.qr svg { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 6px; }
.policy p { white-space: normal; }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .facts b { font-size: 14px; }
  .board { gap: 4px; }
  .card { padding: 16px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
