.potion-landing {
  min-height: 100vh;
  color: #f6ecd9;
  background: linear-gradient(180deg, rgba(12, 10, 18, 0.55), #0d0b12 72%), url("/static/images/potion-landing/potions-class.webp") center top/cover fixed; }

.potion-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 22%, rgba(125, 79, 180, 0.18), transparent 34%), radial-gradient(circle at 82% 40%, rgba(61, 160, 139, 0.12), transparent 30%); }

.potion-landing .home-nav,
.potion-landing__main {
  position: relative;
  z-index: 1; }

.potion-landing__main {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 0 22px; }

.potion-landing__hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  height: auto;
  margin-bottom: 26px;
  padding: 0; }

.potion-landing__eyebrow,
.potion-recipe > span,
.potion-success > span {
  display: block;
  margin-bottom: 8px;
  color: #ddba7d;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase; }

.potion-landing__hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 0.98;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.7); }

.potion-landing__hero p {
  max-width: 650px;
  margin: 14px 0 0;
  color: rgba(246, 236, 217, 0.82);
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55; }

.potion-landing__hero > .home-button {
  flex: 0 0 auto;
  margin-bottom: 4px; }

.potion-workbench {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.75fr);
  overflow: hidden;
  border: 1px solid rgba(221, 186, 125, 0.28);
  border-radius: 20px;
  background: rgba(13, 11, 18, 0.9);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(15px); }

.potion-recipe {
  padding: 34px 30px;
  border-right: 1px solid rgba(221, 186, 125, 0.18);
  background: linear-gradient(rgba(35, 27, 37, 0.95), rgba(18, 15, 23, 0.96)), repeating-linear-gradient(0deg, transparent 0, transparent 25px, rgba(221, 186, 125, 0.05) 26px); }

.potion-recipe h2 {
  margin: 0 0 18px;
  color: #fff8e9;
  font-size: 27px;
  line-height: 1.15; }

.potion-recipe p {
  margin: 0;
  color: rgba(246, 236, 217, 0.78);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7; }

.potion-progress {
  margin-top: 28px; }

.potion-progress__label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
  font-size: 12px; }

.potion-progress__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); }

.potion-progress__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7e5cb3, #ddba7d, #a6ead9);
  box-shadow: 0 0 14px rgba(166, 234, 217, 0.4);
  transition: width 0.45s ease; }

.potion-brewery {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.25fr);
  align-items: center;
  gap: 10px 26px;
  min-height: 610px;
  padding: 26px 30px 30px; }

.potion-cauldron {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  margin: 0 auto;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.55)); }

.potion-cauldron > img {
  position: absolute;
  z-index: 3;
  inset: 7% 0 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none; }

.potion-cauldron__liquid {
  position: absolute;
  z-index: 4;
  top: 28.5%;
  left: 17%;
  width: 66%;
  height: 19%;
  overflow: hidden;
  border: 3px solid rgba(244, 213, 165, 0.44);
  border-radius: 50%;
  background: radial-gradient(ellipse at 48% 38%, #8cd3e8, #285b74 72%);
  box-shadow: inset 0 -12px 26px rgba(0, 0, 0, 0.45), 0 0 22px rgba(92, 194, 219, 0.26);
  transition: background 0.7s ease, box-shadow 0.7s ease; }

.potion-cauldron__liquid--stir {
  background: radial-gradient(ellipse at 45% 35%, #77727d, #25222b 72%);
  box-shadow: inset 0 -12px 26px rgba(0, 0, 0, 0.6), 0 0 24px rgba(160, 148, 173, 0.3); }

.potion-cauldron__liquid--cool,
.potion-cauldron__liquid--complete {
  background: radial-gradient(ellipse at 45% 35%, #d9d6e5, #5f596b 68%);
  box-shadow: inset 0 -12px 26px rgba(24, 18, 30, 0.4), 0 0 34px rgba(219, 211, 235, 0.6); }

.potion-cauldron__bubble {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  opacity: 0;
  animation: potion-bubble 2.1s infinite ease-in; }

.potion-cauldron__bubble--one {
  left: 24%;
  bottom: 12%; }

.potion-cauldron__bubble--two {
  left: 53%;
  bottom: 5%;
  animation-delay: 0.7s; }

.potion-cauldron__bubble--three {
  right: 18%;
  bottom: 13%;
  animation-delay: 1.3s; }

.potion-cauldron__spoon {
  position: absolute;
  z-index: 5;
  top: 5%;
  left: 48%;
  width: 12px;
  height: 42%;
  border-radius: 7px;
  background: linear-gradient(90deg, #77502f, #c18a4e 48%, #684326);
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
  transform: rotate(18deg);
  transform-origin: 50% 88%; }

.potion-cauldron__spoon::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: -6px;
  width: 24px;
  height: 34px;
  border-radius: 50%;
  background: #8f6137; }

.potion-cauldron__spoon.is-stirring {
  animation: potion-stir 2.4s infinite linear; }

.potion-cauldron__fire {
  position: absolute;
  z-index: 1;
  bottom: 9%;
  left: 35%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 30%;
  height: 21%;
  filter: blur(1px) drop-shadow(0 0 15px #f17329); }

.potion-cauldron__fire span {
  width: 31%;
  height: 75%;
  border-radius: 60% 40% 55% 45%;
  background: linear-gradient(#fff5a9, #ff8b2d 45%, #9b2e16);
  clip-path: polygon(50% 0, 100% 64%, 77% 100%, 16% 92%, 0 60%);
  animation: potion-fire 0.8s infinite alternate ease-in-out; }

.potion-cauldron__fire span:nth-child(2) {
  height: 100%;
  animation-delay: 0.25s; }

.potion-cauldron__fire span:nth-child(3) {
  height: 62%;
  animation-delay: 0.5s; }

.potion-feedback {
  grid-column: 1;
  max-width: 340px;
  min-height: 44px;
  margin: -18px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  text-align: center; }

.potion-feedback--good {
  border-color: rgba(127, 218, 184, 0.42);
  color: #c9f4e4; }

.potion-feedback--wrong {
  border-color: rgba(229, 118, 111, 0.48);
  color: #ffd1cb;
  animation: potion-shake 0.32s ease; }

.potion-controls,
.potion-success {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: Arial, sans-serif; }

.potion-controls {
  display: grid;
  gap: 14px; }

.potion-controls section {
  padding: 17px;
  border: 1px solid rgba(221, 186, 125, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035); }

.potion-controls__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px; }

.potion-controls h2 {
  margin: 0;
  color: #fff7e7;
  font-size: 16px; }

.potion-controls p {
  margin: 6px 0 12px;
  color: rgba(246, 236, 217, 0.62);
  font-size: 12px;
  line-height: 1.4; }

.potion-temperature input[type="range"] {
  width: 100%;
  margin: 14px 0 5px;
  accent-color: #d4a45e;
  cursor: pointer; }

.potion-ingredients__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px; }

.potion-ingredients__grid button,
.potion-stirring__buttons button {
  border: 1px solid rgba(221, 186, 125, 0.24);
  border-radius: 9px;
  color: #f7ecd9;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }

.potion-ingredients__grid button:not(:disabled):hover,
.potion-stirring__buttons button:not(:disabled):hover {
  border-color: rgba(221, 186, 125, 0.62);
  background: rgba(221, 186, 125, 0.11);
  transform: translateY(-2px); }

.potion-ingredients__grid button:disabled,
.potion-stirring__buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.43; }

.potion-ingredients__grid button.is-added {
  border-color: rgba(127, 218, 184, 0.5);
  opacity: 0.62; }

.potion-ingredients__grid img {
  display: block;
  width: 60px;
  height: 60px;
  margin: 2px auto 6px;
  object-fit: contain; }

.potion-ingredients__grid span,
.potion-ingredients__grid small {
  display: block; }

.potion-ingredients__grid span {
  min-height: 31px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25; }

.potion-ingredients__grid small {
  margin-top: 3px;
  color: rgba(246, 236, 217, 0.58);
  font-size: 10px; }

.potion-stirring__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px; }

.potion-stirring__buttons button {
  min-height: 46px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 700; }

.potion-stirring__buttons button span {
  display: inline-block;
  margin-right: 7px;
  color: #ddba7d;
  font-size: 21px;
  line-height: 0;
  vertical-align: -2px; }

.potion-success {
  max-width: 450px;
  padding: 30px;
  border: 1px solid rgba(193, 232, 220, 0.36);
  border-radius: 16px;
  background: radial-gradient(circle at top, rgba(130, 105, 160, 0.22), rgba(255, 255, 255, 0.045));
  text-align: center;
  box-shadow: 0 0 50px rgba(168, 204, 194, 0.11); }

.potion-success h2 {
  margin: 0;
  color: #fff9ed;
  font-family: inherit;
  font-size: 29px;
  line-height: 1.12; }

.potion-success p {
  margin: 14px 0 22px;
  color: rgba(246, 236, 217, 0.76);
  font-size: 14px;
  line-height: 1.55; }

.potion-success .home-button {
  display: flex;
  width: 100%;
  justify-content: center; }

.potion-success small {
  display: block;
  margin: 10px 0 14px;
  color: rgba(246, 236, 217, 0.55); }

.potion-success button {
  border: 0;
  color: #ddba7d;
  background: transparent;
  cursor: pointer;
  text-decoration: underline; }

.potion-landing__footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 4px 0;
  color: rgba(246, 236, 217, 0.52);
  font-family: Arial, sans-serif;
  font-size: 12px; }

.potion-landing__footer a {
  color: #ddba7d; }

@keyframes potion-bubble {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.4); }
  35% {
    opacity: 0.8; }
  100% {
    opacity: 0;
    transform: translateY(-42px) scale(1.25); } }

@keyframes potion-stir {
  0% {
    transform: rotate(18deg) translateX(-5px); }
  50% {
    transform: rotate(5deg) translateX(8px); }
  100% {
    transform: rotate(18deg) translateX(-5px); } }

@keyframes potion-fire {
  from {
    transform: scaleX(0.88) scaleY(0.9) rotate(-3deg); }
  to {
    transform: scaleX(1.08) scaleY(1.06) rotate(3deg); } }

@keyframes potion-shake {
  0%,
  100% {
    transform: translateX(0); }
  25% {
    transform: translateX(-5px); }
  75% {
    transform: translateX(5px); } }

@media (max-width: 960px) {
  .potion-workbench {
    grid-template-columns: 1fr; }
  .potion-recipe {
    border-right: 0;
    border-bottom: 1px solid rgba(221, 186, 125, 0.18); }
  .potion-brewery {
    grid-template-columns: minmax(230px, 0.8fr) minmax(340px, 1.2fr); } }

@media (max-width: 720px) {
  .potion-landing__main {
    width: calc(100% - 20px);
    max-width: 600px;
    padding-top: 20px; }
  .potion-landing__hero {
    display: block; }
  .potion-landing__hero h1 {
    font-size: clamp(38px, 11vw, 56px); }
  .potion-landing__hero > .home-button {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 18px; }
  .potion-recipe {
    padding: 24px 20px; }
  .potion-brewery {
    display: block;
    min-height: 0;
    padding: 16px 14px 22px; }
  .potion-cauldron {
    width: 100%;
    max-width: 290px; }
  .potion-feedback {
    margin: -22px auto 16px; }
  .potion-controls,
  .potion-success {
    max-width: 520px;
    margin: 0 auto; }
  .potion-success {
    padding: 24px 18px; } }

@media (max-width: 430px) {
  .potion-landing__main {
    width: calc(100% - 12px); }
  .potion-ingredients__grid {
    gap: 5px; }
  .potion-ingredients__grid button {
    padding: 7px 4px; }
  .potion-ingredients__grid img {
    width: 52px;
    height: 52px; }
  .potion-stirring__buttons {
    grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .potion-cauldron__bubble,
  .potion-cauldron__spoon,
  .potion-cauldron__fire span,
  .potion-feedback {
    animation: none; } }

