@keyframes postit-float-a {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(8px, -18px); }
  50% { transform: translate(-6px, -8px); }
  75% { transform: translate(-4px, -22px); }
}

@keyframes postit-float-b {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-10px, -12px); }
  66% { transform: translate(6px, -20px); }
}

@keyframes postit-float-c {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-8px, -14px); }
  50% { transform: translate(10px, -6px); }
  75% { transform: translate(4px, -24px); }
}

@keyframes aquarium-bubbles {
  0% {
    background-position:
      18% calc(100% + 10px),
      21% calc(100% + 36px),
      24% calc(100% + 62px),
      20% calc(100% + 18px),
      0 0,
      0 0;
  }
  50% {
    background-position:
      calc(18% + 4px) 52%,
      calc(21% - 3px) 44%,
      calc(24% + 5px) 60%,
      calc(20% - 4px) 34%,
      0 0,
      0 0;
  }
  100% {
    background-position:
      calc(18% + 8px) -28px,
      calc(21% - 6px) -42px,
      calc(24% + 8px) -18px,
      calc(20% - 8px) -34px,
      0 0,
      0 0;
  }
}

@keyframes aquarium-column-rise-a {
  0% { bottom: 2px; transform: translate3d(0, 0, 0) scale(0.72); opacity: 0; }
  12% { opacity: 0.62; }
  100% { bottom: calc(100% - 12px); transform: translate3d(10px, 0, 0) scale(1.18); opacity: 0; }
}

@keyframes aquarium-column-rise-b {
  0% { bottom: 0; transform: translate3d(0, 0, 0) scale(0.66); opacity: 0; }
  14% { opacity: 0.54; }
  100% { bottom: calc(100% - 10px); transform: translate3d(-8px, 0, 0) scale(1.08); opacity: 0; }
}

@keyframes aquarium-column-rise-c {
  0% { bottom: 4px; transform: translate3d(0, 0, 0) scale(0.76); opacity: 0; }
  10% { opacity: 0.48; }
  100% { bottom: calc(100% - 16px); transform: translate3d(12px, 0, 0) scale(1.22); opacity: 0; }
}

@keyframes aquarium-column-rise-d {
  0% { bottom: 1px; transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
  11% { opacity: 0.52; }
  100% { bottom: calc(100% - 11px); transform: translate3d(-10px, 0, 0) scale(1.12); opacity: 0; }
}

@keyframes aquarium-column-rise-e {
  0% { bottom: 3px; transform: translate3d(0, 0, 0) scale(0.62); opacity: 0; }
  16% { opacity: 0.42; }
  100% { bottom: calc(100% - 9px); transform: translate3d(6px, 0, 0) scale(0.98); opacity: 0; }
}

@keyframes aquarium-column-rise-f {
  0% { bottom: -1px; transform: translate3d(0, 0, 0) scale(0.74); opacity: 0; }
  13% { opacity: 0.58; }
  100% { bottom: calc(100% - 13px); transform: translate3d(-6px, 0, 0) scale(1.14); opacity: 0; }
}

@keyframes aquarium-column-rise-g {
  0% { bottom: 2px; transform: translate3d(0, 0, 0) scale(0.64); opacity: 0; }
  15% { opacity: 0.46; }
  100% { bottom: calc(100% - 10px); transform: translate3d(9px, 0, 0) scale(1.02); opacity: 0; }
}

@keyframes aquarium-column-rise-h {
  0% { bottom: 0; transform: translate3d(0, 0, 0) scale(0.8); opacity: 0; }
  12% { opacity: 0.64; }
  100% { bottom: calc(100% - 15px); transform: translate3d(-12px, 0, 0) scale(1.2); opacity: 0; }
}

.postit-container .postit {
  --drag-water-x: 0px;
  --drag-water-y: 0px;
  --drag-water-tilt: 0deg;
  animation: postit-float-a 9s ease-in-out infinite;
}

.postit-container .postit.postit-dragging,
.postit-container .postit.postit-water-settling {
  animation: none;
  transform: translate(var(--drag-water-x), var(--drag-water-y)) rotate(var(--drag-water-tilt));
}

.postit-container .postit.language-note {
  animation: postit-float-a 9s ease-in-out infinite;
  animation-delay: 0s;
}

.postit-container .postit.last-book {
  animation: postit-float-b 11s ease-in-out infinite;
  animation-delay: 1s;
}

.postit-container .postit.postit-quakes {
  animation: postit-float-c 10s ease-in-out infinite;
  animation-delay: 3s;
}

.main.postit-container {
  width: calc(100vw - 12px);
  max-width: none;
  min-height: calc(100vh - 122px);
  margin: 0 auto;
  padding: 0 6px;
  box-sizing: border-box;
}

.postit-container {
  position: relative;
  min-height: 100%;
  overflow: visible;
  border-radius: 18px;
  isolation: isolate;
}

.postit-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(146,210,223,0.08), transparent 24%),
    radial-gradient(circle at 84% 30%, rgba(107,189,205,0.08), transparent 22%),
    linear-gradient(180deg, rgba(122,196,212,0.06), transparent 28%, rgba(105,173,189,0.04) 72%, rgba(92,159,176,0.08));
}

[data-theme="dark"] .postit-container::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(125,168,186,0.08), transparent 24%),
    radial-gradient(circle at 84% 30%, rgba(132,179,197,0.08), transparent 22%),
    linear-gradient(180deg, rgba(77,116,126,0.08), transparent 28%, rgba(44,69,79,0.04) 72%, rgba(75,108,118,0.1));
}

[data-theme="light"] .postit-container.aquarium-active {
  background: #cbeef5;
  box-shadow:
    inset 0 0 0 1px rgba(143, 189, 201, 0.18),
    inset 0 14px 24px rgba(255,255,255,0.14);
}

[data-theme="light"] .postit-container.aquarium-active::before {
  background:
    radial-gradient(circle at 16% 14%, rgba(243,252,255,0.38), transparent 18%),
    radial-gradient(circle at 80% 20%, rgba(236,250,255,0.22), transparent 15%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 32%, rgba(132, 193, 210, 0.08) 100%);
}

[data-theme="light"] .postit-container.aquarium-active::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.4) 0 1.4px, rgba(255,255,255,0.12) 2px, transparent 3.4px),
    radial-gradient(circle, rgba(255,255,255,0.32) 0 2px, rgba(255,255,255,0.1) 2.7px, transparent 4.1px),
    radial-gradient(circle, rgba(255,255,255,0.26) 0 1.2px, rgba(255,255,255,0.08) 1.8px, transparent 3.2px),
    radial-gradient(circle, rgba(255,255,255,0.24) 0 1.6px, rgba(255,255,255,0.08) 2.3px, transparent 3.6px),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 28%),
    radial-gradient(circle at 30% 18%, rgba(255,255,255,0.08), transparent 18%);
  background-size:
    138px 190px,
    184px 250px,
    228px 310px,
    266px 340px,
    100% 100%,
    100% 100%;
  background-position:
    18% calc(100% + 10px),
    21% calc(100% + 36px),
    24% calc(100% + 62px),
    20% calc(100% + 18px),
    0 0,
    0 0;
  background-repeat: no-repeat;
  animation: aquarium-bubbles 18s linear infinite;
}

.postit-container .postit {
  position: absolute;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 5;
  backface-visibility: hidden;
}

.aquarium-bubble-column {
  --aquarium-bubble-stroke: rgba(61,147,182,0.9);
  --aquarium-bubble-fill: rgba(255,255,255,0.72);
  position: absolute;
  left: 8%;
  bottom: 4px;
  width: 76px;
  height: calc(100% - 8px);
  pointer-events: none;
  z-index: 7;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.aquarium-bubble-column-right {
  left: auto;
  right: 108px;
}

[data-theme="light"] .postit-container.aquarium-active .aquarium-bubble-column,
[data-theme="dark"] .postit-container.aquarium-active .aquarium-bubble-column {
  opacity: 1;
}

[data-theme="dark"] .aquarium-bubble-column {
  --aquarium-bubble-stroke: rgba(255,255,255,0.94);
  --aquarium-bubble-fill: rgba(255,255,255,0.22);
}

.aquarium-column-bubble {
  position: absolute;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid var(--aquarium-bubble-stroke);
  background: var(--aquarium-bubble-fill);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.14),
    0 0 12px rgba(61,147,182,0.12);
  opacity: 0;
}

.aquarium-column-bubble-a {
  left: 10px;
  width: 12px;
  height: 12px;
  animation: aquarium-column-rise-a 7.2s linear infinite;
  animation-delay: -4.1s;
}

.aquarium-column-bubble-b {
  left: 28px;
  width: 8px;
  height: 8px;
  animation: aquarium-column-rise-b 5.9s linear infinite;
  animation-delay: -2.6s;
}

.aquarium-column-bubble-c {
  left: 0;
  width: 16px;
  height: 16px;
  animation: aquarium-column-rise-c 8.6s linear infinite;
  animation-delay: -6.2s;
}

.aquarium-column-bubble-d {
  left: 42px;
  width: 10px;
  height: 10px;
  animation: aquarium-column-rise-d 6.7s linear infinite;
  animation-delay: -1.9s;
}

.aquarium-column-bubble-e {
  left: 22px;
  width: 7px;
  height: 7px;
  animation: aquarium-column-rise-e 5.1s linear infinite;
  animation-delay: -3.4s;
}

.aquarium-column-bubble-f {
  left: 52px;
  width: 9px;
  height: 9px;
  animation: aquarium-column-rise-f 7.8s linear infinite;
  animation-delay: -5.2s;
}

.aquarium-column-bubble-g {
  left: 34px;
  width: 6px;
  height: 6px;
  animation: aquarium-column-rise-g 4.9s linear infinite;
  animation-delay: -1.4s;
}

.aquarium-column-bubble-h {
  left: 60px;
  width: 13px;
  height: 13px;
  animation: aquarium-column-rise-h 8.9s linear infinite;
  animation-delay: -7.1s;
}

.aquarium-plant {
  --plant-stem: #4c8867;
  --plant-stem-deep: #2f5f47;
  --plant-stem-soft: #9ad0a5;
  --plant-leaf: #6eab7f;
  --plant-leaf-mid: #95d0a4;
  --plant-leaf-gloss: rgba(238, 255, 239, 0.76);
  --plant-glow: rgba(122, 208, 173, 0.18);
  --plant-shadow: rgba(23, 53, 36, 0.16);
  --plant-leaf-shadow: rgba(39, 84, 56, 0.2);
  --plant-sand: rgba(187, 171, 134, 0.22);
  --plant-sand-deep: rgba(130, 112, 76, 0.2);
  --plant-pebble: rgba(134, 146, 150, 0.46);
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 188px;
  height: 196px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: translate3d(10px, 8px, 0);
  transition: opacity 0.24s ease, transform 0.28s ease;
  filter: drop-shadow(0 10px 14px rgba(24, 41, 33, 0.08));
}

.postit-container.aquarium-active .aquarium-plant {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-theme="light"] .postit-container.aquarium-active .aquarium-plant {
  opacity: 0.96;
}

[data-theme="dark"] .aquarium-plant {
  --plant-stem: #5d9772;
  --plant-stem-deep: #31563f;
  --plant-stem-soft: #9fcfb0;
  --plant-leaf: #89bf98;
  --plant-leaf-mid: #a6d5b4;
  --plant-leaf-gloss: rgba(236, 255, 240, 0.54);
  --plant-glow: rgba(116, 173, 150, 0.13);
  --plant-shadow: rgba(8, 18, 11, 0.25);
  --plant-leaf-shadow: rgba(13, 28, 17, 0.24);
  --plant-sand: rgba(128, 115, 84, 0.23);
  --plant-sand-deep: rgba(77, 68, 50, 0.18);
  --plant-pebble: rgba(171, 182, 190, 0.38);
}

.aquarium-plant::before,
.aquarium-plant::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.aquarium-plant::before {
  right: 18px;
  bottom: 22px;
  width: 138px;
  height: 142px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 58%, var(--plant-glow), transparent 62%),
    radial-gradient(circle at 34% 30%, rgba(255,255,255,0.14), transparent 26%);
  filter: blur(12px);
  opacity: 0.9;
}

.aquarium-plant::after {
  right: 10px;
  bottom: 8px;
  width: 146px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(37, 59, 45, 0.14), transparent 72%);
  opacity: 0.6;
}

.aquarium-plant-sand {
  position: absolute;
  right: 4px;
  bottom: 0;
  z-index: 1;
  width: 150px;
  height: 32px;
  border-radius: 60% 40% 16px 16px;
  background:
    radial-gradient(circle at 22% 38%, rgba(255,255,255,0.24) 0 10%, transparent 11%),
    radial-gradient(circle at 58% 64%, rgba(255,255,255,0.08) 0 18%, transparent 19%),
    linear-gradient(180deg, rgba(255,255,255,0.1), transparent 40%),
    linear-gradient(180deg, var(--plant-sand), var(--plant-sand-deep));
  box-shadow:
    0 -1px 0 rgba(255,255,255,0.08) inset,
    0 8px 18px rgba(53, 47, 31, 0.06);
}

.aquarium-plant-pebble {
  position: absolute;
  bottom: 8px;
  z-index: 2;
  border-radius: 999px;
  background: var(--plant-pebble);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 2px 4px rgba(43, 49, 52, 0.1);
}

.aquarium-plant-pebble-a {
  right: 24px;
  width: 16px;
  height: 9px;
}

.aquarium-plant-pebble-b {
  right: 56px;
  bottom: 10px;
  width: 11px;
  height: 6px;
}

.aquarium-plant-pebble-c {
  right: 92px;
  bottom: 9px;
  width: 20px;
  height: 9px;
}

.aquarium-plant-stem {
  position: absolute;
  bottom: 16px;
  z-index: 3;
  width: 8px;
  border-radius: 999px 999px 3px 3px;
  transform-origin: 50% 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), transparent 28%),
    linear-gradient(90deg, var(--plant-stem-soft) 0 28%, var(--plant-stem) 52%, var(--plant-stem-deep) 100%);
  box-shadow:
    1px 0 0 rgba(255,255,255,0.08) inset,
    -1px 0 0 rgba(17, 43, 29, 0.08) inset;
}

.aquarium-plant-stem::before,
.aquarium-plant-stem::after {
  content: "";
  position: absolute;
}

.aquarium-plant-stem::before {
  right: 1px;
  top: 12px;
  bottom: 8px;
  width: 1px;
  background: rgba(32, 71, 48, 0.16);
  opacity: 0.6;
}

.aquarium-plant-stem::after {
  left: 2px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.16);
  opacity: 0.5;
}

.aquarium-plant-stem-a {
  right: 28px;
  height: 104px;
  animation: aquarium-plant-sway-a 5.8s ease-in-out infinite;
}

.aquarium-plant-stem-b {
  right: 56px;
  height: 140px;
  width: 9px;
  animation: aquarium-plant-sway-b 6.6s ease-in-out infinite;
}

.aquarium-plant-stem-c {
  right: 86px;
  height: 124px;
  animation: aquarium-plant-sway-c 5.2s ease-in-out infinite;
}

.aquarium-plant-stem-d {
  right: 116px;
  height: 98px;
  width: 7px;
  animation: aquarium-plant-sway-d 7.1s ease-in-out infinite;
}

.aquarium-plant-stem-e {
  right: 136px;
  height: 118px;
  width: 8px;
  animation: aquarium-plant-sway-e 6.1s ease-in-out infinite;
}

.aquarium-plant-stem-f {
  right: 12px;
  height: 82px;
  width: 7px;
  animation: aquarium-plant-sway-f 5.4s ease-in-out infinite;
}

.aquarium-plant-leaf {
  position: absolute;
  width: 22px;
  height: 14px;
  border-radius: 88% 12% 82% 18% / 84% 26% 74% 16%;
  background:
    radial-gradient(circle at 26% 30%, var(--plant-leaf-gloss) 0 12%, transparent 13%),
    linear-gradient(140deg, rgba(240,255,243,0.42) 0%, var(--plant-leaf-mid) 34%, var(--plant-leaf) 74%, var(--plant-stem-deep) 100%);
  box-shadow:
    0 4px 9px var(--plant-leaf-shadow),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  transform-origin: 14% 80%;
}

.aquarium-plant-leaf::before {
  content: "";
  position: absolute;
  inset: 1px 2px 3px 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 44%);
  opacity: 0.62;
}

.aquarium-plant-leaf::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: rgba(244,255,246,0.32);
  opacity: 0.78;
}

.aquarium-plant-leaf-a1 { left: -12px; top: 18px; width: 20px; height: 13px; transform: rotate(-34deg); }
.aquarium-plant-leaf-a2 { left: 4px; top: 42px; width: 18px; height: 12px; transform: rotate(16deg); }
.aquarium-plant-leaf-a3 { left: -13px; top: 63px; width: 21px; height: 13px; transform: rotate(-24deg); }
.aquarium-plant-leaf-a4 { left: 3px; top: 82px; width: 18px; height: 12px; transform: rotate(20deg); }
.aquarium-plant-leaf-b1 { left: -13px; top: 24px; width: 22px; height: 14px; transform: rotate(-38deg); }
.aquarium-plant-leaf-b2 { left: 6px; top: 56px; width: 19px; height: 13px; transform: rotate(20deg); }
.aquarium-plant-leaf-b3 { left: -14px; top: 88px; width: 23px; height: 15px; transform: rotate(-26deg); }
.aquarium-plant-leaf-b4 { left: 5px; top: 112px; width: 20px; height: 13px; transform: rotate(18deg); }
.aquarium-plant-leaf-c1 { left: 3px; top: 16px; width: 18px; height: 12px; transform: rotate(14deg); }
.aquarium-plant-leaf-c2 { left: -12px; top: 49px; width: 22px; height: 14px; transform: rotate(-32deg); }
.aquarium-plant-leaf-c3 { left: 4px; top: 77px; width: 20px; height: 13px; transform: rotate(22deg); }
.aquarium-plant-leaf-c4 { left: -13px; top: 100px; width: 21px; height: 13px; transform: rotate(-22deg); }
.aquarium-plant-leaf-d1 { left: -11px; top: 26px; width: 19px; height: 12px; transform: rotate(-28deg); }
.aquarium-plant-leaf-d2 { left: 2px; top: 57px; width: 18px; height: 12px; transform: rotate(18deg); }
.aquarium-plant-leaf-d3 { left: -10px; top: 76px; width: 18px; height: 12px; transform: rotate(-18deg); }
.aquarium-plant-leaf-e1 { left: -13px; top: 22px; width: 21px; height: 13px; transform: rotate(-36deg); }
.aquarium-plant-leaf-e2 { left: 4px; top: 54px; width: 19px; height: 12px; transform: rotate(18deg); }
.aquarium-plant-leaf-e3 { left: -14px; top: 86px; width: 22px; height: 14px; transform: rotate(-26deg); }
.aquarium-plant-leaf-f1 { left: -12px; top: 16px; width: 18px; height: 12px; transform: rotate(-32deg); }
.aquarium-plant-leaf-f2 { left: 2px; top: 40px; width: 17px; height: 11px; transform: rotate(20deg); }
.aquarium-plant-leaf-f3 { left: -10px; top: 58px; width: 18px; height: 12px; transform: rotate(-20deg); }

.swim-fish {
  --sub-hit-shift: 0px;
  --sub-hit-lift: 0px;
  --sub-bubble-stroke: rgba(61,147,182,0.82);
  --sub-bubble-fill: rgba(255,255,255,0.58);
  position: absolute;
  width: 122px;
  height: 72px;
  left: -150px;
  top: 196px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 4;
  overflow: visible;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.swim-fish.swim-fish-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

[data-theme="dark"] .swim-fish {
  --sub-bubble-stroke: rgba(188,229,255,0.9);
  --sub-bubble-fill: rgba(255,255,255,0.18);
}

.swim-fish * {
  pointer-events: none;
}

.swim-fish-visual {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--sub-hit-shift), var(--sub-hit-lift), 0);
  will-change: transform;
}

.swim-fish-motion {
  position: relative;
  width: 100%;
  height: 100%;
  animation: fish-glide 1.65s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

.swim-fish.postit-dragging .swim-fish-motion {
  animation-play-state: paused;
}

.swim-fish.swim-fish-bumped .swim-fish-svg {
  animation: fish-body-rock 1.35s ease-in-out infinite, sub-bump 0.34s cubic-bezier(0.22, 0.74, 0.24, 1);
}

.swim-fish-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("../images/ui/submarine.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  overflow: visible;
  animation: fish-body-rock 1.35s ease-in-out infinite;
  transform-origin: 50% 50%;
}

.swim-fish-propeller {
  --sub-propeller-blade: #946228;
  --sub-propeller-hub: #73461b;
  --sub-propeller-shaft: #b07a28;
  position: absolute;
  left: 17px;
  top: 36px;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  z-index: 0;
}

[data-theme="dark"] .swim-fish-propeller {
  --sub-propeller-blade: #b57a22;
  --sub-propeller-hub: #8a5620;
  --sub-propeller-shaft: #cd9738;
}

.swim-fish-propeller::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 12px;
  height: 4px;
  border-radius: 999px;
  background: var(--sub-propeller-shaft);
}

.swim-fish-propeller::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sub-propeller-hub);
  box-shadow: 0 0 0 1px rgba(71, 43, 18, 0.28);
}

.swim-fish-propeller-blades {
  position: absolute;
  left: 6px;
  top: 9px;
  width: 14px;
  height: 4px;
  border-radius: 999px 70% 70% 999px;
  background: var(--sub-propeller-blade);
  animation: sub-propeller-spin 0.18s linear infinite;
  box-shadow: 0 0 0 0.75px rgba(255, 232, 173, 0.18);
  transform-origin: 4px 2px;
}

.swim-fish-propeller-blades::before,
.swim-fish-propeller-blades::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 4px;
  border-radius: 999px 70% 70% 999px;
  background: var(--sub-propeller-blade);
  box-shadow: 0 0 0 0.75px rgba(255, 232, 173, 0.18);
  transform-origin: 4px 2px;
}

.swim-fish-propeller-blades::after {
  transform: rotate(120deg);
}

.swim-fish-propeller-blades::before {
  transform: rotate(240deg);
}

.swim-fish-bubble {
  position: absolute;
  left: 8px;
  top: 33px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--sub-bubble-stroke);
  background: var(--sub-bubble-fill);
  animation: fish-bubble 2.1s linear infinite;
}

.swim-fish-bubble-a {
  animation-delay: 0s;
}

.swim-fish-bubble-b {
  left: 18px;
  top: 42px;
  width: 4px;
  height: 4px;
  animation-delay: 0.7s;
}

.swim-fish-bubble-c {
  left: 1px;
  top: 24px;
  width: 5px;
  height: 5px;
  animation-delay: 1.3s;
}

@keyframes fish-glide {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  35% { transform: translate3d(0, -3px, 0) rotate(1deg); }
  70% { transform: translate3d(0, -1px, 0) rotate(2deg); }
}

@keyframes fish-body-rock {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(1px); }
}

@keyframes sub-bump {
  0% { transform: translateX(0) rotate(0deg); }
  42% { transform: translateX(-12px) rotate(-5deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

@keyframes fish-bubble {
  0% { transform: translate3d(0, 0, 0) scale(0.65); opacity: 0; }
  20% { opacity: 0.6; }
  100% { transform: translate3d(-18px, -20px, 0) scale(1.1); opacity: 0; }
}

@keyframes sub-propeller-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes aquarium-plant-sway-a {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-2px); }
}

@keyframes aquarium-plant-sway-b {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-3px); }
}

@keyframes aquarium-plant-sway-c {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-2px); }
}

@keyframes aquarium-plant-sway-d {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-1px); }
}

@keyframes aquarium-plant-sway-e {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-2px); }
}

@keyframes aquarium-plant-sway-f {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-1px); }
}

.postit.postit-dragging {
  animation-play-state: paused;
}

.postit a,
.postit img {
  pointer-events: none;
}

.postit:active {
  cursor: grabbing;
}

.postit {
  width: 260px;
  height: 240px;
  box-sizing: border-box;
  overflow: hidden;
}

.postit.language-note {
  width: 270px;
  height: 248px;
  left: 40px;
  top: 40px;
}

.postit.last-book {
  width: 260px;
  height: 320px;
  left: 328px;
  top: 80px;
}

.postit.last-book img.index {
  max-width: 130px;
  margin-top: 0.35rem;
  filter: brightness(0.92) sepia(0.12);
}

.postit.postit-quakes {
  width: 270px;
  height: 248px;
  left: 40px;
  top: 432px;
}

.language-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.8rem;
  margin: 0;
  padding: 0.95rem 1rem 1rem;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid var(--border);
  border-top: 4px solid #c9a227;
  background: #fff;
  font-size: 0.76rem;
  color: var(--text);
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
}

[data-theme="light"] .language-note {
  background: transparent;
}

[data-theme="dark"] .language-note {
  background: transparent;
  border-top-color: #d4a84b;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.last-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  border-top: 4px solid #5c6bc0;
  background: linear-gradient(180deg, #f0eff8 0%, #e8eaf6 100%);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 6px 24px rgba(92,107,192,0.12), 0 2px 8px rgba(0,0,0,0.08);
}

[data-theme="light"] .last-book {
  background: transparent;
}

[data-theme="dark"] .last-book {
  background: transparent;
  border-top-color: #7c8ae0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.postit-quakes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.8rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  border-top: 4px solid #26a69a;
  background: linear-gradient(180deg, #f0f9f8 0%, #e8f4f2 100%);
  font-size: 0.78rem;
  box-shadow: 0 4px 16px rgba(38,166,154,0.12), 0 2px 6px rgba(0,0,0,0.06);
}

[data-theme="light"] .postit-quakes {
  background: transparent;
}

[data-theme="dark"] .postit-quakes {
  background: transparent;
  border-top-color: #4db6ac;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.postit-tool-badge {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: lowercase;
}

.postit-quakes-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  width: 100%;
  min-height: 118px;
  padding: 0.75rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(38,166,154,0.18);
  background: rgba(38,166,154,0.05);
  box-sizing: border-box;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.postit.postit-quakes:hover .postit-quakes-link,
.postit-quakes-link:hover {
  text-decoration: none;
  background: rgba(38,166,154,0.1);
  border-color: rgba(38,166,154,0.55);
  transform: translateY(-1px);
}

[data-theme="dark"] .postit.postit-quakes:hover .postit-quakes-link,
[data-theme="dark"] .postit-quakes-link:hover {
  background: rgba(77,182,172,0.12);
  border-color: rgba(77,182,172,0.55);
}

.postit-quakes-ornament {
  position: relative;
  width: 110px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 26% 32%, rgba(255,255,255,0.46) 0 10%, transparent 11%),
    linear-gradient(145deg, rgba(38,166,154,0.08), rgba(38,166,154,0.03));
  border: 1px solid rgba(38,166,154,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.postit-quakes-disc {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #dcfffb 0%, #69d4c8 52%, #248780 100%);
  box-shadow:
    0 0 0 1px rgba(38,166,154,0.18),
    0 10px 18px rgba(38,166,154,0.08);
}

.postit-quakes-disc-a {
  top: 14px;
  left: 16px;
  width: 12px;
  height: 12px;
}

.postit-quakes-disc-b {
  top: 18px;
  left: 44px;
  width: 18px;
  height: 18px;
}

.postit-quakes-disc-e {
  bottom: 12px;
  left: 52px;
  width: 22px;
  height: 22px;
}

.postit-quakes-disc-f {
  bottom: 18px;
  right: 20px;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #f5f6f7 0%, #c6ccd1 52%, #7a8691 100%);
  box-shadow:
    0 0 0 1px rgba(122,134,145,0.2),
    0 10px 18px rgba(90,101,111,0.12);
}

[data-theme="dark"] .postit-quakes-ornament {
  background:
    radial-gradient(circle at 26% 32%, rgba(255,255,255,0.2) 0 10%, transparent 11%),
    linear-gradient(145deg, rgba(77,182,172,0.13), rgba(77,182,172,0.05));
  border-color: rgba(77,182,172,0.24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

[data-theme="dark"] .postit-quakes-disc {
  box-shadow:
    0 0 0 1px rgba(127,214,205,0.2),
    0 8px 16px rgba(0,0,0,0.18);
}

[data-theme="dark"] .postit-quakes-disc-f {
  box-shadow:
    0 0 0 1px rgba(176,186,194,0.2),
    0 8px 16px rgba(0,0,0,0.2);
}

.postit-quakes-copy {
  font-size: 0.56rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  max-width: 14rem;
}

.postit-quakes-source {
  font-size: 0.62rem;
  align-self: center;
}

.postit-quakes-source a {
  color: var(--text-muted);
  text-decoration: none;
}

.postit-quakes-source a:hover {
  text-decoration: underline;
}

[data-theme="dark"] .postit {
  box-shadow: 2px 4px 16px rgba(0,0,0,0.4);
}

.postit .tag {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}

.last-book .tag {
  align-self: center;
  background: rgba(92,107,192,0.15);
  color: var(--text);
  border-color: rgba(92,107,192,0.4);
}

[data-theme="dark"] .last-book .tag {
  background: rgba(124,138,224,0.2);
  color: var(--text);
  border-color: rgba(124,138,224,0.5);
}

.language-note .tag,
.postit-quakes .tag {
  margin-bottom: 0;
}

.language-note .tag {
  align-self: center;
  white-space: nowrap;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  background: rgba(201,162,39,0.14);
  border-color: rgba(201,162,39,0.35);
}

.postit-quakes .tag {
  align-self: center;
  background: rgba(38,166,154,0.12);
  border-color: rgba(38,166,154,0.35);
}

[data-theme="dark"] .language-note .tag {
  background: rgba(212,168,75,0.18);
  border-color: rgba(212,168,75,0.42);
}

[data-theme="dark"] .postit-quakes .tag {
  background: rgba(77,182,172,0.18);
  border-color: rgba(77,182,172,0.42);
}

.last-book img.index {
  margin: 0;
  box-shadow: 0 10px 18px var(--shadow-card);
  filter: brightness(0.92) sepia(0.12);
}

[data-theme="dark"] .last-book > a {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
}

[data-theme="dark"] .last-book > a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(34, 40, 44, 0.34), rgba(8, 10, 12, 0.28));
  mix-blend-mode: multiply;
  opacity: 0.96;
}

[data-theme="dark"] .last-book img.index {
  display: block;
  filter: brightness(0.93) sepia(0.08) saturate(0.94) contrast(0.98);
}

[data-theme="light"] .postit-container.aquarium-active .last-book > a {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
}

[data-theme="light"] .postit-container.aquarium-active .last-book > a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(181, 233, 246, 0.5), rgba(120, 203, 227, 0.62));
  mix-blend-mode: multiply;
  opacity: 0.9;
}

[data-theme="light"] .postit-container.aquarium-active .last-book img.index {
  display: block;
  filter: brightness(0.99) saturate(0.9) contrast(0.98);
  box-shadow: 0 10px 18px rgba(64, 124, 147, 0.14);
}

.last-book .caption {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.last-book .book-desc {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.last-book-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.last-book-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.last-book .book-title {
  color: var(--text);
}

.last-book .caption a:hover .book-title {
  text-decoration: underline;
}

.main img.index {
  display: block;
  max-width: 220px;
  height: auto;
  border-radius: 10px;
  margin: 1rem auto 0 auto;
}

.caption {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  text-align: center;
}

.language-note p {
  margin: 0;
}

.language-groups {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.language-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.language-group-label {
  font-size: 0.56rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-muted);
}

.language-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.language-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.7rem;
  color: var(--text);
  letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.language-pill-primary {
  background: transparent;
  border-color: rgba(201,162,39,0.35);
}

[data-theme="light"] .language-legend .language-pill,
[data-theme="dark"] .language-legend .language-pill {
  background: transparent;
}

[data-theme="dark"] .language-pill-primary {
  background: transparent;
  border-color: rgba(212,168,75,0.42);
}

.language-pill .drapeau-france,
.language-pill .drapeau-royaume-uni,
.language-pill .drapeau-espagne {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  flex: 0 0 auto;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-actions .theme-toggle {
  margin-left: 0;
}

.submarine-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 32px;
  min-width: 32px;
  padding: 0;
  line-height: 0;
}

.submarine-toggle-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  transform: translateY(1px);
  opacity: 0.96;
  filter: none;
}

.submarine-toggle.is-active {
  background: linear-gradient(180deg, #f6d45f 0%, #e4b549 100%);
  border-color: #b57a22;
  color: #5a3a12;
  box-shadow: 0 4px 10px rgba(181,122,34,0.18);
}

.submarine-toggle.is-active .submarine-toggle-icon {
  opacity: 1;
}

[data-theme="dark"] .submarine-toggle.is-active {
  background: linear-gradient(180deg, #f6d45f 0%, #d9a63a 100%);
  border-color: #c8902e;
  color: #4e3312;
}

@media (max-width: 768px) {
  .header-actions {
    gap: 0.4rem;
  }

  .submarine-toggle {
    width: 32px;
    min-width: 32px;
  }

  .main.postit-container {
    width: calc(100vw - 8px);
    min-height: calc(100vh - 116px);
    padding: 0 4px;
  }

  .postit-container {
    min-height: 100%;
  }

  .postit {
    width: 240px;
    height: 220px;
  }

  .swim-fish {
    width: 104px;
    height: 62px;
  }

  .aquarium-plant {
    right: 4px;
    bottom: 4px;
    width: 152px;
    height: 166px;
  }

  .aquarium-bubble-column {
    left: 6%;
    width: 60px;
  }

  .aquarium-bubble-column-right {
    right: 84px;
  }

  .postit.language-note,
  .postit.postit-quakes {
    width: 250px;
    height: 236px;
  }

  .postit.last-book {
    width: 240px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .postit {
    width: 220px;
    height: 200px;
  }

  .main.postit-container {
    width: calc(100vw - 4px);
    min-height: calc(100vh - 110px);
    padding: 0 2px;
  }

  .swim-fish {
    width: 90px;
    height: 54px;
  }

  .aquarium-plant {
    width: 128px;
    height: 140px;
    right: 1px;
    bottom: 2px;
    opacity: 0;
  }

  .aquarium-bubble-column {
    left: 4%;
    width: 46px;
  }

  .aquarium-bubble-column-right {
    right: 68px;
  }

  .postit.language-note,
  .postit.postit-quakes {
    width: 224px;
    height: 224px;
  }

  .postit.last-book {
    width: 220px;
    height: 280px;
  }

  .postit-quakes-link {
    min-height: 116px;
    padding: 0.7rem 0.6rem;
  }

  .postit-quakes-ornament {
    width: 94px;
    height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .postit-container .postit,
  .aquarium-column-bubble,
  .aquarium-plant-stem,
  .swim-fish-motion,
  .swim-fish-svg,
  .swim-fish-propeller-blades,
  .swim-fish-bubble {
    animation: none;
  }

  [data-theme="light"] .postit-container.aquarium-active::after {
    animation: none;
  }
}
