:root {
    --wdo-bg: #11110f;
    --wdo-panel: #171714;
    --wdo-card: #20201c;
    --wdo-card-2: #272720;
    --wdo-text: #f5f2e9;
    --wdo-muted: #9d9b90;
    --wdo-line: rgba(255, 255, 255, .10);
    --wdo-accent: #d4f064;
    --wdo-accent-dark: #a9c536;
    --wdo-warm: #d9b184;
    --wdo-shadow: 0 28px 70px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.wdo-standalone { background: var(--wdo-bg); }
body.admin-bar .wdo-app { min-height: calc(100vh - 32px); }

.wdo-app {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(212, 240, 100, .08), transparent 30%),
        radial-gradient(circle at 8% 84%, rgba(217, 177, 132, .08), transparent 26%),
        var(--wdo-bg);
    color: var(--wdo-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wdo-noise {
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: .05;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.wdo-header {
    position: relative;
    z-index: 10;
    height: 92px;
    padding: 0 clamp(20px, 4vw, 68px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--wdo-line);
}

.wdo-brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.wdo-brand-mark {
    width: 52px; height: 52px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid rgba(212,240,100,.55);
    color: var(--wdo-accent); font-size: 13px; font-weight: 800; letter-spacing: .08em;
}
.wdo-brand-copy { display: grid; gap: 3px; }
.wdo-brand-copy strong { font-size: 15px; letter-spacing: .22em; }
.wdo-brand-copy small { color: var(--wdo-muted); font-size: 11px; letter-spacing: .04em; }

.wdo-reset, .wdo-confirm, .wdo-modal-primary {
    appearance: none; border: 0; font: inherit; cursor: pointer;
}
.wdo-reset {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--wdo-text); background: transparent;
    border: 1px solid var(--wdo-line); border-radius: 999px;
    padding: 11px 16px; font-size: 13px;
    transition: .25s ease;
}
.wdo-reset:hover { border-color: rgba(212,240,100,.55); color: var(--wdo-accent); }

.wdo-layout {
    position: relative; z-index: 2;
    min-height: calc(100vh - 92px);
    display: grid;
    grid-template-columns: minmax(400px, .95fr) minmax(540px, 1.25fr);
}

.wdo-copy-panel {
    padding: clamp(48px, 6vw, 92px) clamp(24px, 5vw, 84px);
    border-right: 1px solid var(--wdo-line);
}
.wdo-eyebrow, .wdo-current-step, .wdo-stage-topline, .wdo-summary > div > span, .wdo-modal-kicker {
    color: var(--wdo-accent); font-size: 11px; font-weight: 700; letter-spacing: .18em;
}
.wdo-copy-panel > h1 {
    margin: 18px 0 20px;
    max-width: 620px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 5vw, 82px);
    line-height: .98;
    font-weight: 500;
    letter-spacing: -.045em;
}
.wdo-copy-panel > p { margin: 0; max-width: 590px; color: var(--wdo-muted); font-size: 16px; line-height: 1.75; }

.wdo-progress { margin: 42px 0 34px; display: flex; align-items: center; }
.wdo-step {
    border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer;
    display: flex; align-items: center; gap: 12px; text-align: left; opacity: .42; transition: .25s ease;
}
.wdo-step.is-active, .wdo-step.is-complete { opacity: 1; }
.wdo-step > span {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--wdo-line); font-size: 10px; font-weight: 700;
}
.wdo-step.is-active > span { border-color: var(--wdo-accent); color: #111; background: var(--wdo-accent); }
.wdo-step.is-complete > span { color: var(--wdo-accent); border-color: rgba(212,240,100,.55); }
.wdo-step div { display: grid; gap: 2px; }
.wdo-step strong { font-size: 12px; font-weight: 700; }
.wdo-step small { font-size: 10px; color: var(--wdo-muted); }
.wdo-progress-line { width: clamp(18px, 3vw, 48px); height: 1px; margin: 0 14px; background: var(--wdo-line); }

.wdo-selector-panel { border-top: 1px solid var(--wdo-line); padding-top: 28px; }
.wdo-selector-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.wdo-selector-title { margin: 5px 0 0; font-size: 24px; font-weight: 500; }
.wdo-selection-count { color: var(--wdo-muted); font-size: 12px; }

.wdo-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wdo-option {
    min-height: 122px;
    appearance: none; cursor: pointer;
    border: 1px solid var(--wdo-line); border-radius: 18px;
    padding: 15px; text-align: left; color: var(--wdo-text);
    background: rgba(255,255,255,.025);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.wdo-option:hover { transform: translateY(-3px); border-color: rgba(212,240,100,.38); background: rgba(255,255,255,.045); }
.wdo-option.is-selected { border-color: var(--wdo-accent); background: rgba(212,240,100,.08); box-shadow: inset 0 0 0 1px rgba(212,240,100,.12); }
.wdo-option-visual {
    height: 58px; display: grid; place-items: center; margin-bottom: 10px;
    border-radius: 12px; background: rgba(255,255,255,.035); overflow: hidden;
}
.wdo-option-visual svg { width: 82px; height: 52px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); }
.wdo-option strong { display: block; font-size: 12px; font-weight: 650; }
.wdo-option small { color: var(--wdo-muted); font-size: 10px; }

.wdo-stage-panel { min-height: 680px; padding: clamp(26px, 4vw, 58px); display: grid; grid-template-rows: auto 1fr auto; }
.wdo-stage-topline { display: flex; justify-content: space-between; gap: 20px; color: var(--wdo-muted); }
.wdo-live { display: flex; align-items: center; gap: 9px; letter-spacing: .04em; text-transform: none; }
.wdo-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--wdo-accent); box-shadow: 0 0 0 6px rgba(212,240,100,.08); animation: wdoPulse 1.8s infinite; }

.wdo-stage { position: relative; min-height: 500px; display: grid; place-items: center; perspective: 1000px; }
.wdo-table-shadow { position: absolute; width: min(68%, 520px); aspect-ratio: 1.65; border-radius: 50%; background: rgba(0,0,0,.42); filter: blur(26px); transform: translateY(125px); }
.wdo-plate {
    position: relative;
    width: min(70%, 510px); aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 48% 42%, #faf8f1 0 54%, #e8e4d9 55% 67%, #cbc7bd 68% 70%, #f6f3eb 71% 100%);
    box-shadow: inset 0 -26px 40px rgba(77,68,49,.18), inset 0 8px 18px rgba(255,255,255,.9), 0 34px 50px rgba(0,0,0,.34);
    transform: rotateX(58deg) rotateZ(-8deg) translateY(-12px);
    transition: background .35s ease, border-radius .35s ease;
}
.wdo-plate--stone { background: radial-gradient(circle at 48% 42%, #454641 0 57%, #353630 58% 68%, #262722 69% 71%, #3b3c36 72% 100%); }
.wdo-plate--sand { background: radial-gradient(circle at 48% 42%, #d9c7a7 0 57%, #c5af8b 58% 68%, #aa9474 69% 71%, #d5c2a1 72% 100%); }
.wdo-plate--classic { border-radius: 50%; }
.wdo-plate-rim { position: absolute; inset: 11%; border-radius: inherit; border: 1px solid rgba(120,110,92,.18); box-shadow: inset 0 8px 20px rgba(0,0,0,.08); }
.wdo-food-layer { position: absolute; inset: 0; pointer-events: none; }
.wdo-food-layer svg { position: absolute; overflow: visible; filter: drop-shadow(0 11px 9px rgba(0,0,0,.22)); animation: wdoFoodIn .42s cubic-bezier(.2,.8,.2,1) both; }

.wdo-stage-hint { position: absolute; display: grid; place-items: center; gap: 8px; text-align: center; transition: opacity .25s ease; }
.wdo-stage-hint span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px dashed rgba(212,240,100,.55); color: var(--wdo-accent); border-radius: 50%; font-size: 23px; }
.wdo-stage-hint p { margin: 0; max-width: 190px; color: var(--wdo-muted); font-size: 12px; line-height: 1.5; }
.wdo-stage.has-selection .wdo-stage-hint { opacity: 0; pointer-events: none; }

.wdo-summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--wdo-line); padding-top: 24px; }
.wdo-summary > div { display: grid; gap: 8px; }
.wdo-summary-text { font-size: 14px; font-weight: 500; }
.wdo-confirm {
    min-width: 190px; display: inline-flex; justify-content: center; align-items: center; gap: 18px;
    padding: 15px 20px; border-radius: 999px; color: #12130d; background: var(--wdo-accent);
    font-size: 13px; font-weight: 750; transition: .25s ease;
}
.wdo-confirm:hover:not(:disabled) { transform: translateY(-2px); background: #e4ff77; }
.wdo-confirm:disabled { cursor: not-allowed; opacity: .26; }

.wdo-toast { position: fixed; right: 28px; bottom: 28px; z-index: 30; padding: 13px 17px; border-radius: 12px; background: #f7f4ea; color: #161611; font-size: 12px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s ease; box-shadow: var(--wdo-shadow); }
.wdo-toast.is-visible { transform: translateY(0); opacity: 1; }

.wdo-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.wdo-modal.is-open { opacity: 1; pointer-events: auto; }
.wdo-modal-backdrop { position: absolute; inset: 0; background: rgba(8,8,7,.78); backdrop-filter: blur(12px); }
.wdo-modal-card { position: relative; z-index: 1; width: min(92vw, 500px); padding: 42px; border-radius: 28px; border: 1px solid var(--wdo-line); background: #1a1a17; box-shadow: var(--wdo-shadow); text-align: center; }
.wdo-modal-close { position: absolute; right: 18px; top: 15px; border: 0; background: transparent; color: var(--wdo-muted); font-size: 28px; cursor: pointer; }
.wdo-modal-icon { width: 58px; height: 58px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--wdo-accent); color: #111; font-size: 25px; }
.wdo-modal-kicker { margin: 0; }
.wdo-modal-card h2 { margin: 10px 0 14px; font-family: Georgia, serif; font-size: 42px; font-weight: 500; }
.wdo-modal-description { color: var(--wdo-muted); font-size: 14px; line-height: 1.65; }
.wdo-modal-menu { margin: 24px 0; padding: 18px; border: 1px solid var(--wdo-line); border-radius: 16px; color: var(--wdo-text); font-size: 13px; line-height: 1.7; }
.wdo-modal-primary { width: 100%; padding: 15px; border-radius: 999px; background: var(--wdo-accent); color: #111; font-weight: 750; }

@keyframes wdoFoodIn { from { opacity: 0; transform: translateY(-18px) scale(.78); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes wdoPulse { 50% { box-shadow: 0 0 0 10px rgba(212,240,100,0); } }

@media (max-width: 1100px) {
    .wdo-layout { grid-template-columns: 1fr; }
    .wdo-copy-panel { border-right: 0; border-bottom: 1px solid var(--wdo-line); padding-bottom: 46px; }
    .wdo-stage-panel { min-height: 760px; }
    .wdo-stage { min-height: 550px; }
}

@media (max-width: 680px) {
    body.admin-bar .wdo-app { min-height: calc(100vh - 46px); }
    .wdo-header { height: 76px; padding: 0 18px; }
    .wdo-brand-mark { width: 44px; height: 44px; }
    .wdo-brand-copy small { display: none; }
    .wdo-reset { padding: 10px 12px; font-size: 0; }
    .wdo-reset span { font-size: 20px; }
    .wdo-copy-panel { padding: 40px 18px 34px; }
    .wdo-copy-panel > h1 { font-size: 50px; }
    .wdo-copy-panel > p { font-size: 14px; }
    .wdo-progress { align-items: flex-start; overflow: hidden; }
    .wdo-step div, .wdo-progress-line { display: none; }
    .wdo-step { margin-right: 10px; }
    .wdo-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wdo-stage-panel { min-height: 620px; padding: 24px 18px 30px; }
    .wdo-stage-topline { font-size: 9px; }
    .wdo-live { display: none; }
    .wdo-stage { min-height: 430px; }
    .wdo-plate { width: min(92%, 430px); }
    .wdo-table-shadow { width: 85%; transform: translateY(100px); }
    .wdo-summary { align-items: stretch; flex-direction: column; }
    .wdo-confirm { width: 100%; }
    .wdo-modal-card { padding: 36px 22px 24px; }
}
