:root {
  --cabinet: #1a0f16;
  --panel: #2b1622;
  --gold: #e8c36a;
  --gold-deep: #b8862b;
  --hold: #3d1c28;
  --hold-on: #c45c2a;
  --play: #d62839;
  --play-hover: #f03a4c;
  --text: #fff6e8;
  --muted: #d4bba8;
  --window: #0d080a;
  --cell: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, #4a2233 0%, transparent 55%),
    #12080c;
}

.site-nav,
.site-footer {
  width: 100%;
  background: #1a0f16;
  border-color: var(--gold-deep);
}

.site-nav {
  border-bottom: 2px solid var(--gold-deep);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-nav-inner,
.site-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Bungee, Impact, sans-serif;
  color: var(--gold);
  text-decoration: none;
  font-size: 1.9rem;
  line-height: 1;
}

.site-logo img {
  display: block;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--gold-deep);
  background: #12080c;
}

.site-logo-word {
  letter-spacing: 0.02em;
  line-height: 1;
}

.site-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.site-menu a,
.site-footer a,
.text-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.site-menu a[aria-current="page"],
.site-menu a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--gold);
}

.nav-login,
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-login {
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  color: var(--gold);
  background: #0d080a;
  box-shadow:
    0 0 10px rgba(232, 195, 106, 0.55),
    0 0 22px rgba(232, 195, 106, 0.35);
  animation: login-glow-pulse 1.8s ease-in-out infinite;
}

.nav-login:hover,
.nav-login:focus-visible {
  color: var(--gold);
  border-color: #f3d78a;
  background: #12080c;
}

@keyframes login-glow-pulse {
  0%,
  100% {
    box-shadow:
      0 0 8px rgba(232, 195, 106, 0.45),
      0 0 18px rgba(232, 195, 106, 0.25);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 16px rgba(232, 195, 106, 0.9),
      0 0 34px rgba(232, 195, 106, 0.55);
    transform: scale(1.04);
  }
}

.nav-flyout {
  position: relative;
}

.nav-flyout > a {
  position: relative;
  z-index: 41;
}

.nav-flyout-menu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 14rem;
  padding: 10px 0 8px;
  border-radius: 12px;
  background: #1a0f16;
  border: 2px solid var(--gold-deep);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  z-index: 40;
}

/* Invisible bridge fills the gap so the mouse doesn't leave the hover zone */
.nav-flyout-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-flyout:hover .nav-flyout-menu,
.nav-flyout:focus-within .nav-flyout-menu,
.nav-flyout.flyout-open .nav-flyout-menu {
  display: flex;
  flex-direction: column;
}

.nav-flyout-menu a,
.nav-flyout-empty {
  display: block;
  padding: 8px 14px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-flyout-menu a:hover {
  color: var(--gold);
  background: #2a151c;
}

.nav-flyout-empty {
  color: var(--muted);
  font-weight: 500;
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a151c;
}

.nav-avatar.large {
  width: 64px;
  height: 64px;
}

.nav-account-name {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.nav-logout {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.sso-stack {
  display: grid;
  gap: 12px;
  max-width: 22rem;
  margin: 8px 0 0;
}

.sso-btn {
  appearance: none;
  border: 2px solid var(--gold-deep);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sso-btn.google {
  color: #1a0f16;
  background: var(--text);
}

.sso-btn.apple {
  color: var(--text);
  background: #111;
  border-color: #111;
}

.google-button-host:empty {
  display: none;
}

.origin-hint {
  margin: 10px 0 0;
  max-width: 22rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.origin-hint code {
  color: var(--gold);
}

.login-setup {
  margin-top: 28px;
  padding-top: 8px;
}

.login-setup-list {
  color: var(--muted);
  padding-left: 1.2em;
}

.login-setup-list li + li {
  margin-top: 10px;
}

.signed-in-panel {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.signed-in-panel[hidden],
#signed-out-panel[hidden],
.login-setup[hidden] {
  display: none;
}

.signed-in-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: var(--hold);
  cursor: pointer;
}

.site-footer {
  border-top: 2px solid var(--gold-deep);
  margin-top: auto;
}

.site-footer-inner {
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.site-main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
}

.page-panel {
  width: min(1180px, 100%);
  padding: 28px 24px 32px;
  border-radius: 22px;
  background: linear-gradient(180deg, #3a1f2c 0%, var(--cabinet) 100%);
  border: 4px solid var(--gold-deep);
  box-shadow: 0 0 0 6px #5c3a1a;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.page-heading .recipe-page-actions {
  flex: 0 1 auto;
  margin: 0;
}

.page-heading .recipe-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.page-panel h1,
.menu-panel h1 {
  margin: 0 0 12px;
  font-family: Bungee, Impact, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--gold);
}

.page-heading h1 {
  margin: 0;
}

.subhead {
  margin: 28px 0 12px;
  font-size: 1.1rem;
  color: var(--gold);
}

.prose p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 42rem;
}

.casino-lede {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 38rem;
}

.casino-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.casino-game {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 100%;
  padding: 20px 22px 22px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, #4a2233 0%, #1c1014 72%);
  border: 3px solid var(--gold-deep);
  box-shadow: inset 0 0 0 1px rgba(232, 195, 106, 0.22);
}

.casino-game:hover,
.casino-game:focus-visible {
  border-color: var(--gold);
  color: var(--text);
}

.casino-game h2 {
  margin: 0;
  font-family: Bungee, Impact, sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--gold);
}

.casino-game p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.casino-game-kicker {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.casino-game .recipe-btn {
  margin-top: auto;
  pointer-events: none;
}

#early-access-form .casino-game .recipe-btn {
  pointer-events: auto;
}

.early-access-input {
  width: 100%;
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid var(--gold-deep);
  background: #1c1014;
  color: var(--text);
  font: inherit;
}

.casino-game-art {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 92px;
  margin: 0 0 6px;
  padding: 10px;
  border-radius: 14px;
  background: #0d080a;
  border: 2px solid var(--gold-deep);
}

.casino-game-art.fruit span {
  flex: 1;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      180deg,
      #7a2a3a 0 14px,
      #e8c36a 14px 18px,
      #2b1622 18px 32px,
      #c45c2a 32px 36px
    );
  box-shadow: inset 0 0 0 1px rgba(232, 195, 106, 0.35);
}

.casino-game-art.wheel {
  align-items: center;
}

.casino-game-art.wheel span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background:
    conic-gradient(
      #7a2a3a 0 45deg,
      #e8c36a 45deg 90deg,
      #2b1622 90deg 135deg,
      #c45c2a 135deg 180deg,
      #7a2a3a 180deg 225deg,
      #e8c36a 225deg 270deg,
      #2b1622 270deg 315deg,
      #c45c2a 315deg 360deg
    );
  box-shadow: 0 0 0 3px #5c3a1a, inset 0 0 0 8px #12080c;
  position: relative;
}

.casino-game-art.planner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.casino-game-art.planner span {
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      #2b1622 0 18%,
      #e8c36a 18% 22%,
      #7a2a3a 22% 40%,
      #2b1622 40% 58%,
      #c45c2a 58% 62%,
      #2b1622 62% 100%
    );
  box-shadow: inset 0 0 0 1px rgba(232, 195, 106, 0.35);
}

.casino-game-art.list {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  padding: 18px 22px;
}

.casino-game-art.list span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0 18px, #2b1622 18px 22px, #d4bba8 22px 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 195, 106, 0.25);
}

.casino-game-art.list span:nth-child(2) {
  width: 86%;
}

.casino-game-art.list span:nth-child(3) {
  width: 72%;
}

.week-nav-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.shopping-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 8px;
  align-items: start;
}

.shopping-columns:has(#chef-column:not([hidden])) {
  grid-template-columns: 1fr 1fr;
}

.shopping-column .subhead {
  margin: 18px 0 10px;
}

.shopping-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.shopping-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--gold-deep);
  background: #12080c;
  cursor: pointer;
}

.shopping-heading {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: 12px;
  border: 2px solid var(--gold);
  background: #12080c;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.shopping-heading:first-child {
  margin-top: 0;
}

.shopping-item input {
  margin-top: 3px;
  accent-color: var(--gold);
}

.shopping-item.checked span {
  color: var(--muted);
  text-decoration: line-through;
}

.shopping-qty {
  color: var(--gold);
  font-weight: 700;
}

.shopping-empty {
  color: var(--muted);
  line-height: 1.5;
}

.shopping-empty a {
  color: var(--gold);
}

button.casino-game {
  appearance: none;
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.casino-game-art.google span {
  flex: 1;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(232, 195, 106, 0.35);
}

.casino-game-art.google span:nth-child(1) {
  background: #4285f4;
}

.casino-game-art.google span:nth-child(2) {
  background: #ea4335;
}

.casino-game-art.google span:nth-child(3) {
  background: #fbbc05;
}

.casino-game-art.google span:nth-child(4) {
  background: #34a853;
}

.casino-game-art.apple {
  align-items: center;
}

.casino-game-art.apple span {
  width: 36px;
  height: 44px;
  position: relative;
  background: var(--text);
  border-radius: 38% 38% 46% 46%;
}

.casino-game-art.apple span::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 18px;
  width: 12px;
  height: 10px;
  background: var(--text);
  border-radius: 0 10px 0 10px;
  transform: rotate(28deg);
}

.casino-game-art.apple span::after {
  content: "";
  position: absolute;
  top: 10px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0d080a;
}

.casino-game-art.login-continue,
.casino-game-art.login-cashout {
  align-items: center;
  position: relative;
}

.login-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  z-index: 1;
}

.login-avatar[hidden] + span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, var(--gold) 0 10px, transparent 11px),
    radial-gradient(circle at 50% 78%, var(--gold) 0 18px, transparent 19px),
    #2b1622;
  box-shadow: 0 0 0 3px #5c3a1a;
}

.login-avatar:not([hidden]) + span {
  display: none;
}

.casino-game-art.login-cashout span {
  width: 72px;
  height: 44px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      #7a2a3a 0 12px,
      #e8c36a 12px 16px,
      #2b1622 16px 28px,
      #c45c2a 28px 32px
    );
  box-shadow: inset 0 0 0 2px var(--gold-deep);
}

.signed-in-panel {
  display: block;
}

.signed-in-panel[hidden] {
  display: none;
}

.origin-hint {
  margin: 16px 0 0;
  max-width: 42rem;
}

@media (max-width: 720px) {
  .casino-games {
    grid-template-columns: 1fr;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.price-card {
  padding: 20px;
  border-radius: 16px;
  background: #12080c;
  border: 2px solid var(--gold-deep);
}

.price-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(232, 195, 106, 0.35);
}

.price-card h2 {
  margin: 0;
  color: var(--gold);
}

.price {
  margin: 10px 0 14px;
  font-family: Bungee, Impact, sans-serif;
  font-size: 1.8rem;
  color: var(--text);
}

.price span {
  font-size: 0.9rem;
  color: var(--muted);
}

.price-card ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 32rem;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--gold-deep);
  background: #12080c;
  color: var(--text);
  font: inherit;
}

.contact-form button {
  appearance: none;
  border: 0;
  justify-self: start;
  padding: 12px 20px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a0f16;
  background: var(--gold);
  cursor: pointer;
}

.recipe-library {
  display: block;
}

.recipe-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.recipe-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 0 10px;
  border-radius: 16px;
  background: #12080c;
  border: 2px solid var(--gold);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.recipe-summary-add {
  justify-content: flex-start;
  border-style: dashed;
}

.recipe-summary-add .add-recipe-art,
.plan-slot-add .add-recipe-art {
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 700;
  color: var(--gold);
}

.recipe-summary-add h3 {
  text-align: center;
}

.recipe-summary-add .recipe-desc {
  text-align: center;
}

.recipe-summary:hover,
.recipe-summary:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}

.recipe-summary:not(.recipe-summary-add):not(.recipe-summary-signin)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.recipe-summary-image {
  display: block;
  width: 100%;
  height: 98px;
  object-fit: cover;
  background: #1c1014;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.recipe-summary-image.placeholder {
  background:
    linear-gradient(160deg, #2a151c 0%, #1c1014 100%);
}

.recipe-summary-media {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.recipe-summary-media .recipe-summary-image {
  height: 123px;
}

.recipe-summary-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.recipe-summary h3 {
  margin: 12px 12px 6px;
  font-size: 1.05rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-summary-media h3 {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  z-index: 2;
  margin: 0;
  padding: 20px 20px 18px 12px;
  font-size: 1.26rem;
  text-align: left;
  color: #fff8e8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 18px rgba(0, 0, 0, 0.6);
}

.recipe-summary .star-rating {
  margin: 6px 12px 4px;
}

.recipe-summary .star-rating.static .star {
  font-size: 1rem;
}

.recipe-summary-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recipe-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.recipe-meta-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--gold);
}

.recipe-summary-signin {
  border-style: dashed;
}
.recipe-summary-signin .recipe-desc {
  margin: 10px 12px 0;
}

.recipe-summary .recipe-desc {
  margin: 0 12px;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.star-rating.static {
  pointer-events: none;
}

.star-rating.static .star {
  cursor: default;
  font-size: 1.25rem;
}

.star-rating.static:hover .star {
  color: #5c4638;
}

.star-rating.static:hover .star.on {
  color: var(--gold);
}

#detail-view:not([hidden]) .recipe-detail {
  margin-top: 0;
}

.recipe-composer {
  margin: 0 0 22px;
  padding: 16px 16px 18px;
  border-radius: 16px;
  border: 2px solid var(--gold-deep);
  background: #12080c;
}

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.composer-toolbar .subhead {
  margin: 0;
}

.add-recipe-choice {
  width: min(640px, calc(100% - 24px));
}

.add-recipe-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.add-recipe-options .recipe-summary {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

@media (max-width: 520px) {
  .add-recipe-options {
    grid-template-columns: 1fr;
  }
}

.recipe-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.recipe-search input[type="search"],
.recipe-search select {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--gold-deep);
  background: #12080c;
  color: var(--text);
  font: inherit;
}

.recipe-search input[type="search"] {
  flex: 1 1 220px;
}

.recipe-search select {
  flex: 0 1 180px;
  min-width: 148px;
}

.meal-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.cuisine-filter {
  margin: 0 0 16px;
}

.meal-tag.cuisine {
  text-transform: none;
  letter-spacing: 0.02em;
}

.filter-chip,
.recipe-btn {
  appearance: none;
  border: 2px solid var(--gold-deep);
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--text);
  background: #12080c;
  cursor: pointer;
}

.filter-chip.on,
.recipe-btn.primary {
  border-color: var(--gold);
  color: #1a0f16;
  background: var(--gold);
}

.recipe-btn.danger {
  border-color: #c42332;
  background: #c42332;
  color: #fff;
}

.recipe-btn.danger:hover,
.recipe-btn.danger:focus-visible {
  border-color: #e84a57;
  background: #e84a57;
  color: #fff;
}

.recipe-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.recipe-form-shell .recipe-actions {
  margin: 40px -18px -18px;
  padding: 24px 18px;
  background: color-mix(in srgb, var(--gold-deep) 28%, #0a0508);
  border-top: 1px solid color-mix(in srgb, var(--gold-deep) 55%, transparent);
  border-radius: 0 0 14px 14px;
}

.recipe-form-shell .recipe-actions-start {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-right: auto;
}

.recipe-field.recipe-chefs-log-group[hidden] {
  display: none;
}

.recipe-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 16px;
}

.recipe-footer .recipe-source {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}

.recipe-footer .recipe-actions {
  margin: 0;
  flex: 0 0 auto;
}

.recipe-btn {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.meal-tags.empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.meal-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #2a151c;
  border: 1px solid var(--gold-deep);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meal-type-fieldset {
  border: 2px solid var(--gold-deep);
  border-radius: 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
}

.meal-type-fieldset legend {
  padding: 0 6px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meal-type-fieldset.diet .meal-type-option {
  text-transform: none;
}

.pill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-option {
  display: inline-flex;
  cursor: pointer;
  margin: 0;
}

.pill-option span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #2a151c;
  border: 1px solid var(--gold-deep);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

.pill-fieldset.diet .pill-option span {
  text-transform: none;
  letter-spacing: 0.03em;
}

.pill-option input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a0f16;
}

.pill-option input:focus-visible + span {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.recipe-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.recipe-tag-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "meal diet"
    "cuisine diet";
  gap: 12px;
  align-items: stretch;
  margin: 0 0 12px;
}

.recipe-tag-meal {
  grid-area: meal;
}

.recipe-tag-diet {
  grid-area: diet;
}

.recipe-tag-cuisine {
  grid-area: cuisine;
}

.recipe-tag-row > .meal-type-fieldset {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.recipe-tag-row .recipe-category-pills {
  flex: 1;
  align-items: flex-start;
  align-content: flex-start;
}

.recipe-nutrition-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 0 0 12px;
}

.recipe-nutrition-block > .recipe-field {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.recipe-nutrition-block > .recipe-field textarea {
  flex: 1;
  min-height: 0;
  width: 100%;
  resize: vertical;
}

.recipe-nutrition-macros {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.recipe-nutrition-macros .recipe-field {
  margin: 0;
}

.recipe-clean-fieldset {
  gap: 12px;
  margin: 0;
  min-width: 0;
}

.recipe-kitchen-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 0;
}

.recipe-chefs-log-group {
  padding: 14px 12px 12px;
}

.recipe-chefs-log-group > .recipe-kitchen-row {
  margin: 0;
}

.recipe-kitchen-row > .recipe-field {
  margin: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #12080c;
}

.recipe-kitchen-row .recipe-status-log {
  flex: 1;
  margin: 0;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.recipe-kitchen-row .clean-flags {
  flex: 1;
}

@media (min-width: 800px) {
  .recipe-kitchen-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  }
}

.clean-flags {
  display: grid;
  gap: 8px;
}

.clean-flag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.clean-flag input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.clean-flag.on {
  color: var(--gold);
}

@media (min-width: 800px) {
  .recipe-meta-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.recipe-field select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid var(--gold-deep);
  background: #1c1014;
  color: var(--text);
  font: inherit;
}

.meal-tag.diet {
  border-style: dashed;
}

.recipe-title-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.recipe-title-row .recipe-field {
  min-width: 0;
  margin-bottom: 12px;
}

.recipe-rating-fieldset {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.rating-badge {
  appearance: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.rating-badge:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.rating-badge-number {
  font-family: Bungee, Impact, sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 400;
  line-height: 1;
}

.rating-badge-star {
  font-size: 1.35rem;
  line-height: 1;
}

.rating-picker {
  width: min(420px, calc(100% - 24px));
  padding-bottom: 32px;
}

.rating-picker-stars {
  justify-content: center;
  margin: 18px 0 8px;
}

.rating-picker-stars .star {
  font-size: 1.7rem;
}

.gauge-badge {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.gauge-badge:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.gauge-badge-value {
  font-family: Bungee, Impact, sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.gauge-picker {
  width: min(420px, calc(100% - 24px));
  padding-bottom: 32px;
}

.gauge-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0 4px;
}

.clock-face {
  position: relative;
  width: min(260px, 100%);
}

.gauge-svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.clock-bezel {
  stroke: var(--gold-deep);
}

.clock-dial {
  fill: #1c1014;
  stroke: var(--gold);
  stroke-width: 3;
}

.clock-ring {
  stroke: rgba(232, 195, 106, 0.28);
}

.clock-progress {
  stroke: var(--gold);
  stroke-linecap: round;
}

.clock-ticks line {
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
}

.clock-num {
  fill: var(--gold);
  font-family: Bungee, Impact, sans-serif;
  font-size: 14px;
}

.gauge-needle line {
  stroke: var(--gold);
  stroke-linecap: round;
}

.gauge-needle circle {
  fill: var(--gold);
  stroke: #1a0f16;
  stroke-width: 2;
}

.gauge-readout {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 58%;
  margin: 0;
  color: var(--gold);
  font-family: Bungee, Impact, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.gauge-slider {
  display: block;
  width: min(260px, 100%);
  margin: 36px auto 0;
  accent-color: var(--gold);
}

.people-face {
  width: min(280px, 100%);
  text-align: center;
}

.people-count {
  margin: 0;
  color: var(--gold);
  font-family: Bungee, Impact, sans-serif;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 400;
  line-height: 0.95;
}

.people-caption {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: Bungee, Impact, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px 6px;
}

.person-icon {
  display: flex;
  color: #3a222b;
}

.person-icon svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}

.person-icon.on {
  color: var(--gold);
}

.gauge-picker-people .gauge-slider {
  margin-top: 22px;
}

.recipe-field {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  font-weight: 600;
}

fieldset.recipe-field {
  min-width: 0;
}

.recipe-field.recipe-chefs-log-group {
  margin: 40px 0 0;
  border-style: dashed;
  background-color: transparent;
  background-image: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--gold-deep) 50%, transparent) 0 2px,
    transparent 2px 8px
  );
}

.recipe-field.recipe-rating-fieldset,
.recipe-field.recipe-gauge-fieldset {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.recipe-field > input,
.recipe-field > textarea,
.recipe-field > select {
  width: 100%;
  min-width: 0;
}

.recipe-columns {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 18px;
  align-items: start;
}

.recipe-columns .recipe-field {
  margin: 0 0 12px;
  min-width: 0;
}

.recipe-columns textarea {
  width: 100%;
  resize: vertical;
}

.recipe-columns h4 {
  margin-top: 0;
}

.recipe-notes {
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
}

.recipe-field input,
.recipe-field textarea,
.recipe-field select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid var(--gold-deep);
  background: #1c1014;
  color: var(--text);
  font: inherit;
}

.recipe-field textarea {
  line-height: 1.7;
}

.cabinet {
  width: min(1180px, 100%);
  padding: 22px 16px 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, #3a1f2c 0%, var(--cabinet) 38%, #12080c 100%);
  border: 6px solid var(--gold-deep);
  box-shadow:
    0 0 0 8px #5c3a1a,
    0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}

h1 {
  margin: 0;
  font-family: Bungee, Impact, sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--gold);
  text-shadow: 0 3px 0 #5c3a1a;
}

.window {
  padding: 18px 14px 12px;
  border-radius: 18px;
  background: var(--window);
  border: 3px solid var(--gold);
  box-shadow: inset 0 12px 30px rgba(0, 0, 0, 0.55);
  overflow-x: auto;
}

.reels {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.reel-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.reel-col.dragging {
  opacity: 0.42;
}

.reels.reordering {
  cursor: grabbing;
}

.reel-label {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: grab;
  user-select: none;
  touch-action: none;
  -webkit-user-drag: element;
}

.reel-col.dragging .reel-label,
.reels.reordering .reel-label {
  cursor: grabbing;
}

.reel-col--fixed .reel-label {
  cursor: default;
  -webkit-user-drag: none;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: normal;
}

.reels.reordering .reel-col--fixed .reel-label {
  cursor: default;
}

.reel {
  height: calc(var(--cell) * 3);
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(#fff, #f3e6d4);
  position: relative;
  box-shadow: inset 0 0 0 2px #c9a56a;
}

.reel::before,
.reel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--cell);
  z-index: 2;
  pointer-events: none;
}

.reel::before {
  top: 0;
  background: linear-gradient(rgba(13, 8, 10, 0.55), transparent);
}

.reel::after {
  bottom: 0;
  background: linear-gradient(transparent, rgba(13, 8, 10, 0.55));
}

.payline {
  position: absolute;
  top: var(--cell);
  left: 0;
  right: 0;
  height: var(--cell);
  z-index: 3;
  pointer-events: none;
  border-top: 2px solid rgba(232, 195, 106, 0.85);
  border-bottom: 2px solid rgba(232, 195, 106, 0.85);
}

.window.jackpot-win .payline {
  border-top-width: 4px;
  border-bottom-width: 4px;
  border-color: #fff4c4;
  box-shadow:
    0 0 18px rgba(255, 224, 138, 0.95),
    inset 0 0 22px rgba(232, 195, 106, 0.45);
  animation: payline-pulse 0.7s ease-in-out infinite;
}

@keyframes payline-pulse {
  50% {
    box-shadow:
      0 0 28px rgba(255, 244, 196, 1),
      inset 0 0 28px rgba(255, 179, 71, 0.55);
  }
}

.jackpot {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(18, 8, 12, 0.55);
  pointer-events: none;
  overflow: hidden;
}

.jackpot[hidden] {
  display: none;
}

.jackpot-flash {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 40%, rgba(255, 224, 138, 0.55), transparent 62%);
  animation: jackpot-burst 1.1s ease-out;
}

@keyframes jackpot-burst {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  40% {
    opacity: 1;
    transform: scale(1.05);
  }
  to {
    opacity: 0.35;
    transform: scale(1);
  }
}

.jackpot-rain {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.jackpot-drop {
  position: absolute;
  top: -3rem;
  left: var(--x);
  font-size: var(--size, 1.6rem);
  line-height: 1;
  animation: jackpot-fall var(--dur) var(--delay) linear infinite;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.4));
}

@keyframes jackpot-fall {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(var(--drift), var(--fall), 0) rotate(var(--spin));
  }
}

.jackpot-title {
  margin: 0;
  position: relative;
  z-index: 2;
  padding: 6px 16px;
  border-radius: 12px;
  background: rgba(18, 8, 12, 0.72);
  font-family: Bungee, Impact, sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--gold);
  text-shadow: 0 3px 0 #5c3a1a, 0 0 24px rgba(255, 224, 138, 0.8);
  animation: jackpot-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.jackpot-dish {
  margin: 0;
  position: relative;
  z-index: 2;
  max-width: 36rem;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(18, 8, 12, 0.72);
  text-align: center;
  font-size: 1.15rem;
  color: var(--text);
  animation: jackpot-pop 0.55s 0.12s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes jackpot-pop {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.reel-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.symbol-link {
  display: block;
  height: var(--cell);
  color: inherit;
  text-decoration: none;
}

.symbol-link .symbol {
  height: 100%;
}

.symbol {
  height: var(--cell);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  color: #2a151c;
  text-align: center;
}

.symbol-emoji {
  font-size: 1.7rem;
  line-height: 1;
}

.symbol-name {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.reel-controls--play {
  min-height: 0;
}

.nudge {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 6px 8px;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--gold);
  background: #3a2a18;
  box-shadow: 0 3px 0 #1a1208;
  cursor: pointer;
}

.nudge:hover:not(:disabled) {
  filter: brightness(1.12);
}

.nudge:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #1a1208;
}

.hold {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 8px;
  flex: 1;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--hold);
  box-shadow: 0 4px 0 #1a0a10;
  cursor: pointer;
}

.hold:hover:not(:disabled) {
  filter: brightness(1.12);
}

.hold[aria-pressed="true"] {
  background: var(--hold-on);
  box-shadow: 0 2px 0 #6b2a12, 0 0 16px rgba(196, 92, 42, 0.55);
  transform: translateY(2px);
}

.hold:disabled,
.nudge:disabled,
.play:disabled,
.play-plan:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.result {
  min-height: 3.2em;
  margin: 18px 4px 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.result strong {
  color: var(--gold);
}

.bonus-status {
  min-height: 1.4em;
  margin: 8px 4px 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.cabinet-plan {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin: 16px 0 0;
  min-width: 0;
  padding: 14px 12px;
  border-radius: 18px;
  background: var(--window);
  border: 3px solid var(--gold);
  box-shadow: inset 0 12px 30px rgba(0, 0, 0, 0.55);
}

.cabinet-plan .menu-item {
  min-width: 0;
  padding: 8px 4px;
}

.cabinet-plan .menu-day {
  font-size: clamp(0.5rem, 1.05vw, 0.68rem);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cabinet-plan .menu-emoji {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.cabinet-plan .menu-name {
  font-size: clamp(0.58rem, 1.2vw, 0.75rem);
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cabinet-plan .menu-recipe {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.cabinet-plan .menu-recipe-image {
  display: block;
  width: 100%;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: #1c1014;
}

.cabinet-plan .menu-recipe-image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.cabinet-plan .menu-collect {
  display: flex;
  padding: 0;
  background: transparent;
  border: 0;
}

.menu-collect-btn {
  appearance: none;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 8px 6px;
  border-radius: 14px;
  border: 2px solid var(--gold-deep);
  background: linear-gradient(180deg, #f6e2a8 0%, var(--gold) 42%, var(--gold-deep) 100%);
  color: #2a151c;
  font-family: Bungee, Impact, sans-serif;
  font-size: clamp(0.72rem, 1.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 3px 0 #7a5a18;
}

.menu-collect-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.menu-collect-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #7a5a18;
}

.menu-collect-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.skill-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 6, 9, 0.72);
}

.skill-overlay[hidden] {
  display: none;
}

.skill {
  width: min(34rem, 100%);
  margin: 0;
  padding: 22px 20px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #3a1f2c 0%, var(--cabinet) 38%, #12080c 100%);
  border: 4px solid var(--gold-deep);
  box-shadow: 0 0 0 6px #5c3a1a, 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.skill .play {
  margin-top: 18px;
}

.skill-label {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.skill-track {
  position: relative;
  isolation: isolate;
}

.skill-bar {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1c1014;
  border: 2px solid #3a241c;
  pointer-events: none;
}

.skill-fill {
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, #8a6a2a, var(--gold) 55%, #ffe08a);
  box-shadow: 0 0 18px rgba(232, 195, 106, 0.55);
}

.skill-fill.hot {
  background: linear-gradient(90deg, var(--gold), #ffb347 60%, #fff4c4);
  box-shadow: 0 0 22px rgba(255, 140, 40, 0.8);
}

.skill-cells {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.skill-cell {
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: Bungee, Impact, sans-serif;
  font-size: 1.1rem;
  color: #6a5344;
  background: transparent;
  border: 2px solid #3a241c;
}

.skill-cell.active {
  color: #1a0f16;
  border-color: #fff4c4;
  text-shadow: 0 1px 0 #fff4c4;
}

.skill-cell.active.hot {
  color: #1a0f16;
  border-color: #ffe08a;
}

.skill.running {
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(232, 195, 106, 0.35);
}

.skill.stopped .skill-cell.won {
  outline: 2px solid #fff4c4;
}

.play.skill-ready {
  animation: skill-pulse 0.55s ease-in-out infinite;
}

@keyframes skill-pulse {
  50% {
    filter: brightness(1.2);
    box-shadow: 0 6px 0 #7a1420, 0 0 24px rgba(240, 58, 76, 0.65);
  }
}

.skill-status {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.console {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.play {
  appearance: none;
  border: 0;
  min-width: 220px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: Bungee, Impact, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: white;
  background: radial-gradient(circle at 50% 20%, var(--play-hover), var(--play));
  box-shadow: 0 6px 0 #7a1420, 0 12px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.play:hover:not(:disabled) {
  filter: brightness(1.08);
}

.play:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #7a1420;
}

.play-plan {
  appearance: none;
  min-width: 0;
  margin: 0;
  padding: 8px 4px;
  border-radius: 14px;
  border: 2px solid #7a1420;
  background: radial-gradient(circle at 50% 20%, var(--play-hover), var(--play));
  color: white;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.play-reel {
  flex: 1;
  width: 100%;
  min-height: 0;
}

.play-plan .menu-day {
  color: #fff4c4;
}

.play-plan .menu-name {
  color: white;
}

.play-plan:hover:not(:disabled) {
  filter: brightness(1.08);
}

.play-plan:active:not(:disabled) {
  transform: translateY(1px);
}

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 0;
}

.week-label {
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--gold);
}

.plan-board {
  overflow-x: auto;
  margin-top: 18px;
  padding-bottom: 6px;
}

.plan-grid {
  display: grid;
  grid-template-columns: 92px repeat(7, minmax(132px, 1fr));
  column-gap: 8px;
  row-gap: 28px;
  min-width: 1040px;
}

.plan-day-head,
.plan-meal-label {
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.plan-day-date {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--text);
}

.plan-meal-label {
  align-content: center;
  padding: 0 6px;
}

.plan-slot {
  position: relative;
  display: flex;
  min-width: 0;
  height: 110px;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  background: #12080c;
  overflow: hidden;
}

.plan-slot-filled {
  border: 2px solid var(--gold);
}

.plan-slot-empty {
  border: 2px dashed var(--gold);
}

.plan-slot-hit,
.plan-slot-recipe {
  position: absolute;
  inset: 0;
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.plan-slot .recipe-summary-media {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 14px;
}

.plan-slot .recipe-summary-media::after {
  background: rgba(0, 0, 0, 0.4);
}

.plan-slot .recipe-summary-media .recipe-summary-image {
  height: 100%;
  border-radius: 14px;
}

.plan-slot-empty .add-recipe-art {
  font-size: 1.8rem;
}

.plan-slot .recipe-summary-media h3 {
  font-size: 0.82rem;
  line-height: 1.2;
  max-width: 100%;
  padding: 6px 8px 8px;
}

.plan-slot-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.plan-slot-actions .recipe-btn {
  pointer-events: auto;
  flex: 0 0 auto;
  width: 50%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  font-size: 0.65rem;
  line-height: 1.2;
  text-decoration: none;
}

.plan-picker {
  width: min(920px, calc(100% - 24px));
  max-height: min(86vh, 820px);
  padding: 22px 22px 26px;
  border: 4px solid var(--gold-deep);
  border-radius: 22px;
  background: linear-gradient(180deg, #3a1f2c 0%, var(--cabinet) 100%);
  color: var(--text);
  overflow: auto;
}

.plan-picker::backdrop {
  background: rgba(10, 4, 8, 0.72);
}

.plan-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-picker-head .subhead {
  margin: 0;
}

.plan-picker-card {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.pill-option {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button.pill-option:focus-visible span {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.recipe-category-pills {
  align-items: center;
}

.recipe-category-pills > .pill-option span {
  color: var(--gold);
}

.recipe-category-pills [data-tag-summary] .pill-option span {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a0f16;
}

.category-summary-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.category-picker {
  width: min(420px, calc(100% - 24px));
  padding-bottom: 32px;
}

.category-picker.tag-picker-wide {
  width: min(720px, calc(100% - 24px));
}

.category-picker-options {
  margin: 18px 0 8px;
  justify-content: center;
}

.category-picker-options .pill-option span {
  padding: 12px 18px;
  font-size: 0.92rem;
}

.category-picker-actions {
  justify-content: center;
  margin-top: 40px;
}

@media (max-width: 720px) {
  .week-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .week-label {
    order: -1;
    width: 100%;
  }

  .week-nav-end {
    width: 100%;
    justify-content: center;
  }

  .shopping-columns:has(#chef-column:not([hidden])) {
    grid-template-columns: 1fr;
  }
}

.menu-panel {
  width: min(1180px, 100%);
  margin: 28px auto 0;
  padding: 24px 22px 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, #3a1f2c 0%, var(--cabinet) 100%);
  border: 4px solid var(--gold-deep);
  box-shadow: 0 0 0 6px #5c3a1a;
}

.menu-panel h2 {
  margin: 0 0 8px;
  font-family: Bungee, Impact, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold);
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.menu-list.menu-list-week {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.menu-list.menu-list-week .menu-item {
  min-width: 0;
}

.menu-list:empty {
  display: none;
}

.menu-item {
  margin: 0;
  padding: 14px 12px;
  border-radius: 14px;
  background: #12080c;
  border: 2px solid var(--gold-deep);
  text-align: center;
}

.menu-day {
  display: block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.menu-emoji {
  display: block;
  font-size: 1.8rem;
  line-height: 1.2;
}

.menu-name {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  color: var(--text);
}

.menu-panel.filled {
  border-color: var(--gold);
  box-shadow: 0 0 0 6px #5c3a1a, 0 0 28px rgba(232, 195, 106, 0.35);
}

.import-panel {
  width: min(1180px, 100%);
  margin: 28px auto 0;
  padding: 24px 22px 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, #3a1f2c 0%, var(--cabinet) 100%);
  border: 4px solid var(--gold-deep);
  box-shadow: 0 0 0 6px #5c3a1a;
}

.import-panel h2 {
  margin: 0 0 8px;
  font-family: Bungee, Impact, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold);
}

.import-copy {
  margin: 0 0 16px;
  color: var(--muted);
}

.import-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.import-form[hidden] {
  display: none;
}

.import-form input {
  flex: 1 1 280px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--gold-deep);
  background: #12080c;
  color: var(--text);
  font: inherit;
}

.import-form button {
  appearance: none;
  border: 0;
  padding: 12px 20px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a0f16;
  background: var(--gold);
  cursor: pointer;
}

.import-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.import-status {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: var(--muted);
}

#import-status:empty {
  display: none;
  min-height: 0;
  margin: 0;
}

.import-status-box {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--gold-deep);
  background: #1c1014;
  color: var(--text);
  min-height: 0;
}

.import-status-box[hidden] {
  display: none;
}

.recipe-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #12080c;
  border: 2px solid var(--gold);
  color: var(--text);
}

.recipe-card:has(.recipe-form-shell) {
  padding: 0;
  border: 0;
  background: transparent;
}

.recipe-form-shell {
  padding: 18px;
  border-radius: 16px;
  background: #12080c;
  border: 2px solid var(--gold);
}

.recipe-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  background: #1c1014;
}

.recipe-hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 0 16px;
  min-height: 280px;
  background: #1c1014;
}

.recipe-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 3, 6, 0.78) 0%, rgba(8, 3, 6, 0.18) 38%, rgba(8, 3, 6, 0.2) 55%, rgba(8, 3, 6, 0.82) 100%),
    linear-gradient(90deg, rgba(8, 3, 6, 0.45) 0%, transparent 42%);
  pointer-events: none;
}

.recipe-hero .recipe-image {
  height: 380px;
  max-height: none;
  margin: 0;
  border-radius: 0;
}

.recipe-hero .recipe-image.placeholder {
  min-height: 280px;
  background:
    linear-gradient(160deg, #2a151c 0%, #1c1014 100%);
}

.recipe-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
}

.recipe-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.recipe-hero-lead {
  min-width: 0;
  max-width: min(68%, 38rem);
}

.recipe-card .recipe-hero h3 {
  margin: 0 0 10px;
  color: #fff8e8;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 22px rgba(0, 0, 0, 0.55);
}

.recipe-hero .star-rating {
  margin: 0;
}

.recipe-hero .star {
  color: rgba(255, 244, 196, 0.42);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.recipe-hero .star.on {
  color: var(--gold);
}

.recipe-hero .star-rating:hover .star:hover ~ .star {
  color: rgba(255, 244, 196, 0.42);
}

.recipe-hero .meal-tags {
  margin: 0;
  justify-content: flex-end;
}

.recipe-hero-top > .meal-tags {
  flex: 0 0 auto;
}

.recipe-hero-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
}

.recipe-hero-bottom .meal-tags {
  margin: 0;
}

.recipe-hero .meal-tag {
  background: rgba(18, 8, 12, 0.82);
  border-color: var(--gold);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

@media (max-width: 640px) {
  .recipe-hero .recipe-image {
    height: 260px;
  }

  .recipe-hero-lead {
    max-width: 100%;
  }

  .recipe-hero-top {
    flex-wrap: wrap;
  }

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

  .recipe-tag-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meal"
      "cuisine"
      "diet";
  }

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

.star-rating {
  display: flex;
  gap: 4px;
  margin: 0 0 12px;
}

.star {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #5c4638;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.star.on {
  color: var(--gold);
}

.star-rating:hover .star {
  color: var(--gold);
}

.star-rating:hover .star:hover ~ .star {
  color: #5c4638;
}

.star-rating.static {
  pointer-events: none;
}

.star-rating.static .star {
  cursor: default;
  font-size: 1.25rem;
}

.star-rating.static:hover .star {
  color: #5c4638;
}

.star-rating.static:hover .star.on {
  color: var(--gold);
}

.recipe-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.recipe-card .recipe-desc {
  margin: 0 0 14px;
  color: var(--muted);
}

.recipe-card h4 {
  margin: 14px 0 20px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.recipe-card ul {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recipe-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: recipe-step;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recipe-card ol li {
  position: relative;
  padding-left: 2.7em;
  counter-increment: recipe-step;
}

.recipe-card ol li::before {
  content: counter(recipe-step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.85em;
  height: 1.85em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #1c1014;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.recipe-card ol li strong {
  font-weight: 800;
  color: var(--text);
  color: #e8c36a
}

.recipe-source {
  margin: 16px 0 0;
  word-break: break-all;
}

.recipe-status-log {
  margin: 8px 0 0;
  padding: 12px 14px;
  min-height: 4.5em;
  border-radius: 12px;
  border: 2px solid var(--gold-deep);
  background: #1c1014;
  color: var(--gold);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-wrap;
}

.recipe-status-log:empty::before {
  content: "The pass is quiet. Kitchen notes will land here.";
  color: var(--muted);
  font-weight: 600;
}

.kitchen-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 4, 8, 0.82);
  backdrop-filter: blur(5px);
}

.kitchen-overlay[hidden] {
  display: none;
}

body.kitchen-busy {
  overflow: hidden;
}

.kitchen-overlay-card {
  width: min(360px, 100%);
  padding: 28px 24px 24px;
  border-radius: 24px;
  border: 3px solid var(--gold);
  background: #12080c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.kitchen-scene {
  display: block;
  width: min(280px, 100%);
  margin: 0 auto 8px;
  overflow: visible;
}

.kitchen-shadow {
  fill: rgba(0, 0, 0, 0.45);
}

.kitchen-stove rect {
  fill: #2a151c;
  stroke: var(--gold-deep);
  stroke-width: 3;
}

.kitchen-stove circle {
  fill: #1a0f16;
  stroke: var(--gold);
  stroke-width: 2;
}

.kitchen-flames path {
  fill: var(--gold);
  transform-origin: 190px 150px;
  animation: kitchen-flicker 0.28s ease-in-out infinite alternate;
}

.kitchen-flames path:last-child {
  animation-delay: 0.12s;
}

.kitchen-pan ellipse {
  fill: #3a222b;
  stroke: var(--gold);
  stroke-width: 3;
}

.kitchen-pan path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
}

.kitchen-steam path {
  fill: none;
  stroke: rgba(232, 195, 106, 0.85);
  stroke-width: 3;
  stroke-linecap: round;
  animation: kitchen-steam 1.4s ease-in-out infinite;
}

.kitchen-steam path:nth-child(2) {
  animation-delay: 0.25s;
}

.kitchen-steam path:nth-child(3) {
  animation-delay: 0.5s;
}

.kitchen-board rect {
  fill: #6b3a28;
  stroke: var(--gold-deep);
  stroke-width: 2;
}

.kitchen-veg circle:first-child {
  fill: #c42332;
}

.kitchen-veg circle:nth-child(2) {
  fill: #e8c36a;
}

.kitchen-veg rect {
  fill: #3f7a3a;
}

.kitchen-veg {
  transform-origin: 70px 146px;
  animation: kitchen-hop 0.45s ease-in-out infinite;
}

.kitchen-coat {
  fill: #f4efe4;
  stroke: var(--gold-deep);
  stroke-width: 3;
}

.kitchen-head {
  fill: #e8c3a8;
  stroke: var(--gold-deep);
  stroke-width: 3;
}

.kitchen-moustache {
  fill: none;
  stroke: #1a0f16;
  stroke-width: 4;
  stroke-linecap: round;
}

.kitchen-chef circle:not(.kitchen-head) {
  fill: #1a0f16;
}

.kitchen-hat rect,
.kitchen-hat ellipse {
  fill: #fff8ee;
  stroke: var(--gold);
  stroke-width: 3;
}

.kitchen-hat {
  transform-origin: 118px 68px;
  animation: kitchen-bob 0.45s ease-in-out infinite;
}

.kitchen-arm-still {
  fill: none;
  stroke: #e8c3a8;
  stroke-width: 10;
  stroke-linecap: round;
}

.kitchen-chop {
  transform-origin: 140px 118px;
  animation: kitchen-chop 0.45s ease-in-out infinite;
}

.kitchen-chop path:first-child {
  fill: none;
  stroke: #e8c3a8;
  stroke-width: 10;
  stroke-linecap: round;
}

.kitchen-knife {
  fill: none;
  stroke: #8a8f98;
  stroke-width: 5;
  stroke-linecap: round;
}

.kitchen-blade {
  fill: #d7dbe3;
  stroke: var(--gold-deep);
  stroke-width: 1.5;
}

.kitchen-overlay-title {
  margin: 4px 0 6px;
  color: var(--gold);
  font-family: Bungee, Impact, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.kitchen-overlay-title::after {
  content: "...";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: kitchen-dots 1.2s steps(4, end) infinite;
}

.kitchen-overlay-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

@keyframes kitchen-chop {
  0%,
  100% {
    transform: rotate(-22deg);
  }
  50% {
    transform: rotate(26deg);
  }
}

@keyframes kitchen-hop {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes kitchen-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes kitchen-flicker {
  from {
    transform: scaleY(0.85);
    opacity: 0.75;
  }
  to {
    transform: scaleY(1.15);
    opacity: 1;
  }
}

@keyframes kitchen-steam {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-16px);
  }
}

@keyframes kitchen-dots {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  25% {
    clip-path: inset(0 66% 0 0);
  }
  50% {
    clip-path: inset(0 33% 0 0);
  }
  75%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kitchen-flames path,
  .kitchen-steam path,
  .kitchen-veg,
  .kitchen-hat,
  .kitchen-chop,
  .kitchen-overlay-title::after,
  .nav-login {
    animation: none;
  }
}

.recipe-source a {
  color: var(--gold);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 720px) {
  :root {
    --cell: 78px;
  }

  .cabinet {
    padding: 18px 12px 22px;
  }

  .reels {
    gap: 6px;
  }

  .symbol-emoji {
    font-size: 1.35rem;
  }

  .symbol-name {
    font-size: 0.58rem;
  }

  .hold {
    font-size: 0.68rem;
    padding: 8px 4px;
  }

  .nudge {
    font-size: 0.95rem;
    padding: 5px 4px 7px;
  }

  .menu-list:not(.menu-list-week) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 12px;
  }

  .site-menu.open {
    display: flex;
  }

  .nav-flyout-menu {
    position: static;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 4px 0 0 12px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-nav-inner {
    flex-wrap: wrap;
  }

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

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

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

@media (max-width: 520px) {
  .recipe-library-grid {
    grid-template-columns: 1fr;
  }
}

.wheel-cabinet h1 {
  text-align: center;
  margin-bottom: 8px;
}

.wheel-stage {
  position: relative;
  width: min(520px, 100%);
  margin: 12px auto 0;
  aspect-ratio: 1;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  z-index: 4;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid var(--gold);
  filter: drop-shadow(0 3px 0 #5c3a1a);
}

.wheel-peg {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 5;
  width: 10px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 2px 2px 4px 4px;
  background: linear-gradient(#fff4c4, var(--gold-deep));
  box-shadow: 0 2px 0 #5c3a1a;
}

.wheel-disk {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(0deg);
  will-change: transform;
  background: #12080c;
  box-shadow:
    0 0 0 8px var(--gold-deep),
    0 0 0 14px #5c3a1a,
    inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.wheel-disk svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wheel-label,
.wheel-hub {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  pointer-events: none;
}

.wheel-hub {
  font-family: Bungee, Impact, sans-serif;
  font-weight: 400;
}

.wheel-slice.is-selected {
  stroke: #fff4c4;
  stroke-width: 1.8px;
  filter: brightness(1.08);
}

.wheel-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.wheel-charge {
  width: min(280px, 100%);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #1c1014;
  border: 2px solid var(--gold-deep);
}

.wheel-charge-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), #fff4c4);
  box-shadow: 0 0 12px rgba(232, 195, 106, 0.55);
}

.play.wheel-play {
  min-width: 148px;
  min-height: 64px;
  padding: 12px 28px;
  font-family: Bungee, Impact, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  user-select: none;
  touch-action: none;
}

.play.wheel-play.is-wound {
  filter: brightness(1.12);
  box-shadow: 0 6px 0 #7a1420, 0 0 22px rgba(240, 58, 76, 0.55);
}

.play.wheel-play.is-spinning {
  opacity: 0.7;
}

.wheel-result {
  width: min(560px, 100%);
  margin: 20px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.wheel-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.wheel-result .recipe-summary {
  appearance: none;
  min-height: 100%;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.wheel-result #wheel-winner {
  min-width: 0;
  display: flex;
}

.wheel-result #wheel-winner > * {
  flex: 1;
}

.wheel-result-card {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

/* ── Recipe Manager ── */

/* Select-all checkbox label in toolbar */
.manager-select-all-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

/* Card overlay: checkbox in top-left corner */
.manager-card {
  cursor: pointer;
  position: relative;
}

.manager-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}

.manager-card-check-wrap {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  z-index: 10;
  cursor: pointer;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: rgba(12, 6, 10, 0.75);
  border-radius: 8px;
  border: 2px solid var(--gold-deep);
  backdrop-filter: blur(2px);
}

.manager-card-check-wrap:has(:checked) {
  background: var(--gold-deep);
  border-color: var(--gold);
}

.manager-card-check {
  width: 14px;
  height: 14px;
  accent-color: var(--gold);
  cursor: pointer;
  margin: 0;
}

/* Checked card gets a gold ring */
.manager-card:has(.manager-card-check:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}

/* Import / export results */
.manager-results-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.manager-result {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #1c1014;
  border: 1px solid var(--gold-deep);
}

.manager-result-ok   { color: #7dcf7d; }
.manager-result-fail { color: #e07070; }

.manager-confirm {
  width: min(420px, calc(100% - 24px));
  max-height: none;
}
