:root {
  --y: #FFB800; --y2: #FFCB2E; --k: #111; --k2: #1E1E1E; --k3: #2C2C2C;
  --r: #D7261E; --r2: #8E140E; --w: #FFF8E6; --mute: rgba(255,248,230,.65); --ok: #7BD34B;
  --head: 'Anton', Impact, sans-serif;
  --body: 'Oswald', 'Kanit', system-ui, sans-serif;
  --thai: 'Kanit', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--y);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.03) 0 2px, transparent 2px 7px);
  color: var(--k); font-family: var(--body); font-size: 16px; line-height: 1.3; min-height: 100dvh;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
.th { font-family: var(--thai); font-weight: 400; }
.h { font-family: var(--head); text-transform: uppercase; line-height: 1; font-weight: 400; letter-spacing: .01em; }
.small { font-size: 14px; }
.center { text-align: center; }
.card { background: var(--k); color: var(--w); padding: 16px; position: relative; }
.card .h { color: var(--y); }
.btn {
  display: block; width: 100%; padding: 14px 16px 12px; font-family: var(--head); font-size: 24px; text-transform: uppercase;
  background: var(--r); color: var(--y); border-radius: 10px; box-shadow: 0 5px 0 var(--r2); text-align: center; text-decoration: none;
  transition: transform .06s, box-shadow .06s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--r2); }
.btn.alt { background: var(--k); color: var(--y); box-shadow: 0 5px 0 #000; }
.btn.light { background: var(--w); color: var(--k); box-shadow: 0 5px 0 #b59a5a; }
.btn.sm { font-size: 18px; padding: 10px 12px 8px; }
.btn small { display: block; font-family: var(--thai); font-size: 13px; text-transform: none; opacity: .85; margin-top: 2px; }
.btns { display: grid; gap: 12px; }
.btns.two { grid-template-columns: 1fr 1fr; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--y); width: 100%; max-width: 420px; max-height: 92dvh; overflow: auto; padding: 18px 16px; border-radius: 4px; }
.modal .h { font-size: 34px; }
.bubble { background: var(--w); border: 3px solid var(--k); border-radius: 14px; padding: 6px 10px 5px; font-weight: 600; font-size: 15px; line-height: 1.15; box-shadow: 3px 3px 0 var(--k); color: var(--k); }
.bubble .th { display: block; font-size: 13px; opacity: .8; margin-top: 2px; }
.reward-box { background: var(--w); border: 3px dashed var(--k); padding: 12px; text-align: center; margin: 12px 0; }
.reward-box .code { font-family: var(--head); font-size: 30px; letter-spacing: .08em; color: var(--r); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--k); color: var(--y); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 80; transition: transform .25s; max-width: 90vw; text-align: center; }
#toast.on { transform: translateX(-50%) translateY(0); }
#toast:not(.on) { visibility: hidden; transition: transform .25s, visibility 0s .25s; }
.proto { font-size: 13px; text-align: center; margin-top: 18px; opacity: .65; }
/* close button on every pop-up (added by PG.autoClose) */
.modal { position: relative; }
.xbtn { position: sticky; top: 0; float: right; margin: -6px -4px 4px 10px; width: 40px; height: 40px; border-radius: 12px; background: var(--k); color: var(--y); border: 2px solid rgba(255,184,0,.75); padding: 0; line-height: 0; display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: 0 2px 0 rgba(0,0,0,.4); }
.xbtn svg { display: block; }
.xbtn:active { transform: translateY(2px); box-shadow: none; }
