/* Lunch Lah! v10 — shared landscape laptop / Android tablet layout.
   All result information lives inside one roulette panel: no overlapping shadows. */
:root{--yellow:#ffe16a}
[hidden]{display:none!important}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.tv-header{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:54px;z-index:3}
.tv-header .brand{font-size:clamp(24px,2vw,37px)}
.tv-header .logo{width:clamp(43px,3.35vw,60px);height:clamp(43px,3.35vw,60px)}
.tv-header .brand small{font-size:clamp(10px,.7vw,13px)}
.date-weather{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:clamp(7px,.8vw,13px);min-width:0;background:#36264b;border:2px solid #80648c;border-radius:19px;padding:clamp(8px,.75vw,13px) clamp(11px,1.1vw,21px);box-shadow:0 4px 0 #150d25}
.weather-date{color:var(--yellow);font-weight:1000;font-size:clamp(15px,1.15vw,21px);white-space:nowrap}
.weather-separator{width:2px;height:25px;background:#806b9b;border-radius:20px}
.weather-icon{font-size:clamp(23px,1.6vw,30px);line-height:1}
#weatherText{font-weight:900;font-size:clamp(15px,1.08vw,20px);color:#fff5e5;white-space:nowrap}
.weather-source{color:#cbbbd7;font-size:clamp(10px,.7vw,13px);text-underline-offset:3px}
.tv-main>.eyebrow{font-size:clamp(13px,.84vw,17px);letter-spacing:.08em;padding:7px 15px;margin:0;transform:rotate(-1.5deg)}
.tv-main>h1{margin:0;font-size:clamp(53px,4.8vw,86px);line-height:1.02}
.selection-layout{width:min(100%,1480px);min-width:0;min-height:0}
.selection-main{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:center}
.selection-main .stage{
 width:100%;min-height:0;max-width:1050px;min-width:0;flex:1 1 auto;
 display:flex;flex-direction:column;align-items:stretch;
 position:relative;margin:0 auto;
 padding:clamp(8px,1vw,16px);
 border:4px solid #1b1030;border-radius:clamp(22px,2.4vw,35px);
 transform:none;box-shadow:0 6px 0 #120b22,0 12px 30px #09061945;
}
.selection-main .screen{
 flex:1 1 auto;min-height:0;max-height:100%;
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:clamp(4px,.75vh,10px);
 padding:clamp(9px,1vh,18px) clamp(11px,1.2vw,22px);
 overflow:hidden;
}
.stage-top{flex:0 0 auto;padding:0 8px clamp(4px,.65vh,10px);font-size:clamp(12px,.85vw,17px)}
.stage-sticker{top:-16px;right:-7px;padding:clamp(7px,.65vw,11px) clamp(9px,.85vw,16px);font-size:clamp(12px,.92vw,17px);transform:rotate(7deg)}
.stage-label{font-size:clamp(12px,.9vw,17px);padding:5px 15px;flex:0 0 auto}
.food-icon{flex:0 0 auto;width:clamp(52px,6.7vh,105px);height:clamp(52px,6.7vh,105px);font-size:clamp(35px,4.3vw,66px);margin:0}
.dish{font-size:clamp(31px,3.55vw,64px);line-height:1.1;margin:0;max-width:99%;min-height:0}
.details{font-size:clamp(14px,1.04vw,20px);line-height:1.25;margin:0;min-height:0;max-width:98%;text-wrap:balance}
#result{flex:0 0 auto;position:relative;z-index:3;width:min(100%,710px);min-height:0;margin:clamp(4px,.75vh,12px) 0 0}
#ratings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,.75vw,14px);width:100%}
.rating{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:0;min-height:clamp(52px,6.5vh,73px);background:#e9f6e8;color:#302044;border:2px solid #a6cfbd;border-radius:13px;padding:8px 10px;box-shadow:0 3px 0 #c4d9c2}
.rating:nth-child(2){background:#ffe9bd;border-color:#e8bd80;box-shadow:0 3px 0 #dfc597}
.rating-label{color:#685472;font-size:clamp(12px,.93vw,17px);font-weight:900;line-height:1.05}
.rating strong{color:#302044;font-size:clamp(14px,1.18vw,22px);font-weight:1000;line-height:1.15;text-align:center;text-wrap:balance}
.map-panel{display:flex;flex-direction:column;gap:clamp(7px,.75vh,11px);min-width:0;min-height:0;max-height:100%;height:100%;background:#3c2852;border:4px solid #1b1030;border-radius:clamp(21px,2vw,31px);padding:clamp(7px,.85vw,13px);box-shadow:0 6px 0 #120b23,0 12px 24px #0906194d;overflow:hidden}
.map-panel[hidden],.map-panel iframe[hidden],.map-unavailable[hidden]{display:none!important}
.map-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 5px;color:var(--yellow);font-size:clamp(13px,1vw,18px);font-weight:1000;line-height:1.15}
.map-panel-head strong{color:#fff8e9;font-size:clamp(14px,1.07vw,20px);max-width:71%;text-align:right;overflow-wrap:anywhere}
.map-panel iframe{flex:1 1 0;display:block;min-height:0;height:100%;width:100%;border:3px solid #201630;border-radius:14px;background:#eee6d9}
.map-panel p{flex:0 0 auto;color:#eddef6;font-size:clamp(13px,.85vw,16px);font-weight:800;line-height:1.3;text-align:left;margin:0;padding:2px 5px 4px}
.map-unavailable{flex:1 1 auto;display:grid;place-items:center;min-height:0;padding:18px;background:#2b2040;border:3px dashed #7e6a96;border-radius:14px;color:#fff5d5;text-align:center;font-weight:800;font-size:clamp(15px,1.05vw,19px)}
.tv-main>.controls{display:flex;align-items:center;justify-content:center;position:relative;z-index:9;width:100%;min-height:clamp(68px,8vh,88px);margin:0;padding:5px 0 11px}
.tv-main>.controls .primary{display:inline-flex;align-items:center;justify-content:center;max-width:min(100%,520px);min-height:clamp(54px,6.9vh,75px);padding:11px clamp(30px,3.6vw,68px);font-size:clamp(22px,1.7vw,31px)}
#reject{background:#ffd484;color:#35203e;border-color:#2c1b3b;box-shadow:0 6px 0 #a4744b,0 10px 0 #170e2b;white-space:normal;text-wrap:balance}
#reject:hover{filter:brightness(1.07)}
#remaining{display:none}
@media(min-width:900px){
 html,body{overflow:hidden}
 .app{
   display:grid;grid-template-rows:auto minmax(0,1fr);
   height:100vh;height:100svh;height:100dvh;
   min-height:0;max-height:100vh;max-height:100svh;max-height:100dvh;
   overflow:hidden;padding:clamp(9px,1.2vh,19px) clamp(20px,2.5vw,49px) clamp(10px,1.3vh,18px);
 }
 .tv-main{
   display:grid;grid-template-columns:minmax(0,1fr);
   grid-template-rows:max-content max-content minmax(0,1fr) max-content;
   min-height:0;height:100%;overflow:hidden;align-content:stretch;align-items:stretch;justify-items:center;
   gap:clamp(6px,.95vh,13px);padding:clamp(6px,.85vh,13px) 0 clamp(19px,2.8vh,33px);
 }
 .tv-main>.eyebrow{grid-row:1;align-self:center;justify-self:center}
 .tv-main>h1{grid-row:2;align-self:center;justify-self:center}
 .tv-main>.selection-layout{
   grid-row:3;min-height:0;max-height:100%;height:100%;
   align-self:stretch;justify-self:center;overflow:visible;
   display:flex;justify-content:center;align-items:stretch;
 }
 .tv-main>.selection-layout.has-map{
   display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
   gap:clamp(12px,1.3vw,23px);
 }
 .selection-layout .selection-main{height:100%;max-height:100%;justify-content:center}
 .selection-layout.has-map .selection-main{justify-content:flex-start}
 .selection-layout .selection-main .stage{height:100%;max-height:100%}
 .selection-layout.has-map .selection-main .stage{height:100%;max-height:100%}
 .selection-layout.has-map .map-panel{min-height:0}
 .tv-main>.controls{grid-row:4;justify-self:stretch;align-self:end}
}
@media(min-width:900px) and (max-height:720px){
 .app{padding-top:7px;padding-bottom:6px}
 .tv-header{min-height:45px}
 .tv-header .brand small{display:none}
 .tv-header .brand{font-size:clamp(23px,2vw,31px)}
 .tv-header .logo{width:43px;height:43px}
 .date-weather{padding:6px 11px;border-radius:16px}
 .weather-date{font-size:15px}
 #weatherText{font-size:14px}
 .weather-icon{font-size:21px}
 .tv-main{gap:4px;padding:3px 0 clamp(12px,2vh,19px)}
 .tv-main>.eyebrow{font-size:12px;padding:5px 12px}
 .tv-main>h1{font-size:clamp(40px,4vw,68px)}
 .selection-main .stage{padding:7px;border-width:3px;border-radius:22px}
 .stage-top{font-size:11px;padding-bottom:3px}
 .stage-sticker{top:-11px;font-size:11px;padding:5px 8px}
 .selection-main .screen{padding:5px 8px;gap:3px}
 .stage-label{font-size:11px;padding:4px 10px}
 .food-icon{width:clamp(40px,6vh,58px);height:clamp(40px,6vh,58px);font-size:clamp(28px,3.2vw,44px)}
 .dish{font-size:clamp(26px,3vw,45px)}
 .details{font-size:clamp(12px,.95vw,15px)}
 #result{margin:4px 0 0}
 .rating{min-height:43px;padding:5px 7px;gap:2px}
 .rating-label{font-size:12px}
 .rating strong{font-size:clamp(13px,1.03vw,17px)}
 .map-panel{padding:7px;gap:5px;border-width:3px}
 .map-panel-head{font-size:12px}
 .map-panel-head strong{font-size:13px}
 .map-panel p{font-size:12px}
 .tv-main>.controls{min-height:60px;padding:4px 0 6px}
 .tv-main>.controls .primary{font-size:21px;min-height:50px;padding:9px 30px}
}
@media(min-width:900px) and (max-height:490px){
 html,body{overflow:auto}
 .app{height:auto;max-height:none;min-height:100svh;overflow:visible}
 .tv-main{min-height:500px;overflow:visible}
 .tv-main>.selection-layout{min-height:250px}
}
@media(max-width:899px){
 .app{display:flex;flex-direction:column;min-height:100svh;height:auto;max-height:none;overflow:visible;padding:14px clamp(13px,2.4vw,25px)}
 .tv-header{flex-wrap:wrap;gap:11px}
 .date-weather{width:100%;justify-content:center;gap:7px;padding:8px 11px}
 .weather-date{font-size:15px}
 #weatherText{font-size:15px;white-space:normal}
 .weather-source{font-size:10px}
 .weather-separator{height:21px}
 .tv-main{display:flex;flex-direction:column;justify-content:flex-start;gap:12px;padding:14px 0 24px}
 .tv-main>h1{font-size:clamp(48px,8vw,76px)}
 .selection-layout,.selection-layout.has-map{display:flex;flex-direction:column;align-items:center;gap:18px;max-height:none;height:auto;overflow:visible}
 .selection-main{width:100%;height:auto}
 .selection-main .stage{min-height:310px;max-height:none;height:auto;margin:7px auto 0}
 .selection-main .screen{min-height:245px;padding:16px 11px}
 .dish{font-size:clamp(31px,5.8vw,50px)}
 .details{font-size:clamp(13px,1.8vw,17px)}
 .rating strong{font-size:clamp(14px,2vw,18px)}
 .rating-label{font-size:13px}
 .map-panel{min-height:320px;width:min(100%,740px);height:auto}
 .map-panel iframe{flex:initial;height:285px;min-height:250px}
 .tv-main>.controls{min-height:76px;padding:6px 0 13px}
 .tv-main>.controls .primary{font-size:24px;max-width:min(100%,460px)}
}
@media(max-width:520px){
 .tv-header .brand{font-size:25px}
 .tv-header .logo{width:42px;height:42px}
 .tv-main>h1{font-size:clamp(44px,10vw,62px)}
 .selection-main .stage{min-height:320px}
 .selection-main .screen{min-height:270px}
 .dish{font-size:clamp(29px,7.3vw,44px)}
 .food-icon{width:72px;height:72px;font-size:46px}
 #ratings{gap:8px}
 .rating{padding:6px;min-height:55px}
 .rating strong{font-size:14px}
 .map-panel{min-height:300px}
 .map-panel iframe{height:260px;min-height:230px}
 .tv-main>.controls .primary{width:100%;font-size:22px}
}
@media(prefers-reduced-motion:reduce){.stage,.food-icon,.dish{animation-duration:.001ms!important}}

/* v11 headline: casual two-line title without taking another grid row */
#heading {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:clamp(2px,.45vh,7px);
  text-align:center;
}
#heading .headline-main {
  display:block;
  white-space:nowrap;
  font:inherit;
  line-height:1.02;
}
#heading .headline-sub {
  display:block;
  font-family:inherit;
  font-size:clamp(16px,1.35vw,23px);
  font-weight:900;
  line-height:1.1;
  letter-spacing:.055em;
  color:#a3efd3;
  text-shadow:0 2px 0 #180e28;
}
@media(max-width:520px) {
  #heading .headline-sub {font-size:16px}
}

/* v12: prevent headline underline and sticker from overlapping the subtitle */
#heading {
  gap:clamp(7px,1vh,14px);
  line-height:1;
}
#heading .headline-main {
  line-height:1.05;
}
#heading .headline-main em {
  text-decoration:none;
}
#heading .headline-sub {
  line-height:1.25;
  position:relative;
  z-index:2;
}
.selection-main .stage-sticker {
  top:6px;
  right:12px;
  transform:rotate(5deg);
}
.selection-main .stage-top {
  padding-right:clamp(120px,11vw,170px);
}
@media(max-width:520px) {
  .selection-main .stage-sticker {
    top:6px;
    right:8px;
  }
  .selection-main .stage-top {
    padding-right:90px;
  }
}

/* v14: twelve soft pastel food stickers roaming around the screen.
   Animate transforms only, behind the content; no network images. */
.food-sticker-layer {
  position:absolute;
  inset:0;
  overflow:hidden;
  z-index:0;
  pointer-events:none;
  user-select:none;
  transition:opacity .35s ease;
}
.food-sticker {
  --rotate:0deg;
  --delay:0s;
  --period:18s;
  --jitter-x:0px;
  --jitter-y:0px;
  --sticker-bg:#fff0c4;
  position:absolute;
  display:grid;
  place-items:center;
  width:clamp(49px,4.1vw,79px);
  aspect-ratio:1;
  border:3px solid #fff9ee;
  border-radius:45% 55% 53% 47% / 53% 46% 54% 47%;
  background:var(--sticker-bg);
  box-shadow:0 4px 0 #21142e,0 8px 16px #10091d63,inset 0 -4px 0 #ffffff70;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  font-size:clamp(31px,3.1vw,55px);
  line-height:1;
  text-shadow:0 2px 4px #32204429;
  opacity:.96;
  pointer-events:none;
  transform:translate3d(0,0,0) rotate(var(--rotate));
  will-change:transform;
  animation:food-sticker-wander var(--period) ease-in-out var(--delay) infinite;
}
.food-sticker::before {
  content:"✦";
  position:absolute;
  top:-11px;
  right:-9px;
  font-size:clamp(14px,1.2vw,21px);
  font-family:inherit;
  color:#ffe16a;
  text-shadow:2px 2px 0 #352442,-1px -1px 0 #352442;
}
.food-sticker::after {
  content:"";
  position:absolute;
  left:4px;
  bottom:4px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ffffffb3;
}
.food-sticker.tone-0{--sticker-bg:#ffdfbe}
.food-sticker.tone-1{--sticker-bg:#fbd0df}
.food-sticker.tone-2{--sticker-bg:#c6f2e3}
.food-sticker.tone-3{--sticker-bg:#e5d8ff}
.food-sticker.tone-4{--sticker-bg:#ffefad}
.food-sticker.tone-5{--sticker-bg:#c8eafa}
/* Six on each outer edge; the motion paths wander inward and vertically. */
.food-sticker.slot-0 {top:calc(18% + var(--jitter-y));left:calc(3.2% + var(--jitter-x))}
.food-sticker.slot-1 {top:calc(20% + var(--jitter-y));right:calc(3.3% + var(--jitter-x))}
.food-sticker.slot-2 {top:calc(30% + var(--jitter-y));left:calc(5% + var(--jitter-x))}
.food-sticker.slot-3 {top:calc(32% + var(--jitter-y));right:calc(4.4% + var(--jitter-x))}
.food-sticker.slot-4 {top:calc(43% + var(--jitter-y));left:calc(2.7% + var(--jitter-x))}
.food-sticker.slot-5 {top:calc(45% + var(--jitter-y));right:calc(2.8% + var(--jitter-x))}
.food-sticker.slot-6 {top:calc(56% + var(--jitter-y));left:calc(5.5% + var(--jitter-x))}
.food-sticker.slot-7 {top:calc(58% + var(--jitter-y));right:calc(5.1% + var(--jitter-x))}
.food-sticker.slot-8 {top:calc(69% + var(--jitter-y));left:calc(3% + var(--jitter-x))}
.food-sticker.slot-9 {top:calc(71% + var(--jitter-y));right:calc(2.6% + var(--jitter-x))}
.food-sticker.slot-10{top:calc(82% + var(--jitter-y));left:calc(5.1% + var(--jitter-x))}
.food-sticker.slot-11{top:calc(83% + var(--jitter-y));right:calc(5.3% + var(--jitter-x))}
@keyframes food-sticker-wander {
  0%,100%{transform:translate3d(0,0,0) rotate(var(--rotate))}
  27%{transform:translate3d(var(--drift-x1),var(--drift-y1),0) rotate(calc(var(--rotate) + 12deg))}
  56%{transform:translate3d(var(--drift-x2),var(--drift-y2),0) rotate(calc(var(--rotate) - 10deg))}
  81%{transform:translate3d(var(--drift-x3),var(--drift-y3),0) rotate(calc(var(--rotate) + 7deg))}
}
.food-sticker-layer.is-spinning .food-sticker {
  animation:food-sticker-cheer 1.55s ease-in-out infinite;
}
@keyframes food-sticker-cheer {
  0%,100%{transform:translate3d(0,0,0) rotate(var(--rotate)) scale(1)}
  30%{transform:translate3d(var(--drift-x3),-15px,0) rotate(calc(var(--rotate) - 9deg)) scale(1.09)}
  66%{transform:translate3d(var(--drift-x2),8px,0) rotate(calc(var(--rotate) + 11deg)) scale(1.04)}
}
/* Still readable when the map appears, but less prominent than the winner. */
.app.has-result .food-sticker-layer{opacity:.67}
@media(min-width:900px) and (max-width:1250px) {
  .food-sticker{width:clamp(41px,4vw,55px);font-size:clamp(27px,2.8vw,40px)}
}
@media(min-width:900px) and (max-height:660px) {
  .food-sticker{width:clamp(36px,4vw,48px);font-size:clamp(26px,2.75vw,36px);border-width:2px}
  /* On short screens keep a modest, continuous movement without collisions. */
  .food-sticker{animation-name:food-sticker-wander-compact}
}
@keyframes food-sticker-wander-compact {
  0%,100%{transform:translate3d(0,0,0) rotate(var(--rotate))}
  28%{transform:translate3d(13px,-17px,0) rotate(calc(var(--rotate) + 8deg))}
  59%{transform:translate3d(-10px,15px,0) rotate(calc(var(--rotate) - 8deg))}
  82%{transform:translate3d(8px,-9px,0) rotate(calc(var(--rotate) + 4deg))}
}
/* Samsung tablets in portrait and mobile get smaller, lighter stickers,
   still all twelve but always behind the interface. */
@media(max-width:899px) {
  .food-sticker{width:clamp(31px,4.6vw,49px);font-size:clamp(23px,3.4vw,35px);border-width:2px}
  .food-sticker-layer{opacity:.48}
  .app.has-result .food-sticker-layer{opacity:.27}
}
@media(max-width:520px) {
  .food-sticker{width:29px;font-size:22px;border-width:2px}
  .food-sticker::before{font-size:12px;top:-9px;right:-6px}
  .food-sticker::after{width:5px;height:5px}
}
@media(prefers-reduced-motion:reduce) {
  .food-sticker,.food-sticker-layer.is-spinning .food-sticker{animation:none!important;will-change:auto}
  .food-sticker-layer{transition:none}
}

/* v15 — independent, optically centred emoji inside a stable round badge.
   The old icon glyph was larger than its 6.7vh circle on laptop viewports. */
.food-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  box-sizing:border-box;
  container-type:inline-size;
  overflow:hidden;
  border-radius:50%;
  font-size:0; /* Typography is handled by the glyph; the circle never changes size. */
  animation:food-icon-bob 3.6s ease-in-out infinite;
}
.food-glyph {
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  white-space:nowrap;
  line-height:1;
  letter-spacing:0;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  font-size:clamp(25px,4.1vh,54px);
  font-size:clamp(25px,68cqi,60px);
  transform:translateY(-.02em);
}
@keyframes food-icon-bob {
  0%,100% {transform:translateY(0)}
  50% {transform:translateY(-3px)}
}
@media(prefers-reduced-motion:reduce) {
  .food-icon {animation:none!important}
}

/* v20: Keep the new umbrella advice on a second compact line of the weather card. */
.date-weather {
  flex-direction:column;
  flex-wrap:nowrap;
  align-items:stretch;
  justify-content:center;
  gap:clamp(4px,.45vh,7px);
}
.weather-summary {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(6px,.65vw,11px);
}
.umbrella-report {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(7px,.8vw,13px);
  padding-top:3px;
  border-top:1px solid #80648c88;
  line-height:1.2;
}
.umbrella-question {
  color:#f8effb;
  font-size:clamp(12px,.83vw,16px);
  font-weight:850;
}
.umbrella-answer {
  color:#2b1b3c;
  background:#ffe16a;
  border-radius:999px;
  padding:4px 11px;
  font-size:clamp(13px,.95vw,17px);
  font-weight:1000;
  white-space:nowrap;
}
.umbrella-answer[data-status="need"] {background:#ffb7a5}
.umbrella-answer[data-status="no"] {background:#a3efd3}
.umbrella-answer[data-status="maybe"] {background:#ffe16a}
.umbrella-answer[data-status="unknown"] {background:#e5dbec}
@media(min-width:900px) and (max-height:720px) {
  .date-weather {gap:2px}
  .umbrella-question {font-size:12px}
  .umbrella-answer {font-size:12px;padding:3px 9px}
}
@media(max-width:899px) {
  .weather-summary,.umbrella-report {justify-content:center}
}
@media(max-width:520px) {
  .weather-summary {gap:5px}
  .umbrella-report {flex-wrap:wrap;gap:6px}
  .umbrella-question {font-size:12px}
  .umbrella-answer {font-size:13px}
}

/* v21: compact weather / umbrella header and readable thinking messages. */
@media(min-width:1450px) {
  .date-weather {
    flex-direction:row;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:nowrap;
    gap:clamp(9px,.8vw,15px);
  }
  .weather-summary {flex-wrap:nowrap;gap:clamp(5px,.55vw,9px)}
  .umbrella-report {
    flex-wrap:nowrap;
    border-top:0;
    border-left:1px solid #80648c88;
    padding-top:0;
    padding-left:clamp(9px,.8vw,15px);
    white-space:nowrap;
  }
}
.date-weather {padding-top:clamp(5px,.55vw,10px);padding-bottom:clamp(5px,.55vw,10px)}
.umbrella-report {padding-top:2px}
.dish.thinking-text {
  max-width:min(94%,790px);
  min-height:0;
  font-size:clamp(20px,2.2vw,38px);
  line-height:1.2;
  letter-spacing:-.02em;
  font-weight:900;
  text-wrap:balance;
  overflow-wrap:break-word;
  text-align:center;
}
.stage.spinning .dish.thinking-text {filter:none}
@media(max-width:899px) {
  .dish.thinking-text {font-size:clamp(19px,4.3vw,29px);max-width:94%}
}
@media(max-width:520px) {
  .dish.thinking-text {font-size:clamp(18px,5vw,23px);line-height:1.18}
}
@media(min-width:900px) and (max-height:660px) {
  .dish.thinking-text {font-size:clamp(18px,1.85vw,29px);line-height:1.15}
}

/* v22: two readable thoughts, each held for ~2.2 seconds. Fade and slide
   into view, stay still for reading, then gently disappear before the swap. */
.dish.thinking-text.thinking-phase-one {
  animation:thinking-phrase-one 2.2s ease-in-out both;
}
.dish.thinking-text.thinking-phase-two {
  animation:thinking-phrase-two 2.2s ease-in-out both;
}
@keyframes thinking-phrase-one {
  0%{opacity:0;transform:translateY(12px)}
  16%{opacity:1;transform:translateY(0)}
  79%{opacity:1;transform:translateY(0)}
  100%{opacity:0;transform:translateY(-10px)}
}
@keyframes thinking-phrase-two {
  0%{opacity:0;transform:translateY(12px)}
  16%{opacity:1;transform:translateY(0)}
  79%{opacity:1;transform:translateY(0)}
  100%{opacity:0;transform:translateY(-10px)}
}
@media(prefers-reduced-motion:reduce){
  .dish.thinking-text.thinking-phase-one,
  .dish.thinking-text.thinking-phase-two{animation:none!important}
}

/* v23: no Lucky Pick badge, so release its reserved right-hand space. */
.selection-main .stage-top{padding-right:8px}
@media(max-width:520px){
  .selection-main .stage-top{padding-right:8px}
}
/* Match the umbrella question to the weather report's font, weight and colour. */
.umbrella-question{
  color:#fff5e5;
  font-weight:900;
  font-size:clamp(15px,1.08vw,20px);
  line-height:1.25;
}
@media(min-width:900px) and (max-height:720px){
  .umbrella-question{font-size:14px}
}
@media(max-width:899px){
  .umbrella-question{font-size:15px}
}

/* v24: Long, deliberately silly pickup-only choice fits in the machine. */
.dish.is-long-name{
  font-size:clamp(21px,2.1vw,37px);
  line-height:1.16;
  letter-spacing:-.02em;
  max-width:96%;
  text-wrap:balance;
}
.map-unavailable a{
  color:#ffe16a;
  text-underline-offset:4px;
  font-weight:950;
}
.map-unavailable a:focus-visible{outline:3px solid #a3efd3;outline-offset:4px}
@media(max-width:899px){
  .dish.is-long-name{font-size:clamp(20px,4.2vw,30px)}
}
@media(max-width:520px){
  .dish.is-long-name{font-size:clamp(19px,5vw,24px);line-height:1.14}
}
@media(min-width:900px) and (max-height:660px){
  .dish.is-long-name{font-size:clamp(19px,1.9vw,30px)}
}

/* v27: Keep the initial YOUR LUNCH IS... announcement on a single line.
   Scope to the ready state so the long result names and thinking jokes
   can still wrap naturally after a spin. */
#stage:not(.spinning):not(.reveal) #dish {
  white-space:nowrap;
  text-wrap:nowrap;
  overflow-wrap:normal;
  width:100%;
  max-width:100%;
  font-size:clamp(22px,5.1vw,62px);
  letter-spacing:-.035em;
  text-align:center;
}

/* v28: Give the starting-screen lunch machine more horizontal breathing room.
   Previously its flex child shrank to the intrinsic width (~570px).
   Cap the machine at 720px on laptop/tablet landscape; leave the map split
   and portrait/mobile layouts entirely unchanged. */
@media(min-width:900px){
  .selection-layout:not(.has-map) .selection-main{
    flex:0 1 720px;
    width:min(100%,720px);
    max-width:720px;
  }
}

/* v29: Keep both thinking jokes legible across the four-second TV animation. */
@media(min-width:900px){
 .selection-layout:not(.has-map) .selection-main{
  flex-basis:760px;width:min(100%,760px);max-width:760px;
 }
}
.stage.spinning{animation:none} /* The emoji moves, not the text panel. */
.stage.spinning .screen{background:radial-gradient(circle at 50% 44%,#fffdf2 0%,#fff5da 62%,#ffe6be 100%)}
.stage.spinning .food-icon{
 width:clamp(64px,9vh,88px);height:clamp(64px,9vh,88px);
 animation:thinking-bob 1.5s ease-in-out infinite;
 box-shadow:0 5px 0 #3020441f,0 0 0 6px #ffe39d30;
}
@keyframes thinking-bob{
 0%,100%{transform:translateY(0) rotate(-4deg)}
 50%{transform:translateY(-5px) rotate(4deg)}
}
.stage.spinning .dish.thinking-text{
 color:#3b294d;font-size:clamp(23px,2.4vw,41px);
 font-weight:1000;letter-spacing:-.025em;line-height:1.16;
 max-width:min(94%,800px);text-shadow:none;
}
/* Brief 200ms transitions instead of long unreadable fadeouts. */
.dish.thinking-text.thinking-phase-one,
.dish.thinking-text.thinking-phase-two{
 animation:thinking-phrase-readable 2.2s ease-in-out both;
}
@keyframes thinking-phrase-readable{
 0%{opacity:.7;transform:translateY(6px)}
 9%{opacity:1;transform:translateY(0)}
 91%{opacity:1;transform:translateY(0)}
 100%{opacity:.7;transform:translateY(-4px)}
}
.spin-caption{
 position:absolute;z-index:2;left:12px;right:12px;bottom:36px;
 color:#604a67;font-size:clamp(11px,.86vw,14px);
 font-weight:900;letter-spacing:.12em;line-height:1.2;
 text-align:center;text-transform:uppercase;pointer-events:none;
}
.stage.spinning .progress{
 left:12%;right:12%;bottom:15px;height:11px;
 background:#442b5666;border:1px solid #452b58a6;
 box-shadow:inset 0 1px 2px #2a193047;
}
.stage.spinning .progress span{
 animation:load 4.4s linear forwards;
 background:linear-gradient(90deg,#8fe5c9,#a3efd3,#ffe16a);
}
@media(max-width:899px){
 .stage.spinning .dish.thinking-text{font-size:clamp(21px,4.1vw,29px)}
}
@media(max-width:520px){
 .stage.spinning .food-icon{width:72px;height:72px}
 .stage.spinning .dish.thinking-text{font-size:clamp(19px,5.6vw,24px);line-height:1.2}
 .spin-caption{font-size:10px;letter-spacing:.07em;bottom:33px}
}
@media(min-width:900px) and (max-height:660px){
 .stage.spinning .food-icon{width:56px;height:56px}
 .stage.spinning .dish.thinking-text{font-size:clamp(20px,2.15vw,31px)}
 .spin-caption{bottom:27px;font-size:10px}
 .stage.spinning .progress{height:7px;bottom:10px}
}
@media(prefers-reduced-motion:reduce){
 .stage.spinning .food-icon,.stage.spinning .dish.thinking-text{animation:none!important}
}

/* v30: A deliberately minimal opening scene.
   Keep the existing logo, Novena weather and animated food stickers; the
   machine, badge and map enter only after the first Eat what? press. */
.headline-question{display:none}
.app.intro-mode .headline-question{display:inline;color:var(--yellow)}
.app.intro-mode .tv-main{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  justify-items:center;
  align-content:center;
  min-height:0;
  height:auto;
  width:100%;
  gap:clamp(28px,5.5vh,58px);
  padding:clamp(24px,6vh,65px) 0;
}
.app.intro-mode .tv-main>.eyebrow,
.app.intro-mode .tv-main>.selection-layout{display:none!important}
.app.intro-mode .tv-main>h1{
  margin:0;
  font-size:clamp(60px,7.7vw,132px);
  line-height:1.06;
  letter-spacing:-.055em;
  text-align:center;
  max-width:100%;
}
.app.intro-mode #heading .headline-main{
  white-space:normal;
  text-wrap:balance;
}
.app.intro-mode .tv-main>.controls{
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:center;
  justify-self:center;
  flex:0 0 auto;
  grid-row:auto;
  width:min(100%,360px);
  min-height:0;
  padding:0;
  margin:0;
}
.app.intro-mode .tv-main>.controls #spin{
  width:100%;
  min-height:78px;
  padding:17px 28px;
  font-size:clamp(26px,2.3vw,35px);
  border-radius:22px;
  box-shadow:0 9px 0 #b93754,0 14px 0 #170d27;
}
.app.intro-mode .tv-main>.controls #spin:hover{
  transform:translateY(-3px);
}
.app.intro-mode .tv-main>.controls #spin:active{
  transform:translateY(7px);
  box-shadow:0 2px 0 #b93754,0 6px 0 #170d27;
}
/* Reveal the existing roulette in 380ms; no new waiting time. */
.app.intro-revealed .tv-main>.selection-layout{
  animation:machine-enter .38s cubic-bezier(.2,.85,.2,1);
}
@keyframes machine-enter{
  from{opacity:0;transform:translateY(15px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@media(max-width:899px){
  .app.intro-mode .tv-main{
    flex:1 1 auto;
    justify-content:center;
    gap:clamp(28px,5vh,48px);
    padding:clamp(35px,8vh,80px) 0;
  }
  .app.intro-mode .tv-main>h1{
    font-size:clamp(45px,9vw,80px);
  }
}
@media(max-width:520px){
  .app.intro-mode .tv-main{
    gap:36px;
    padding:35px 0 45px;
  }
  .app.intro-mode .tv-main>h1{
    font-size:clamp(43px,11.2vw,58px);
  }
  .app.intro-mode .tv-main>.controls{
    width:min(100%,320px);
  }
  .app.intro-mode .tv-main>.controls #spin{
    min-height:72px;
    padding:16px 25px;
    font-size:27px;
  }
}
@media(prefers-reduced-motion:reduce){
  .app.intro-revealed .tv-main>.selection-layout{animation:none!important}
}
