:root {
  --bg: #0b0c0f;
  --surface: rgba(18, 19, 24, 0.82);
  --surface-soft: rgba(25, 26, 32, 0.86);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.68);
  --strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --btn-dark-bg: linear-gradient(180deg, rgba(26, 28, 36, 0.88), rgba(16, 17, 24, 0.82));
  --btn-dark-bg-hover: linear-gradient(180deg, rgba(34, 36, 46, 0.92), rgba(18, 20, 28, 0.88));
  --btn-dark-shadow: 0 14px 30px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --btn-light-bg: linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(241, 228, 202, 0.94));
  --btn-light-bg-hover: linear-gradient(180deg, rgba(255, 252, 245, 1), rgba(246, 234, 210, 0.98));
  --btn-light-border: rgba(255, 244, 220, 0.76);
  --btn-light-shadow: 0 12px 28px rgba(255, 223, 157, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  --field-bg: linear-gradient(180deg, rgba(26, 28, 36, 0.94), rgba(17, 18, 25, 0.96));
  --field-bg-focus: linear-gradient(180deg, rgba(31, 34, 43, 0.98), rgba(20, 22, 30, 0.98));
  --field-border: rgba(255, 255, 255, 0.11);
  --field-border-focus: rgba(255, 232, 179, 0.34);
  --field-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --hero-offset-x: 0;
  --hero-offset-y: 0;
  --hero-depth: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top, #171922 0%, #0b0c0f 52%, #090a0d 100%);
  color: var(--text);
}

.hidden {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.app-shell {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 72px;
}

.top-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  position: relative;
  z-index: 3;
  padding: 6px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(20, 22, 30, 0.78), rgba(10, 11, 15, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(118%);
}

.top-actions::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.route-btn,
.primary-btn,
.ghost-btn,
.icon-btn,
.close-btn {
  border-radius: 999px;
}

.route-btn,
.ghost-btn,
.icon-btn,
.close-btn {
  padding: 11px 16px;
  color: var(--text);
  background: var(--btn-dark-bg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--btn-dark-shadow);
  font-weight: 600;
  backdrop-filter: blur(18px) saturate(118%);
}

.primary-btn {
  padding: 13px 18px;
  background: var(--btn-light-bg);
  color: #12141b;
  font-weight: 700;
  border: 1px solid var(--btn-light-border);
  box-shadow: var(--btn-light-shadow);
  backdrop-filter: blur(18px) saturate(118%);
}

.primary-btn.compact {
  padding: 11px 16px;
  border-radius: 999px;
}

.status-bar {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 20;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(245, 247, 251, 0.88);
  background:
    linear-gradient(180deg, rgba(19, 21, 29, 0.84), rgba(10, 11, 15, 0.78));
  border: 1px solid var(--border-strong);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(118%);
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0.96;
  overflow: hidden;
}

.status-bar::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: rgba(255, 235, 194, 0.88);
  box-shadow: 0 0 14px rgba(255, 222, 151, 0.38);
  vertical-align: middle;
}

.route-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.close-btn:hover,
.filter-chip:hover,
.stage-nav:hover {
  background: var(--btn-dark-bg-hover);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.primary-btn:hover {
  background: var(--btn-light-bg-hover);
  border-color: rgba(255, 248, 232, 0.92);
  box-shadow:
    0 16px 34px rgba(255, 223, 157, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.status-bar.error {
  color: #ffe3e1;
  background: linear-gradient(180deg, rgba(99, 34, 34, 0.92), rgba(55, 18, 18, 0.88));
  border-color: rgba(255, 151, 151, 0.28);
}

.status-bar.error::before {
  background: rgba(255, 164, 164, 0.96);
  box-shadow: 0 0 14px rgba(255, 110, 110, 0.42);
}

.status-bar.success {
  color: #eaffec;
  background: linear-gradient(180deg, rgba(37, 87, 53, 0.92), rgba(18, 52, 31, 0.88));
  border-color: rgba(138, 234, 172, 0.24);
}

.status-bar.success::before {
  background: rgba(160, 255, 191, 0.96);
  box-shadow: 0 0 14px rgba(122, 255, 169, 0.4);
}

.panel-tag,
.recipe-kicker,
.result-label {
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b8b90;
  font-size: 11px;
}

.single-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.featured-stage,
.carousel-section,
.library-panel,
.panel,
.modal-card {
  background: rgba(17, 18, 24, 0.78);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.featured-stage {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.stage-nav {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.featured-image {
  min-height: 620px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f3f3f5 0%, #ececef 100%);
  background-position: center;
  background-size: cover;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 8px 18px 0;
}

.featured-copy h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.featured-meta {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.featured-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.carousel-section,
.library-panel,
.panel {
  padding: 20px;
  border-radius: 24px;
}

.section-head,
.board-head,
.panel-header,
.modal-head,
.recipe-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.section-head h2,
.board-head h2,
.panel-header h2,
.result-card h3,
.detail-content h2,
.recipe-name {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.count-chip,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 13px;
  backdrop-filter: blur(16px);
}

.carousel-shell {
  overflow: hidden;
  margin-top: 18px;
  border-radius: 20px;
}

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 220px;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
}

.carousel-thumb {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.carousel-name {
  display: block;
  padding: 14px;
  font-size: 16px;
  color: var(--text);
}

.recipe-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.recipe-preview-btn {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.recipe-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #15161c;
}

.recipe-cover::before,
.recipe-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.recipe-cover::before {
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.02), rgba(8, 8, 10, 0.08) 42%, rgba(8, 8, 10, 0.4) 100%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 38%);
  z-index: 1;
}

.recipe-cover::after {
  background: linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, 0.18) 48%, transparent 72%);
  transform: translateX(-135%);
  opacity: 0;
  z-index: 2;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

.recipe-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 320ms ease;
}

.recipe-card:hover .recipe-thumb {
  transform: scale(1.06);
  filter: saturate(1.02) contrast(1.03);
}

.recipe-card:hover .recipe-cover::after {
  transform: translateX(120%);
  opacity: 0.88;
}

.recipe-body {
  display: grid;
  gap: 12px;
  padding: 18px 18px 12px;
}

.recipe-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.recipe-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 249, 233, 0.96);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.recipe-tag:hover,
.recipe-tag.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.recipe-tag[data-category="hotpot"] {
  background: linear-gradient(135deg, rgba(255, 153, 115, 0.26), rgba(255, 110, 85, 0.18));
}

.recipe-tag[data-category="staple"] {
  background: linear-gradient(135deg, rgba(255, 217, 139, 0.26), rgba(237, 181, 78, 0.16));
}

.recipe-tag[data-category="seafood"] {
  background: linear-gradient(135deg, rgba(109, 191, 255, 0.24), rgba(66, 141, 255, 0.16));
}

.recipe-tag[data-category="meat"] {
  background: linear-gradient(135deg, rgba(255, 126, 126, 0.24), rgba(191, 78, 78, 0.16));
}

.recipe-tag[data-category="vegetable"] {
  background: linear-gradient(135deg, rgba(145, 227, 170, 0.24), rgba(82, 178, 120, 0.16));
}

.recipe-tag[data-category="snack"] {
  background: linear-gradient(135deg, rgba(213, 166, 255, 0.24), rgba(155, 112, 230, 0.16));
}

.recipe-tag[data-category="chef"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(171, 179, 203, 0.14));
}

.recipe-name {
  transition: color 220ms ease, transform 220ms ease;
  font-size: 24px;
}

.recipe-snippet {
  margin: 0;
  min-height: 52px;
  color: rgba(245, 247, 251, 0.64);
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-footer {
  padding: 0 18px 18px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 14px;
}

.recipe-time,
.detail-time,
.selector-desc,
.selection-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.wheel-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
}

.selection-note {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  color: rgba(245, 247, 251, 0.76);
  background:
    linear-gradient(180deg, rgba(19, 21, 29, 0.76), rgba(10, 11, 15, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  padding-left: 18px;
}

.selection-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 228, 165, 0.94), rgba(255, 190, 92, 0.18));
}

.selector-grid {
  display: grid;
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.selector-item {
  display: grid;
  grid-template-columns: auto 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(25, 27, 35, 0.96), rgba(18, 19, 25, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.selector-item:hover,
.selector-item:focus-within {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.selector-checkbox {
  width: 22px;
  height: 22px;
  margin: 0;
  appearance: none;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(24, 25, 31, 0.94), rgba(15, 16, 22, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 18px rgba(0, 0, 0, 0.16);
  display: grid;
  place-items: center;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.selector-checkbox::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 248, 233, 1), rgba(247, 224, 182, 0.98));
  transform: scale(0.2);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.selector-checkbox:checked {
  border-color: rgba(255, 235, 194, 0.58);
  background: linear-gradient(180deg, rgba(114, 91, 52, 0.94), rgba(67, 52, 27, 0.96));
  box-shadow:
    0 0 0 4px rgba(255, 222, 151, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.selector-checkbox:checked::after {
  transform: scale(1);
  opacity: 1;
}

.selector-checkbox:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(255, 222, 151, 0.1),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.selector-thumb {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

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

.selector-name {
  font-size: 18px;
}

.wheel-panel {
  position: relative;
  overflow: hidden;
  background: rgba(17, 18, 24, 0.84);
}

.wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin: 12px 0 18px;
  isolation: isolate;
  transform-origin: center center;
}

.wheel-wrap::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 219, 134, 0.36) 0%, rgba(255, 219, 134, 0.12) 38%, rgba(255, 219, 134, 0) 74%);
  filter: blur(12px);
  z-index: 1;
  pointer-events: none;
}

.wheel-wrap::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%, rgba(0, 0, 0, 0.18) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -30px 60px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 1;
}

.wheel-wrap.spark-burst::before {
  animation: wheel-spark-burst 780ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wheel-wrap.ring-sweep::after {
  animation: wheel-ring-sweep 780ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wheel-hit-trail {
  position: absolute;
  inset: -20px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.wheel-hit-trail::before,
.wheel-hit-trail::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.wheel-hit-trail::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 230, 156, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 14%, rgba(255, 230, 156, 0.72) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 43% 12%, rgba(255, 198, 104, 0.72) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 64% 16%, rgba(255, 244, 206, 0.76) 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 37% 15%, rgba(255, 244, 206, 0.66) 0 1.2px, transparent 2.2px);
  filter: blur(0.4px);
}

.wheel-hit-trail::after {
  inset: 32px;
  background:
    conic-gradient(
      from -98deg,
      rgba(255, 232, 177, 0) 0deg,
      rgba(255, 232, 177, 0.74) 16deg,
      rgba(255, 210, 115, 0.38) 34deg,
      rgba(255, 210, 115, 0) 72deg,
      rgba(255, 232, 177, 0) 360deg
    );
  filter: blur(4px);
  transform: rotate(-8deg);
}

.wheel-hit-trail.is-active {
  animation: wheel-hit-trail 900ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 38px solid #fff4d0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 14px rgba(255, 219, 134, 0.78));
}

.wheel-pointer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -42px;
  width: 10px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 247, 220, 0.98), rgba(255, 212, 116, 0.82));
  box-shadow:
    0 0 12px rgba(255, 216, 122, 0.72),
    0 0 32px rgba(255, 216, 122, 0.38);
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -52px;
  width: 54px;
  height: 54px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 241, 193, 0.86) 0%, rgba(255, 223, 146, 0.34) 46%, rgba(255, 223, 146, 0) 76%);
  filter: blur(3px);
}

.wheel-pointer.is-hitting {
  animation: pointer-hit 460ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.wheel-center-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  min-width: 120px;
  max-width: 220px;
  padding: 12px 18px;
  text-align: center;
  color: #fff8e2;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(17, 18, 24, 0.72);
  border: 1px solid rgba(255, 229, 158, 0.28);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(255, 214, 118, 0.18);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.82);
}

.wheel-center-flash.is-active {
  animation: center-winner-float 1120ms cubic-bezier(0.22, 1, 0.36, 1);
}

#wheel-canvas {
  width: min(100%, 460px);
  height: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 26%, transparent 46%),
    radial-gradient(circle at center, rgba(253, 253, 254, 0.98), rgba(240, 242, 247, 0.98) 78%, rgba(210, 215, 225, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -10px 22px rgba(86, 92, 104, 0.16),
    0 26px 80px rgba(0, 0, 0, 0.22);
}

.wheel-actions,
.modal-actions,
.form-grid,
.board-actions {
  display: flex;
  gap: 12px;
}

.wheel-actions > * {
  flex: 1;
}

.result-card {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  transform-origin: center top;
}

.result-card::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at top, rgba(255, 224, 145, 0.24), rgba(255, 224, 145, 0) 58%);
  opacity: 0;
  transform: translateY(-6px) scale(0.92);
  pointer-events: none;
}

.result-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.2) 45%, transparent 66%);
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
}

.result-card h3 {
  margin: 0;
  font-size: 30px;
}

.result-card p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.result-card.is-winning {
  border-color: rgba(255, 224, 145, 0.28);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 224, 145, 0.1),
    0 0 34px rgba(255, 199, 92, 0.14);
}

.result-card.is-winning .result-label {
  color: rgba(255, 231, 170, 0.88);
}

.result-card.is-winning h3 {
  color: #fff7df;
  text-shadow: 0 0 18px rgba(255, 214, 118, 0.26);
}

.result-card.is-winning p:last-child {
  color: rgba(255, 244, 222, 0.82);
}

.result-card.pulse-reveal {
  animation: result-card-pop 820ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.result-card.pulse-reveal::before {
  animation: result-aura 900ms ease-out;
}

.result-card.pulse-reveal::after {
  animation: result-sheen 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.result-card.pulse-reveal .result-label,
.result-card.pulse-reveal h3,
.result-card.pulse-reveal p:last-child {
  animation: result-copy-rise 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wheel-wrap.hit-bounce {
  animation: wheel-hit-bounce 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes result-card-pop {
  0% {
    transform: translateY(14px) scale(0.96);
    filter: saturate(0.9);
  }
  46% {
    transform: translateY(-4px) scale(1.02);
    filter: saturate(1.08);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@keyframes result-aura {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.86);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0.28;
    transform: translateY(0) scale(1.08);
  }
}

@keyframes result-sheen {
  0% {
    opacity: 0;
    transform: translateX(-135%);
  }
  25% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateX(125%);
  }
}

@keyframes result-copy-rise {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pointer-hit {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 14px rgba(255, 219, 134, 0.78));
  }
  30% {
    transform: translateX(-50%) translateY(6px) scale(0.92);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 18px rgba(255, 219, 134, 0.92));
  }
  60% {
    transform: translateX(-50%) translateY(-2px) scale(1.04);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 14px rgba(255, 219, 134, 0.78));
  }
}

@keyframes wheel-hit-bounce {
  0% {
    transform: scale(1);
  }
  26% {
    transform: scale(0.985);
  }
  58% {
    transform: scale(1.012);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes center-winner-float {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.76);
    filter: blur(8px);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -54%) scale(1.04);
    filter: blur(0);
  }
  62% {
    opacity: 1;
    transform: translate(-50%, -72%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -104%) scale(0.92);
  }
}

@keyframes hero-film-fade {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
  }
}

@keyframes hero-film-sheen {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }
  28% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes hero-poster-shift {
  0% {
    transform: translate(-50%, -50%) scale(0.96);
    filter: blur(6px);
  }
  48% {
    transform: translate(-50%, -50%) scale(1.025);
    filter: blur(0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

@keyframes hero-copy-reveal {
  0% {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes wheel-spark-burst {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.7);
    filter: blur(16px);
  }
  22% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
    filter: blur(8px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.36);
    filter: blur(20px);
  }
}

@keyframes wheel-ring-sweep {
  0% {
    opacity: 0;
    transform: scale(0.92) rotate(0deg);
  }
  28% {
    opacity: 0.88;
  }
  100% {
    opacity: 0;
    transform: scale(1.08) rotate(22deg);
  }
}

@keyframes wheel-hit-trail {
  0% {
    opacity: 0;
    transform: scale(0.84) rotate(-8deg);
    filter: blur(4px);
  }
  22% {
    opacity: 1;
    transform: scale(1.02) rotate(2deg);
    filter: blur(0.5px);
  }
  68% {
    opacity: 0.86;
  }
  100% {
    opacity: 0;
    transform: scale(1.18) rotate(18deg);
    filter: blur(8px);
  }
}

.primary-btn {
  padding: 14px 18px;
  color: #12141b;
  font-weight: 700;
}

.ghost-btn,
.icon-btn,
.close-btn {
  padding: 11px 16px;
  color: var(--text);
}

.ghost-btn.small,
.icon-btn {
  padding: 10px 14px;
}

.close-btn.overlay {
  background: var(--btn-dark-bg);
  border-color: var(--border-strong);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 8, 10, 0.58);
  backdrop-filter: blur(18px);
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: min(960px, 100%);
  max-height: min(90vh, 980px);
  overflow: auto;
  border-radius: 22px;
  background: rgba(15, 16, 21, 0.94);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(255, 233, 180, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 18%);
  pointer-events: none;
}

.modal-card.large {
  padding: 28px;
}

.wheel-modal-card {
  width: min(1180px, 100%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.modal-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: clamp(88px, 16vw, 148px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 226, 164, 0.72), rgba(255, 226, 164, 0));
}

.modal-head-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.modal-head-copy .panel-tag {
  margin: 0;
  color: rgba(245, 247, 251, 0.48);
  letter-spacing: 0.16em;
}

.modal-head-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 650;
  color: #fbfcff;
  text-wrap: balance;
}

.detail-head-copy {
  gap: 10px;
  margin-bottom: 18px;
}

.detail-head-copy h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.detail-head-copy .detail-time {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(245, 247, 251, 0.72);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.close-btn.overlay {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.dish-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-form .form-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
}

.field span {
  color: rgba(245, 247, 251, 0.76);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 180ms ease, transform 180ms ease;
}

.field:focus-within span {
  color: rgba(255, 241, 209, 0.92);
  transform: translateX(1px);
}

.field input,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--text);
  box-shadow: var(--field-shadow);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    transform 180ms ease;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 247, 251, 0.34);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--field-bg-focus);
  border-color: var(--field-border-focus);
  box-shadow:
    0 0 0 4px rgba(255, 224, 156, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.field input[type="file"] {
  padding: 10px;
  color: rgba(245, 247, 251, 0.62);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(28, 30, 38, 0.95), rgba(18, 19, 26, 0.98));
}

.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  background: var(--btn-dark-bg);
  box-shadow: var(--btn-dark-shadow);
  cursor: pointer;
}

.field input[type="file"]::file-selector-button:hover {
  background: var(--btn-dark-bg-hover);
  border-color: rgba(255, 255, 255, 0.18);
}

.preview-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(29, 31, 39, 0.94), rgba(18, 19, 26, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.preview-image,
.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  background-color: #14161b;
}

.preview-image {
  aspect-ratio: 4 / 5;
  min-height: 180px;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.preview-image::after,
.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.12) 100%);
}

.preview-image.empty {
  display: grid;
  place-items: center;
  background: #15161c;
}

.preview-image.empty::after {
  display: none;
}

.preview-image span {
  position: relative;
  z-index: 1;
  color: var(--muted);
}

.preview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.preview-copy strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.preview-copy p {
  margin: 8px 0 0;
  max-width: 28ch;
  color: rgba(245, 247, 251, 0.6);
  line-height: 1.75;
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
}

.detail-cover {
  min-height: 640px;
}

.detail-content {
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 229, 170, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(18, 19, 26, 0.96), rgba(13, 14, 20, 0.98));
}

.detail-head-copy h2 {
  margin: 0;
}

.detail-block {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(28, 30, 38, 0.82), rgba(18, 19, 26, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.detail-block strong {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 244, 219, 0.96);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-block p {
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
  line-height: 1.8;
}

.empty-state {
  display: none;
  place-items: center;
  min-height: 220px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  text-align: center;
  background: rgba(19, 20, 26, 0.78);
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 22px;
}

.empty-state.visible {
  display: grid;
}

.library-panel.collapsed .recipe-grid,
.library-panel.collapsed .empty-state,
.library-panel.collapsed #collapse-library-btn {
  display: none;
}

.library-panel.collapsed {
  padding-bottom: 18px;
}

@media (max-width: 1100px) {
  .wheel-layout,
  .detail-layout,
  .featured-card,
  .modal-form .form-grid,
  .modal-form .form-grid.two-col {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    min-height: 360px;
  }

  .featured-image {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 16px;
  }

  .topbar,
  .recipe-board,
  .panel,
  .modal-card.large,
  .detail-content {
    padding: 18px;
  }

  .topbar,
  .top-actions,
  .featured-actions,
  .wheel-actions,
  .modal-actions,
  .modal-head,
  .board-actions,
  .section-head,
  .board-head,
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions > * {
    width: 100%;
  }

  .modal-head .close-btn,
  .board-actions > * {
    width: 100%;
  }

  .preview-card {
    grid-template-columns: 1fr;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .featured-stage {
    grid-template-columns: 1fr;
  }

  .stage-nav {
    display: none;
  }

  .featured-copy h1 {
    font-size: 38px;
  }

  .featured-image {
    min-height: 300px;
  }
}

:root {
  --accent-a: #8fb8ff;
  --accent-b: #6c84ff;
}

body {
  overflow-x: hidden;
}

.experience-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.status-bar {
  width: fit-content;
  min-width: 240px;
}

.featured-stage {
  display: block;
  min-height: 86vh;
  width: 100%;
  margin-left: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-carousel {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(circle at top, rgba(110, 130, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #0f1117 0%, #0a0b10 100%);
  box-shadow:
    0 30px 90px rgba(17, 17, 17, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --hero-offset-x: 0;
  --hero-offset-y: 0;
  --hero-depth: 0;
}

.hero-carousel::before,
.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.hero-carousel::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.42)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.05));
}

.hero-carousel::after {
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.18) 48%, transparent 74%);
  transform: translateX(-120%);
}

.hero-carousel.is-switching::before {
  animation: hero-film-fade 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-carousel.is-switching::after {
  animation: hero-film-sheen 960ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-carousel.is-switching .hero-slide-poster {
  animation: hero-poster-shift 860ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-carousel.is-switching .hero-copy h2,
.hero-carousel.is-switching .featured-copy h2,
.hero-carousel.is-switching .featured-meta,
.hero-carousel.is-switching .featured-eyebrow,
.hero-carousel.is-switching .featured-actions {
  animation: hero-copy-reveal 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 86vh;
  perspective: 1200px;
  pointer-events: none;
}

.hero-slide-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: translate(calc(var(--hero-offset-x) * -26px), calc(var(--hero-offset-y) * -18px)) scale(1.22);
  filter: blur(30px) saturate(0.92);
  opacity: 0.72;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), filter 380ms ease;
}

.hero-slide-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.34), rgba(8, 8, 10, 0.48) 26%, rgba(8, 8, 10, 0.84) 100%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 36%);
}

.hero-slide.empty .hero-slide-image {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #1a1a1d, #29292d);
}

.hero-slide-poster {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(34vw, 420px);
  height: min(62vh, 560px);
  max-width: calc(100vw - 64px);
  max-height: calc(100% - 160px);
  transform:
    translate(
      calc(-50% + var(--hero-offset-x) * 18px),
      calc(-50% + var(--hero-offset-y) * 12px)
    )
    scale(calc(1 + var(--hero-depth) * 0.045));
  border-radius: 32px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
  pointer-events: none;
}

.hero-slide-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.16));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  pointer-events: auto;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  z-index: 3;
}

.hero-topline .count-chip,
.ghost-btn.light {
  color: #ffffff;
  background: var(--btn-dark-bg);
  border-color: var(--border-strong);
  backdrop-filter: blur(22px);
}

.hero-topline .count-chip {
  min-height: 42px;
  padding: 10px 16px;
  background:
    linear-gradient(180deg, rgba(19, 21, 28, 0.8), rgba(10, 11, 15, 0.66));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.top-actions .route-btn,
.top-actions .primary-btn.compact {
  position: relative;
  min-height: 42px;
  padding: 11px 15px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.01em;
  box-shadow: none;
}

.top-actions .route-btn {
  color: rgba(255, 255, 255, 0.84);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.top-actions .route-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.top-actions .primary-btn.compact {
  padding-inline: 17px;
  box-shadow: 0 10px 24px rgba(255, 223, 157, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.hero-copy,
.featured-copy {
  max-width: 700px;
  padding: 0;
  padding-left: 24px;
  padding-bottom: 24px;
  position: relative;
  z-index: 3;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.featured-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.featured-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(245, 247, 251, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.featured-category {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 248, 233, 0.96);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.08em;
  font-size: 12px;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.featured-category[data-category="hotpot"] {
  background: linear-gradient(135deg, rgba(255, 153, 115, 0.28), rgba(255, 110, 85, 0.18));
}

.featured-category[data-category="staple"] {
  background: linear-gradient(135deg, rgba(255, 217, 139, 0.28), rgba(237, 181, 78, 0.18));
}

.featured-category[data-category="seafood"] {
  background: linear-gradient(135deg, rgba(109, 191, 255, 0.26), rgba(66, 141, 255, 0.18));
}

.featured-category[data-category="meat"] {
  background: linear-gradient(135deg, rgba(255, 126, 126, 0.26), rgba(191, 78, 78, 0.18));
}

.featured-category[data-category="vegetable"] {
  background: linear-gradient(135deg, rgba(145, 227, 170, 0.26), rgba(82, 178, 120, 0.18));
}

.featured-category[data-category="snack"] {
  background: linear-gradient(135deg, rgba(213, 166, 255, 0.26), rgba(155, 112, 230, 0.18));
}

.featured-category[data-category="chef"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(171, 179, 203, 0.14));
}

.hero-copy h2,
.featured-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(52px, 7vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 600;
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
}

.featured-meta {
  max-width: 560px;
  margin: 0;
  padding-left: 16px;
  color: rgba(245, 247, 251, 0.76);
  font-size: 16px;
  line-height: 1.8;
  border-left: 1px solid rgba(255, 228, 168, 0.34);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.stage-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  position: relative;
  z-index: 3;
}

.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 247, 232, 0.92);
  background: var(--btn-dark-bg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--btn-dark-shadow);
  backdrop-filter: blur(18px) saturate(118%);
}

.filter-chip.is-active {
  color: #12141b;
  background: var(--btn-light-bg);
  border-color: var(--btn-light-border);
  box-shadow: var(--btn-light-shadow);
}

.stage-nav {
  width: 56px;
  height: 56px;
  color: #ffffff;
  background: var(--btn-dark-bg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--btn-dark-shadow);
  backdrop-filter: blur(22px);
}

.scenic-library {
  width: min(1240px, 100%);
  background:
    radial-gradient(circle at top left, rgba(121, 144, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(18, 19, 26, 0.96), rgba(12, 13, 18, 0.98));
}

.scenic-library .recipe-grid {
  margin-top: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.scenic-library .modal-head {
  align-items: center;
}

.recipe-card,
.selector-item,
.result-card,
.selection-note,
.preview-card,
.field input,
.field textarea,
.modal-card,
.panel,
.count-chip,
.ghost-btn,
.route-btn,
.primary-btn,
.icon-btn,
.close-btn {
  border-radius: 20px;
}

.recipe-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(29, 31, 39, 0.96), rgba(16, 17, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.recipe-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%, rgba(255, 255, 255, 0.02) 100%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.recipe-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.recipe-card:hover::before {
  opacity: 1;
}

.recipe-card:hover .recipe-name {
  color: rgba(255, 248, 233, 0.98);
  transform: translateY(-1px);
}

.primary-btn.compact,
.top-actions,
.count-chip,
.pill,
.status-bar {
  border-radius: 999px;
}

@media (max-width: 1180px) {
  .featured-stage {
    min-height: auto;
  }

  .hero-carousel,
  .hero-slide {
    min-height: 74vh;
  }

  .hero-slide-poster {
    width: min(42vw, 380px);
    height: min(56vh, 500px);
  }
}

@media (max-width: 760px) {
  .featured-stage {
    min-height: 100svh;
  }

  .hero-carousel,
  .hero-slide {
    min-height: 100svh;
  }

  .modal-backdrop {
    place-items: end center;
    padding: 0;
  }

  .hero-overlay {
    padding:
      calc(14px + env(safe-area-inset-top))
      14px
      calc(16px + env(safe-area-inset-bottom) + 72px);
  }

  .modal-card,
  .wheel-modal-card,
  .scenic-library,
  .detail-layout {
    width: 100%;
    max-width: none;
    max-height: 100svh;
    border-radius: 24px 24px 0 0;
  }

  .modal-card.large,
  .panel,
  .detail-content {
    padding: 16px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    min-height: 34vh;
    max-height: 42vh;
  }

  .close-btn.overlay {
    top: 12px;
    right: 12px;
  }

  .modal-head {
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .modal-head-copy h2 {
    font-size: clamp(24px, 7.8vw, 32px);
  }

  .board-actions,
  .modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-actions .close-btn {
    grid-column: 1 / -1;
  }

  .hero-topline,
  .stage-controls {
    align-items: stretch;
  }

  .hero-topline {
    flex-direction: column;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }

  .top-actions .route-btn,
  .top-actions .primary-btn.compact,
  .featured-actions .primary-btn,
  .modal-actions > *,
  .board-actions > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .top-actions .route-btn,
  .top-actions .primary-btn.compact {
    min-height: 44px;
    padding: 10px 8px;
    font-size: 12px;
  }

  .count-chip {
    width: fit-content;
  }

  .hero-copy,
  .featured-copy {
    max-width: none;
    padding-left: 0;
    padding-bottom: 8px;
    gap: 12px;
  }

  .featured-eyebrow {
    gap: 8px;
  }

  .featured-kicker,
  .featured-category {
    min-height: 30px;
    padding: 6px 10px;
  }

  .hero-copy h2,
  .featured-copy h2 {
    font-size: clamp(34px, 10vw, 52px);
    line-height: 0.95;
  }

  .featured-meta {
    max-width: none;
    font-size: 15px;
    line-height: 1.65;
    padding-left: 12px;
  }

  .hero-slide-poster {
    top: 38%;
    width: min(70vw, 300px);
    height: min(42vh, 360px);
    border-radius: 24px;
  }

  .featured-actions {
    width: 100%;
  }

  .featured-actions .primary-btn {
    width: 100%;
  }

  .stage-controls {
    justify-content: flex-end;
    gap: 8px;
  }

  .stage-nav {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .field input,
  .field textarea {
    font-size: 16px;
  }

  .preview-card {
    gap: 14px;
  }

  .preview-image {
    aspect-ratio: 5 / 4;
  }

  .preview-copy p {
    max-width: none;
  }

  .wheel-layout {
    gap: 12px;
  }

  .wheel-wrap {
    margin: 8px 0 14px;
  }

  #wheel-canvas {
    width: min(100%, 320px);
  }

  .wheel-center-flash {
    max-width: 170px;
    font-size: 16px;
    padding: 10px 14px;
  }

  .result-card h3 {
    font-size: 26px;
  }

  .selector-grid {
    max-height: 36svh;
  }

  .library-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-right: -4px;
    scrollbar-width: none;
  }

  .library-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .scenic-library .recipe-grid {
    grid-template-columns: 1fr;
  }

  .status-bar {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .hero-overlay {
    padding:
      calc(12px + env(safe-area-inset-top))
      12px
      calc(14px + env(safe-area-inset-bottom) + 72px);
  }

  .top-actions .route-btn,
  .top-actions .primary-btn.compact {
    padding: 10px 6px;
    font-size: 11px;
  }

  .hero-slide-poster {
    top: 35%;
    width: min(76vw, 280px);
    height: min(36vh, 300px);
  }

  .hero-copy h2,
  .featured-copy h2 {
    font-size: clamp(30px, 11vw, 42px);
  }

  .featured-meta {
    font-size: 14px;
  }

  .board-actions,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .board-actions .close-btn {
    grid-column: auto;
  }

  .selector-item {
    grid-template-columns: auto 56px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .selector-thumb {
    width: 56px;
    height: 56px;
  }

  .selector-name {
    font-size: 16px;
  }

  .result-card h3 {
    font-size: 22px;
  }

  .detail-content {
    padding: 16px 14px 20px;
  }
}
