/* =========================================================
   Simona Sweets — a ginger cat's little cake house
   Palette and line style follow the cat logo: creamy yellow,
   bold dark doodle outlines, icing pink, ginger and sky blue.
   ========================================================= */

:root {
    --cream: #fff6dc;
    --paper: #fffcf2;
    --blush: #fde6ec;
    --pink: #f7c2d2;
    --berry: #ef8aa6;          /* icing pink — the main accent */
    --berry-deep: #d4627f;
    --butter: #f6d36b;         /* sparkle yellow */
    --ginger: #f4b860;
    --ginger-soft: #fbe2b4;
    --sky: #bfe0f2;
    --cherry: #e2474b;
    --leaf: #8cbf7a;
    --leaf-deep: #5f9a5a;
    --teal: #8cc9e6;
    --ink: #2b2420;
    --ink-soft: #7a6555;
    --line: #2b2420;

    --script: 'Chewy', 'Comic Sans MS', cursive;     /* all fonts are free Google Fonts (Apache 2.0 / OFL) */
    --hand: 'Gaegu', 'Comic Sans MS', cursive;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Nunito', 'Quicksand', system-ui, sans-serif;

    --r: 26px 22px 28px 20px / 22px 28px 20px 26px;   /* slightly uneven, hand-cut corners */
    --shadow: 4px 5px 0 var(--ink);                    /* sticker shadow */
    --shadow-soft: 4px 5px 0 rgba(43, 36, 32, .14);
    --shadow-lift: 6px 8px 0 var(--ink);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
    margin: 0;
    overflow-x: clip;
    font-family: var(--sans);
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
    background-color: var(--cream);
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
        radial-gradient(60vw 50vh at 8% 0%, rgba(247, 194, 210, .35), transparent 70%),
        radial-gradient(50vw 40vh at 100% 20%, rgba(191, 224, 242, .35), transparent 70%),
        radial-gradient(60vw 50vh at 50% 110%, rgba(244, 184, 96, .2), transparent 70%);
    /* no background-attachment: fixed — it repaints the whole page on every scroll frame on phones */
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2.5px dashed var(--berry); outline-offset: 3px; border-radius: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- type helpers ---------- */
.script { font-family: var(--script); font-weight: 400; line-height: .95; margin: 0; color: var(--ink); }
.caps {
    font-family: var(--sans); font-weight: 800; font-size: .74rem;
    letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin: 0;
    display: inline-flex; align-items: center; gap: .6em;
}
.caps .ico { color: var(--leaf-deep); }
.hand { font-family: var(--script); font-size: 1.6rem; color: var(--berry); margin: 0; line-height: 1.1; }
.poem { font-family: var(--serif); font-size: 1.06rem; line-height: 1.7; color: #6b5245; margin: 0; }
.cn { margin: .1rem 0 0; font-size: .9rem; letter-spacing: .3em; color: var(--ink-soft); }

/* ---------- floating background ---------- */
.floaties { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.fl {
    position: absolute; bottom: -40px; width: var(--s); height: var(--s); will-change: transform;
    animation: drift var(--d) linear var(--delay) infinite;
    opacity: .38;
}
.fl.heart { fill: #f19a97; }
.fl.berry { opacity: .3; }
.fl.petal { background: #f3b2ab; border-radius: 70% 0 70% 0; height: calc(var(--s) * .6); }
@keyframes drift {
    0%   { transform: translate(0, 0) rotate(0); }
    25%  { transform: translate(var(--sway), -28vh) rotate(40deg); }
    50%  { transform: translate(0, -56vh) rotate(-10deg); }
    75%  { transform: translate(calc(var(--sway) * -1), -84vh) rotate(50deg); }
    100% { transform: translate(0, -115vh) rotate(0); }
}

/* ---------- cards ---------- */
.card {
    position: relative;
    background: rgba(255, 250, 242, .88);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    padding: .78em 1.5em; border-radius: 999px;
    font-weight: 800; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
    transition: transform .35s var(--bounce), box-shadow .3s var(--ease), background .3s;
}
.btn small { letter-spacing: .08em; font-weight: 700; opacity: .85; text-transform: none; }
.btn-berry {
    background: linear-gradient(180deg, #ea5c51, var(--berry-deep));
    color: #fff; box-shadow: 0 10px 20px -10px rgba(196, 53, 45, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-berry:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 26px -12px rgba(196, 53, 45, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-berry:active { transform: scale(.97); }
.btn-soft { background: var(--blush); color: var(--berry-deep); border: 1.5px dashed #ecb3aa; }
.btn-soft:hover { background: #f9dcd4; }
.btn-lg { padding: 1em 1.9em; font-size: .85rem; }
.btn-block { width: 100%; letter-spacing: .12em; font-size: .78rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* =========================================================
   Header
   ========================================================= */
.topbar {
    position: relative; z-index: 5;
    display: flex; align-items: center; gap: 2rem;
    max-width: 1480px; margin: 0 auto; padding: 18px 32px 6px;
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-logo { width: 78px; height: auto; filter: drop-shadow(0 6px 6px rgba(160, 110, 50, .2)); transition: transform .5s var(--bounce); transform-origin: 50% 90%; }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); animation: none; }
.brand-logo { animation: waddle 4s ease-in-out infinite; }
@keyframes waddle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-6deg); } 86% { transform: rotate(5deg); } 94% { transform: rotate(-2deg); } }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--script); font-size: 2.6rem; line-height: .9; position: relative; white-space: nowrap; }
.brand-heart { width: 15px; height: 15px; fill: var(--berry); position: absolute; top: -2px; right: -16px; animation: beat 2.4s ease-in-out infinite; }
.brand-sub { font-weight: 800; font-size: .66rem; letter-spacing: .38em; text-transform: uppercase; color: var(--ink-soft); margin-top: .35rem; }

.topnav { display: flex; gap: 2.4rem; margin-left: auto; }
.topnav a {
    position: relative; font-weight: 800; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--ink-soft); padding: .5rem 0; transition: color .25s;
}
.topnav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
    background: var(--berry); transform: scaleX(0); transition: transform .4s var(--bounce);
}
.topnav a:hover { color: var(--ink); }
.topnav a.active { color: var(--ink); }
.topnav a.active::after { transform: scaleX(1); }

.pills { display: flex; gap: .7rem; margin-left: 1.5rem; }
.pill {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .55rem 1.1rem .55rem .8rem; border-radius: 999px;
    background: rgba(255, 250, 242, .9); border: 1.5px solid var(--line); box-shadow: var(--shadow);
    font-weight: 800; font-size: 1.05rem;
}
.pill-heart { width: 22px; height: 22px; fill: var(--berry); }
.pill-berry { width: 22px; height: 26px; }
.pill-bag { transition: transform .3s var(--bounce); }
.pill-bag:hover { transform: translateY(-2px); }
.bump { animation: bump .5s var(--bounce); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.22) rotate(-6deg); } 100% { transform: scale(1); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

/* =========================================================
   View wrapper
   ========================================================= */
.view { position: relative; z-index: 1; max-width: 1480px; margin: 0 auto; padding: 10px 32px 24px; outline: none; }
.view.enter > * { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Café illustration
   ========================================================= */
.cafe { width: 100%; height: auto; overflow: visible; }
.cafe .petal { animation: petal 9s ease-in-out infinite; transform-box: fill-box; }
.cafe .p2 { animation-delay: -3s; animation-duration: 11s; }
.cafe .p3 { animation-delay: -6s; animation-duration: 13s; }
@keyframes petal {
    0% { transform: translate(0, 0) rotate(0); opacity: 0; }
    15% { opacity: .9; }
    100% { transform: translate(-60px, 260px) rotate(320deg); opacity: 0; }
}

/* =========================================================
   HOME
   ========================================================= */
.home {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 410px;
    gap: 22px;
    align-items: start;
}
.home-left { padding-top: 34px; display: flex; flex-direction: column; }
.hero-title { font-size: clamp(3rem, 3.9vw, 3.7rem); position: relative; }
.hero-title span { display: inline-block; padding-left: .45em; }
.hero-title .sprig { position: absolute; width: 34px; height: 34px; left: -38px; top: 6px; color: var(--leaf-deep); }
.hero-sub { margin-top: 1.4rem; font-size: .68rem; letter-spacing: .26em; }
.squiggle { width: 110px; color: #c9a98a; margin: .8rem 0 1.4rem; }

.sidenav { display: flex; flex-direction: column; gap: .7rem; }
.sidenav a {
    display: flex; align-items: center; gap: 1rem;
    padding: .95rem 1.1rem; border-radius: 16px 14px 18px 12px;
    background: rgba(255, 250, 242, .9); border: 1.5px solid var(--line); box-shadow: var(--shadow);
    font-weight: 800; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
    transition: transform .35s var(--bounce), background .3s, color .3s;
}
.sidenav a .ico { width: 1.35em; height: 1.35em; }
.sidenav a span { flex: 1; }
.sidenav a .chev { width: 1em; height: 1em; opacity: .5; transition: transform .3s var(--ease); }
.sidenav a:hover { transform: translateX(6px); }
.sidenav a:hover .chev { transform: translateX(3px); opacity: 1; }
.sidenav a.active { background: linear-gradient(180deg, #ea5c51, var(--berry-deep)); color: #fff; border-color: transparent; }
.badge { background: var(--berry); color: #fff; border-radius: 999px; min-width: 22px; padding: 0 6px; font-size: .72rem; letter-spacing: 0; text-align: center; }

.note-card {
    position: relative; margin-top: 2rem; padding: 1.3rem 1.2rem 1.1rem 4.6rem;
    background: var(--paper); border: 1.5px dashed #e5c9b5; border-radius: 14px;
    transform: rotate(-1.5deg); box-shadow: var(--shadow);
}
.note-berry { position: absolute; left: -14px; top: -18px; width: 76px; height: 88px; transform: rotate(-14deg); filter: drop-shadow(0 6px 6px rgba(160, 50, 40, .2)); }
.note-hand { font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; margin: 0 0 .7rem; }
.mini-heart { width: .8em; height: .8em; fill: var(--berry); vertical-align: 0; }
.note-info { display: flex; gap: .5rem; align-items: flex-start; font-size: .8rem; color: var(--ink-soft); margin: .25rem 0 0; }
.note-info .ico { color: var(--berry); margin-top: .15em; }

.home-center { position: relative; margin-top: -10px; }
.home-center .cafe { animation: settle 1.2s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.cafe-caption { position: absolute; left: 6%; bottom: 3%; transform: rotate(-4deg); }

.home-right { display: flex; flex-direction: column; gap: 18px; padding-top: 22px; }

.special {
    display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
    padding: 1.5rem 1.4rem; overflow: hidden;
    background:
        radial-gradient(120% 120% at 100% 100%, rgba(246, 207, 200, .9), transparent 60%),
        linear-gradient(140deg, #fff6ef, #fbe1db);
}
.special-title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2.1rem; line-height: 1.05; color: var(--berry); margin: .6rem 0 .8rem; }
.special .caps.small { font-size: .62rem; line-height: 1.8; display: block; }
.special .btn { margin-top: 1.1rem; padding: .7em 1.2em; font-size: .72rem; }
.special-art { position: relative; aspect-ratio: 1; }
.special-art img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%;
    border-radius: 50%; border: 6px solid #fffaf2; box-shadow: 0 14px 30px -14px rgba(160, 60, 45, .55);
    transition: transform .8s var(--ease);
}
.special:hover .special-art img { transform: rotate(-4deg) scale(1.04); }
.sb { position: absolute; }
.sb1 { width: 44px; height: 50px; left: -12px; bottom: 4px; transform: rotate(-20deg); animation: bob 4s ease-in-out infinite; }
.sb2 { width: 30px; height: 34px; right: -4px; top: -2px; transform: rotate(16deg); animation: bob 5s ease-in-out -1s infinite; }
.sb3 { width: 30px; height: 30px; right: 4px; bottom: -4px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.special-side { position: absolute; right: 14px; top: 10px; font-size: 1.15rem; text-align: right; color: #d98a84; transform: rotate(6deg); }

.shelf { padding: 1.1rem 1.1rem 1.2rem; }
.shelf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.shelf-head h2 { font-size: .72rem; }
.link { font-size: .64rem; color: var(--ink); transition: color .2s, gap .3s; }
.link:hover { color: var(--berry); gap: .9em; }
.shelf-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; }
.mini-art {
    width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
    background: var(--blush); border: 1.5px solid var(--line);
    transition: transform .4s var(--bounce), box-shadow .3s;
}
.mini-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; transition: transform .6s var(--ease); }
.mini:hover .mini-art { transform: translateY(-4px) rotate(-2deg); box-shadow: var(--shadow-lift); }
.mini:hover .mini-art img { transform: scale(1.08); }
.mini-name { font-family: var(--serif); font-size: .82rem; line-height: 1.2; }
.mini-price { font-weight: 700; font-size: .78rem; color: var(--ink-soft); letter-spacing: .06em; }

.goods .good {
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
    padding: .5rem .3rem .6rem; border-radius: 16px;
    background: linear-gradient(180deg, #f3f8ea, #e4f0d6); border: 1.5px solid #d9e8c8;
    transition: transform .4s var(--bounce);
}
.goods .good:hover { transform: translateY(-4px) rotate(2deg); }
.goods .art { width: 100%; height: auto; }
.good-name { font-size: .64rem; font-weight: 800; letter-spacing: .08em; color: var(--ink-soft); text-align: center; line-height: 1.2; }

/* =========================================================
   SUB PAGES (menu / item / events / bag)
   ========================================================= */
.sub { display: grid; grid-template-columns: minmax(250px, 30%) minmax(0, 1fr); gap: 28px; align-items: start; }
.story { position: sticky; top: 12px; padding-top: 26px; }
.back { color: var(--ink); font-size: .7rem; transition: gap .3s var(--ease), color .2s; }
.back:hover { gap: 1em; color: var(--berry); }
.story-title { font-size: clamp(3.6rem, 5.6vw, 5.4rem); margin-top: 1.4rem; }
.story-sub { margin-top: 1.4rem; font-size: .7rem; line-height: 1.8; }
.you-are-here { position: relative; margin: 2.2rem 0 -10px 34%; color: var(--berry); transform: rotate(-8deg); width: max-content; }
.you-are-here svg { width: 46px; height: 40px; display: block; margin-left: 40px; }
.story-cafe { max-width: 420px; margin-left: -18px; }

.sub-panel { padding: 1.8rem 2rem 2rem; min-height: 620px; min-width: 0; }
.sub-panel.swap { animation: swap .55s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }

.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .55em 1.1em; border-radius: 999px;
    font-weight: 800; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink-soft); background: rgba(255, 255, 255, .6); border: 1.5px solid var(--line);
    transition: background .25s, color .25s, transform .3s var(--bounce);
}
.chip small { font-size: .9em; opacity: .55; letter-spacing: 0; }
.chip:hover { transform: translateY(-2px); color: var(--ink); }
.chip.on { background: var(--berry); color: #fff; border-color: var(--berry); }
.chip.on small { opacity: .8; }

/* ---------- menu grid ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.item-card {
    display: flex; flex-direction: column;
    background: #fffdf8; border: 1.5px solid var(--line); border-radius: 22px 18px 24px 16px;
    padding: .7rem .7rem .9rem; box-shadow: 0 10px 22px -18px rgba(150, 82, 55, .45);
    transition: transform .45s var(--bounce), box-shadow .35s var(--ease);
    animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 45ms);
}
.item-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lift); }
.item-open { flex: 1; display: flex; flex-direction: column; text-align: center; gap: .2rem; }
.item-art { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--blush); margin-bottom: .7rem; }
.item-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; transition: transform .7s var(--ease); }
.item-art.is-art { background: linear-gradient(180deg, #fdf0e6, #f8e2d6); display: grid; place-items: center; padding: 12%; }
.item-art .art { width: 100%; height: auto; transition: transform .6s var(--bounce); }
.item-card:hover .item-art img { transform: scale(1.07); }
.item-card:hover .item-art .art { transform: rotate(-6deg) scale(1.06); }
.item-name { font-family: var(--serif); font-size: 1.12rem; line-height: 1.2; }
.item-line { font-size: .56rem; letter-spacing: .16em; justify-content: center; text-align: center; }
.item-foot { display: flex; align-items: center; gap: .4rem; margin-top: .8rem; padding: 0 .3rem; }
.price { font-weight: 800; letter-spacing: .06em; }
.item-foot .price { margin-right: auto; font-size: 1rem; }

.add-round {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(180deg, #ea5c51, var(--berry-deep)); color: #fff;
    box-shadow: 0 6px 12px -6px rgba(196, 53, 45, .8);
    transition: transform .35s var(--bounce);
}
.add-round:hover { transform: scale(1.15) rotate(90deg); }
.add-round:active { transform: scale(.9); }

.fav { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; transition: transform .3s var(--bounce), background .2s; }
.fav svg { width: 20px; height: 20px; fill: transparent; stroke: #d98a84; stroke-width: 2; transition: fill .25s; }
.fav:hover { background: var(--blush); }
.fav[aria-pressed="true"] svg { fill: var(--berry); stroke: var(--berry); }
.fav.pop { animation: bump .5s var(--bounce); }

/* ---------- item detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.6rem 2.4rem; align-items: center; }
.detail-stage { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.turntable {
    position: relative; width: min(100%, 440px); aspect-ratio: 1;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .9s var(--bounce);
    cursor: grab; touch-action: pan-y; user-select: none;
    animation: floaty 6s ease-in-out infinite;
}
.turntable.dragging { transition: none; cursor: grabbing; animation-play-state: paused; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.plate {
    position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
    border: 10px solid #fffaf2; outline: 1.5px solid var(--line);
    box-shadow: 0 30px 50px -26px rgba(150, 70, 50, .6), 0 0 0 18px rgba(251, 231, 225, .7);
    background: var(--blush);
}
.plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; pointer-events: none; }
.turntable.is-art .plate { display: grid; place-items: center; padding: 14%; background: radial-gradient(circle, #fff7f0, #f8e2d6); }
.plate .art-wrap, .plate .art { width: 100%; height: 100%; }
.shine {
    position: absolute; inset: 10px; border-radius: 50%; pointer-events: none;
    background: linear-gradient(calc(110deg + var(--ry, 0deg) * 2), transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
    mix-blend-mode: soft-light;
}
.drag-hint { font-size: 1.35rem; color: var(--ink-soft); display: flex; align-items: center; gap: .4rem; }
.drag-hint .ico { width: 1rem; }

.detail-info { display: flex; flex-direction: column; align-items: flex-start; }
.detail-info .back { margin-bottom: 1.6rem; }
.detail-title { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--berry); font-size: clamp(2.2rem, 3.4vw, 3.1rem); line-height: 1.05; margin: .6rem 0 0; }
.detail-price { font-weight: 800; font-size: 1.5rem; letter-spacing: .06em; margin: .7rem 0 .9rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.2rem 0; }
.tags li {
    padding: .4em .95em; border-radius: 999px; border: 1.5px dashed #ecb3aa;
    font-weight: 800; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--berry-deep);
}
.sizes { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.3rem; }
.sizes button {
    padding: .6em 1.2em; border-radius: 12px; border: 1.5px solid var(--line); background: #fffdf8;
    font-family: var(--serif); font-size: .98rem; transition: all .25s var(--ease);
}
.sizes button:hover { border-color: #ecb3aa; }
.sizes button[aria-checked="true"] { border-color: var(--berry); background: var(--blush); color: var(--berry-deep); box-shadow: 0 0 0 3px rgba(224, 72, 62, .12); }
.buy { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.qty {
    display: inline-flex; align-items: center; gap: .4rem; padding: .3rem;
    border-radius: 999px; border: 1.5px solid var(--line); background: #fffdf8;
}
.qty button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.qty button:hover { background: var(--blush); color: var(--berry); }
.qty span { min-width: 1.6em; text-align: center; font-weight: 800; }
.qty.small button { width: 28px; height: 28px; }
.fav-lg { width: 46px; height: 46px; border: 1.5px solid var(--line); background: #fffdf8; }

.thumbs {
    grid-column: 1 / -1; display: flex; gap: .7rem; overflow-x: auto; padding: 1.2rem .3rem .4rem;
    border-top: 1.5px dashed var(--line); scrollbar-width: thin;
}
.thumb {
    flex: none; width: 74px; height: 74px; border-radius: 16px; overflow: hidden;
    border: 2px solid var(--line); background: var(--blush);
    transition: transform .3s var(--bounce), border-color .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.thumb .art { width: 100%; height: 100%; padding: 8px; }
.thumb:hover { transform: translateY(-3px); }
.thumb.on { border-color: var(--berry); box-shadow: 0 0 0 3px rgba(224, 72, 62, .15); }

/* ---------- events ---------- */
.events { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 1.8rem; align-items: start; }
.cal-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.cal-head .script { font-size: 3.4rem; color: var(--berry); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem; }
.wd { justify-content: center; font-size: .6rem; padding-bottom: .3rem; }
.day {
    position: relative; aspect-ratio: 1 / 1.05; border-radius: 14px 12px 16px 10px;
    background: rgba(255, 255, 255, .55); border: 1.5px solid #f3e4d6;
    padding: .35rem .4rem; display: flex; flex-direction: column; overflow: hidden;
}
.day b { font-weight: 700; font-size: .8rem; color: var(--ink-soft); }
.day.blank { background: transparent; border-color: transparent; }
.day.today b { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; margin: -.2rem 0 0 -.25rem; border-radius: 50%; border: 2px solid var(--berry); color: var(--berry); }
.day.has-event { background: linear-gradient(180deg, #fff6ef, #fde3dc); border-color: #f4c5bd; transition: transform .35s var(--bounce), box-shadow .3s; }
.day.has-event:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: var(--shadow-lift); }
.day.has-event.on { border-color: var(--berry); box-shadow: 0 0 0 3px rgba(224, 72, 62, .15); }
.day-art { flex: 1; position: relative; min-height: 0; }
.day-art .art { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); }
.day-title { font-size: .54rem; font-weight: 800; letter-spacing: .04em; line-height: 1.15; color: var(--berry-deep); text-align: center; }
.event-chips { display: none; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.event-card {
    position: sticky; top: 12px;
    background: linear-gradient(180deg, #fffaf4, #fdeee8); border: 1.5px solid var(--line);
    border-radius: var(--r); padding: 1.5rem 1.5rem 1.6rem; text-align: left;
    animation: swap .5s var(--ease);
}
.event-art { width: 130px; margin: -.4rem auto .6rem; animation: bob 4s ease-in-out infinite; }
.event-card .detail-title { font-size: 2.2rem; }
.event-card .poem { margin-top: .8rem; font-size: 1rem; }
.event-metas { margin: 1rem 0; }
.event-meta { margin: .3rem 0 !important; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; color: var(--ink-soft); margin: 1rem 0; }
.event-meta .ico { color: var(--berry); }
.seats { margin: 1rem 0 1.3rem; }
.seat-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .5rem; }
.seat-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ecb3aa; background: #fffdf8; }
.seat-dots i.taken { background: #f0c1b9; border-color: #f0c1b9; }
.seat-dots i.mine { background: var(--berry); border-color: var(--berry); }
.seat-text { margin: 0; font-weight: 700; color: var(--berry-deep); }
.event-card .btn { width: 100%; }

/* ---------- bag ---------- */
.bag { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); gap: 2rem; align-items: start; }
.bag-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.bag-head .script, .bag-empty .script { font-size: 3.2rem; color: var(--berry); }
.bag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.bag-line {
    display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto 30px; align-items: center; gap: 1rem;
    padding: .7rem; background: #fffdf8; border: 1.5px solid var(--line); border-radius: 18px 16px 20px 14px;
    animation: rise .5s var(--ease) both;
}
.bag-thumb { width: 70px; height: 70px; border-radius: 14px; overflow: hidden; background: var(--blush); }
.bag-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.bag-thumb.is-art { display: grid; place-items: center; padding: 8px; background: linear-gradient(180deg, #fdf0e6, #f8e2d6); }
.bag-thumb .art-wrap, .bag-thumb .art { width: 100%; height: 100%; }
.bag-name { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.bag-name b { font-family: var(--serif); font-weight: 500; font-size: 1.08rem; }
.bag-name small { font-size: .58rem; }
.remove { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); transition: background .2s, color .2s, transform .3s var(--bounce); }
.remove:hover { background: var(--blush); color: var(--berry); transform: rotate(90deg); }
.bag-line.gift { grid-template-columns: 70px minmax(0, 1fr) auto; background: linear-gradient(90deg, #fff6ef, #fde8e2); border-style: dashed; border-color: #ecb3aa; }
.free { color: var(--leaf-deep); font-weight: 800; letter-spacing: .08em; }
.paper-note {
    position: relative; margin: 1.6rem auto 0; max-width: 420px; padding: 1.4rem 1.6rem 1.2rem;
    background: repeating-linear-gradient(180deg, #fffdf6 0 30px, #f3e6d6 30px 31px);
    border-radius: 4px; transform: rotate(-1.8deg); box-shadow: 0 12px 20px -14px rgba(120, 70, 40, .5);
}
.paper-note .hand { font-size: 1.5rem; color: var(--ink); line-height: 1.25; }
.tape { position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%) rotate(3deg); background: rgba(246, 207, 200, .75); border-left: 2px dashed rgba(255, 255, 255, .7); border-right: 2px dashed rgba(255, 255, 255, .7); }

.bag-summary {
    position: sticky; top: 12px; padding: 1.4rem 1.4rem 1.5rem;
    background: linear-gradient(180deg, #fffaf4, #fdeee8); border: 1.5px solid var(--line); border-radius: var(--r);
}
.row { display: flex; justify-content: space-between; margin: 0 0 .6rem; font-weight: 600; color: var(--ink-soft); }
.row.total { margin-top: 1rem; padding-top: 1rem; border-top: 1.5px dashed #e5c9b5; font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.pickup { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); margin: 1rem 0 1.2rem; }
.pickup .ico { color: var(--berry); margin-top: .15em; }
.fine { font-size: .75rem; color: var(--ink-soft); text-align: center; margin: .8rem 0 0; }

.bag-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 3rem 1rem; }
.bag-empty .art { width: 180px; animation: bob 4s ease-in-out infinite; }

/* ---------- overlay & toast & flyer ---------- */
.overlay {
    position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
    background: rgba(74, 52, 40, .28); backdrop-filter: blur(4px); animation: fade .3s ease;
}
.overlay-card { max-width: 420px; padding: 2rem; text-align: center; background: var(--paper); animation: pop .5s var(--bounce); }
.overlay-card .art { width: 120px; margin: 0 auto; }
.overlay-card .script { font-size: 3.4rem; color: var(--berry); margin: .4rem 0 .8rem; }
.overlay-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.4rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(20px); } }

.toast {
    position: fixed; left: 50%; bottom: 110px; z-index: 60;
    display: flex; align-items: center; gap: .6rem;
    padding: .8rem 1.3rem; border-radius: 999px; background: var(--ink); color: #fff;
    font-weight: 700; font-size: .9rem; white-space: nowrap; max-width: calc(100vw - 32px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4);
    transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
    transition: transform .45s var(--bounce), opacity .3s;
}
.toast svg { width: 18px; height: 18px; fill: #f19a97; flex: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.flyer { position: fixed; z-index: 70; width: 28px; height: 32px; pointer-events: none; }
.flyer svg { width: 100%; height: 100%; }

/* =========================================================
   Bottom bar
   ========================================================= */
.bottombar {
    position: relative; z-index: 4;
    display: flex; align-items: center; gap: 1.6rem;
    max-width: 1420px; margin: 8px auto 22px; padding: .8rem 1.4rem;
    background: rgba(255, 250, 242, .92); border: 1.5px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}
.mini-brand { display: flex; align-items: center; gap: .7rem; }
.mini-brand img { width: 40px; height: auto; }
.mini-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.mini-brand b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.mini-brand small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.slogan { margin: 0 0 0 auto; font-family: var(--script); font-size: 1.9rem; position: relative; white-space: nowrap; }
.slogan svg { width: 12px; height: 12px; fill: var(--berry); position: absolute; top: 0; right: -12px; }
.contact-chip {
    display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem .45rem .5rem;
    border: 1.5px solid #f2c9c2; background: #fff5f2; border-radius: 14px; font-weight: 800; font-size: .85rem;
    transition: transform .3s var(--bounce);
}
.contact-chip:hover { transform: translateY(-2px); }
.contact-chip svg { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--berry); color: #fff; }
.contact-chip span { display: flex; flex-direction: column; line-height: 1.15; }
.contact-chip small { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.iconnav { display: flex; gap: .4rem; padding-left: 1.2rem; border-left: 1.5px solid var(--line); }
.iconnav a {
    position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
    color: var(--ink-soft); transition: color .2s, background .2s, transform .3s var(--bounce);
}
.iconnav a svg { width: 26px; height: 26px; }
.iconnav a:hover { background: var(--blush); transform: translateY(-2px); }
.iconnav a.active { color: var(--berry); }
.iconnav a.active::after { content: ''; position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--berry); }
.dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--berry); border: 2px solid #fff; transform: scale(0); transition: transform .3s var(--bounce); }
.dot.on { transform: scale(1); }


/* =========================================================
   3D cake house
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.house { position: relative; width: 100%; aspect-ratio: 1; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.house.dragging { cursor: grabbing; }
.house:focus-visible { outline: 2.5px dashed var(--berry); outline-offset: -6px; border-radius: 30px; }
.house-stage { position: absolute; left: 0; top: 0; width: 700px; height: 700px; transform-origin: 0 0; perspective: 1700px; perspective-origin: 50% 38%; }
.house-rig { position: absolute; left: 350px; top: 575px; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-13deg); will-change: transform; }
.house-rig > div { position: absolute; transform-style: preserve-3d; }
.house-rig svg { display: block; overflow: visible; }
.h-face { left: -134px; top: -402px; width: 268px; height: 402px; backface-visibility: hidden; }
.h-right, .h-left { left: -90px; width: 180px; }
.h-front { top: -432px; height: 432px; transform: translateZ(90px); }
.h-back  { transform: rotateY(180deg) translateZ(90px); }
.h-right { transform: rotateY(90deg) translateZ(134px); }
.h-left  { transform: rotateY(-90deg) translateZ(134px); }
.shade { position: absolute; left: 0; right: 0; top: 26px; bottom: 0; background: #4a2a20; pointer-events: none; opacity: 0; }
.h-roof { left: -134px; top: calc(-376px - 90px); width: 268px; height: 180px; transform: rotateX(90deg); }
.h-ground { left: -320px; top: -320px; width: 640px; height: 640px; transform: rotateX(90deg); }
.h-awning { left: -63px; top: -152px; width: 196px; height: 56px; transform-origin: 50% 0; transform: translateZ(91px) rotateX(52deg); }
.bb {
    left: calc(var(--w) * -.5); top: calc(var(--h) * -1); width: var(--w); height: var(--h);
    transform-origin: 50% 100%;
    will-change: transform;
}
.bb svg { width: 100%; height: 100%; }
.rc { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.rc-strip { position: absolute; backface-visibility: hidden; background-repeat: no-repeat; }
.rc-body { background-image: var(--rc-body); }
.rc-ice { background-image: var(--rc-ice); }
.rc-disc { position: absolute; transform: rotateX(90deg); }
.rc-disc svg { display: block; overflow: visible; }
.h-door {
    left: -120px; top: -132px; width: 54px; height: 132px;
    transform-origin: 0 50%;                                   /* hinge on the left */
    transform: translateZ(90.8px) rotateY(0deg);
    transition: transform .65s cubic-bezier(.3, 1.35, .5, 1);
}
@media (hover: hover) and (pointer: fine) {
    .house:not(.entering):hover .h-door { transform: translateZ(90.8px) rotateY(-22deg); }   /* opens a crack, inviting you in */
}
.house.door-open .h-door { transform: translateZ(90.8px) rotateY(-105deg); transition: transform .7s cubic-bezier(.25, 1.2, .45, 1); }
.door-glow { opacity: 0; transition: opacity .3s; }
.house.door-open .door-glow { opacity: .35; transition: opacity .5s .2s; }
.house:hover .door-glow { animation: glow 1.6s ease-in-out infinite; }
.house.entering .door-glow { animation: none; }
@keyframes glow { 0%, 100% { opacity: 0; } 50% { opacity: .75; } }
.fox-tail { transform-box: fill-box; transform-origin: 100% 100%; animation: wag 2.2s ease-in-out infinite; }
@keyframes wag { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
.sparkles .tw { animation: twinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sparkles .tw2 { animation-delay: -.8s; }
.sparkles .tw3 { animation-delay: -1.6s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.55) rotate(25deg); opacity: .6; } }
@keyframes hover { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, -10px); } }
@keyframes flap { to { transform: scaleY(.5); } }
.door-veil { position: fixed; inset: 0; z-index: 80; background: var(--cream); animation: fade .4s ease .6s both; pointer-events: none; transition: opacity .7s ease; }   /* fades in once you are almost through the door */
.door-veil.out { opacity: 0; }
.house-hint { position: relative; z-index: 2; text-align: center; color: var(--ink-soft); font-size: 1.35rem; margin-top: -10px; display: flex; justify-content: center; align-items: center; gap: .4rem; }
.house-hint .ico { width: 1rem; }
.home-center { margin-top: -30px; }
.story-cafe { clear: both; max-width: 400px; margin: -10px 0 0 -10px; }

/* =========================================================
   Hand-drawn cakes
   ========================================================= */
.cake-wrap { display: grid; place-items: center; width: 100%; height: 100%; }
.cake { width: 100%; height: auto; overflow: visible; }
.cake .cake-body { transition: transform .8s var(--ease); transform: translateX(40px); }
.cake.open .cake-body { transform: translateX(-6px); }
.cake .layer, .cake .tops { transition: transform .8s var(--bounce); transition-delay: calc(var(--i) * 70ms); }
.cake.open .layer, .cake.open .tops { transform: translateY(calc(var(--lift) * -1px)); }
.cake .shell { transition: opacity .45s ease, transform .6s var(--ease); transform-box: fill-box; transform-origin: 50% 100%; }
.cake.open .shell { opacity: 0; transform: scale(1.08); pointer-events: none; }
.cake .cake-shadow { transition: transform .8s var(--ease); transform-box: fill-box; transform-origin: center; }
.cake.open .cake-shadow { transform: scale(.85); }
.cake .lbl { opacity: 0; transition: opacity .4s ease; }
.cake.open .lbl { opacity: 1; transition-delay: .55s; }
.cake .layer.hl > path:first-child, .cake .layer.hl > ellipse { stroke: var(--berry); stroke-width: 3.5; }
.cake .layer.hl .lbl text:first-of-type, .cake .tops.hl .lbl text:first-of-type { fill: var(--berry); }
/* Toppings hop only when you hover a menu cake. (Not on the cake's own page: there the
   toppings are redrawn as the cake spins, which restarted the hop and made them jitter.) */
@keyframes hop { 0%, 80%, 100% { transform: translateY(0); } 88% { transform: translateY(-3px); } }
@media (hover: hover) and (pointer: fine) {
    .item-card:hover .cake .tops > g, .mini:hover .cake .tops > g { animation: hop .9s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1s); }
    .item-card:hover .cake, .mini:hover .cake { animation: wiggle .6s var(--bounce); }
}
@keyframes wiggle { 0% { transform: rotate(0); } 30% { transform: rotate(-3deg); } 60% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
.item-art.is-art:has(.cake-wrap) { padding: 6%; }
.mini-art .cake-wrap { padding: 4px; }
.special-cake { display: block; width: 104%; margin-left: -2%; filter: drop-shadow(0 12px 14px rgba(160, 60, 45, .2)); }
.special-art { display: grid; place-items: center; }
.thumb .cake { width: 100%; height: 100%; padding: 2px; }

.cake-stage { width: 100%; max-width: 560px; cursor: grab; touch-action: pan-y; user-select: none; outline: none; border-radius: 30px; }
.cake-stage.dragging { cursor: grabbing; }
.cake-stage:focus-visible { outline: 2.5px dashed var(--berry); }
.cake-stage .cake { filter: drop-shadow(0 24px 22px rgba(150, 70, 50, .18)); }
.cake-controls { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.open-btn { font-size: .78rem; }
.open-btn .knife { font-size: 1.1rem; letter-spacing: 0; display: inline-block; transition: transform .4s var(--bounce); }
.open-btn:hover .knife { transform: rotate(-25deg); }
.open-btn[aria-pressed="true"] { background: var(--berry); color: #fff; border-color: var(--berry); }

.inside { width: 100%; margin: .2rem 0 1.3rem; padding: 1rem 1.1rem; border-radius: 18px; border: 1.5px dashed #ecc7bc; background: rgba(255, 246, 240, .7); transition: background .4s, border-color .4s; }
.inside.on { background: #fff3ee; border-color: var(--berry); }
.inside-list { list-style: none; counter-reset: lay; margin: .7rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.inside-list li { display: flex; align-items: flex-start; gap: .7rem; padding: .3rem .4rem; border-radius: 10px; font-size: .86rem; color: var(--ink-soft); cursor: default; transition: background .2s; }
.inside-list li:hover { background: #fde3dc; }
.inside-list li i { flex: none; width: 22px; height: 14px; margin-top: .25em; border-radius: 4px; border: 1.5px solid var(--ink); }
.inside-list b { color: var(--ink); font-weight: 800; margin-right: .3em; }

.polaroid {
    position: relative; margin-top: 1.4rem; padding: 8px 8px 6px; background: #fff; border-radius: 4px;
    box-shadow: 0 12px 20px -12px rgba(120, 70, 40, .5); transform: rotate(3deg); transition: transform .4s var(--bounce);
}
.polaroid:hover { transform: rotate(-1deg) scale(1.05); }
.polaroid img { width: 104px; height: 104px; object-fit: cover; object-position: 50% 68%; }
.polaroid .hand { display: block; font-size: 1.15rem; text-align: center; margin-top: 2px; }
.polaroid .tape { width: 50px; height: 16px; top: -9px; }
.photo-card { padding: 1rem; max-width: min(92vw, 520px); }
.photo-card img { width: 100%; border-radius: 12px; margin-bottom: 1rem; max-height: 70vh; object-fit: contain; }

@media (max-width: 1080px) {
    .story-cafe { grid-column: 2; grid-row: 1 / span 4; margin: 0; width: 100%; }
}
@media (max-width: 900px) {
    .home-center { margin-top: -10px; }
    .house-hint { font-size: 1.1rem; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
    .home { grid-template-columns: minmax(0, 1fr) 380px; }
    .home-left { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0 2.4rem; align-items: center; padding-top: 10px; }
    .home-left .hero-title, .home-left .hero-sub, .home-left .squiggle { grid-column: 1; }
    .home-left .sidenav { grid-column: 2; grid-row: 1 / span 3; flex-direction: row; flex-wrap: wrap; }
    .home-left .note-card { display: none; }
    .hero-title .sprig { display: none; }
    .slogan { display: none; }
    .contact-chip { margin-left: auto; }
}

@media (max-width: 1080px) {
    .topnav { gap: 1.4rem; }
    .sub { grid-template-columns: minmax(0, 1fr); }
    .sub-panel { min-width: 0; }
    .story { position: static; display: grid; grid-template-columns: 1fr 260px; align-items: end; padding-top: 6px; }
    .story > :not(.story-cafe) { grid-column: 1; }
    .story-cafe { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
    .you-are-here { display: none; }
    .story-title { margin-top: .8rem; }
    .detail { grid-template-columns: 1fr; }
    .detail-stage { order: 0; }
    .events, .bag { grid-template-columns: 1fr; }
    .event-card, .bag-summary { position: static; }
}

@media (max-width: 900px) {
    body { padding-bottom: 84px; }
    .topbar { padding: 14px 16px 4px; gap: 1rem; }
    .topnav { display: none; }
    .pills { margin-left: auto; }
    .brand-name { font-size: 2.1rem; }
    .brand-logo { width: 52px; }
    .view { padding: 6px 16px 20px; }

    .home { grid-template-columns: 1fr; gap: 10px; }
    .home-left { display: flex; padding-top: 0; }
    .home-left .sidenav { display: none; }
    .hero-title { font-size: 3.4rem; }
    .squiggle { margin-bottom: 0; }
    .home-right { padding-top: 0; }

    .bottombar {
        position: fixed; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: .5rem; justify-content: space-around;
    }
    .mini-brand, .contact-chip { display: none; }
    .iconnav { border: 0; padding: 0; width: 100%; justify-content: space-around; }
    .toast { bottom: 96px; }

    .sub-panel { padding: 1.2rem; min-height: 0; }
    .story { grid-template-columns: 1fr 150px; }
    .story-title { font-size: 3.6rem; }
    .back.caps { font-size: .62rem; }
}

@media (max-width: 600px) {
    .pill { padding: .4rem .8rem .4rem .6rem; font-size: .9rem; }
    .pills > span.pill { display: none; }      /* hide the favourites counter, keep the language switch */
    .pills > .pill-acc { display: none; }      /* the account is in the bottom bar on phones */
    .brand-sub { letter-spacing: .26em; font-size: .56rem; }
    .brand-heart { display: none; }
    .special { grid-template-columns: 1fr 120px; padding: 1.2rem; }
    .special-title { font-size: 1.8rem; }
    .special-side { display: none; }
    .shelf-row { gap: .5rem; }
    .mini-name { font-size: .72rem; }
    .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
    .item-card { padding: .5rem .5rem .7rem; }
    .item-name { font-size: .95rem; }
    .item-line { display: none; }
    .item-foot { padding: 0; gap: .1rem; }
    .item-foot .price { font-size: .88rem; }
    .fav { width: 30px; height: 30px; }
    .add-round { width: 32px; height: 32px; }
    .panel-head .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1.2rem; padding: 0 1.2rem .3rem; width: calc(100% + 2.4rem); scrollbar-width: none; }
    .chip { flex: none; }
    .day-title { display: none; }
    .day { padding: .2rem; }
    .cal-head .script { font-size: 2.8rem; }
    .event-chips { display: flex; }
    .bag-line { grid-template-columns: 56px minmax(0, 1fr) auto; gap: .2rem .8rem; }
    .bag-thumb { width: 56px; height: 56px; grid-row: span 2; }
    .bag-line .qty { grid-column: 2; justify-self: start; }
    .bag-line .price { grid-column: 3; grid-row: 2; }
    .bag-line .remove { grid-column: 3; grid-row: 1; justify-self: end; }
    .bag-line.gift { grid-template-columns: 56px minmax(0, 1fr) auto; }
    .bag-line.gift .bag-thumb { grid-row: auto; }
    .bag-line.gift .price { grid-row: auto; }
    .bag-head .script, .bag-empty .script { font-size: 2.6rem; }
    .detail-title { font-size: 2.3rem; }
}

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

/* =========================================================
   Cat theme skin — sticker outlines & rounded doodle type,
   matching the Simona Sweets logo
   ========================================================= */
.hand { font-family: var(--hand); font-weight: 700; font-size: 1.5rem; color: var(--berry-deep); }
.poem { font-family: var(--sans); font-size: 1rem; line-height: 1.7; color: #5a4a40; }
.caps { color: var(--ink-soft); }
.caps .ico { color: var(--berry-deep); }
.mini-heart { fill: var(--berry); }
.squiggle { color: var(--ginger); }

.brand-name { font-size: 2.15rem; letter-spacing: .5px; }
.brand-heart { width: 18px; height: 18px; top: -8px; right: -22px; }
.fl.sparkle { opacity: .6; }
.fl.paw { fill: var(--ginger); opacity: .28; }
.fl.heart { fill: var(--pink); opacity: .5; }

.card { background: var(--paper); border: 2.5px solid var(--ink); box-shadow: var(--shadow); backdrop-filter: none; }

.btn-berry { background: var(--berry); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-berry:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--ink); }
.btn-berry:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-soft { background: var(--sky); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-soft:hover { background: #d3ebf8; transform: translate(-1px, -2px); }

.pill { background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.pill-heart { fill: var(--berry); stroke: var(--ink); stroke-width: 1.8px; }
.pill-berry { width: 28px; height: 28px; }
.topnav a, .topnav a.active { color: var(--ink); }
.topnav a::after { height: 4px; background: var(--berry); }

.hero-title { font-size: clamp(2.6rem, 3.3vw, 3.25rem); line-height: 1.04; }
.hero-title .sprig { width: 30px; height: 30px; left: -36px; top: -6px; }
.story-title { font-size: clamp(2.8rem, 4.2vw, 4rem); line-height: 1; }

.sidenav a { background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.sidenav a.active { background: var(--berry); color: var(--ink); border-color: var(--ink); }
.badge { background: var(--ink); }

.note-card { border: 2.5px solid var(--ink); background: var(--ginger-soft); box-shadow: 3px 4px 0 var(--ink); padding-left: 5.6rem; }
.note-cat { position: absolute; left: -16px; top: -28px; width: 94px; transform: rotate(-8deg); animation: bob 4s ease-in-out infinite; }
.note-hand { font-family: var(--script); font-size: 1.35rem; line-height: 1.15; }

.special { background: radial-gradient(120% 120% at 100% 100%, rgba(247, 194, 210, .85), transparent 60%), linear-gradient(140deg, #fffaf0, #fde6ec); }
.special-title { font-family: var(--script); font-style: normal; font-weight: 400; color: var(--ink); font-size: 2.3rem; }
.special-side { color: var(--berry-deep); font-size: 1.25rem; }
.sb3 { fill: var(--ginger); }

.mini-art { border: 2px solid var(--ink); background: linear-gradient(180deg, #fff3d6, #fde6ec); }
.mini-name, .item-name, .bag-name b, .mini-brand b { font-family: var(--script); font-weight: 400; letter-spacing: .3px; }
.item-name { font-size: 1.22rem; }
.goods .good { background: linear-gradient(180deg, #eef7fc, #d6ebf7); border: 2px solid var(--ink); }

.chip { border: 2px solid var(--ink); background: var(--paper); color: var(--ink); }
.chip.on { background: var(--berry); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }

.item-card { background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.item-card:hover { box-shadow: 6px 8px 0 var(--ink); }
.item-art, .item-art.is-art { background: linear-gradient(180deg, #fff3d6, #fde6ec); border: 2px solid var(--ink); }
.add-round { background: var(--berry); color: var(--ink); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.fav svg { stroke: var(--ink); }
.fav[aria-pressed="true"] svg { fill: var(--berry); stroke: var(--ink); }
.fav-lg { border: 2px solid var(--ink); background: var(--paper); }
.price, .detail-price { color: var(--ink); }

.detail-title { font-family: var(--script); font-style: normal; font-weight: 400; color: var(--ink); letter-spacing: .5px; }
.tags li { border: 2px solid var(--ink); color: var(--ink); background: var(--ginger-soft); }
.sizes button { border: 2px solid var(--ink); background: var(--paper); font-family: var(--sans); font-weight: 800; }
.sizes button[aria-checked="true"] { background: var(--berry); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.qty { border: 2px solid var(--ink); background: var(--paper); }
.qty button:hover { background: var(--blush); color: var(--ink); }
.thumb { border: 2px solid var(--ink); background: linear-gradient(180deg, #fff3d6, #fde6ec); }
.thumb.on { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); background: var(--pink); }
.inside { border: 2px dashed var(--ink); background: #fffaf0; }
.inside.on { border-style: solid; border-color: var(--ink); background: var(--blush); }
.inside-list li i { border: 2px solid var(--ink); }
.open-btn[aria-pressed="true"] { background: var(--berry); color: var(--ink); border-color: var(--ink); }
.polaroid { border: 2px solid var(--ink); }
.polaroid .hand { color: var(--berry-deep); }

.cal-head .script { font-size: 2.8rem; color: var(--ink); }
.day { border: 2px solid rgba(43, 36, 32, .16); background: rgba(255, 252, 242, .8); }
.day.has-event { background: linear-gradient(180deg, #fffaf0, #fde6ec); border: 2px solid var(--ink); }
.day.has-event.on { background: var(--pink); box-shadow: 3px 3px 0 var(--ink); border-color: var(--ink); }
.day.today b { border-color: var(--ink); color: var(--ink); background: var(--butter); }
.day-title { color: var(--ink); }
.event-card, .bag-summary { background: linear-gradient(180deg, #fffcf2, #fff3d6); border: 2.5px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.event-meta .ico, .pickup .ico, .note-info .ico { color: var(--berry-deep); }
.seat-dots i { border-color: var(--ink); }
.seat-dots i.taken { background: var(--ginger); border-color: var(--ink); }
.seat-dots i.mine { background: var(--berry); border-color: var(--ink); }
.seat-text { color: var(--ink); }

.bag-head .script, .bag-empty .script, .overlay-card .script { color: var(--ink); font-size: 2.6rem; }
.bag-line { background: var(--paper); border: 2px solid var(--ink); }
.bag-line.gift { background: linear-gradient(90deg, #fffaf0, #fde6ec); border: 2px dashed var(--ink); }
.bag-thumb { border: 2px solid var(--ink); background: linear-gradient(180deg, #fff3d6, #fde6ec); }
.remove:hover { color: var(--ink); }
.paper-note { border: 2px solid var(--ink); }
.paper-note .hand { color: var(--ink); font-size: 1.45rem; }
.tape { background: rgba(191, 224, 242, .9); }
.row.total { border-top: 2px dashed var(--ink); }
.overlay-card { border: 2.5px solid var(--ink); }

.bottombar { background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); backdrop-filter: none; }
.slogan { font-family: var(--hand); font-weight: 700; font-size: 1.65rem; }
.slogan svg { width: 18px; height: 18px; right: -22px; top: -4px; }
.contact-chip { border: 2px solid var(--ink); background: var(--blush); }
.contact-chip svg { background: var(--berry); color: var(--ink); border: 2px solid var(--ink); }
.iconnav { border-left-color: rgba(43, 36, 32, .2); }
.iconnav a.active { color: var(--berry-deep); }
.iconnav a.active::after { background: var(--ink); }
.dot { background: var(--berry); border-color: var(--ink); }
.toast svg { width: 20px; height: 20px; }
.flyer { width: 34px; height: 34px; }
.back, .link { color: var(--ink); }
.back:hover, .link:hover { color: var(--berry-deep); }
.you-are-here { color: var(--berry-deep); }
.house-hint { color: var(--ink-soft); }

@media (max-width: 900px) {
    .brand-name { font-size: 1.75rem; }
    .hero-title { font-size: 2.6rem; }
    .story-title { font-size: 2.8rem; }
}

/* =========================================================
   Mascots — the Simona cat in different poses
   ========================================================= */
.story-mascot {
    float: left; width: 122px; height: auto; margin: 1rem 0 0 -4px;
    filter: drop-shadow(0 8px 8px rgba(120, 80, 40, .18));
    animation: mascotIn .7s var(--bounce) both, bob 4.5s ease-in-out .7s infinite;
    pointer-events: none;
}
@keyframes mascotIn { from { opacity: 0; transform: translateY(16px) scale(.85) rotate(-6deg); } to { opacity: 1; transform: none; } }
.peek-cat { position: absolute; left: -6px; bottom: 54px; width: 96px; transform: rotate(-6deg); animation: bob 4s ease-in-out infinite; pointer-events: none; }
.detail-stage { position: relative; }
.bag-empty .mascot { width: 190px; height: auto; animation: bob 4s ease-in-out infinite; }
.bag-head { position: relative; }
.overlay-card .mascot { width: 150px; margin: -70px auto 0; display: block; animation: mascotIn .6s var(--bounce) both; }
.door-veil { display: grid; place-items: center; }
.door-veil .veil-inner { text-align: center; animation: mascotIn .6s var(--bounce) both; }
.door-veil img { width: 150px; margin: 0 auto; }
.door-veil p { font-family: var(--script); font-size: 2rem; margin: .4rem 0 0; color: var(--ink); }

@media (max-width: 1080px) {
    .story-mascot { float: none; width: 92px; margin: .6rem 0 0; }
}
@media (max-width: 900px) {
    .story-mascot { width: 72px; }
    .peek-cat { width: 72px; bottom: 70px; }
}

/* =========================================================
   Phones ("lite" mode, set in app.js) — keep it smooth
   ========================================================= */
.lite .fox-tail, .lite .sparkles .tw, .lite .house:hover .door-glow { animation: none; }
.lite .cake-stage .cake, .lite .story-mascot, .lite .special-cake, .lite .brand-logo,
.lite .home-center .cake, .lite .note-berry { filter: none; }
.lite .brand-logo { animation: none; }
.lite .overlay { backdrop-filter: none; background: rgba(74, 52, 40, .4); }

/* =========================================================
   Allergens, checkout consent & legal pages
   ========================================================= */
.al { display: inline-flex; align-items: center; padding: .22em .7em; border-radius: 999px; font-size: .74rem; font-weight: 800; line-height: 1.3; border: 2px solid var(--ink); margin: 0 .3rem .3rem 0; }
.al-yes { background: var(--berry); color: var(--ink); }
.al-may { background: var(--paper); border-style: dashed; color: var(--ink-soft); }
.al-none { background: #e3f3e0; }
.allergen-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .2rem; margin: 0 0 .3rem; }
.allergen-row b { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); min-width: 7.2em; margin-right: .4rem; }
.allergen-note { font-size: .78rem; color: var(--ink-soft); margin: .5rem 0 0; line-height: 1.5; }
.allergen-note a, .menu-note a, .agree a, .legal a { color: var(--berry-deep); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.allergen-box { width: 100%; margin: 0 0 1.3rem; padding: 1rem 1.1rem; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); }
.allergen-box > .caps { margin-bottom: .6rem; }
.allergens.compact { margin-top: .35rem; }
.allergens.compact .allergen-row b { min-width: 0; font-size: .6rem; }
.allergens.compact .al { font-size: .64rem; padding: .1em .55em; border-width: 1.5px; }

.menu-note { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: -.4rem 0 1.2rem; padding: .6rem .9rem; border-radius: 14px; background: var(--ginger-soft); border: 2px solid var(--ink); font-size: .85rem; font-weight: 600; }
.menu-note .ico { color: var(--berry-deep); }

.bag-line.gift { grid-template-columns: 70px minmax(0, 1fr) auto; }
.bag-line.gift.off { opacity: .6; }
.gift-toggle { padding: .45em .9em; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); font-weight: 800; font-size: .72rem; white-space: nowrap; }
.gift-toggle:hover { background: var(--sky); }
.bag-allergens { margin: 1rem 0 .4rem; }
.bag-allergens .caps { display: flex; margin-bottom: .4rem; }
.notes { display: flex; flex-direction: column; gap: .35rem; margin: .8rem 0 0; font-weight: 800; font-size: .82rem; }
.notes small { font-weight: 600; color: var(--ink-soft); }
.notes textarea { font: inherit; font-weight: 600; font-size: .9rem; padding: .6rem .7rem; border-radius: 12px; border: 2px solid var(--ink); background: #fffdf6; resize: vertical; min-height: 3.2em; }
.notes textarea:focus { outline: 2.5px dashed var(--berry); outline-offset: 2px; }
.agree { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1rem; font-size: .85rem; font-weight: 600; line-height: 1.45; cursor: pointer; }
.agree input { width: 20px; height: 20px; flex: none; margin-top: .1rem; accent-color: var(--berry-deep); }

.is-legal { padding: 2rem 2.4rem 2.4rem; }
.legal { max-width: 760px; }
.legal .script { font-size: 2.6rem; margin-bottom: .8rem; }
.legal .lead { font-size: 1.05rem; font-weight: 600; line-height: 1.6; margin: 0 0 1.2rem; }
.legal h3 { font-family: var(--script); font-weight: 400; font-size: 1.45rem; margin: 1.8rem 0 .5rem; scroll-margin-top: 20px; }
.legal p, .legal li { line-height: 1.7; font-size: .95rem; color: #4a3d35; }
.legal ul { padding-left: 1.2rem; margin: 0; }
.legal li { margin-bottom: .4rem; }
.legal .updated { margin-top: 2rem; font-size: .8rem; color: var(--ink-soft); }
.callout { padding: .9rem 1.1rem; border-radius: 16px; border: 2px solid var(--ink); background: var(--ginger-soft); font-weight: 600; line-height: 1.6; margin-bottom: 1.2rem; }
.toc { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .6rem; }
.toc a { padding: .35em .85em; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); font-size: .76rem; font-weight: 800; text-decoration: none !important; color: var(--ink) !important; }
.toc a:hover { background: var(--pink); }
.legend { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 700; margin: 0 0 .6rem; }
.legend .key { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; }
.key.yes { background: var(--berry); }
.key.may { background: var(--paper); border: 1.5px dashed var(--ink); }
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); }
.allergen-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .82rem; }
.allergen-table th, .allergen-table td { border-bottom: 1.5px solid rgba(43, 36, 32, .12); padding: .45rem .3rem; text-align: center; }
.allergen-table thead th { font-size: .68rem; font-weight: 800; letter-spacing: .04em; vertical-align: bottom; height: 96px; }
.allergen-table thead th span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.allergen-table thead th:first-child { text-align: left; }
.allergen-table thead th:first-child span { writing-mode: horizontal-tb; transform: none; }
.allergen-table tbody th { text-align: left; font-weight: 800; padding-left: .8rem; white-space: nowrap; position: sticky; left: 0; background: var(--paper); }
.allergen-table tbody th a { color: var(--ink); text-decoration: none; }
.allergen-table tbody th small { display: block; font-weight: 600; color: var(--ink-soft); font-size: .72rem; }
.allergen-table td.yes { background: rgba(239, 138, 166, .35); font-weight: 900; }
.allergen-table td.may { color: var(--ink-soft); }
.allergen-table .gift-row th, .allergen-table .gift-row td { border-top: 2px dashed var(--ink); }

.legal-links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem 1.2rem; max-width: 1420px; margin: 0 auto; padding: .4rem 16px .8rem; font-size: .8rem; font-weight: 700; }
.legal-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-links a:hover { color: var(--berry-deep); }
.legal-links span { color: var(--ink-soft); font-weight: 600; }

@media (max-width: 600px) {
    .is-legal { padding: 1.2rem; }
    .legal .script { font-size: 2.1rem; }
    .bag-line.gift { grid-template-columns: 56px minmax(0, 1fr); }
    .gift-toggle { grid-column: 2; justify-self: start; margin-top: .3rem; }
    .allergen-row b { min-width: 100%; margin-bottom: .2rem; }
}
.story-sub { display: flex; }

/* =========================================================
   English / 中文
   ========================================================= */
.lang-toggle { gap: .3rem; padding: .5rem .85rem; font-weight: 900; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.lang-toggle span { opacity: .4; transition: opacity .2s, color .2s; }
.lang-toggle .l-sep { opacity: .3; }
.lang-toggle[data-lang="en"] .l-en, .lang-toggle[data-lang="zh"] .l-zh { opacity: 1; color: var(--berry-deep); }
.lang-toggle:hover { transform: translateY(-1px); }

/* Chinese: playful ZCOOL KuaiLe for headings and handwriting, the system's Chinese font for body text */
:root:lang(zh) {
    --script: 'Chewy', 'ZCOOL KuaiLe', 'PingFang SC', 'Microsoft YaHei', cursive;
    --hand: 'ZCOOL KuaiLe', 'Gaegu', cursive;
    --sans: 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}
:lang(zh) .caps { letter-spacing: .12em; }
:lang(zh) .hand { font-weight: 400; }
:lang(zh) .slogan, :lang(zh) .house-hint { letter-spacing: .04em; }
@media (max-width: 600px) {
    .lang-toggle { padding: .4rem .55rem; font-size: .76rem; gap: .2rem; }
    .brand { min-width: 0; }
    .brand-name { font-size: 1.45rem; }
    .brand-logo { width: 44px; }
    .brand-sub { white-space: nowrap; letter-spacing: .12em; font-size: .52rem; }
    .pills { gap: .4rem; flex: none; }
}

/* =========================================================
   Collection / delivery
   ========================================================= */
.fulfil { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1rem 0 .8rem; }
.fulfil button {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .6rem .5rem; border-radius: 14px; border: 2px solid var(--ink); background: var(--paper);
    font-weight: 800; font-size: .85rem; transition: background .2s, box-shadow .2s;
}
.fulfil button[aria-checked="true"] { background: var(--berry); box-shadow: 2px 2px 0 var(--ink); }
.fulfil .ico { width: 1.05em; height: 1.05em; }
.del-form { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.del-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 800; font-size: .82rem; }
.del-form input, .del-form select { font: inherit; font-weight: 600; font-size: .92rem; padding: .55rem .7rem; border-radius: 12px; border: 2px solid var(--ink); background: #fffdf6; color: var(--ink); min-width: 0; width: 100%; }
.del-form input:focus, .del-form select:focus { outline: 2.5px dashed var(--berry); outline-offset: 2px; }
.del-form label small { font-weight: 600; opacity: .65; }
.you-form { padding-top: .9rem; border-top: 2px dashed rgba(43, 36, 32, .2); }
.you-form > .caps { margin: 0; }
.when-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.del-form .btn { padding: .7em 1em; font-size: .74rem; }
.del-msg { margin: 0; padding: .6rem .8rem; border-radius: 12px; background: var(--ginger-soft); border: 2px solid var(--ink); font-size: .84rem; font-weight: 600; line-height: 1.5; }
.del-msg.warn { background: #ffe3e3; }
.del-quote { padding: .7rem .8rem .5rem; border-radius: 14px; border: 2px solid var(--ink); background: #eef7fc; }
.del-dist { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-weight: 800; font-size: .85rem; }
.del-dist .ico { color: var(--berry-deep); }
.row.small { font-size: .8rem; margin-bottom: .35rem; gap: .8rem; }
.row.small span:first-child { line-height: 1.35; }
.del-tip { margin: .3rem 0 .2rem; font-size: .78rem; color: var(--ink-soft); line-height: 1.45; }
.fine.warn { color: #b3261e; font-weight: 700; }

/* =========================================================
   Delivery map
   ========================================================= */
.is-map { padding: 1.6rem 1.8rem 2rem; }
.dmap-head .script { font-size: 2.6rem; color: var(--ink); margin-bottom: .5rem; }
.dmap-head .lead { margin: 0 0 1rem; font-weight: 600; line-height: 1.6; max-width: 62ch; }
.dmap-view {
    position: relative; height: min(70vh, 620px); overflow: hidden; touch-action: none; cursor: grab;
    border: 2.5px solid var(--ink); border-radius: 20px; background: #f4ecd6; box-shadow: 4px 5px 0 var(--ink);
    user-select: none; -webkit-user-select: none; outline: none;
}
.dmap-view:active { cursor: grabbing; }
.dmap-view:focus-visible { outline: 2.5px dashed var(--berry); outline-offset: 4px; }
.dmap-layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.dmap-layer img, .dmap-layer svg { position: absolute; inset: 0; display: block; max-width: none; }
.dmap .zone { opacity: .6; }
.dmap .zone-five { fill: none; stroke: #2b2420; stroke-width: 2.5; stroke-dasharray: 9 7; opacity: .75; vector-effect: non-scaling-stroke; }
.dmap .zone-edge { fill: none; stroke: #2b2420; stroke-width: 3; opacity: .85; vector-effect: non-scaling-stroke; }
.pin-shop circle { fill: #fffaf0; stroke: var(--ink); stroke-width: 4; }
.pin-princes path { fill: var(--berry); stroke: var(--ink); stroke-width: 3; }
.pin-princes circle { fill: #fffaf0; stroke: var(--ink); stroke-width: 2; }
.pin-princes text { font: 800 26px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #fffaf0; stroke-width: 6px; }
.probe circle:first-child { fill: none; stroke: var(--ink); stroke-width: 3; }
.probe circle:last-child { fill: var(--ink); }
.dmap-readout {
    position: absolute; transform: translate(-50%, -100%); pointer-events: none; z-index: 2;
    padding: .5rem .8rem; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink);
    font-size: .82rem; font-weight: 700; line-height: 1.35; text-align: center; white-space: nowrap;
}
.dmap-readout b { display: block; font-size: .9rem; }
.dmap-readout small { display: block; font-weight: 600; color: var(--ink-soft); white-space: normal; max-width: 220px; margin-top: .2rem; }
.dmap-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.dmap-zoom button { width: 38px; height: 38px; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); font: 900 1.2rem var(--sans); box-shadow: 2px 2px 0 var(--ink); }
.dmap-zoom button:hover { background: var(--pink); }
.dmap-attrib { position: absolute; right: 6px; bottom: 4px; margin: 0; padding: 1px 6px; border-radius: 6px; background: rgba(255, 250, 240, .85); font-size: .62rem; color: var(--ink-soft); z-index: 2; }
.dmap-hint { text-align: center; color: var(--ink-soft); font-size: 1.15rem; margin: .6rem 0 1rem; }
.dmap-legend { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .45rem .9rem; }
.dmap-legend li { display: flex; align-items: center; gap: .55rem; font-size: .86rem; font-weight: 600; }
.dmap-legend i { width: 26px; height: 18px; border-radius: 6px; border: 2px solid var(--ink); flex: none; }
.dmap-legend li.none i { background: repeating-linear-gradient(45deg, #fff 0 4px, #e7dcc8 4px 8px); }
.dmap-legend span { flex: 1; color: var(--ink-soft); }
.dmap-legend b { font-weight: 800; }
.dmap-notes { margin: 0 0 1.2rem; padding-left: 1.1rem; font-size: .85rem; line-height: 1.6; color: #4a3d35; }
@media (max-width: 600px) {
    .is-map { padding: 1rem; }
    .dmap-view { height: 62vh; }
    .dmap-head .script { font-size: 2.1rem; }
}

.dmap-credits { font-size: .68rem; color: var(--ink-soft); line-height: 1.5; margin: 0 0 1rem; }

/* ---------- admin console (demo) on top of the shop ---------- */
html.admin-open, html.admin-open body { overflow: hidden; }
.admin-frame { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: var(--cream); }
.admin-frame-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem .8rem; background: var(--ink); color: var(--paper); font-size: .85rem; }
.admin-frame-bar .btn { padding: .35em .8em; font-size: .72rem; display: inline-flex; align-items: center; gap: .3rem; }
.admin-frame-bar .ico { width: 1em; height: 1em; }
.admin-frame iframe { flex: 1; width: 100%; border: 0; display: block; }

/* ---------- my account ---------- */
.pill-user { width: 22px; height: 22px; color: var(--ink); }
.pill-acc #accName:empty { display: none; }
.pill-acc.on { background: var(--blush); }
.pill-acc #accName { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--berry); color: #fff; font-size: .85rem; border: 2px solid var(--ink); }
.acc { display: flex; flex-direction: column; gap: 1.1rem; }
.acc-head h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.acc-head.in { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.acc-head .caps { margin: .3rem 0 0; }
.acc-out { max-width: 30rem; }
.acc-tabs { margin: 0; }
.acc-form { margin: 0; }
.acc-demo { margin: 0; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.acc-demo p { margin: 0; }
.acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.sticker {
    background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--r); box-shadow: 3px 4px 0 var(--ink);
    padding: .8rem .9rem; display: flex; flex-direction: column; gap: .15rem; transform: rotate(-.6deg);
}
.sticker:nth-child(2n) { transform: rotate(.7deg); background: #fff8e4; }
.sticker b { font-family: var(--script); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.sticker b i { font-style: normal; font-size: 1.1rem; color: var(--ink-soft); }
.sticker b.fav-name { font-size: 1.25rem; }
.sticker span { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.sticker-fav { background: var(--blush) !important; }
.acc-sec { display: flex; flex-direction: column; gap: .6rem; }
.acc-sec > h3 { margin: 0; display: flex; align-items: center; gap: .45rem; }
.acc-sec > h3 .ico { width: 1.1em; height: 1.1em; }
.acc-year { margin: .4rem 0 0; font-size: 1.4rem; color: var(--berry-deep); }
.acc-order { border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 3px 3px 0 rgba(43, 36, 32, .18); overflow: hidden; }
.acc-order summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 11rem 1fr auto auto; gap: .5rem 1rem; align-items: center; padding: .75rem 1rem; }
.acc-order summary::-webkit-details-marker { display: none; }
.acc-order summary:hover { background: #fff8e8; }
.acc-order[open] summary { border-bottom: 2px dashed rgba(43, 36, 32, .18); }
.ao-date b, .ao-date small { display: block; }
.ao-date small { color: var(--ink-soft); font-weight: 700; }
.ao-items { font-size: .9rem; line-height: 1.5; }
.ao-items small { color: var(--ink-soft); }
.ao-status { font-weight: 800; font-size: .76rem; padding: .2rem .65rem; border-radius: 99px; border: 1.5px solid var(--ink); background: #fff0b8; white-space: nowrap; }
.st-confirmed .ao-status { background: #dcefff; }
.st-baking .ao-status { background: var(--ginger-soft); }
.st-ready .ao-status, .st-out_for_delivery .ao-status { background: var(--blush); }
.st-completed .ao-status { background: #e3f1db; }
.st-cancelled .ao-status { background: #eee; color: #888; text-decoration: line-through; }
.st-cancelled { opacity: .7; }
.ao-total { font-size: 1.05rem; }
.ao-more { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; font-size: .92rem; }
.ao-more p { margin: 0; display: flex; align-items: center; gap: .4rem; }
.ao-more .ico { width: 1.05em; height: 1.05em; }
.ao-money { color: var(--ink-soft); }
.ao-steps { list-style: none; margin: 0 0 .3rem; padding: 0; display: flex; width: 100%; counter-reset: s; }
.ao-steps li { flex: 1; position: relative; text-align: center; font-size: .74rem; font-weight: 800; color: var(--ink-soft); padding-top: 1.8rem; counter-increment: s; }
.ao-steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; translate: -50% 0; width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 2px solid rgba(43, 36, 32, .3); background: #fff; display: grid; place-items: center; font-size: .72rem; z-index: 1; }
.ao-steps li::after { content: ''; position: absolute; top: .66rem; left: -50%; width: 100%; height: 3px; background: rgba(43, 36, 32, .12); }
.ao-steps li:first-child::after { display: none; }
.ao-steps li.done { color: var(--leaf-deep); }
.ao-steps li.done::before { content: '✓'; background: var(--leaf); border-color: var(--leaf-deep); color: #fff; }
.ao-steps li.done::after, .ao-steps li.now::after { background: var(--leaf); }
.ao-steps li.now { color: var(--ink); }
.ao-steps li.now::before { background: var(--berry); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(239, 138, 166, .3); }
.acc-cakes { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .8rem; }
.acc-cake { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: .6rem .4rem .7rem; border-radius: 18px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 rgba(43, 36, 32, .18); transition: transform .2s var(--bounce); }
.acc-cake:hover { transform: translateY(-3px) rotate(-1deg); }
.acc-cake-art { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; overflow: hidden; }
.acc-cake-art img { width: 100%; height: 100%; object-fit: cover; }
.acc-cake-art .art-wrap, .acc-cake-art svg { width: 100%; height: 100%; }
.acc-cake b { font-size: .84rem; line-height: 1.2; }
.acc-cake i { position: absolute; top: .4rem; right: .4rem; font-style: normal; font-family: var(--script); font-size: 1.05rem; background: var(--berry); color: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 0 .45rem; }
.acc-cake.ghost { opacity: .55; border-style: dashed; box-shadow: none; }
.acc-cake.ghost i { background: var(--paper); color: var(--ink-soft); font-family: var(--sans); font-size: .66rem; font-weight: 800; padding: .1rem .4rem; }
.acc-chart { width: 100%; height: auto; }
.acc-chart rect { fill: var(--berry); stroke: var(--ink); stroke-width: 1.5; }
.acc-chart rect:hover { fill: var(--berry-deep); }
.acc-chart .base { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.acc-chart text { font-size: 13px; font-weight: 700; fill: var(--ink-soft); font-family: var(--sans); }
@media (max-width: 760px) {
    .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acc-order summary { grid-template-columns: 1fr auto; }
    .ao-items { grid-column: 1 / -1; grid-row: 2; }
    .ao-status { grid-column: 2; grid-row: 1; }
    .ao-total { grid-column: 2; grid-row: 3; text-align: right; }
}

/* =========================================================
   Order tracking — the page and the floating status card
   ========================================================= */
.is-track { padding: 1.4rem 1.6rem 1.8rem; }
.trk { display: flex; flex-direction: column; gap: 1rem; }
.trk-banner {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center;
    padding: .9rem 1.1rem; border: 2.5px solid var(--ink); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow);
}
.st-out_for_delivery .trk-banner { background: linear-gradient(100deg, var(--blush), #fff8e8 70%); }
.st-ready .trk-banner { background: linear-gradient(100deg, #fff0c4, #fff8e8 70%); }
.st-completed .trk-banner { background: linear-gradient(100deg, #e3f1db, #fff8e8 70%); }
.st-cancelled .trk-banner { background: #f2eee8; }
.trk-cat { width: 64px; height: 64px; object-fit: contain; }
.st-out_for_delivery .trk-cat { animation: trk-bob 1.6s ease-in-out infinite; }
@keyframes trk-bob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.trk-words { min-width: 0; }
.trk-words .caps { letter-spacing: .14em; font-size: .68rem; }
.trk-title { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin: .15rem 0 .2rem; }
.trk-sub { margin: 0; font-weight: 700; color: #4a3d35; }
.trk-eta {
    display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border-radius: 50%;
    background: var(--berry); color: #fff; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); line-height: 1;
}
.trk-eta b { font-family: var(--script); font-weight: 400; font-size: 2rem; }
.trk-eta small { font-weight: 800; font-size: .7rem; margin-top: -1.1rem; }
.trk-eta[hidden] { display: none; }
.trk-steps { margin: 0; }

.trk-map { position: relative; }
.trk-view {
    position: relative; height: min(56vh, 460px); overflow: hidden; touch-action: none; cursor: grab;
    border: 2.5px solid var(--ink); border-radius: 20px; background: #f4ecd6; box-shadow: 4px 5px 0 var(--ink);
    user-select: none; -webkit-user-select: none; outline: none;
}
.trk-view:active { cursor: grabbing; }
.trk-view:focus-visible { outline: 2.5px dashed var(--berry); outline-offset: 4px; }
.trk-layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; --inv: 1; }
.trk-layer.glide { transition: transform .8s var(--ease); }
.trk-layer > img, .trk-layer > svg { position: absolute; inset: 0; display: block; max-width: none; }
.trk-layer svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trk-done { stroke: rgba(43, 36, 32, .35); stroke-width: 4; stroke-dasharray: 2 8; }
.trk-todo-edge { stroke: var(--ink); stroke-width: 9; }
.trk-todo { stroke: var(--berry); stroke-width: 5; }
.trk-pin { position: absolute; transform: translate(-50%, -50%) scale(var(--inv)); z-index: 1; }
.trk-pin[hidden] { display: none; }
.trk-shop { width: 46px; height: 46px; border-radius: 50%; background: #fffaf0; border: 3px solid var(--ink); display: grid; place-items: center; }
.trk-shop img { width: 38px; }
.trk-home {
    display: flex; align-items: center; gap: .25rem; padding: .25rem .6rem .25rem .4rem; border-radius: 99px;
    background: var(--butter); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-weight: 800; font-size: .85rem; white-space: nowrap;
    transform: translate(-50%, -100%) scale(var(--inv)); transform-origin: 50% 100%; margin-top: -4px;
}
.trk-home::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 12px; height: 12px; background: var(--butter); border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: translateX(-50%) rotate(45deg); }
.trk-home .ico { width: 1.1em; height: 1.1em; }
.trk-car {
    width: 54px; height: 54px; border-radius: 50%; background: var(--berry); border: 3px solid var(--ink); box-shadow: 2px 3px 0 var(--ink);
    display: grid; place-items: center; z-index: 2; transition: left 1s linear, top 1s linear;
}
.trk-car img { width: 42px; position: relative; z-index: 1; }
.trk-car::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: rgba(239, 138, 166, .35); animation: trk-pulse 1.8s ease-out infinite; }
@keyframes trk-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.trk-arrow { position: absolute; inset: -14px; transition: rotate .6s; }
.trk-arrow::before { content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%); border: 7px solid transparent; border-bottom: 10px solid var(--ink); border-top: 0; }
.trk-zoom { top: 10px; right: 10px; }
.trk-follow {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3;
    display: flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: 99px;
    background: var(--paper); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-weight: 800; font-size: .82rem;
}
.trk-follow[hidden] { display: none; }
.trk-live {
    position: absolute; left: 10px; top: 10px; z-index: 3; display: flex; align-items: center; gap: .4rem;
    padding: .3rem .7rem; border-radius: 99px; background: var(--paper); border: 2px solid var(--ink); font-size: .74rem; font-weight: 800;
}
.trk-live[hidden] { display: none; }
.trk-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--cherry); animation: trk-blink 1.2s infinite; }
@keyframes trk-blink { 50% { opacity: .25; } }

.trk-driver {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center;
    padding: .7rem 1rem; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 3px 3px 0 rgba(43, 36, 32, .18);
}
.trk-driver img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--blush); object-fit: contain; padding: 3px; }
.trk-driver b { display: block; font-size: 1.05rem; }
.trk-driver small.caps { letter-spacing: .14em; font-size: .62rem; }
.trk-driver span { font-size: .84rem; color: var(--ink-soft); }
.trk-driver .btn { padding: .6em 1.1em; }
.trk-demo { margin: .3rem 0 0; display: flex; flex-direction: column; gap: .5rem; }
.trk-demo p { margin: 0; font-weight: 600; font-size: .9rem; }
.trk-demo-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.trk-demo-row .btn { margin-left: auto; padding: .55em 1em; }
.trk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.trk-items, .trk-where { margin: 0; font-size: .92rem; line-height: 1.6; }
.trk-items small { color: var(--ink-soft); }
.trk-where { display: flex; gap: .4rem; align-items: flex-start; color: #4a3d35; font-weight: 600; }
.trk-where .ico { margin-top: .2em; }
.trk-timeline { list-style: none; margin: 0; padding: 0 0 0 .4rem; }
.trk-timeline li { position: relative; display: flex; gap: .8rem; padding: 0 0 .7rem 1.2rem; font-size: .9rem; }
.trk-timeline li::before { content: ''; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); border: 2px solid var(--ink); }
.trk-timeline li::after { content: ''; position: absolute; left: 5px; top: 1.2em; bottom: -.1em; width: 2px; background: rgba(43, 36, 32, .2); }
.trk-timeline li:last-child::after { display: none; }
.trk-timeline li.now::before { background: var(--berry); box-shadow: 0 0 0 4px rgba(239, 138, 166, .3); }
.trk-timeline time { color: var(--ink-soft); font-weight: 700; min-width: 7.5rem; }
.ao-acts { display: flex; flex-wrap: wrap; gap: .5rem; }

/* the floating card, bottom right */
.trk-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 50; width: min(340px, calc(100vw - 24px));
    background: var(--paper); border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow);
    animation: pop .5s var(--bounce);
}
.trk-fab-main { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .7rem 2.2rem .55rem .8rem; }
.trk-fab-main > img { width: 52px; height: 52px; object-fit: contain; }
.st-out_for_delivery .trk-fab-main > img { animation: trk-bob 1.6s ease-in-out infinite; }
.trk-fab-words { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.trk-fab-words small { font-weight: 800; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--berry-deep); }
.trk-fab-words b { font-family: var(--script); font-weight: 400; font-size: 1.3rem; line-height: 1.1; }
.trk-fab-words em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.trk-fab-main .go { width: 1.2em; height: 1.2em; color: var(--ink-soft); }
.trk-fab-bar { display: block; height: 7px; margin: 0 .9rem .75rem; border-radius: 99px; background: #f1e6cf; border: 1.5px solid var(--ink); overflow: hidden; }
.trk-fab-bar i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--berry) 0 8px, #f5a3ba 8px 16px); transition: width 1s linear; }
.st-completed .trk-fab-bar i { background: var(--leaf); }
.trk-fab-more { display: block; margin: -.35rem .9rem .6rem; font-size: .76rem; font-weight: 800; color: var(--berry-deep); text-decoration: underline dotted; }
.trk-fab-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); }
.trk-fab-x:hover { background: var(--blush); color: var(--ink); }
.trk-fab.min { width: auto; border-radius: 50%; background: none; border: 0; box-shadow: none; }
.trk-fab-bubble {
    position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: var(--blush); border: 2.5px solid var(--ink); box-shadow: var(--shadow);
}
.trk-fab-bubble img { width: 48px; }
.trk-fab-bubble i { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--cherry); border: 2px solid var(--ink); animation: trk-blink 1.2s infinite; }
html.admin-open .trk-fab { display: none; }

@media (max-width: 900px) {
    .trk-fab { right: 12px; bottom: 96px; }
    body:has(.trk-fab:not(.min)) .toast { bottom: 200px; }
}
@media (max-width: 600px) {
    .is-track { padding: 1rem; }
    .trk-banner { grid-template-columns: auto minmax(0, 1fr); padding: .8rem; gap: .6rem; }
    .trk-cat { width: 48px; height: 48px; }
    .trk-eta { position: absolute; right: -8px; top: -14px; width: 3.8rem; height: 3.8rem; }
    .trk-eta b { font-size: 1.6rem; }
    .trk-banner .trk-words { padding-right: 2.4rem; }
    .trk-view { height: 52vh; }
    .trk-cols { grid-template-columns: 1fr; }
    .trk-steps li { font-size: .62rem; }
    .trk-driver { grid-template-columns: auto minmax(0, 1fr); }
    .trk-driver .btn { grid-column: 1 / -1; justify-content: center; }
    .trk-fab { left: 12px; width: auto; }
    .trk-fab.min { left: auto; }
}

/* =========================================================
   Maintenance (shared/config.js → maintenance)
   ========================================================= */
.maint-banner {
    position: relative; z-index: 4;
    max-width: 1480px; margin: 6px auto 0; padding: .7rem 1.2rem;
    width: calc(100% - 32px);
    background: #fff4c9; border: 2px dashed #d9a93a; border-radius: 16px;
    font-weight: 700; font-size: .9rem; line-height: 1.45; text-align: center; color: var(--ink);
}
.pill.is-off { opacity: .45; filter: grayscale(1); }
.acc-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: contents; }
.acc-fields[disabled] input, .acc-tabs button[disabled] { opacity: .5; cursor: not-allowed; }

/* Google sign-in */
.acc-google { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; background: #fff; border: 2px solid var(--ink); color: var(--ink); }
.acc-google:hover { background: #fff7f0; }
.g-logo { width: 20px; height: 20px; flex: none; }
.acc-or { display: flex; align-items: center; gap: .8rem; margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.acc-or::before, .acc-or::after { content: ''; flex: 1; border-top: 1.5px dashed var(--line); }
