/* ONESAVOR — 3D table page */
:root { --ink: #f3eee4; --ink2: #b3ac9f; --gold: #e2b45a; --gold2: #f2d08a; --blue: #8fd6ec; --line: rgba(242, 208, 138, .18); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #070606; color: var(--ink); font: 400 15px/1.5 "Montserrat", system-ui, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
.scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.veil { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: #070606; z-index: 5; transition: opacity 1.2s ease; color: var(--ink2); }
.veil.off { opacity: 0; pointer-events: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold2); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.r-top { position: fixed; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px clamp(14px, 3vw, 32px); z-index: 3; background: linear-gradient(180deg, rgba(7,6,6,.75), rgba(7,6,6,0)); }
.r-back { color: var(--ink2); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.r-back::before { content: "← "; }
.r-back:hover { color: var(--ink); }
.r-brand { display: grid; justify-items: center; }
.wordmark { font-weight: 300; letter-spacing: .3em; padding-left: .3em; font-size: 16px; background: linear-gradient(180deg, #f6dc9a, #e2b45a 45%, #b9862f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { width: 84px; margin-top: -4px; margin-left: 40px; transform: rotate(-5deg); color: var(--blue); }
.tag svg { width: 100%; height: auto; overflow: visible; display: block; }
.tag .ink { fill: currentColor; }
.tag-strokes path { stroke-dasharray: 1 1.02; stroke-dashoffset: 1.02; }
.tag.go .tag-strokes path { animation-name: write; animation-timing-function: cubic-bezier(.4,.1,.6,.9); animation-fill-mode: forwards; }
@keyframes write { to { stroke-dashoffset: 0; } }
html.rm .tag-strokes path { stroke-dashoffset: 0; animation: none; }
.langs { display: flex; gap: 2px; border: 1px solid rgba(243,238,228,.12); border-radius: 99px; padding: 3px; }
.langs button { border: 0; background: none; color: var(--ink2); font: 600 11px/1 "Montserrat", sans-serif; letter-spacing: .08em; padding: 6px 8px; border-radius: 99px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--ink); color: #000; }

.r-panel { position: fixed; left: clamp(14px, 3vw, 36px); bottom: calc(clamp(14px, 3vw, 36px) + env(safe-area-inset-bottom, 0px)); z-index: 3; width: min(340px, calc(100vw - 28px)); max-height: calc(100% - 110px); overflow-y: auto; display: grid; gap: 12px; padding: 20px; border-radius: 18px; background: rgba(12, 10, 9, .62); border: 1px solid var(--line); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 30px 60px -30px #000; }
.r-eyebrow { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--blue); }
.r-dish { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.r-desc { margin: 0; color: var(--ink2); font-size: 14px; }
.r-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.r-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.r-fold { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.r-fold:hover { border-color: var(--gold2); }
.r-chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(2px) rotate(45deg); transition: transform .25s; }
.r-panel.folded .r-chev { transform: translateY(-2px) rotate(-135deg); }
.r-more { display: grid; gap: 12px; }
.r-panel.folded .r-more { display: none; }
.r-panel.folded { gap: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.r-round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); font-size: 17px; cursor: pointer; transition: border-color .2s, transform .2s; }
.r-round:hover { border-color: var(--gold2); transform: scale(1.06); }
.r-count { font-size: 12px; color: var(--ink2); letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.r-view { margin-left: auto; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); border-radius: 99px; padding: 9px 14px; font: 600 13px/1 "Montserrat", sans-serif; cursor: pointer; }
.r-view:hover { border-color: var(--gold2); color: var(--gold2); }
.r-ctrls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.r-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); cursor: pointer; }
.r-toggle input { accent-color: var(--gold); width: 16px; height: 16px; }
.r-range { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }
.r-range input { accent-color: var(--gold); width: 110px; }
.r-cta { justify-self: start; display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 99px; background: linear-gradient(180deg, #f6dc9a, #e2b45a 45%, #b9862f); color: #15110a; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 10px 30px -12px rgba(217,164,65,.8); }
.r-fine { margin: 0; font-size: 12px; color: rgba(243,238,228,.55); }
.r-say { position: fixed; z-index: 4; transform: translate(-50%, -100%); margin: 0; max-width: 240px; background: #f4efe6; color: #1d1a16; padding: 10px 13px; border-radius: 14px 14px 14px 4px; font-size: 14px; font-weight: 500; box-shadow: 0 16px 30px -14px #000; pointer-events: none; }
.r-nogl { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; z-index: 6; background: #070606; margin: 0; }
.r-nogl[hidden] { display: none; }
.r-nogl a { color: var(--gold2); }

@media (max-width: 700px) {
  .r-panel { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: auto; padding: 14px 16px; gap: 9px; max-height: 58%; }
  .r-dish { font-size: 20px; }
  .r-round { width: 40px; height: 40px; }
  .r-fine:last-child { display: none; }
  .r-back { font-size: 12px; }
  .r-brand { display: none; }
}
@media (max-height: 560px) and (min-width: 701px) { .r-fine { display: none; } .r-desc { display: none; } }
.veil p { margin: 0; max-width: 34ch; text-align: center; }
.veil-actions { display: flex; gap: 18px; justify-content: center; }
.veil-actions a { color: var(--gold2); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
