:root {
    color-scheme: light;
    --aeon: #861a55;
    --deep: #33122c;
    --ink: #2b1a29;
    --muted: #6f5868;
    --paper: #faf5f8;
    --line: #e8dce4;
    font-family: "Yu Gothic UI", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    background: #171016;
    color: var(--ink);
}
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; box-shadow: 0 0 0 7px var(--aeon); }
.stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(100vw, calc(100vh * 16 / 9));
    width: min(100vw, calc(100dvh * 16 / 9));
    aspect-ratio: 16 / 9;
    background: var(--deep);
    container-type: inline-size;
}
.view { position: absolute; inset: 0; }
.storefront > img, .media-poster, video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
video { z-index: 1; pointer-events: none; }
.media-poster { z-index: 2; pointer-events: none; }
.playback-start {
    position: absolute;
    z-index: 4;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 82%;
    padding: 9px 14px;
    border-radius: 9px;
    color: white;
    background: #2d182ded;
    text-align: center;
    white-space: nowrap;
}
.playback-start p { margin: 0; font-size: clamp(11px, 1.2cqw, 21px); }
.playback-start button { min-height: 40px; margin-top: 7px; padding-inline: 12px; }
.storefront::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #21132a75 0%, transparent 14%);
    pointer-events: none;
}
.selection-hint {
    position: absolute;
    z-index: 1;
    top: 3.4%;
    left: 3.2%;
    margin: 0;
    padding: .55cqw 1.15cqw;
    border-radius: 100px;
    color: white;
    background: #30142ceb;
    font-size: clamp(11px, 1.35cqw, 27px);
    font-weight: 650;
    letter-spacing: .025em;
}
.guide-spot {
    position: absolute;
    z-index: 2;
    top: 39%;
    bottom: 1%;
    left: var(--position);
    transform: translateX(-50%);
    width: 9.65%;
    padding: 0;
    border: 1px solid transparent;
    border-radius: .7cqw;
    background: transparent;
    color: inherit;
    touch-action: manipulation;
}
.guide-spot:hover { border-color: #fff7; background: #53163a24; }
.guide-label {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .42cqw;
    border-radius: .43cqw;
    line-height: 1.2;
    white-space: nowrap;
    background: #fffafc;
    box-shadow: 0 .35cqw 1.3cqw #21132b38;
    padding: .5cqw .65cqw;
    color: var(--ink);
}
.guide-spot .guide-label { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.guide-label strong { font-size: clamp(10px, 1.33cqw, 29px); font-weight: 750; }
.guide-language { font-size: .78em; font-weight: inherit; }
.guide-label span { font-size: clamp(8px, .94cqw, 21px); color: var(--muted); }
.guide-spot:hover .guide-label, .greeting-label { color: white; background: var(--aeon); }
.guide-spot:hover .guide-label span, .greeting-label span { color: #fbe9f4; }
.greeting-label { z-index: 2; position: absolute; top: 39%; left: var(--position); transform: translateX(-50%); }
.shopping-label {
    z-index: 2;
    position: absolute;
    left: 3.2%;
    top: 4%;
    display: flex;
    align-items: baseline;
    gap: .8cqw;
    padding: .5cqw 1cqw;
    border-radius: .4cqw;
    background: #32162eed;
    color: #fff;
}
.shopping-label strong { font-size: 1.65cqw; }
[data-view="shopping"] .shopping-label { animation: shop-label-in 180ms ease-out both; }
@keyframes shop-label-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    [data-view="shopping"] .shopping-label { animation: none; }
}
.shopping-department { color: #fbe1ef; font-size: 1.13cqw; }
[data-view="profile"] .playback {
    background: radial-gradient(ellipse at 18% 30%, #e9cddf, transparent 50%), var(--paper);
}
[data-view="profile"] #video,
[data-view="profile"] .media-poster {
    inset: 6.35cqw auto auto 5.4cqw;
    width: 29cqw;
    height: 43.5cqw;
    border-radius: 1.16cqw;
    box-shadow: 0 1.3cqw 3.2cqw #5e285d40;
}
[data-view="profile"] .playback-start { left: 19.9%; z-index: 4; }
.guide-profile {
    z-index: 3;
    padding: 4.9cqw 5.4cqw 5.5cqw 39cqw;
    display: grid;
    gap: 1.5cqw;
    align-content: start;
    pointer-events: none;
}
.guide-profile .eyebrow { margin-bottom: .45cqw; font-size: clamp(7px, 1.07cqw, 19px); }
.profile-identity { display: flex; align-items: baseline; gap: 1.35cqw; }
.profile-identity h1 {
    margin: 0;
    font-size: clamp(20px, 4.35cqw, 75px);
    line-height: 1.12;
    font-weight: 750;
}
.profile-identity > span { color: var(--muted); font-size: clamp(8px, 1.12cqw, 21px); }
.profile-facts {
    margin: 1.35cqw 0 .44cqw;
    padding: 1.05cqw 1.35cqw;
    display: grid;
    grid-template-columns: .72fr 1.18fr 1.58fr;
    gap: 1cqw;
    border: 1px solid var(--line);
    border-radius: .7cqw;
    background: #fff9fc;
}
.profile-facts div { min-width: 0; }
.profile-facts dt { color: var(--muted); font-size: clamp(7px, 1.06cqw, 20px); }
.profile-facts dd {
    margin: .18cqw 0 0;
    font-size: clamp(8px, 1.48cqw, 27px);
    font-weight: 650;
    overflow-wrap: anywhere;
}
.profile-demo-note { margin: 0; color: var(--muted); font-size: clamp(7px, .92cqw, 16px); }
.profile-conversation h2 { margin: 0 0 .95cqw; font-size: clamp(9px, 1.52cqw, 26px); }
#profile-lines { display: grid; gap: .85cqw; margin: 0; padding: 0; list-style: none; }
.profile-line {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: baseline;
    gap: 1.15cqw;
    padding: .78cqw 1.18cqw;
    border: 1px solid #e7d8e3;
    border-inline-start: .32cqw solid #c79cb7;
    border-radius: .6cqw;
    background: #fffafb;
}
.profile-line[data-speaker="customer"] {
    border-color: #e5d4e3;
    border-inline-start-color: #917696;
    background: #f1e6f2;
}
.profile-line.is-speaking { border-inline-start-color: var(--aeon); }
.profile-speaker {
    min-width: 4.7cqw;
    color: var(--aeon);
    font-size: clamp(7px, 1.06cqw, 20px);
    font-weight: 750;
}
.profile-message { margin: 0; font-size: clamp(8px, 1.43cqw, 26px); line-height: 1.55; }
.scene-fade {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    background: #2a1827;
}
.controls {
    display: flex;
    gap: .55cqw;
    position: absolute;
    right: 2.25%;
    top: 3.4%;
    z-index: 5;
}
[data-view="greeting"] .controls, [data-view="profile"] .controls, [data-view="shopping"] .controls { top: auto; bottom: 2%; }
.control {
    padding: .42cqw .8cqw;
    min-height: 2.25cqw;
    border: 1px solid #ffffff55;
    border-radius: 100px;
    background: #2d182de8;
    color: white;
    font-weight: 650;
    font-size: clamp(9px, 1cqw, 22px);
    white-space: nowrap;
    text-shadow: 0 1px 2px #21142399;
}
.control:hover { background: var(--aeon); border-color: #fff9; }
@media (max-width: 780px) {
    .guide-spot .guide-label:has(.guide-language) { padding: 3px 5px; }
    .guide-spot .guide-label:has(.guide-language) > span { display: none; }
    .guide-spot .guide-language { display: block; line-height: 1.15; }
    .guide-spot:nth-child(even) .guide-label:has(.guide-language) { top: 34px; }
}
@media (max-width: 560px) {
    .stage:is([data-view="greeting"], [data-view="profile"], [data-view="shopping"]) { aspect-ratio: 4 / 3; }
    .stage:is([data-view="greeting"], [data-view="shopping"]) .playback :is(video, .media-poster) { object-fit: contain; }
    .greeting-label { top: 42%; }
    .shopping-label { top: 15%; }
    .guide-profile { padding-top: 4cqw; gap: .95cqw; }
    .profile-facts { margin-top: .9cqw; }
    .profile-message { line-height: 1.42; }
    .guide-spot .guide-label { padding: 3px 5px; }
    .guide-spot .guide-label span { display: none; }
    .guide-spot .guide-label strong { font-size: 12px; }
    .control { min-height: 32px; padding: 4px 7px; }
}
@media (max-width: 420px) {
    .stage[data-multilingual]:is([data-view="greeting"], [data-view="profile"], [data-view="shopping"]) { aspect-ratio: 6 / 5; }
    .stage[data-multilingual] .profile-identity h1 { font-size: 18px; }
}
@media (max-width: 360px) {
    .stage[data-multilingual]:is([data-view="greeting"], [data-view="profile"], [data-view="shopping"]) { aspect-ratio: 1; }
}

.employee {
    display: grid;
    grid-template-columns: 1fr 37%;
    align-items: center;
    gap: 6cqw;
    padding: 5.4cqw 8.1cqw 4cqw;
    background: radial-gradient(ellipse at 79% 57%, #f3d6e8, transparent 57%), var(--paper);
}
.eyebrow { margin: 0 0 1.05cqw; font-size: 1.28cqw; font-weight: 750; color: var(--aeon); letter-spacing: .13em; }
.employee h1, .manager h1 { margin: 0; font-size: 3.5cqw; line-height: 1.2; letter-spacing: -.04em; }
.employee-subtitle { color: var(--muted); margin: 3.1cqw 0 .7cqw; font-size: 1.43cqw; }
.employee-item { margin: 0; font-size: 2.2cqw; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.employee-fulfillment { margin: .5cqw 0 3.1cqw; color: var(--muted); font-size: 1.52cqw; line-height: 1.5; }
.button {
    padding: .78cqw 1.35cqw;
    border: 1px solid var(--aeon);
    border-radius: .52cqw;
    color: var(--aeon);
    background: white;
    font-weight: 700;
    font-size: clamp(10px, 1.35cqw, 23px);
    text-decoration: none;
}
.button:hover, .button:focus-visible { background: #f2e1eb; }
.primary { color: white; background: var(--aeon); }
.primary:hover, .primary:focus-visible { color: white; background: #641540; }
.phone {
    position: relative;
    height: 43.6cqw;
    padding: 3.1cqw 1.62cqw 1.4cqw;
    overflow: hidden;
    border: .59cqw solid var(--deep);
    border-radius: 2.9cqw;
    background: #fffcfe;
    box-shadow: .7cqw 1.6cqw 3.6cqw #431b3645;
}
.phone-camera {
    position: absolute;
    inset: .82cqw auto auto 50%;
    transform: translateX(-50%);
    width: 6cqw;
    height: .6cqw;
    border-radius: 20px;
    background: #46273a;
}
.phone-header { display: flex; align-items: center; gap: 1.05cqw; padding-bottom: 1.45cqw; }
.phone-header img { width: 4.75cqw; height: 4.75cqw; border-radius: 50%; object-fit: cover; object-position: center 27%; }
.phone-header strong { font-size: 2.04cqw; }
.phone-header p { margin: .16cqw 0 0; color: var(--muted); font-size: 1.15cqw; }
.phone-stats { display: grid; grid-template-columns: 1.2fr 1fr; margin: 0; border-block: 1px solid var(--line); }
.phone-stats > div { padding: 1.1cqw .3cqw; }
.phone-stats dt { color: var(--muted); font-size: 1.16cqw; }
.phone-stats dd { margin: .25cqw 0 0; line-height: 1.1; color: var(--aeon); font-size: 2.8cqw; font-weight: 750; }
.phone-stats dd small, .store-totals dd small { margin-left: .35cqw; font-size: .47em; }
.phone h2 { margin: 1.25cqw 0 .65cqw; font-size: 1.3cqw; }
.recent-orders { display: grid; gap: .42cqw; list-style: none; margin: 0; padding: 0; }
.recent-orders li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; padding: .32cqw .68cqw; gap: .15cqw .7cqw; font-size: 1.08cqw; }
.recent-orders .this-order { border: 1px solid #ead4e1; border-radius: .55cqw; background: #f9edf4; padding: .65cqw .72cqw; }
.recent-orders strong { font-weight: 700; }
.recent-orders span { color: #644b5b; }
.recent-orders small { width: 100%; font-size: .98cqw; font-weight: 650; color: var(--aeon); }
.phone-demo { position: absolute; bottom: 1.1cqw; right: 1.6cqw; margin: 0; color: var(--muted); font-size: 1.01cqw; }

.manager { background: linear-gradient(112deg,#37152e 15%,#260e28 100%); color: #fff7fc; padding: 4.15cqw 6.4cqw; }
.manager .eyebrow { color: #f3c6df; }
.manager-subtitle { margin: .65cqw 0 0; color: #e9c9dd; font-size: 1.38cqw; }
.manager-subtitle span { margin-left: .85cqw; padding: .24cqw .6cqw; border: 1px solid #ad7896; border-radius: .35cqw; font-size: 1cqw; }
.store-totals {
    display: grid;
    grid-template-columns: 1.1fr .9fr 1.4fr;
    gap: 2.3cqw;
    border-block: 1px solid #875d79;
    margin: 1.85cqw 0 1.15cqw;
    padding: 1.06cqw 0 1.24cqw;
}
.store-totals dt { color: #ecc6df; font-size: 1.25cqw; }
.store-totals dd { margin: .28cqw 0 0; font-size: 3.23cqw; line-height: 1.1; font-weight: 750; font-variant-numeric: tabular-nums; }
.manager-table { width: 100%; border-collapse: separate; border-spacing: 0 .42cqw; font-size: 1.55cqw; }
.manager-table th { text-align: left; }
.manager-table thead { color: #efcfe2; font-size: 1.16cqw; }
.manager-table :is(td, th) { padding: .64cqw 1.23cqw; }
.manager-table :is(td, th):nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.manager-table tbody :is(td, th) { background: #68405f69; }
.manager-table tbody .is-selected :is(td, th) { background: #98346d; }
.manager-table tbody th { border-radius: .42cqw 0 0 .42cqw; width: 43%; }
.manager-table tbody td:last-child { border-radius: 0 .42cqw .42cqw 0; width: 22%; }
.row-tag { margin-left: 1cqw; padding: .17cqw .5cqw; border: 1px solid #f9ccdf; border-radius: .3cqw; font-size: .89cqw; font-weight: 600; vertical-align: middle; }

.media-error { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(62cqw, 700px); padding: 2.1cqw; border-radius: .8cqw; background: #fff9fc; box-shadow: 0 0 0 100cqw #20152177; }
.media-error h2 { margin: 0; font-size: 2.1cqw; }
.media-error p { font-size: 1.43cqw; line-height: 1.55; }
.error-actions { display: flex; flex-wrap: wrap; gap: .9cqw; }
.visually-hidden { position: absolute; border: 0; clip: rect(0,0,0,0); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; white-space: nowrap; }
