:root {
  color-scheme: light;
  --bg: #f3f8f4;
  --surface: #ffffff;
  --surface-soft: #f8fbf8;
  --ink: #203b42;
  --muted: #718388;
  --line: #dfe9e3;
  --mint: #28b89e;
  --mint-dark: #168f7b;
  --mint-soft: #dff6ee;
  --peach: #f38f72;
  --peach-soft: #fff0e9;
  --gold: #f2bd55;
  --purple: #846bd8;
  --purple-soft: #eeeafd;
  --danger: #db6a6a;
  --shadow-sm: 0 8px 24px rgba(31, 64, 58, 0.08);
  --shadow-md: 0 20px 50px rgba(31, 64, 58, 0.12);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --sidebar: 244px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 4%, rgba(242, 189, 85, .13), transparent 24rem),
    radial-gradient(circle at 15% 88%, rgba(40, 184, 158, .10), transparent 26rem),
    var(--bg);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

button { color: inherit; }

button:focus-visible {
  outline: 3px solid rgba(40, 184, 158, .28);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.app { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
  background: rgba(255, 255, 255, .94);
  border-right: 1px solid rgba(207, 224, 215, .88);
  box-shadow: 10px 0 32px rgba(39, 80, 71, .05);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 6px 28px;
}

.brand-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #fff8e8;
  background: linear-gradient(145deg, #2fc6a8, #17947d);
  box-shadow: 0 10px 20px rgba(32, 169, 143, .24);
  font-weight: 1000;
  letter-spacing: -1px;
}

.brand-icon::after,
.brand-icon i {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #ffd47c;
}

.brand-icon::after { width: 7px; height: 7px; right: 7px; top: 8px; }
.brand-icon i { width: 11px; height: 5px; left: 7px; bottom: 8px; transform: rotate(-20deg); }

.brand b {
  display: block;
  font-size: 17px;
  line-height: 1;
  letter-spacing: .6px;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
}

.side-section {
  display: flex;
  justify-content: space-between;
  margin: 0 8px 10px;
  color: #98a8a7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.side-section span { color: #b6c2c0; font-size: 9px; }

#navigation { display: grid; gap: 6px; }

.navbtn {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 47px;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  color: #617477;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.navbtn span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  color: #78908e;
  background: #edf4f0;
  font-size: 16px;
}

.navbtn:hover { background: #f1f7f4; transform: translateX(2px); }

.navbtn.active {
  color: var(--mint-dark);
  background: linear-gradient(90deg, #e2f7ef, #effaf5);
  box-shadow: inset 3px 0 0 var(--mint);
}

.navbtn.active span { color: white; background: var(--mint); }

.sidebar-bottom { margin-top: auto; display: grid; gap: 13px; }

.quest {
  padding: 15px;
  border: 1px solid #f6e7b9;
  border-radius: 17px;
  background: linear-gradient(145deg, #fff9e8, #fffdf7);
}

.quest-label { color: #b8822d; font-size: 10px; font-weight: 950; letter-spacing: .5px; }
.quest b { display: block; margin-top: 7px; font-size: 13px; }
.quest p { margin: 4px 0 10px; color: #8a8e87; font-size: 10px; }
.quest small { display: block; margin-top: 6px; color: #aa8a55; font-size: 9px; font-weight: 800; }

.progress { height: 6px; overflow: hidden; border-radius: 99px; background: #efe5c9; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #f29a5c); }

.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 7px;
  border-top: 1px solid var(--line);
}

.profile > span:nth-child(2) { min-width: 0; flex: 1; }
.profile strong { display: block; font-size: 11px; }
.profile small { display: block; margin-top: 3px; color: #8b9c9c; font-size: 9px; }
.profile i { width: 8px; height: 8px; border-radius: 50%; background: #6fd08d; box-shadow: 0 0 0 3px #e8f8ed; }

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #7b5363;
  background: linear-gradient(145deg, #ffd9b0, #f6a798);
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(83, 55, 68, .12);
  font-size: 12px;
  font-weight: 950;
}

.avatar.mini { width: 30px; height: 30px; }

.workspace {
  min-height: 100vh;
  margin-left: var(--sidebar);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid rgba(216, 229, 221, .86);
  background: rgba(248, 252, 249, .88);
  backdrop-filter: blur(16px);
}

.breadcrumb { color: #98a7a5; font-size: 10px; font-weight: 900; letter-spacing: .6px; }
.breadcrumb span { margin: 0 7px; color: #c9d3d0; }
.breadcrumb b { color: #435d60; }

.top-items { display: flex; align-items: center; gap: 13px; color: #738586; font-size: 10px; }

.test-label,
.player-online,
.coin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
}

.test-label { color: #a47834; background: #fff9e9; border-color: #f3e1aa; }
.player-online { color: #4d8b78; }
.player-online sup { color: #9eacaa; font-size: 7px; }
.coin { color: #997233; background: #fff9e8; border-color: #f0e0b8; font-size: 11px; }

main { width: min(1480px, 100%); margin: 0 auto; padding: 28px 30px 52px; }

.page { display: none; animation: pageIn .24s ease both; }
.page.shown { display: block; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin: 2px 2px 24px;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--mint-dark);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 1.8px;
}

h1,
h2,
h3,
p { margin-top: 0; }

.intro h1 {
  margin-bottom: 8px;
  color: #243f44;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.intro h1 em { color: var(--peach); font-style: normal; }
.intro p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.today,
.shift {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 210px;
  padding: 13px 15px;
  border: 1px solid #f1dfb1;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff9e5, #fffdf6);
  box-shadow: var(--shadow-sm);
}

.today span { color: #e2a43e; font-size: 18px; }
.today b { font-size: 11px; }
.today small { color: #aa9a78; font-size: 9px; }

.shift {
  justify-content: center;
  color: var(--mint-dark);
  border-color: #cdeade;
  background: #edf9f4;
  font-size: 10px;
}

.shift b { color: #33575a; }
.manager-shift { color: #9b6e25; border-color: #f0ddb0; background: #fff9e7; }
.investor-shift { color: #6853b7; border-color: #ddd5fb; background: #f6f3ff; }

.lobby-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr);
  gap: 20px;
}

.scene-card,
.role-box,
.module,
.workstation,
.ticket-panel,
.cart,
.featured,
.order-track,
.investor-banner {
  border: 1px solid rgba(215, 229, 220, .92);
  background: rgba(255, 255, 255, .93);
  box-shadow: var(--shadow-sm);
}

.scene-card { overflow: hidden; border-radius: var(--radius-lg); }
.scene-head,
.scene-foot,
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.scene-head { padding: 12px 16px; color: #e6b24e; font-size: 11px; }
.scene-head small { color: #8b9997; font-size: 9px; }
.live-tag { color: #1e9f86; font-weight: 900; }
.restaurant { display: block; width: 100%; height: auto; background: #e8f7e6; }

.scene-foot { padding: 13px 17px; }
.scene-foot strong { display: block; font-size: 11px; }
.scene-foot small { display: block; margin-top: 3px; color: #8a9997; font-size: 9px; }

.role-box { padding: 18px; border-radius: var(--radius-lg); }
.section-row { margin-bottom: 14px; }
.section-row h2 { margin: 0; font-size: 15px; }
.section-row small { color: #91a09e; font-size: 9px; }

.role {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdfc;
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.role:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.role-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 19px; }
.role b { display: block; font-size: 11px; }
.role small { display: block; margin-top: 3px; color: #839391; font-size: 9px; }
.role i { color: #9badab; font-style: normal; }

.role-customer .role-icon { color: #bf755f; background: #fff0e9; }
.role-staff .role-icon { color: var(--mint-dark); background: #e3f7f0; }
.role-manager .role-icon { color: #9c752b; background: #fff6d9; }
.role-investor .role-icon { color: #6855bc; background: #eeeafd; }
.role-customer:hover { border-color: #f3b7a5; }
.role-staff:hover { border-color: #9edfcf; }
.role-manager:hover { border-color: #ebcf7b; }
.role-investor:hover { border-color: #c6bdf2; }

.lobby-stats,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.lobby-stats article,
.metric-grid article {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 7px 22px rgba(42, 73, 67, .05);
}

.lobby-stats article > div { min-width: 0; flex: 1; }
.lobby-stats small,
.metric-grid small { display: block; color: #899997; font-size: 9px; }
.lobby-stats strong,
.metric-grid strong { display: block; margin-top: 3px; font-size: 19px; }
.lobby-stats sub,
.metric-grid sub { color: #9aa6a4; font-size: 9px; font-weight: 800; }
.lobby-stats em { color: #4ba17f; font-size: 8px; font-style: normal; font-weight: 850; }

.stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--mint-dark);
  background: var(--mint-soft);
  font-size: 17px;
}

.stat-icon.pink { color: #c06d6d; background: #ffe9e7; }
.stat-icon.purple { color: #705dc1; background: #efebff; }

.action,
.outline,
.text-button,
.filters button,
.toggle button,
.invest-choice button,
.complaint button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, opacity .16s ease;
}

.action {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 13px;
  color: white;
  background: linear-gradient(145deg, #2bc3a6, #17927d);
  box-shadow: 0 9px 20px rgba(26, 157, 133, .22);
  font-size: 11px;
}

.action:hover { transform: translateY(-1px); box-shadow: 0 12px 25px rgba(26, 157, 133, .28); }
.action:active { transform: translateY(1px); }
.action.small { min-height: 34px; padding: 0 12px; font-size: 9px; }
.full { width: 100%; }

.outline {
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid #cfe0d8;
  border-radius: 12px;
  color: #53706f;
  background: #fff;
  font-size: 10px;
}

.outline:hover { color: var(--mint-dark); border-color: #9bd3c5; background: #f5fbf8; }
.outline:disabled,
.action:disabled,
.invest-choice button:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }

.toggle {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.toggle button {
  min-width: 92px;
  min-height: 38px;
  border-radius: 10px;
  color: #83918f;
  background: transparent;
  font-size: 10px;
}

.toggle button.selected { color: #fff; background: var(--mint); box-shadow: 0 5px 12px rgba(40, 184, 158, .18); }

.customer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

.featured {
  position: relative;
  min-height: 178px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 23px 26px;
  border-color: #f4d8be;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #fff5e9 0%, #fffaf3 54%, #eaf8ed 100%);
}

.featured::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -68px;
  top: -65px;
  border-radius: 50%;
  background: rgba(255,255,255,.58);
}

.featured > div { position: relative; z-index: 1; }
.featured-badge { display: inline-block; margin-bottom: 9px; color: #bd7f33; font-size: 9px; font-weight: 950; }
.featured h2 { margin-bottom: 6px; font-size: 23px; }
.featured p { max-width: 380px; margin-bottom: 12px; color: #8a7e78; font-size: 10px; }
.featured b { color: var(--peach); font-size: 20px; }
.featured svg { position: relative; z-index: 1; width: 190px; height: 145px; filter: drop-shadow(0 14px 12px rgba(127, 80, 52, .12)); }

.menu-header { margin: 22px 0 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #768886;
  background: #fff;
  font-size: 9px;
}

.filters button.selected { color: #fff; border-color: var(--mint); background: var(--mint); }

.food-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.food-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(46, 77, 70, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.food-card:hover { transform: translateY(-2px); border-color: #c4ded4; box-shadow: var(--shadow-sm); }
.food-art { display: grid; place-items: center; height: 104px; margin: -4px -4px 9px; border-radius: 13px; background: linear-gradient(145deg, #fff9ef, #f1faf5); }
.food-art svg { width: 112px; height: 94px; }
.food-card h3 { margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.food-card p { min-height: 27px; margin-bottom: 10px; color: #899795; font-size: 8px; line-height: 1.55; }
.food-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.food-meta strong { color: #bd735f; font-size: 12px; }
.add-food {
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--mint);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.cart {
  position: sticky;
  top: 84px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.cart-title { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.cart-title small { color: var(--mint-dark); font-size: 8px; font-weight: 950; letter-spacing: 1.5px; }
.cart-title h2 { margin: 3px 0 0; font-size: 17px; }
.cart-title h2 span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; color: white; background: var(--peach); font-size: 9px; }
.cart-title > span { font-size: 23px; }

.cart-items { max-height: 330px; overflow-y: auto; padding: 12px 16px; scrollbar-width: thin; }
.empty-cart { padding: 34px 12px; color: #a1afac; font-size: 10px; line-height: 1.6; text-align: center; }

.cart-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2ef;
}

.cart-item svg { width: 42px; height: 38px; padding: 3px; border-radius: 10px; background: #fff6ea; }
.cart-item b { display: block; font-size: 9px; }
.cart-item small { display: block; margin-top: 3px; color: #a17c6f; font-size: 8px; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 900; }
.qty span { min-width: 14px; text-align: center; font-size: 9px; font-weight: 900; }

.cart-summary { padding: 14px 17px 16px; border-top: 1px solid var(--line); background: #fbfdfc; }
.cart-summary > div { display: flex; justify-content: space-between; margin: 7px 0; color: #7d8e8c; font-size: 9px; }
.cart-summary > div b { color: #526b6c; }
.cart-summary .grand { margin-top: 11px; padding-top: 10px; border-top: 1px dashed #d9e5df; color: var(--ink); font-size: 12px; }
.cart-summary .action { margin-top: 10px; }
.cart-summary > small { display: block; margin-top: 9px; color: #a0aaa9; font-size: 7px; text-align: center; }

.order-track {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 19px;
  border-color: #cce7dc;
  border-radius: 18px;
  background: linear-gradient(90deg, #effaf5, #fff);
}

.order-track[hidden] { display: none; }
.order-confirmed { color: var(--mint-dark); font-size: 9px; font-weight: 950; }
.order-track h3 { margin: 4px 0 3px; font-size: 14px; }
.order-track p { margin: 0; color: #81918f; font-size: 9px; }

.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 18px; }
.metric-grid article { min-height: 100px; display: block; }
.metric-grid strong { margin: 8px 0 5px; font-size: 23px; }
.metric-grid span { color: #8b9997; font-size: 8px; }
.good { color: #339979 !important; }
.warning { color: #c78147 !important; }

.staff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr);
  gap: 18px;
}

.workstation,
.ticket-panel { padding: 18px; border-radius: var(--radius-lg); }

.stations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.stations button {
  min-width: 0;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: #687b7c;
  background: #fbfdfc;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.stations button:hover { transform: translateY(-1px); }
.stations button.selected { color: var(--mint-dark); border-color: #97d8c8; background: #effaf6; box-shadow: inset 0 0 0 1px #b9e9dc; }
.stations svg { display: block; width: 62px; height: 50px; margin: 0 auto 4px; }
.stations .serve-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 1px auto 5px; border-radius: 14px; color: white; background: linear-gradient(145deg, var(--mint), var(--mint-dark)); font-size: 22px; }
.stations b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.stations small { display: block; margin-top: 3px; color: #9aa7a5; font-size: 7px; }

.current-task {
  min-height: 220px;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
  padding: 21px;
  border-radius: 19px;
  background: linear-gradient(135deg, #f8fbf8, #fff8ea);
  border: 1px solid #e6eee9;
}

.task-art { display: grid; place-items: center; min-height: 170px; border-radius: 17px; background: rgba(255,255,255,.75); }
.task-art svg { width: 150px; height: 125px; }
.task-pill { color: #b2823d; font-size: 8px; font-weight: 950; letter-spacing: .6px; }
.current-task h2 { margin: 7px 0 6px; font-size: 17px; }
.current-task p { margin-bottom: 12px; color: #7c8d8c; font-size: 9px; line-height: 1.6; }
.task-bar { height: 7px; overflow: hidden; margin-bottom: 15px; border-radius: 99px; background: #e3ece7; }
.task-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), #6fd7a6); transition: width .1s linear; }

#tickets { display: grid; gap: 9px; }
.ticket {
  display: grid;
  grid-template-columns: 47px 1fr auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
  cursor: pointer;
  text-align: left;
}
.ticket:hover { border-color: #b7dacf; }
.ticket.active { border-color: #86cfbd; background: #eefaf5; box-shadow: inset 3px 0 0 var(--mint); }
.ticket-no { display: grid; place-items: center; height: 38px; border-radius: 10px; color: var(--mint-dark); background: #e6f7f1; font-size: 10px; font-weight: 1000; }
.ticket b { display: block; font-size: 9px; }
.ticket small { display: block; margin-top: 3px; color: #95a19f; font-size: 7px; }
.ticket em { color: #c67a5f; font-size: 8px; font-style: normal; font-weight: 900; }

.tip {
  margin: 13px 0 0;
  padding: 10px 11px;
  border-radius: 11px;
  color: #6c8b82;
  background: #eff8f4;
  font-size: 8px;
  line-height: 1.5;
}

.manager-layout { display: grid; grid-template-columns: 1.1fr 1.1fr .8fr; gap: 15px; }
.module { padding: 18px; border-radius: var(--radius-lg); }
.text-button { color: var(--mint-dark); background: transparent; font-size: 9px; }

.staff-row {
  display: grid;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #edf2ef;
}
.face { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; font-size: 11px; font-weight: 950; }
.face.mint { color: #1a846f; background: #dff6ed; }
.face.peach { color: #aa6656; background: #ffe8df; }
.face.purple { color: #6856b0; background: #ece8fb; }
.staff-row b { display: block; font-size: 9px; }
.staff-row b small { display: inline; margin-left: 4px; color: #95a19f; font-size: 7px; font-weight: 700; }
.staff-row p { margin: 3px 0 0; color: #8c9a98; font-size: 7px; }
.staff-row em { padding: 5px 7px; border-radius: 999px; color: #318c74; background: #e8f7f1; font-size: 7px; font-style: normal; font-weight: 900; }
.staff-row em.break { color: #9d7c4b; background: #fff4dd; }
.module > .outline.full { margin-top: 13px; }

#complaints { display: grid; gap: 9px; }
.complaint {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #f2ddd2;
  border-radius: 14px;
  background: #fffaf6;
  transition: opacity .2s ease, transform .2s ease;
}
.complaint > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: #ba704f; background: #ffe9dd; font-weight: 1000; }
.complaint b { display: block; font-size: 9px; }
.complaint p { margin: 3px 0; color: #8c9694; font-size: 7px; }
.complaint small { color: #b3846e; font-size: 7px; }
.complaint button { min-height: 31px; padding: 0 9px; border-radius: 9px; color: #fff; background: var(--peach); font-size: 8px; }
.alert { padding: 5px 8px; border-radius: 999px; color: #b26452 !important; background: #ffeae2; font-weight: 900; }

.stock { display: grid; grid-template-columns: 1fr 50px; gap: 7px 9px; align-items: center; margin-bottom: 16px; }
.stock b { font-size: 9px; }
.stock > span { grid-column: 1; height: 7px; overflow: hidden; border-radius: 999px; background: #e8eeeb; }
.stock > span i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), #73d49f); transition: width .35s ease; }
.stock > span i.low-stock { background: linear-gradient(90deg, #ee8a6f, #f2bf5c); }
.stock small { grid-column: 2; grid-row: 1 / span 2; justify-self: end; color: #728784; font-size: 9px; font-weight: 900; }

.investor-banner {
  position: relative;
  min-height: 164px;
  display: grid;
  grid-template-columns: 1fr auto 190px;
  align-items: center;
  gap: 25px;
  overflow: hidden;
  padding: 24px 28px;
  border-color: #dcd5f5;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #f2efff 0%, #fcfbff 55%, #eef9f2 100%);
}
.investor-banner > div:first-child > span { color: #715fc1; font-size: 8px; font-weight: 1000; letter-spacing: 1.5px; }
.investor-banner h2 { margin: 5px 0; font-size: 22px; }
.investor-banner p { margin: 0; color: #8c86a0; font-size: 8px; }
.investor-banner svg { width: 180px; height: 140px; filter: drop-shadow(0 14px 14px rgba(106, 76, 68, .10)); }
.portfolio-totals { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 10px; }
.portfolio-totals div { padding: 12px 14px; border: 1px solid rgba(212, 205, 241, .8); border-radius: 14px; background: rgba(255,255,255,.72); }
.portfolio-totals small { display: block; color: #9690a5; font-size: 8px; }
.portfolio-totals b { display: block; margin-top: 5px; color: #5f4ea7; font-size: 15px; }

.investor-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 17px; }
.invest-choice {
  display: grid;
  grid-template-columns: 42px 1fr auto auto;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1ef;
}
.invest-choice > span { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 12px; background: #f5f1ff; font-size: 20px; }
.invest-choice b { display: block; font-size: 9px; }
.invest-choice p { margin: 3px 0 0; color: #929c99; font-size: 7px; }
.invest-choice strong { color: #6354a4; font-size: 10px; }
.invest-choice button { min-height: 32px; padding: 0 11px; border-radius: 9px; color: white; background: var(--purple); font-size: 8px; }
.invest-choice button.purchased { color: #5e8d7b; background: #e4f5ee; }

.chart { height: 220px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 10px 0; border-radius: 16px; background: linear-gradient(#f8f6ff, #fff); }
.chart-bars { height: 168px; display: flex; align-items: end; gap: 8%; padding: 0 8px; border-bottom: 1px solid #ddd9ec; background: repeating-linear-gradient(to top, transparent 0 41px, rgba(129,112,183,.08) 42px); }
.chart-bars i { flex: 1; min-width: 8px; max-width: 24px; margin-inline: auto; border-radius: 7px 7px 2px 2px; background: linear-gradient(to top, #7665c8, #a791ed); box-shadow: 0 5px 12px rgba(113, 91, 192, .14); }
.chart-axis { display: flex; justify-content: space-around; padding: 8px 0 0; color: #9f9aaa; font-size: 7px; }
.chart-caption { display: flex; justify-content: space-between; margin-top: 12px; font-size: 9px; }
.chart-caption b { color: #4b9a79; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  max-width: min(90vw, 420px);
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  color: white;
  background: rgba(28, 54, 55, .94);
  box-shadow: 0 18px 42px rgba(23, 44, 43, .25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  :root { --sidebar: 210px; }
  .sidebar { padding-inline: 14px; }
  main { padding-inline: 20px; }
  .manager-layout { grid-template-columns: 1fr 1fr; }
  .manager-layout .inventory { grid-column: 1 / -1; }
  .inventory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; }
  .inventory .section-row,
  .inventory .outline { grid-column: 1 / -1; }
  .stock { margin-bottom: 0; }
  .food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --sidebar: 78px; }
  .sidebar { align-items: stretch; padding: 18px 10px 14px; }
  .brand { justify-content: center; margin-inline: 0; }
  .brand > div:last-child,
  .side-section,
  .navbtn:not(.active) { font-size: 0; }
  .navbtn { justify-content: center; gap: 0; padding: 0; }
  .navbtn.active { font-size: 0; box-shadow: none; }
  .navbtn span { flex: 0 0 auto; }
  .quest,
  .profile > span:nth-child(2),
  .profile i { display: none; }
  .profile { justify-content: center; border-top: 0; }
  .topbar { padding-inline: 18px; }
  .test-label,
  .player-online { display: none; }
  .lobby-layout,
  .customer-layout,
  .staff-layout,
  .investor-grid { grid-template-columns: 1fr; }
  .role-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .role-box .section-row { grid-column: 1 / -1; }
  .role { margin-top: 0; }
  .cart { position: static; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .ticket-panel { order: -1; }
  .investor-banner { grid-template-columns: 1fr auto; }
  .investor-banner svg { display: none; }
}

@media (max-width: 700px) {
  :root { --sidebar: 0px; }
  body { padding-bottom: 72px; }
  .workspace { margin-left: 0; }
  .sidebar {
    position: fixed;
    inset: auto 8px 8px;
    z-index: 60;
    width: auto;
    height: 60px;
    display: block;
    padding: 6px;
    border: 1px solid rgba(213, 228, 219, .92);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(30, 61, 56, .18);
  }
  .brand,
  .sidebar-bottom { display: none; }
  #navigation { height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
  .navbtn,
  .navbtn.active,
  .navbtn:not(.active) {
    min-height: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 0 2px;
    border-radius: 13px;
    font-size: 8px;
    line-height: 1;
    transform: none;
  }
  .navbtn span { width: 24px; height: 24px; border-radius: 8px; font-size: 13px; }
  .topbar { height: 54px; padding: 0 13px; }
  .breadcrumb { font-size: 8px; }
  .coin { min-height: 27px; padding-inline: 8px; font-size: 9px; }
  .avatar.mini { width: 27px; height: 27px; }
  main { padding: 19px 13px 34px; }
  .intro { margin-bottom: 16px; }
  .intro h1 { font-size: 25px; letter-spacing: -1px; }
  .intro p { max-width: 470px; font-size: 10px; }
  .today,
  .shift { display: none; }
  .scene-head { padding: 9px 11px; }
  .scene-foot { padding: 10px 12px; }
  .role-box { grid-template-columns: 1fr; padding: 13px; border-radius: 20px; }
  .lobby-stats { grid-template-columns: 1fr; gap: 9px; }
  .lobby-stats article { min-height: 70px; }
  .toggle { flex: 0 0 auto; }
  .toggle button { min-width: 74px; min-height: 36px; }
  .featured { min-height: 148px; padding: 17px; border-radius: 20px; }
  .featured h2 { font-size: 18px; }
  .featured p { max-width: 230px; }
  .featured svg { width: 130px; height: 110px; }
  .menu-header { align-items: flex-start; flex-direction: column; }
  .food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .food-art { height: 90px; }
  .food-art svg { width: 95px; height: 78px; }
  .order-track { align-items: stretch; flex-direction: column; }
  .metric-grid { gap: 9px; }
  .metric-grid article { min-height: 88px; padding: 13px; }
  .metric-grid strong { font-size: 19px; }
  .stations { grid-template-columns: repeat(2, 1fr); }
  .current-task { grid-template-columns: 110px 1fr; gap: 14px; padding: 14px; }
  .task-art { min-height: 125px; }
  .task-art svg { width: 105px; height: 95px; }
  .manager-layout { grid-template-columns: 1fr; }
  .manager-layout .inventory { grid-column: auto; }
  .inventory { display: block; }
  .stock { margin-bottom: 16px; }
  .investor-banner { grid-template-columns: 1fr; padding: 19px; }
  .portfolio-totals { grid-template-columns: 1fr 1fr; }
  .invest-choice { grid-template-columns: 40px 1fr auto; }
  .invest-choice strong { grid-column: 2; }
  .invest-choice button { grid-column: 3; grid-row: 1 / span 2; }
  .toast { bottom: 80px; }
}

@media (max-width: 430px) {
  .topbar .breadcrumb span,
  .topbar .breadcrumb { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .intro { gap: 10px; }
  .intro h1 { font-size: 22px; }
  .toggle button { min-width: 66px; padding-inline: 7px; font-size: 9px; }
  .food-grid { grid-template-columns: 1fr 1fr; }
  .food-card { padding: 10px; }
  .featured svg { width: 108px; }
  .current-task { grid-template-columns: 1fr; }
  .task-art { min-height: 100px; }
  .task-art svg { width: 110px; height: 90px; }
  .portfolio-totals { grid-template-columns: 1fr; }
}

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