/* ═══════════════════════════════════════════════════════════════
   TIDEPOOL AQUARIUM — s103 deep-custom portal skin
   site youxi--1--103 · index.html
   language: glass tanks · tide lines · specimen shelves
   ═══════════════════════════════════════════════════════════════ */

/* ── palette (unchanged from original site) ──────────────────── */
:root {
  --bg: #12122E;
  --panel: #1A1A3E;
  --panel-2: #23234E;
  --accent: #7BFFFC;
  --accent2: #55E0CE;
  --text: #F2E6FA;
  --soft: #9CA0C8;
  --line: rgba(123, 255, 252, .3);
  --glass: rgba(220, 214, 250, .6);
  --deep: #0C0C22;
  --sand: #D9C48F;
  --fh: 'Trebuchet MS', sans-serif;
  --fb: 'Segoe UI', sans-serif;
  --fm: 'Consolas', monospace;
  --sec-gap: 30px;
}

/* ═══ 0. reset & base ═══════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  color: var(--text);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

/* deep-sea light shafts + faint current stripes */
body.t-aqua {
  background:
    radial-gradient(ellipse 60% 40% at 18% 0%, rgba(123, 255, 252, .1), transparent 70%),
    radial-gradient(ellipse 50% 34% at 85% 18%, rgba(85, 224, 206, .07), transparent 72%),
    repeating-linear-gradient(-8deg, rgba(255, 255, 255, .018) 0 6px, transparent 6px 26px),
    var(--bg);
}

[v-cloak] { display: none; }
a { color: inherit; text-decoration: none; display: block; }
img { display: block; max-width: 100%; }
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

::selection { background: var(--accent); color: #12122E; }

/* ═══ 1. layout shell ════════════════════════════════════════════ */
.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 18px;
}

/* every section sits inside its own glass exhibit panel */
.sec {
  position: relative;
  margin-top: var(--sec-gap);
  min-width: 0;
  padding: 15px 16px 17px;
  border-radius: 16px;
  border: 1px solid rgba(123, 255, 252, .22);
  background:
    linear-gradient(180deg, rgba(123, 255, 252, .05), rgba(85, 224, 206, .02) 46%, rgba(12, 12, 34, .22)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    inset 0 -14px 22px -18px rgba(0, 20, 30, .9),
    0 12px 26px -18px rgba(0, 0, 0, .6);
  overflow: hidden;
}

/* faint caustic ripple along the top rim of each panel */
.sec::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: radial-gradient(ellipse 10px 5px at 11px 1px, transparent 4px, rgba(85, 224, 206, .4) 4.5px 6px, transparent 6.5px) 0 0 / 26px 5px repeat-x;
  opacity: .8;
  pointer-events: none;
}

/* ═══ 2. callout — the species tag ═══════════════════════════════ */
.callout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.callout b {
  flex: none;
  font-family: var(--fh);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(85, 224, 206, .13);
  box-shadow: inset 0 0 0 1.5px rgba(85, 224, 206, .42);
  padding: 4px 13px;
  border-radius: 4px;
}

.callout span {
  font-family: var(--fm);
  font-size: 10.5px;
  color: #6FB8AE;
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.callout::after {
  content: '';
  flex: 1;
  border-top: 2px solid rgba(85, 224, 206, .3);
}

/* the little shell beside the label */
.co-shell {
  flex: none;
  font-style: normal;
  font-size: 12.5px;
  line-height: 1;
  color: var(--accent2);
  opacity: .85;
}

/* ═══ 3. header — the tide line over the door ════════════════════ */
.hdr {
  position: relative;
  z-index: 50;
}

.hdr-tide {
  background: linear-gradient(180deg, #1F1F4E, #1A1A3E 70%, #16163A);
  border-bottom: none;
  overflow: hidden;
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 10px;
}

.hdr-name {
  flex: 1;
  min-width: 0;
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the only bubble strip on the page — two rising rings by the name */
.s103-bubble {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  width: 14px;
  height: 16px;
  vertical-align: -2px;
  margin-right: 2px;
}

.s103-bubble i {
  display: block;
  border-radius: 50%;
  border: 1.5px solid rgba(123, 255, 252, .55);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .5), transparent 60%);
}

.s103-bubble i:first-child { width: 8px; height: 8px; animation: s103hdrbub 3.4s infinite; }
.s103-bubble i:last-child { width: 5px; height: 5px; animation: s103hdrbub 3.4s 1.4s infinite; }

@keyframes s103hdrbub {
  0% { transform: translateY(6px); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: translateY(-8px); opacity: 0; }
}

.hdr-search {
  flex: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1.5px solid rgba(123, 255, 252, .5);
  border-radius: 50%;
}

/* scallop tide line below the header bar */
.s103-waveline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 10px;
  padding: 0 6px;
  background: linear-gradient(180deg, rgba(85, 224, 206, .22), rgba(85, 224, 206, .04));
}

.s103-waveline i {
  flex: 1;
  height: 7px;
  margin: 0 1px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, rgba(123, 255, 252, .5), rgba(123, 255, 252, .08));
  animation: s103tide 2.8s ease-in-out infinite;
}

.s103-waveline i:nth-child(2) { animation-delay: .2s; }
.s103-waveline i:nth-child(3) { animation-delay: .4s; }
.s103-waveline i:nth-child(4) { animation-delay: .6s; }
.s103-waveline i:nth-child(5) { animation-delay: .8s; }
.s103-waveline i:nth-child(6) { animation-delay: 1s; }
.s103-waveline i:nth-child(7) { animation-delay: 1.2s; }

@keyframes s103tide {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.45); }
}

/* ═══ 4. nav chips + search ══════════════════════════════════════ */
.nav-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 2px 4px;
  scrollbar-width: none;
}

.nav-chips::-webkit-scrollbar { display: none; }

.nchip {
  flex: none;
  font-family: var(--fh);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--soft);
  background: rgba(123, 255, 252, .1);
  border: 1.5px solid rgba(123, 255, 252, .35);
  border-radius: 20px;
  padding: 7px 14px;
  transition: transform .16s ease, box-shadow .16s ease;
}

.nchip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.nchip.on {
  color: #12122E;
  background: var(--accent);
  border-color: var(--accent);
}

.srch-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.srch-input {
  flex: 1;
  min-width: 0;
  background: #12123A;
  border: 1.5px solid rgba(123, 255, 252, .4);
  border-radius: 18px;
  padding: 10px 16px;
  font-family: var(--fh);
  font-size: 13.5px;
  color: var(--text);
  outline: none;
}

.srch-input:focus { border-color: var(--accent); }

.srch-go {
  flex: none;
  font-family: var(--fh);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--accent);
  background: rgba(85, 224, 206, .18);
  box-shadow: inset 0 0 0 1.5px rgba(85, 224, 206, .5);
  border-radius: 18px;
  padding: 0 16px;
  transition: transform .16s ease, filter .16s ease;
}

.srch-go:hover { transform: translateY(-1px); filter: brightness(1.1); }
.srch-go:active { transform: translateY(1px); }

/* ═══ 5. loading ═════════════════════════════════════════════════ */
.loading-full {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.loading-bar {
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: var(--panel-2);
  overflow: hidden;
  margin: 0 auto 12px;
}

.loading-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: ldslide 1s infinite;
}

@keyframes ldslide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.loading-txt {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--soft);
}

/* ═══ 6. hero — the display tank ═════════════════════════════════ */
.tank-hero {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(220, 214, 250, .32);
  background: linear-gradient(180deg, #181842, #12123A);
  box-shadow:
    inset 0 0 34px rgba(123, 255, 252, .09),
    0 8px 26px rgba(0, 0, 0, .42);
}

.tk-glass {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 0 18px;
}

.tk-glass img {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(220, 214, 250, .6);
  box-shadow: 0 0 24px rgba(123, 255, 252, .45);
}

.tk-waterline {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 8px;
  background: radial-gradient(circle at 12px 8px, transparent 8px, rgba(220, 214, 250, .28) 8px 12px, transparent 12px) 0 0 / 48px 16px repeat-x;
}

.tk-bub {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(220, 214, 250, .55);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .5), transparent 60%);
  animation: tankbub 4.5s infinite;
}

.tk-bub.b1 { width: 14px; height: 14px; left: 18%; top: 60%; }
.tk-bub.b2 { width: 9px; height: 9px; left: 76%; top: 70%; animation-delay: 1.6s; }
.tk-bub.b3 { width: 11px; height: 11px; left: 84%; top: 55%; animation-delay: 3s; }

@keyframes tankbub {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: .9; }
  100% { transform: translateY(-120px); opacity: 0; }
}

.tk-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .14), transparent 55%);
  pointer-events: none;
}

.tk-body {
  text-align: center;
  padding: 2px 16px 14px;
}

.tk-k {
  display: block;
  font-family: var(--fh);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.tk-nm {
  display: block;
  font-family: var(--fh);
  font-size: 23px;
  font-weight: 700;
  color: #F2E6FA;
  margin-top: 5px;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.tk-ds {
  display: block;
  font-size: 12.5px;
  color: #9CA0C8;
  margin-top: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tk-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.tk-meta em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #12122E;
  background: var(--accent);
  padding: 3px 11px;
  border-radius: 12px;
}

.tk-stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 12px;
}

.tk-stars i { font-style: normal; }
.tk-stars i.off { opacity: .25; }

/* brass tank plate riveted under the glass */
.tk-plate {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 9px 12px 11px;
  background: linear-gradient(180deg, #20204C, #17173B);
  border-top: 1px solid rgba(220, 214, 250, .18);
}

.tk-plate i {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--accent2);
  background: rgba(85, 224, 206, .1);
  box-shadow: inset 0 0 0 1px rgba(85, 224, 206, .35);
  border-radius: 3px;
  padding: 2px 8px;
}

/* divider — columns of rising light under the hero tank */
.tk-div {
  display: flex;
  justify-content: space-around;
  padding: 0 0 12px;
}

.tk-div i {
  position: relative;
  width: 6px;
  height: 40px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(85, 224, 206, .06), rgba(85, 224, 206, .16));
}

.tk-div i::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: rgba(123, 255, 252, .75);
  box-shadow: 0 -9px 0 -1.5px rgba(123, 255, 252, .55), 0 -18px 0 -1px rgba(123, 255, 252, .4);
  animation: k103rise 2.6s linear infinite;
}

.tk-div i:nth-child(2)::before { animation-delay: .8s; }
.tk-div i:nth-child(3)::before { animation-delay: 1.5s; }
.tk-div i:nth-child(4)::before { animation-delay: .4s; }
.tk-div i:nth-child(5)::before { animation-delay: 1.1s; }

@keyframes k103rise {
  from { transform: translateY(30px); opacity: 0; }
  30% { opacity: 1; }
  to { transform: translateY(-26px); opacity: 0; }
}

/* ═══ 7. feeding times — the keepers' tide ladder ════════════════ */
.s103-feed {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.s103-feed-row {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  padding: 9px 12px 9px 9px;
  background: linear-gradient(180deg, rgba(85, 224, 206, .1), rgba(85, 224, 206, .02) 60%), var(--panel);
  box-shadow: inset 0 0 0 1.5px rgba(85, 224, 206, .22);
  transition: transform .15s ease;
}

.s103-feed-row:active { transform: scale(.98); }

/* the clock — a small LED feed timer */
.s103-feed-hour {
  flex: none;
  font-family: var(--fm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  background: #0E0E28;
  box-shadow: inset 0 0 0 1px rgba(123, 255, 252, .4);
  border-radius: 6px;
  padding: 5px 7px;
}

/* the bucket the keeper carries */
.s103-feed-bucket {
  flex: none;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(180deg, rgba(123, 255, 252, .14), rgba(85, 224, 206, .05));
  box-shadow: inset 0 0 0 1.5px rgba(123, 255, 252, .35);
}

.s103-feed-bucket img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.s103-feed-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.s103-feed-nm {
  font-family: var(--fh);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s103-feed-ds {
  font-size: 12px;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the little pail glyph closing the row */
.s103-feed-pail {
  flex: none;
  width: 16px;
  height: 18px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, rgba(123, 255, 252, .3), rgba(85, 224, 206, .12));
  box-shadow: inset 0 0 0 1px rgba(123, 255, 252, .4);
  position: relative;
}

.s103-feed-pail::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 18px;
  height: 8px;
  margin-left: -9px;
  border: 1.5px solid rgba(123, 255, 252, .5);
  border-bottom: none;
  border-radius: 9px 9px 0 0;
}

/* ═══ 8. kelp highway — drifting fronds rail ═════════════════════ */
.s103-kelp {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}

.s103-kelp::-webkit-scrollbar { display: none; }

.s103-frond {
  flex: none;
  width: 88px;
  text-align: center;
  padding: 8px 6px 9px;
  border-radius: 50px 50px 10px 10px;
  background: linear-gradient(180deg, rgba(123, 255, 252, .13), rgba(85, 224, 206, .04)), var(--panel);
  box-shadow: inset 0 0 0 1px rgba(85, 224, 206, .28);
}

/* the swaying stalk this frond drifts from */
.s103-frond-stalk {
  display: flex;
  justify-content: center;
  gap: 3px;
  height: 10px;
  margin-bottom: 7px;
}

.s103-frond-stalk i {
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(85, 224, 206, .7), rgba(85, 224, 206, .15));
  transform-origin: top center;
  animation: s103sway 3s ease-in-out infinite;
}

.s103-frond-stalk i:last-child { animation-delay: .7s; }

@keyframes s103sway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

.s103-frond-art {
  display: block;
  width: 66px;
  height: 66px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(123, 255, 252, .16), rgba(12, 12, 34, .5) 78%);
  box-shadow: 0 0 0 1.5px rgba(123, 255, 252, .3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.s103-frond-art img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.s103-frond-nm {
  display: block;
  margin-top: 6px;
  font-family: var(--fh);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 9. kelp forest — swaying tank grid ═════════════════════════ */
.s103-forest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.s103-tank {
  display: block;
  min-width: 0;
}

.s103-tank-glass {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(123, 255, 252, .1), rgba(12, 12, 34, .4));
  box-shadow: inset 0 0 0 2px rgba(85, 224, 206, .3), inset 0 -12px 16px -12px rgba(0, 25, 35, .9);
  overflow: hidden;
}

.s103-tank-glass img {
  width: 78%;
  height: 78%;
  border-radius: 12px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* a mote of light rising through the tank */
.s103-rise {
  position: absolute;
  bottom: 8px;
  left: 24%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(123, 255, 252, .8);
  box-shadow: 0 -10px 0 -1.5px rgba(123, 255, 252, .5), 0 -20px 0 -1px rgba(123, 255, 252, .3);
  animation: s103mote 3.2s linear infinite;
}

@keyframes s103mote {
  from { transform: translateY(14px); opacity: 0; }
  30% { opacity: .9; }
  to { transform: translateY(-64px); opacity: 0; }
}

.s103-tank-nm {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-family: var(--fh);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 10. species cards — specimen jars ══════════════════════════ */
.s103-jars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.s103-jar {
  display: block;
  min-width: 0;
}

.s103-jar-glass {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.12;
  border-radius: 12px 12px 16px 16px;
  background: linear-gradient(180deg, rgba(220, 214, 250, .1) 0 14%, rgba(85, 224, 206, .1) 14%, rgba(12, 12, 34, .5));
  box-shadow: inset 0 0 0 2px rgba(220, 214, 250, .3), inset 0 -14px 18px -14px rgba(0, 25, 35, .9);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s103-jar-glass img {
  width: 74%;
  height: 74%;
  border-radius: 10px;
  object-fit: cover;
}

/* the screwed lid over the jar mouth */
.s103-jar-lid {
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 12%;
  border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(90deg, rgba(123, 255, 252, .28) 0 4px, rgba(85, 224, 206, .16) 4px 8px);
  box-shadow: inset 0 -2px 0 rgba(220, 214, 250, .25);
}

.s103-jar-nm {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-family: var(--fm);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 11. diver's slate — the underwater whiteboard ══════════════ */
.s103-slate {
  position: relative;
  display: flex;
  gap: 14px;
  border-radius: 14px;
  padding: 14px 34px 14px 14px;
  background: linear-gradient(180deg, #20204C, #1A1A3E);
  box-shadow: inset 0 0 0 2px rgba(220, 214, 250, .3);
  overflow: hidden;
}

/* corner clips that pin the slate sheet */
.s103-slate-frame::before,
.s103-slate-frame::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(123, 255, 252, .6);
  z-index: 3;
}

.s103-slate-frame::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
  border-radius: 4px 0 0 0;
}

.s103-slate-frame::after {
  bottom: 8px;
  left: 8px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 4px;
}

.s103-slate-img {
  flex: none;
  width: 118px;
  align-self: center;
  border-radius: 10px;
  border: 2px solid rgba(123, 255, 252, .35);
  background: #0E0E28;
  object-fit: cover;
}

.s103-slate-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px 0;
}

.s103-slate-head {
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--accent2);
}

.s103-slate-nm {
  font-family: var(--fh);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  overflow-wrap: break-word;
}

.s103-slate-ds {
  font-size: 12.5px;
  color: var(--soft);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.s103-slate-go {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--fh);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #12122E;
  background: var(--accent);
  border-radius: 4px;
  padding: 5px 12px;
}

/* the grease pencil resting in its side groove — no rotation */
.s103-slate-pen {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 10px;
  height: 72px;
  margin-top: -36px;
  border-radius: 5px;
  background: linear-gradient(180deg, #F2E6FA 0 18%, var(--accent) 18% 92%, #F2E6FA 92%);
  box-shadow: inset -2px 0 3px rgba(0, 0, 0, .3);
}

/* ═══ 12. shell ledge — specimens on the shelf ════════════════════ */
.s103-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 10px;
}

.s103-shell {
  display: block;
  min-width: 0;
  padding-bottom: 12px;
  background: linear-gradient(180deg, transparent, transparent calc(100% - 6px), rgba(220, 214, 250, .14) calc(100% - 6px));
}

/* the ridged whorl lines above every shell */
.s103-shell-ridge {
  display: flex;
  justify-content: center;
  gap: 4px;
  height: 5px;
  margin-bottom: 7px;
}

.s103-shell-ridge i {
  width: 5px;
  height: 5px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: rgba(123, 255, 252, .45);
}

.s103-shell-ridge i:nth-child(2) { opacity: .7; }
.s103-shell-ridge i:nth-child(3) { opacity: .45; }

.s103-shell-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 30%, rgba(123, 255, 252, .16), rgba(12, 12, 34, .55) 80%);
  box-shadow: inset 0 0 0 2px rgba(220, 214, 250, .28);
}

.s103-shell-art img {
  width: 76%;
  height: 76%;
  border-radius: 50%;
  object-fit: cover;
}

.s103-shell-nm {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-family: var(--fh);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 13. keeper's board — the grease-pencil panel ═══════════════ */
.s103-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #0E0E28;
  box-shadow: inset 0 0 0 2px rgba(123, 255, 252, .25);
}

.s103-board-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(85, 224, 206, .1), rgba(85, 224, 206, .02));
  box-shadow: inset 0 0 0 1px rgba(85, 224, 206, .3);
  transition: transform .15s ease;
}

.s103-board-tile:active { transform: scale(.97); }

.s103-board-no {
  flex: none;
  font-family: var(--fm);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent2);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-right: 1px dashed rgba(85, 224, 206, .4);
  padding-right: 6px;
}

.s103-board-art {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1.5px dashed rgba(123, 255, 252, .45);
  padding: 3px;
}

.s103-board-art img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.s103-board-nm {
  flex: 1;
  min-width: 0;
  font-family: var(--fh);
  font-style: italic;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 14. species cards — habitat tags ═══════════════════════════ */
.s103-habitats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.s103-habitat {
  position: relative;
  display: block;
  min-width: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(123, 255, 252, .1), rgba(85, 224, 206, .03)), var(--panel);
  box-shadow: inset 0 0 0 1.5px rgba(85, 224, 206, .3);
  padding: 12px 12px 11px;
  overflow: hidden;
  transition: transform .15s ease;
}

.s103-habitat:active { transform: scale(.97); }

/* tiny surf line riding the top of each tag */
.s103-hab-wave {
  display: block;
  height: 6px;
  margin-bottom: 8px;
  background: radial-gradient(ellipse 9px 4px at 10px 2px, transparent 3px, rgba(123, 255, 252, .5) 3.5px 5px, transparent 5.5px) 0 0 / 22px 6px repeat-x;
}

.s103-hab-b {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.s103-hab-b b {
  font-family: var(--fh);
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s103-hab-b i {
  font-style: normal;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--accent2);
}

/* ═══ 15. daily log — the archive roll ═══════════════════════════ */
.s103-roll {
  position: relative;
  border-radius: 14px;
  background: #0E0E28;
  box-shadow: inset 0 0 0 2px rgba(85, 224, 206, .28);
  padding: 0 12px 12px;
}

/* the header band of the log book */
.s103-roll-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -12px 12px;
  padding: 9px 14px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(123, 255, 252, .18), rgba(85, 224, 206, .06));
  border-bottom: 1px solid rgba(85, 224, 206, .35);
}

.s103-roll-top b {
  font-family: var(--fm);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--accent);
}

.s103-roll-top span {
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--soft);
}

.arc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arc {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  padding: 8px 11px;
  background: linear-gradient(180deg, rgba(85, 224, 206, .08), rgba(85, 224, 206, .02)), var(--panel);
  box-shadow: inset 0 0 0 1px rgba(85, 224, 206, .22);
}

.arc img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(85, 224, 206, .3);
}

.arc-b {
  flex: 1;
  min-width: 0;
}

.arc-nm {
  display: block;
  font-family: var(--fh);
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arc-ds {
  display: block;
  font-size: 11px;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* tank code stamped on every log entry */
.s103-entry-no {
  flex: none;
  font-family: var(--fm);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent2);
  background: rgba(85, 224, 206, .1);
  box-shadow: inset 0 0 0 1px rgba(85, 224, 206, .35);
  border-radius: 4px;
  padding: 3px 6px;
}

.arc-tag {
  flex: none;
  font-style: normal;
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid rgba(85, 224, 206, .6);
  border-radius: 3px;
  padding: 2px 6px;
}

/* ═══ 16. filter view ════════════════════════════════════════════ */
.filter-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.filter-back {
  flex: none;
  font-family: var(--fh);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(85, 224, 206, .12);
  box-shadow: inset 0 0 0 1.5px rgba(85, 224, 206, .45);
  border-radius: 18px;
  padding: 7px 12px;
}

.filter-title {
  flex: 1;
  min-width: 0;
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-cnt {
  flex: none;
  font-family: var(--fm);
  font-size: 11.5px;
  color: #12122E;
  background: var(--accent);
  border-radius: 12px;
  padding: 3px 8px;
}

/* the empty tank when a search finds nothing */
.s103-empty-tank {
  position: relative;
  width: 96px;
  height: 58px;
  margin: 0 auto 4px;
  border-radius: 10px 10px 14px 14px;
  background: linear-gradient(180deg, rgba(220, 214, 250, .08) 0 12%, rgba(85, 224, 206, .06) 12%, rgba(12, 12, 34, .5));
  box-shadow: inset 0 0 0 2px rgba(220, 214, 250, .3);
}

.s103-empty-tank i {
  position: absolute;
  bottom: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(123, 255, 252, .6);
  animation: s103mote 3s linear infinite;
}

.s103-empty-tank i:first-child { left: 32%; }
.s103-empty-tank i:last-child { left: 62%; animation-delay: 1.2s; }

/* ═══ 17. more + empty ═══════════════════════════════════════════ */
.empty-space {
  text-align: center;
  padding: 42px 0 26px;
}

.empty-space p { font-size: 34px; }

.empty-space span {
  display: block;
  margin-top: 10px;
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--soft);
}

.more-wrap {
  text-align: center;
  margin-top: 15px;
}

.more-btn {
  font-family: var(--fh);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(85, 224, 206, .12);
  box-shadow: inset 0 0 0 1.5px rgba(85, 224, 206, .45);
  border-radius: 20px;
  padding: 10px 22px;
}

.more-btn:active { transform: scale(.97); }

/* ═══ 18. footer — the sandy seabed ══════════════════════════════ */
.foot {
  position: relative;
  margin-top: 44px;
  padding: 30px 0 30px;
  text-align: center;
  background: linear-gradient(180deg, #1A1A3E, #12122E);
}

/* the sand bar the footer stands on */
.s103-seabed {
  height: 16px;
  background:
    radial-gradient(ellipse 10px 5px at 11px 2px, transparent 4px, rgba(217, 196, 143, .4) 4.5px 6px, transparent 6.5px) 0 0 / 26px 8px repeat-x,
    linear-gradient(180deg, rgba(217, 196, 143, .16), transparent);
}

.foot-name {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
}

.foot-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 12px;
}

.foot-links a {
  display: inline;
  font-size: 12.5px;
  color: var(--soft);
  text-decoration: underline;
}

.foot-fine {
  margin-top: 12px;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--soft);
  opacity: .75;
}

/* ═══ 19. back-to-top — the surface marker ═══════════════════════ */
.totop-btn {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 60;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #12122E;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 0 18px rgba(123, 255, 252, .35);
}

/* ═══ 20. responsive ═════════════════════════════════════════════ */
@media (max-width: 480px) {
  .sec { padding: 13px 12px 15px; }

  .tk-glass img { width: 112px; height: 112px; }

  .tk-nm { font-size: 20px; }

  .s103-slate { padding: 12px 28px 12px 12px; }

  .s103-slate-img { width: 96px; }

  .s103-slate-nm { font-size: 16.5px; }

  .s103-slate-pen { height: 60px; margin-top: -30px; }

  .s103-board-tile { gap: 8px; padding: 7px 8px; }
}

@media (max-width: 375px) {
  .wrap { padding: 0 14px; }

  .hdr-name { font-size: 16.5px; }

  .s103-forest,
  .s103-jars { gap: 9px; }

  .s103-shell { padding-bottom: 10px; }

  .s103-slate { gap: 10px; }

  .s103-slate-img { width: 88px; }

  .s103-slate-ds { -webkit-line-clamp: 2; }
}
