/* One friend and four circular plates: the food is the counting prompt. */
#play-view.playing-picnic .game-surface{padding:26px;container-type:normal}
#play-view.playing-picnic .feedback{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
.picnic-game{width:100%;max-width:1080px;margin:auto;display:grid;grid-template-columns:.78fr 1fr;gap:28px;min-height:420px;height:clamp(420px,58dvh,570px);color:#304b43;isolation:isolate}
.picnic-recipient{container-type:size;position:relative;display:block;width:100%;height:100%;min-width:0;overflow:hidden;border:0;border-radius:32px;padding:0;background:radial-gradient(ellipse 110% 40% at 50% 110%,#cce2b2 98%,transparent 100%),linear-gradient(#eff6e3,#e5f0d6);opacity:1;touch-action:manipulation;transition:box-shadow .18s}
.picnic-recipient:before,.picnic-recipient:after{content:'✦';position:absolute;color:#d9b75c;left:5%;top:4%;font-size:25px}
.picnic-recipient:after{left:auto;right:6%;top:22%;font-size:15px;opacity:.45}
.picnic-request{position:absolute;top:14%;left:20%;width:60%;height:30%;max-height:180px;display:flex;align-items:center;justify-content:center;gap:8px;border:4px solid #f1e3b7;border-radius:34px;background:#fff;box-shadow:0 5px 0 #e8dca866;z-index:2}
.picnic-request:after{content:'';position:absolute;bottom:-16px;left:calc(50% - 15px);width:28px;height:28px;background:white;transform:rotate(45deg);border-right:4px solid #f1e3b7;border-bottom:4px solid #f1e3b7;border-radius:0 0 5px 0}
.picnic-number{font:800 clamp(64px,8vw,116px)/1 var(--heading);color:#2845df;letter-spacing:-3px}
.picnic-request-food{display:block;width:40%;height:70%;object-fit:contain}
.picnic-friend{position:absolute;left:21%;bottom:5%;width:58%;height:45%;transition:bottom .3s}
.picnic-friend-art{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:contain;transform-origin:50% 85%;user-select:none}
.picnic-shadow{position:absolute;bottom:0;left:15%;width:70%;height:12px;border-radius:50%;background:#91a97644}
.picnic-mouth{position:absolute;left:50%;top:45%;width:1px;height:1px;pointer-events:none;z-index:2}
.picnic-hearts{position:absolute;top:12%;right:0;opacity:0;color:#c76168;font:800 36px var(--heading);z-index:3;pointer-events:none}
.picnic-place-setting{position:absolute;left:22%;bottom:3%;width:56%;aspect-ratio:1;max-height:35%;z-index:3;display:flex;align-items:center;justify-content:center;pointer-events:none}
.phase-serving .picnic-friend,.phase-eating .picnic-friend{bottom:21%}
.phase-serving .picnic-request,.phase-eating .picnic-request{opacity:.5}
.picnic-recipient.ready,.picnic-recipient.picnic-over{box-shadow:inset 0 0 0 4px #7cbaa4}
.picnic-card:focus-visible,.picnic-recipient:focus-visible{outline:3px solid #008b80;outline-offset:4px}
/* Safari may retain focus-visible after touch and automatic course changes. */
:root[data-input-mode=pointer] .picnic-card:focus,:root[data-input-mode=pointer] .picnic-recipient:focus{outline:none}
.picnic-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:16px;padding:20px;border-radius:32px;background:repeating-linear-gradient(0deg,#f7dfd480 0 22px,#ffffff55 22px 44px),repeating-linear-gradient(90deg,#f3cabd88 0 22px,#fff0e8 22px 44px)}
.picnic-card{container-type:size;position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;width:100%;height:100%;padding:14px;border:0;border-bottom:5px solid #e5dac4;border-radius:26px;background:#fffdf7;transition:box-shadow .17s,transform .17s;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.picnic-card:hover:not(:disabled){transform:translateY(-2px)}
.picnic-card:active:not(:disabled){cursor:grabbing}
.picnic-card.selected{box-shadow:inset 0 0 0 4px #70ad92}
.picnic-card.try-again{animation:picnic-wiggle .42s ease-in-out;box-shadow:inset 0 0 0 3px #d2aa68}
.picnic-card.served .picnic-serving,.picnic-lifted .picnic-serving{opacity:0}
.picnic-serving{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:100%;height:auto;aspect-ratio:1;max-height:100%;max-width:100%;pointer-events:none}
.picnic-plate{position:absolute;inset:0;border:clamp(10px,1.5vw,20px) solid #f7dfe5;border-radius:50%;background:#fff7f8;box-shadow:0 5px 0 #eac2cd,inset 0 3px 8px #e7c9ce55}
.picnic-card .picnic-serving{width:min(100cqw,100cqh);height:min(100cqw,100cqh)}
.picnic-foods{position:relative;z-index:1;display:grid;grid-template-columns:repeat(var(--food-cols),minmax(0,1fr));grid-template-rows:repeat(var(--food-rows),minmax(0,1fr));align-items:center;justify-items:center;gap:3px;width:68%;height:68%;max-width:calc(var(--food-cols)*64px);max-height:calc(var(--food-rows)*64px)}
.picnic-food{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:64px;max-height:64px;object-fit:contain;filter:drop-shadow(0 2px 1px #694e3520);user-select:none}
.picnic-drag-ghost{position:fixed;z-index:500;transform:translate(-50%,-50%) rotate(-4deg) scale(.85);filter:drop-shadow(0 12px 8px #3c4d3933);pointer-events:none}
.picnic-flight-layer{position:fixed;inset:0;z-index:500;pointer-events:none;overflow:hidden}
.picnic-flight-serving{position:fixed;transform-origin:center;max-width:none;max-height:none}
.picnic-eating-food{position:fixed;object-fit:contain}
.picnic-game.is-eating .picnic-friend-art{animation:picnic-nibble .35s ease-in-out infinite}
.picnic-game.is-eating .picnic-hearts,.picnic-game.phase-finished .picnic-hearts{animation:picnic-hearts 1.4s ease-in-out infinite}
@keyframes picnic-nibble{50%{transform:translateY(2px) rotate(1deg) scale(1.015,.99)}}
@keyframes picnic-hearts{0%,100%{opacity:0;transform:translateY(8px)}40%,65%{opacity:1;transform:translateY(-14px)}}
@keyframes picnic-wiggle{25%,75%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
@media(min-width:700px) and (max-height:850px){
 #play-view.playing-picnic .play-top{min-height:68px;padding:6px 0}#play-view.playing-picnic .round-title{margin:6px 0 12px}#play-view.playing-picnic .round-title h1{font-size:38px}#play-view.playing-picnic .game-toolbar{padding:10px 18px}#play-view.playing-picnic .game-progress-picture{width:48px;height:48px}#play-view.playing-picnic .game-tools .game-icon{width:44px;height:44px;padding:11px}
 #play-view.playing-picnic .game-surface{padding:20px}.picnic-game{min-height:340px;height:calc(100dvh - 264px);max-height:570px;gap:22px}.picnic-number{font-size:80px}.picnic-cards{padding:16px;gap:12px}.picnic-card{padding:12px}
}
@media(min-width:700px) and (max-width:1100px) and (min-height:700px) and (orientation:portrait){
 #play-view.playing-picnic .game-surface{display:flex;align-items:center;padding:16px}.picnic-game{min-height:0;height:100%;max-height:640px;gap:20px;grid-template-columns:.78fr 1fr}.picnic-request{left:10%;width:80%;height:24%;top:19%}.picnic-number{font-size:80px}.picnic-friend{left:10%;width:80%;height:40%}.picnic-place-setting{left:10%;width:80%;max-height:28%}.picnic-cards{padding:14px;gap:12px}.picnic-card{padding:10px;border-radius:22px}
}
@media(max-width:699px){
 #play-view.playing-picnic .play-top{min-height:62px;padding:6px 0}#play-view.playing-picnic .round-title{flex-wrap:nowrap;gap:8px;margin:6px 0 12px}#play-view.playing-picnic .game-title-line{gap:5px;flex:1}#play-view.playing-picnic .round-title h1{font-size:clamp(20px,5.5vw,26px);line-height:1.05}#play-view.playing-picnic .round-title .listen{width:44px;height:44px;padding:12px}#play-view.playing-picnic .difficulty-options{width:auto;flex:none;flex-wrap:nowrap;padding:3px;gap:0;margin:0}#play-view.playing-picnic .star-level{width:44px;min-width:44px;min-height:44px;padding:5px}#play-view.playing-picnic .star-level svg{width:9px;height:9px}#play-view.playing-picnic .star-level>span{gap:2px}#play-view.playing-picnic .game-toolbar{flex-wrap:nowrap;gap:10px;padding:10px}#play-view.playing-picnic .game-progress-picture{display:none}#play-view.playing-picnic .game-progress{min-width:45px;flex:1;order:0}#play-view.playing-picnic .game-progress-count{font-size:24px;margin:0 0 4px}#play-view.playing-picnic .game-progress-meter{height:7px}#play-view.playing-picnic .game-tools{flex-wrap:nowrap;width:auto;gap:4px;margin:0}#play-view.playing-picnic .game-tools .game-icon{width:44px;height:44px;padding:11px}
 #play-view.playing-picnic .game-surface{padding:12px}.picnic-game{grid-template-columns:1fr;grid-template-rows:210px 310px;gap:14px;height:auto;min-height:0}.picnic-recipient{border-radius:25px}.picnic-request{top:22%;left:8%;width:40%;height:53%;max-height:none;border-radius:24px;gap:4px}.picnic-request:after{bottom:auto;left:auto;right:-12px;top:calc(50% - 11px);width:22px;height:22px;border-bottom:0;border-top:4px solid #f1e3b7}.picnic-number{font-size:68px}.picnic-friend{left:52%;bottom:5%;width:44%;height:86%}.picnic-request-food{width:38%}.phase-serving .picnic-friend,.phase-eating .picnic-friend{bottom:17%}.picnic-place-setting{left:56%;bottom:2%;width:36%;max-height:40%}.picnic-cards{padding:12px;gap:10px;border-radius:25px}.picnic-card{padding:10px;border-radius:20px}.picnic-food{max-width:46px;max-height:46px}.picnic-plate{border-width:12px}
}
@media(max-width:359px){.picnic-game{grid-template-rows:185px 280px}.picnic-number{font-size:56px}.picnic-cards{padding:10px;gap:8px}.picnic-card{padding:8px}.picnic-plate{border-width:10px}}
@media(prefers-reduced-motion:reduce){.picnic-game *{animation:none!important;transition:none!important}.picnic-card:hover:not(:disabled){transform:none}.picnic-game.phase-finished .picnic-hearts{opacity:1}}

.picnic-place-setting{left:50%;transform:translateX(-50%);width:min(56cqw,32cqh);max-height:none}
.picnic-place-setting .picnic-serving{width:100%;height:100%}

@media(max-width:699px){.picnic-place-setting{left:74%;width:min(36cqw,40cqh)}}
