/* Layout: a full-screen 3D shop up top, then two plain bands (how it works, contact).
   Palette from the shop itself: seafoam, flamingo pink, cream, deep teal ink. */
:root {
  --ink: #133B3D;
  --ink-soft: #2E5254;
  --cream: #FFF8F0;
  --seafoam: #BFE8DC;
  --mint: #9ED9C8;
  --pink: #FF8FB8;
  --berry: #B0305F;
  --night: #102A2C;
  --display: 'Yellowtail', 'Brush Script MT', cursive;
  --deco: 'Poiret One', 'Futura', sans-serif;
  --body: 'Outfit', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
  --mono: 'Space Mono', ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(20px, env(safe-area-inset-right, 0px)) 28px max(20px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(16, 42, 44, 0.55), rgba(16, 42, 44, 0)); pointer-events: none;
}
.site-header a, .site-header button { pointer-events: auto; }
.logo { margin: 0; pointer-events: auto; font-family: var(--display); font-size: 2.1rem; line-height: 1; color: var(--cream); text-decoration: none; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.site-header nav { display: flex; align-items: center; gap: 1.25rem; }
.site-header nav .link { border: 0; background: none; padding: 0.4rem 0.2rem; color: var(--cream); font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.site-header nav .pill { border: 0; background: var(--pink); color: var(--ink); padding: 0.55rem 1.2rem; border-radius: 999px; font-weight: 700; }
@media (max-width: 560px) { .site-header nav .link { display: none; } }

/* the shop */
.shop { position: fixed; inset: 0; height: 100%; min-height: 520px; background: #F3A9B9; overflow: hidden; }
.stage { position: absolute; inset: 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#still { opacity: 0; transition: opacity 0.35s ease; pointer-events: none; z-index: 2; }
#still.on { opacity: 1; }
.fade { position: absolute; inset: 0; z-index: 4; background: #FFF8F0; opacity: 0; pointer-events: none; transition: opacity 0.32s ease; }
.fade.on { opacity: 1; }
.preheat { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; padding: 24px; background: radial-gradient(ellipse at 50% 40%, #FBD3DC 0%, #F3A9B9 55%, #E58FA2 100%); color: var(--ink); transition: opacity 0.7s ease, visibility 0.7s; }
.preheat.out { opacity: 0; visibility: hidden; }
.oven { width: min(240px, 56vw); height: auto; filter: drop-shadow(0 18px 24px rgba(120, 40, 60, 0.28)); }
.ovwin { opacity: calc(0.25 + var(--heat, 0) * 0.75); transition: opacity 0.3s; }
.ovcake { transform-origin: 120px 176px; transform: scaleY(calc(0.55 + var(--heat, 0) * 0.45)); transition: transform 0.3s; }
.dial { transform-origin: 120px 58px; transform: rotate(calc(-120deg + var(--heat, 0) * 240deg)); transition: transform 0.3s; }
.shimmer path { opacity: calc(var(--heat, 0) * 0.9); animation: rise 1.6s ease-in-out infinite; }
.shimmer path:nth-child(2) { animation-delay: 0.3s; } .shimmer path:nth-child(3) { animation-delay: 0.6s; }
@keyframes rise { 0% { transform: translateY(6px); } 50% { transform: translateY(-4px); } 100% { transform: translateY(6px); } }
.ph-title { margin: 0.6rem 0 0; font-family: var(--display); font-size: clamp(2.4rem, 7vw, 3.4rem); line-height: 1; color: #fff; text-shadow: 0 3px 0 #C93A6E, 0 8px 22px rgba(120, 40, 60, 0.3); }
.ph-temp { margin: 0; font-family: var(--deco); font-size: 1.5rem; letter-spacing: 0.12em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ph-bar { width: min(240px, 60vw); height: 6px; margin-top: 0.5rem; border-radius: 3px; background: rgba(255, 255, 255, 0.5); overflow: hidden; }
.ph-bar span { display: block; height: 100%; width: calc(var(--heat, 0) * 100%); background: #C93A6E; border-radius: 3px; transition: width 0.3s; }
.skip { position: absolute; z-index: 6; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); padding: 0.6rem 1.1rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.85); background: rgba(16, 42, 44, 0.35); color: #fff; font-weight: 600; backdrop-filter: blur(6px); }
.hint { position: absolute; z-index: 6; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); transform: translateX(-50%); margin: 0; padding: 0.6rem 1.2rem; border-radius: 999px; background: var(--cream); font-weight: 600; white-space: nowrap; box-shadow: 0 0 0 0 rgba(255, 143, 184, 0.6); animation: pulse 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(255, 143, 184, 0); } }
.stage > canvas:first-child { touch-action: none; }
.marks { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.mark { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; transition: opacity 0.25s ease; will-change: transform; }
.mark.off { opacity: 0; pointer-events: none; }
.mark .dot { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: rgba(255, 248, 240, 0.94); border: 2.5px solid var(--pink); box-shadow: 0 3px 10px rgba(16, 42, 44, 0.35); transition: transform 0.2s ease, background 0.2s ease; }
.mark .dot::before, .mark .dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2.5px; margin: -1.25px 0 0 -5px; border-radius: 2px; background: var(--ink); }
.mark .dot::after { transform: rotate(90deg); }
.mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2px solid var(--cream); opacity: 0; animation: ping 2.6s ease-out infinite; pointer-events: none; }
.mark:nth-child(3n+2)::after { animation-delay: 0.9s; } .mark:nth-child(3n)::after { animation-delay: 1.7s; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.85; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
.mark .lab { position: absolute; left: 50%; bottom: calc(100% - 4px); transform: translate(-50%, 6px); padding: 0.4rem 0.75rem; border-radius: 10px; background: var(--cream); color: var(--ink); font-size: 0.92rem; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 22px rgba(16, 42, 44, 0.3); opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; }
.mark .lab em { display: block; font-style: normal; font-weight: 500; font-size: 0.82rem; color: var(--ink-soft); }
.mark.on .dot, .mark:focus-visible .dot { transform: scale(1.18); background: var(--pink); }
.mark.on .lab, .mark:focus-visible .lab { opacity: 1; transform: translate(-50%, 0); }
.mark.on { z-index: 2; }
.mark:focus-visible { outline: none; }
.pan { position: absolute; z-index: 5; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: rgba(255, 248, 240, 0.9); box-shadow: 0 4px 14px rgba(16, 42, 44, 0.25); cursor: pointer; }
.pan::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -6px 0 0 -4px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); }
.pan.r::before { margin-left: -8px; transform: rotate(-135deg); }
.pan.l { left: max(10px, env(safe-area-inset-left, 0px)); }
.pan.r { right: max(10px, env(safe-area-inset-right, 0px)); }
.tip { position: absolute; z-index: 6; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); padding: 0.45rem 0.8rem; border-radius: 10px; background: var(--cream); color: var(--ink); font-size: 0.95rem; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 22px rgba(16, 42, 44, 0.3); }
.tip small { display: block; font-weight: 500; color: var(--ink-soft); }

/* tray of item buttons (also the keyboard path into the case) */
.tray { position: absolute; z-index: 6; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); display: flex; gap: 0.5rem; overflow-x: auto; padding: 4px max(20px, env(safe-area-inset-right, 0px)) 4px max(20px, env(safe-area-inset-left, 0px)); scrollbar-width: none; justify-content: safe center; }
.tray button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 0.5rem 0.95rem; background: rgba(255, 248, 240, 0.92); color: var(--ink); font-weight: 600; font-size: 0.92rem; box-shadow: 0 4px 14px rgba(16, 42, 44, 0.18); }
.tray button:hover { background: #fff; }

/* the past-orders card */
.card { position: absolute; z-index: 7; right: max(24px, 3vw); top: 50%; transform: translateY(-50%); width: min(440px, 38vw); max-height: calc(100% - 120px); overflow: auto; padding: 24px 26px 22px; border-radius: 22px; background: var(--cream); box-shadow: 0 30px 70px rgba(8, 40, 42, 0.45); animation: cardIn 0.55s cubic-bezier(.2, .9, .3, 1.1) both; }
.card .stripes { position: absolute; inset: 0 0 auto; height: 12px; border-radius: 22px 22px 0 0; background: linear-gradient(180deg, var(--pink) 0 33%, var(--mint) 33% 66%, #FFD66B 66%); }
@keyframes cardIn { from { opacity: 0; transform: translate(30px, -50%) rotate(2deg); } to { opacity: 1; transform: translateY(-50%); } }
.eyebrow, .label { margin: 0.4rem 0 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--berry); }
.label { color: #4E6E70; margin-top: 0.9rem; }
.card h2 { margin: 0.2rem 0 0.3rem; font-family: var(--deco); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; }
.desc { margin: 0; color: var(--ink-soft); }
.meta { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.meta strong { color: var(--ink); font-size: 1.05rem; }
.polaroids { position: relative; height: 200px; margin-top: 0.5rem; }
.polaroid { position: absolute; left: 50%; top: 8px; width: 140px; height: 168px; margin-left: -70px; padding: 9px 9px 34px; border: 0; background: #fff; box-shadow: 0 10px 22px rgba(19, 59, 61, 0.28); transition: transform 0.45s cubic-bezier(.3, 1.25, .4, 1); }
.polaroid img, .polaroid .ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.polaroid .ph { display: grid; place-items: center; background: #EFE7DC; color: #6B5B4B; font-size: 0.8rem; font-weight: 600; text-align: center; border: 2px dashed #B9A994; }
.polaroid span { position: absolute; left: 0; right: 0; bottom: 6px; font-family: var(--hand); font-weight: 700; font-size: 1.15rem; color: #2B3A3A; text-align: center; white-space: nowrap; overflow: hidden; }
.photo-title { margin: 0.4rem 0 0; font-weight: 700; }
.photo-desc { margin: 0.1rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.actions, .t-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin-top: 1rem; }
.primary { border: 0; border-radius: 999px; padding: 0.75rem 1.4rem; background: var(--pink); color: var(--ink); font-weight: 700; }
.primary:hover { background: #ff7aab; }
.ghost { border: 0; background: none; padding: 0.6rem 0.2rem; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* the order ticket that prints at the register */
.ticket { position: absolute; z-index: 7; left: max(24px, 4vw); top: 50%; transform: translateY(-50%); width: min(380px, 34vw); max-height: calc(100% - 110px); overflow: auto; }
.paper { position: relative; padding: 22px 22px 30px; background: #FFFEFA; font-family: var(--mono); font-size: 0.86rem; color: #1F2A2A; box-shadow: 0 24px 50px rgba(8, 40, 42, 0.4); animation: print 1.6s steps(14, end) both;
  -webkit-mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) 0 0 / 16px 100% repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 7px) no-repeat;
  mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) 0 0 / 16px 100% repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 7px) no-repeat; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-18px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.t-brand { margin: 0; font-family: var(--display); font-size: 2rem; line-height: 1; text-align: center; color: var(--berry); }
.t-sub { margin: 0.3rem 0 0; text-align: center; letter-spacing: 0.08em; font-size: 0.72rem; }
.t-rule { margin: 0.8rem 0; border-top: 2px dashed #9AA5A5; }
.t-item { margin: 0 0 0.6rem; font-family: var(--mono); font-size: 1rem; text-transform: uppercase; }
.t-lines { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.8rem; }
.t-lines dt { color: #5C6868; }
.t-lines dd { margin: 0; overflow-wrap: anywhere; }
.t-total { margin: 0.25rem 0 0; display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.t-note { margin: 0.8rem 0 0; font-size: 0.78rem; color: #4A5656; }
.t-actions { padding: 0 4px; }
.ticket .ghost { color: var(--cream); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.sent { margin: 0.6rem 0 0; padding: 0.6rem 0.9rem; border-radius: 12px; background: var(--cream); font-weight: 600; }

@media (max-width: 760px) {
  .card, .ticket { left: 12px; right: 12px; top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); transform: none; width: auto; max-height: 58%; }
  @keyframes cardIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
  .polaroids { height: 170px; }
  .polaroid { width: 118px; height: 142px; margin-left: -59px; }
}

/* overlay panels: how ordering works, contact */
.panel { position: absolute; z-index: 8; top: calc(env(safe-area-inset-top, 0px) + 76px); right: max(20px, env(safe-area-inset-right, 0px)); width: min(440px, calc(100% - 40px)); max-height: calc(100% - 110px); overflow: auto; padding: 26px 28px; border-radius: 22px; background: var(--cream); box-shadow: 0 30px 70px rgba(8, 40, 42, 0.45); animation: panelIn 0.4s cubic-bezier(.2, .9, .3, 1.1) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.panel .x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F2E4D8; color: var(--ink); font-size: 1.4rem; line-height: 1; }
.kicker { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--berry); }
.panel h2 { margin: 0.3rem 2.5rem 0 0; font-family: var(--deco); font-weight: 400; font-size: 2.1rem; line-height: 1.05; }
.steps { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.steps li { display: flex; gap: 0.9rem; align-items: flex-start; }
.steps h3 { margin: 0; font-size: 1.1rem; }
.steps p { margin: 0.15rem 0 0; color: var(--ink-soft); }
.n { flex: 0 0 auto; width: 1.6rem; font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--berry); }
.lede { margin: 0.6rem 0 0; color: var(--ink-soft); }
.contact { margin: 1.2rem 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem 1.2rem; align-items: baseline; }
.contact dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--berry); }
.contact dd { margin: 0; font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.credit { margin: 0.5rem 0 0; font-size: 0.75rem; color: #6B7E7F; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
