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

* {
  border: 0;
  border-radius: 0;
  margin: 0;
  outline: 0;
  padding: 0;
}

body {
  background: #fbf7f0;
  color: #3a342b;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  border: 0;
}

ol,
ul {
  list-style: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font-family: inherit;
}

button {
  background-color: transparent;
  cursor: pointer;
}

input[type=file],
input[type=checkbox] {
  display: none;
}

::-webkit-scrollbar {
  display: none;
}

.Header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.Header-LogoWrapper {
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.Header-Logo {
  color: #3a342b;
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  text-decoration: none;
}

.Cooking {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100vh;
  padding: 28px 18px;
  background: linear-gradient(170deg, #FBF7F0, #F1EDE6);
  color: #3a342b;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  user-select: none;
}
.Cooking button:active:not(:disabled) {
  transform: scale(0.96);
}
.Cooking-Recipe {
  position: fixed;
  top: 56px;
  left: 8px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 168px;
  max-height: calc(100vh - 64px);
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(120, 100, 70, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.Cooking-RecipeHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
  color: #9a8f7c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.Cooking-RecipeList {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.Cooking-RecipeItem {
  padding: 8px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #7a7064;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.Cooking-RecipeItem[data-selected] {
  background: #3a342b;
  color: #fff;
  box-shadow: 0 3px 10px rgba(58, 52, 43, 0.25);
}
.Cooking-LoaderToggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.5);
  color: #8a7d63;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.Cooking-LoaderToggleIcon {
  display: flex;
}
.Cooking-Loader {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
}
.Cooking[data-loader-open] .Cooking-Loader {
  display: flex;
}
.Cooking-LoaderInput {
  width: 100%;
  height: 120px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #3a342b;
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 11.5px;
  line-height: 1.5;
  resize: vertical;
  user-select: text;
}
.Cooking-LoaderButton {
  padding: 8px 10px;
  border: none;
  border-radius: 9px;
  background: #3a342b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.Cooking-LoaderError {
  color: #c0504d;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}
.Cooking-LoaderError:empty {
  display: none;
}
.Cooking-Stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 320px;
  height: 340px;
}
.Cooking-Canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.Cooking-Panel {
  position: fixed;
  top: 56px;
  left: 184px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 192px;
  max-height: calc(100vh - 64px);
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(120, 100, 70, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.Cooking-PanelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
  color: #9a8f7c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.Cooking-DragGrip {
  display: flex;
  align-items: center;
  color: #c9bda6;
}
.Cooking-Rows {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.Cooking-Row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border-radius: 8px;
  transition: opacity 0.3s;
}
.Cooking-Row[data-phase=current] {
  background: rgba(232, 160, 75, 0.16);
}
.Cooking-Row[data-phase=pending] {
  opacity: 0.4;
}
.Cooking-RowIndex {
  width: 12px;
  color: #bcae97;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.Cooking-Dot {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.Cooking-RowLabel {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}
.Cooking-Check {
  display: none;
  align-items: center;
  margin-left: 2px;
  color: #5aa86b;
}
.Cooking-Source {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  margin-left: -70px;
}
.Cooking-SourceLabel {
  font-size: 12px;
  font-weight: 700;
}
.Cooking-StageMessage {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 6;
  width: 100%;
  padding: 0 24px;
  color: #9a8f7c;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}
.Cooking-Hint {
  min-height: 18px;
  color: #9a8f7c;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.Cooking-Row[data-phase=done] .Cooking-Check {
  display: flex;
}

[data-drag-handle] {
  cursor: move;
  user-select: none;
}

.SinglePanel {
  position: fixed;
  z-index: 30;
  width: max-content;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(120, 100, 70, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.SinglePanel-Header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
}
.SinglePanel-Title {
  display: flex;
  align-items: center;
  height: 34px;
  color: #9a8f7c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.SinglePanel-Title[data-end] {
  padding: 0 16px;
}
.SinglePanel-CloseIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #b5a994;
  cursor: pointer;
}
.SinglePanel-CloseIcon svg {
  width: 10px;
}
.SinglePanel-Main {
  padding: 0;
}

.HintPanel {
  top: 8px;
  right: 8px;
}

.TextBlock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 264px;
  max-width: 100%;
  padding: 2px 18px 18px;
}
.TextBlock h1 {
  color: #3a342b;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.TextBlock p {
  color: #6b6256;
  font-size: 13px;
  line-height: 21px;
}

.RecipeText {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 24px 56px;
}
.RecipeText-Title {
  font-size: 22px;
  line-height: 32px;
  font-weight: 600;
}
.RecipeText-Heading {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
}
.RecipeText-Ingredients, .RecipeText-Steps {
  margin-top: 8px;
  padding-left: 22px;
}
.RecipeText-Ingredients {
  list-style: disc;
}
.RecipeText-Steps {
  list-style: decimal;
}
.RecipeText-Ingredients li, .RecipeText-Steps li {
  line-height: 26px;
}

@media (max-width: 760px) {
  .HintPanel {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-height: 46vh;
    overflow-y: scroll;
    overscroll-behavior-y: none;
    scrollbar-width: none;
  }
  .TextBlock {
    width: auto;
  }
}
