/* ========================================================= OMELET RICE COOKING cooking-game.css 4:3 플래시 게임풍 / 2000년대 개인 홈페이지 감성 ========================================================= */ /* ========================================================= 1. 기본 초기화 ========================================================= */ * { box-sizing: border-box; } html, body { width: 100%; min-height: 100%; margin: 0; padding: 0; } button, input, select, textarea { font: inherit; } button { touch-action: manipulation; } img { display: block; max-width: 100%; } [hidden] { display: none !important; } /* ========================================================= 2. 페이지 전체 ========================================================= */ .cooking-body { min-height: 100vh; margin: 0; padding: 24px 12px; background-color: #ffd6ea; background-image: linear-gradient( 45deg, rgba(255, 102, 170, 0.09) 25%, transparent 25% ), linear-gradient( -45deg, rgba(255, 102, 170, 0.09) 25%, transparent 25% ), linear-gradient( 45deg, transparent 75%, rgba(255, 102, 170, 0.09) 75% ), linear-gradient( -45deg, transparent 75%, rgba(255, 102, 170, 0.09) 75% ); background-size: 28px 28px; background-position: 0 0, 0 14px, 14px -14px, -14px 0; color: #4b2b39; font-family: "MS PGothic", "MS Gothic", "Gulim", "Dotum", Arial, sans-serif; font-size: 14px; overflow-x: hidden; } .cooking-page { width: 100%; min-height: calc(100vh - 48px); display: flex; align-items: center; justify-content: center; } /* ========================================================= 3. 게임 외곽 프레임 ========================================================= */ .cooking-game-shell { position: relative; width: min(800px, calc(100vw - 24px)); aspect-ratio: 4 / 3; min-height: 600px; overflow: hidden; background: linear-gradient( to bottom, #fffafd 0%, #fff0f8 45%, #ffe6f2 100% ); border-top: 5px solid #ffffff; border-left: 5px solid #ffffff; border-right: 5px solid #cc6699; border-bottom: 5px solid #cc6699; outline: 3px solid #ff88cc; box-shadow: 7px 7px 0 rgba(153, 63, 110, 0.42), 0 0 18px rgba(255, 102, 170, 0.45), inset 0 0 18px rgba(255, 153, 204, 0.3); isolation: isolate; } .cooking-game-shell::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient( circle, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px ); background-size: 18px 18px; opacity: 0.34; } /* ========================================================= 4. 공통 화면 ========================================================= */ .cooking-screen { position: absolute; inset: 0; display: none; width: 100%; height: 100%; overflow: hidden; } .cooking-screen.is-active { display: flex; } .cooking-screen.is-entering { animation: cookingScreenEnter 0.42s ease-out both; } .cooking-screen.is-leaving { animation: cookingScreenLeave 0.32s ease-in both; pointer-events: none; } @keyframes cookingScreenEnter { 0% { opacity: 0; transform: scale(0.985); filter: brightness(1.2); } 100% { opacity: 1; transform: scale(1); filter: brightness(1); } } @keyframes cookingScreenLeave { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.02); } } /* ========================================================= 5. 공통 버튼 ========================================================= */ .cooking-main-button, .cooking-nav-button, .cooking-option-button { position: relative; border-top: 3px solid #ffffff; border-left: 3px solid #ffffff; border-right: 3px solid #bd678f; border-bottom: 3px solid #bd678f; color: #6d294c; font-family: "MS PGothic", "MS Gothic", "Gulim", Arial, sans-serif; font-weight: bold; text-shadow: 1px 1px 0 #ffffff; cursor: pointer; outline: none; transition: filter 0.12s ease, transform 0.08s ease, background-color 0.12s ease; } .cooking-main-button:hover, .cooking-nav-button:hover:not(:disabled), .cooking-option-button:hover { filter: brightness(1.06); } .cooking-main-button:focus-visible, .cooking-nav-button:focus-visible, .cooking-option-button:focus-visible { outline: 3px dotted #ff3399; outline-offset: 3px; } .cooking-main-button:active, .cooking-nav-button:active:not(:disabled), .cooking-option-button:active { transform: translate(2px, 2px); border-top-color: #bd678f; border-left-color: #bd678f; border-right-color: #ffffff; border-bottom-color: #ffffff; } .cooking-main-button:disabled, .cooking-nav-button:disabled, .cooking-option-button:disabled { color: #a9979e; background: #ddd6d9; border-top-color: #eeeeee; border-left-color: #eeeeee; border-right-color: #aaa0a4; border-bottom-color: #aaa0a4; cursor: not-allowed; filter: grayscale(0.45); opacity: 0.72; } /* ========================================================= 6. 타이틀 화면 ========================================================= */ .cooking-title-screen { position: relative; flex-direction: column; align-items: center; justify-content: flex-start; padding: 22px 34px 16px; text-align: center; background: radial-gradient( circle at 50% 38%, rgba(255, 255, 255, 0.95) 0, rgba(255, 245, 250, 0.92) 40%, rgba(255, 220, 237, 0.94) 100% ); } .cooking-title-screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient( to bottom, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 4px ); opacity: 0.65; } .cooking-title-badge { position: relative; z-index: 2; display: inline-block; margin-bottom: 12px; padding: 5px 18px; background: linear-gradient( to bottom, #ffffff, #ffe6f2 ); border-top: 2px solid #ffffff; border-left: 2px solid #ffffff; border-right: 2px solid #cc6699; border-bottom: 2px solid #cc6699; outline: 1px solid #ff99cc; color: #cc3366; font-size: 12px; font-weight: bold; letter-spacing: 2px; text-shadow: 1px 1px 0 #ffffff; box-shadow: 2px 2px 0 rgba(204, 102, 153, 0.32); } /* ========================================================= 7. 타이틀 비주얼 ========================================================= */ .cooking-title-visual { position: relative; z-index: 2; width: 540px; height: 235px; max-width: 100%; margin: 0 auto 4px; } /* 반짝이 */ .cooking-title-sparkle { position: absolute; color: #ff66aa; font-weight: bold; text-shadow: 1px 1px 0 #ffffff, 0 0 7px rgba(255, 102, 170, 0.75); animation: cookingSparkle 1.6s ease-in-out infinite; } .sparkle-a { top: 28px; left: 60px; font-size: 33px; } .sparkle-b { top: 66px; right: 36px; font-size: 25px; animation-delay: 0.4s; } .sparkle-c { top: 12px; right: 145px; font-size: 39px; animation-delay: 0.8s; } @keyframes cookingSparkle { 0%, 100% { opacity: 0.45; transform: scale(0.85) rotate(0deg); } 50% { opacity: 1; transform: scale(1.18) rotate(12deg); } } /* 프라이팬 */ .cooking-title-pan { position: absolute; left: 72px; top: 36px; width: 270px; height: 165px; border-radius: 50%; background: radial-gradient( ellipse at 50% 42%, #777777 0%, #3f3f3f 65%, #262626 100% ); border: 8px solid #575757; box-shadow: inset 0 0 14px #111111, 8px 10px 0 rgba(83, 39, 59, 0.16); transform: rotate(-7deg); animation: cookingPanFloat 2.6s ease-in-out infinite; } .cooking-title-handle { position: absolute; left: -112px; top: 61px; width: 125px; height: 32px; border-radius: 20px 4px 4px 20px; background: linear-gradient( to bottom, #707070, #333333 ); border: 4px solid #262626; transform: rotate(-4deg); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), 3px 4px 0 rgba(0, 0, 0, 0.16); } .cooking-title-omelet { position: absolute; left: 41px; top: 35px; width: 180px; height: 94px; border-radius: 55% 48% 52% 46% / 58% 50% 45% 50%; background: linear-gradient( 145deg, #fff3a6 0%, #ffd95f 55%, #f6b938 100% ); border: 4px solid #e7a72b; box-shadow: inset 8px 10px 10px rgba(255, 255, 255, 0.5), 3px 5px 0 rgba(96, 63, 27, 0.23); } .cooking-title-ketchup { position: absolute; left: 50%; top: 49%; transform: translate(-50%, -50%) rotate(8deg); color: #e5323b; font-family: Arial, sans-serif; font-size: 55px; font-weight: bold; line-height: 1; text-shadow: 2px 2px 0 #a81520, 0 0 2px #ffffff; } @keyframes cookingPanFloat { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-5px); } } /* 타이틀 캐릭터 */ .cooking-title-character { position: absolute; right: 68px; bottom: 6px; width: 162px; height: 205px; animation: cookingCharacterIdle 2.4s ease-in-out infinite; } .cooking-title-character-head { position: relative; z-index: 2; width: 124px; height: 108px; margin: 0 auto -9px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 46% 46% 42% 42%; background: radial-gradient( circle at 50% 34%, #fff8f2, #ffd9c9 ); border: 4px solid #7b4a5e; color: #4e2738; font-size: 23px; font-weight: bold; box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.66), 4px 5px 0 rgba(104, 46, 70, 0.18); } .cooking-title-character-head::before { content: ""; position: absolute; left: -5px; top: -18px; width: 128px; height: 63px; border-radius: 55% 48% 35% 35%; background: linear-gradient( 135deg, #563146, #33202d ); border: 4px solid #281721; z-index: -1; } .cooking-title-character-body { width: 154px; height: 108px; padding-top: 41px; border-radius: 46% 46% 16px 16px; background: linear-gradient( to bottom, #ff9bc9, #e95d9c ); border: 4px solid #973d69; color: #ffffff; font-size: 15px; font-weight: bold; letter-spacing: 3px; text-shadow: 1px 1px 0 #9f3768; box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.35), 4px 6px 0 rgba(100, 38, 66, 0.2); } @keyframes cookingCharacterIdle { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(1deg); } } /* ========================================================= 8. 타이틀 텍스트 ========================================================= */ .cooking-title-text { position: relative; z-index: 2; margin-top: -1px; } .cooking-title-en { margin: 0 0 2px; color: #cc6699; font-family: "Courier New", monospace; font-size: 13px; font-weight: bold; letter-spacing: 4px; text-shadow: 1px 1px 0 #ffffff; } .cooking-title-text h1 { margin: 0; color: #ff3399; font-size: 42px; line-height: 1.12; letter-spacing: 3px; text-shadow: 3px 3px 0 #ffffff, 4px 4px 0 #cc6699, 0 0 10px rgba(255, 102, 170, 0.55); } .cooking-title-sub { margin: 8px 0 0; color: #75465a; font-size: 14px; font-weight: bold; text-shadow: 1px 1px 0 #ffffff; } /* ========================================================= 9. 타이틀 버튼 ========================================================= */ .cooking-title-buttons { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 15px; } .cooking-main-button { min-width: 148px; padding: 9px 19px; background: linear-gradient( to bottom, #ffffff 0%, #fff2c0 48%, #ffc65d 100% ); color: #8f365f; font-size: 14px; box-shadow: 2px 2px 0 rgba(150, 63, 100, 0.25), inset 0 0 4px rgba(255, 255, 255, 0.75); } .cooking-main-button:hover { background: linear-gradient( to bottom, #ffffff, #ffe6f2 52%, #ff9fcb ); color: #e3006f; } .cooking-start-button { min-width: 175px; background: linear-gradient( to bottom, #fffef0, #ffd96f 55%, #f5a937 ); color: #9d3e2d; animation: cookingStartGlow 1.5s ease-in-out infinite; } @keyframes cookingStartGlow { 0%, 100% { box-shadow: 2px 2px 0 rgba(150, 63, 100, 0.25), 0 0 5px rgba(255, 173, 66, 0.3); } 50% { box-shadow: 2px 2px 0 rgba(150, 63, 100, 0.25), 0 0 13px rgba(255, 173, 66, 0.92); } } .cooking-small-button { min-width: 118px; padding-left: 12px; padding-right: 12px; font-size: 12px; } .cooking-title-version { position: absolute; right: 12px; bottom: 8px; margin: 0; color: #a07185; font-family: "Courier New", monospace; font-size: 10px; letter-spacing: 1px; } /* ========================================================= 10. 본게임 화면 ========================================================= */ .cooking-play-screen { flex-direction: column; background: linear-gradient( to bottom, #fffafd 0%, #fff0f8 47%, #ffdce9 100% ); } /* ========================================================= 11. 게임 헤더 ========================================================= */ .cooking-game-header { flex: 0 0 88px; display: flex; align-items: center; gap: 16px; padding: 12px 18px; background: linear-gradient( to bottom, #ffffff 0%, #ffe9f4 58%, #ffcfe5 100% ); border-bottom: 3px solid #ff88cc; box-shadow: inset 0 -2px 0 #ffffff, 0 3px 0 rgba(204, 102, 153, 0.2); } .cooking-step-number { min-width: 105px; padding: 8px 10px; background-color: #080808; border: 3px inset #999999; color: #65ff9a; font-family: "Courier New", monospace; font-size: 15px; font-weight: bold; letter-spacing: 1px; text-align: center; text-shadow: 0 0 4px #33ff77, 0 0 7px #116633; box-shadow: inset 0 0 8px #222222; } .cooking-game-header h2 { margin: 0 0 4px; color: #ff3399; font-size: 24px; letter-spacing: 1px; text-shadow: 2px 2px 0 #ffffff; } .cooking-game-header p { margin: 0; color: #795365; font-size: 12px; line-height: 1.45; } /* ========================================================= 12. 메인 요리 구역 ========================================================= */ .cooking-main-area { position: relative; flex: 1 1 auto; min-height: 285px; display: grid; grid-template-columns: 165px 1fr; padding: 13px 17px 11px; background: linear-gradient( to bottom, rgba(255, 255, 255, 0.75), rgba(255, 238, 246, 0.55) ); } /* ========================================================= 13. 보관 그릇 구역 ========================================================= */ .cooking-storage-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding-right: 13px; border-right: 1px dotted #ff99cc; } .cooking-storage-bowl { position: relative; width: 126px; min-height: 88px; padding: 20px 8px 8px; border-radius: 12px 12px 48% 48% / 12px 12px 42% 42%; background: linear-gradient( to bottom, #ffffff 0%, #fff0f8 50%, #e8bfd2 100% ); border-top: 3px solid #ffffff; border-left: 3px solid #ffffff; border-right: 3px solid #bd7a99; border-bottom: 3px solid #bd7a99; box-shadow: 3px 4px 0 rgba(102, 47, 72, 0.17), inset 0 -7px 10px rgba(204, 102, 153, 0.13); text-align: center; transition: opacity 0.2s ease, transform 0.25s ease, filter 0.2s ease; } .cooking-storage-bowl::before { content: ""; position: absolute; left: 7px; right: 7px; top: 10px; height: 15px; border-radius: 50%; background: #f2d5e3; border: 2px solid #c98aa7; box-shadow: inset 0 3px 5px rgba(120, 60, 88, 0.24); } .cooking-storage-bowl.is-empty { opacity: 0.62; filter: grayscale(0.2); } .cooking-storage-bowl.is-filled { animation: cookingStoragePop 0.42s ease-out; } @keyframes cookingStoragePop { 0% { transform: scale(0.72); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } } .cooking-storage-label { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); min-width: 58px; padding: 3px 8px; background: #fff8cc; border: 1px solid #cc8ca9; color: #a34370; font-size: 11px; font-weight: bold; white-space: nowrap; box-shadow: 1px 1px 0 #ffffff; } .cooking-storage-content { position: relative; z-index: 2; min-height: 49px; display: flex; align-items: center; justify-content: center; color: #60394a; font-size: 11px; line-height: 1.35; word-break: keep-all; } /* ========================================================= 14. 작업 구역 ========================================================= */ .cooking-work-area { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 16px 26px; } .cooking-work-shadow { position: absolute; left: 50%; bottom: 37px; width: 330px; height: 43px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient( ellipse, rgba(96, 48, 68, 0.25), transparent 67% ); filter: blur(2px); } .cooking-plate { position: relative; z-index: 2; width: 350px; height: 206px; max-width: 94%; border-radius: 50%; background: radial-gradient( ellipse at 50% 44%, #ffffff 0%, #fffdfd 55%, #eadfe4 72%, #cfaebc 100% ); border: 5px solid #ffffff; outline: 3px solid #d6a8bb; box-shadow: inset 0 0 13px rgba(123, 70, 92, 0.2), 4px 7px 0 rgba(85, 42, 60, 0.18); overflow: hidden; transition: transform 0.32s ease, filter 0.32s ease; } .cooking-plate.is-bouncing { animation: cookingPlateBounce 0.55s ease; } @keyframes cookingPlateBounce { 0%, 100% { transform: translateY(0) scale(1); } 35% { transform: translateY(-10px) scale(1.03); } 65% { transform: translateY(2px) scale(0.99); } } /* 밥 미리보기 */ .cooking-rice-preview { position: absolute; left: 50%; top: 49%; width: 220px; height: 120px; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; border-radius: 57% 48% 53% 45% / 53% 49% 48% 52%; color: #704f5b; font-size: 14px; font-weight: bold; text-align: center; transition: background 0.25s ease, border 0.25s ease, transform 0.25s ease, opacity 0.25s ease; } .cooking-rice-preview.has-food { border: 3px solid rgba(145, 97, 74, 0.45); box-shadow: inset 8px 10px 11px rgba(255, 255, 255, 0.44), 3px 5px 0 rgba(80, 45, 30, 0.12); } .cooking-rice-preview.rice-blackRice { background: radial-gradient( circle, #57404f 0 3px, #72546a 4px 6px, transparent 7px ), #71536b; background-size: 14px 12px; color: #ffffff; } .cooking-rice-preview.rice-barleyRice { background: radial-gradient( ellipse, #b88e5c 0 2px, #e0bd83 3px 5px, transparent 6px ), #dfbf88; background-size: 13px 10px; } .cooking-rice-preview.rice-whiteRice { background: radial-gradient( ellipse, #ffffff 0 3px, #ece8dc 4px 5px, transparent 6px ), #f7f2df; background-size: 13px 10px; } .cooking-rice-preview.rice-porridge { background: radial-gradient( ellipse, rgba(255, 255, 255, 0.8) 0 4px, transparent 5px ), #eee4d6; background-size: 18px 13px; filter: saturate(0.72); } .cooking-empty-text { display: block; width: 100%; color: #aa8090; font-size: 12px; font-weight: normal; text-shadow: 1px 1px 0 #ffffff; } /* ========================================================= 15. 속재료 미리보기 ========================================================= */ .cooking-filling-preview { position: absolute; inset: 28px 48px 29px; z-index: 3; pointer-events: none; } .cooking-filling-chip { position: absolute; min-width: 28px; min-height: 22px; padding: 3px 5px; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(100, 52, 64, 0.42); border-radius: 7px; color: #4a2c34; font-size: 9px; font-weight: bold; text-align: center; text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.48), 1px 2px 0 rgba(64, 33, 43, 0.18); animation: cookingIngredientAppear 0.24s ease-out both; } .cooking-filling-chip:nth-child(1) { left: 13%; top: 24%; transform: rotate(-9deg); } .cooking-filling-chip:nth-child(2) { left: 36%; top: 11%; transform: rotate(7deg); } .cooking-filling-chip:nth-child(3) { left: 62%; top: 25%; transform: rotate(-4deg); } .cooking-filling-chip:nth-child(4) { left: 22%; top: 56%; transform: rotate(5deg); } .cooking-filling-chip:nth-child(5) { left: 48%; top: 51%; transform: rotate(-7deg); } .cooking-filling-chip:nth-child(6) { left: 72%; top: 59%; transform: rotate(10deg); } .cooking-filling-chip:nth-child(7) { left: 8%; top: 73%; transform: rotate(-5deg); } .cooking-filling-chip:nth-child(8) { left: 37%; top: 76%; transform: rotate(8deg); } .cooking-filling-chip:nth-child(9) { left: 65%; top: 78%; transform: rotate(-8deg); } .cooking-filling-chip:nth-child(n + 10) { position: relative; display: inline-flex; margin: 3px; } @keyframes cookingIngredientAppear { 0% { opacity: 0; transform: scale(0.5) rotate(-18deg); } 70% { opacity: 1; transform: scale(1.12) rotate(3deg); } 100% { opacity: 1; } } /* 재료별 임시 색상 */ .filling-chicken { background: #f1b484; } .filling-ham { background: #f58da0; } .filling-shrimp { background: #ff9d73; border-radius: 50%; } .filling-tuna { background: #c9b0a0; } .filling-chocolate { background: #71442e; color: #ffffff; text-shadow: 1px 1px 0 #2f1a11; } .filling-onion { background: #f4e6c4; } .filling-carrot { background: #ff8a35; } .filling-peas { background: #7eb54c; border-radius: 50%; } .filling-egg { background: #ffe56b; border-radius: 50%; } .filling-garlic { background: #f5efda; } .filling-cheese { background: #ffd54c; } .filling-mushroom { background: #b59b80; } .filling-pineapple { background: #ffe153; } .filling-broccoli { background: #39924a; color: #ffffff; } .filling-edibleGold { background: linear-gradient( 135deg, #fff3a0      0%,
      #ffd84d 36%,
      #fff7b8 52%,
      #c99516 72%,
      #fff070 100%
    );

  color: #8a5b00;

  border-color: #c99516;

  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    0 0 7px rgba(255, 215, 62, 0.85),
    1px 2px 0 rgba(91, 61, 0, 0.22);

  animation:
    cookingIngredientAppear 0.24s ease-out both,
    cookingGoldShine 1.1s ease-in-out infinite;
}

@keyframes cookingGoldShine {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.35);
  }
}


/* =========================================================
   16. 소스 미리보기
========================================================= */

.cooking-sauce-preview {
  position: absolute;

  left: 50%;
  top: 49%;

  z-index: 4;

  width: 190px;
  height: 87px;

  transform: translate(-50%, -50%);

  pointer-events: none;
}

.cooking-sauce-preview::before,
.cooking-sauce-preview::after {
  content: "";

  position: absolute;

  display: none;
}

.cooking-sauce-preview.sauce-ketchupHeart::before {
  content: "♡";

  display: block;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%) rotate(4deg);

  color: #e32d3d;

  font-family: Arial, sans-serif;
  font-size: 72px;
  font-weight: bold;
  line-height: 1;

  text-shadow:
    2px 2px 0 #9f1825,
    0 0 3px #ffffff;
}

.cooking-sauce-preview.sauce-salsaRoja::before {
  display: block;

  left: 18px;
  right: 18px;
  top: 25px;

  height: 37px;

  border-radius: 45% 55% 48% 52%;

  background:
    radial-gradient(
      circle,
      rgba(255, 203, 112, 0.8) 0 2px,
      transparent 3px
    ),
    #bf2d2d;

  background-size: 17px 15px;

  border: 3px solid #8f1919;

  opacity: 0.92;

  transform: rotate(-3deg);

  box-shadow:
    inset 0 4px 7px rgba(255, 255, 255, 0.24),
    1px 3px 0 rgba(87, 21, 21, 0.23);
}

.cooking-sauce-preview.sauce-creamSauce::before {
  display: block;

  left: 14px;
  right: 14px;
  top: 21px;

  height: 43px;

  border-radius: 50%;

  background:
    linear-gradient(
      165deg,
      #fffdf0,
      #f5e4bc
    );

  border: 3px solid #d5c298;

  opacity: 0.93;

  transform: rotate(3deg);

  box-shadow:
    inset 0 5px 8px rgba(255, 255, 255, 0.8),
    1px 3px 0 rgba(103, 82, 46, 0.14);
}

.cooking-sauce-preview.sauce-mayonnaise::before {
  content: "〰〰〰";

  display: block;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%) rotate(-8deg);

  color: #fff7d9;

  font-family: Arial, sans-serif;
  font-size: 35px;
  font-weight: bold;

  white-space: nowrap;

  text-shadow:
    2px 2px 0 #d6c69b,
    0 0 2px #ffffff;
}

.cooking-sauce-preview.sauce-gochujang::before {
  display: block;

  left: 19px;
  right: 19px;
  top: 27px;

  height: 35px;

  border-radius: 50% 44% 48% 53%;

  background:
    linear-gradient(
      to bottom,
      #c42125,
      #851014
    );

  border: 3px solid #6e0a0d;

  transform: rotate(2deg);

  box-shadow:
    inset 0 4px 7px rgba(255, 255, 255, 0.18),
    1px 3px 0 rgba(67, 5, 8, 0.28);
}

.cooking-sauce-preview.sauce-none::before {
  content: "NO SAUCE";

  display: block;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  padding: 3px 7px;

  background-color: rgba(255, 255, 255, 0.75);

  border: 1px dashed #b894a3;

  color: #9b7182;

  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: bold;

  white-space: nowrap;
}


/* =========================================================
   17. 미리보기 설명
========================================================= */

.cooking-preview-caption {
  position: absolute;

  left: 50%;
  bottom: 3px;

  z-index: 5;

  transform: translateX(-50%);

  width: min(420px, 88%);

  padding: 5px 10px;

  background-color: rgba(255, 255, 255, 0.84);

  border: 1px dotted #d28daa;

  color: #76495c;

  font-size: 11px;
  line-height: 1.35;

  text-align: center;

  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.8);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* =========================================================
   18. 선택 영역
========================================================= */

.cooking-selection-area {
  flex: 0 0 auto;

  min-height: 109px;

  padding: 9px 15px;

  background:
    linear-gradient(
      to bottom,
      #ffddea,
      #ffc6dd
    );

  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #d4789f;

  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.44);
}

.cooking-option-grid {
  width: 100%;
  min-height: 87px;

  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-content: center;
  gap: 7px;
}

.cooking-option-grid.option-count-4 {
  grid-template-columns: repeat(4, 1fr);

  max-width: 570px;
  margin: 0 auto;
}

.cooking-option-grid.option-count-6 {
  grid-template-columns: repeat(6, 1fr);
}

.cooking-option-grid.option-count-15 {
  grid-template-columns: repeat(5, 1fr);
}

.cooking-option-button {
  min-width: 0;
  min-height: 36px;

  padding: 5px 4px;

  background:
    linear-gradient(
      to bottom,
      #fffef1 0%,
      #ffe991 54%,
      #ffc24a 100%
    );

  border-width: 2px;

  color: #793d30;

  font-size: 11px;
  line-height: 1.2;

  word-break: keep-all;

  box-shadow:
    1px 2px 0 rgba(130, 57, 82, 0.2),
    inset 0 0 4px rgba(255, 255, 255, 0.76);
}

.cooking-option-button:hover {
  background:
    linear-gradient(
      to bottom,
      #ffffff,
      #ffd6ea 55%,
      #ff9cc8
    );

  color: #d31367;
}

.cooking-option-button.is-selected {
  transform: translate(1px, 1px);

  background:
    linear-gradient(
      to bottom,
      #ff9ac6,
      #e95798
    );

  border-top-color: #a54370;
  border-left-color: #a54370;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;

  color: #ffffff;

  text-shadow:
    1px 1px 0 #8d2d59;

  box-shadow:
    inset 2px 3px 5px rgba(95, 28, 57, 0.28);
}

/* =========================================================
   19. 하단 내비게이션
========================================================= */

.cooking-navigation {
  flex: 0 0 57px;

  display: grid;
  grid-template-columns: 125px 1fr 125px;
  align-items: center;
  gap: 10px;

  padding: 8px 14px;

  background:
    linear-gradient(
      to bottom,
      #eeeeee,
      #cacaca
    );

  border-top: 3px solid #ffffff;

  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.cooking-nav-button {
  min-height: 34px;

  padding: 6px 10px;

  background:
    linear-gradient(
      to bottom,
      #ffffff,
      #e4e4e4
    );

  color: #444444;

  font-size: 12px;

  box-shadow: 1px 1px 0 #999999;
}

.cooking-next-button:not(:disabled) {
  background:
    linear-gradient(
      to bottom,
      #fffce2,
      #ffd65d
    );

  color: #963c34;
}

.cooking-selection-status {
  min-width: 0;

  padding: 6px 10px;

  background-color: #101010;

  border: 2px inset #888888;

  color: #64ff96;

  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;

  text-align: center;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  text-shadow:
    0 0 4px #35ff71;

  box-shadow: inset 0 0 7px #222222;
}


/* =========================================================
   21. 단계 전환 애니메이션
========================================================= */

.cooking-work-area.is-step-finishing .cooking-plate {
  animation: cookingStepFinish 0.75s ease-in-out both;
}

@keyframes cookingStepFinish {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  30% {
    transform: scale(1.06) rotate(-2deg);
    filter: brightness(1.25);
  }

  65% {
    transform: scale(0.82) translateY(-8px);
    filter: brightness(1.08);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.cooking-work-area.is-changing {
  animation: cookingWorkChange 0.46s ease both;
}

@keyframes cookingWorkChange {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  45% {
    opacity: 0;
    transform: translateX(-24px);
  }

  55% {
    opacity: 0;
    transform: translateX(24px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.cooking-option-grid.is-changing {
  animation: cookingOptionsChange 0.4s ease both;
}

@keyframes cookingOptionsChange {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  48% {
    opacity: 0;
    transform: translateY(15px);
  }

  52% {
    opacity: 0;
    transform: translateY(-12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   22. 결과 화면 기본
========================================================= */

.cooking-result-screen {
  flex-direction: column;

  background:
    linear-gradient(
      to bottom,
      #fff8fc,
      #ffdce9
    );
}

.cooking-result-scene {
  position: relative;

  flex: 1 1 auto;
  min-height: 440px;

  overflow: hidden;

  background:
    linear-gradient(
      to bottom,
      #fffdf5 0%,
      #ffe8da 67%,
      #d5a37e 68%,
      #b67858 100%
    );
}

.cooking-result-scene::before {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  top: 68%;

  height: 6px;

  background-color: #7d4d3d;

  box-shadow:
    0 4px 0 rgba(255, 255, 255, 0.26);
}


/* =========================================================
   23. 결과 캐릭터
========================================================= */

.cooking-result-character {
  position: absolute;

  left: 15px;
  bottom: 35px;

  z-index: 5;

  width: 350px;
  height: 390px;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.cooking-result-character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(5px 7px 3px rgba(76, 30, 50, 0.28));
}

/* Title image assets */
.cooking-title-pan {
  left: 25px;
  top: 12px;
  z-index: 3;
  width: 390px;
  height: 235px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.cooking-title-pan img,
.cooking-title-knife img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.cooking-title-pan img {
  filter: drop-shadow(8px 10px 4px rgba(83, 39, 59, 0.22));
}

.cooking-title-knife {
  position: absolute;
  right: 0;
  top: 65px;
  z-index: 5;
  width: 300px;
  height: 140px;
  transform: rotate(-15deg);
  animation: cookingKnifeFloat 2.1s ease-in-out infinite alternate;
}

.cooking-title-knife img {
  filter: drop-shadow(6px 7px 3px rgba(45, 25, 33, 0.3));
}

@keyframes cookingKnifeFloat {
  from {
    transform: translateY(0) rotate(-15deg);
  }

  to {
    transform: translateY(-5px) rotate(-11deg);
  }
}

@media screen and (max-width: 820px) {
  .cooking-title-pan {
    left: 1%;
    top: 4%;
    width: 72%;
    height: 100%;
  }

  .cooking-title-knife {
    right: -2%;
    top: 27%;
    width: 55%;
    height: 59%;
  }
}

/* =========================================================
   Title shop scene
========================================================= */
.cooking-title-screen {
  padding-top: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0 48px, rgba(255, 153, 204, 0.3) 48px 68px),
    linear-gradient(to bottom, #fff8e5, #ffe8f3);
}

.cooking-title-badge {
  margin-bottom: 5px;
  z-index: 8;
}

.cooking-title-visual {
  width: 720px;
  height: 295px;
  margin-bottom: -5px;
  overflow: hidden;
  border: 3px solid #ef83b8;
  background:
    repeating-linear-gradient(90deg, transparent 0 37px, rgba(255, 171, 207, 0.18) 37px 40px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 183, 119, 0.16) 31px 34px),
    #fff6dc;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.75),
    4px 5px 0 rgba(174, 73, 121, 0.25);
}

.cooking-shop-awning {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  height: 63px;
  background:
    repeating-linear-gradient(90deg, #ff86bc 0 48px, #fff9fc 48px 86px);
  border-bottom: 5px solid #ef6fa8;
  box-shadow: 0 7px 0 rgba(255, 255, 255, 0.65);
}

.cooking-shop-awning::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -25px;
  height: 25px;
  background:
    radial-gradient(circle at 25px 0, #ff86bc 0 24px, transparent 25px) 0 0 / 86px 25px repeat-x,
    radial-gradient(circle at 68px 0, #fff9fc 0 24px, transparent 25px) 0 0 / 86px 25px repeat-x;
}

.cooking-shop-window {
  position: absolute;
  left: 50%;
  top: 86px;
  z-index: 1;
  width: 185px;
  height: 130px;
  transform: translateX(-50%);
  overflow: hidden;
  background: linear-gradient(145deg, #dffaff, #8dddf2);
  border: 7px solid #fff;
  outline: 3px solid #ec9bc0;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.75);
}

.cooking-shop-window::before,
.cooking-shop-window::after {
  content: "";
  position: absolute;
  background: #fff;
}

.cooking-shop-window::before {
  left: 50%;
  top: 0;
  width: 5px;
  height: 100%;
}

.cooking-shop-window::after {
  left: 0;
  top: 48%;
  width: 100%;
  height: 5px;
}

.cooking-shop-curtain {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(65deg, transparent 46%, rgba(255, 255, 255, 0.72) 47% 53%, transparent 54%),
    linear-gradient(-65deg, transparent 46%, rgba(255, 255, 255, 0.72) 47% 53%, transparent 54%);
}

.cooking-shop-character {
  position: absolute;
  left: 50%;
  top: 88px;
  z-index: 3;
  width: 195px;
  height: 195px;
  transform: translateX(-50%);
  pointer-events: none;
}

.cooking-shop-character img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  filter:
    drop-shadow(5px 7px 3px rgba(104, 46, 70, 0.24))
    drop-shadow(0 0 9px rgba(255, 239, 104, 0.72));
}

.cooking-shop-shelf {
  position: absolute;
  top: 104px;
  z-index: 2;
  width: 145px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 8px 7px 15px;
  background: rgba(255, 239, 247, 0.8);
  border: 4px solid #ef91bb;
  box-shadow: inset 0 -9px 0 #f7b4cf;
}

.cooking-shop-shelf-left { left: 14px; }
.cooking-shop-shelf-right { right: 14px; }

.cooking-shop-shelf span {
  position: relative;
  width: 38px;
  height: 27px;
  border-radius: 5px 5px 16px 16px;
  background: linear-gradient(#fff27b, #ffc832);
  border: 3px solid #e4aa24;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.45);
}

.cooking-shop-shelf span::after {
  content: "";
  position: absolute;
  right: -19px;
  top: 7px;
  width: 20px;
  height: 7px;
  border-radius: 5px;
  background: #e4aa24;
}

.cooking-title-pan {
  left: 128px;
  top: 119px;
  z-index: 5;
  width: 315px;
  height: 172px;
}

.cooking-title-knife {
  right: 126px;
  top: 134px;
  z-index: 6;
  width: 250px;
  height: 112px;
}

.cooking-shop-bubble {
  position: absolute;
  left: 50%;
  top: 86px;
  z-index: 7;
  display: block;
  width: 220px;
  min-height: 104px;
  padding: 18px 20px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #fffef5;
  border: 3px dotted #f1b342;
  color: #74406b;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.45;
  text-align: center;
  box-shadow: 3px 4px 0 rgba(163, 81, 118, 0.18);
  animation: cookingBubbleFloat 2.3s ease-in-out infinite;
}

.cooking-shop-bubble::after {
  content: none;
}

@keyframes cookingBubbleFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-7px);
  }
}

.cooking-shop-counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 54px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(#ffaad0, #ee75ac);
  border-top: 7px solid #fff4c8;
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.3);
}

.cooking-shop-counter span {
  width: 105px;
  height: 13px;
  border-radius: 3px 3px 9px 9px;
  background: #9f4f75;
  border-top: 4px solid #fff;
}

.cooking-title-text {
  z-index: 9;
  margin-top: 5px;
  padding: 5px 25px 7px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 3px solid #ff91c1;
  box-shadow: 3px 4px 0 rgba(174, 73, 121, 0.25);
}

.cooking-title-en,
.cooking-title-sub {
  display: none;
}

.cooking-title-text h1 {
  font-size: 32px;
}

.cooking-title-buttons {
  margin-top: 8px;
}

@media screen and (max-width: 820px) {
  .cooking-title-visual {
    width: 91vw;
    height: clamp(220px, 37vw, 295px);
  }

  .cooking-shop-shelf {
    top: 35%;
    width: 24%;
    height: 37%;
  }

  .cooking-shop-shelf-left { left: 2%; }
  .cooking-shop-shelf-right { right: 2%; }

  .cooking-title-visual .cooking-title-pan {
    left: 18%;
    top: 27%;
    width: 51%;
    height: 64%;
  }

  .cooking-title-visual .cooking-title-knife {
    right: 4%;
    top: 39%;
    width: 37%;
    height: 36%;
  }

  .cooking-shop-window {
    top: 29%;
    width: 27%;
    height: 45%;
  }

  .cooking-shop-bubble {
    left: 50%;
    top: 29%;
    width: 31%;
    min-height: 35%;
    padding: 9px 10px;
    font-size: clamp(7px, 1.6vw, 13px);
  }

  .cooking-title-text h1 {
    font-size: clamp(21px, 5vw, 32px);
  }
}

.cooking-result-scene.is-house-scene {
  background:
    linear-gradient(
      to bottom,
      #93cfff 0%,
      #dff3ff 55%,
      #9bd46f 56%,
      #62a84d 100%
    );
}

.cooking-result-scene.is-house-scene::before {
  display: none;
}

.cooking-result-scene.is-house-scene .cooking-result-character,
.cooking-result-scene.is-house-scene .cooking-result-dish,
.cooking-result-scene.is-house-scene .cooking-result-dialogue {
  display: none;
}

.cooking-result-scene.is-knife-flight .cooking-result-character,
.cooking-result-scene.is-knife-flight .cooking-result-dish,
.cooking-result-scene.is-knife-flight .cooking-result-dialogue {
  display: none;
}

.cooking-result-character.is-happy {
  animation: cookingHappyCharacter 0.7s ease-in-out infinite alternate;
}

@keyframes cookingHappyCharacter {
  from {
    transform: translateY(0) rotate(-1deg);
  }

  to {
    transform: translateY(-7px) rotate(1deg);
  }
}

.cooking-result-character.is-glare {
  transform: translateX(18px) scale(1.05);
  filter: contrast(1.12);
}

.cooking-result-character.is-dishwashing {
  left: auto;
  right: -5px;
  bottom: 18px;

  width: 390px;
  height: 420px;
  transform: none;
}


/* =========================================================
   24. 결과 음식
========================================================= */

.cooking-result-dish {
  position: absolute;

  right: 92px;
  bottom: 84px;

  z-index: 4;

  width: 330px;
  height: 190px;

  transition:
    transform 0.45s ease,
    opacity 0.45s ease;
}

.cooking-result-plate {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse,
      #ffffff 0%,
      #fffdfd 58%,
      #d9c3cc 75%,
      #b996a5 100%
    );

  border: 5px solid #ffffff;

  outline: 3px solid #cda4b5;

  box-shadow:
    5px 8px 0 rgba(74, 38, 49, 0.23);
}

#resultFood {
  width: 210px;
  height: 105px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 55% 48% 53% 47%;

  background:
    linear-gradient(
      145deg,
      #fff0a4,
      #ffd15a,
      #eaa72d
    );

  border: 4px solid #d89220;

  color: #a22a35;

  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: bold;

  text-align: center;

  box-shadow:
    inset 8px 9px 8px rgba(255, 255, 255, 0.43),
    3px 5px 0 rgba(81, 50, 25, 0.2);
}

.cooking-result-dish.is-eating {
  animation: cookingDishEat 0.75s ease-in-out;
}

@keyframes cookingDishEat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  45% {
    transform: translate(-145px, -75px) scale(0.72) rotate(-8deg);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

.cooking-result-dish.is-removed {
  transform: translateX(520px) rotate(8deg);
  opacity: 0;
}

/* =========================================================
   25. 결과 대화창
========================================================= */

.cooking-result-dialogue {
  position: absolute;

  left: 50%;
  bottom: 13px;

  z-index: 15;

  transform: translateX(-50%);

  width: 86%;
  min-height: 76px;

  padding: 21px 18px 12px;

  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.97),
      rgba(255, 231, 243, 0.97)
    );

  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-right: 3px solid #b95d88;
  border-bottom: 3px solid #b95d88;

  outline: 2px solid #ff88cc;

  color: #3f2330;

  font-size: 15px;
  line-height: 1.5;

  box-shadow:
    4px 4px 0 rgba(103, 44, 70, 0.35);
}

.cooking-result-name {
  position: absolute;

  left: 15px;
  top: -25px;

  min-width: 95px;

  padding: 4px 12px;

  background-color: #fff0f8;

  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #bd678f;
  border-bottom: 2px solid #bd678f;

  color: #cc3366;

  font-size: 12px;
  font-weight: bold;

  text-align: center;
}

.cooking-result-dialogue p {
  margin: 0;
  min-height: 24px;
}


/* =========================================================
   26. 식칼 연출
========================================================= */

.cooking-knife-object {
  position: absolute;

  left: -420px;
  right: auto;
  top: 145px;

  z-index: 55;

  width: 390px;
  height: 170px;

  display: none;

  transform: rotate(-12deg);
}

.cooking-knife-object.is-visible {
  display: block;
}

.cooking-knife-object.is-flying {
  animation: cookingKnifeFly 1.35s linear forwards;
}

.cooking-knife-object img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(6px 7px 3px rgba(0, 0, 0, 0.42));
}

@keyframes cookingKnifeFly {
  0% {
    left: -420px;
    top: 125px;
    transform: rotate(-12deg) scale(0.75);
  }

  45% {
    top: 165px;
    transform: rotate(340deg) scale(1.15);
  }

  100% {
    left: calc(100% + 420px);
    top: 105px;
    transform: rotate(720deg) scale(0.9);
  }
}


/* =========================================================
   27. 암전과 비명
========================================================= */

.cooking-blackout-overlay {
  position: absolute;
  inset: 0;

  z-index: 48;

  display: none;

  background-color: #000000;

  opacity: 0;
}

.cooking-blackout-overlay.is-visible {
  display: block;
  animation: cookingBlackout 1.8s steps(1, end) forwards;
}

@keyframes cookingBlackout {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  72% {
    opacity: 1;
  }

  73% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.cooking-scream-text {
  position: absolute;

  left: 50%;
  top: 42%;

  z-index: 70;

  display: none;

  transform: translate(-50%, -50%) rotate(-5deg);

  color: #ff2020;

  font-size: 50px;
  font-weight: bold;
  letter-spacing: 3px;

  text-shadow:
    4px 4px 0 #000000,
    0 0 10px #ffffff;

  white-space: nowrap;
}

.cooking-scream-text.is-visible {
  display: block;
  animation: cookingScream 0.6s ease-out both;
}

@keyframes cookingScream {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(-15deg);
  }

  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.25) rotate(5deg);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-5deg);
  }
}


/* =========================================================
   28. 집과 폭발 연출
========================================================= */

.cooking-house-object {
  position: absolute;

  left: 50%;
  bottom: 92px;

  z-index: 8;

  display: none;

  width: 330px;
  height: 285px;

  transform: translateX(-50%);
}

.cooking-house-object.is-visible {
  display: block;
}

.cooking-house-object.is-shaking {
  animation: cookingHouseShake 0.65s linear infinite;
}

.cooking-result-scene.is-house-scene .cooking-house-object {
  transform: translateX(-50%) scale(1.25);
  transform-origin: center bottom;
}

.cooking-result-scene.is-house-scene .cooking-house-object.is-shaking {
  animation: cookingExteriorHouseShake 0.16s linear infinite;
}

.cooking-house-roof {
  position: absolute;

  left: 16px;
  top: 5px;

  width: 224px;
  height: 104px;

  clip-path: polygon(50% 0, 100% 100%, 0 100%);

  background:
    repeating-linear-gradient(
      90deg,
      #a84d59 0 17px,
      #873a45 17px 19px
    );

  filter: drop-shadow(0 4px 0 #642c35);
}

.cooking-house-body {
  position: absolute;

  left: 36px;
  bottom: 0;

  width: 184px;
  height: 135px;

  background:
    repeating-linear-gradient(
      to bottom,
      #f2ca8c 0 16px,
      #dcae6c 16px 18px
    );

  border: 5px solid #774936;

  box-shadow:
    inset 0 5px 0 rgba(255, 255, 255, 0.28),
    6px 8px 0 rgba(59, 34, 25, 0.22);
}

.cooking-house-door {
  position: absolute;

  left: 68px;
  bottom: 0;

  width: 47px;
  height: 79px;

  background-color: #754637;

  border: 4px solid #4b2a21;
}

.cooking-house-door::after {
  content: "";

  position: absolute;

  right: 6px;
  top: 37px;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background-color: #ffd64f;
}

.cooking-house-window {
  position: absolute;

  left: 15px;
  top: 25px;

  width: 42px;
  height: 40px;

  background:
    linear-gradient(
      90deg,
      transparent 46%,
      #ffffff 46% 54%,
      transparent 54%
    ),
    linear-gradient(
      0deg,
      transparent 46%,
      #ffffff 46% 54%,
      transparent 54%
    ),
    #9bd8ec;

  border: 4px solid #754637;
}

@keyframes cookingHouseShake {
  0% {
    transform: translateX(-50%) translate(0, 0) rotate(0deg);
  }

  20% {
    transform: translateX(-50%) translate(-8px, 3px) rotate(-1deg);
  }

  40% {
    transform: translateX(-50%) translate(7px, -2px) rotate(1deg);
  }

  60% {
    transform: translateX(-50%) translate(-6px, -3px) rotate(-1deg);
  }

  80% {
    transform: translateX(-50%) translate(5px, 3px) rotate(1deg);
  }

  100% {
    transform: translateX(-50%) translate(0, 0) rotate(0deg);
  }
}

.cooking-explosion-object {
  position: absolute;

  left: 50%;
  top: 46%;

  z-index: 60;

  display: none;

  transform: translate(-50%, -50%);

  font-size: 210px;
  line-height: 1;

  filter: drop-shadow(0 0 15px #ff3c00);
}

.cooking-explosion-object.is-visible {
  display: block;
  animation: cookingExplosion 1.05s ease-out both;
}

@keyframes cookingExplosion {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1) rotate(-15deg);
    filter: brightness(2.5) blur(2px);
  }

  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3) rotate(8deg);
    filter: brightness(1.5) blur(0);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-3deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8) rotate(5deg);
  }
}


/* =========================================================
   29. 결과 카드
========================================================= */

.cooking-result-card {
  position: absolute;

  left: 50%;
  top: 50%;

  z-index: 90;

  display: none;

  transform: translate(-50%, -50%);

  width: 470px;
  max-width: 86%;

  padding: 22px 25px;

  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.98),
      rgba(255, 229, 242, 0.98)
    );

  border-top: 4px solid #ffffff;
  border-left: 4px solid #ffffff;
  border-right: 4px solid #bb5d88;
  border-bottom: 4px solid #bb5d88;

  outline: 3px solid #ff88cc;

  color: #542d3f;

  text-align: center;

  box-shadow:
    8px 8px 0 rgba(92, 38, 62, 0.42),
    0 0 24px rgba(255, 102, 170, 0.5);
}

.cooking-result-card.is-visible {
  display: block;
  animation: cookingResultCardIn 0.5s ease-out both;
}

@keyframes cookingResultCardIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) rotate(-2deg);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04) rotate(1deg);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }
}

.cooking-result-rank {
  display: inline-block;

  margin: 0 0 8px;
  padding: 5px 18px;

  background-color: #111111;

  border: 2px inset #888888;

  color: #ffff66;

  font-family: "Courier New", monospace;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 4px;

  text-shadow:
    0 0 5px #ffff33;
}

.cooking-result-card h2 {
  margin: 5px 0 8px;

  color: #ff3399;

  font-size: 30px;
  letter-spacing: 2px;

  text-shadow:
    2px 2px 0 #ffffff,
    3px 3px 0 #cc6699;
}

.cooking-result-card > p {
  line-height: 1.55;
}

.cooking-result-score {
  display: inline-block;

  margin: 10px 0 14px;
  padding: 5px 12px;

  background-color: #fff8cc;

  border: 1px solid #aa8293;

  color: #6b3a50;

  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: bold;
}

.cooking-result-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* 결과별 카드 강조 */

.cooking-result-card.result-perfect {
  background:
    linear-gradient(
      135deg,
      #ffffff,
      #fff9bf,
      #ffd9ec
    );

  box-shadow:
    8px 8px 0 rgba(92, 38, 62, 0.35),
    0 0 30px rgba(255, 213, 64, 0.9);
}

.cooking-result-card.result-good {
  background:
    linear-gradient(
      to bottom,
      #ffffff,
      #e8ffe9
    );

  outline-color: #83d995;
}

.cooking-result-card.result-awkward {
  background:
    linear-gradient(
      to bottom,
      #fffef3,
      #ece3cb
    );

  outline-color: #b9a77f;
}

.cooking-result-card.result-bad {
  background:
    linear-gradient(
      to bottom,
      #f3eeee,
      #c9b5bd
    );

  outline-color: #75515f;
}

.cooking-result-card.result-knife {
  background:
    linear-gradient(
      to bottom,
      #27030c,
      #050505
    );

  outline-color: #ff183e;

  color: #ffffff;

  box-shadow:
    8px 8px 0 #000000,
    0 0 30px rgba(255, 0, 50, 0.75);
}

.cooking-result-card.result-knife h2 {
  color: #ff204b;

  text-shadow:
    2px 2px 0 #000000,
    0 0 8px #ff0033;
}

.cooking-result-card.result-bankrupt {
  background:
    linear-gradient(
      135deg,
      #fff4a5,
      #d3a327,
      #fff9bd
    );

  outline-color: #9c6d00;

  box-shadow:
    8px 8px 0 rgba(89, 58, 0, 0.45),
    0 0 30px rgba(255, 211, 54, 0.9);
}

/* =========================================================
   30. 게임 설명 모달
========================================================= */

.cooking-modal {
  position: fixed;
  inset: 0;

  z-index: 1000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 18px;

  background-color: rgba(62, 28, 44, 0.64);

  backdrop-filter: blur(2px);
}

.cooking-modal.is-visible {
  display: flex;
  animation: cookingModalFade 0.22s ease-out both;
}

@keyframes cookingModalFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.cooking-modal-window {
  width: 440px;
  max-width: 100%;

  background-color: #fffafd;

  border-top: 4px solid #ffffff;
  border-left: 4px solid #ffffff;
  border-right: 4px solid #b95d88;
  border-bottom: 4px solid #b95d88;

  outline: 3px solid #ff88cc;

  box-shadow:
    7px 7px 0 rgba(74, 32, 51, 0.48);

  animation: cookingModalWindowIn 0.28s ease-out both;
}

@keyframes cookingModalWindowIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cooking-modal-title {
  padding: 9px 12px;

  background:
    linear-gradient(
      to bottom,
      #ffffff,
      #ffbfdc
    );

  border-bottom: 2px solid #d26b9a;

  color: #cc3366;

  font-size: 17px;
  font-weight: bold;
  letter-spacing: 2px;

  text-align: center;

  text-shadow: 1px 1px 0 #ffffff;
}

.cooking-modal-content {
  padding: 18px 21px 20px;

  color: #563745;

  font-size: 13px;
  line-height: 1.6;

  text-align: center;
}

.cooking-modal-content > p {
  margin-top: 0;

  color: #cc3366;

  font-weight: bold;
}

.cooking-modal-content ol {
  margin: 13px auto;
  padding-left: 28px;

  max-width: 330px;

  text-align: left;
}

.cooking-modal-content li {
  margin-bottom: 7px;
}

.cooking-help-notice {
  margin: 14px 0;
  padding: 9px 11px;

  background-color: #fff0f8;

  border: 1px dotted #ff88cc;

  color: #784f61;

  font-size: 11px;

  text-align: left;
}

.cooking-help-notice p {
  margin: 4px 0;
}


/* =========================================================
   31. 화면 흔들림
========================================================= */

.cooking-game-shell.is-shaking {
  animation: cookingScreenShake 0.48s linear;
}

@keyframes cookingScreenShake {
  0% {
    transform: translate(0, 0) rotate(0);
  }

  10% {
    transform: translate(-13px, 5px) rotate(-1deg);
  }

  20% {
    transform: translate(12px, -6px) rotate(1deg);
  }

  30% {
    transform: translate(-15px, -4px) rotate(-1.2deg);
  }

  40% {
    transform: translate(13px, 7px) rotate(1.1deg);
  }

  50% {
    transform: translate(-10px, 4px) rotate(-0.8deg);
  }

  60% {
    transform: translate(9px, -5px) rotate(0.8deg);
  }

  70% {
    transform: translate(-7px, 3px) rotate(-0.5deg);
  }

  80% {
    transform: translate(5px, -2px) rotate(0.4deg);
  }

  90% {
    transform: translate(-2px, 1px) rotate(-0.2deg);
  }

  100% {
    transform: translate(0, 0) rotate(0);
  }
}


/* =========================================================
   32. 모바일 및 작은 화면 대응
========================================================= */

@media screen and (max-width: 820px) {
  .cooking-body {
    padding: 12px 6px;
  }

  .cooking-page {
    min-height: calc(100vh - 24px);
  }

  .cooking-game-shell {
    width: min(800px, calc(100vw - 12px));
    min-height: 0;
  }

  .cooking-title-screen {
    padding:
      clamp(10px, 2.7vw, 22px)
      clamp(12px, 4vw, 34px)
      10px;
  }

  .cooking-title-badge {
    margin-bottom: 5px;

    padding: 3px 10px;

    font-size: clamp(7px, 1.5vw, 12px);
  }

  .cooking-title-visual {
    width: min(540px, 69vw);
    height: clamp(125px, 29vw, 235px);
  }

  .cooking-title-pan {
    left: 13%;
    top: 15%;

    width: 50%;
    height: 70%;

    border-width: clamp(4px, 1vw, 8px);
  }

  .cooking-title-handle {
    left: -41%;
    top: 38%;

    width: 46%;
    height: 20%;

    border-width: clamp(2px, 0.5vw, 4px);
  }

  .cooking-title-omelet {
    left: 15%;
    top: 21%;

    width: 68%;
    height: 57%;

    border-width: clamp(2px, 0.5vw, 4px);
  }

  .cooking-title-ketchup {
    font-size: clamp(27px, 7vw, 55px);
  }

  .cooking-title-character {
    right: 10%;
    bottom: 1%;

    width: 30%;
    height: 88%;
  }

  .cooking-title-character-head {
    width: 77%;
    height: 53%;

    border-width: clamp(2px, 0.5vw, 4px);

    font-size: clamp(12px, 3vw, 23px);
  }

  .cooking-title-character-head::before {
    left: -4%;
    top: -17%;

    width: 102%;
    height: 59%;

    border-width: clamp(2px, 0.5vw, 4px);
  }

  .cooking-title-character-body {
    width: 95%;
    height: 52%;

    padding-top: 19%;

    border-width: clamp(2px, 0.5vw, 4px);

    font-size: clamp(7px, 1.8vw, 15px);
  }

  .cooking-title-en {
    font-size: clamp(7px, 1.6vw, 13px);
    letter-spacing: clamp(1px, 0.5vw, 4px);
  }

  .cooking-title-text h1 {
    font-size: clamp(22px, 5.4vw, 42px);
  }

  .cooking-title-sub {
    margin-top: 4px;

    font-size: clamp(8px, 1.8vw, 14px);
  }

  .cooking-title-buttons {
    gap: 5px;

    margin-top: clamp(5px, 1.7vw, 15px);
  }

  .cooking-main-button {
    min-width: 0;

    padding:
      clamp(4px, 1.1vw, 9px)
      clamp(8px, 2.4vw, 19px);

    border-width: clamp(1px, 0.4vw, 3px);

    font-size: clamp(8px, 1.7vw, 14px);
  }

  .cooking-start-button {
    min-width: 0;
  }

  .cooking-title-version {
    right: 6px;
    bottom: 4px;

    font-size: clamp(5px, 1.2vw, 10px);
  }

  .cooking-game-header {
    flex-basis: clamp(52px, 11vw, 88px);

    gap: clamp(7px, 2vw, 16px);

    padding:
      clamp(6px, 1.5vw, 12px)
      clamp(8px, 2.3vw, 18px);
  }

  .cooking-step-number {
    min-width: clamp(66px, 13vw, 105px);

    padding: clamp(4px, 1vw, 8px);

    font-size: clamp(8px, 1.8vw, 15px);
  }

  .cooking-game-header h2 {
    margin-bottom: 1px;

    font-size: clamp(13px, 3vw, 24px);
  }

  .cooking-game-header p {
    font-size: clamp(7px, 1.45vw, 12px);
  }

  .cooking-main-area {
    min-height: 0;

    grid-template-columns: 21% 1fr;

    padding:
      clamp(6px, 1.6vw, 13px)
      clamp(8px, 2.1vw, 17px);
  }

  .cooking-storage-area {
    gap: clamp(6px, 2vw, 16px);

    padding-right: clamp(5px, 1.6vw, 13px);
  }

  .cooking-storage-bowl {
    width: min(126px, 16vw);
    min-height: clamp(45px, 11vw, 88px);

    padding:
      clamp(11px, 2.5vw, 20px)
      4px
      4px;

    border-width: clamp(1px, 0.4vw, 3px);
  }

  .cooking-storage-bowl::before {
    top: 6px;

    height: clamp(7px, 1.9vw, 15px);
  }

  .cooking-storage-label {
    top: -7px;

    min-width: 0;

    padding: 1px 4px;

    font-size: clamp(6px, 1.35vw, 11px);
  }

  .cooking-storage-content {
    min-height: clamp(25px, 6vw, 49px);

    font-size: clamp(6px, 1.35vw, 11px);
  }

  .cooking-work-area {
    padding:
      2px
      clamp(5px, 2vw, 16px)
      clamp(14px, 3.3vw, 26px);
  }

  .cooking-work-shadow {
    bottom: 16%;

    width: min(330px, 50vw);
    height: clamp(19px, 5.4vw, 43px);
  }

  .cooking-plate {
    width: min(350px, 48vw);
    height: min(206px, 28vw);

    border-width: clamp(2px, 0.7vw, 5px);

    outline-width: clamp(1px, 0.4vw, 3px);
  }

  .cooking-rice-preview {
    width: 63%;
    height: 58%;

    font-size: clamp(7px, 1.7vw, 14px);
  }

  .cooking-rice-preview.has-food {
    border-width: clamp(1px, 0.4vw, 3px);
  }

  .cooking-empty-text {
    font-size: clamp(6px, 1.45vw, 12px);
  }

  .cooking-filling-preview {
    inset:
      14%
      14%
      14%;
  }

  .cooking-filling-chip {
    min-width: clamp(14px, 3.5vw, 28px);
    min-height: clamp(11px, 2.8vw, 22px);

    padding: 1px 2px;

    border-width: clamp(1px, 0.3vw, 2px);

    font-size: clamp(5px, 1.1vw, 9px);
  }

  .cooking-sauce-preview {
    width: 56%;
    height: 44%;
  }

  .cooking-sauce-preview.sauce-ketchupHeart::before {
    font-size: clamp(32px, 9vw, 72px);
  }

  .cooking-preview-caption {
    bottom: 1px;

    width: 87%;

    padding: 2px 5px;

    font-size: clamp(6px, 1.3vw, 11px);
  }

  .cooking-selection-area {
    min-height: 0;

    padding:
      clamp(4px, 1.1vw, 9px)
      clamp(6px, 1.9vw, 15px);
  }

  .cooking-option-grid {
    min-height: 0;

    gap: clamp(3px, 0.9vw, 7px);
  }

  .cooking-option-button {
    min-height: clamp(20px, 4.5vw, 36px);

    padding: 2px;

    font-size: clamp(6px, 1.4vw, 11px);
  }

  .cooking-navigation {
    flex-basis: clamp(34px, 7.2vw, 57px);

    grid-template-columns:
      minmax(65px, 16%)
      1fr
      minmax(65px, 16%);

    gap: clamp(4px, 1.3vw, 10px);

    padding:
      clamp(3px, 1vw, 8px)
      clamp(6px, 1.8vw, 14px);
  }

  .cooking-nav-button {
    min-height: clamp(22px, 4.3vw, 34px);

    padding: 2px 4px;

    font-size: clamp(7px, 1.5vw, 12px);
  }

  .cooking-selection-status {
    padding: 3px 5px;

    font-size: clamp(6px, 1.35vw, 11px);
  }

  .cooking-result-scene {
    min-height: 0;
  }

  .cooking-result-character {
    left: 0;
    bottom: 6%;

    width: 45%;
    height: 82%;
  }

  .cooking-result-character.is-dishwashing {
    right: -2%;
    bottom: 3%;

    width: 48%;
    height: 86%;
  }

  .cooking-result-dish {
    right: 11%;
    bottom: 19%;

    width: 42%;
    height: 43%;
  }

  #resultFood {
    width: 64%;
    height: 56%;

    border-width: clamp(2px, 0.5vw, 4px);

    font-size: clamp(7px, 1.7vw, 14px);
  }

  .cooking-result-dialogue {
    bottom: 2%;

    min-height: 0;

    padding:
      clamp(12px, 2.6vw, 21px)
      clamp(8px, 2.2vw, 18px)
      clamp(6px, 1.5vw, 12px);

    border-width: clamp(1px, 0.4vw, 3px);

    outline-width: clamp(1px, 0.3vw, 2px);

    font-size: clamp(7px, 1.8vw, 15px);
  }

  .cooking-result-name {
    top: clamp(-20px, -3vw, -12px);

    min-width: 0;

    padding: 2px 7px;

    font-size: clamp(6px, 1.45vw, 12px);
  }

  .cooking-knife-object {
    width: 50%;
    height: 28%;
  }

  .cooking-scream-text {
    font-size: clamp(22px, 6.4vw, 50px);
  }

  .cooking-house-object {
    width: 42%;
    height: 62%;
  }

  .cooking-explosion-object {
    font-size: clamp(90px, 26vw, 210px);
  }

  .cooking-result-card {
    width: min(470px, 72%);

    padding:
      clamp(10px, 2.8vw, 22px)
      clamp(12px, 3.2vw, 25px);
  }

  .cooking-result-rank {
    margin-bottom: 4px;

    padding: 3px 10px;

    font-size: clamp(8px, 1.9vw, 15px);
  }

  .cooking-result-card h2 {
    margin: 3px 0 5px;

    font-size: clamp(16px, 3.8vw, 30px);
  }

  .cooking-result-card > p {
    margin: 5px 0;

    font-size: clamp(7px, 1.7vw, 14px);
  }

  .cooking-result-score {
    margin: 5px 0 8px;

    padding: 3px 7px;
  }
}


/* =========================================================
   33. 아주 좁은 화면
========================================================= */

@media screen and (max-width: 480px) {
  .cooking-body {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding: 6px 2px;
  }

  .cooking-game-shell {
    width: calc(100vw - 6px);

    border-width: 3px;
    outline-width: 1px;

    box-shadow:
      3px 3px 0 rgba(153, 63, 110, 0.4);
  }

  .cooking-option-grid.option-count-15 {
    grid-template-columns: repeat(5, 1fr);
  }

  .cooking-option-button {
    border-width: 1px;
  }

  .cooking-modal-window {
    width: 94%;
  }

  .cooking-modal-title {
    padding: 6px;

    font-size: 14px;
  }

  .cooking-modal-content {
    padding: 12px;

    font-size: 11px;
  }

  .cooking-help-notice {
    font-size: 9px;
  }
}


/* =========================================================
   34. 가로 높이가 부족한 기기
========================================================= */

@media screen and (max-height: 650px) and (min-width: 700px) {
  .cooking-body {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .cooking-game-shell {
    width: min(760px, calc((100vh - 18px) * 4 / 3));
    min-height: 0;
  }
}


/* =========================================================
   35. 움직임 최소화 설정
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes cookingExteriorHouseShake {
  0%, 100% {
    transform: translateX(-50%) scale(1.25) translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translateX(-50%) scale(1.25) translate(-8px, 2px) rotate(-1deg);
  }

  50% {
    transform: translateX(-50%) scale(1.25) translate(7px, -2px) rotate(1deg);
  }

  75% {
    transform: translateX(-50%) scale(1.25) translate(-5px, -1px) rotate(-1deg);
  }
}

/* Keep title image assets above the legacy responsive shapes. */
@media screen and (max-width: 820px) {
  .cooking-title-screen .cooking-title-visual {
    width: 91vw;
    height: clamp(220px, 37vw, 295px);
  }

  .cooking-title-visual .cooking-title-pan {
    left: 14%;
    top: 40%;
    width: 45%;
    height: 55%;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .cooking-title-visual .cooking-title-knife {
    right: 14%;
    top: 45%;
    width: 35%;
    height: 37%;
  }
}

/* Mobile touch layout */
@media screen and (max-width: 640px) {
  .cooking-body {
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    overflow-x: hidden;
  }

  .cooking-page {
    min-height: 100vh;
    min-height: 100svh;
    align-items: stretch;
  }

  .cooking-game-shell {
    width: 100vw;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
    border-width: 0;
    outline: 0;
    box-shadow: none;
  }

  .cooking-screen {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    overflow: visible;
  }

  .cooking-screen:not(.is-active) {
    display: none;
  }

  .cooking-title-screen.is-active,
  .cooking-play-screen.is-active,
  .cooking-result-screen.is-active {
    display: flex;
  }

  .cooking-main-button,
  .cooking-nav-button,
  .cooking-option-button {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 14px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 51, 153, 0.18);
  }

  .cooking-play-screen {
    flex-direction: column;
  }

  .cooking-game-header {
    flex: 0 0 auto;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
  }

  .cooking-step-number {
    min-width: 76px;
    padding: 6px 5px;
    font-size: 11px;
  }

  .cooking-game-header h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  .cooking-game-header p {
    font-size: 11px;
    line-height: 1.35;
  }

  .cooking-main-area {
    flex: 0 0 auto;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 10px;
  }

  .cooking-storage-area {
    order: 2;
    flex-direction: row;
    gap: 8px;
    padding: 8px 0 0;
    border-right: 0;
    border-top: 1px dotted #ff99cc;
  }

  .cooking-storage-bowl {
    width: min(45vw, 170px);
    min-height: 72px;
    padding: 17px 6px 7px;
  }

  .cooking-work-area {
    order: 1;
    min-height: 230px;
    padding: 10px 6px 28px;
  }

  .cooking-plate {
    width: min(82vw, 350px);
    height: min(48vw, 206px);
    min-height: 158px;
  }

  .cooking-preview-caption {
    width: 92%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 10px;
  }

  .cooking-selection-area {
    flex: 1 1 auto;
    min-height: 0;
    padding: 9px 10px 10px;
    overflow: visible;
  }

  .cooking-option-grid {
    gap: 7px;
    min-height: 0;
  }

  .cooking-option-grid.option-count-4,
  .cooking-option-grid.option-count-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cooking-option-grid.option-count-15 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cooking-option-button {
    min-height: 48px;
    line-height: 1.2;
    word-break: keep-all;
  }

  .cooking-navigation {
    position: sticky;
    bottom: 0;
    z-index: 30;
    grid-template-columns: 76px 1fr 76px;
    gap: 6px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }

  .cooking-selection-status {
    min-height: 40px;
    padding: 5px;
    font-size: 10px;
    line-height: 1.3;
  }

  .cooking-title-screen {
    justify-content: center;
    gap: 10px;
    padding: 16px 12px 18px;
  }

  .cooking-title-screen .cooking-title-visual {
    width: min(92vw, 430px);
    height: clamp(190px, 58vw, 260px);
    flex: 0 0 auto;
  }

  .cooking-title-text {
    width: min(92vw, 420px);
    margin-top: 0;
    padding: 7px 12px;
  }

  .cooking-title-text h1 {
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.15;
  }

  .cooking-title-buttons {
    width: min(92vw, 420px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 0;
  }

  .cooking-title-version {
    position: static;
    margin-top: 2px;
  }

  .cooking-result-screen {
    min-height: 100vh;
    min-height: 100svh;
  }

  .cooking-result-scene {
    flex: 1 1 auto;
    min-height: 62svh;
  }

  .cooking-result-character {
    left: -4%;
    bottom: 14%;
    width: 55%;
    height: 68%;
  }

  .cooking-result-dish {
    right: 5%;
    bottom: 26%;
    width: 50%;
    height: 28%;
  }

  .cooking-result-dialogue {
    bottom: 4%;
    width: 92%;
    min-height: 84px;
    padding: 18px 12px 10px;
    font-size: 12px;
  }

  .cooking-result-card {
    width: min(92vw, 420px);
    max-height: none;
    padding: 18px 14px;
  }

  .cooking-result-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cooking-modal {
    padding: 12px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .cooking-modal-window {
    width: min(94vw, 420px);
    max-height: calc(100svh - 24px);
    overflow-y: auto;
  }
}

@media screen and (max-width: 380px) {
  .cooking-option-grid.option-count-15 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cooking-navigation {
    grid-template-columns: 68px 1fr 68px;
  }

  .cooking-nav-button {
    font-size: 12px;
  }
}
