:root {
  color-scheme: light;
  --wine: #491f29;
  --red: #792c41;
  --ink: #292523;
  --muted: #645d57;
  --paper: #f7f4ef;
  --line: #e6dfd6;
  --green: #315748;
  font-family: "Inter", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 15px; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.topbar { background: var(--wine); color: #fff8f2; }
.top-inner { max-width: 1440px; padding: 15px 40px; margin: auto; display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; font-weight: 750; letter-spacing: .04em; }
.logo { border: 1px solid #e5ba89; border-radius: 8px; letter-spacing: .03em; color: #f9d9ab; font-size: 19px; padding: 8px; }
.brand small { display: block; margin-top: 2px; color: #edd8d4; font-size: 12px; font-weight: 500; }
.store { display: flex; align-items: center; gap: 10px; }
.store span { font-size: 14px; font-weight: 700; }
#account-role { color: #f4d49d; }
#store-name:empty { display: none; }
.store button { color: white; background: #64343d; border: 1px solid #a77c7c; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.store button:focus-visible { outline-color: #ffe4c3; }
main { max-width: 1440px; margin: auto; padding: 36px 40px 48px; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.035em; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 18px; margin: 0; }
p { line-height: 1.6; }
.intro p, .preview > p { color: var(--muted); margin: 0; }
.progress { width: 218px; flex-shrink: 0; }
.progress div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 6px; }
.progress strong { color: var(--green); font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: 8px; border: 0; appearance: none; border-radius: 8px; background: #e8e0d6; overflow: hidden; }
progress::-webkit-progress-bar { background: #e8e0d6; }
progress::-webkit-progress-value { background: var(--green); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--green); }
.demo { font-size: 13px; color: #684632; margin: 22px 0 16px; }
.workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr) 272px; gap: 18px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: #fffdfa; min-width: 0; }
.login { max-width: 440px; margin: 24px auto; padding: clamp(18px, 4vw, 32px); }
.login h1 { font-size: 30px; }
.login-copy, #demo-accounts p { color: var(--muted); margin: 0; }
.login-submit { width: 100%; margin-top: 12px; border: 0; border-radius: 8px; background: var(--red); color: #fff; min-height: 44px; font-weight: 700; }
.login-submit:hover { background: var(--wine); }
#demo-accounts { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--red); }
#demo-accounts summary { cursor: pointer; font-weight: 700; }
#demo-accounts p { margin-top: 9px; font-size: 13px; }
#account-list { list-style: none; margin: 10px 0 0; padding: 0; }
.account { width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; text-align: left; margin-bottom: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: #fffdfa; color: var(--ink); font-size: 13px; }
.account:hover { background: #f9edf0; }
.store-table { width: 100%; border-collapse: collapse; }
.store-table th, .store-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.store-table thead th { color: var(--muted); font-size: 13px; }
.store-table tbody th { font-weight: 650; }
.store-table tr:last-child td, .store-table tbody tr:last-child th { border-bottom: 0; }
.store-table td:last-child { text-align: right; }
.store-table thead th:last-child { text-align: right; }
.store-progress-value { display: block; margin-bottom: 5px; color: var(--green); white-space: nowrap; font-size: 13px; font-weight: 700; }
.store-table progress { max-width: 240px; }
.store-open, .back-link { min-height: 38px; padding: 6px 10px; border: 1px solid #dcc1c8; border-radius: 8px; background: #f9edf0; color: #651f35; font-weight: 700; white-space: nowrap; }
.store-open:hover, .back-link:hover { background: #efdce1; }
.back-link { margin-bottom: 16px; }
.store-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; border-bottom: 1px solid var(--line); margin-bottom: 23px; }
.store-nav button { min-height: 44px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); padding: 8px 12px; font-weight: 700; }
.store-nav button[aria-pressed="true"] { color: var(--red); border-bottom-color: var(--red); }
.meal-select { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.meal-select select { padding: 8px 12px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fffdfa; }
.prize-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.prize-card { margin: 0; padding: 10px 17px 16px; }
.prize-card legend { padding: 0 5px; font-size: 17px; font-weight: 750; }
.prize-qualification { color: var(--green); font-size: 13px; margin: 1px 0 14px; }
.prize-field { display: block; margin: 12px 0 0; font-weight: 650; font-size: 14px; }
.prize-card input { display: block; width: 100%; background: white; border: 1px solid #d8cfc4; border-radius: 8px; padding: 9px 10px; min-height: 44px; margin-top: 6px; color: var(--ink); }
.prize-footer { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; }
#prize-save-status { color: var(--muted); font-size: 13px; }
@media (max-width: 730px) {
  .prize-grid { grid-template-columns: minmax(0, 1fr); }
}
.roster { padding: 18px 12px 14px; }
.roster h2, #empty { padding: 0 7px; }
.filter { padding: 12px 5px 8px; }
.filter select { width: 100%; border: 1px solid var(--line); background: #fffdfa; color: var(--ink); border-radius: 8px; padding: 7px; }
#figures { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 3px; margin: 0; }
.figure { width: 100%; display: grid; align-content: center; gap: 2px; padding: 4px 5px; min-height: 44px; text-align: left; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); }
.figure:hover { background: #f6f0ea; }
.figure[aria-current="true"] { background: #f6e9eb; border-color: #e7cbd2; color: #601f33; }
.id { font-size: 13px; font-weight: 750; }
.status { font-size: 12px; color: var(--muted); }
.status.done { color: var(--green); }
.editor { padding: 23px; }
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.editor-head h2 { font-size: 25px; margin-bottom: 2px; }
.type, .audience { background: #eee9e2; color: #554941; border-radius: 6px; padding: 3px 7px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.type.gold { color: #704c13; background: #fae9be; }
.field { margin: 19px 0; }
.field label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 7px; font-weight: 700; }
.audience.guest { color: #234637; background: #e3efe7; }
.optional, .field small { color: var(--muted); font-size: 12px; font-weight: 500; }
.field small { display: block; margin-top: 6px; line-height: 1.55; }
.field input, textarea { width: 100%; border: 1px solid #d8cfc4; background: #fff; color: var(--ink); border-radius: 8px; padding: 11px 12px; min-height: 44px; }
textarea { resize: vertical; }
.assist { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.assist small { margin: 0; }
#suggest, .suggestion button { border: 1px solid #dcc1c8; border-radius: 8px; background: #f9edf0; color: #651f35; padding: 7px 11px; min-height: 37px; font-size: 13px; font-weight: 700; }
#suggest:hover, .suggestion button:hover { background: #efdce1; }
.suggestion-status { color: var(--muted); font-size: 13px; margin: 6px 0; }
.suggestion-status:empty { display: none; }
#suggestions { list-style: none; margin: 0 0 10px; padding: 0; }
.suggestion { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; margin-bottom: 6px; font-size: 13px; }
.suggestion p { margin: 2px 0 0; overflow-wrap: anywhere; }
.suggestion button { flex-shrink: 0; }
input::placeholder, textarea::placeholder { color: #746a62; }
.field .code { width: min(100%, 165px); letter-spacing: .12em; font-family: ui-monospace, monospace; text-transform: uppercase; }
.count { text-align: right; }
.error { color: #9a293a; margin: 5px 0 0; font-size: 13px; }
.editor-foot { border-top: 1px solid var(--line); padding-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#save-status { color: var(--muted); font-size: 13px; }
#save { flex-shrink: 0; border: 0; border-radius: 8px; background: var(--red); color: #fff; min-height: 44px; padding: 8px 18px; font-weight: 700; }
#save:hover { background: var(--wine); }
.preview { padding: 18px; }
.preview > p { font-size: 13px; margin: 7px 0 15px; }
.preview-screen { background: #244136; color: #fffaf1; border-radius: 12px; padding: 17px 14px; }
.preview-type { font-size: 12px; font-weight: 700; color: #f6d5a5; letter-spacing: .055em; }
.player-clue { min-height: 3.2em; margin: 9px 0 13px; font-weight: 650; overflow-wrap: anywhere; white-space: pre-wrap; }
.player-answer { padding: 9px 11px; border: 1px solid #829b87; border-radius: 8px; background: #365249; color: #e1e9df; font-size: 13px; }
.player-label { margin-top: 7px; color: #e1ece1; font-size: 12px; }
.draw-link { display: inline-block; margin-bottom: 16px; color: var(--red); font-weight: 700; }
.draw-link + .draw-link { margin-left: 14px; }
.draw-page { max-width: 760px; }
.draw-intro, .draw-card { padding: 20px; }
.draw-intro > p { margin: 0 0 14px; }
.play-site { min-height: 100vh; background: #122a20; }
.play-site .draw-page { max-width: 940px; padding-top: clamp(16px, 3.4vw, 36px); }
.play-site .topbar { background: #0b2119; border-bottom: 1px solid #4a5741; }
.play-site .top-inner { max-width: 940px; }
.design-preview { margin: 0 0 14px; padding: 11px 13px; background: #1c3529; color: #f7ecd7; border: 1px solid #53634c; border-radius: 12px; }
.preview-caption { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; margin-bottom: 7px; }
.preview-caption span { color: #ded2ba; font-size: 12px; }
.preview-options { display: flex; flex-wrap: wrap; gap: 4px; }
.preview-options + .preview-options { margin-top: 5px; }
.preview-options a { color: #fff0cf; text-decoration: none; border: 1px solid #657560; border-radius: 7px; padding: 5px 8px; font-size: 13px; }
.preview-options a:hover, .preview-options a[aria-current="page"] { color: #38281c; background: #f3d59d; border-color: #f3d59d; }
.preview-options a:focus-visible { outline: 2px solid #f3d59d; outline-offset: 2px; }
.game-entry { padding: 0; overflow: hidden; background: #fff9ef; border-color: #b9986c; border-radius: 22px; }
.entry-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 310px;
  padding: clamp(22px, 6vw, 54px);
  background: linear-gradient(90deg, #101f16 1%, rgba(15, 29, 20, .86) 34%, rgba(19, 26, 17, .16) 70%, transparent),
    url("play/assets/christmas-hide-and-seek.jpg") 64% 51% / cover, #15291e;
  color: #fffaf1;
  border-bottom: 2px solid #b59457;
}
.entry-heading h1 {
  margin-bottom: 12px;
  font-family: "Songti TC", "Noto Serif TC", "PingFang TC", serif;
  font-size: clamp(37px, 7vw, 70px);
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.06;
}
.entry-heading h1 span { color: #f7cd8e; }
.entry-heading p { color: #fff6e3; margin: 0; max-width: 27em; line-height: 1.55; }
.entry-heading p + p { margin-top: 11px; }
.entry-heading p strong { font-size: 17px; }
.entry-rules, .entry-form { padding: 23px clamp(17px, 5vw, 31px); }
.entry-rules h2 { color: #223c2d; font-size: 23px; }
.entry-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 13px 0; list-style: none; counter-reset: entry-step; }
.entry-steps li { display: flex; align-items: flex-start; gap: 9px; background: #fffcf5; border: 1px solid #e8dac6; border-radius: 10px; padding: 10px; counter-increment: entry-step; }
.entry-steps li::before { content: counter(entry-step); display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; color: #fff7ed; background: #82303e; font-size: 12px; font-weight: 750; }
.entry-steps h3, .entry-bonus h3 { color: #382524; font-size: 15px; margin: 0; }
.entry-steps p, .entry-bonus p { margin: 3px 0 0; font-size: 14px; line-height: 1.46; color: #51443a; }
.entry-bonus { display: flex; align-items: flex-start; gap: 11px; background: #f8eac9; border: 1px solid #dfc28b; border-radius: 10px; padding: 11px 13px; }
.entry-bonus-icon { color: #885219; font-size: 21px; line-height: 1; }
.entry-bonus h3 { color: #70431d; }
.entry-note, #challenge-help, #challenge-case-help { color: #62574a; font-size: 13px; }
.entry-note { margin: 10px 0 0; }
.entry-form p { margin: 5px 0; }
.entry-form { border-top: 1px solid #e4d0b4; background: #f7ead7; }
.entry-form label { font-weight: 750; }
.entry-form input { display: block; width: 100%; margin-top: 8px; min-height: 48px; padding: 9px 12px; border: 1px solid #cdbfa9; border-radius: 8px; background: white; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.start-button, .finish-button { margin-top: 14px; width: 100%; }
.play-site .draw-button { background: #843040; }
.play-site .draw-button:hover { background: #6a2231; }
.play-site .start-button { min-height: 49px; font-size: 16px; }
.start-icon { display: inline-block; margin-right: 5px; font-size: 13px; }
@media (max-width: 600px) {
  .entry-heading {
    min-height: 241px;
    background-image: linear-gradient(90deg, #101f16 0%, rgba(17, 28, 19, .84) 43%, rgba(18, 22, 16, .23)), url("play/assets/christmas-hide-and-seek.jpg");
  }
  .entry-heading p { max-width: 20em; font-size: 14px; }
  .entry-rules, .entry-form { padding-top: 17px; padding-bottom: 17px; }
  .entry-steps { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .entry-steps li { padding: 8px 9px; }
}
.game-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  padding: clamp(13px, 3vw, 23px);
  color: #fffaf1;
  border-color: #9a7c51;
  border-radius: 16px;
  background: linear-gradient(90deg, #193324 22%, rgba(21, 39, 28, .86) 58%, rgba(24, 30, 20, .50)),
    url("play/assets/christmas-hide-and-seek.jpg") 72% 42% / cover, #193324;
}
.game-heading h1, .result-hero h2 { font-family: "Songti TC", "Noto Serif TC", "PingFang TC", serif; font-weight: 800; }
.game-heading h1 { font-size: clamp(23px, 5.4vw, 37px); margin-bottom: 5px; color: #ffe5b8; }
.game-heading p { color: #eef3e8; margin: 0; font-size: 13px; }
.game-countdown { flex-shrink: 0; min-width: 76px; padding: 6px 8px; border: 1px solid #c6a673; border-radius: 10px; text-align: center; color: #ffe8bd; background: #101f17; font-size: 12px; }
.game-countdown .timer { display: block; color: #fff4dc; font-size: clamp(24px, 5vw, 32px); line-height: 1.2; }
.time-short .game-countdown { background: #6a2634; border-color: #edb0a8; }
.clue-heading { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: #fff1d8; margin: 19px 0 9px; }
.clue-heading h2 { font-size: 20px; }
.clue-progress { display: flex; gap: 8px; align-items: center; white-space: nowrap; font-size: 13px; }
.clue-progress progress { width: clamp(44px, 15vw, 112px); height: 6px; background: #3f5748; }
.clue-progress progress::-webkit-progress-bar { background: #3f5748; }
.clue-progress progress::-webkit-progress-value { background: #f1ce91; }
.clue-progress progress::-moz-progress-bar { background: #f1ce91; }
.trial-challenges { margin-top: 16px; }
#trial-challenge-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; list-style: none; padding: 0; margin: 0; }
#trial-challenge-list li { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 8px; border-radius: 6px; background: var(--paper); font-size: 13px; }
.draw-button { border: 0; border-radius: 8px; background: var(--red); color: white; min-height: 44px; padding: 8px 18px; font-weight: 700; }
.draw-button:hover { background: var(--wine); }
.draw-status { margin-left: 9px; color: var(--muted); }
.play-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.timer { font-variant-numeric: tabular-nums; color: var(--red); font-weight: 750; }
#ordinary-form { margin-bottom: 18px; }
.final-result { overflow: hidden; border-radius: 20px; background: #fff8eb; border-color: #b89764; --result-tint: #1a3527; --result-title: #f8daa3; }
.final-result[data-result="basic"] { --result-tint: #622830; --result-title: #ffe2b0; }
.final-result[data-result="full"] { --result-tint: #31492b; --result-title: #ffe1a6; }
.final-result[data-result="gold"] { --result-tint: #624215; --result-title: #ffe3a7; border-color: #deb76f; }
.final-result[data-result="redeemed"] { --result-tint: #244835; --result-title: #eff6e7; }
.final-result[data-result="timeout"] { --result-tint: #4b2b27; --result-title: #ffe6ca; }
.result-hero {
  padding: clamp(22px, 6vw, 49px) clamp(16px, 5vw, 37px);
  border-bottom: 2px solid #bd9e6b;
  background: linear-gradient(90deg, var(--result-tint) 12%, color-mix(in srgb, var(--result-tint), transparent 14%) 55%, rgba(24, 25, 15, .32)),
    url("play/assets/christmas-hide-and-seek.jpg") 68% 48% / cover, var(--result-tint);
  color: #fff6e6;
}
.result-caption { font-size: 13px; font-weight: 700; letter-spacing: .065em; margin: 0 0 7px; }
.result-hero h2 { color: var(--result-title); font-size: clamp(30px, 7vw, 55px); line-height: 1.14; }
#final-score { display: inline-block; margin: 13px 0 0; padding: 5px 9px; border: 1px solid #cfb17b; border-radius: 7px; background: #211e16; color: #fff2d5; font-size: 14px; font-weight: 650; }
.result-body { padding: 17px clamp(15px, 5vw, 34px) 21px; }
.result-body > p { color: #51443a; margin: 0 0 10px; }
.result-body > button { min-height: 44px; }
.prize-ticket { margin: 0 0 14px; background: #fffdf7; border: 1px solid #d7bf9b; border-radius: 12px; overflow: hidden; }
.ticket-items { padding: 14px 15px 8px; }
.ticket-items h3 { margin: 0; color: #553020; font-size: 19px; }
.ticket-items .award-items { margin: 8px 0; }
.ticket-items .award-items li { border-color: #e9dbc4; background: #fff7e8; }
.ticket-items .award-items strong { color: #713b35; font-size: 13px; }
.coupon-box { display: grid; gap: 5px; background: #e8f0e9; color: var(--green); padding: 12px; border-radius: 8px; margin-bottom: 16px; overflow-wrap: anywhere; }
.coupon-box code { font-size: 26px; font-weight: 750; letter-spacing: .09em; }
.prize-ticket .coupon-box { margin: 0; padding: 12px 15px; border-top: 1px dashed #9d8e6d; border-radius: 0; background: #e9efe3; color: #274231; }
.prize-ticket .coupon-box span { font-size: 13px; }
.prize-ticket #coupon-redeemed { font-weight: 750; font-size: 14px; }
.redeem-panel { max-width: 640px; padding: 20px; }
.redeem-panel label { display: block; margin-bottom: 6px; font-weight: 700; }
.redeem-panel input { min-height: 44px; max-width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; text-transform: uppercase; }
#redeem-status { color: var(--ink); font-weight: 750; }
#redeem-status[data-state="success"] { color: var(--green); }
#redeem-status[data-state="error"] { color: #982b3a; }
#redeem-status:empty { display: none; }
.redeem-score { margin: 0 0 12px; padding: 7px 10px; border-radius: 7px; background: #f1ece3; color: #4c3930; font-size: 14px; font-weight: 650; }
.award-items { display: grid; list-style: none; margin: 12px 0; padding: 0; gap: 7px; }
.award-items li { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; overflow-wrap: anywhere; }
.award-items small { color: var(--muted); }
.cards-table { table-layout: fixed; }
.cards-table th:first-child { width: 65px; }
.cards-table th:last-child { width: 75px; }
.cards-table td { overflow-wrap: anywhere; }
.draw-clues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 14px; }
.draw-card h3 { color: var(--green); font-size: 14px; margin: 0; }
.draw-card p { margin: 8px 0 14px; overflow-wrap: anywhere; }
.draw-card label { display: block; font-size: 13px; margin-bottom: 5px; color: var(--muted); }
.draw-card input { width: 84px; min-height: 44px; padding: 8px; border: 1px solid #d8cfc4; border-radius: 7px; background: #fff; text-align: center; font-size: 16px; text-transform: uppercase; }
.question-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
  padding: 13px;
  background: #fff9ed;
  border-color: #c2a57d;
}
.question-card h3 { grid-column: 1 / -1; justify-self: start; padding: 3px 8px; background: #7d303e; color: #fff2dc; border-radius: 6px; letter-spacing: .03em; }
.question-card p { grid-column: 1 / -1; margin: 8px 0 10px; color: #2d2a23; font-size: 15px; }
.question-card label { margin: 0; align-self: center; font-weight: 650; }
.question-card input { border-color: #bda88d; }
.question-card.has-answer input { border-color: #64806a; background: #eef3e9; color: #243d2f; }
.draw-card.bonus { background: #fcf0d0; border-color: #dcba72; box-shadow: inset 0 0 0 3px #f4e2b6; }
.bonus h2 { color: #704c13; }
.bonus h2 span { color: #9b5c18; }
#bonus-help { display: block; color: var(--muted); margin-top: 6px; }
#bonus-status { margin-left: 0; }
#bonus-status:empty { display: none; }
.play-site #play-error { color: #ffe5ce; }
.play-site .finish-button { min-height: 48px; }
.play-site .finish-button:disabled { cursor: default; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) {
  main, .top-inner { padding-inline: 24px; }
  .workspace { grid-template-columns: 180px minmax(0, 1fr) 220px; gap: 12px; }
  .editor { padding: 18px; }
}
@media (max-width: 850px) {
  .workspace { grid-template-columns: 180px minmax(0, 1fr); }
  .roster { grid-row: span 2; }
  .preview { grid-column: 2; }
}
@media (max-width: 560px) {
  .draw-clues { grid-template-columns: minmax(0, 1fr); }
  .prize-intro .meal-select { margin-top: 12px; }
  main, .top-inner { padding-inline: 14px; }
  main { padding-top: 24px; }
  .top-inner { gap: 8px; }
  input, textarea { font-size: 16px; }
  .store { gap: 6px; }
  .store span { font-size: 13px; }
  .store { justify-content: flex-end; flex-wrap: wrap; }
  .store-table th, .store-table td { padding: 10px 8px; }
  .store-open { font-size: 13px; }
  .brand { font-size: 13px; gap: 7px; }
  .logo { font-size: 16px; }
  .intro { display: block; }
  .progress { width: 100%; margin-top: 16px; }
  .demo { margin: 14px 0 10px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .roster { grid-row: auto; }
  .preview { grid-column: auto; }
  #figures { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
}

.line-entry { display: grid; gap: 8px; }
.line-entry[hidden] { display: none; }
.line-sign-in {
  justify-self: start;
  min-height: 45px;
  padding: 10px 16px;
  border: 1px solid #087e43;
  border-radius: 8px;
  background: #087e43;
  color: white;
  font: inherit;
  font-weight: 750;
}
.line-sign-in:disabled { color: #29543a; background: #edf4e8; border-color: #b7cbb6; opacity: 1; }
#line-login-status { margin: 0; color: #5d594c; font-size: 13px; }
.store-selection { display: grid; gap: 6px; margin-top: 6px; }
.store-selection select {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #cdbfa9;
  border-radius: 8px;
  background: #fffdf7;
  color: #2d2a23;
  font: inherit;
}
.dish-choices {
  grid-column: 1 / -1;
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 7px;
}
.dish-choices .dish-choice {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 7px 10px;
  border: 1px solid #dacbb6;
  border-radius: 8px;
  background: #fffdf7;
  color: #2d2a23;
  font-weight: 550;
  cursor: pointer;
}
.dish-choices .dish-choice:has(:checked) { border-color: #56765d; background: #edf3e8; color: #203e30; }
.dish-choices .dish-choice:has(:focus-visible) { outline: 2px solid #386046; outline-offset: 2px; }
.dish-choices .dish-choice input {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: #365e43;
}
.dish-choice-letter { color: #785739; font-size: 12px; font-weight: 750; }

.account-history { padding: 16px clamp(17px, 5vw, 31px); border-top: 1px solid #e4d0b4; background: #fff9ef; }
.account-history summary { color: #77303d; font-weight: 750; cursor: pointer; }
.account-history h2 { margin: 14px 0 4px; font-size: 16px; color: #223c2d; }
.account-history ul { margin: 0 0 8px; padding-left: 1.2em; color: #4a4034; }
.account-history li + li { margin-top: 6px; }
#redemption-receipt { margin: 12px 0; }

.wallet-show-code { display: block; margin-top: 5px; }
#wallet-voucher-dialog {
  width: min(calc(100% - 28px), 420px);
  max-height: calc(100% - 28px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #c3a277;
  border-radius: 16px;
  background: #fff9ef;
  color: #332b24;
}
#wallet-voucher-dialog::backdrop { background: #111b14b3; }
#wallet-voucher-dialog h2 { margin: 0 0 12px; }
#wallet-voucher-dialog form { margin-top: 14px; }
#wallet-voucher-status:empty { display: none; }
#wallet-voucher-dialog .coupon-box { text-align: center; }
#wallet-voucher-dialog .coupon-box code { font-size: 42px; }
#result-wallet { margin-right: 5px; }

.preview-screen.question-card { background: #fffdf8; color: var(--ink); }

/* Headquarters staff and audit administration. */
.table-scroll { overflow-x: auto; margin-block: 18px; }
.management-form { max-width: 720px; margin-block: 22px; padding: 26px; }
.management-form select, .management-filters select { min-height: 44px; padding: 10px; border: 1px solid var(--line, #dfd8cf); border-radius: 9px; background: white; font: inherit; max-width: 100%; }
.management-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.management-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; padding: 22px; }
.management-filters label { display: block; margin-bottom: 6px; font-weight: 700; }
.management-filters input, .management-filters select { width: auto; max-width: 100%; }
#hq-admin td { vertical-align: top; }
#hq-admin td button { margin: 3px; white-space: nowrap; }
#hq-audit td { min-width: 140px; max-width: 400px; overflow-wrap: anywhere; }
#hq-audit details p { font-size: .9rem; margin-block: 10px; }
#staff-identity { font-size: .9rem; }
#hq-nav { overflow-x: auto; }
#hq-nav button { white-space: nowrap; }
#hq-admin button:not([data-hq-pane]) { min-height: 44px; padding: 8px 12px; border: 1px solid #dcc1c8; border-radius: 8px; background: #f9edf0; color: var(--red); font-weight: 700; }
#hq-admin button:not([data-hq-pane]):hover { background: #efdce1; }
#hq-admin button:disabled { opacity: .6; cursor: wait; }
#hq-admin .management-form button[type="submit"], #hq-admin #new-employee, #hq-admin #audit-filter-form button { background: var(--red); color: white; border-color: var(--red); }
.management-filters input { min-height: 44px; border: 1px solid #d8cfc4; border-radius: 8px; padding: 10px 12px; background: white; }
#hq-audit td:last-child { text-align: left; }
@media (max-width: 700px) { .management-form, .management-filters { padding: 18px; } #hq-nav { gap: 0; } .management-filters > div { width: 100%; } .management-filters select, .management-filters input { width: 100%; } }

.redemption-restaurant { margin-top: 20px; padding-top: 18px; border-top: 1px solid #decba5; }
.redemption-restaurant h3 { font-size: 14px; color: #775522; }
.redemption-restaurant p { margin: 8px 0; }
.redemption-restaurant .redemption-restaurant-name { font-size: 19px; font-weight: 800; }
.redemption-store-rule { margin: 14px 0; padding: 12px 14px; border: 1px solid #decba5; border-radius: 8px; color: #722e37; font-size: 14px; }
.redemption-store-rule h4 { margin: 0 0 6px; font-size: 14px; }
.redemption-store-rule ul { display: block; margin: 0; padding-inline-start: 1.2em; list-style: disc; line-height: 1.55; }
.redemption-store-rule li + li { margin-top: 4px; }
.redemption-restaurant .redemption-store-rule p { margin: 8px 0 0; font-weight: 700; }
.redemption-restaurant > a { color: #5b3026; }
.redemption-store-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.redemption-store-links a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.redemption-store-links a:first-child { color: #fff; background: #792c41; border-color: #792c41; }
#store-redemption-notice { color: #702a36; font-weight: 700; }
