/* Minimiam's shared café palette lives in style.css. This layer adds depth without changing the game layout. */
body{
  background:
    radial-gradient(circle at 12% 10%,rgba(255,255,255,.78),transparent 29%),
    radial-gradient(circle at 90% 85%,rgba(255,210,168,.33),transparent 35%),
    var(--cream);
}
.topbar{isolation:isolate}
.topbar::after{content:"";position:absolute;inset:0 0 auto;height:100%;z-index:-1;background:linear-gradient(180deg,rgba(255,255,255,.54),rgba(255,255,255,0))}
.topbar-spacer{width:54px;height:54px}
.brand{justify-self:center;display:flex;align-items:center;gap:7px;white-space:nowrap;filter:drop-shadow(0 3px 0 rgba(236,190,142,.25))}
.brand img{width:48px;height:48px;object-fit:contain;flex:0 0 auto}
.brand>span{color:var(--ink)!important}
.brand>span>span:first-child{color:var(--coral)}
.brand .brand-dot{color:var(--butter)!important}
.home-button{background:var(--surface);border:2px solid rgba(233,222,201,.8);box-shadow:0 5px 0 #e3d9c7,0 9px 15px rgba(79,71,50,.09)}
.game-clock{--clock-accent:#59b68a;--clock-track:#d9ecdf;--clock-progress:100%;position:absolute;z-index:3;right:max(18px,env(safe-area-inset-right));top:50%;height:54px;min-width:119px;padding:5px 13px 5px 8px;border:2px solid rgba(255,255,255,.85);border-radius:20px;background:linear-gradient(#f5fff7,#e4f4e9);box-shadow:inset 0 3px 0 rgba(255,255,255,.9),0 4px 0 #d7e5d8,0 8px 14px rgba(62,91,68,.12);display:flex;align-items:center;justify-content:center;gap:8px;color:var(--ink);opacity:0;transform:translateY(calc(-50% - 5px));transition:opacity .28s ease,transform .28s ease,background .35s ease,border-color .35s ease}
.game-clock.is-visible{opacity:1;transform:translateY(-50%)}
.game-clock-ring{position:relative;flex:0 0 40px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--clock-accent) var(--clock-progress),var(--clock-track) 0);transition:background .5s ease}
.game-clock-ring::before{content:"";position:absolute;inset:3px;border-radius:50%;background:#f6fff7;box-shadow:inset 0 1px 2px rgba(46,82,62,.08)}
.game-clock-ring>span{position:relative;z-index:1;font-size:23px;line-height:1}
.game-clock strong{font-size:clamp(21px,2.2vw,27px);font-weight:1000;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.2px;white-space:nowrap}
.game-clock.clock--warm{--clock-accent:#e6ad4f;--clock-track:#f6e9c7;background:linear-gradient(#fffaf0,#fff0d2);border-color:#fff9e8;box-shadow:inset 0 3px 0 rgba(255,255,255,.95),0 4px 0 #e9d9b8,0 8px 14px rgba(102,82,43,.12)}
.game-clock.clock--warm .game-clock-ring::before{background:#fff9ed}
.game-clock.clock--urgent{--clock-accent:#e88970;--clock-track:#f5ded5;background:linear-gradient(#fff7f2,#ffe8df);border-color:#fff7ef;box-shadow:inset 0 3px 0 rgba(255,255,255,.95),0 4px 0 #e9cfc3,0 8px 14px rgba(112,70,57,.12)}
.game-clock.clock--urgent .game-clock-ring::before{background:#fff6f1}
.game-clock[hidden]{display:none!important}

/* Two miniature café scenes, with a soft check pattern and real illustration assets. */
.home-main::before,.home-main::after{content:"";position:absolute;border-radius:50%;pointer-events:none;z-index:-1}
.home-main::before{width:210px;height:210px;left:-110px;top:8%;background:rgba(255,205,151,.16)}
.home-main::after{width:160px;height:160px;right:-90px;bottom:5%;background:rgba(115,196,160,.17)}
.home-intro h1{color:var(--ink);text-shadow:0 3px 0 rgba(255,255,255,.75)}
.home-intro h1 span{color:var(--coral-dark)}
.choice-card{isolation:isolate;border:5px solid rgba(255,255,255,.72);box-shadow:0 11px 0 rgba(118,101,76,.15),0 24px 32px rgba(52,70,57,.13)}
.choice-cashier{background:linear-gradient(145deg,#ffe1cb,var(--peach) 53%,#ffc5a7)}
.choice-restaurant{background:linear-gradient(145deg,#d9f4dc,#bee8d1 56%,#a8d9c1)}
.choice-card::before{width:68px;height:68px;left:18px;top:18px;border:0;opacity:.23;background:repeating-linear-gradient(0deg,white 0 8px,transparent 8px 16px),repeating-linear-gradient(90deg,white 0 8px,transparent 8px 16px);border-radius:18px;transform:rotate(-13deg)}
.choice-card::after{right:28px;top:22px;text-shadow:0 4px 0 rgba(102,117,89,.12)}
.choice-art{position:relative;z-index:1}
.choice-art::after{content:"";position:absolute;z-index:-1;width:78%;height:44%;bottom:12%;border-radius:50%;background:rgba(255,255,255,.34);filter:blur(12px)}
.choice-art img{filter:drop-shadow(0 18px 8px rgba(87,75,52,.18))}
.choice-footer{position:relative;z-index:2;background:rgba(255,253,246,.88);border-top:3px solid rgba(255,255,255,.65);box-shadow:0 -9px 18px rgba(255,255,255,.2)}
.choice-arrow{box-shadow:0 6px 0 var(--coral-dark),0 10px 14px rgba(119,71,44,.18)}
.choice-restaurant .choice-arrow{box-shadow:0 6px 0 var(--mint-dark),0 10px 14px rgba(57,101,76,.18)}
.choice-card:active{transform:translateY(5px);box-shadow:0 5px 0 rgba(118,101,76,.15),0 12px 19px rgba(52,70,57,.12)}

/* A top-down room with windows, a menu board, a counter and set tables. */
.dining-room{background:repeating-linear-gradient(90deg,rgba(255,255,255,.12) 0 37px,rgba(184,125,72,.06) 38px 41px),linear-gradient(150deg,#fbedda,#f5dfbf);border-color:#dfc4a0;box-shadow:inset 0 0 0 5px rgba(255,250,234,.9),inset 0 13px 22px rgba(145,94,45,.09),0 15px 0 #cda982,0 26px 35px rgba(79,88,63,.15)}
.dining-room::before{content:"";position:absolute;inset:22px;border:2px dashed rgba(172,121,75,.12);border-radius:23px;pointer-events:none}
.room-wall{position:absolute;pointer-events:none;z-index:1}
.room-wall-top{height:41px;top:0;left:11%;right:11%;display:flex;align-items:flex-start;justify-content:space-between;padding:0 9%;border-radius:0 0 22px 22px;background:linear-gradient(#d3aa7d,#e9c49b 62%,#bd926c);box-shadow:0 8px 10px rgba(116,72,38,.12)}
.room-wall-left,.room-wall-right{width:21px;top:24%;bottom:19%;border-radius:14px;background:linear-gradient(90deg,#c3956a,#e6c299,#b88660);box-shadow:3px 0 7px rgba(116,72,38,.1)}
.room-wall-left{left:0}.room-wall-right{right:0}
.room-window{width:92px;height:31px;border:6px solid #fff8e9;border-top:0;border-radius:0 0 12px 12px;background:linear-gradient(90deg,#bfe5e8 46%,#fff8e9 47% 53%,#bfe5e8 54%);box-shadow:0 5px 0 #b79169}
.room-menu-board{width:75px;height:35px;border:5px solid #a9754b;border-top:0;border-radius:0 0 7px 7px;background:#31554d;display:flex;align-items:center;justify-content:center;gap:5px}
.room-menu-board i{width:11px;height:3px;border-radius:3px;background:#f4d69f}
.decor-rug{background:repeating-linear-gradient(0deg,rgba(255,255,255,.5) 0 9px,transparent 9px 18px),repeating-linear-gradient(90deg,rgba(255,255,255,.45) 0 9px,transparent 9px 18px),#f6cf9c;opacity:.5;border:7px solid #fff6dc}
.decor-plant{background:#b87e57;box-shadow:0 7px 0 #996345,inset 0 0 0 8px #d49a6c;transform:rotate(-5deg)}
.decor-plant i{position:absolute;width:24px;height:38px;border-radius:100% 0 100% 0;background:#62a981;box-shadow:inset -3px -4px 0 rgba(28,101,64,.16)}
.decor-plant i:nth-child(1){transform:translate(-10px,-5px) rotate(-40deg)}
.decor-plant i:nth-child(2){transform:translate(10px,-8px) rotate(38deg)}
.decor-plant i:nth-child(3){transform:translate(1px,4px) rotate(-8deg)}
.room-counter{height:50px;background:linear-gradient(#e5b78a,#c78f68);border-color:#ad7955;box-shadow:0 -7px 0 rgba(157,104,62,.1),inset 0 5px 0 rgba(255,239,208,.43)}
.room-counter span{filter:drop-shadow(0 3px 1px rgba(54,48,33,.15))}
.table-unit{filter:drop-shadow(0 11px 5px rgba(91,65,45,.18))}
.table-surface{background:radial-gradient(circle at 32% 24%,#fffef6,#f8e7cc);border-color:#ca9669;box-shadow:inset 0 0 0 4px #fff5e5,inset 0 7px 9px rgba(255,255,255,.8),0 8px 0 #ad7855,0 10px 9px rgba(87,66,42,.16)}
.table-number{position:relative;z-index:3;background:rgba(255,253,242,.83);border:2px solid rgba(223,192,148,.6);border-radius:18px;min-width:69px;min-height:72px;display:grid;place-items:center;font-size:55px;box-shadow:0 4px 8px rgba(131,102,70,.1)}
.chair{background:linear-gradient(#f9b38d,#eb9472);border-color:#d6815d;box-shadow:inset 0 3px 0 rgba(255,236,214,.7),0 5px 0 #b87253}
.status-served .table-surface{background:radial-gradient(circle at 32% 24%,#fffef6,#f8e7cc);border-color:#ca9669}
.status-served .table-number{color:#627d7b}
.status-served .table-state-icon{background:#b8edd1;color:#287a55;border:3px solid #70c399}
.table-state-icon{z-index:4;width:49px;height:49px;right:-13px;bottom:-17px;box-shadow:0 5px 0 rgba(126,107,77,.17),0 8px 11px rgba(55,65,52,.1)}
.status-served .table-unit{background:transparent}

/* Menu cards preserve the existing category palette through shared variables. */
.table-panel{border:4px solid #fff8e9;box-shadow:0 27px 0 rgba(33,62,73,.09),0 32px 65px rgba(8,36,40,.25)}
.table-panel-header{background:linear-gradient(90deg,#fffdf6,#fff6e8)}
.table-title-icon{background:var(--peach);box-shadow:inset 0 4px 0 rgba(255,255,255,.5),0 4px 0 #e8b792}
.category-tab{box-shadow:inset 0 3px 0 rgba(255,255,255,.72),0 5px 0 rgba(91,77,55,.14)}
.category-tab.food-starters{--tab-active-border:#83bd8e;--tab-active-bg:var(--category-starters-bg)}
.category-tab.food-mains{--tab-active-border:#dfa45c;--tab-active-bg:var(--category-mains-bg)}
.category-tab.food-desserts{--tab-active-border:#e6a9b5;--tab-active-bg:var(--category-desserts-bg)}
.category-tab.food-drinks{--tab-active-border:#8abfd4;--tab-active-bg:var(--category-drinks-bg)}
.category-tab.is-active{background:var(--tab-active-bg);border-color:var(--tab-active-border);color:var(--ink);filter:saturate(1.08);transform:translateY(-2px);box-shadow:inset 0 3px 0 rgba(255,255,255,.75),0 7px 0 rgba(91,77,55,.15)}
.food-tile{box-shadow:inset 0 4px 0 rgba(255,255,255,.68),0 5px 0 rgba(119,107,85,.15),0 9px 15px rgba(67,76,64,.07)}
.food-illustration{min-height:75px;display:grid;place-items:center}
.food-illustration img{width:88px;height:88px;filter:drop-shadow(0 6px 4px rgba(58,70,53,.15))}
.food-illustration .product-fallback{font-size:64px;line-height:1}
.category-icon .product-fallback{font-size:37px;line-height:1}
.order-item-icon .product-fallback{font-size:29px;line-height:1}
.plate-food .product-fallback{font-size:20px;line-height:1}
.food-name{max-width:100%;padding:0 5px;text-align:center;line-height:1.15;text-wrap:balance}
.order-item-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;line-height:1.12}
.receipt-item{min-width:0;flex:1}
.receipt-item-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;line-height:1.12}
.receipt-row>span:last-child{flex:0 0 auto}
.order-side{background:linear-gradient(#faf8ee,#f4f0e3)}
.order-actions .action-serve{grid-column:1 / -1;width:100%}
.category-tabs{padding-bottom:14px;border-bottom:2px solid #e8e1d4;margin-bottom:14px}
.category-tab{min-height:88px;border-radius:19px;background:#f5f2e9;transition:transform .12s,box-shadow .12s,background .12s}
.category-tab:active{transform:translateY(2px) scale(.97)}
.category-tab.is-active{transform:translateY(-2px);border-width:3px;box-shadow:inset 0 3px 0 rgba(255,255,255,.78),0 7px 0 rgba(91,77,55,.18)}
.category-icon img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(58,70,53,.14))}
.food-grid{margin-top:0}
.order-item{border:2px solid rgba(255,255,255,.7);box-shadow:inset 0 2px 0 rgba(255,255,255,.65),0 3px 0 rgba(115,107,84,.13)}
.order-item-icon{display:grid;place-items:center}
.order-item-icon img{width:38px;height:38px;object-fit:contain}
.remove-item{background:rgba(255,255,255,.76)}

/* Cashier keeps its iPad dimensions; materials, shadows and buttons gain depth. */
.register-panel{background:linear-gradient(145deg,#ff9476,var(--coral) 58%,#e46950);border-color:#da6349;box-shadow:inset 0 5px 0 rgba(255,220,197,.58),0 11px 0 #bd654f,0 20px 28px rgba(113,70,53,.17)}
.register-panel.linked-bill{position:relative}
.register-panel.linked-bill::after{content:"";position:absolute;left:23%;right:23%;bottom:6%;height:37px;border:5px solid #cb5a43;border-radius:13px;background:linear-gradient(#ed8969,#d36a50);box-shadow:inset 0 5px 0 rgba(255,207,175,.5),0 4px 0 #b75845}
.register-display{background:linear-gradient(140deg,#eaf9f1,#d9efe7);border-color:#c9e7da;box-shadow:inset 0 7px 14px rgba(31,102,92,.1),0 3px 0 rgba(255,230,204,.35)}
.keypad button{background:linear-gradient(#fffef9,#fff8ec);box-shadow:inset 0 3px 0 rgba(255,255,255,.9),0 5px 0 #e7cfbc,0 7px 8px rgba(88,64,47,.13)}
.payment-panel{background:linear-gradient(#fffdf8,#fff9ed);border-color:#e7deca;box-shadow:inset 0 4px 0 #fff,0 10px 0 #ded7c6,0 16px 23px rgba(77,75,59,.08)}
.payment-card{border:3px solid rgba(255,255,255,.52);box-shadow:inset 0 4px 0 rgba(255,255,255,.66),0 6px 0 rgba(89,82,65,.14),0 9px 13px rgba(73,81,69,.07)}
.payment-card img{filter:drop-shadow(0 5px 3px rgba(60,72,57,.13))}
.payment-cash{background:linear-gradient(120deg,#fff2cd,#f9dfa2)}
.payment-bank{background:linear-gradient(120deg,#e4f4fa,#c4e4f2)}
.payment-qr{background:linear-gradient(120deg,#e9f7e8,#d0ebd7)}
.cashier-sticker{background:var(--peach);box-shadow:0 5px 0 #e6b18d}
.cashier-sticker img{width:42px;height:42px}
.payment-modal{border:4px solid #fff7e6}
.receipt-logo{display:grid;place-items:center}
.receipt-logo img{width:43px;height:43px;object-fit:contain}
.receipt-item-visual{width:28px;height:28px;flex:0 0 auto;display:grid;place-items:center}
.receipt-item-visual img{width:28px;height:28px;object-fit:contain}

@media(max-width:800px){
  .room-wall-top{left:14%;right:14%}
  .room-window{width:70px}
}
@media(max-width:600px){
  .brand{gap:3px}
  .brand img{width:37px;height:37px}
  .game-clock{right:max(8px,env(safe-area-inset-right));height:42px;min-width:0;padding:3px 7px 3px 4px;border-radius:15px;gap:4px;box-shadow:inset 0 2px 0 rgba(255,255,255,.9),0 3px 0 #d7e5d8,0 5px 9px rgba(62,91,68,.1)}
  .game-clock-ring{flex-basis:29px;width:29px;height:29px}
  .game-clock-ring::before{inset:2px}
  .game-clock-ring>span{font-size:17px}
  .game-clock strong{font-size:16px;letter-spacing:0}
  .home-main::before,.home-main::after{display:none}
  .choice-card{border-width:4px}
  .room-wall-top{left:10%;right:10%;padding:0 7%}
  .room-window{width:48px;height:25px}
  .room-menu-board{width:48px;height:28px}
  .table-number{min-width:58px;min-height:60px;font-size:48px}
  .food-illustration{min-height:56px}
  .food-illustration img{width:62px;height:62px}
  .order-item-icon img{width:28px;height:28px}
}
@media(prefers-reduced-motion:no-preference){
  .decor-plant i{animation:minimiamLeaf 7s ease-in-out infinite alternate;transform-origin:50% 100%}
  .decor-plant i:nth-child(2){animation-delay:-3s}
  @keyframes minimiamLeaf{to{rotate:4deg}}
}

/* The illustrated café is the shared setting; the home screen uses it at full strength. */
.page-home{background:linear-gradient(rgba(255,247,229,.10),rgba(255,247,229,.18)),url('../images/home/cafe-background.png') center center/cover no-repeat,var(--cream)}
.page-restaurant,.page-cashier{background:linear-gradient(rgba(255,248,233,.73),rgba(255,248,233,.87)),url('../images/home/cafe-background.png') center center/cover no-repeat,var(--cream)}
.page-home .topbar{display:none}
.page-home .home-main{width:min(1250px,calc(100% - 46px));padding:22px 0 29px;gap:20px}
.page-home .home-intro h1{margin:0;line-height:1}
.home-logo{width:min(660px,58vw);height:auto;max-height:185px;margin:auto;filter:drop-shadow(0 8px 10px rgba(121,82,58,.12))}
.page-home .home-choices{gap:clamp(16px,2.4vw,32px)}
.page-home .choice-card{height:clamp(320px,48dvh,470px);min-height:0;max-height:none;border:3px solid rgba(255,255,255,.87);border-radius:42px;box-shadow:0 10px 0 rgba(197,135,98,.29),0 21px 32px rgba(101,72,48,.20)}
.page-home .choice-restaurant{box-shadow:0 10px 0 rgba(87,146,109,.33),0 21px 32px rgba(69,100,76,.19)}
.page-home .choice-card::before,.page-home .choice-card::after,.page-home .choice-art::after{display:none}
.page-home .choice-art{height:74%;padding:0;overflow:hidden}
.page-home .choice-cashier .choice-art{background:linear-gradient(120deg,rgba(255,193,137,.60),rgba(255,223,184,.48)),url('../images/home/cafe-background.png') left 59%/160% auto no-repeat}
.page-home .choice-restaurant .choice-art{background:linear-gradient(120deg,rgba(76,165,114,.56),rgba(177,222,180,.40)),url('../images/home/cafe-background.png') right 58%/160% auto no-repeat}
.page-home .choice-art img{width:100%;height:100%;object-fit:contain;object-position:center bottom;padding:6px 10px 0;filter:drop-shadow(0 14px 9px rgba(73,56,43,.22))}
.page-home .choice-footer{height:26%;min-height:83px;background:linear-gradient(#fffdf7,#fff5e8);padding-inline:clamp(20px,3vw,45px);border-top:2px solid rgba(255,255,255,.72)}
.page-home .choice-title{font-size:clamp(31px,3.5vw,48px);letter-spacing:-1.3px}
.page-home .choice-arrow{width:63px;height:63px;font-size:34px}
.page-home .choice-card:active{transform:translateY(5px);box-shadow:0 5px 0 rgba(162,122,91,.27),0 12px 19px rgba(71,68,51,.14)}

/* Rendered floor beneath the existing touchable tables and state badges. */
.page-restaurant .dining-room{background:#f0be84 url('../images/restaurant/ambient/lunch.webp') center center/100% 100% no-repeat;border-color:#d9a977;box-shadow:inset 0 0 0 4px rgba(255,243,219,.72),0 13px 0 #bf8b60,0 24px 34px rgba(111,73,41,.23)}
.page-restaurant .dining-room::before,.page-restaurant .room-wall,.page-restaurant .room-decor,.page-restaurant .room-counter{display:none}
.page-restaurant .room-ambient-layer{position:absolute;inset:0;z-index:0;pointer-events:none;background-position:center;background-size:100% 100%;background-repeat:no-repeat;opacity:0;transition:opacity 1.6s ease-in-out}
.page-restaurant .room-ambient-layer.is-visible{opacity:1}
.page-restaurant .room-ambient-layer.is-initial{transition:none}
.page-restaurant .tables-grid{inset:55px 35px 105px}

/* Table dressing reuses the existing period value; these overlays never affect hit areas. */
.page-restaurant .table-surface::before,.page-restaurant .table-surface::after{content:"";position:absolute;inset:2px;border-radius:inherit;pointer-events:none;z-index:1;opacity:0;transition:opacity 1s ease-in-out}
.page-restaurant .table-surface::before{background:repeating-linear-gradient(7deg,rgba(111,62,29,.15) 0 2px,transparent 2px 12px),repeating-linear-gradient(176deg,rgba(255,235,194,.13) 0 1px,transparent 1px 17px),radial-gradient(ellipse at 31% 20%,#efc58d,#c88c58 82%);box-shadow:inset 0 4px 10px rgba(112,65,33,.17)}
.page-restaurant .table-surface::after{background-color:#fff2df;background-image:repeating-linear-gradient(0deg,rgba(189,145,105,.10) 0 1px,transparent 1px 13px),repeating-linear-gradient(90deg,rgba(189,145,105,.08) 0 1px,transparent 1px 13px);box-shadow:inset 0 0 0 2px rgba(255,255,255,.88),inset 0 0 0 4px rgba(197,165,130,.17),inset 0 5px 10px rgba(159,135,108,.10)}
.page-restaurant[data-restaurant-period="morning"] .table-surface::before,.page-restaurant[data-restaurant-period="sunset"] .table-surface::before{opacity:1}
.page-restaurant[data-restaurant-period="lunch"] .table-surface::after{opacity:1;background-color:#fff1dd;background-image:linear-gradient(45deg,#efb49f 25%,transparent 25%,transparent 75%,#efb49f 75%),linear-gradient(45deg,#efb49f 25%,transparent 25%,transparent 75%,#efb49f 75%);background-position:0 0,11px 11px;background-size:22px 22px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.60),inset 0 4px 9px rgba(159,112,82,.12)}
.page-restaurant[data-restaurant-period="evening"] .table-surface::after{opacity:1}
.page-restaurant[data-restaurant-period="morning"] .table-number,.page-restaurant[data-restaurant-period="sunset"] .table-number,.page-restaurant[data-restaurant-period="lunch"] .table-number,.page-restaurant[data-restaurant-period="evening"] .table-number{background:transparent;border-color:transparent;box-shadow:none;color:#344f4c;text-shadow:0 1px 0 rgba(255,255,255,.78),0 2px 4px rgba(75,51,36,.18)}

@media(max-width:800px){
  .page-home .home-main{width:min(720px,calc(100% - 28px))}
  .page-home .choice-card{height:clamp(300px,44dvh,440px)}
  .page-restaurant .tables-grid{inset:70px 18px 125px}
}
@media(max-width:600px){
  .page-home .home-main{justify-content:flex-start;padding:15px 0 24px;gap:14px}
  .home-logo{width:min(94vw,440px);max-height:125px}
  .page-home .home-choices{gap:15px}
  .page-home .choice-card{height:clamp(220px,30dvh,265px);border-radius:29px}
  .page-home .choice-art{height:70%}
  .page-home .choice-footer{height:30%;min-height:65px}
  .page-home .choice-title{font-size:29px}
  .page-home .choice-arrow{width:49px;height:49px;font-size:28px}
  .page-restaurant .tables-grid{inset:72px 5px 115px}
}

/* Rendered PNG illustrations replace the former flat vector artwork. */
.brand .brand-hat{width:48px;height:54px;object-fit:contain;filter:drop-shadow(0 3px 2px rgba(110,70,43,.18))}
.brand .brand-wordmark{width:171px;height:52px;object-fit:contain}
.home-brand{display:flex;flex-direction:column;align-items:center;justify-content:center}
.home-hat{height:84px;width:auto;max-width:110px;object-fit:contain;filter:drop-shadow(0 7px 5px rgba(122,76,48,.14))}
.home-wordmark{width:min(580px,64vw);height:91px;object-fit:contain;margin-top:-8px;filter:drop-shadow(0 6px 3px rgba(147,69,45,.16))}
.home-tagline{display:inline-block;margin:1px auto 0;padding:8px 24px 10px;background:rgba(255,240,211,.9);border:2px solid rgba(255,224,179,.92);border-radius:999px;color:var(--ink);font-size:clamp(19px,2.5vw,31px);font-weight:1000;line-height:1.1;letter-spacing:-.5px;box-shadow:0 5px 0 rgba(233,174,112,.28),0 9px 17px rgba(116,76,48,.12)}
.category-icon{display:grid;place-items:center}
.category-icon img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 3px 2px rgba(84,70,46,.1))}
.toast{display:flex;align-items:center;gap:12px}
.toast-food img{width:54px;height:54px;object-fit:contain}
.order-clear img,.clear-amount img{width:37px;height:37px;object-fit:contain}
.remove-item img{width:30px;height:30px;object-fit:contain}
.amount-chip{display:inline-flex;align-items:center;gap:4px}
.amount-chip-visual img{width:20px;height:20px;object-fit:contain}
.flow-icon img{width:98px;height:98px;object-fit:contain;margin:auto}
.fake-qr{display:grid;grid-template-columns:repeat(25,1fr);grid-template-rows:repeat(25,1fr);aspect-ratio:1;width:100%;background:#fff}
.fake-qr i{display:block;background:#203d48}

@media(max-width:600px){
  .brand .brand-hat{width:36px;height:42px}
  .brand .brand-wordmark{width:132px;height:41px}
  .home-hat{height:63px;max-width:82px}
  .home-wordmark{width:min(90vw,400px);height:62px}
  .home-tagline{font-size:clamp(16px,4.5vw,21px);padding:6px 16px 8px}
  .category-icon img{width:37px;height:37px}
}

/* Guests and tableware use the overhead PNG sheets; the chair names anchor every place. */
.page-restaurant .table-unit{isolation:isolate}
.page-restaurant .table-number{z-index:5}
.page-restaurant .status-ordering .table-number,.page-restaurant .status-waiting .table-number,.page-restaurant .status-served .table-number,.page-restaurant .status-needs_clear .table-number{min-width:45px;min-height:47px;font-size:34px;border-radius:14px}
.page-restaurant .table-large:not(.status-free) .table-number{min-width:39px;min-height:41px;font-size:29px}
.page-restaurant .status-waiting .table-state-icon{background:#ffe5a7;color:#94612b;border:3px solid #eabb67}
.page-restaurant .status-needs_clear .table-state-icon{background:#ffdfcc;color:#aa674f;border:3px solid #eba986}
.page-restaurant .status-needs_clear .table-surface{background:radial-gradient(circle at 32% 24%,#fffdf3,#f8e4cd);border-color:#c08c69}

.guest-token{position:absolute;z-index:4;width:58px;height:58px;display:block;pointer-events:none;background-image:url('../images/guests/guest-variants.png');background-repeat:no-repeat;background-size:320% 300%;filter:drop-shadow(0 5px 3px rgba(86,57,37,.2));transform:rotate(var(--seat-rotation,0deg))}
.guest-01{background-position:1.5% 0}.guest-02{background-position:50% 0}.guest-03{background-position:98.5% 0}
.guest-04{background-position:1.5% 50%}.guest-05{background-position:50% 50%}.guest-06{background-position:98.5% 50%}
.guest-07{background-position:1.5% 100%}.guest-08{background-position:50% 100%}.guest-09{background-position:98.5% 100%}
.guest-seat-top{left:calc(50% - 29px);top:-29px;--seat-rotation:0deg}
.guest-seat-right{right:-14px;top:calc(50% - 29px);--seat-rotation:90deg}
.guest-seat-bottom{left:calc(50% - 29px);bottom:-29px;--seat-rotation:180deg}
.guest-seat-left{left:-14px;top:calc(50% - 29px);--seat-rotation:-90deg}
.guest-seat-top-left{left:23px;top:-29px;--seat-rotation:-35deg}
.guest-seat-top-right{right:23px;top:-29px;--seat-rotation:35deg}
.guest-seat-bottom-left{left:23px;bottom:-29px;--seat-rotation:-145deg}
.guest-seat-bottom-right{right:23px;bottom:-29px;--seat-rotation:145deg}
.status-ordering .guest-token{animation:guestArrive .48s cubic-bezier(.2,1.3,.4,1) both}
.guest-token.guest-departing{animation:guestDepart .8s ease-in both}
@keyframes guestArrive{from{opacity:0;transform:rotate(var(--seat-rotation,0deg)) scale(.55)}to{opacity:1;transform:rotate(var(--seat-rotation,0deg)) scale(1)}}
@keyframes guestDepart{to{opacity:0;transform:rotate(var(--seat-rotation,0deg)) translateY(18px) scale(.72)}}

.tableware-sprite{display:block;background-image:url('../images/tableware/tableware.png');background-size:300% 200%;background-repeat:no-repeat;pointer-events:none}
.plate-clean{background-position:20% 0}.plate-used{background-position:80% 0}.drink-sprite{background-position:20% 100%}.napkin-sprite{background-position:80% 100%}
.place-setting{position:absolute;z-index:3;left:50%;top:50%;width:43px;height:43px;transform:translate(-50%,-50%);pointer-events:none}
.place-setting .plate-sprite{width:100%;height:100%}
.place-left{left:20%}.place-right{left:80%}.place-top{top:19%}.place-bottom{top:81%}
.place-top-left{left:30%;top:20%}.place-top-right{left:70%;top:20%}.place-bottom-left{left:30%;top:80%}.place-bottom-right{left:70%;top:80%}
.table-large .place-setting{width:37px;height:37px}
.plate-food{position:absolute;z-index:2;inset:7px;display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;filter:drop-shadow(0 1px 1px rgba(79,60,45,.2))}
.plate-food img{width:100%;height:100%;object-fit:contain;min-width:0}
.plate-food.has-many{inset:8px 5px}.plate-food.has-many img,.plate-food.has-many span{width:50%;height:100%;font-size:15px}
.plate-extra{position:absolute;right:0;bottom:0;z-index:3;border-radius:7px;background:#fff9df;color:#8d5b37;font-size:10px;font-weight:1000;padding:1px 3px}
.place-setting .drink-sprite{position:absolute;z-index:3;right:-9px;bottom:-6px;width:20px;height:20px;filter:drop-shadow(0 2px 1px rgba(70,56,43,.14))}
.place-setting .served-drink{position:absolute;z-index:3;right:-12px;bottom:-8px;width:25px;height:25px;filter:drop-shadow(0 2px 1px rgba(70,56,43,.14))}
.served-drink img{width:100%;height:100%;object-fit:contain}
.served-drink small{position:absolute;right:-3px;bottom:-2px;border-radius:6px;padding:0 2px;background:#fff9df;color:#8d5b37;font-size:8px;font-weight:1000}
.drink-sprite.is-used{filter:saturate(.28) drop-shadow(0 2px 1px rgba(70,56,43,.14))}
.drink-sprite small{position:absolute;right:-5px;bottom:-4px;background:#fff7e9;border-radius:6px;font-size:9px;color:#715445;font-weight:1000}
.table-surface>.napkin-sprite{position:absolute;z-index:2;right:9px;bottom:8px;width:25px;height:25px;opacity:.88;transform:rotate(15deg)}
.status-served .place-setting{animation:plateArrive .42s cubic-bezier(.2,1.3,.35,1) both}
@keyframes plateArrive{from{opacity:0;transform:translate(-50%,-50%) scale(.55)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.table-unit.is-clearing .place-setting,.table-unit.is-clearing .napkin-sprite{animation:clearDishes .7s ease-in forwards}
.table-unit.is-clearing::after{content:'✨';position:absolute;z-index:8;left:50%;top:42%;font-size:40px;transform:translate(-50%,-50%);animation:clearSparkle .72s ease-out both}
@keyframes clearDishes{to{opacity:0;transform:translate(-50%,-80%) scale(.45)}}
@keyframes clearSparkle{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}45%{opacity:1;transform:translate(-50%,-50%) scale(1.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.5)}}

.clear-table-backdrop{position:fixed;inset:0;z-index:23;display:grid;place-items:center;background:rgba(28,53,51,.54);padding:24px;backdrop-filter:blur(5px)}
.clear-table-panel{position:relative;width:min(390px,94vw);min-height:335px;padding:28px 24px 26px;border:5px solid #fff4df;border-radius:35px;background:linear-gradient(#fffdf7,#fff1dc);box-shadow:0 15px 0 rgba(100,71,48,.22),0 28px 42px rgba(28,49,42,.24);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
.clear-table-panel .dialog-close{position:absolute;right:14px;top:14px}
.clear-table-illustration{position:relative;width:122px;height:122px;margin-top:13px}
.clear-table-illustration .plate-used{width:100%;height:100%}
.clear-table-illustration>span:last-child{position:absolute;right:-10px;top:-8px;font-size:37px}
.clear-table-action{border:0;border-radius:24px;width:100%;min-height:95px;background:linear-gradient(#88d6ae,#55bb88);color:#fff;box-shadow:0 7px 0 #3e9e70,0 13px 17px rgba(64,109,76,.16);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-weight:1000}
.clear-table-action>span{font-size:40px;line-height:1}.clear-table-action small{font-size:17px}
.clear-table-action:active{transform:translateY(5px);box-shadow:0 2px 0 #3e9e70}
@media(max-width:600px){.guest-token{width:49px;height:49px}.guest-seat-top{left:calc(50% - 24.5px);top:-23px}.guest-seat-right{right:-14px;top:calc(50% - 24.5px)}.guest-seat-bottom{left:calc(50% - 24.5px);bottom:-23px}.guest-seat-left{left:-14px;top:calc(50% - 24.5px)}.guest-seat-top-left,.guest-seat-bottom-left{left:16px}.guest-seat-top-right,.guest-seat-bottom-right{right:16px}.guest-seat-top-left,.guest-seat-top-right{top:-23px}.guest-seat-bottom-left,.guest-seat-bottom-right{bottom:-23px}.place-setting{width:37px;height:37px}.table-large .place-setting{width:33px;height:33px}.plate-food{inset:6px}.page-restaurant .status-ordering .table-number,.page-restaurant .status-waiting .table-number,.page-restaurant .status-served .table-number,.page-restaurant .status-needs_clear .table-number{min-width:37px;min-height:39px;font-size:29px}}
@media(prefers-reduced-motion:reduce){.status-ordering .guest-token,.guest-token.guest-departing,.status-served .place-setting,.table-unit.is-clearing .place-setting,.table-unit.is-clearing .napkin-sprite,.table-unit.is-clearing::after{animation-duration:.01ms!important}}

/* Shared game navigation: the room and cashier occupy the same header slots. */
.brand-letter{display:none}
.page-restaurant .topbar,.page-cashier .topbar{grid-template-columns:minmax(190px,1fr) auto minmax(190px,1fr);column-gap:12px}
.space-nav-group{justify-self:start;display:flex;align-items:center;gap:10px;min-width:0}
.space-nav{justify-self:start;width:190px;height:62px;padding:4px 12px 5px 5px;display:flex;align-items:center;gap:3px;border:2px solid rgba(255,255,255,.85);border-radius:22px;color:var(--ink);font:inherit;font-size:19px;font-weight:1000;line-height:1;white-space:nowrap;text-decoration:none;cursor:pointer;box-shadow:inset 0 3px 0 rgba(255,255,255,.75),0 5px 0 rgba(117,91,68,.17),0 9px 15px rgba(83,72,53,.1);transition:transform .12s ease,box-shadow .12s ease}
.space-nav--cashier{background:linear-gradient(#ffe9d9,#ffd6bd)}
.space-nav--restaurant{background:linear-gradient(#e0f5e7,#c6ead7)}
.space-nav--agenda{background:linear-gradient(#e7f2fb,#d3e8f5)}
.space-nav:active{transform:translateY(4px);box-shadow:inset 0 2px 0 rgba(255,255,255,.75),0 1px 0 rgba(117,91,68,.17)}
.space-nav-art{width:67px;height:53px;flex:0 0 67px;display:grid;place-items:center}
.space-nav-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px rgba(93,68,53,.17))}
.space-nav-label{flex:1;text-align:center}
.modal-open .space-nav{pointer-events:none}
@media(max-width:700px){
  .page-restaurant .topbar,.page-cashier .topbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:0}
  .space-nav-group{gap:7px}
  .page-restaurant .brand .brand-wordmark,.page-cashier .brand .brand-wordmark{display:none}
  .page-restaurant .brand .brand-letter,.page-cashier .brand .brand-letter{display:block;color:var(--coral-dark);font-size:32px;line-height:1;font-weight:1000;letter-spacing:-3px;text-shadow:0 2px 0 #fff7e9}
  .page-restaurant .brand .brand-hat,.page-cashier .brand .brand-hat{width:31px;height:38px}
  .space-nav{width:145px;height:53px;padding:3px 7px 4px 3px;border-radius:18px;gap:0;font-size:15px}
  .space-nav-art{width:52px;height:46px;flex-basis:52px}
}
@media(max-width:900px){
  .page-restaurant .brand .brand-wordmark{display:none}
  .page-restaurant .brand .brand-letter{display:block;color:var(--coral-dark);font-size:32px;line-height:1;font-weight:1000;letter-spacing:-3px;text-shadow:0 2px 0 #fff7e9}
}
@media(max-width:360px){
  .space-nav-group{gap:4px}
  .space-nav{width:113px;height:49px;padding-right:3px;font-size:12px}
  .space-nav-art{width:35px;height:41px;flex-basis:35px}
  .page-restaurant .brand .brand-letter,.page-cashier .brand .brand-letter{font-size:30px}
  .page-restaurant .brand .brand-hat,.page-cashier .brand .brand-hat{width:29px;height:35px}
}
@media(max-height:700px) and (min-width:701px){.space-nav{height:52px;border-radius:18px}.space-nav-art{height:45px}}
@media(max-height:600px) and (min-width:801px){.space-nav{height:48px}.space-nav-art{height:42px}}

/* Use the space freed by the redundant page headings. */
.page-restaurant .restaurant-main,.page-cashier .cashier-main{padding-top:10px}
.page-restaurant .dining-room{height:min(710px,calc(100dvh - 115px))}

/* The Restaurant keeps both child-friendly destinations visible in its header. */
@media(min-width:701px){
  .page-restaurant .space-nav-group .space-nav{width:clamp(145px,calc((100vw - 690px)/2 - 8px),190px)}
}
@media(max-width:700px){
  .page-restaurant .space-nav-group .space-nav{width:clamp(94px,calc((100vw - 135px)/4 - 6px),145px);height:52px;padding-inline:3px;font-size:clamp(11px,2vw,15px)}
  .page-restaurant .space-nav-group .space-nav-art{width:clamp(31px,6vw,50px);height:44px;flex-basis:clamp(31px,6vw,50px)}
  .page-restaurant .space-nav-group{gap:6px}
}
@media(max-width:430px){
  .page-restaurant .space-nav-group .space-nav{height:48px;border-radius:16px;font-size:11px}
  .page-restaurant .space-nav-group .space-nav-art{height:39px}
  .page-restaurant .space-nav-group{gap:4px}
}
