/* Draw channel: pearly moonlight, a featured draw, and six ways to leave it to chance. */

.draw-landing {
  max-width: 1550px;
}

.draw-landing .play-heading h1 {
  font-size: clamp(48px, 5vw, 72px);
}

.draw-landing .play-heading-note > p {
  font-family: var(--serif);
  transform: rotate(-4deg);
}

.draw-landing .play-heading {
  margin-bottom: 24px;
}

.draw-feature {
  position: relative;
  min-height: 328px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 28px;
  background: #e7f3ff;
  box-shadow:
    0 10px 35px #5286c310,
    inset 0 0 0 1px #d6e8fc;
}

.draw-feature-copy {
  position: relative;
  z-index: 1;
  max-width: 550px;
  padding: 24px 36px;
}

.draw-feature .play-feature-badge {
  color: white;
  background: linear-gradient(100deg, #7db4ed, #2c8ae0);
}

.draw-feature-copy h2 {
  margin: 14px 0 7px;
  font: 700 clamp(35px, 3.7vw, 55px)/1.2 var(--serif);
  color: #15385f;
  white-space: nowrap;
}

.draw-feature-copy > p {
  margin: 0 0 15px;
  color: #426b9c;
  font: 500 21px/1.5 var(--serif);
}

.draw-feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.draw-feature-meta > span {
  padding: 7px 12px;
  border: 1px solid #c7e1ff;
  border-radius: 99px;
  background: #f6fbffc7;
  color: #5081b7;
  font-size: 13px;
  font-weight: 500;
}

.draw-feature-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #72bafa;
  margin-top: 14px;
  min-height: 57px;
  padding: 11px 36px;
  color: #fff;
  background: linear-gradient(110deg, #479ded, #1b7bdc);
  box-shadow:
    inset 0 1px 0 #fff5,
    0 5px 16px #448bdf19;
  border-radius: 99px;
  font-size: 21px;
  font-weight: 600;
  transition:
    transform var(--motion-fast),
    background var(--motion-fast);
}
@media (hover: hover) and (pointer: fine) {
  .draw-feature-start:hover {
    transform: translateY(-2px);
    background: #207dd0;
  }
}
.draw-shortcuts {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 18px;
  width: 36.5%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.draw-shortcut {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 110px 13px 13px;
  border: 5px solid #fafdff;
  border-radius: 21px;
  background: linear-gradient(135deg, #f4fbfff5, #e6f2fff2);
  overflow: hidden;
  box-shadow: 0 5px 20px #426ca812;
  transition: transform var(--motion-fast);
}
@media (hover: hover) and (pointer: fine) {
  .draw-shortcut:hover {
    transform: translateY(-3px);
  }
}
.draw-shortcut strong {
  font: 600 17px/1.5 var(--serif);
  color: #15385f;
}

.draw-shortcut > span:last-child {
  color: #6b91be;
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.5;
}

.draw-shortcut .draw-card-art {
  top: 0;
  left: 0;
  width: 100%;
  height: 104px;
  background: linear-gradient(145deg, #d1e7fe, #e4f3ff);
  opacity: 1;
}

.draw-shortcut .draw-card-art svg {
  width: 100%;
  height: 100%;
  padding: 6px;
}

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

.draw-card {
  position: relative;
  min-width: 0;
  min-height: 242px;
  padding: 15px 17px 40px;
  border: 1px solid #d5e5fb;
  border-radius: 21px;
  background: linear-gradient(125deg, #fcfeff, #f4faff);
  overflow: hidden;
  box-shadow: 0 8px 25px #658ccb08;
}

.draw-card:is(a):hover {
  border-color: #82b9e2;
  box-shadow: 0 12px 28px #658ccb18;
}

.draw-card-art {
  position: absolute;
  top: 3px;
  right: 3px;
  border-radius: 17px 17px 0 0;
  background: radial-gradient(ellipse at 75% 12%, #b8d8f4a6, transparent 80%);
  pointer-events: none;
}

.draw-card-art svg {
  width: 100%;
  height: 100%;
  padding: 5px;
  filter: drop-shadow(0 3px 4px #749cbd20);
}

.draw-card h3 {
  position: relative;
  margin: 51px 0 6px;
  color: #15385f;
  font: 600 17px/1.5 var(--serif);
}

.draw-card p {
  position: relative;
  margin: 0;
  color: #6d8fba;
  font-size: 12px;
  line-height: 1.7;
}

.draw-card .play-game-enter {
  left: 17px;
  bottom: 16px;
}

.draw-card .play-game-tag {
  background: #f9fcffdf;
}

.draw-mystery {
  display: block;
  position: absolute;
  top: 20px;
  left: 15%;
  width: 80%;
  height: 89px;
  background: linear-gradient(110deg, #cbe3fc, #a9ccf2);
  clip-path: polygon(22% 0, 74% 5%, 83% 68%, 100% 92%, 70% 100%, 34% 88%, 0 98%, 14% 57%);
  color: #4d93d4;
  text-align: center;
  font: 600 47px/1.8 var(--sans);
}

@media (max-width: 1250px) {
  .draw-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .draw-shortcuts {
    width: 40%;
    right: 20px;
    gap: 8px;
  }
  .draw-shortcut {
    padding: 95px 9px 11px;
    border-width: 3px;
  }
  .draw-shortcut .draw-card-art {
    height: 90px;
  }
  .draw-shortcut strong {
    font-size: 14px;
  }
  .draw-shortcut > span:last-child {
    font-size: 11px;
  }
  .draw-feature-copy {
    padding: 24px 28px;
    max-width: 490px;
  }
  .draw-feature-copy h2 {
    font-size: 45px;
  }
  .draw-feature-meta {
    gap: 6px;
  }
  .draw-feature-meta > span {
    font-size: 12px;
    padding-inline: 9px;
  }
  .draw-card h3 {
    max-width: 75%;
  }
}

@media (max-width: 800px) {
  .draw-feature {
    min-height: 490px;
  }
  .draw-feature-copy {
    padding: 24px;
    max-width: 100%;
  }

  .draw-shortcuts {
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
  }
  .draw-shortcut {
    padding-top: 104px;
  }
  .draw-shortcut .draw-card-art {
    height: 100px;
  }
  .draw-feature-copy h2 {
    font-size: 42px;
  }
  .draw-feature-copy > p {
    font-size: 19px;
  }
  .draw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .draw-card h3 {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .draw-feature {
    min-height: 483px;
    border-radius: 22px;
  }
  .draw-feature-copy {
    padding: 22px;
  }
  .draw-feature-copy h2 {
    font-size: 34px;
  }
  .draw-feature-copy > p {
    font-size: 17px;
  }
  .draw-feature-meta {
    gap: 5px;
  }
  .draw-feature-meta > span {
    padding: 6px 8px;
    font-size: 11px;
  }
  .draw-feature-start {
    font-size: 18px;
    padding-inline: 26px;
    min-height: 52px;
    margin-top: 18px;
  }
  .draw-shortcuts {
    left: 12px;
    right: 12px;
    gap: 7px;
    bottom: 14px;
  }
  .draw-shortcut {
    border-radius: 16px;
    padding: 95px 7px 10px;
  }
  .draw-shortcut strong {
    font-size: 13px;
  }
  .draw-shortcut > span:last-child {
    font-size: 10px;
  }
  .draw-shortcut .draw-card-art {
    height: 90px;
  }
  .draw-grid {
    gap: 12px;
  }
  .draw-card {
    padding: 14px 15px 42px;
    min-height: 249px;
    border-radius: 18px;
  }
  .draw-card h3 {
    font-size: 15px;
  }
  .draw-card p {
    font-size: 11px;
  }
  .draw-card .play-game-enter {
    left: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .draw-feature-start,
  .draw-shortcut {
    transition: none;
  }
}

/* Repainted Draw artwork follows the reference's airy storybook composition. */

.draw-card-art {
  background: linear-gradient(135deg, #f5faff, #e2effd);
  width: 76%;
  height: 116px;
  overflow: hidden;
}

.draw-painted {
  position: absolute;
  top: 50%;
  right: 0;
  width: 100%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background-image: url('/assets/draw-card-atlas-v2.f632979c9408.webp');
  background-repeat: no-repeat;
  background-size: 300% 200%;
}

.jar .draw-painted {
  background-position: 0% 0%;
}

.movie .draw-painted {
  background-position: 50% 0%;
}

.bowl .draw-painted {
  background-position: 100% 0%;
}

.bottle .draw-painted {
  background-position: 0% 100%;
}

.sign .draw-painted {
  background-position: 50% 100%;
}

.mystery .draw-painted {
  background-position: 100% 100%;
}

.draw-card .draw-card-art {
  width: 100%;
  top: 3px;
  right: 3px;
  height: 120px;
  background: linear-gradient(110deg, #fcfeff, #e4f0ff);
}

.draw-card .draw-painted {
  width: 145px;
}

.draw-card .draw-card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #fcfeffcc, transparent 38%), linear-gradient(0deg, #f8fcff, transparent 25%);
}

.draw-shortcut .draw-card-art {
  background: #dbeeff;
}

.draw-shortcut .draw-painted {
  width: 100%;
}

@media (max-width: 520px) {
  .draw-card .draw-painted {
    width: 125px;
  }
}

.draw-card .draw-card-art::after {
  background:
    linear-gradient(90deg, #fcfefff5, transparent 48%),
    linear-gradient(0deg, #f8fcff 7%, #f8fcffcc 20%, transparent 43%);
}

.draw-card h3 {
  margin-top: 60px;
}

/* Mood draws: three small rituals for exactly what the user needs right now. */

.chance-moods .channel-section-bar {
  align-items: flex-end;
}

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

.chance-mood-grid > .chance-mood-card {
  position: relative;
  align-items: flex-end;
  min-height: 184px;
  padding: 22px;
  border: 2px solid #fff;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 14px 28px #275b8b14,
    inset 0 0 0 1px #94cbe02b;
  cursor: pointer;
}

.chance-mood-card::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(145deg, #f6fcff, #d8f2ff);
}

.chance-mood-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -8%;
  right: -8%;
  bottom: -42px;
  height: 112px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #b7e8f58f, #dff8f5);
}

.chance-mood-card.tone-gold::before {
  background: linear-gradient(145deg, #fffdf4, #fff1cf);
}

.chance-mood-card.tone-gold::after {
  background: linear-gradient(180deg, #ffe1a580, #fff4d4);
}

.chance-mood-card.tone-purple::before {
  background: linear-gradient(145deg, #fbfaff, #e9e5ff);
}

.chance-mood-card.tone-purple::after {
  background: linear-gradient(180deg, #cfc8f58c, #ebe9ff);
}
@media (hover: hover) and (pointer: fine) {
  .chance-mood-grid > .chance-mood-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 18px 34px #275b8b22,
      inset 0 0 0 1px #94cbe03f;
  }
}
.chance-mood-grid > .chance-mood-card:active {
  transform: translateY(-1px) scale(0.99);
}

.chance-mood-card .mood-card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.chance-mood-card .mood-card-copy strong {
  color: #123d6a;
  font: 800 24px/1.3 var(--serif);
}

.chance-mood-card .mood-card-copy > span {
  max-width: 170px;
  color: #486e91;
  font-size: 13px;
  line-height: 1.6;
}

.chance-mood-card .mood-card-copy small {
  margin-top: 7px;
  color: #1f6fa9;
  font-size: 12px;
  font-weight: 800;
}

.chance-mood-card.tone-gold .mood-card-copy small {
  color: #a96812;
}

.chance-mood-card.tone-purple .mood-card-copy small {
  color: #6650aa;
}

.chance-mood-card .mood-card-arrow {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #4da5dc;
  box-shadow: 0 7px 15px #2877a42b;
}

.chance-mood-card.tone-gold .mood-card-arrow {
  background: #f1ae29;
}

.chance-mood-card.tone-purple .mood-card-arrow {
  background: #8372cc;
}

.chance-mood-card .mood-card-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mood-mascot {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 88px;
  height: 68px;
}

.mood-mascot::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 16px;
  width: 61px;
  height: 39px;
  border-radius: 54% 48% 52% 50%;
  background: #72bee6;
  box-shadow:
    inset 0 -12px 0 #dff7ff,
    0 9px 15px #2e78a02c;
  transform: rotate(-5deg);
}

.mood-mascot::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 24px;
  width: 28px;
  height: 25px;
  border-radius: 4px 90% 4px 90%;
  background: #63acd7;
  transform: rotate(29deg);
}

.mood-mascot > i::before,
.mood-mascot > i::after {
  content: '';
  position: absolute;
  z-index: 2;
  border-radius: 50%;
}

.mood-mascot > i::before {
  left: 58px;
  top: 27px;
  width: 5px;
  height: 5px;
  background: #173d64;
  box-shadow: 2px -2px 0 #fff;
}

.mood-mascot > i::after {
  left: 67px;
  top: 37px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #28577b;
  border-radius: 50%;
}

.mood-mascot-puffer::before {
  left: 15px;
  top: 7px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, #fff8dc 0 8%, transparent 9%),
    linear-gradient(145deg, #ffd871, #efb34f);
  box-shadow:
    inset 0 -9px 0 #fff2c6,
    0 9px 15px #a8742529;
  transform: none;
}

.mood-mascot-puffer::after {
  left: 5px;
  top: 27px;
  width: 24px;
  height: 20px;
  background: #e5a642;
}

.mood-mascot-puffer > i::before {
  left: 55px;
  top: 25px;
}

.mood-mascot-puffer > i::after {
  left: 59px;
  top: 37px;
}

.mood-mascot-otter::before {
  left: 14px;
  top: 16px;
  width: 64px;
  height: 40px;
  border-radius: 48% 48% 45% 52%;
  background: linear-gradient(145deg, #9c897a, #6e625c);
  box-shadow:
    inset 11px -8px 0 #d6c7b9,
    0 9px 15px #554c4930;
  transform: rotate(3deg);
}

.mood-mascot-otter::after {
  left: 4px;
  top: 30px;
  width: 27px;
  height: 15px;
  border-radius: 90% 4px 90% 4px;
  background: #756860;
  transform: rotate(-16deg);
}

.mood-mascot-otter > i::before {
  left: 59px;
  top: 27px;
  width: 4px;
  height: 4px;
}

.mood-mascot-otter > i::after {
  left: 66px;
  top: 36px;
  border-color: #302e32;
}

.mood-draw-page {
  --mood-strong: #3b96d3;
  --mood-mid: #86caed;
  --mood-soft: #dff4ff;
  --mood-paper: #f7fcff;
  min-height: calc(100dvh - 174px);
  padding-block: 24px;
  color: #12385f;
  background:
    radial-gradient(circle at 18% 6%, #fff9 0 4%, transparent 17%),
    linear-gradient(155deg, #e7f8ff 0%, #bfeaff 48%, #edfaff 100%);
}

.mood-draw-page.tone-gold {
  --mood-strong: #efa91f;
  --mood-mid: #f6c861;
  --mood-soft: #fff0c9;
  --mood-paper: #fffdf6;
  background:
    radial-gradient(circle at 77% 8%, #fff 0 4%, transparent 18%),
    linear-gradient(155deg, #fff9e8 0%, #ffe9bd 50%, #fffaf1 100%);
}

.mood-draw-page.tone-purple {
  --mood-strong: #7b67c6;
  --mood-mid: #a897e4;
  --mood-soft: #ece7ff;
  --mood-paper: #fbfaff;
  background:
    radial-gradient(circle at 20% 4%, #fff 0 4%, transparent 18%),
    linear-gradient(155deg, #f7f4ff 0%, #ded8fb 50%, #f5f5ff 100%);
}

.mood-draw-shell {
  width: 100%;
  margin: 0 auto;
}

.mood-draw-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 48px;
  margin-bottom: 12px;
  color: #153d64;
}

.mood-draw-nav > a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: inherit;
  transition: background var(--motion-fast) ease;
}
.mood-draw-nav > a:hover {
  background: #fff8;
}

.mood-draw-nav > a svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transform: rotate(180deg);
}

.mood-draw-nav > span {
  font-size: 16px;
  font-weight: 800;
}

.mood-draw-nav > small {
  justify-self: end;
  font-size: 12px;
  color: #3f6d94;
}

.mood-draw-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: 390px;
  padding: 46px 64px;
  border: 2px solid #fff;
  border-radius: 42px;
  background: linear-gradient(145deg, #ffffffc7, #d7f2ffb8);
  box-shadow:
    0 22px 50px #275b8b20,
    inset 0 0 0 1px #96cbe057;
  overflow: hidden;
  isolation: isolate;
}

.mood-draw-hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 85% 42%, #fff9 0 5px, transparent 6px),
    linear-gradient(180deg, transparent 0 62%, var(--mood-soft) 63%);
  background-size:
    72px 72px,
    130px 130px,
    auto;
}

.mood-draw-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -10%;
  right: -10%;
  bottom: -92px;
  height: 185px;
  border-radius: 48% 52% 0 0;
  border-top: 3px solid #fff8;
  background: linear-gradient(180deg, var(--mood-mid), var(--mood-soft));
  opacity: 0.55;
}

.tone-gold .mood-draw-hero {
  background: linear-gradient(145deg, #fffef7df, #fff0d3c9);
}

.tone-purple .mood-draw-hero {
  background: linear-gradient(145deg, #fffefdde, #e9e5ffc9);
}

.mood-draw-intro {
  position: relative;
  z-index: 3;
  align-self: center;
}

.mood-draw-intro > p:first-child {
  margin: 0 0 5px;
  color: #52799c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mood-draw-intro h1 {
  margin: 0;
  color: #102f55;
  font: 900 clamp(42px, 6vw, 68px)/1.2 var(--serif);
  letter-spacing: 0.02em;
}

.mood-draw-intro h1 span {
  color: var(--mood-strong);
}

.mood-draw-intro > p:nth-of-type(2) {
  max-width: 410px;
  margin: 12px 0 24px;
  color: #315f85;
  font-size: 16px;
  line-height: 1.8;
}

.mood-draw-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 230px;
  min-height: 58px;
  padding: 13px 28px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, var(--mood-mid), var(--mood-strong));
  box-shadow:
    inset 0 1px 0 #fff8,
    0 12px 24px color-mix(in srgb, var(--mood-strong) 32%, transparent);
  font-size: 17px;
  font-weight: 800;
  transition:
    transform var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    filter var(--motion-fast) ease;
  touch-action: manipulation;
}

.mood-draw-primary svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}
@media (hover: hover) and (pointer: fine) {
  .mood-draw-primary:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
  }
}
.mood-draw-primary:active {
  transform: translateY(1px) scale(0.99);
}

.mood-draw-primary:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.mood-page-mascot {
  justify-self: center;
  width: 270px;
  height: 210px;
  transform: scale(1.8);
}

.mood-page-mascot::before {
  left: 41px;
  top: 50px;
  width: 190px;
  height: 122px;
  border: 3px solid #fff9;
  box-shadow:
    inset 0 -34px 0 #e8faff,
    0 24px 32px #2e78a02a;
}

.mood-page-mascot::after {
  left: 8px;
  top: 78px;
  width: 82px;
  height: 72px;
}

.mood-page-mascot > i::before {
  left: 180px;
  top: 84px;
  width: 12px;
  height: 12px;
  box-shadow: 4px -4px 0 2px #fff;
}

.mood-page-mascot > i::after {
  left: 202px;
  top: 112px;
  width: 22px;
  height: 10px;
  border-bottom-width: 4px;
}

.mood-page-mascot.mood-mascot-puffer::before {
  left: 48px;
  top: 22px;
  width: 174px;
  height: 174px;
  border: 3px solid #fff9;
  box-shadow:
    inset 0 -27px 0 #fff1c7,
    0 24px 32px #a8742525;
}

.mood-page-mascot.mood-mascot-puffer::after {
  left: 15px;
  top: 88px;
  width: 70px;
  height: 60px;
}

.mood-page-mascot.mood-mascot-puffer > i::before {
  left: 169px;
  top: 76px;
}

.mood-page-mascot.mood-mascot-puffer > i::after {
  left: 185px;
  top: 112px;
}

.mood-page-mascot.mood-mascot-otter::before {
  left: 37px;
  top: 50px;
  width: 196px;
  height: 126px;
  border: 3px solid #fff9;
  box-shadow:
    inset 34px -25px 0 #d6c7b9,
    0 24px 32px #554c4929;
}

.mood-page-mascot.mood-mascot-otter::after {
  left: 4px;
  top: 105px;
  width: 82px;
  height: 42px;
}

.mood-page-mascot.mood-mascot-otter > i::before {
  left: 182px;
  top: 84px;
}

.mood-page-mascot.mood-mascot-otter > i::after {
  left: 204px;
  top: 110px;
}

.mood-scribble {
  position: absolute;
  right: 40px;
  top: 32px;
  max-width: 145px;
  color: #315f85;
  font:
    400 15px/1.55 'Ma Shan Zheng',
    var(--serif);
  transform: rotate(-5deg);
}

.mood-draw-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #fff;
  border-radius: 26px;
  background: #ffffff8f;
  box-shadow: 0 10px 30px #284e7412;
}

.mood-draw-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #51718d;
  font-size: 14px;
  font-weight: 700;
  transition:
    background var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    color var(--motion-fast) ease;
}
.mood-draw-tab:hover {
  background: #fff9;
  color: #183f65;
}

.mood-draw-tab[aria-current='page'] {
  border-color: var(--mood-mid);
  color: #183f65;
  background: #fff;
  box-shadow: 0 6px 16px #355b7820;
}

.mood-tab-icon {
  width: 45px;
  height: 38px;
  transform: scale(0.55);
  transform-origin: center;
}

.mood-result-region {
  display: grid;
  place-items: center;
  min-height: 90px;
}

.mood-result-region.has-result,
.mood-result-region.is-drawing {
  min-height: 520px;
}

.mood-result-hint {
  margin: 24px;
  color: #52799c;
  font-size: 13px;
}

.mood-drawing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  color: #315f85;
  text-align: center;
}

.mood-result-card {
  width: min(100%, 760px);
  padding: 28px;
  border: 2px solid #fff;
  border-radius: 34px;
  background: #ffffffae;
  box-shadow:
    0 22px 48px #275b8b20,
    inset 0 0 0 1px #94cbe02b;
  animation: mood-reveal 0.32s ease-out both;
}

@keyframes mood-reveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

.mood-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 14px;
  color: #446d90;
}

.mood-result-top > span {
  padding: 7px 13px;
  border-radius: 99px;
  color: #164a76;
  background: var(--mood-soft);
  font-size: 13px;
  font-weight: 800;
}

.mood-result-top small {
  font-variant-numeric: tabular-nums;
}

.mood-result-paper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: center;
  min-height: 260px;
  padding: 38px 36px;
  border: 1px solid color-mix(in srgb, var(--mood-mid) 45%, white);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--mood-paper), #fff);
  overflow: hidden;
}

.mood-result-paper::after {
  content: '';
  position: absolute;
  right: -28px;
  bottom: -35px;
  width: 220px;
  height: 100px;
  border-radius: 50%;
  background: var(--mood-soft);
  opacity: 0.7;
  transform: rotate(-8deg);
}

.mood-result-paper blockquote {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #102f55;
  font: 800 clamp(25px, 4vw, 38px)/1.6 var(--serif);
  letter-spacing: 0.02em;
}

.mood-result-paper .mood-page-mascot {
  position: relative;
  z-index: 2;
  width: 270px;
  height: 210px;
  margin: -55px -62px;
  transform: scale(0.5);
  transform-origin: center;
}

.mood-result-meter {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 18px 22px;
  border-radius: 22px;
  background: var(--mood-soft);
}

.mood-meter-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--mood-strong);
  background: #fff;
  font-size: 18px;
  font-weight: 900;
}

.mood-result-meter > div > p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 7px;
  color: #214f74;
  font-size: 13px;
}

.mood-result-meter > div > p b {
  color: #153d64;
  font-variant-numeric: tabular-nums;
}

.mood-result-meter > div > span {
  display: block;
  height: 9px;
  border-radius: 99px;
  background: #ffffffa8;
  overflow: hidden;
}

.mood-result-meter > div > span i {
  display: block;
  width: var(--mood-score);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mood-mid), var(--mood-strong));
}

.mood-result-meter small {
  display: block;
  margin-top: 7px;
  color: #547899;
  font-size: 11px;
}

.mood-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.mood-result-actions button {
  min-height: 52px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
  .mood-result-actions button:hover {
    transform: translateY(-2px);
  }
}
.mood-secondary-action {
  border: 1px solid var(--mood-mid);
  color: #285b82;
  background: #fff;
}

.mood-repeat-action {
  border: 1px solid var(--mood-strong);
  color: #fff;
  background: linear-gradient(120deg, var(--mood-mid), var(--mood-strong));
  box-shadow: 0 9px 20px color-mix(in srgb, var(--mood-strong) 25%, transparent);
}

@media (max-width: 820px) {
  .chance-mood-grid {
    grid-template-columns: 1fr;
  }
  .chance-mood-grid > .chance-mood-card {
    min-height: 152px;
  }
  .mood-draw-page {
    padding-block: 12px;
  }
  .mood-draw-hero {
    grid-template-columns: 1fr 0.78fr;
    min-height: 330px;
    padding: 34px 34px;
    border-radius: 32px;
  }
  .mood-page-mascot {
    transform: scale(1.3);
  }
  .mood-scribble {
    right: 22px;
    top: 24px;
  }
}

@media (max-width: 560px) {
  .mood-draw-page {
    min-height: calc(100dvh - 148px);
    padding-block: 8px 34px;
  }
  .mood-draw-nav {
    margin-bottom: 6px;
  }
  .mood-draw-nav > small {
    font-size: 10px;
  }
  .mood-draw-hero {
    grid-template-columns: 1fr;
    min-height: 440px;
    padding: 30px 24px 22px;
    text-align: left;
  }
  .mood-draw-intro {
    align-self: start;
  }
  .mood-draw-intro h1 {
    font-size: 44px;
  }
  .mood-draw-intro > p:nth-of-type(2) {
    max-width: 260px;
    margin: 8px 0 18px;
    font-size: 14px;
  }
  .mood-draw-primary {
    min-width: min(100%, 260px);
    min-height: 54px;
    font-size: 16px;
  }
  .mood-draw-hero > .mood-page-mascot {
    position: absolute;
    right: 2px;
    bottom: 2px;
    transform: scale(0.82);
    transform-origin: right bottom;
  }
  .mood-scribble {
    right: 16px;
    top: 142px;
    max-width: 112px;
    font-size: 13px;
  }
  .mood-draw-tabs {
    gap: 5px;
    padding: 7px;
    border-radius: 22px;
  }
  .mood-draw-tab {
    flex-direction: column;
    gap: 1px;
    min-height: 74px;
    padding: 6px 3px;
    border-radius: 16px;
    font-size: 11px;
  }
  .mood-tab-icon {
    height: 34px;
  }
  .mood-result-region.has-result,
  .mood-result-region.is-drawing {
    min-height: 470px;
  }
  .mood-result-card {
    padding: 14px;
    border-radius: 28px;
  }
  .mood-result-top {
    padding: 0 4px 10px;
  }
  .mood-result-paper {
    grid-template-columns: 1fr;
    min-height: 252px;
    padding: 30px 24px 72px;
  }
  .mood-result-paper blockquote {
    font-size: 27px;
    line-height: 1.62;
  }
  .mood-result-paper .mood-page-mascot {
    position: absolute;
    right: -54px;
    bottom: -51px;
    width: 270px;
    height: 210px;
    margin: 0;
    transform: scale(0.38);
    transform-origin: right bottom;
  }
  .mood-result-meter {
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 15px;
  }
  .mood-meter-icon {
    width: 42px;
    height: 42px;
  }
  .mood-result-meter > div > p {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .mood-result-actions {
    gap: 9px;
  }
  .mood-result-actions button {
    min-height: 50px;
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chance-mood-grid > .chance-mood-card,
  .mood-draw-primary,
  .mood-draw-tab,
  .mood-result-actions button {
    transition: none;
  }
  .mood-result-card {
    animation: none;
  }
}

/* 今日鱼种：抽取前与当天结果共用一张海洋卡片。 */

.daily-fish-banner {
  padding: 28px 0 34px;
}

.daily-fish-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: 370px;
  padding: 28px clamp(24px, 4vw, 64px);
  border: 2px solid #fff;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 20% 70%, #a4eaffaa, transparent 58%),
    linear-gradient(120deg, #e2faffc9, #e9f2ffce);
  box-shadow:
    inset 0 0 24px #fff,
    0 14px 38px #668dcc26;
  color: #173e79;
}

.daily-fish-identity {
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  column-gap: 16px;
}

.daily-fish-label {
  grid-column: 1/-1;
  justify-self: center;
  padding: 8px 28px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #fff0c5;
  color: #584c42;
  font:
    24px/1.2 'Ma Shan Zheng',
    var(--serif);
  transform: rotate(-5deg);
}

.daily-fish-art {
  grid-column: 1;
  grid-row: 2/5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border: 2px dashed #ffffffb3;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffffc9, #b9edff60 68%, transparent 70%);
}

.daily-fish-art > span {
  font-size: 100px;
  filter: drop-shadow(0 8px 10px #4ca7dc55);
}

.daily-fish-art small {
  font-size: 12px;
  color: #5576a5;
}

.daily-fish-identity > p:not(.daily-fish-message) {
  margin: 22px 0 0;
  font:
    24px/1.4 'Ma Shan Zheng',
    var(--serif);
}

.daily-fish-identity h1 {
  margin: 8px 0;
  font: 900 clamp(32px, 4vw, 64px)/1.25 var(--serif);
  color: #2254b7;
  text-shadow:
    2px 3px 0 #fff,
    0 5px 18px #8edcff;
}

.daily-fish-message {
  margin: 4px 0;
  font:
    17px/1.7 'Ma Shan Zheng',
    var(--serif);
  color: #43689c;
}

.daily-fish-details > h2 {
  font-size: 28px;
  margin: 0 0 14px;
}

.daily-fish-details > p {
  line-height: 1.9;
}

.daily-fish-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 13px 18px;
  border-radius: 18px;
  background: #ffffffc9;
  font-size: 15px;
  line-height: 1.65;
}

.daily-fish-row b {
  padding-right: 10px;
  border-right: 1px solid #c8e6ff;
  white-space: nowrap;
}

.daily-fish-stars {
  font-size: 24px;
  letter-spacing: 4px;
  color: #e9ac22;
}

.daily-fish-keyword {
  display: inline-block;
  padding: 7px 18px;
  background: #ffffffc9;
  border-radius: 24px;
  font-weight: 700;
  color: #3265b9;
}

.daily-fish-reset {
  font-size: 13px;
  color: #526d9b;
  margin: 12px 0;
}

.daily-fish-details .channel-primary {
  background: linear-gradient(100deg, #28c4e8, #7289f3 55%, #bc7ae5);
  color: #fff;
  border: 1px solid #fff;
  box-shadow: 0 4px 18px #8c83df45;
}

.daily-fish-details .channel-primary:disabled {
  cursor: default;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .daily-fish-card {
    gap: 24px;
    padding: 24px;
  }
  .daily-fish-identity {
    grid-template-columns: 1fr;
  }
  .daily-fish-art {
    grid-row: auto;
    min-height: 155px;
  }
  .daily-fish-art > span {
    font-size: 76px;
  }
  .daily-fish-label {
    font-size: 21px;
  }
  .daily-fish-row {
    grid-template-columns: 100px 1fr;
    gap: 10px;
    padding: 12px;
    font-size: 14px;
  }
}

@media (max-width: 650px) {
  .daily-fish-banner {
    padding-top: 20px;
  }
  .daily-fish-card {
    grid-template-columns: 1fr;
    gap: 22px;
    border-radius: 25px;
    padding: 24px 18px;
  }
  .daily-fish-identity {
    grid-template-columns: 1fr 1fr;
  }
  .daily-fish-art {
    grid-row: 2/5;
    min-height: 180px;
  }
  .daily-fish-identity h1 {
    font-size: 36px;
  }
  .daily-fish-identity > p:not(.daily-fish-message) {
    font-size: 19px;
  }
  .daily-fish-message {
    font-size: 14px;
  }
  .daily-fish-details .channel-primary {
    width: 100%;
    justify-content: center;
  }
}

/* 鱼种原画与海水背景在卡片内连成一个场景。 */

.daily-fish-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: #dff5ff;
}

.daily-fish-card::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: -24px;
  background: var(--fish-scene, url('/assets/draw-sky-v3.b67788551c07.webp')) center/cover;
  filter: blur(18px);
  opacity: 0.55;
}

.daily-fish-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, transparent 25%, #dff5ff99 55%, #e6f4ffe8);
}

.daily-fish-identity {
  display: block;
  position: relative;
  align-self: stretch;
  min-height: 480px;
}

.daily-fish-identity.has-fish {
  min-height: 0;
}

.daily-fish-portrait {
  display: block;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}

.daily-fish-details {
  box-sizing: border-box;
  min-width: 0;
  padding: 28px clamp(22px, 3vw, 46px) 28px 20px;
}

.daily-fish-details > .daily-fish-label {
  display: inline-block;
  font-size: 22px;
  margin-bottom: 12px;
}

.daily-fish-heading {
  margin: 0 0 16px;
  font:
    24px/1.35 'Ma Shan Zheng',
    var(--serif);
}

.daily-fish-heading strong {
  display: block;
  margin-top: 4px;
  color: #2254b7;
  font: 900 clamp(34px, 3.6vw, 56px)/1.25 var(--serif);
  text-shadow:
    2px 3px 0 #fff,
    0 5px 18px #8edcff;
}

.daily-fish-row {
  background: #ffffffd9;
  box-shadow: inset 0 1px 4px #fff;
}

.daily-fish-mystery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  mask-image: linear-gradient(90deg, #000 68%, #000d 84%, transparent);
}

.daily-fish-identity:not(.has-fish)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, #d7f2fa9c 0%, transparent 34%),
    linear-gradient(90deg, transparent 65%, #dff5ff78 88%, #dff5ff);
}

.daily-fish-welcome {
  position: absolute;
  z-index: 1;
  left: clamp(16px, 5%, 34px);
  right: auto;
  bottom: 18px;
  box-sizing: border-box;
  width: min(78%, 380px);
  padding: 10px 18px 12px;
  border: 1px solid #fffaf0;
  border-radius: 18px;
  background: linear-gradient(120deg, #fff9e9e8, #f4ffffdf);
  box-shadow:
    0 8px 24px #276b8d26,
    inset 0 1px 0 #fff;
  text-align: center;
  backdrop-filter: blur(8px);
}

.daily-fish-welcome > .daily-fish-label {
  display: none;
}

.daily-fish-welcome h1 {
  margin: 0;
  font-size: 25px;
  color: #176b83;
  text-shadow:
    1px 2px 0 #fff,
    0 3px 12px #8edcff7a;
}

.daily-fish-welcome p {
  margin: 4px 0 0;
  color: #5c7e89;
}

@media (max-width: 1000px) and (min-width: 651px) {
  .daily-fish-card {
    grid-template-columns: 1fr 1.15fr;
  }
  .daily-fish-identity.has-fish {
    display: flex;
    align-items: center;
  }
  .daily-fish-details {
    padding: 24px 20px;
  }
  .daily-fish-heading strong {
    font-size: 38px;
  }
  .daily-fish-row {
    grid-template-columns: 94px 1fr;
  }
  .daily-fish-reset {
    font-size: 12px;
  }
}

@media (max-width: 650px) {
  .daily-fish-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .daily-fish-identity {
    min-height: 300px;
  }
  .daily-fish-portrait {
    mask-image: linear-gradient(180deg, #000 90%, transparent);
  }
  .daily-fish-details {
    padding: 12px 20px 26px;
  }
  .daily-fish-card::after {
    background: linear-gradient(180deg, transparent, #e6f4ffe8 75%);
  }
  .daily-fish-heading strong {
    display: inline;
    margin-left: 8px;
    font-size: 34px;
  }
  .daily-fish-heading {
    font-size: 19px;
  }
  .daily-fish-mystery {
    mask-image: linear-gradient(180deg, #000 68%, #000c 84%, transparent);
  }
  .daily-fish-welcome {
    bottom: 14px;
  }
  .daily-fish-welcome h1 {
    font-size: 23px;
  }
}

/* 首推区保持紧凑，让精选抽法在首屏更早出现。 */

.daily-fish-banner {
  padding: 18px 0 22px;
}

.daily-fish-card {
  min-height: 320px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.daily-fish-identity {
  min-height: 320px;
}

.daily-fish-identity.has-fish {
  display: flex;
  align-items: center;
  justify-content: center;
}

.daily-fish-portrait {
  width: auto;
  max-width: 100%;
  height: 340px;
  aspect-ratio: 1;
  object-fit: contain;
}

.daily-fish-details {
  padding: 16px 28px 16px 16px;
}

.daily-fish-details > .daily-fish-label {
  padding: 5px 18px;
  font-size: 18px;
  margin-bottom: 6px;
}

.daily-fish-details > .daily-fish-heading {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.daily-fish-heading strong {
  display: inline;
  margin-left: 10px;
  font-size: 36px;
}

.daily-fish-row {
  grid-template-columns: 110px 1fr;
  margin-bottom: 6px;
  padding: 8px 14px;
  border-radius: 13px;
  font-size: 14px;
  line-height: 1.5;
}

.daily-fish-stars {
  font-size: 20px;
}

.daily-fish-keyword {
  padding: 4px 12px;
  font-size: 12px;
}

.daily-fish-details > .daily-fish-reset {
  margin: 6px 0;
  font-size: 12px;
  line-height: 1.5;
}

.daily-fish-details .channel-primary {
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
}

.daily-fish-welcome {
  bottom: 16px;
}

.daily-fish-welcome h1 {
  font-size: 24px;
}

.daily-fish-welcome p {
  font-size: 12px;
  margin-top: 4px;
}

@media (max-width: 1000px) and (min-width: 651px) {
  .daily-fish-card {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
  .daily-fish-details {
    padding: 16px;
  }
  .daily-fish-portrait {
    height: 310px;
  }
  .daily-fish-heading strong {
    font-size: 30px;
  }
  .daily-fish-row {
    grid-template-columns: 94px 1fr;
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 650px) {
  .daily-fish-banner {
    padding: 12px 0 18px;
  }
  .daily-fish-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .daily-fish-identity {
    min-height: 230px;
  }
  .daily-fish-identity.has-fish {
    min-height: 0;
  }
  .daily-fish-portrait {
    height: 190px;
    width: 100%;
    object-fit: contain;
    mask-image: linear-gradient(180deg, #000 88%, transparent);
  }
  .daily-fish-details {
    padding: 8px 16px 18px;
  }
  .daily-fish-details > .daily-fish-label {
    font-size: 16px;
  }
  .daily-fish-heading strong {
    font-size: 28px;
  }
  .daily-fish-row {
    grid-template-columns: 94px 1fr;
    gap: 8px;
    padding: 7px 10px;
    font-size: 13px;
  }
  .daily-fish-mystery {
    object-position: center 43%;
  }
  .daily-fish-welcome {
    left: 50%;
    bottom: 8px;
    width: calc(100% - 32px);
    padding: 8px 12px 9px;
    translate: -50% 0;
  }
  .daily-fish-welcome h1 {
    font-size: 21px;
  }
}

/* 原画作为卡片场景铺开，消除独立方形海报的边界。 */

.daily-fish-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.daily-fish-card::before {
  inset: 0;
  filter: blur(8px);
  opacity: 0.85;
}

.daily-fish-card::after {
  background: linear-gradient(90deg, transparent 18%, #c9edfa33 36%, #dff5ffd9 55%, #e6f4fff2 100%);
}

.daily-fish-identity.has-fish {
  display: block;
  overflow: hidden;
}

.daily-fish-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 46%;
  mask-image: linear-gradient(90deg, #000 64%, #000b 80%, transparent 100%);
}

.daily-fish-identity.has-fish::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, #bce5f544, transparent 25%), linear-gradient(180deg, #e5f9ff22, transparent 22%);
}

.daily-fish-details {
  position: relative;
  z-index: 1;
}

.daily-fish-row {
  background: linear-gradient(100deg, #ffffffd9, #ffffffe8);
  border: 1px solid #ffffff80;
  box-shadow: 0 3px 12px #548bad08;
}

@media (max-width: 1000px) and (min-width: 651px) {
  .daily-fish-card {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr);
  }
  .daily-fish-portrait {
    height: 100%;
    object-position: 48% center;
  }
}

@media (max-width: 650px) {
  .daily-fish-card {
    grid-template-columns: 1fr;
  }
  .daily-fish-identity.has-fish {
    min-height: 190px;
  }
  .daily-fish-card::after {
    background: linear-gradient(180deg, transparent 10%, #dff5ff66 34%, #e6f4fff0 52%);
  }
  .daily-fish-portrait {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center 43%;
    mask-image: linear-gradient(180deg, #000 55%, #000a 80%, transparent);
  }
  .daily-fish-identity.has-fish::after {
    background: linear-gradient(0deg, #dff5ff70, transparent 55%);
  }
}

/* 每日鱼稀有度：文字、材质与揭晓反馈共同区分，不借用摸鱼指数星级。 */

.daily-fish-rarity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
  color: #416a83;
  font-size: 12px;
}

.daily-fish-rarity-badge {
  padding: 6px 14px;
  border: 1px solid #90bdd4;
  border-radius: 8px;
  background: #edf9ff;
  color: #245b79;
  font-weight: 800;
  letter-spacing: 2px;
}

.daily-fish-card.is-rare {
  background: #fff1cf;
  border: 2px solid #d8ad55;
  box-shadow:
    0 10px 36px #97662226,
    inset 0 0 0 4px #fff6d8;
}

.daily-fish-card.is-rare::after {
  background: linear-gradient(90deg, transparent 18%, #fff0c733 36%, #fff2d4ed 55%, #fff8e9 100%);
}

.is-rare .daily-fish-rarity {
  color: #79551e;
}

.is-rare .daily-fish-rarity-badge {
  border-color: #ab761f;
  color: #67400d;
  background: linear-gradient(120deg, #fff8d7, #efd08b, #fff0ba);
  box-shadow: 0 2px 10px #a3732526;
}

.daily-fish-details > .daily-fish-surprise {
  margin: 0 0 8px;
  color: #805719;
  font-size: 15px;
  letter-spacing: 3px;
}

.is-rare .daily-fish-heading strong {
  color: #815216;
  text-shadow: 0 2px 0 #fff8df;
}

.is-rare .daily-fish-row {
  border-color: #dfc58c;
  background: #fffdf5e8;
}

.daily-fish-card.is-revealing .daily-fish-details {
  animation: daily-fish-arrive 450ms ease-out both;
}

.daily-fish-card.is-rare.is-revealing .daily-fish-identity::after {
  background: linear-gradient(115deg, transparent 25%, #fff7c9bb 48%, transparent 70%);
  animation: daily-fish-glint 1100ms ease-out both;
}

.daily-fish-card.is-rare.is-revealing .daily-fish-details {
  animation-duration: 850ms;
}

@keyframes daily-fish-arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes daily-fish-glint {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@media (max-width: 650px) {
  .daily-fish-card.is-rare::after {
    background: linear-gradient(180deg, transparent 10%, #fff0c766 30%, #fff5e1 50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-fish-card.is-revealing .daily-fish-details,
  .daily-fish-card.is-rare.is-revealing .daily-fish-identity::after {
    animation: none;
  }
}

/* After-work fortune: a small seaside ritual with a glass result tag. */

body.is-fortune {
  background: #dff5ff;
}

body.is-fortune .depth-atmosphere {
  display: none;
}

body.is-fortune .site-header {
  color: #173f69;
  border-color: #a9d9ee;
  background: #def4ff;
}

body.is-fortune .brand,
body.is-fortune .main-nav a {
  color: #173f69;
}

body.is-fortune .main-nav a[aria-current='page']::after {
  background: #ff8389;
}

body.is-fortune .header-draw {
  color: #173f69;
  border-color: #9bcfe4;
  background: #f7fdff;
  box-shadow: 3px 3px 0 #88bad0;
}

body.is-fortune .site-footer {
  color: #4f7896;
  border-color: #a9d9ee;
  background: #dff5ff;
}

body.is-fortune .site-footer a {
  color: #173f69;
}

.fortune-page {
  min-height: calc(100dvh - 176px);
  padding-block: 26px 64px;
  color: #123e69;
  background:
    radial-gradient(circle at 18% 18%, #fff 0 3%, transparent 16%),
    linear-gradient(180deg, #dff5ff 0%, #bfeaff 45%, #72c9ec 72%, #dcf6f4 100%);
  overflow: hidden;
}

.fortune-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 720px;
  margin: 0 auto;
  padding: 16px 0 32px;
  text-align: center;
}

.fortune-stage::before,
.fortune-stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.fortune-stage::before {
  inset: 32% -35vw -80px;
  background:
    radial-gradient(ellipse at 50% 100%, #ecfbff 0 35%, transparent 36%),
    radial-gradient(ellipse at 45% 60%, #ffffffcc 0 2%, transparent 2.5%);
  opacity: 0.72;
}

.fortune-stage::after {
  left: 50%;
  bottom: -54px;
  width: 480px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #78aac777 0 6%, #acd9dd 7% 31%, #f5ecd8 32% 56%, transparent 57%);
  transform: translateX(-50%);
  filter: blur(1px);
}

.fortune-page .breadcrumbs {
  position: relative;
  z-index: 3;
  width: min(100%, 1180px);
  margin: 0 auto 8px;
  color: #4b7799;
  text-align: left;
}

.fortune-heading {
  position: relative;
  z-index: 2;
}

.fortune-heading > p {
  margin: 0 0 3px;
  color: #73a4c4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.fortune-heading h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  color: #0d426d;
  font: 800 clamp(38px, 6vw, 58px)/1.25 var(--serif);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 #fff;
}

.fortune-heading h1 i {
  position: absolute;
  right: -30px;
  bottom: 2px;
  width: 26px;
  height: 9px;
  border-top: 3px solid #58bcec;
  border-radius: 50%;
  transform: rotate(-8deg);
}

.fortune-heading > span {
  display: block;
  margin-top: 4px;
  color: #3d6f94;
  font: 500 16px/1.7 var(--serif);
}

.fortune-result {
  display: grid;
  place-items: center;
  min-height: 486px;
  margin: 4px auto 8px;
  transition:
    opacity var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}
.fortune-result.is-drawing {
  opacity: 0.35;
  transform: translateY(6px) scale(0.98);
}

.fortune-oracle {
  position: relative;
  width: min(74vw, 380px);
  margin: -5px auto -36px;
  filter: drop-shadow(0 18px 20px #24799d31);
}

.fortune-oracle img {
  display: block;
  width: 100%;
  height: auto;
}

.fortune-oracle > span {
  position: absolute;
  left: 50%;
  top: 42%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 170px;
  border: 2px solid #e7b983;
  border-radius: 34px 34px 18px 18px;
  color: #174f78;
  background: linear-gradient(90deg, #ffedd7, #fff9e9 45%, #f2d9bf);
  box-shadow:
    inset 0 0 0 5px #fff8e099,
    0 8px 14px #553c3130;
  font: 700 22px/1.45 var(--serif);
  transform: translate(-50%, -50%) rotate(-2deg);
}

.fortune-empty-copy {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #285d84;
  font: 600 17px/1.7 var(--serif);
}

.fortune-empty-copy small {
  color: #6c93ae;
  font: 400 12px/1.6 var(--sans);
}

.fortune-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.fortune-draw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 270px;
  min-height: 64px;
  padding: 13px 34px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(110deg, #ffaca6, #ff747b);
  box-shadow:
    inset 0 1px 0 #fff9,
    0 9px 22px #c6576742;
  font-size: 21px;
  font-weight: 700;
  transition:
    transform var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    filter var(--motion-fast) ease;
  touch-action: manipulation;
}

.fortune-draw-button svg {
  width: 23px;
  height: 23px;
  padding: 4px;
  border-radius: 50%;
  color: #fb7780;
  background: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}
@media (hover: hover) and (pointer: fine) {
  .fortune-draw-button:hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 #fff9,
      0 13px 26px #c6576752;
    filter: saturate(1.07);
  }
}
.fortune-draw-button:active {
  transform: translateY(1px) scale(0.99);
}

.fortune-draw-button:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.fortune-actions > a {
  min-height: 44px;
  padding: 12px 16px;
  color: #356c93;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fortune-odds {
  position: relative;
  z-index: 2;
  margin: 5px 0 0;
  color: #5684a5;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.fortune-card {
  position: relative;
  width: min(100%, 470px);
  min-height: 470px;
  margin-top: 13px;
  padding: 32px 34px 24px;
  border: 2px solid #f7fdff;
  border-radius: 54px 54px 28px 28px;
  background: linear-gradient(145deg, #ffffffee, #e7f8ffdf);
  box-shadow:
    inset 0 0 0 5px #bfe9f480,
    inset 0 0 35px #58c8ed28,
    0 20px 44px #27759b35;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.fortune-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid #9bd9ec;
  border-radius: 46px 46px 22px 22px;
  pointer-events: none;
}

.fortune-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: #6cadc9;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.fortune-shell-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #58b9dc;
  background: #e2f7ff;
  font-size: 22px;
}

.fortune-tier {
  font-weight: 800;
}

.fortune-card.tier-rare .fortune-tier {
  padding: 5px 10px;
  border-radius: 99px;
  color: #8b5421;
  background: #ffe6b1;
  box-shadow: 0 3px 12px #d28f3d26;
}

.fortune-card h2 {
  position: relative;
  z-index: 1;
  margin: 12px 0 3px;
  color: #073b6e;
  font: 800 clamp(28px, 5vw, 40px)/1.35 var(--serif);
  letter-spacing: 0.01em;
}

.fortune-tagline {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #577893;
  font: 500 13px/1.5 var(--serif);
}

.fortune-fish {
  position: relative;
  z-index: 1;
  height: 92px;
  margin: 8px 0 2px;
  overflow: hidden;
}

.fortune-fish::before {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 7px;
  height: 36px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    ellipse at 50% 100%,
    transparent 0 13px,
    #8ddff1 14px 18px,
    transparent 19px 28px
  );
  opacity: 0.75;
}

.fortune-fish > span {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 90px;
  height: 54px;
  border-radius: 54% 46% 50% 50%;
  background: linear-gradient(145deg, #f8fdff 0 35%, #87ccec 36% 100%);
  box-shadow:
    inset -9px -7px 0 #6db4dc,
    0 8px 13px #3382a329;
  transform: translate(-50%, -50%);
}

.fortune-fish > span::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 12px;
  border: 19px solid transparent;
  border-right: 30px solid #81c4e6;
  transform: rotate(-8deg);
}

.fortune-fish > span::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0d436c;
  box-shadow:
    2px -2px 0 1px #fff,
    12px 14px 0 -2px #f48e97;
}

.fortune-details {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 6px;
  text-align: left;
}

.fortune-details > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 13px;
  align-items: start;
  padding: 12px 4px;
  border-top: 1px dashed #9bcfe1;
}

.fortune-details dt {
  color: #1d6698;
  font-size: 14px;
  font-weight: 700;
}

.fortune-details dd {
  margin: 0;
  color: #214f70;
  font-size: 14px;
  line-height: 1.65;
}

.fortune-stars {
  display: inline-flex;
  color: #ffc34e;
  font-size: 21px;
  letter-spacing: 3px;
  line-height: 1;
  filter: drop-shadow(0 2px 0 #e39c38);
}

.fortune-footer {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: #6d9ab2;
  font:
    400 13px/1.5 'Ma Shan Zheng',
    var(--serif);
  letter-spacing: 0.08em;
}

.fortune-card.tier-funny {
  background: linear-gradient(145deg, #fffdf8ee, #eef8ffdf);
}

.fortune-card.tier-rare {
  border-color: #fff8d9;
  background: linear-gradient(145deg, #fffdf4f2, #e7f8fff0 60%, #fff1c9e8);
  box-shadow:
    inset 0 0 0 5px #fff0bd80,
    inset 0 0 40px #ffd97835,
    0 20px 50px #8f6f3b35;
}

@media (max-width: 600px) {
  .fortune-page {
    min-height: calc(100dvh - 160px);
    padding-block: 18px 48px;
  }
  .fortune-stage {
    min-height: 650px;
    padding: 8px 0 24px;
  }
  .fortune-page .breadcrumbs {
    padding-inline: 8px;
    margin-bottom: 10px;
  }
  .fortune-heading > span {
    font-size: 14px;
  }
  .fortune-result {
    min-height: 420px;
  }
  .fortune-oracle {
    width: min(86vw, 350px);
    margin-bottom: -30px;
  }
  .fortune-card {
    width: min(94vw, 450px);
    min-height: 420px;
    padding: 27px 22px 20px;
    border-radius: 40px 40px 24px 24px;
  }
  .fortune-card::before {
    border-radius: 34px 34px 18px 18px;
  }
  .fortune-card h2 {
    font-size: 30px;
  }
  .fortune-fish {
    height: 76px;
  }
  .fortune-details > div {
    grid-template-columns: 76px 1fr;
    gap: 9px;
    padding: 10px 2px;
  }
  .fortune-details dt,
  .fortune-details dd {
    font-size: 13px;
  }
  .fortune-draw-button {
    min-width: min(78vw, 280px);
    min-height: 58px;
    font-size: 19px;
  }
  .fortune-odds {
    max-width: 320px;
    margin-inline: auto;
    line-height: 1.7;
  }
}

@media (max-width: 380px) {
  .fortune-heading h1 {
    font-size: 34px;
  }
  .fortune-card {
    padding-inline: 17px;
  }
  .fortune-details > div {
    grid-template-columns: 70px 1fr;
  }
  .fortune-stars {
    font-size: 18px;
    letter-spacing: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fortune-result,
  .fortune-draw-button {
    transition: none;
  }
}

/* “今晚吃什么” — a decision game, not a slot machine. */

body.is-dinner {
  background: #dcf5ff;
}

body.is-dinner .site-header {
  border-bottom-color: #b8e3f2;
  background: #f7fcffdd;
  backdrop-filter: blur(16px);
}

body.is-dinner .site-footer {
  border-top-color: #b8e3f2;
  background: #eaf9ff;
}

.dinner-page {
  position: relative;
  min-height: calc(100dvh - 176px);
  padding-block: 24px 72px;
  color: #143f70;
  background:
    radial-gradient(circle at 15% 11%, #fff 0 2%, transparent 15%),
    radial-gradient(circle at 84% 22%, #fff9 0 1%, transparent 13%),
    linear-gradient(180deg, #f5fdff 0%, #d7f4ff 43%, #9ddff3 100%);
  overflow: hidden;
}

.dinner-page::before,
.dinner-page::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  border: 2px solid #fffb;
  box-shadow:
    inset 0 0 10px #fff,
    0 5px 12px #4caac52b;
}

.dinner-page::before {
  width: 76px;
  height: 76px;
  left: 7%;
  top: 220px;
}

.dinner-page::after {
  width: 34px;
  height: 34px;
  right: 10%;
  top: 150px;
}

.dinner-page .breadcrumbs {
  position: relative;
  z-index: 3;
  width: min(100%, 960px);
  margin: 0 auto 8px;
  color: #4b789d;
}

.dinner-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: 8px 0 32px;
}

.dinner-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 120px;
  width: 120vw;
  height: 330px;
  background: linear-gradient(180deg, #99e1f440, #5ec2e81f);
  border-top: 2px solid #fff9;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
}

.dinner-heading {
  text-align: center;
}

.dinner-heading > p {
  margin: 0 0 9px;
  color: #5e91b2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.dinner-heading h1 {
  margin: 0;
  color: #123f78;
  font: 900 clamp(42px, 7vw, 68px)/1.18 var(--serif);
  letter-spacing: -0.055em;
  text-shadow: 0 3px 0 #fff;
}

.dinner-heading > span {
  display: block;
  margin-top: 6px;
  color: #5c88aa;
  font: 500 17px/1.6 var(--serif);
  letter-spacing: 0.08em;
}

.dinner-mood {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 24px 0 18px;
  padding: 16px 18px;
  border: 2px solid #fff;
  border-radius: 26px;
  background: #fafdfff0;
  box-shadow:
    inset 0 0 0 1px #b8e8f2,
    0 12px 30px #24799b1c;
}

.dinner-mood > div:first-child {
  min-width: 145px;
}

.dinner-mood > div:first-child > span {
  display: block;
  color: #164c7b;
  font-size: 15px;
  font-weight: 800;
}

.dinner-mood small {
  display: block;
  margin-top: 4px;
  color: #7397b0;
  font-size: 10px;
  line-height: 1.5;
}

.dinner-mood-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}

.dinner-mood-list button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 68px;
  padding: 7px 5px;
  border: 1px solid #d1e7ef;
  border-radius: 17px;
  color: #527997;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 5px 12px #2c7b9920;
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
  touch-action: manipulation;
}

.dinner-mood-list button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #5597c6;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) and (pointer: fine) {
  .dinner-mood-list button:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #6dc8ec;
  }
}
.dinner-mood-list button[aria-pressed='true'] {
  border-color: #5dc6f3;
  color: #154f87;
  background: linear-gradient(160deg, #effbff, #d9f3ff);
  box-shadow:
    inset 0 0 0 2px #b4e9fb,
    0 7px 18px #4aa9cd30;
}

.dinner-mood-list button[aria-pressed='true'] svg {
  stroke: #197dc0;
}

.dinner-mood-list button:disabled {
  cursor: default;
  opacity: 0.62;
}

.dinner-mood-list button[aria-pressed='true']:disabled {
  opacity: 1;
}

.dinner-output {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
  border: 2px solid #fff;
  border-radius: 48px;
  background: linear-gradient(180deg, #bdeeffe6, #eefdfff5);
  box-shadow:
    inset 0 0 55px #fff8,
    0 22px 45px #22749724;
  overflow: hidden;
  transition:
    opacity var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}
.dinner-output::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 92px;
  background:
    radial-gradient(ellipse at 8% 100%, #52bda9 0 6%, transparent 6.5%),
    radial-gradient(ellipse at 93% 105%, #ef9f9f 0 7%, transparent 7.5%),
    linear-gradient(180deg, transparent, #76cbdc66);
}

.dinner-output.is-ready {
  min-height: 300px;
}

.dinner-output.is-drawing {
  min-height: 430px;
}

.dinner-welcome {
  position: relative;
  z-index: 1;
  padding: 34px 22px 42px;
  text-align: center;
}

.dinner-welcome h2 {
  margin: 10px 0 7px;
  color: #113f73;
  font: 800 clamp(25px, 4vw, 38px)/1.35 var(--serif);
}

.dinner-welcome p {
  margin: 0;
  color: #6389a4;
  font-size: 13px;
}

.dinner-mascot {
  position: relative;
  width: 160px;
  height: 150px;
  margin: 0 auto;
}

.dinner-mascot > i {
  position: absolute;
  left: 26px;
  top: 13px;
  width: 112px;
  height: 122px;
  border-radius: 56% 50% 48% 52%;
  background: linear-gradient(140deg, #fafdff 0 34%, #78c9ee 35% 100%);
  box-shadow:
    inset -11px -8px 0 #57addb,
    0 14px 24px #19789d30;
  transform: rotate(-3deg);
}

.dinner-mascot > i::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 44px;
  border: 24px solid transparent;
  border-right: 34px solid #6fc1e8;
  transform: rotate(-6deg);
}

.dinner-mascot > i::after {
  content: '';
  position: absolute;
  left: 33px;
  top: 46px;
  width: 10px;
  height: 12px;
  border-radius: 50%;
  background: #173f6e;
  box-shadow:
    40px 0 #173f6e,
    2px -3px 0 1px #fff,
    42px -3px 0 1px #fff,
    22px 24px 0 -1px #ef7580;
}

.dinner-mascot > span {
  position: absolute;
  left: 65px;
  top: 85px;
  z-index: 2;
  width: 36px;
  height: 18px;
  border-bottom: 5px solid #c95460;
  border-radius: 0 0 28px 28px;
}

.dinner-mascot > b {
  position: absolute;
  left: 64px;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 70% 8% 70% 20%;
  background: #4ea8dc;
  transform: rotate(-40deg);
}

.dinner-mascot::before,
.dinner-mascot::after {
  content: '';
  position: absolute;
  z-index: 3;
  bottom: 6px;
  width: 53px;
  height: 36px;
  border-radius: 50%;
  background: #82cdf0;
  box-shadow: inset -5px -5px 0 #57adde;
}

.dinner-mascot::before {
  left: 14px;
  transform: rotate(18deg);
}

.dinner-mascot::after {
  right: 10px;
  transform: rotate(-18deg);
}

.dinner-ticket {
  position: relative;
  z-index: 1;
  width: min(100% - 30px, 680px);
  margin: 22px auto;
  padding: 24px 30px 27px;
  border: 2px solid #fff;
  border-radius: 38px;
  background: linear-gradient(155deg, #fffffff5, #f0fbfff2);
  box-shadow:
    inset 0 0 0 5px #b9e9f17d,
    0 18px 40px #176b9130;
  text-align: center;
  overflow: hidden;
}

.dinner-ticket::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid #9bd8e8;
  border-radius: 31px;
  pointer-events: none;
}

.dinner-ticket-kicker {
  position: relative;
  margin: 0;
  color: #72a7bd;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.dinner-dish-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 8px auto -1px;
  border-radius: 50%;
  background: #e0f7ff;
  font-size: 34px;
  box-shadow: inset 0 -5px 0 #b8e9f6;
}

.dinner-tonight {
  position: relative;
  margin: 5px 0 0;
  color: #4f81a0;
  font-size: 12px;
  font-weight: 700;
}

.dinner-ticket h2 {
  position: relative;
  margin: 0;
  color: #103e76;
  font: 900 clamp(32px, 5vw, 51px)/1.35 var(--serif);
  letter-spacing: -0.035em;
  text-decoration: underline 6px #ffe087;
  text-decoration-skip-ink: none;
  text-underline-offset: -2px;
}

.dinner-luck {
  position: relative;
  width: fit-content;
  margin: 6px auto 8px;
  padding: 5px 15px;
  border-radius: 99px;
  color: #3c769d;
  background: #d9f3ff;
  font-size: 13px;
}

.dinner-copy {
  position: relative;
  margin: 0 auto 18px;
  color: #577b96;
  font: 500 15px/1.75 var(--serif);
}

.dinner-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 15px 6px;
  border-top: 1px solid #c2e1eb;
  border-bottom: 1px solid #c2e1eb;
}

.dinner-metrics > div {
  padding: 0 12px;
}

.dinner-metrics > div + div {
  border-left: 1px solid #b9dce8;
}

.dinner-metrics dt {
  margin-bottom: 7px;
  color: #35678d;
  font-size: 12px;
  font-weight: 700;
}

.dinner-metrics dd {
  margin: 0;
}

.dinner-stars {
  color: #ffb83e;
  font-size: 17px;
  letter-spacing: 1px;
  filter: drop-shadow(0 1px 0 #e99b26);
  white-space: nowrap;
}

.dinner-advice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 18px;
  color: #345f7d;
  background: linear-gradient(100deg, #fff6dc, #fffdf3);
  text-align: left;
}

.dinner-advice > span {
  flex: none;
  color: #f19772;
  font-size: 32px;
  font-weight: 900;
}

.dinner-advice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.dinner-advice strong {
  display: block;
  color: #184e78;
}

.dinner-ticket.is-rare {
  border-color: #fff3bd;
  background:
    radial-gradient(circle at 50% 8%, #fff4b8 0, transparent 28%),
    linear-gradient(150deg, #fffdf2f7, #effafff5 64%, #fff2c9f2);
  box-shadow:
    inset 0 0 0 5px #ffe6a16b,
    0 20px 48px #b7772c3b;
}

.dinner-ticket.is-rare::before {
  border-color: #efc778;
}

.dinner-rare-banner {
  position: relative;
  width: fit-content;
  margin: 0 auto 4px;
  padding: 7px 24px;
  border-radius: 8px 8px 18px 18px;
  color: #945018;
  background: linear-gradient(180deg, #fff1a3, #ffc65f);
  box-shadow: 0 5px 12px #b16d2938;
  font: 800 17px/1 var(--serif);
}

.dinner-rare-banner span {
  color: #fff;
}

.dinner-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 20px auto 0;
  flex-wrap: wrap;
}

.dinner-primary,
.dinner-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 260px;
  min-height: 62px;
  padding: 12px 30px;
  border: 3px solid #fff;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 #fff8,
    0 10px 22px #276f8e30;
  transition:
    transform var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    filter var(--motion-fast) ease;
  touch-action: manipulation;
}

.dinner-primary {
  color: #fff;
  background: linear-gradient(115deg, #ffad94, #ff765f);
}

.dinner-secondary {
  color: #2477af;
  background: linear-gradient(145deg, #faffff, #dff5ff);
}

.dinner-primary > span,
.dinner-secondary > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ee715e;
  background: #fff;
  font-size: 24px;
  line-height: 1;
}

.dinner-secondary > span {
  color: #2f8dc8;
  font-size: 17px;
}
@media (hover: hover) and (pointer: fine) {
  .dinner-primary:hover:not(:disabled),
  .dinner-secondary:hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 #fff8,
      0 14px 27px #276f8e3d;
    filter: saturate(1.08);
  }
}
.dinner-primary:active:not(:disabled),
.dinner-secondary:active {
  transform: translateY(1px) scale(0.99);
}

.dinner-primary:disabled {
  cursor: default;
  opacity: 0.82;
}

.dinner-primary.is-accepted {
  background: linear-gradient(115deg, #6fc6ae, #49aa91);
}

.dinner-reset {
  min-height: 48px;
  padding: 8px 18px;
  border: 0;
  color: #397496;
  background: transparent;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dinner-bottom-note,
.dinner-final-warning {
  margin: 12px auto 0;
  color: #5f8da9;
  font-size: 12px;
  text-align: center;
}

.dinner-final-warning {
  padding: 11px 16px;
  border-radius: 14px;
  color: #8b5b27;
  background: #fff4d5c7;
  line-height: 1.65;
}

.dinner-final-warning strong {
  color: #b45836;
}

.dinner-rejections {
  margin: 0 0 18px;
  padding: 16px 19px;
  border: 2px solid #fff;
  border-radius: 24px;
  background: #fafeffeb;
  box-shadow: 0 10px 26px #276f8b1d;
}

.dinner-rejection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dinner-rejection-head strong {
  color: #164a76;
  font-size: 14px;
}

.dinner-rejection-head span {
  color: #7899af;
  font-size: 10px;
}

.dinner-rejection-list {
  display: flex;
  gap: 8px;
  margin: 11px 0;
  flex-wrap: wrap;
}

.dinner-rejection-list > span {
  padding: 7px 10px;
  border: 1px solid #d0e5ec;
  border-radius: 12px;
  color: #53758e;
  background: #fff;
  font-size: 12px;
}

.dinner-rejection-list b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 5px;
  border-radius: 50%;
  color: #fff;
  background: #f58e85;
}

.dinner-rejections > p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 13px;
  border-radius: 14px;
  color: #496f87;
  background: #fff8e5;
  font: 500 13px/1.6 var(--serif);
}

.dinner-rejections > p i {
  display: grid;
  flex: none;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #a66d12;
  background: #ffe68f;
  font: 900 17px/1 var(--sans);
}

.dinner-drawing {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #3c7397;
  text-align: center;
}

@media (max-width: 760px) {
  .dinner-page {
    padding-block: 18px 56px;
  }
  .dinner-page .breadcrumbs {
    padding-inline: 8px;
  }
  .dinner-heading h1 {
    font-size: 42px;
  }
  .dinner-mood {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }
  .dinner-mood > div:first-child {
    text-align: center;
  }
  .dinner-mood-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .dinner-output {
    min-height: 370px;
    border-radius: 34px;
  }
  .dinner-output.is-ready {
    min-height: 270px;
  }
  .dinner-ticket {
    width: calc(100% - 18px);
    margin: 9px;
    padding: 23px 18px;
    border-radius: 30px;
  }
  .dinner-ticket::before {
    border-radius: 24px;
  }
  .dinner-metrics > div {
    padding-inline: 5px;
  }
  .dinner-stars {
    font-size: 14px;
    letter-spacing: 0;
  }
  .dinner-primary,
  .dinner-secondary {
    flex: 1 1 250px;
    min-width: 0;
  }
}

@media (max-width: 440px) {
  .dinner-heading > span {
    font-size: 14px;
  }
  .dinner-mood-list button {
    min-height: 62px;
  }
  .dinner-output {
    min-height: 350px;
  }
  .dinner-metrics {
    gap: 0;
  }
  .dinner-metrics dt {
    font-size: 10px;
  }
  .dinner-stars {
    font-size: 12px;
  }
  .dinner-copy {
    font-size: 14px;
  }
  .dinner-actions {
    gap: 9px;
  }
  .dinner-primary,
  .dinner-secondary {
    min-height: 58px;
    font-size: 17px;
  }
  .dinner-rejection-head {
    display: block;
  }
  .dinner-rejection-head span {
    display: block;
    margin-top: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dinner-output,
  .dinner-primary,
  .dinner-secondary,
  .dinner-mood-list button {
    transition: none;
  }
}
