:root {
  --bg-top: #fff4df;
  --bg-bottom: #f8d7cf;
  --ink: #352622;
  --muted: #7e655d;
  --line: rgba(98, 64, 50, 0.14);
  --card: rgba(255, 251, 247, 0.82);
  --card-strong: rgba(255, 250, 246, 0.94);
  --accent: #d86d4a;
  --accent-strong: #b24f32;
  --accent-soft: #f3b17d;
  --mint: #84b19b;
  --gold: #f4c86b;
  --danger: #c9574a;
  --shadow: 0 24px 60px rgba(91, 54, 41, 0.14);
  --shadow-soft: 0 16px 36px rgba(91, 54, 41, 0.1);
  --wall-start: #f8dcbf;
  --wall-end: #f2c6c0;
  --wall-pattern: rgba(255, 255, 255, 0.4);
  --table-top: #f0c39b;
  --table-front: #d38a60;
  --table-line: rgba(118, 67, 45, 0.24);
  --lamp-glow: rgba(255, 242, 188, 0.74);
  --hair-color: #5b3d3c;
  --skin-color: #efc3a0;
  --outfit-color: #ce6e58;
  --outfit-accent: #fff0de;
  --face-accent: #5c3c37;
  --prop-color: rgba(89, 55, 45, 0.36);
  --prop-accent: #fff0de;
  --focus: #2f6ea0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fbe9d8;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 238, 204, 0.9), transparent 22rem),
    radial-gradient(circle at 86% 20%, rgba(248, 188, 144, 0.5), transparent 24rem),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
input {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.page-glow {
  position: fixed;
  z-index: 0;
  width: 20rem;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.44;
}

.glow-left {
  top: 38%;
  left: -8rem;
  background: rgba(244, 200, 107, 0.74);
}

.glow-right {
  top: 8%;
  right: -9rem;
  background: rgba(216, 109, 74, 0.28);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 0 max(22px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.brand h1,
.mini-kicker,
.panel-eyebrow,
.hud-label,
.status-label,
.brand-kicker,
.sign-plaque,
.item-price,
.shop-tab,
.stack-count,
.inventory-meta,
.detail-pill,
.creator-badge,
.chat-tag {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-kicker,
.display-name-badge,
.mini-kicker,
.panel-eyebrow,
.hud-label,
.status-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.brand h1 {
  margin: 0;
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 0.95;
}

.display-name-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-soft);
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.live-button,
.scene-action-button,
.chat-form button,
.dock-button,
.mini-link,
.shop-buy-button,
.inventory-action,
.option-button,
.creator-action,
.settings-button,
.close-button {
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, background 180ms ease;
}

.live-button:hover,
.scene-action-button:hover,
.chat-form button:hover,
.dock-button:hover,
.shop-buy-button:hover,
.inventory-action:hover,
.option-button:hover,
.creator-action:hover,
.settings-button:hover,
.close-button:hover {
  transform: translateY(-1px);
}

.start-button,
.chat-form button,
.shop-buy-button,
.inventory-action.primary,
.settings-button.danger {
  color: #fff7f2;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 30px rgba(178, 79, 50, 0.24);
}

.stop-button {
  color: #fff8f6;
  background: linear-gradient(180deg, #cf6959, #a94743);
  box-shadow: 0 16px 30px rgba(146, 58, 51, 0.24);
}

.live-button,
.scene-action-button {
  min-height: 52px;
  padding: 0 18px;
  font-weight: 700;
}

.secondary-action-button,
.mini-link,
.inventory-action.secondary,
.creator-action.secondary,
.settings-button.secondary,
.shop-tab,
.close-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.hud-card {
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hud-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
}

.hud-card.live-hidden {
  opacity: 0.52;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.studio-card,
.control-card {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.studio-scene {
  position: relative;
  min-height: 690px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)),
    linear-gradient(180deg, var(--wall-start), var(--wall-end));
}

.studio-wall {
  position: absolute;
  inset: 0 0 29% 0;
  overflow: hidden;
}

.wallpaper-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16px 16px, var(--wall-pattern) 0 3px, transparent 3px 26px),
    radial-gradient(circle at 64px 40px, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 20px);
  background-size: 92px 88px;
  opacity: 0.8;
}

.sign-plaque {
  position: absolute;
  top: 28px;
  left: 28px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fffdf8;
  background: color-mix(in srgb, var(--prop-color) 76%, transparent);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 700;
}

.lamp {
  position: absolute;
  top: 18px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lamp-glow) 0 22%, rgba(255, 255, 255, 0.12) 22% 40%, transparent 68%);
  box-shadow: 0 0 70px var(--lamp-glow);
}

.lamp-left {
  left: 18%;
}

.lamp-right {
  right: 16%;
}

.chat-bubble {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 4;
  max-width: 230px;
  padding: 14px 16px;
  border-radius: 20px 20px 8px 20px;
  background: rgba(255, 252, 248, 0.94);
  box-shadow: var(--shadow-soft);
  font-size: 0.92rem;
  line-height: 1.35;
}

.host {
  position: absolute;
  left: 50%;
  bottom: 23%;
  width: 180px;
  height: 316px;
  transform: translateX(-50%);
  z-index: 3;
}

.host-hair-back {
  position: absolute;
  left: 18px;
  top: 28px;
  width: 142px;
  height: 188px;
  border-radius: 56% 56% 42% 42%;
  background: var(--hair-color);
  box-shadow: inset -12px -12px 0 rgba(0, 0, 0, 0.08);
}

.host[data-hair="hair-twin-buns-honey"] .host-hair-back::before,
.host[data-hair="hair-twin-buns-honey"] .host-hair-back::after {
  content: "";
  position: absolute;
  top: -24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--hair-color);
}

.host[data-hair="hair-twin-buns-honey"] .host-hair-back::before {
  left: -5px;
}

.host[data-hair="hair-twin-buns-honey"] .host-hair-back::after {
  right: -5px;
}

.host[data-hair="hair-wave-rose"] .host-hair-back {
  height: 205px;
  border-radius: 62% 44% 48% 36%;
  transform: rotate(-2deg);
}

.host[data-hair="hair-short-mint"] .host-hair-back {
  top: 34px;
  height: 128px;
  border-radius: 58% 58% 34% 34%;
}

.host-head {
  position: absolute;
  left: 34px;
  top: 48px;
  width: 112px;
  height: 134px;
  border-radius: 48% 48% 44% 44%;
  background: var(--skin-color);
  box-shadow: inset -8px -8px 0 rgba(120, 79, 53, 0.08);
}

.host-hair-front {
  position: absolute;
  left: -4px;
  top: -14px;
  width: 120px;
  height: 52px;
  border-radius: 50% 50% 40% 40%;
  background: var(--hair-color);
}

.host-face-detail {
  position: absolute;
  top: 46px;
  width: 18px;
  height: 8px;
  border-top: 3px solid var(--face-accent);
  border-radius: 999px;
}

.host-brow-left {
  left: 23px;
  transform: rotate(-4deg);
}

.host-brow-right {
  right: 23px;
  transform: rotate(4deg);
}

.host-eye {
  position: absolute;
  top: 60px;
  width: 11px;
  height: 14px;
  border-radius: 999px;
  background: var(--face-accent);
}

.host-eye-left {
  left: 29px;
}

.host-eye-right {
  right: 29px;
}

.host[data-face="face-sparkle-eyes"] .host-eye {
  box-shadow: 0 0 0 3px rgba(126, 208, 255, 0.34), 0 0 10px rgba(126, 208, 255, 0.7);
}

.host[data-face="face-sleepy-calm"] .host-eye {
  width: 17px;
  height: 8px;
  border-radius: 0 0 999px 999px;
}

.host[data-face="face-cheek-heart"] .host-cheek::after {
  content: "♥";
  position: absolute;
  inset: -5px 0 auto;
  color: #f48aa7;
  font-size: 0.72rem;
  text-align: center;
}

.host-cheek {
  position: absolute;
  top: 88px;
  width: 20px;
  height: 10px;
  border-radius: 999px;
  background: rgba(220, 124, 127, 0.26);
}

.host-cheek-left {
  left: 10px;
}

.host-cheek-right {
  right: 10px;
}

.host-mouth {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 24px;
  height: 12px;
  border-radius: 0 0 15px 15px;
  background: #93545c;
  transform: translateX(-50%);
}

.host-body {
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 140px;
  height: 168px;
  border-radius: 52% 52% 16px 16px;
  background: var(--outfit-accent);
}

.host-body::before {
  content: "";
  position: absolute;
  inset: 36px 28px 0;
  border-radius: 30px 30px 10px 10px;
  background: var(--outfit-color);
}

.host-shirt-mark {
  position: absolute;
  left: 50%;
  top: 62px;
  transform: translateX(-50%);
  color: #fff7ef;
  font-size: 1.2rem;
}

.host-hand-item {
  position: absolute;
  right: -2px;
  top: 142px;
  width: 110px;
  min-height: 110px;
  display: grid;
  place-items: center;
}

.microphone {
  position: absolute;
  right: 17%;
  bottom: 26%;
  width: 76px;
  height: 176px;
  z-index: 4;
}

.microphone-head {
  width: 54px;
  height: 92px;
  margin: 0 auto;
  border: 4px solid rgba(76, 52, 51, 0.82);
  border-radius: 30px;
  background: repeating-linear-gradient(90deg, rgba(120, 100, 103, 0.88) 0 5px, rgba(77, 62, 67, 0.92) 5px 9px);
}

.microphone-stem {
  width: 8px;
  height: 58px;
  margin: -2px auto 0;
  border-radius: 999px;
  background: rgba(76, 52, 51, 0.82);
}

.microphone-base {
  width: 64px;
  height: 11px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: rgba(76, 52, 51, 0.82);
}

.table-zone {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
}

.table-surface {
  position: absolute;
  inset: 18% 7% 7% 7%;
  border: 0;
  border-radius: 34px 34px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--table-top) 0 26%, var(--table-front) 26% 100%);
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.4), 0 -22px 36px rgba(86, 46, 32, 0.12);
}

.table-grain,
.table-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.table-grain {
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(118, 67, 45, 0.1) 8% 10%, transparent 10% 24%, rgba(118, 67, 45, 0.08) 24% 26%, transparent 26% 100%),
    linear-gradient(180deg, transparent 0 30%, rgba(118, 67, 45, 0.09) 30% 31%, transparent 31% 100%);
}

.table-rim {
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.table-items {
  position: absolute;
  inset: 24% 10% 12% 10%;
  z-index: 3;
}

.table-item {
  position: absolute;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.table-item.selected .food-art,
.inventory-card.selected,
.quick-item.selected,
.option-button.equipped,
.creator-card.following {
  box-shadow: 0 0 0 3px rgba(47, 110, 160, 0.35), var(--shadow-soft);
}

.placement-ghost {
  position: absolute;
  inset: 24% 10% 12% 10%;
  z-index: 5;
  pointer-events: none;
}

.placement-ghost .food-art {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0.78;
}

.placement-ghost.invalid .food-art {
  filter: saturate(0.5);
  opacity: 0.48;
}

.scene-actions {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 5;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.scene-actions .scene-action-button {
  flex: 1;
}

.control-card {
  padding: 18px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status-item,
.quick-inventory,
.chat-card,
.inventory-card,
.shop-card,
.creator-card,
.option-card,
.settings-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: var(--card-strong);
  box-shadow: var(--shadow-soft);
}

.status-item {
  padding: 14px 16px;
}

.status-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.quick-inventory,
.chat-card {
  margin-top: 14px;
  padding: 16px;
}

.panel-mini-header,
.inventory-card-header,
.option-card-header,
.settings-card-header,
.creator-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-mini-header h2,
.panel-header h2 {
  margin: 2px 0 0;
  font-family: Georgia, "Palatino Linotype", serif;
}

.quick-inventory-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quick-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 247, 239, 0.8);
  box-shadow: inset 0 0 0 1px rgba(102, 72, 59, 0.08);
  cursor: pointer;
}

.quick-copy strong,
.inventory-card-title,
.creator-card h3,
.option-card h3,
.settings-card h3,
.shop-card-title {
  display: block;
  margin: 0;
  font-size: 1rem;
}

.quick-copy small,
.inventory-meta,
.shop-card-copy p,
.creator-card p,
.option-card p,
.settings-card p,
.chat-message-text {
  color: var(--muted);
}

.stack-count,
.detail-pill,
.creator-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(216, 109, 74, 0.16);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
}

.chat-card {
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.chat-feed {
  flex: 1;
  margin-top: 12px;
  padding-right: 4px;
  overflow: auto;
}

.chat-message {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 247, 239, 0.9);
}

.chat-message-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.76rem;
}

.chat-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.chat-form input,
.settings-input,
.discover-comment-input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(109, 75, 61, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.chat-form button {
  min-width: 88px;
  padding: 0 16px;
  font-weight: 700;
}

.menu-dock {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.dock-button {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 84px;
  padding: 12px 10px;
  color: var(--ink);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

.dock-button span:first-child {
  font-size: 1.45rem;
}

.dock-button:disabled,
.live-button:disabled,
.scene-action-button:disabled,
.shop-buy-button:disabled,
.inventory-action:disabled,
.creator-action:disabled,
.settings-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.panel-drawer,
.dialog-shell {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.panel-scrim {
  position: absolute;
  inset: 0;
  background: rgba(52, 38, 34, 0.42);
  backdrop-filter: blur(6px);
}

.panel-sheet,
.dialog-card {
  position: absolute;
  right: 18px;
  top: 18px;
  bottom: 18px;
  width: min(540px, calc(100% - 36px));
  border-radius: 30px;
  background: rgba(255, 250, 245, 0.96);
  box-shadow: 0 28px 60px rgba(44, 26, 22, 0.24);
  overflow: hidden;
}

.dialog-card {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  width: min(480px, calc(100% - 28px));
  transform: translate(-50%, -50%);
  padding: 24px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 0;
}

.close-button {
  width: 44px;
  height: 44px;
  font-weight: 700;
}

.panel-body {
  height: calc(100% - 92px);
  padding: 18px 22px 24px;
  overflow: auto;
}

.panel-section {
  display: grid;
  gap: 14px;
}

.shop-tab-row,
.inventory-filter-row,
.option-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-tab {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
}

.shop-tab.active,
.option-filter.active {
  color: #fff7f2;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.shop-grid,
.inventory-grid,
.creator-grid,
.option-grid {
  display: grid;
  gap: 14px;
}

.shop-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-grid,
.creator-grid,
.option-grid {
  grid-template-columns: minmax(0, 1fr);
}

.shop-card,
.inventory-card,
.creator-card,
.option-card,
.settings-card {
  padding: 14px;
}

.shop-card {
  display: grid;
  gap: 12px;
}

.shop-card-copy {
  display: grid;
  gap: 6px;
}

.shop-card-copy p,
.option-card p,
.creator-card p,
.settings-card p {
  margin: 0;
  line-height: 1.45;
}

.item-price {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.shop-buy-button,
.inventory-action,
.creator-action,
.option-button,
.settings-button {
  min-height: 44px;
  padding: 0 14px;
  font-weight: 700;
}

.inventory-card {
  display: grid;
  gap: 12px;
}

.inventory-card-actions,
.creator-card-actions,
.option-card-actions,
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory-card.is-placed {
  background: rgba(241, 255, 248, 0.94);
}

.detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-pill {
  background: rgba(132, 177, 155, 0.16);
  color: #446e5d;
}

.inventory-meta {
  font-size: 0.76rem;
  font-weight: 700;
}

.creator-card {
  display: grid;
  gap: 12px;
}

.creator-card.following {
  background: rgba(255, 245, 233, 0.98);
}

.creator-avatar {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  overflow: hidden;
}

.creator-comment-form,
.settings-form-row {
  display: grid;
  gap: 10px;
}

.creator-comment-row,
.settings-form-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.creator-comments {
  display: grid;
  gap: 10px;
}

.creator-comment {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 247, 239, 0.9);
}

.creator-comment strong {
  display: block;
  margin-bottom: 4px;
}

.option-card {
  display: grid;
  gap: 12px;
}

.option-card .swatch-row {
  display: flex;
  gap: 8px;
}

.option-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(60, 41, 34, 0.12);
}

.settings-card {
  display: grid;
  gap: 14px;
}

.settings-slider {
  width: 100%;
}

.tally-breakdown {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.tally-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 247, 239, 0.92);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  min-width: min(420px, calc(100% - 28px));
  max-width: min(420px, calc(100% - 28px));
  padding: 14px 18px;
  border-radius: 16px;
  color: #fffaf6;
  background: rgba(53, 38, 34, 0.92);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 48px));
  transition: transform 180ms ease, opacity 180ms ease, visibility 0s linear 180ms;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.noscript-note {
  margin: 18px auto 0;
  width: min(640px, calc(100% - 28px));
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.food-art {
  position: relative;
  width: var(--art-width, 112px);
  height: var(--art-height, 112px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.68), transparent 20%),
    linear-gradient(180deg, var(--art-bg, #ffe5d0), var(--art-bg-soft, #ffcda8));
  box-shadow: inset 0 0 0 1px rgba(83, 54, 42, 0.08), 0 14px 26px rgba(84, 48, 34, 0.14);
  overflow: hidden;
}

.food-art.sprite-art {
  background-color: #fff3df;
  background-image: var(--sprite-url);
  background-position: var(--sprite-x) var(--sprite-y);
  background-repeat: no-repeat;
  background-size: 500% 500%;
}

.food-art-fallback {
  position: absolute;
  right: 5px;
  bottom: 3px;
  display: none;
  font-size: 1rem;
}

.table-item .food-art {
  width: var(--table-art-size, 72px);
  height: var(--table-art-size, 72px);
  border-radius: 24px;
}

.creator-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #ffe6c7, #f5b7a8);
  font-size: 2.4rem;
}

.host.is-eating .host-mouth {
  animation: mukbang-chew 260ms ease-in-out 2;
}

@keyframes mukbang-chew {
  50% {
    width: 28px;
    height: 22px;
    border-radius: 50%;
    transform: translateX(-50%) scaleY(1.15);
  }
}

.food-art.compact {
  --art-width: 74px;
  --art-height: 74px;
  border-radius: 24px;
}

.food-art.tiny {
  --art-width: 60px;
  --art-height: 60px;
  border-radius: 20px;
}

.food-art-plate,
.food-art-fill,
.food-art-detail,
.food-art-garnish,
.food-art-emoji,
.food-art-label {
  position: absolute;
}

.food-art-plate {
  left: 50%;
  bottom: 10%;
  width: 72%;
  height: 28%;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--art-vessel, rgba(255, 252, 246, 0.92));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.7);
}

.food-art[data-vessel="cup"] .food-art-plate,
.food-art[data-vessel="glass"] .food-art-plate {
  width: 38%;
  height: 48%;
  bottom: 16%;
  border-radius: 16px 16px 14px 14px;
}

.food-art[data-vessel="bowl"] .food-art-plate {
  width: 74%;
  height: 34%;
  bottom: 11%;
  border-radius: 20px 20px 24px 24px;
}

.food-art[data-vessel="basket"] .food-art-plate,
.food-art[data-vessel="tray"] .food-art-plate {
  width: 78%;
  height: 26%;
  bottom: 11%;
  border-radius: 18px;
}

.food-art-fill {
  left: 50%;
  top: 26%;
  width: 54%;
  height: 34%;
  transform: translateX(-50%);
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.6), transparent 24%),
    linear-gradient(180deg, var(--art-fill, #ffbe8f), var(--art-fill-2, #ff9f73));
}

.food-art[data-vessel="cup"] .food-art-fill,
.food-art[data-vessel="glass"] .food-art-fill {
  top: 30%;
  width: 30%;
  height: 42%;
  border-radius: 12px;
}

.food-art[data-vessel="bowl"] .food-art-fill {
  top: 22%;
  width: 62%;
  height: 24%;
  border-radius: 50%;
}

.food-art[data-shape="sticks"] .food-art-fill,
.food-art[data-shape="skewer"] .food-art-fill {
  width: 46%;
  height: 12%;
  top: 36%;
  border-radius: 12px;
}

.food-art[data-shape="layered"] .food-art-fill {
  top: 24%;
  height: 42%;
  border-radius: 24px;
}

.food-art[data-shape="chunks"] .food-art-fill {
  clip-path: polygon(6% 10%, 28% 0, 52% 16%, 71% 2%, 96% 18%, 83% 54%, 95% 88%, 66% 100%, 37% 84%, 10% 100%, 0 62%);
}

.food-art[data-shape="noodles"] .food-art-fill {
  height: 28%;
  background:
    repeating-linear-gradient(90deg, var(--art-fill, #ffcf86) 0 6px, var(--art-fill-2, #f39b66) 6px 10px),
    linear-gradient(180deg, var(--art-fill, #ffcf86), var(--art-fill-2, #f39b66));
}

.food-art-detail {
  left: 50%;
  top: 18%;
  width: 28%;
  height: 14%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--art-detail, rgba(255, 255, 255, 0.5));
  opacity: 0.8;
}

.food-art-garnish {
  right: 14%;
  top: 16%;
  color: var(--art-garnish, #6a9b63);
  font-size: 1.2rem;
  line-height: 1;
}

.food-art.compact .food-art-garnish,
.food-art.tiny .food-art-garnish {
  font-size: 0.95rem;
}

.food-art-emoji {
  left: 14%;
  top: 10%;
  font-size: 1.4rem;
  line-height: 1;
}

.food-art.compact .food-art-emoji,
.food-art.tiny .food-art-emoji {
  font-size: 1.1rem;
}

.food-art-label {
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: rgba(53, 38, 34, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.food-art.compact .food-art-label,
.food-art.tiny .food-art-label {
  font-size: 0.62rem;
}

@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-card {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100%, calc(100% - 18px));
  }

  .topbar,
  .status-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .topbar-actions .live-button {
    flex: 1;
  }

  .hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-scene {
    min-height: 560px;
  }

  .chat-bubble {
    max-width: 182px;
    font-size: 0.84rem;
  }

  .microphone {
    right: 8%;
  }

  .menu-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-sheet {
    right: 8px;
    left: 8px;
    top: auto;
    bottom: 8px;
    width: auto;
    height: min(86vh, 860px);
  }
}

@media (max-width: 430px) {
  .hud-card {
    min-height: 78px;
    padding: 14px 14px;
  }

  .workspace {
    gap: 14px;
  }

  .studio-card,
  .control-card {
    border-radius: 26px;
  }

  .studio-scene {
    min-height: 520px;
  }

  .host {
    width: 150px;
    height: 286px;
  }

  .host-head {
    left: 26px;
  }

  .host-body {
    left: 11px;
  }

  .chat-bubble {
    left: 18px;
    right: 18px;
    top: 18px;
    max-width: none;
  }

  .microphone {
    right: 3%;
    transform: scale(0.84);
    transform-origin: bottom right;
  }

  .scene-actions {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .quick-item {
    grid-template-columns: 68px 1fr auto;
  }

  .creator-comment-row,
  .settings-form-inline,
  .chat-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
