/* Lobby: welcome, kitchen scene and footer. The game menu (collection pool + five games) is styled in shared/game-menu.css (2026-11-16). */
:root { color-scheme: dark; --cream: #fff3df; --ink: #573b2c; --muted: #735844; --mint: #bbdfca; --coral: #efb8a5; font-family: 'Zen Maru Gothic', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif; font-weight: 700; color: var(--cream); }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body { background: linear-gradient(180deg, #352216d9, #493024ef 68%, #352216f5), url('assets/kitchen-night.png') center / cover fixed no-repeat; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #f5c85d; outline-offset: 5px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.lobby { width: min(1180px, 100%); margin: auto; padding: max(28px, env(safe-area-inset-top)) 28px max(24px, env(safe-area-inset-bottom)); }
.welcome { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; margin: 0 0 28px; }
.lobby-header { position: relative; padding: 8px 60px 8px 0; }
.brand-name { margin: 0 0 12px; color: #ffdfb9; font-size: 16px; letter-spacing: .08em; }
.brand-name span { margin-left: 8px; color: #d9ba99; font-size: .8em; }
.lobby-header h1 { margin: 0; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.2; font-weight: 900; letter-spacing: .025em; text-shadow: 0 3px 18px #1b0d0966; }
.lobby-header h1 span { display: block; color: #f4c79b; }
.welcome-intro { margin: 14px 0 0; color: #ead7bf; font-size: 15px; line-height: 1.8; }
.sound { position: absolute; right: 0; top: 8px; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #d7b18690; border-radius: 50%; background: #6e4b35; color: #fff3d6; font-size: 21px; box-shadow: 0 3px 0 #281c1866; }
.sound.off { color: #e0c6a5; background: #553a29; }
.sound:active { transform: translateY(2px); }
.kitchen-scene{position:relative;height:128px;flex:none;width:min(100%,367px);margin:1px 0 17px;isolation:isolate}.scene-shelf{position:absolute;left:-12px;right:-12px;bottom:4px;height:13px;border-radius:50%;background:radial-gradient(ellipse,#b1794266,transparent 70%);border-bottom:1px solid #efc59026;z-index:0}.friend{position:absolute;border:0;padding:0;background:none;touch-action:manipulation;min-width:44px;min-height:44px;z-index:3;outline-offset:2px}.friend img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #28170765);pointer-events:none;transform-origin:50% 85%;transition:transform .18s}.friend:hover img{transform:translateY(-2px)}.friend:active img{transform:scale(.94)}.friend.meimei{left:1%;bottom:0;width:110px;height:122px;z-index:5}.friend.meimei>img{animation:meimei-breathe 4.2s ease-in-out infinite}.friend.tomato{left:44%;bottom:37px;width:51px;height:51px;z-index:3}.friend.tomato img{animation:food-breathe 4s ease-in-out infinite;animation-delay:-1.2s}.friend.cabbage{right:17%;bottom:38px;width:48px;height:48px;z-index:4;transform:rotate(9deg)}.friend.cabbage img{animation:taste-bob 3.7s ease-in-out infinite;animation-delay:-1.8s}.friend.cat{right:3%;bottom:0;width:59px;height:65px;z-index:6}.friend.cat img{animation:cat-sway 4.6s ease-in-out infinite}.friend.react img{animation:friend-pop .46s ease-out!important}.friend-speech{position:absolute;left:35%;right:1%;top:1px;color:#79543b;background:#fff1dcea;border:1px solid #e0b48b;border-radius:12px 12px 12px 0;padding:6px 9px;min-height:42px;max-height:65px;z-index:8;box-shadow:0 3px 8px #39211129;pointer-events:none}.friend-speech::before{content:'';position:absolute;width:6px;height:6px;background:#fff1dc;bottom:-4px;left:7px;transform:skew(-25deg);border-bottom:1px solid #e0b48b;border-left:1px solid #e0b48b}.friend-speech strong{font-size:9px;letter-spacing:1px;display:block;color:#b5825e;line-height:1.25}.friend-speech p{font-size:10px;line-height:1.5;margin:2px 0 0;white-space:pre-line}.friend-speech.pop{animation:speech-pop .25s ease-out}.scene-hint{position:absolute;bottom:-17px;left:0;right:0;text-align:center;font-size:9px;letter-spacing:.6px;color:#e4cba7;text-shadow:0 1px 3px #392018;margin:0;pointer-events:none}.scene-hint span{font-size:12px;color:#c5dbc2;margin-left:2px}.soup-station{position:absolute;left:43%;bottom:4px;width:76px;height:56px;z-index:4;pointer-events:none}.soup-station>svg{width:100%;height:100%;filter:drop-shadow(0 3px 2px #40251844)}.little-steam{position:absolute;left:25%;bottom:70%;width:45%;height:35px;pointer-events:none;z-index:6}.little-steam i{position:absolute;bottom:0;width:5px;height:20px;background:linear-gradient(transparent,#ffe6c29c,transparent);border-radius:100%;filter:blur(1px);animation:steam-rise 3s ease-in-out infinite;opacity:0}.little-steam i:nth-child(1){left:10%;animation-delay:-1s}.little-steam i:nth-child(2){left:45%;height:27px;animation-delay:-2s}.little-steam i:nth-child(3){left:80%;animation-delay:-.5s}.meimei .little-steam{left:44%;bottom:29%;height:31px;width:30%;z-index:7}.stir-spoon{position:absolute;right:-2px;bottom:-21px;width:13px;height:50px;transform:rotate(-18deg);transform-origin:45% 82%;animation:stir 3.5s ease-in-out infinite;pointer-events:none}.tasting-spoon{position:absolute;left:-12px;bottom:0;width:40px;height:14px;transform:rotate(-17deg);pointer-events:none}.broom{position:absolute;right:-8px;bottom:-3px;width:33px;height:77px;transform-origin:25% 78%;transform:rotate(13deg);animation:sweep 4.6s ease-in-out infinite;pointer-events:none;filter:drop-shadow(0 2px 1px #321b1422)}.cat.react .broom{animation:fast-sweep .7s ease-in-out 2}.dust{position:absolute;right:-13px;bottom:-3px;width:48px;height:14px;pointer-events:none;opacity:0}.dust i{position:absolute;background:#ecce969c;border-radius:50%;width:13px;height:7px;bottom:0}.dust i:nth-child(2){left:13px;width:17px;height:9px}.dust i:nth-child(3){left:27px;width:11px;height:6px}.cat.react .dust{animation:dust-puff 1.3s ease-out}.tomato.react .stir-spoon{animation:stir .5s ease-in-out 3}.meimei.react .little-steam i,.cabbage.react+.little-steam i{animation-duration:.6s}
/* Keep the little kitchen's existing reactions and controls. */
.kitchen-scene { width: min(100%, 460px); height: 190px; margin: 10px auto 18px; }
.friend.meimei { width: 160px; height: 178px; left: 0; }
.friend.tomato { width: 61px; height: 61px; left: 44%; bottom: 42px; }
.friend.cabbage { width: 55px; height: 55px; right: 18%; bottom: 50px; }
.friend.cat { width: 70px; height: 77px; right: 3%; }
.friend-speech { left: 39%; right: 1%; top: 2px; min-height: 63px; max-height: none; padding: 8px 11px; }
.friend-speech strong { font-size: 11px; color: #906143; }
.friend-speech p { font-size: 12px; line-height: 1.6; }
.soup-station { left: 43%; width: 93px; height: 69px; }
.scene-hint { bottom: -18px; font-size: 11px; line-height: 1.5; color: #ebd4b6; }
.broom { right: -2px; }
.lobby-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 22px; margin-top: 30px; padding-top: 14px; border-top: 1px solid #d2ad7c30; color: #d4bd9e; }
.site-home { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.site-home span { margin-left: 5px; }
.lobby-footer small { width: 100%; text-align: center; margin-top: 2px; font-size: 10px; line-height: 1.8; }
.lobby-footer small span { margin: 0 5px; }
@keyframes meimei-breathe{50%{transform:translateY(-2px) rotate(-1deg)}}@keyframes food-breathe{50%{transform:translateY(-2px) rotate(3deg)}}@keyframes taste-bob{50%{transform:translateY(-2px) rotate(-5deg)}}@keyframes cat-sway{50%{transform:rotate(-4deg) translateX(-1px)}}@keyframes steam-rise{15%{opacity:0}45%{opacity:.75}80%{opacity:0;transform:translateY(-22px) translateX(5px) scaleX(1.3)}}@keyframes stir{50%{transform:rotate(16deg)}}@keyframes sweep{30%{transform:rotate(24deg)}65%{transform:rotate(-4deg)}}@keyframes fast-sweep{25%{transform:rotate(31deg)}75%{transform:rotate(-15deg)}}@keyframes dust-puff{15%{opacity:1}75%{opacity:0;transform:translateX(14px) translateY(-7px) scale(1.5)}}@keyframes friend-pop{40%{transform:translateY(-5px) rotate(-7deg) scale(1.06)}75%{transform:rotate(4deg)}}@keyframes speech-pop{from{transform:translateY(3px) scale(.97);opacity:.7}to{transform:none;opacity:1}}
@media (max-width: 1099px) and (min-width: 720px) {
  .lobby { padding-inline: 24px; }
  .welcome { grid-template-columns: 1fr 1fr; gap: 16px; }
  .lobby-header { padding-right: 50px; }
  .welcome-intro { font-size: 13px; }
  .kitchen-scene { height: 165px; }
  .friend.meimei { width: 130px; height: 148px; }
  .friend.tomato { width: 51px; height: 51px; bottom: 39px; }
  .friend.cabbage { width: 48px; height: 48px; bottom: 40px; }
  .friend.cat { width: 60px; height: 66px; right: 0; }
  .friend-speech { left: 36%; padding: 6px 8px; }
  .friend-speech p { font-size: 11px; }
}
@media (max-width: 719px) {
  .lobby { padding: max(20px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom)); }
  .welcome { grid-template-columns: 1fr; gap: 7px; margin-bottom: 24px; }
  .lobby-header { padding: 0 54px 0 3px; }
  .brand-name { font-size: 13px; margin-bottom: 10px; }
  .lobby-header h1 { font-size: clamp(30px, 8.5vw, 37px); }
  .lobby-header h1 span { display: inline; }
  .welcome-intro { font-size: 13px; margin-top: 11px; }
  .sound { top: 0; }
  .kitchen-scene { height: 150px; margin: 10px auto 16px; width: min(100%, 350px); }
  .friend.meimei { width: 125px; height: 143px; }
  .friend.tomato { width: 51px; height: 51px; left: 44%; bottom: 35px; }
  .friend.cabbage { width: 48px; height: 48px; right: 17%; bottom: 38px; }
  .friend.cat { width: 61px; height: 67px; right: 2%; }
  .broom, .dust { right: 12px; }
  .friend-speech { left: 38%; top: 0; padding: 6px 8px; min-height: 59px; }
  .friend-speech strong { font-size: 10px; }
  .friend-speech p { font-size: 11px; line-height: 1.55; }
  .soup-station { width: 78px; height: 57px; }
  .scene-hint { font-size: 10px; bottom: -17px; }
  .lobby-footer { gap: 2px 15px; margin-top: 25px; }
  .site-home { font-size: 11px; }
  .lobby-footer small { font-size: 9px; }
}
@media (max-width: 359px) {
  .lobby { padding-inline: 12px; }
  .lobby-header h1 { font-size: 28px; }
}

/* Room for Meimei's news and the topping rules, using the kitchen's existing art. */
@font-face {
  font-family: 'Meimei Lobby Rounded';
  src: url('assets/fonts/lobby-reward-rounded.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
.friend-speech {
  min-height: 92px;
  padding: 7px 9px 8px;
  pointer-events: auto;
}
.friend-speech-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding-inline-end: 65px;
}
.friend-speech strong { color: #6f4732; font-size: 12px; }
.friend-speech p {
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}
#speech-sample {
  padding: 2px 6px;
  border-radius: 6px;
  background: #efd2af;
  color: #643d2a;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}
.friend-speech[data-kind="winner"] { background: #fff3df; border-color: #d9975f; }
.friend-speech[data-kind="winner"] p { color: #763d27; }
.friend-speech-controls {
  display: flex;
  gap: 2px;
  position: absolute;
  top: 5px;
  right: 6px;
}
.friend-speech-controls[hidden] { display: none; }
.friend-speech-controls button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #f2dfc5;
  color: #68462f;
  font-size: 15px;
  line-height: 1;
}
.friend-speech-controls button[hidden] { display: none; }
.friend-speech-controls button:hover { background: #ebcda8; }
#speech-next { font-size: 22px; }

.lobby-reward {
  max-width: 720px;
  margin: -.55rem auto clamp(1.1rem, 3vw, 2rem);
  padding: 13px clamp(12px, 3vw, 24px) 6px;
  border: 1px solid #e5c2aa;
  border-radius: 19px 19px 19px 9px;
  background: linear-gradient(125deg, #fffaf4, #fff1e4);
  box-shadow: 0 3px 0 #efdbcb;
  color: #5e3a2a;
}
.reward-main {
  font: 800 clamp(1.19rem, 5.4vw, 1.65rem)/1.4 'Meimei Lobby Rounded', 'Zen Maru Gothic', 'Noto Sans TC', sans-serif;
  letter-spacing: .018em;
}
.reward-main p { margin: 0; }
.reward-main p + p { margin-top: 2px; }
.reward-main p:last-child { margin-top: 5px; color: #894436; }
.reward-phrase { white-space: nowrap; }
.reward-links { position: relative; margin-top: 9px; border-top: 1px solid #ead3c1; }
.reward-details summary {
  display: list-item;
  width: max-content;
  max-width: 61%;
  min-height: 44px;
  padding: 12px 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  color: #744834;
  font-size: .87rem;
  line-height: 20px;
  border-radius: 10px;
}
.reward-details summary::marker { color: #9d4e3e; }
.reward-details summary:focus:not(:focus-visible) { outline: none; }
.reward-details summary:focus-visible { outline: 2px solid #af7751; outline-offset: -3px; background: #f7e7d6; }
.reward-details ul {
  display: grid;
  gap: .55rem;
  margin: 1px 0 10px;
  padding-inline-start: 1.25rem;
  font-size: .86rem;
  line-height: 1.55;
}
.reward-details li::marker { color: #9d4e3e; }
.reward-wallet {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 8px;
  color: #80503a;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: .87rem;
}
@media (max-width: 1099px) {
  .kitchen-scene { height: 187px; }
}
@media (max-width: 719px) {
  .kitchen-scene { height: 170px; }
  .friend-speech p { font-size: 12px; }
  .lobby-reward { padding-inline: 10px; }
}
@media (max-width: 359px) {
  .kitchen-scene { height: 180px; }
  .friend-speech { left: 40%; }
  .friend.meimei { width: 112px; height: 130px; }
  .friend-speech-head { padding-inline-end: 57px; }
  .friend-speech-controls button { width: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .little-steam i { opacity: .4; animation: none; }
  .friend img { animation: none !important; }
  .friend-speech.pop { animation: none; }
}
@media print {
  body { background: #fff; }
  .lobby { width: 100%; padding: 12px; }
  .welcome { grid-template-columns: 1fr; }
  .sound, .kitchen-scene { display: none; }
  .lobby-header h1, .lobby-header h1 span, .brand-name, .welcome-intro { color: #573b2c; text-shadow: none; }
  .lobby-footer { color: #573b2c; }
}
