/*
 * HOUSIE STUDIO · GOLD CONSISTENCY + RESPONSIVE REFINEMENT (2026-11-04)
 * Final presentation layer, loaded AFTER black-gold.css. Replaces legacy
 * blue/purple/teal fragments for scheduled game, waiting actions, ticket finder,
 * inline admin shuffle, and improves desktop/tablet/phone rendering.
 * Does not alter game, booking, shuffle or winner rules.
 */
:root {
  --hs-gold:#c99430;
  --hs-gold-light:#ffe6a3;
  --hs-gold-dark:#8b611c;
  --hs-ink:#1e1811;
  --hs-ivory:#fffdf9;
  --hs-warm:#fff7e9;
  --hs-line:#e6d2a8;
  --hs-dark:#100d09;
  --hs-gold-button:linear-gradient(180deg,#fff0bb 0%,#eabe5e 42%,#c58f2d 100%);
}
html,body {max-width:100%;}
body,body[data-area] {overflow-x:clip!important;}
.shell,.customer-layout,.admin-layout,.royal-admin-content {min-width:0!important;}
.customer-layout > *, .admin-layout > *, .customer-top > *, .customer-call-board > *, .gold-showcase-column > *, .ticket-gallery > * {min-width:0!important;}
button,a,input,select,textarea {max-width:100%;}
button,[role="button"],.hs-role-link,.hs-nav-link {touch-action:manipulation;}
input,select,textarea {font-size:max(16px,1em);}

/* Scheduled start: black-gold event strip (eliminate lavender / sky-blue). */
body[data-area="customer"] .customer-schedule,
body[data-area="customer"] .customer-schedule.scheduled-time-due {
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;
  gap:16px!important;padding:18px 22px!important;margin:14px 16px!important;
  border-radius:14px!important;border:1px solid #c69745!important;
  border-left:5px solid #dbac4e!important;
  background:linear-gradient(105deg,#0d0c0a 0%,#241a0e 52%,#100e0b 100%)!important;
  background-image:linear-gradient(105deg,#0d0c0a 0%,#241a0e 52%,#100e0b 100%)!important;
  color:#faedd1!important;box-shadow:0 6px 18px #2c1c0e20!important;
}
body[data-area="customer"] .customer-schedule[hidden]{display:none!important;}
body[data-area="customer"] .customer-schedule-icon {
  display:grid!important;place-items:center!important;flex:0 0 52px!important;
  width:52px!important;height:52px!important;border-radius:14px!important;
  border:1px solid #ad7e30!important;background:#392a12!important;color:#fce0a0!important;
  font-size:30px!important;box-shadow:inset 0 1px 0 #fff3c630!important;
}
body[data-area="customer"] .customer-schedule-content {
  display:flex!important;flex:1 1 265px!important;flex-direction:column!important;
  min-width:0!important;gap:3px!important;
}
body[data-area="customer"] .customer-schedule-kicker {
  font-size:10px!important;letter-spacing:.13em!important;font-weight:850!important;color:#e9bd63!important;
}
body[data-area="customer"] .customer-schedule-content>strong {
  font:800 clamp(18px,2vw,25px)/1.27 Georgia,"Times New Roman",serif!important;
  letter-spacing:-.025em!important;color:#fff4d8!important;overflow-wrap:anywhere!important;
}
body[data-area="customer"] .customer-schedule-content>strong time,
body[data-area="customer"] .customer-schedule-content time {color:#f4cb72!important;white-space:normal!important;}
body[data-area="customer"] .customer-schedule-date {color:#f2dab2!important;font-size:12px!important;}
body[data-area="customer"] .customer-schedule-note {color:#bfae8d!important;font-size:11px!important;line-height:1.5!important;}
body[data-area="customer"] .customer-schedule-timer {
  display:flex!important;flex:0 0 auto!important;justify-content:center!important;align-items:center!important;
  min-width:156px!important;max-width:100%!important;margin-left:auto!important;
  padding:12px 17px!important;border-radius:11px!important;
  background:#fff8eb!important;border:1px solid #e9c783!important;box-shadow:0 3px 10px #0003!important;
}
body[data-area="customer"] .customer-schedule-timer span {color:#856121!important;font-size:10px!important;letter-spacing:.16em!important;}
body[data-area="customer"] .customer-schedule-timer strong {color:#281d0d!important;letter-spacing:.025em!important;
  font-size:clamp(22px,2.5vw,28px)!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important;}

/* Calm pre-game strip with matching black + gold icon. */
body[data-area="customer"] .call-board-waiting {
  display:flex!important;align-items:center!important;gap:14px!important;
  background:#fff8e9!important;border:1px solid #e0bf80!important;border-radius:13px!important;
  padding:17px 20px!important;color:#3a2c16!important;min-width:0!important;margin:14px 16px!important;
}
body[data-area="customer"] .call-board-waiting[hidden] {display:none!important;}
body[data-area="customer"] .call-board-waiting-icon {
  background:#16120c!important;border:1px solid #d3a753!important;color:#f9d788!important;border-radius:12px!important;
  flex:0 0 52px!important;width:52px!important;height:52px!important;display:grid!important;place-items:center!important;
}
body[data-area="customer"] .call-board-waiting-title,
body[data-area="customer"] .call-board-waiting strong {color:#342309!important;letter-spacing:.025em!important;}
body[data-area="customer"] .call-board-waiting-copy {min-width:0!important;flex:1!important;}
body[data-area="customer"] .call-board-waiting-copy p{color:#8b754f!important;line-height:1.5!important;}
body[data-area="customer"] .call-board-waiting-state{color:#8c671e!important;border:1px solid #d9bd86!important;white-space:nowrap!important;}

/* Waiting-period navigation: identical premium gold/white controls, no teal/purple. */
body[data-area="customer"] .customer-links.gold-waiting-actions {
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;margin:0!important;padding:13px 16px!important;
  background:#fffaf0!important;background-image:none!important;border:0!important;
  border-top:1px solid #e7d6b6!important;border-radius:0 0 13px 13px!important;
}
body[data-area="customer"] .customer-links.gold-waiting-actions[hidden]{display:none!important;}
body[data-area="customer"] .customer-links.gold-waiting-actions > :is(a,button) {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:10px 9px!important;
  border:1px solid #dfc691!important;border-radius:9px!important;
  background:#fffdfa!important;background-image:none!important;color:#5c411c!important;
  text-decoration:none!important;text-align:center!important;font-size:12px!important;font-weight:800!important;
  white-space:normal!important;line-height:1.35!important;box-shadow:0 2px 5px #65431d0d!important;
}
body[data-area="customer"] .customer-links.gold-waiting-actions > :is(a,button):first-child {
  background:var(--hs-gold-button)!important;background-image:var(--hs-gold-button)!important;
  color:#211609!important;border-color:#bd8826!important;box-shadow:inset 0 1px 0 #fff7ce,0 3px 7px #4c300f29!important;
}
body[data-area="customer"] .customer-links.gold-waiting-actions > :is(a,button):hover,
body[data-area="customer"] .customer-links.gold-waiting-actions > :is(a,button):focus-visible {border-color:#b5832e!important;background:#fff1d2!important;color:#34220b!important;}
body[data-area="customer"] .customer-links.gold-waiting-actions > :is(a,button):first-child:hover {background:linear-gradient(180deg,#fff4ca,#deb04f)!important;}

/* Customer search card: warm white, black headline, gold icon and submit. */
body[data-area="customer"] .search-panel.live-ticket-finder {
  background:#fffefa!important;background-image:none!important;border:1px solid #e5c995!important;
  color:#2b2113!important;border-radius:14px!important;
  padding:21px clamp(16px,2.3vw,25px)!important;box-shadow:0 5px 18px #5b3c1d12!important;
  text-align:left!important;
}
body[data-area="customer"] .live-ticket-finder .ticket-finder-heading {
  display:flex!important;gap:12px!important;justify-content:space-between!important;align-items:center!important;
  margin:0 0 17px!important;min-width:0!important;
}
body[data-area="customer"] .ticket-finder-heading>div{min-width:0!important;}
body[data-area="customer"] .live-ticket-finder .ticket-finder-eyebrow{
  color:#9c6b1f!important;font-size:10px!important;font-weight:900!important;letter-spacing:.14em!important;
}
body[data-area="customer"] .search-panel.live-ticket-finder h2,
body[data-area="customer"] .live-ticket-finder .ticket-finder-heading h2 {
  color:#221b12!important;font:850 clamp(21px,2.2vw,27px)/1.2 Georgia,"Times New Roman",serif!important;
  letter-spacing:-.035em!important;margin:6px 0 8px!important;text-align:left!important;
}
body[data-area="customer"] .search-panel.live-ticket-finder .ticket-finder-intro,
body[data-area="customer"] .live-ticket-finder .hint{
  color:#746550!important;font-size:12px!important;line-height:1.6!important;text-align:left!important;
}
body[data-area="customer"] .live-ticket-finder .ticket-finder-symbol {
  flex:0 0 48px!important;width:48px!important;height:48px!important;border-radius:12px!important;
  border:1px solid #e2c482!important;background:#fff4d9!important;color:#a67725!important;
  font-size:34px!important;box-shadow:none!important;
}
body[data-area="customer"] .search-panel.live-ticket-finder .ticket-finder-form>label{
  display:block!important;color:#503718!important;font-size:12px!important;font-weight:800!important;margin:0 0 7px!important;
}
body[data-area="customer"] .live-ticket-finder .ticket-finder-controls{
  display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:9px!important;min-width:0!important;
}
body[data-area="customer"] .live-ticket-finder .ticket-finder-controls input {
  display:block!important;flex:1 1 100%!important;width:100%!important;min-width:0!important;
  background:#fffdfa!important;background-image:none!important;color:#332714!important;border:1px solid #d9c7a8!important;
  border-radius:9px!important;min-height:48px!important;padding:10px 13px!important;
  font-size:16px!important;text-align:left!important;box-shadow:inset 0 1px 2px #25130109!important;
}
body[data-area="customer"] .live-ticket-finder .ticket-finder-controls input::placeholder{color:#a2947d!important;}
body[data-area="customer"] .live-ticket-finder .ticket-finder-controls button.action-red {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:1 1 145px!important;min-width:0!important;width:auto!important;min-height:46px!important;margin:0!important;
  background:var(--hs-gold-button)!important;background-image:var(--hs-gold-button)!important;
  color:#281a09!important;border:1px solid #bf8d36!important;border-radius:9px!important;
  box-shadow:0 3px 7px #6d470f24!important;font-weight:900!important;font-size:12px!important;
}
body[data-area="customer"] .live-ticket-finder .ticket-finder-clear{
  flex:0 1 auto!important;min-height:46px!important;padding:12px 15px!important;
  color:#7e5519!important;border-color:#d9b675!important;background:#fffaf0!important;
}
body[data-area="customer"] .ticket-search-results,
body[data-area="customer"] .ticket-search-results.ticket-search-group-found{
  background:#fff7e5!important;background-image:none!important;border:1px solid #d8b878!important;color:#332819!important;
}
body[data-area="customer"] .ticket-search-results strong{color:#6f4b16!important;}
body[data-area="customer"] .ticket-search-results p{color:#61513c!important;}
body[data-area="customer"] .ticket-search-results p b{color:#3a2612!important;}
body[data-area="customer"] .ticket-search-results>a {background:#fffdfa!important;border-color:#cdaa6d!important;color:#745019!important;}
body[data-area="customer"] .ticket-finder-controls button:hover{filter:brightness(1.055)!important;}

/* Admin ticket management: white dashboard card and a compact premium black shuffle studio. */
body[data-area="admin"] .admin-shuffle-section {
  display:block!important;margin:16px 0 18px!important;padding:20px!important;
  background:#fffdf8!important;background-image:none!important;border:1px solid #e3cea6!important;
  border-radius:15px!important;box-shadow:0 6px 22px #53380f14!important;color:#261d11!important;
}
body[data-area="admin"] .admin-shuffle-section>h2{
  margin:0 0 14px!important;padding:0!important;color:#271d10!important;
  font-size:clamp(16px,1.7vw,20px)!important;font-weight:900!important;letter-spacing:.005em!important;
  overflow-wrap:anywhere!important;
}
body[data-area="admin"] .admin-shuffle-section>h2::before{content:'▧';color:#ac7b23;margin-right:9px;}
body[data-area="admin"] .admin-shuffle-section .shuffle-stats{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;
  margin:0 0 16px!important;padding:0!important;
}
body[data-area="admin"] .admin-shuffle-section .shuffle-stats>div{
  min-width:0!important;padding:13px 15px!important;background:#fff8e9!important;
  border:1px solid #e8d5ae!important;border-radius:10px!important;box-shadow:none!important;
}
body[data-area="admin"] .admin-shuffle-section .shuffle-stats small{
  display:block!important;color:#716049!important;font-size:11px!important;line-height:1.4!important;
}
body[data-area="admin"] .admin-shuffle-section .shuffle-stats strong{
  display:block!important;color:#9d6b1b!important;font-size:clamp(20px,2vw,27px)!important;
  line-height:1.2!important;margin-top:4px!important;
}
body[data-area="admin"] .admin-shuffle-section .shuffle-reference{
  position:relative!important;overflow:hidden!important;margin:0!important;
  background:linear-gradient(120deg,#12100d 0%,#261b0e 51%,#12100d 100%)!important;
  background-image:linear-gradient(120deg,#12100d 0%,#261b0e 51%,#12100d 100%)!important;
  border:1px solid #b98931!important;border-radius:13px!important;
  padding:22px clamp(12px,2.3vw,28px)!important;
  box-shadow:inset 0 1px 0 #ffe29c20!important;text-align:center!important;
}
body[data-area="admin"] .admin-shuffle-section .shuffle-reference h2{
  color:#fce1a2!important;text-shadow:none!important;
  font:850 clamp(20px,2vw,26px)/1.18 Georgia,"Times New Roman",serif!important;
  letter-spacing:.01em!important;margin:0!important;
}
body[data-area="admin"] .admin-shuffle-section .shuffle-reference p{
  color:#cbb58e!important;font-size:clamp(12px,1.35vw,14px)!important;
  font-weight:650!important;margin:6px 0 17px!important;line-height:1.5!important;
}
body[data-area="admin"] .admin-shuffle-section .shuffle-six {
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:8px!important;width:100%!important;max-width:960px!important;margin:0 auto!important;
}
body[data-area="admin"] .admin-shuffle-section .shuffle-six>div{
  display:grid!important;place-items:center!important;min-width:0!important;min-height:44px!important;
  padding:6px 3px!important;border:1px solid #dbaf5a!important;border-radius:9px!important;
  background:#17130e!important;background-image:none!important;color:#ffe5a7!important;
  box-shadow:inset 0 1px 0 #ffecc323!important;font-size:clamp(11px,1.1vw,15px)!important;
  font-weight:850!important;letter-spacing:.025em!important;overflow-wrap:anywhere!important;
}
body[data-area="admin"] .admin-shuffle-section .shuffle-start-form {
  display:flex!important;justify-content:flex-end!important;max-width:960px!important;
  margin:13px auto 0!important;gap:10px!important;
}
body[data-area="admin"] .admin-shuffle-section .shuffle-red-button{
  min-height:43px!important;min-width:132px!important;padding:10px 19px!important;
  background:var(--hs-gold-button)!important;background-image:var(--hs-gold-button)!important;
  border:1px solid #b98127!important;border-radius:8px!important;
  color:#25180a!important;font-weight:900!important;box-shadow:inset 0 1px 0 #fff2c9,0 2px 7px #0005!important;
}
body[data-area="admin"] .admin-shuffle-section .shuffle-red-button:disabled{opacity:.54!important;cursor:not-allowed!important;}
body[data-area="admin"] .admin-shuffle-section .fineprint{
  color:#756850!important;font-size:11px!important;text-align:left!important;
  line-height:1.6!important;margin:12px 0 0!important;
}
body[data-area="admin"] .admin-shuffle-section .shuffle-inline-status,
body[data-area="admin"] .admin-shuffle-section .shuffle-confirm {
  border-color:#d4af68!important;color:#ebd9b6!important;
}

/* Shared mobile/desktop fluid containment fixes. */
body[data-area="customer"] .ticket-gallery,
body[data-area="customer"] .ticket-gallery.ticket-gallery-grouped{min-width:0!important;}
body[data-area="customer"] .ticket-grid{width:100%!important;min-width:0!important;}
body[data-area="customer"] .ticket-cell{min-width:0!important;font-size:clamp(9px,1.04vw,14px)!important;}
body[data-area="admin"] .admin-links a,body[data-area="admin"] .admin-links button{white-space:normal!important;overflow-wrap:anywhere!important;}
body[data-area="admin"] .scroll-table{max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain;}
body[data-area="admin"] .settings-table{max-width:100%!important;}
body[data-area="admin"] .link-list>div{min-width:0!important;}
body[data-area="admin"] .link-list input{min-width:0!important;width:100%!important;}

/* Small laptop / landscape tablet: keep two usable columns where space allows. */
@media (max-width:1199px){
  body[data-area="customer"] .ticket-gallery:not(.ticket-gallery-exact){grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (min-width:901px) and (max-width:1200px){
  body[data-area="customer"] .customer-layout{grid-template-columns:minmax(270px,.86fr) minmax(0,1.4fr)!important;}
  body[data-area="admin"] .royal-admin-content{padding:16px!important;}
  body[data-area="admin"] .admin-shuffle-section{padding:15px!important;}
}
/* All tablets in portrait and most phones: one clean content column. */
@media (max-width:900px){
  body[data-area="customer"] .customer-layout{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:'top' 'search' 'tickets' 'winner' 'dividend' 'how'!important;
    gap:13px!important;padding:13px clamp(10px,2vw,18px) 55px!important;
  }
  body[data-area="customer"] .customer-schedule-timer{min-width:140px!important;}
  body[data-area="admin"] .admin-layout{width:100%!important;min-width:0!important;}
  body[data-area="admin"] .royal-admin-content{padding:13px 1px!important;}
  body[data-area="admin"] .admin-shuffle-section{padding:15px!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-reference{padding:20px 14px!important;}
  body[data-area="customer"] .ticket-cell{font-size:clamp(10px,1.5vw,14px)!important;}
}
@media (max-width:700px){
  body[data-area="customer"] .customer-links.gold-waiting-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:12px!important;}
  body[data-area="customer"] .customer-schedule{margin:12px 11px!important;padding:14px 13px!important;gap:12px!important;}
  body[data-area="customer"] .customer-schedule-icon{flex:0 0 42px!important;width:42px!important;height:42px!important;font-size:24px!important;}
  body[data-area="customer"] .customer-schedule-content{flex:1 1 calc(100% - 60px)!important;}
  body[data-area="customer"] .customer-schedule-content>strong{font-size:clamp(17px,4.4vw,22px)!important;}
  body[data-area="customer"] .customer-schedule-timer{width:100%!important;margin:4px 0 0!important;padding:9px 12px!important;}
  body[data-area="customer"] .call-board-waiting{margin:11px!important;padding:13px!important;gap:10px!important;}
  body[data-area="customer"] .call-board-waiting-icon{flex-basis:42px!important;width:42px!important;height:42px!important;}
  body[data-area="customer"] .search-panel.live-ticket-finder{padding:19px 15px!important;}
  body[data-area="customer"] .ticket-finder-controls{flex-direction:column!important;}
  body[data-area="customer"] .live-ticket-finder .ticket-finder-controls button.action-red,
  body[data-area="customer"] .live-ticket-finder .ticket-finder-clear{flex:0 0 auto!important;width:100%!important;}
  body[data-area="customer"] .ticket-gallery,
  body[data-area="customer"] .ticket-gallery.ticket-gallery-grouped{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
  }
  body[data-area="customer"] .ticket-cell{font-size:clamp(9px,2.15vw,12px)!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-six{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-start-form{justify-content:stretch!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-start-form button{width:100%!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-reference h2{font-size:22px!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-reference p{font-size:12px!important;}
  body[data-area="admin"] .admin-links{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .booking-modal-dialog{width:100%!important;max-height:calc(100dvh - 12px)!important;}
  .booking-person-fields{grid-template-columns:1fr!important;}
  .booking-number-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
}
@media (max-width:520px){
  body[data-area="customer"] .ticket-gallery,
  body[data-area="customer"] .ticket-gallery.ticket-gallery-grouped{grid-template-columns:1fr!important;}
  body[data-area="customer"] .customer-layout{padding:10px 9px 90px!important;gap:10px!important;}
  body[data-area="customer"] .customer-links.gold-waiting-actions > :is(a,button){min-height:46px!important;font-size:11px!important;padding:9px 5px!important;}
  body[data-area="customer"] .ticket-finder-heading{gap:8px!important;}
  body[data-area="customer"] .search-panel.live-ticket-finder h2{font-size:22px!important;}
  body[data-area="customer"] .ticket-cell{font-size:clamp(10px,2.8vw,13px)!important;}
  body[data-area="admin"] .admin-shuffle-section{margin:12px 0!important;padding:13px!important;border-radius:12px!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-stats{gap:7px!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-stats>div{padding:11px 10px!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-stats strong{font-size:21px!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-reference{padding:15px 10px!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-six>div{font-size:12px!important;min-height:40px!important;}
  body[data-area="admin"] .floating-book{bottom:calc(10px + env(safe-area-inset-bottom))!important;right:10px!important;max-width:60vw!important;}
  .booking-modal-dialog{border-radius:12px!important;}
  .booking-modes{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .gold-booking-steps span{overflow-wrap:anywhere!important;}
}
@media (max-width:360px){
  body[data-area="customer"] .customer-schedule-content>strong{font-size:17px!important;}
  body[data-area="customer"] .ticket-finder-symbol{display:none!important;}
  body[data-area="customer"] .customer-links.gold-waiting-actions{gap:6px!important;padding:9px!important;}
  body[data-area="customer"] .customer-links.gold-waiting-actions > :is(a,button){font-size:10px!important;}
  body[data-area="customer"] .call-board-waiting-state{display:none!important;}
  body[data-area="admin"] .admin-shuffle-section>h2{font-size:16px!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-reference h2{font-size:19px!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-six{gap:3px!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-six>div{font-size:10px!important;min-height:38px!important;}
  body[data-area="admin"] .admin-links{grid-template-columns:1fr!important;}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important;}}

/* Override older grouped-gallery specificity so phone tickets remain readable. */
@media(max-width:520px){
 body[data-area="customer"] .customer-layout .ticket-gallery:not(.ticket-gallery-exact),
 body[data-area="customer"] .customer-layout .ticket-gallery.ticket-gallery-grouped,
 body[data-area="customer"] .customer-layout .ticket-gallery{
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 }
}

/* Accessible controls and robust inner-scroll areas across handheld devices. */
@media(max-width:900px){
 .gold-nav-toggle,.gold-admin-toggle{min-height:44px!important;min-width:44px!important;}
 .masthead.hs-header .hs-header-nav .hs-nav-link{min-height:44px!important;}
 body[data-area="admin"] .sidebar-nav a{min-height:44px!important;white-space:normal!important;}
 .royal-admin-content .settings-table{table-layout:auto!important;}
 .royal-admin-content .scroll-table{-webkit-overflow-scrolling:touch;}
 .royal-admin-content .settings-table :is(td,th){overflow-wrap:anywhere;}
 .booking-number-grid .booking-ticket-number{min-height:44px!important;}
}
@media(max-width:520px){
 .masthead.hs-header .hs-header-actions .hs-role-link{min-height:38px!important;}
 .hs-customer-jump a{min-height:49px!important;}
 body[data-area="customer"] .ticket-block{max-width:100%!important;}
 .admin-booking-modal,.booking-modal,.run-game-overlay{max-width:100vw!important;}
}

/* Compact shuffle source numbers: never wrap or split a four-digit ticket number. */
body[data-area="admin"] .admin-shuffle-section .shuffle-six>div {
  white-space:nowrap!important;overflow-wrap:normal!important;letter-spacing:0!important;
  font-variant-numeric:tabular-nums;padding:5px 1px!important;
}
body[data-area="admin"] .admin-shuffle-section .shuffle-start-form button{width:100%!important;}
@media(max-width:520px){
  body[data-area="admin"] .admin-shuffle-section{padding:8px!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-reference{padding:12px 7px!important;}
  body[data-area="admin"] .admin-shuffle-section .shuffle-six>div{font-size:clamp(11px,3.1vw,15px)!important;min-height:38px!important;border-radius:6px!important;}
}
