@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #00B0EB;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  font-family: 'Press Start 2P', cursive;
  color: #000;
  position: relative;
  overflow-x: hidden;
  background-color: #00B0EB;
}

@media (hover: hover) and (pointer: fine) {
  html,
  body {
    cursor: url("./assets/cursor/cursor_normal.png") 2 2, auto;
  }

  a,
  button,
  [role="button"],
  input,
  select,
  textarea,
  label,
  summary,
  .site-menu__credit-icon,
  .office-helper {
    cursor: url("./assets/cursor/cursor_hover.png") 2 2, pointer;
  }
}

body.theme-morning {
  background-color: #4AC6FD;
}

body.theme-evening {
  background-color: #6B5272;
}

body.theme-night {
  background-color: #281B4F;
}

.status-veil {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(env(safe-area-inset-top, 0px) + 54px);
  z-index: 7;
  display: none;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 176, 235, 0.68) 0%,
    rgba(0, 176, 235, 0.28) 58%,
    rgba(0, 176, 235, 0) 100%
  );
}

body.theme-morning .status-veil {
  background: linear-gradient(
    to bottom,
    rgba(74, 198, 253, 0.7) 0%,
    rgba(74, 198, 253, 0.3) 58%,
    rgba(74, 198, 253, 0) 100%
  );
}

body.theme-evening .status-veil {
  background: linear-gradient(
    to bottom,
    rgba(107, 82, 114, 0.74) 0%,
    rgba(107, 82, 114, 0.34) 58%,
    rgba(107, 82, 114, 0) 100%
  );
}

body.theme-night .status-veil {
  background: linear-gradient(
    to bottom,
    rgba(40, 27, 79, 0.76) 0%,
    rgba(40, 27, 79, 0.36) 58%,
    rgba(40, 27, 79, 0) 100%
  );
}

body::before,
body::after {
  content: "";
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  image-rendering: pixelated;
}

body.theme-evening::before {
  display: block;
  width: 1px;
  height: 1px;
  box-shadow:
    8vw 14vh 0 0 rgba(255, 238, 190, 0.44),
    17vw 31vh 0 1px rgba(255, 238, 190, 0.36),
    25vw 11vh 0 2px rgba(255, 249, 217, 0.34),
    34vw 42vh 0 0 rgba(255, 238, 190, 0.4),
    48vw 19vh 0 3px rgba(255, 249, 217, 0.32),
    57vw 36vh 0 1px rgba(255, 238, 190, 0.38),
    69vw 13vh 0 0 rgba(255, 249, 217, 0.42),
    82vw 28vh 0 2px rgba(255, 238, 190, 0.34),
    93vw 47vh 0 1px rgba(255, 249, 217, 0.38),
    12vw 63vh 0 2px rgba(255, 238, 190, 0.3),
    41vw 71vh 0 0 rgba(255, 249, 217, 0.36),
    77vw 66vh 0 3px rgba(255, 238, 190, 0.26),
    4vw 37vh 0 0 rgba(255, 249, 217, 0.34),
    28vw 52vh 0 1px rgba(255, 238, 190, 0.32),
    38vw 9vh 0 0 rgba(255, 249, 217, 0.38),
    62vw 57vh 0 2px rgba(255, 238, 190, 0.28),
    71vw 41vh 0 1px rgba(255, 249, 217, 0.34),
    88vw 12vh 0 0 rgba(255, 238, 190, 0.36),
    98vw 34vh 0 1px rgba(255, 249, 217, 0.32),
    19vw 48vh 0 0 rgba(255, 238, 190, 0.34),
    53vw 7vh 0 1px rgba(255, 249, 217, 0.3),
    79vw 49vh 0 0 rgba(255, 238, 190, 0.32),
    91vw 39vh 0 2px rgba(255, 249, 217, 0.28);
  animation: stars-twinkle-soft 5.6s ease-in-out infinite;
}

body.theme-evening::after {
  display: block;
  width: 2px;
  height: 2px;
  box-shadow:
    5vw 51vh 0 1px rgba(255, 223, 181, 0.36),
    21vw 74vh 0 0 rgba(255, 249, 217, 0.4),
    31vw 58vh 0 2px rgba(255, 223, 181, 0.3),
    52vw 79vh 0 1px rgba(255, 249, 217, 0.34),
    63vw 55vh 0 3px rgba(255, 223, 181, 0.26),
    89vw 78vh 0 0 rgba(255, 249, 217, 0.38),
    96vw 59vh 0 2px rgba(255, 223, 181, 0.32),
    73vw 88vh 0 1px rgba(255, 249, 217, 0.36),
    14vw 86vh 0 0 rgba(255, 223, 181, 0.32),
    36vw 91vh 0 2px rgba(255, 249, 217, 0.28),
    47vw 64vh 0 1px rgba(255, 223, 181, 0.34),
    68vw 73vh 0 0 rgba(255, 249, 217, 0.36),
    83vw 53vh 0 2px rgba(255, 223, 181, 0.3),
    26vw 68vh 0 0 rgba(255, 249, 217, 0.34),
    58vw 88vh 0 1px rgba(255, 223, 181, 0.32),
    94vw 82vh 0 0 rgba(255, 249, 217, 0.34);
  animation: stars-twinkle-soft 7.2s ease-in-out infinite reverse;
}

body.theme-night::before {
  display: none;
  width: 1px;
  height: 1px;
  box-shadow:
    3vw 8vh 0 0 rgba(255, 255, 230, 0.78),
    9vw 24vh 0 1px rgba(255, 255, 230, 0.62),
    14vw 42vh 0 3px rgba(255, 243, 188, 0.48),
    19vw 13vh 0 2px rgba(255, 255, 230, 0.58),
    24vw 67vh 0 0 rgba(255, 255, 230, 0.7),
    29vw 35vh 0 1px rgba(255, 243, 188, 0.56),
    33vw 5vh 0 2px rgba(255, 255, 230, 0.62),
    38vw 82vh 0 3px rgba(255, 243, 188, 0.46),
    44vw 26vh 0 0 rgba(255, 255, 230, 0.74),
    49vw 52vh 0 1px rgba(255, 243, 188, 0.58),
    54vw 17vh 0 3px rgba(255, 255, 230, 0.52),
    58vw 73vh 0 2px rgba(255, 243, 188, 0.54),
    63vw 39vh 0 0 rgba(255, 255, 230, 0.7),
    67vw 9vh 0 1px rgba(255, 243, 188, 0.58),
    72vw 61vh 0 3px rgba(255, 255, 230, 0.5),
    78vw 33vh 0 2px rgba(255, 243, 188, 0.56),
    83vw 14vh 0 0 rgba(255, 255, 230, 0.74),
    88vw 87vh 0 3px rgba(255, 243, 188, 0.46),
    94vw 48vh 0 1px rgba(255, 255, 230, 0.66),
    97vw 21vh 0 2px rgba(255, 243, 188, 0.54),
    6vw 79vh 0 1px rgba(255, 255, 230, 0.6),
    16vw 91vh 0 2px rgba(255, 243, 188, 0.52),
    36vw 95vh 0 0 rgba(255, 255, 230, 0.7),
    56vw 92vh 0 1px rgba(255, 243, 188, 0.56),
    76vw 96vh 0 2px rgba(255, 255, 230, 0.58);
  animation: stars-twinkle 4.8s ease-in-out infinite;
}

body.theme-night::after {
  display: none;
  width: 2px;
  height: 2px;
  box-shadow:
    5vw 55vh 0 2px rgba(222, 236, 255, 0.5),
    11vw 70vh 0 0 rgba(255, 255, 230, 0.72),
    18vw 29vh 0 3px rgba(222, 236, 255, 0.42),
    27vw 88vh 0 1px rgba(255, 255, 230, 0.62),
    31vw 73vh 0 2px rgba(222, 236, 255, 0.5),
    42vw 44vh 0 3px rgba(255, 255, 230, 0.44),
    47vw 9vh 0 0 rgba(222, 236, 255, 0.68),
    53vw 66vh 0 2px rgba(255, 255, 230, 0.54),
    61vw 23vh 0 1px rgba(222, 236, 255, 0.6),
    66vw 84vh 0 3px rgba(255, 255, 230, 0.42),
    71vw 50vh 0 0 rgba(222, 236, 255, 0.7),
    79vw 6vh 0 2px rgba(255, 255, 230, 0.52),
    86vw 64vh 0 1px rgba(222, 236, 255, 0.62),
    91vw 35vh 0 3px rgba(255, 255, 230, 0.42),
    98vw 75vh 0 0 rgba(222, 236, 255, 0.68),
    22vw 4vh 0 1px rgba(255, 255, 230, 0.58),
    40vw 12vh 0 2px rgba(222, 236, 255, 0.54),
    60vw 5vh 0 1px rgba(255, 255, 230, 0.6),
    81vw 92vh 0 2px rgba(222, 236, 255, 0.5);
  animation: stars-twinkle 6.4s ease-in-out infinite reverse;
}

.pixel-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: none;
  overflow: hidden;
  pointer-events: none;
  image-rendering: pixelated;
}

body.theme-morning .pixel-sky,
body.theme-evening .pixel-sky {
  display: grid;
}

.sky-pixel {
  width: 100%;
  height: 100%;
}

button,
input,
textarea {
  font: inherit;
}

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

.cloud-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  overflow: hidden;
  pointer-events: none;
}

body.theme-day .cloud-field {
  display: block;
}

.night-star-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  overflow: hidden;
  pointer-events: none;
  image-rendering: pixelated;
}

body.theme-night .night-star-field {
  display: block;
}

.night-star {
  position: absolute;
  top: var(--star-top);
  left: var(--star-left);
  width: var(--star-size);
  height: var(--star-size);
  background-color: var(--star-color);
  opacity: 1;
  pointer-events: none;
  animation: night-star-twinkle var(--star-duration) linear infinite;
  animation-delay: var(--star-delay);
}

.day-cloud {
  position: absolute;
  top: var(--cloud-top);
  left: var(--cloud-start);
  width: var(--cloud-width);
  max-width: none;
  height: auto;
  image-rendering: pixelated;
  pointer-events: none;
  animation: day-cloud-float var(--cloud-duration) linear infinite;
  animation-delay: var(--cloud-delay);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.retro-header,
.retro-footer {
  width: 100%;
  position: relative;
}

.retro-header {
  padding: 28px 16px 10px;
  text-align: center;
}

.header-inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 4px solid #000;
  background-color: #ffcc00;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.1s ease-in-out, background-color 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.menu-toggle:hover,
.menu-toggle:focus {
  transform: translateY(2px);
  background-color: #fff;
}

.menu-toggle:active {
  transform: translateY(4px);
  box-shadow: none;
}

.menu-toggle[aria-expanded="true"] {
  box-shadow: none;
}

.menu-toggle__symbol {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("./assets/icons/menu.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: #000;
  font-size: 0;
  line-height: 0;
  image-rendering: pixelated;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__symbol {
  background-image: url("./assets/icons/close.png");
}

.site-menu {
  width: 100%;
  display: grid;
  gap: 12px;
  text-align: left;
}

.site-menu__item {
  width: 100%;
  min-height: 64px;
  border: 4px solid #000;
  background-color: #f9f9f9;
  color: #000;
  box-shadow: 0 4px #000;
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  transition: transform 0.1s ease-in-out, background-color 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.site-menu__item:hover,
.site-menu__item:focus {
  transform: translateY(2px);
  background-color: #ffcc00;
}

.site-menu__item:active {
  transform: translateY(4px);
  box-shadow: none;
}

.site-menu__item.is-active,
.site-menu__item[aria-current="page"] {
  background-color: #ffcc00;
}

.site-menu__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 4px solid #000;
  color: #000;
  font-size: 9px;
  line-height: 1.8;
}

.site-menu__meta-copy {
  display: grid;
  gap: 4px;
}

.site-menu__meta a {
  color: #000;
  text-decoration: none;
  border-bottom: 2px solid #000;
}

.site-menu__meta a:hover,
.site-menu__meta a:focus {
  color: #cc0000;
  border-bottom-color: #cc0000;
}

.site-menu__socials {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.site-menu__credit-icon {
  --social-icon-width: 36px;
  --social-icon-height: 36px;
  width: var(--social-icon-width);
  height: var(--social-icon-height);
  flex: 0 0 var(--social-icon-width);
  position: relative;
  display: block;
  border-bottom: 0;
}

.site-menu__credit-icon--wide {
  --social-icon-width: 48px;
}

.site-menu__credit-icon:hover,
.site-menu__credit-icon:focus {
  border-bottom: 0;
  transform: none;
}

.site-menu__credit-icon-image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  transition: none;
}

.site-menu__credit-icon-image--hover {
  opacity: 0;
}

.site-menu__credit-icon:hover .site-menu__credit-icon-image--normal,
.site-menu__credit-icon:focus .site-menu__credit-icon-image--normal {
  opacity: 0;
}

.site-menu__credit-icon:hover .site-menu__credit-icon-image--hover,
.site-menu__credit-icon:focus .site-menu__credit-icon-image--hover {
  opacity: 1;
}

.retro-footer {
  margin-top: auto;
  background-color: #776548;
  overflow: visible;
  z-index: 3;
}

.app-main {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 12px 16px 28px;
}

.retro-heading {
  margin: 0 0 14px;
  font-size: 48px;
  color: #ffcc00;
  text-shadow: 4px 4px #000;
  line-height: 1.2;
  letter-spacing: 0;
}

.app-logo {
  display: block;
  width: min(315px, 57vw);
  height: auto;
  margin: 0 auto;
  image-rendering: pixelated;
}

.retro-subheading {
  margin: 0;
  font-size: 20px;
  color: #ffcc00;
  text-shadow: 2px 2px #000;
  line-height: 1.4;
  letter-spacing: 0;
}

.retro-paragraph {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #000;
}

.game-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  line-height: 1.6;
  color: #fff;
  text-shadow: 2px 2px #000;
}

.site-section {
  width: min(100%, 1040px);
}

.app-panel {
  width: min(100%, 1040px);
  background-color: #fff;
  border: 4px solid #000;
  padding: 24px;
  align-self: flex-start;
}

.page-placeholder {
  min-height: 360px;
}

.site-menu-panel {
  min-height: 360px;
}

.placeholder-box {
  min-height: 238px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #000;
  background-color: #f9f9f9;
  padding: 24px;
  text-align: center;
}

.placeholder-box p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
}

.chef-scene {
  min-height: 520px;
  position: relative;
  border: 4px solid #000;
  background-color: #00B0EB;
  overflow: hidden;
  isolation: isolate;
  padding: 28px 18px 244px;
}

.chef-avatar {
  width: 220px;
  height: auto;
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  image-rendering: pixelated;
  z-index: 3;
}

.retro-blockquote.chef-bubble {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 14px;
  position: relative;
  z-index: 2;
  font-size: 9px;
  line-height: 1.65;
  box-sizing: border-box;
}

.retro-blockquote.chef-bubble::before {
  left: 20px;
  transform: none;
}

.retro-blockquote.chef-bubble::after {
  left: 18px;
  transform: none;
}

.chef-bubble p {
  margin: 0 0 9px;
}

.chef-bubble p:last-child {
  margin-bottom: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.setup-step {
  border: 4px solid #000;
  background-color: #f9f9f9;
  padding: 18px;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.step-title h3 {
  margin: 0;
  letter-spacing: 0;
}

.setup-badge {
  font-size: 10px;
}

.setup-badge--info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

.setup-badge--warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeeba;
}

.setup-badge--success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

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

.choice-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.retro-button {
  border: 4px solid #000;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 16px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease-in-out, background-color 0.1s ease-in-out;
  outline: none;
  min-height: 48px;
}

.retro-button:hover,
.retro-button:focus {
  transform: translateY(2px);
}

.retro-button:active {
  transform: translateY(4px);
}

.retro-button--small {
  font-size: 11px;
  padding: 6px 10px;
}

.retro-button--medium {
  font-size: 12px;
  padding: 10px 16px;
}

.retro-button--large {
  font-size: 16px;
  padding: 14px 24px;
}

.retro-button--primary {
  background-color: #ffcc00;
  color: #000;
  box-shadow: 0 4px #cc9900;
}

.retro-button--primary:hover,
.retro-button--primary:focus,
.retro-button--primary.is-selected {
  background-color: #ffd700;
}

.retro-button--secondary {
  background-color: #0099cc;
  color: #fff;
  box-shadow: 0 4px #006699;
}

.retro-button--secondary:hover,
.retro-button--secondary:focus,
.retro-button--secondary.is-selected {
  background-color: #00bfff;
}

.retro-button--ghost {
  background-color: transparent;
  color: #000;
  border: 4px dashed #000;
  box-shadow: none;
}

.retro-button--ghost:hover,
.retro-button--ghost:focus {
  background-color: rgba(0, 0, 0, 0.1);
}

.retro-button--link {
  min-height: 0;
  border: none;
  background-color: transparent;
  box-shadow: none;
  color: #000;
  padding: 0;
  text-decoration: underline;
}

.retro-button--link:hover,
.retro-button--link:focus {
  background-color: transparent;
  color: #00f;
  transform: none;
}

.retro-button--link:active {
  transform: translateY(4px);
}

.retro-button--destructive {
  background-color: #ff3333;
  color: #fff;
  box-shadow: 0 4px #cc0000;
}

.retro-button--destructive:hover,
.retro-button--destructive:focus {
  background-color: #ff6666;
}

.retro-button--constructive {
  background-color: #33cc33;
  color: #fff;
  box-shadow: 0 4px #009900;
}

.retro-button--constructive:hover,
.retro-button--constructive:focus,
.retro-button--constructive.is-selected {
  background-color: #66ff66;
}

.choice-button {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.choice-button.is-selected {
  outline: 4px solid #000;
  outline-offset: 3px;
}

.retro-tooltip-container {
  position: relative;
  display: inline-block;
}

.choice-grid .retro-tooltip-container {
  display: block;
  width: 100%;
}

.retro-tooltip {
  visibility: hidden;
  background-color: #000;
  color: #ffcc00;
  text-align: center;
  padding: 5px 10px;
  position: absolute;
  z-index: 2;
  bottom: 125%;
  left: 50%;
  width: max-content;
  max-width: min(280px, calc(100vw - 48px));
  transform: translateX(-50%);
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  line-height: 1.6;
  border: 4px solid #ffcc00;
}

.retro-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #ffcc00 transparent transparent transparent;
}

.retro-tooltip-container:hover .retro-tooltip,
.retro-tooltip-container:focus-within .retro-tooltip {
  visibility: visible;
}

.retro-accordion {
  display: grid;
  gap: 12px;
}

.retro-accordion__button {
  width: 100%;
  min-height: 64px;
  border: 4px solid #000;
  background-color: #ffcc00;
  color: #000;
  padding: 18px;
  text-align: left;
  font-family: 'Press Start 2P', cursive;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  outline: none;
  transition: background-color 0.4s ease;
}

.retro-accordion__button:hover,
.retro-accordion__button:focus,
.retro-accordion__button.active {
  background-color: #ffd700;
}

.retro-accordion__content {
  display: block;
  overflow: hidden;
  border: 4px solid #000;
  background-color: #f9f9f9;
  padding: 18px;
  font-family: 'Press Start 2P', cursive;
}

.retro-accordion__content[hidden] {
  display: none;
}

.recipe-section + .recipe-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 4px solid #000;
}

.recipe-section h3 {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #cc0000;
}

.recipe-copy {
  font-size: 10px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.recipe-copy p {
  margin: 0 0 12px;
}

.egg-mark--blue {
  color: #00bfff;
}

.egg-mark--red {
  color: #ff6666;
}

.recipe-link-row {
  margin-top: 16px;
}

.recipe-copy .recipe-link {
  display: inline;
  min-height: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  text-transform: none;
}

.recipe-list,
.recipe-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding-left: 22px;
}

.recipe-list li,
.recipe-steps li {
  padding-left: 4px;
}

.start-console {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 4px solid #000;
  background-color: #ffcc00;
}

.time-preview {
  display: grid;
  gap: 8px;
  min-width: 130px;
}

.time-preview span,
.recipe-preview,
.timer-recipe {
  font-size: 10px;
  line-height: 1.7;
}

.time-preview strong {
  font-size: 24px;
  line-height: 1.2;
  color: #000;
}

.recipe-preview {
  text-align: left;
}

.start-button {
  min-width: 150px;
}

.timer-screen {
  background-color: #fff;
  padding: 20px;
}

.timer-scene {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 420px);
  gap: 22px;
  align-items: stretch;
}

.chicken-stage {
  min-height: 430px;
  display: flex;
  align-items: end;
  justify-content: center;
  position: relative;
  border: 4px solid #000;
  background-color: #00B0EB;
  overflow: hidden;
}

.stage-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #00B0EB;
  overflow: hidden;
  pointer-events: none;
  image-rendering: pixelated;
}

.stage-cloud-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  overflow: hidden;
  pointer-events: none;
}

body.theme-day .stage-cloud-field {
  display: block;
}

.stage-night-star-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  overflow: hidden;
  pointer-events: none;
  image-rendering: pixelated;
}

body.theme-night .stage-night-star-field {
  display: block;
}

.stage-sky::before,
.stage-sky::after {
  content: "";
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.stage-sky .sky-pixel {
  display: none;
}

body.theme-morning .stage-sky,
body.theme-evening .stage-sky {
  display: grid;
  background-image: none;
  animation: none;
}

body.theme-morning .stage-sky {
  background-color: #4AC6FD;
}

body.theme-evening .stage-sky {
  background-color: #6B5272;
}

body.theme-morning .stage-sky .sky-pixel,
body.theme-evening .stage-sky .sky-pixel {
  display: block;
}

body.theme-evening .stage-sky::before {
  display: block;
  background-image:
    linear-gradient(rgba(255, 238, 190, 0.42), rgba(255, 238, 190, 0.42)),
    linear-gradient(rgba(255, 249, 217, 0.34), rgba(255, 249, 217, 0.34)),
    linear-gradient(rgba(255, 223, 181, 0.3), rgba(255, 223, 181, 0.3)),
    linear-gradient(rgba(255, 249, 217, 0.38), rgba(255, 249, 217, 0.38)),
    linear-gradient(rgba(255, 238, 190, 0.32), rgba(255, 238, 190, 0.32)),
    linear-gradient(rgba(255, 249, 217, 0.36), rgba(255, 249, 217, 0.36)),
    linear-gradient(rgba(255, 223, 181, 0.28), rgba(255, 223, 181, 0.28)),
    linear-gradient(rgba(255, 249, 217, 0.34), rgba(255, 249, 217, 0.34)),
    linear-gradient(rgba(255, 238, 190, 0.3), rgba(255, 238, 190, 0.3)),
    linear-gradient(rgba(255, 249, 217, 0.32), rgba(255, 249, 217, 0.32)),
    linear-gradient(rgba(255, 238, 190, 0.32), rgba(255, 238, 190, 0.32)),
    linear-gradient(rgba(255, 249, 217, 0.3), rgba(255, 249, 217, 0.3));
  background-position:
    12% 18%,
    31% 28%,
    48% 14%,
    68% 36%,
    85% 22%,
    22% 63%,
    74% 71%,
    9% 44%,
    54% 66%,
    91% 54%,
    37% 52%,
    82% 39%;
  background-size:
    2px 2px,
    4px 4px,
    6px 6px,
    3px 3px,
    5px 5px,
    7px 7px,
    4px 4px,
    3px 3px,
    5px 5px,
    2px 2px,
    4px 4px,
    3px 3px;
  animation: stars-twinkle-soft 5.6s ease-in-out infinite;
}

body.theme-night .stage-sky {
  background-color: #281B4F;
  background-image: none;
  animation: none;
}

body.theme-night .stage-sky::before,
body.theme-night .stage-sky::after {
  display: none;
}

body.theme-night .stage-sky::before {
  background-image:
    linear-gradient(rgba(255, 255, 230, 0.72), rgba(255, 255, 230, 0.72)),
    linear-gradient(rgba(222, 236, 255, 0.56), rgba(222, 236, 255, 0.56)),
    linear-gradient(rgba(255, 243, 188, 0.5), rgba(255, 243, 188, 0.5)),
    linear-gradient(rgba(255, 255, 230, 0.68), rgba(255, 255, 230, 0.68)),
    linear-gradient(rgba(222, 236, 255, 0.48), rgba(222, 236, 255, 0.48)),
    linear-gradient(rgba(255, 243, 188, 0.54), rgba(255, 243, 188, 0.54)),
    linear-gradient(rgba(255, 255, 230, 0.64), rgba(255, 255, 230, 0.64)),
    linear-gradient(rgba(222, 236, 255, 0.5), rgba(222, 236, 255, 0.5));
  background-position:
    9% 13%,
    18% 42%,
    27% 21%,
    41% 61%,
    55% 17%,
    68% 48%,
    81% 27%,
    91% 69%;
  background-size:
    2px 2px,
    4px 4px,
    6px 6px,
    3px 3px,
    8px 8px,
    5px 5px,
    2px 2px,
    7px 7px;
  animation: stars-twinkle 4.8s ease-in-out infinite;
}

body.theme-night .stage-sky::after {
  background-image:
    linear-gradient(rgba(255, 255, 230, 0.62), rgba(255, 255, 230, 0.62)),
    linear-gradient(rgba(222, 236, 255, 0.5), rgba(222, 236, 255, 0.5)),
    linear-gradient(rgba(255, 243, 188, 0.46), rgba(255, 243, 188, 0.46)),
    linear-gradient(rgba(255, 255, 230, 0.58), rgba(255, 255, 230, 0.58)),
    linear-gradient(rgba(222, 236, 255, 0.54), rgba(222, 236, 255, 0.54)),
    linear-gradient(rgba(255, 243, 188, 0.48), rgba(255, 243, 188, 0.48));
  background-position:
    6% 78%,
    35% 84%,
    47% 37%,
    62% 76%,
    77% 12%,
    94% 44%;
  background-size:
    4px 4px,
    2px 2px,
    7px 7px,
    5px 5px,
    3px 3px,
    8px 8px;
  animation: stars-twinkle 6.4s ease-in-out infinite reverse;
}

.chicken-gif {
  width: min(100%, 520px);
  height: auto;
  image-rendering: pixelated;
  display: block;
  position: relative;
  z-index: 2;
}

.timer-console {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border: 4px solid #000;
  background-color: #fff;
  padding: 22px;
  text-align: center;
}

.timer-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  letter-spacing: 0;
}

.timer-display {
  padding: 18px 12px;
  border: 4px solid #000;
  background-color: #000;
  color: #ffcc00;
  font-size: 44px;
  line-height: 1.2;
  text-shadow: 3px 3px #cc0000;
}

.timer-recipe {
  margin: 0;
}

.retro-progress-bar {
  background-color: #000;
  border: 4px solid #000;
  width: 100%;
  height: 30px;
  position: relative;
  overflow: hidden;
}

.retro-progress-bar__inner {
  width: 0%;
  height: 100%;
  background-color: #ffcc00;
  position: absolute;
  top: 0;
  left: 0;
  transition: width 0.2s linear;
}

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

.timer-action--wide {
  grid-column: 1 / -1;
}

.retro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  font-size: 10px;
  line-height: 1.4;
  border: 4px solid #000;
  text-transform: uppercase;
  margin: 0;
}

.retro-badge--info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #000;
}

.retro-badge--warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #000;
}

.retro-badge--danger {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #000;
}

.retro-badge--success {
  background-color: #d4edda;
  color: #155724;
  border-color: #000;
}

.retro-toast {
  visibility: hidden;
  min-width: 260px;
  max-width: calc(100vw - 32px);
  background-color: #000;
  color: #ffcc00;
  text-align: center;
  border: 4px solid #ffcc00;
  padding: 16px;
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 11px;
  line-height: 1.6;
}

.retro-toast p {
  margin: 0;
}

.retro-toast.show {
  visibility: visible;
  animation: fadein 0.3s, fadeout 0.4s 3.2s;
}

.retro-blockquote {
  position: relative;
  max-width: 400px;
  margin: 20px auto;
  border: 4px solid #000;
  background-color: #fff;
  padding: 20px;
  color: #000;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  line-height: 1.7;
}

.retro-blockquote::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid #000;
}

.retro-blockquote::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid #000;
  z-index: -1;
}

.ground {
  height: 34px;
  background-color: #776548;
  border-top: 4px solid #000;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%),
    linear-gradient(90deg, transparent 75%, rgba(0, 0, 0, 0.18) 75%);
  background-size: 32px 16px;
}

.office-helper-shell {
  width: 320px;
  height: 320px;
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  transform: translateX(-50%);
}

.office-helper-shell[hidden] {
  display: none;
}

.office-helper {
  width: 320px;
  height: 320px;
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.office-helper__bubble {
  width: min(360px, calc(100vw - 32px));
  position: absolute;
  left: 50%;
  bottom: 200px;
  z-index: 5;
  margin: 0;
  padding: 16px;
  font-size: 10px;
  line-height: 1.8;
  text-align: left;
  pointer-events: none;
  opacity: 1;
  transform: translateX(-50%);
}

.office-helper__bubble.is-leaving {
  animation: speech-bubble-fadeout-up 0.42s ease-in forwards;
}

.office-helper__bubble::before {
  left: 50%;
  transform: translateX(-50%);
}

.office-helper__bubble::after {
  left: 50%;
  transform: translateX(-50%);
}

.office-helper__bubble--prompt {
  width: min(220px, calc(100vw - 32px));
  bottom: 100px;
  padding: 14px;
  text-align: center;
}

.office-helper__bubble--bored {
  width: min(340px, calc(100vw - 32px));
  text-align: center;
  white-space: nowrap;
}

.office-helper__bubble[hidden] {
  display: none;
}

.office-helper__gif {
  width: 320px;
  height: 320px;
  display: block;
  image-rendering: pixelated;
}

.is-hidden {
  display: none;
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes speech-bubble-fadeout-up {
  from {
    opacity: 1;
    transform: translateX(-50%);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -14px);
  }
}

@keyframes day-cloud-float {
  from {
    left: var(--cloud-start);
  }
  to {
    left: var(--cloud-end);
  }
}

@keyframes stars-twinkle {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes stars-twinkle-soft {
  0%,
  100% {
    opacity: 0.34;
  }
  50% {
    opacity: 0.64;
  }
}

@keyframes night-star-twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@media (max-width: 860px) {
  .retro-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .app-main {
    padding: 10px 12px 24px;
  }

  .app-panel {
    padding: 18px;
  }

  .chef-scene {
    min-height: 590px;
    padding: 22px 18px 194px 140px;
  }

  .chef-avatar {
    width: 170px;
  }

  .retro-blockquote.chef-bubble {
    font-size: 9px;
  }

  .retro-blockquote.chef-bubble::before {
    left: 20px;
  }

  .retro-blockquote.chef-bubble::after {
    left: 18px;
  }

  .panel-head,
  .start-console,
  .timer-scene {
    grid-template-columns: 1fr;
  }

  .panel-head {
    align-items: center;
  }

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

  .start-console {
    text-align: center;
  }

  .recipe-preview {
    text-align: center;
  }

  .start-button {
    width: 100%;
  }

  .chicken-stage {
    min-height: 330px;
  }
}

@media (max-width: 560px) {
  .status-veil {
    display: block;
  }

  .retro-header {
    padding-top: max(20px, calc(env(safe-area-inset-top, 0px) + 14px));
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .menu-toggle__symbol {
    width: 21px;
    height: 21px;
  }

  .panel-head {
    gap: 8px;
  }

  .site-menu {
    width: 100%;
  }

  .site-menu__socials {
    gap: 5px;
  }

  .site-menu__credit-icon {
    --social-icon-width: 30px;
    --social-icon-height: 30px;
  }

  .site-menu__credit-icon--wide {
    --social-icon-width: 40px;
  }

  .site-menu__item {
    min-height: 56px;
    padding: 12px;
    font-size: 11px;
  }

  .retro-accordion__button {
    min-height: 56px;
    padding: 14px;
    font-size: 11px;
  }

  .retro-accordion__content {
    padding: 14px;
  }

  .recipe-copy {
    font-size: 9px;
    line-height: 1.9;
  }

  .recipe-list,
  .recipe-steps {
    padding-left: 18px;
  }

  .app-logo {
    width: min(180px, calc(75vw - 93px));
  }

  .retro-subheading {
    font-size: 16px;
  }

  .app-panel {
    padding: 14px;
  }

  .chef-scene {
    min-height: 690px;
    padding: 18px 10px 144px 90px;
  }

  .chef-avatar {
    width: 120px;
  }

  .retro-blockquote.chef-bubble {
    padding: 14px;
    font-size: 8px;
    line-height: 1.9;
  }

  .chef-bubble p {
    margin-bottom: 12px;
  }

  .setup-step,
  .start-console,
  .timer-console {
    padding: 14px;
  }

  .choice-grid,
  .choice-grid--two,
  .choice-grid--three,
  .choice-grid--five,
  .timer-actions {
    grid-template-columns: 1fr;
  }

  .retro-button,
  .retro-button--medium,
  .retro-button--large {
    font-size: 11px;
    padding: 10px 12px;
  }

  .timer-display {
    font-size: 32px;
  }

  .time-preview strong {
    font-size: 20px;
  }

  .chicken-stage {
    min-height: 260px;
  }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .status-veil {
    display: block;
  }

  .retro-header {
    padding-top: max(28px, calc(env(safe-area-inset-top, 0px) + 14px));
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::before,
  body::after,
  .stage-sky,
  .stage-sky::before,
  .stage-sky::after,
  .day-cloud,
  .night-star,
  .office-helper__bubble.is-leaving,
  .chicken-stage {
    animation: none;
  }

  .office-helper__bubble.is-leaving {
    opacity: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .menu-toggle,
  .site-menu__item,
  .site-menu__credit-icon,
  .retro-button,
  .choice-button,
  .retro-accordion__button,
  .office-helper,
  a,
  button,
  [role="button"],
  input,
  select,
  textarea,
  label,
  summary {
    cursor: url("./assets/cursor/cursor_hover.png") 2 2, pointer;
  }
}
