.bubble-one {
  left: 33px;
  width: 21px;
  height: 21px;
}

.bubble-two {
  bottom: 39px;
  left: 54%;
}

.bubble-three {
  top: 14px;
  right: 23%;
  width: 35px;
  height: 35px;
}

.bubble-one {
  top: 13px;
  left: 32px;
  width: 23px;
  height: 23px;
}

.bubble-two {
  bottom: 48px;
  left: 53%;
  width: 16px;
  height: 16px;
}

.bubble-three {
  top: 16px;
  right: 39%;
  width: 29px;
  height: 29px;
}

@media (max-width: 760px) {
  .bubble-three {
    right: 33%;
    top: 8px;
    width: 17px;
    height: 17px;
  }
  .bubble-two {
    display: none;
  }
}

/* 全站版心唯一实现：净宽不包含留白。见 VISUAL-SYSTEM.md。 */

:root {
  --layout-wide: 1440px;
  --layout-standard: 1200px;
  --layout-reading: 800px;
  --layout-gutter: 32px;
  --layout-left: max(var(--layout-gutter), env(safe-area-inset-left, 0px));
  --layout-right: max(var(--layout-gutter), env(safe-area-inset-right, 0px));
}

@media (max-width: 1199px) {
  :root {
    --layout-gutter: 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --layout-gutter: 16px;
  }
}

body {
  --layout-content: var(--layout-standard);
}

body:is(
  .is-ocean,
  :has(
    .channel-home,
    .learn-home,
    .wordle-page,
    .timer-page,
    .sync-page,
    .park-winter,
    .park-shop,
    .park-pond-page
  )
) {
  --layout-content: var(--layout-wide);
}

body:has(
    .fortune-page,
    .dinner-page,
    .mood-draw-page,
    .page.article,
    .game-shell,
    .draw-shell,
    .fd-layout.is-round
  ):not(:has(.timer-page)) {
  --layout-content: var(--layout-reading);
}

/* Backgrounds span the viewport; menu contents always use the wide measure. */

html body .site-header,
html body .detail-navigation,
html body .site-footer {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-left: max(
    var(--layout-left),
    calc((100% - var(--layout-wide) + var(--layout-left) - var(--layout-right)) / 2)
  );
  padding-right: max(
    var(--layout-right),
    calc((100% - var(--layout-wide) - var(--layout-left) + var(--layout-right)) / 2)
  );
}

/* Border-box shells add gutters back so the advertised maximum is the net width. */

html
  body
  :is(.page, .ocean-content, .ocean-explore, .earth-page, .learn-memory):not(
    .learn-home,
    .fortune-page,
    .dinner-page,
    .mood-draw-page
  ) {
  width: 100%;
  max-width: calc(var(--layout-content) + var(--layout-left) + var(--layout-right));
  margin-inline: auto;
  padding-left: var(--layout-left);
  padding-right: var(--layout-right);
}

html body .page.article {
  max-width: calc(var(--layout-reading) + var(--layout-left) + var(--layout-right) + 2px);
}

/* Scene pages keep their full-width artwork around a constrained inner stage. */

html body :is(.fortune-page, .dinner-page, .mood-draw-page) {
  width: 100%;
  max-width: none;
  padding-left: max(
    var(--layout-left),
    calc((100% - var(--layout-reading) + var(--layout-left) - var(--layout-right)) / 2)
  );
  padding-right: max(
    var(--layout-right),
    calc((100% - var(--layout-reading) - var(--layout-left) + var(--layout-right)) / 2)
  );
}

html body .learn-home-copy {
  width: min(var(--layout-wide), calc(100% - var(--layout-left) - var(--layout-right)));
  margin-inline: auto;
}

/* Login cards are internal components inside a standard page shell. */

html body .account-scene {
  padding-inline: 0;
}

/* Reading columns inside the standard multi-panel story workspace. */

.summer-passage {
  max-width: var(--layout-reading);
  margin-inline: auto;
}

/* Immersive scenery stays full screen; controls share the safe viewport gutters. */

html body .rise-hud {
  left: var(--layout-left);
  right: var(--layout-right);
}

html body .dive-hud a,
html body .dive-hud [data-dive-sound] {
  left: var(--layout-left);
}

html body .dive-hud [data-dive-surface] {
  right: var(--layout-right);
}

/* 图鉴只加载缩略图；打开插图时按需加载 800px 原画。 */

.collection-view-fish {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
}

.collection-view-fish:focus-visible {
  outline: 3px solid #079ffa;
  outline-offset: -3px;
}

.fish-art-viewer {
  box-sizing: border-box;
  width: min(848px, calc(100% - 32px));
  max-height: 90dvh;
  padding: 16px;
  border: 1px solid #c8dbef;
  border-radius: 20px;
  background: #f8fbff;
  color: #173967;
  overflow: auto;
}

.fish-art-viewer::backdrop {
  background: #021c35b3;
}

.fish-art-viewer form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.fish-art-viewer form button {
  width: 44px;
  height: 44px;
  border: 1px solid #c8dbef;
  border-radius: 50%;
  background: #fff;
  color: #173967;
  font-size: 28px;
  cursor: pointer;
}

.fish-art-viewer form button:focus-visible {
  outline: 3px solid #079ffa;
  outline-offset: 2px;
}

.fish-art-viewer > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* 给鱼场递纸条：独立浮层，沿用夜市灯色 */

.note-launcher {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  background: #171936;
  color: #fff3d1;
  border: 1px solid #67a9ff;
  border-radius: 50% 50% 38% 38%;
  width: 76px;
  height: 70px;
  cursor: pointer;
  box-shadow: 0 4px 24px #0005;
}

.note-fish {
  font-size: 40px;
  display: block;
  transition: transform var(--motion-fast);
}
.note-sleep {
  position: absolute;
  right: 0;
  top: 0;
  color: #67a9ff;
  font-size: 12px;
}

.note-hint {
  position: absolute;
  bottom: 80px;
  right: 0;
  white-space: nowrap;
  background: #fff3d1;
  color: #171936;
  padding: 10px 14px;
  border-radius: 18px 18px 0 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-fast);
}
.note-launcher:hover .note-hint,
.note-launcher:focus-visible .note-hint {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .note-launcher:hover .note-fish {
    transform: translateY(-7px) rotate(-8deg);
  }
}
.note-launcher:hover .note-sleep {
  display: none;
}

.note-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: #fff3d1;
  background: #171936;
  border: 1px solid #67a9ff;
  border-radius: 24px;
  box-shadow: 0 0 40px #67a9ff30;
  overflow: auto;
}

.note-dialog::backdrop {
  background: #070b22b8;
  backdrop-filter: blur(5px);
}

.note-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 30px;
  cursor: pointer;
}

.note-header {
  padding: 32px 28px 20px;
  background: radial-gradient(ellipse at right, #234c69, transparent);
}

.note-header h2 {
  font-size: 30px;
  margin: 10px 0;
  color: #fff3d1;
}

.note-header p,
.note-source,
.note-form small {
  color: #b7b8d5;
}

.note-form {
  padding: 20px 28px 28px;
  display: grid;
  gap: 18px;
}

.note-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.note-form legend {
  margin-bottom: 14px;
  font-weight: 700;
}

.note-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.note-types button {
  padding: 14px 6px;
  background: #0b0d22;
  border: 1px solid #454969;
  border-radius: 16px;
  color: inherit;
  cursor: pointer;
}

.note-types button[aria-pressed='true'] {
  border-color: #67a9ff;
  background: #203453;
  box-shadow: 0 0 12px #67a9ff30;
}

.note-types b,
.note-types strong,
.note-types small {
  display: block;
}

.note-types b {
  font-size: 28px;
  margin-bottom: 8px;
}

.note-types small {
  font-size: 11px;
  margin-top: 8px;
}

.note-form label {
  display: grid;
  gap: 9px;
  font-weight: 600;
}

.note-form textarea,
.note-form input {
  box-sizing: border-box;
  width: 100%;
  background: #0b0d22;
  color: #fff3d1;
  border: 1px solid #454969;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
}

.note-form textarea {
  resize: vertical;
}

.note-form em {
  color: #ff4f81;
}

.note-count {
  text-align: right;
  font-size: 12px;
}

.note-submit,
.note-invite button {
  background: #67a9ff;
  color: #0b0d22;
  border: 0;
  border-radius: 24px;
  padding: 13px 24px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.note-submit:disabled {
  opacity: 0.6;
}

.note-invite {
  padding: 46px 28px;
  text-align: center;
}

.note-invite > span {
  font-size: 54px;
}

.note-invite p {
  color: #b7b8d5;
  line-height: 1.8;
}

.note-dialog :focus-visible {
  outline: 2px solid #ffd45a;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .note-form {
    padding: 16px;
  }
  .note-header {
    padding: 30px 16px 12px;
  }
  .note-types {
    grid-template-columns: repeat(2, 1fr);
  }
  .note-launcher {
    width: 60px;
    height: 56px;
  }
  .note-fish {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .note-fish,
  .note-hint {
    transition: none;
  }
}

/* 大白鱼：慢慢浮游、呼吸与渐隐的梦话 */

.note-launcher {
  width: 112px;
  height: 90px;
  background: transparent;
  border: 0;
  border-radius: 28px;
  box-shadow: none;
  isolation: isolate;
  animation: note-drift 6s ease-in-out infinite;
  transform-origin: 60% 65%;
}

.note-fish {
  width: 100%;
  height: 100%;
  font-size: inherit;
  animation: note-breathe 4s ease-in-out infinite;
  filter: drop-shadow(0 5px 7px #173c6040);
  transform-origin: 50% 75%;
}

.note-fish svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.note-sleep {
  top: 2px;
  right: 18px;
  display: flex;
  align-items: end;
  gap: 5px;
  color: #97cbef;
  text-shadow: 0 1px 4px #123758;
}

.note-sleep i {
  font-style: normal;
  opacity: 0;
  animation: note-dream 4.5s ease-out infinite;
}

.note-sleep i:nth-child(2) {
  font-size: 15px;
  animation-delay: 0.7s;
}

.note-sleep i:nth-child(3) {
  font-size: 19px;
  animation-delay: 1.4s;
}

.note-hint {
  bottom: 95px;
  transition:
    opacity var(--motion-base),
    transform var(--motion-base);
  transform: translateY(5px);
  font-size: 14px;
}

.note-launcher:hover,
.note-launcher:focus-visible {
  animation-play-state: paused;
}

.note-launcher:hover .note-fish,
.note-launcher:focus-visible .note-fish {
  animation: note-wake 0.55s ease-out both;
}
.note-launcher:focus-visible .note-hint {
  transform: translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .note-launcher:hover .note-hint {
    transform: translateY(0);
  }
}
.note-launcher:hover .note-sleep,
.note-launcher:focus-visible .note-sleep {
  display: none;
}
.note-launcher:focus-visible .note-eyes {
  transform: translateY(-2px) scaleY(-1);
  transform-box: fill-box;
  transform-origin: center;
}
@media (hover: hover) and (pointer: fine) {
  .note-launcher:hover .note-eyes {
    transform: translateY(-2px) scaleY(-1);
    transform-box: fill-box;
    transform-origin: center;
  }
}
@keyframes note-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(-3deg);
  }
  50% {
    transform: translate(-4px, -9px) rotate(2deg);
  }
}

@keyframes note-breathe {
  0%,
  100% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.025, 1.045);
  }
}

@keyframes note-dream {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  25%,
  55% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(5px, -14px);
  }
}

@keyframes note-wake {
  0% {
    transform: translateY(0) rotate(0);
  }
  60% {
    transform: translateY(-7px) rotate(-6deg);
  }
  100% {
    transform: translateY(-4px) rotate(-3deg);
  }
}

@media (max-width: 600px) {
  .note-launcher {
    width: 88px;
    height: 74px;
  }
  .note-hint {
    bottom: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .note-launcher,
  .note-fish,
  .note-sleep i,
  .note-launcher:hover .note-fish,
  .note-launcher:focus-visible .note-fish {
    animation: none;
  }
  .note-sleep i {
    opacity: 0.7;
  }
  .note-hint {
    transition: none;
  }
}

/* A small, readable dive: all impact effects share the fish's animation clock. */

@media (max-width: 650px) {
  .ocean-intro h1,
  .ocean-copy {
    text-shadow:
      0 2px 9px #063a70,
      0 1px 3px #063a70;
  }
}

/* 首页引导：明确的第一步与四频道推荐，沿用共享版心 */

.ocean-intro {
  min-height: 340px;
}

.ocean-intro h1 {
  line-height: 1.25;
}

.ocean-copy {
  max-width: 620px;
  line-height: 1.9;
}

.ocean-start-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.ocean-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 64px;
  padding: 13px 27px;
  border: 1px solid #fff2b8;
  border-radius: 40px;
  background: linear-gradient(120deg, #fff0b2, #ffcf69);
  color: #173b59;
  font-size: 22px;
  font-weight: 700;
  box-shadow:
    0 6px 22px #09385825,
    inset 0 1px 0 #fff;
  text-decoration: none;
}

.ocean-primary svg,
.home-update svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.ocean-start-actions .ocean-random {
  background: #effbfff0;
  color: #174d78;
  border-color: #c9f3ff;
  box-shadow: 0 6px 22px #09385820;
  font-size: 21px;
}
@media (hover: hover) and (pointer: fine) {
  .ocean-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
  }
}
.ocean-primary:focus-visible,
.home-update a:focus-visible {
  outline: 3px solid #ffce69;
  outline-offset: 5px;
}

.home-update {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
  padding: 16px 22px;
  border: 1px solid #b9eeff80;
  border-radius: 18px;
  background: #e8faffea;
  color: #194c70;
}

.home-update > span {
  flex-shrink: 0;
  font-weight: 700;
}

.home-update a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: 1;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}

.home-update svg {
  flex-shrink: 0;
}

.home-picks-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 30px;
  color: #effaff;
}

.home-picks-heading h2 {
  margin: 0;
  font-size: 24px;
}

.home-picks-heading p {
  margin: 0;
  font-size: 14px;
}

.home-picks-heading + .ocean-cards {
  margin-top: 18px;
}

@media (max-width: 650px) {
  .ocean-intro {
    min-height: 0;
  }
  .ocean-intro h1 {
    font-size: 42px;
  }
  .ocean-start-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
  }
  .ocean-primary,
  .ocean-start-actions .ocean-random {
    width: 100%;
    min-height: 58px;
    font-size: 19px;
    padding: 12px 18px;
  }
  .home-update {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
  .home-update a {
    line-height: 1.7;
    width: 100%;
  }
  .home-picks-heading {
    display: block;
    margin-top: 26px;
  }
  .home-picks-heading h2 {
    font-size: 22px;
  }
  .home-picks-heading p {
    margin-top: 7px;
  }
}
