/* Final material pass. Display lettering and all mathematical surfaces retain
   their existing geometry; texture and light never intercept a touch. */

/* A warm featured recipe, with a mint backing sheet and a turned paper corner. */
.home-copy{
  background-color:#ffedcc;
  background-image:radial-gradient(ellipse at 15% 6%,#fffdf0b8,transparent 62%),
    repeating-linear-gradient(0deg,#af774305 0 1px,transparent 1px 4px),
    linear-gradient(112deg,#fff3d6 12%,#ffe6b9 66%,#ffd5c5);
  box-shadow:inset 5px 0 0 #f6c19b,inset 0 2px 0 #fffdf2,
    0 3px 0 #ddb283,0 6px 0 #f9edcd,0 10px 0 #80ab88,
    0 12px 0 #567e5d,0 18px 24px #50322238;
}
.home-copy::before{
  inset:8px 10px 10px 11px;height:auto;border:1px dashed #b7825659;
  border-radius:3px 21px 18px 2px;background:none;opacity:1;pointer-events:none;
}
.home-copy::after{
  content:'';position:absolute;right:0;bottom:0;width:48px;height:43px;
  border-radius:0 0 22px 0;background:linear-gradient(138deg,transparent 49%,#ca956547 50%,#fff7df 52%,#f1cea0 77%);
  pointer-events:none;
}
.home-copy .eyebrow{
  color:#744432;font-weight:700;letter-spacing:.12em;width:max-content;max-width:100%;
  padding:5px 11px 6px;margin:-3px 0 9px -1px;border-radius:4px 12px 12px 4px;
  background:#f9cebd;box-shadow:inset 0 1px #fff1df,0 2px 0 #d99d7952;
}
.home-intro p:not(.eyebrow){font-weight:600;color:#63412e;text-wrap:pretty}

/* Laminated menu cards: cloth above, dense paper below, fine stacked edges. */
.station-card{
  --menu-ink:#824638;--menu-line:#d58d88;--menu-stripe:#f5bdc8;--menu-cloth:#ffe0e5;
  --card-depth:inset 0 1px 0 #fffefa,0 2px 0 #ead0a0,0 4px 0 #fff5d8,
    0 7px 0 #b98d59,0 9px 3px #6f472a29,0 16px 21px #4d302637;
  box-shadow:var(--card-depth);transition:box-shadow 160ms ease-out;
}
.station-card:nth-child(2){--menu-ink:#365e70;--menu-line:#8eafb6;--menu-stripe:#b9dce7;--menu-cloth:#ddf0f5}
.station-card:nth-child(3){--menu-ink:#755327;--menu-line:#c9a163;--menu-stripe:#f3cf7d;--menu-cloth:#ffeab8}
.station-card::after{
  content:'';position:absolute;inset:0;border-radius:inherit;
  box-shadow:inset 1px 0 #ffffffa6,inset -1px 0 #93674625;
  pointer-events:none;
}
.station-card:nth-child(n) .station-art{
  background-color:var(--menu-cloth);
  background-image:radial-gradient(ellipse at 47% 20%,#ffffe8b3,transparent 72%),
    repeating-linear-gradient(0deg,#fff3 0 1px,transparent 1px 4px),
    repeating-linear-gradient(90deg,var(--menu-stripe) 0 27px,var(--menu-cloth) 27px 54px);
  box-shadow:inset 0 3px 0 #fff9,inset 0 -5px 8px #7a52301c;
}
.station-card:nth-child(n) .card-copy{
  background-color:#fff5df;
  background-image:radial-gradient(ellipse at 50% 0,#fffdf2,transparent 75%),
    repeating-linear-gradient(0deg,#bc8c4d06 0 1px,transparent 1px 4px);
  box-shadow:inset 0 1px #fffaf0,inset 0 -2px #ead3ab,inset 0 -4px #fff9e8;
}
.station-card .card-copy p{
  position:relative;font-weight:600;color:var(--menu-ink);line-height:1.45;
  letter-spacing:.008em;text-wrap:pretty;padding-inline:4px;
}
.station-card .card-copy .station-heading{margin-bottom:12px}
.station-card .card-copy .station-heading::after{
  content:'';display:block;width:44px;height:3px;margin:9px auto 0;border-radius:3px;
  background:var(--menu-line);box-shadow:0 1px 0 #fff;
}
.station-number{
  background:#fff9e6;box-shadow:inset 0 1px #fff,0 2px 0 #bb9465,0 4px 5px #60443024;
}
.station-card:hover:not(:disabled),.station-card:active:not(:disabled){box-shadow:var(--card-depth)!important}
@media(hover:hover) and (pointer:fine){
  .station-card:hover:not(:disabled){
    box-shadow:inset 0 1px #fff,0 2px 0 #ead0a0,0 4px 0 #fff5d8,
      0 7px 0 #b98d59,0 11px 5px #6f472a26,0 19px 24px #4d302645!important;
  }
}
/* Focus remains conspicuous, including around the entire semantic card button. */
.station-card:focus-visible{
  box-shadow:0 0 0 8px #fff8df,0 7px 0 #b98d59,0 15px 21px #4d302637!important;
}
.station-card:active:not(:disabled) .card-copy{box-shadow:inset 0 2px 4px #9b704c20,inset 0 -2px #ead3ab}
.station-card:disabled{box-shadow:0 3px 0 #b6a184,0 6px 8px #634b3026}

/* Related recipe slips get the same paper edge without changing their contents. */
.bank-note{box-shadow:inset 0 1px #fffdf1,0 2px 0 #ddbb87,0 4px 5px #68432321}
.order-grid button{background-image:linear-gradient(120deg,#fff6,transparent 60%);box-shadow:inset 0 2px #fff9,0 2px 0 #fff2cf,0 5px 0 #bd935d,0 9px 9px #65472f38}
.ticket{box-shadow:inset 0 1px #fffdf1,0 2px 0 #e8c893,0 4px 0 #fff0cd,0 6px 0 #bc986a,0 10px 12px #5940242b}
/* A hover lift can oscillate at a choice's bottom edge with reduced motion.
   Keep the answer targets anchored; their color and pressed shadow still respond. */
.parity-choice button:hover:not(:disabled),.parity-choice button:active:not(:disabled){transform:none!important}

/* Arrival is one brief opacity reveal. No loops or transforms on cards or food. */
body[data-view=home] .home-copy,body[data-view=home] .station-grid,
body[data-view=orders] .order-board{animation:paper-arrive 340ms ease-out both}
@keyframes paper-arrive{from{opacity:.55}to{opacity:1}}

/* Two soft lights anchored to the supplied 1672 x 941 illustration. The image
   itself never moves, stretches, or flashes. At phone crops only window light
   may be visible. Ambient animation is confined to home and order selection. */
.ambient-light{position:absolute;display:block;pointer-events:none;mix-blend-mode:screen}
.window-light{
  left:36%;top:0;width:26%;height:78%;opacity:.12;
  background:radial-gradient(ellipse at 29% 14%,#fff3ae 0%,#ffe6a251,transparent 37%),
    linear-gradient(114deg,transparent 35%,#ffedba40 45%,#ffedba6b 52%,transparent 75%);
  border-radius:45% 45% 35% 25%;
}
.oven-light{
  left:87.2%;top:32.4%;width:12.8%;height:19.4%;opacity:.18;
  border-radius:58% 53% 12% 8%;
  background:radial-gradient(ellipse at 71% 49%,#ffd77c 0,#ffa73c9c 43%,transparent 73%);
}
body:is([data-view=home],[data-view=orders]) .window-light{animation:window-warmth 12s ease-in-out infinite}
body:is([data-view=home],[data-view=orders]) .oven-light{animation:oven-warmth 7.6s ease-in-out infinite}
@keyframes window-warmth{0%,100%{opacity:.12}50%{opacity:.26}}
@keyframes oven-warmth{0%,100%{opacity:.18}45%{opacity:.34}75%{opacity:.24}}
.scene-asleep .ambient-light,
body:has(dialog[open]) .ambient-light{animation-play-state:paused!important}
.scene-art.art-unavailable .ambient-light{display:none}

@media(min-width:761px){
  /* Retain the existing desktop footprint despite the small title underline. */
  .station-card:nth-child(n) .card-copy{padding-top:14px;padding-bottom:17px}
  .station-card .card-copy .station-heading{margin-bottom:8px}
  .station-card .card-copy .station-heading::after{margin-top:6px}
  .station-card .card-copy p{margin-bottom:13px}
}
@media(max-width:760px){
  .station-card:nth-child(n) .card-copy{box-shadow:inset 2px 0 #fffaf0,inset 0 -2px #ead3ab,inset 0 -4px #fff9e8}
  .station-card .card-copy .station-heading{margin-bottom:9px}
  .station-card .card-copy .station-heading::after{margin-top:7px}
}
@media(max-width:440px){
  .home-copy::before{inset:6px 7px 8px 8px;border-radius:2px 16px 14px 2px}
  .home-copy::after{display:none}
  .home-copy{box-shadow:inset 3px 0 #f6c19b,inset 0 2px #fffdf2,0 3px 0 #ddb283,0 5px 0 #f9edcd,0 8px 0 #80ab88,0 10px 0 #567e5d,0 15px 18px #50322232}
  .station-card .card-copy p{font-size:13px;padding-inline:1px;line-height:1.4;margin-bottom:11px}
  .station-card .card-copy .station-heading::after{height:2px;margin-top:6px;width:35px}
  .station-card .card-copy .station-heading{margin-bottom:8px}
}
/* System and saved settings both apply. Static materials remain fully visible. */
body[data-motion=reduced] .ambient-light{display:none}
@media(prefers-reduced-motion:reduce){body[data-motion=system] .ambient-light{display:none}}
