/* ═══════════════════════════════════════════════════════════════
   THE SALT FLAG — s110 deep-custom portal skin
   site youxi--1--110 · index.html
   language: gunports · rum barrels · treasure maps · wanted posters
   ═══════════════════════════════════════════════════════════════ */

/* ── palette (unchanged from original site) ──────────────────── */
:root {
  --bg: #0D1B26;
  --panel: #132635;
  --panel-2: #1A3245;
  --accent: #4CE84B;
  --accent2: #5AC73C;
  --text: #F0F2E9;
  --soft: #9BAFBC;
  --line: rgba(76, 232, 75, .3);
  --brass: #B08D4A;
  --brass-2: #8A6C36;
  --wood: #5C4630;
  --wood-2: #74583C;
  --parchment: #E4D5AE;
  --fh: Georgia, serif;
  --fb: 'Segoe UI', sans-serif;
  --fm: 'Courier New', 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);
}

/* night swell with a green lantern glow */
body.t-pirate {
  background:
    repeating-linear-gradient(-12deg, rgba(255, 255, 255, .02) 0 4px, transparent 4px 18px),
    radial-gradient(ellipse at 20% 10%, rgba(76, 232, 75, .1), transparent 45%),
    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: #0D1B26; }

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

/* each section is a hold below decks */
.sec {
  position: relative;
  margin-top: var(--sec-gap);
  min-width: 0;
  padding: 15px 16px 17px;
  border-radius: 10px;
  border: 1.5px solid rgba(76, 232, 75, .25);
  background:
    linear-gradient(180deg, rgba(76, 232, 75, .04), rgba(13, 27, 38, .4) 60%),
    var(--panel);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .03),
    0 12px 26px -18px rgba(0, 0, 0, .75);
}

/* the rope seam across the hold rim */
.sec::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(176, 141, 74, .4) 0 5px, transparent 5px 10px);
  border-radius: 2px;
  pointer-events: none;
}

/* ═══ 2. callout — the ship's stamp ══════════════════════════════ */
.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: .12em;
  text-transform: uppercase;
  color: #0D1B26;
  background: var(--accent);
  border-radius: 3px;
  padding: 4px 13px;
}

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

.callout::after {
  content: '';
  flex: 1;
  border-top: 1.5px dashed rgba(76, 232, 75, .3);
}

/* the skull beside the label */
.co-skull {
  flex: none;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  color: var(--soft);
}

/* ═══ 3. header — figurehead + skull ribbon ═════════════════════ */
.hdr {
  position: relative;
  z-index: 50;
  background: linear-gradient(180deg, #14293A, #0F1F2C);
  overflow: hidden;
}

/* the skull-and-bones ribbon over the door */
.s110-ribbon {
  display: flex;
  justify-content: center;
  gap: 8px;
  height: 12px;
  background: linear-gradient(180deg, rgba(76, 232, 75, .1), transparent);
}

.s110-ribbon i {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(240, 242, 233, .35);
  position: relative;
}

/* the crossed bones under each dot */
.s110-ribbon i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: -4px;
  width: 17px;
  height: 2px;
  background: rgba(240, 242, 233, .2);
  transform: rotate(28deg);
}

.s110-ribbon i:nth-child(2n)::after { transform: rotate(-28deg); }

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

.s110-fig {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* the carved figurehead curl by the name */
.s110-fig-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s110-fig-head i {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50% 0 50% 50%;
  background: linear-gradient(135deg, var(--brass), var(--brass-2));
  box-shadow: inset 0 0 4px rgba(0, 0, 0, .5);
  transform: rotate(45deg);
}

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

.s110-sub {
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .24em;
  color: var(--soft);
}

/* the menu button */
.hdr-menu {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1.5px solid rgba(176, 141, 74, .5);
  border-radius: 6px;
}

.hdr-menu i {
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--brass);
}

.hdr-search {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1.5px solid rgba(76, 232, 75, .4);
  border-radius: 6px;
}

/* the deck planks closing the header */
.s110-planks {
  display: flex;
  gap: 0;
  height: 10px;
}

.s110-planks i {
  flex: 1;
  height: 100%;
  border-right: 1px solid rgba(13, 27, 38, .8);
  background: linear-gradient(180deg, var(--wood-2), var(--wood));
}

.s110-planks i:last-child { border-right: none; }

/* ═══ 4. search + drawer ═════════════════════════════════════════ */
.srch-bar {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.srch-input {
  flex: 1;
  min-width: 0;
  background: #0A1620;
  border: 1.5px solid rgba(76, 232, 75, .28);
  border-radius: 6px;
  padding: 10px 13px;
  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;
  color: #0D1B26;
  background: var(--accent);
  border-radius: 6px;
  padding: 0 16px;
}

.srch-go:active { transform: scale(.96); }

/* the ship's log drawer */
.nv-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 12, 18, .6);
}

.nv-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 85;
  width: 264px;
  background: #0F1F2C;
  border-right: 3px solid var(--brass-2);
  transform: translateX(-105%);
  transition: transform .25s ease;
  overflow-y: auto;
}

.nv-drawer.open { transform: translateX(0); }

.nv-dh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--wood-2), var(--wood));
  border-bottom: 2px solid rgba(0, 0, 0, .4);
}

.nv-dh b {
  font-family: var(--fh);
  font-size: 11px;
  letter-spacing: .2em;
  color: #F0E8D4;
}

.nv-x {
  font-size: 14px;
  color: #F0E8D4;
  padding: 2px 8px;
}

.nv-d {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--fh);
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px dashed rgba(76, 232, 75, .15);
}

.nv-d i {
  font-style: normal;
  font-family: var(--fm);
  font-size: 10px;
  color: var(--soft);
}

.nv-d.on {
  color: var(--accent);
  background: rgba(76, 232, 75, .08);
}

/* ═══ 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 — featured find ════════════════════════════════════ */
.hv8 {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 58px;
}

/* the smaller find lashed behind */
.hv8-back {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid rgba(76, 232, 75, .22);
}

.hv8-bart {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--brass-2);
}

.hv8-bart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv8-bnm {
  font-family: var(--fh);
  font-size: 13.5px;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the main find on the quarterdeck */
.hv8-front {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 16px 16px 18px;
  border: 2px solid rgba(176, 141, 74, .5);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(76, 232, 75, .08), transparent 65%),
    var(--panel-2);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .35);
  overflow: hidden;
}

/* the stern lantern glow at the card top */
.hv8-front::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(176, 141, 74, .55), transparent);
}

.hv8-k {
  display: block;
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--accent);
  text-align: center;
}

.hv8-art {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
}

.hv8-art img {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(176, 141, 74, .55);
  box-shadow: 0 0 22px rgba(76, 232, 75, .25);
}

.hv8-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

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

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

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

.hv8-meta em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0D1B26;
  background: var(--accent);
  border-radius: 3px;
  padding: 3px 10px;
}

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

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

.hx-cta {
  align-self: center;
  margin-top: 8px;
  font-family: var(--fh);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #0D1B26;
  background: var(--accent);
  border-radius: 4px;
  padding: 8px 20px;
}

.hv8-front:active { transform: scale(.98); }

/* ═══ 7. divider — the anchor line ═══════════════════════════════ */
.tk-div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 0 10px;
}

.tk-div i {
  width: 42px;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(176, 141, 74, .5), transparent);
}

.tk-div i:nth-child(2) {
  width: 11px;
  height: 11px;
  background: transparent;
  border: 2px solid var(--brass);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

/* ═══ 8. legendary crew — the wanted wall ════════════════════════ */
.s110-wanted {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.s110-poster {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 4px;
  padding: 10px 12px 10px 10px;
  background: var(--parchment);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
  transform: rotate(-.4deg);
}

.s110-poster:nth-child(even) { transform: rotate(.5deg); }

/* the nails pinning each poster */
.s110-poster-nail {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
}

.s110-poster-nail i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E8DCC0, var(--brass-2));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

.s110-poster-bounty {
  flex: none;
  font-family: var(--fm);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #8A2B22;
  border: 1.5px solid #8A2B22;
  border-radius: 3px;
  padding: 3px 6px;
}

.s110-poster-bounty.b1 { color: #3A5A2E; border-color: #3A5A2E; }

.s110-poster-art {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid rgba(92, 70, 48, .5);
}

.s110-poster-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.s110-poster-nm {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  color: #3A2A18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s110-poster-ds {
  font-size: 11px;
  color: #6B5A3E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s110-poster:active { transform: scale(.97); }

/* ═══ 9. deck cargo — the gunport battery ════════════════════════ */
.s110-battery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  padding: 11px 10px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--wood-2), var(--wood));
  box-shadow: inset 0 0 16px rgba(0, 0, 0, .45);
}

.s110-port {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* the open lid above each port */
.s110-port-lid {
  display: flex;
  justify-content: center;
  height: 7px;
}

.s110-port-lid i {
  width: 58%;
  height: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(240, 242, 233, .14), rgba(240, 242, 233, .04));
}

/* the brass-ring gunport */
.s110-port-ring {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #0A1620, #050D14 80%);
  box-shadow: inset 0 0 0 3px var(--brass-2), inset 0 0 14px rgba(0, 0, 0, .8);
  overflow: hidden;
}

.s110-port-ring img {
  width: 74%;
  height: 74%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(176, 141, 74, .4);
}

.s110-port-nm {
  display: block;
  margin-top: 6px;
  font-family: var(--fh);
  font-size: 11px;
  font-weight: 700;
  color: #F0E8D4;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.s110-port:active { transform: scale(.95); }

/* ═══ 10. mutiny or midnight — the rum hold ══════════════════════ */
.s110-hold {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.s110-barrel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, var(--wood-2), var(--wood));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), inset 0 -8px 14px rgba(0, 0, 0, .35);
  overflow: hidden;
}

/* the iron hoops around the staves */
.s110-barrel-hoop {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.s110-barrel-hoop i {
  height: 5px;
  background: linear-gradient(180deg, #4A4A52, #2E2E36);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

.s110-barrel-hoop i:nth-child(2) { height: 4px; opacity: .85; }

.s110-barrel-art {
  display: flex;
  justify-content: center;
  padding: 12px 10px 6px;
}

.s110-barrel-art img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brass-2);
  box-shadow: 0 0 0 4px rgba(228, 213, 174, .1);
}

.s110-barrel-b {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 12px 12px;
}

.s110-barrel-b b {
  font-family: var(--fh);
  font-size: 13.5px;
  line-height: 1.2;
  color: #F0E8D4;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
  overflow-wrap: break-word;
}

.s110-barrel-b span {
  font-size: 11px;
  color: rgba(240, 232, 212, .75);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.s110-barrel-b em {
  font-style: normal;
  align-self: flex-start;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0D1B26;
  background: var(--parchment);
  border-radius: 3px;
  padding: 2px 7px;
}

.s110-barrel:active { transform: scale(.98); }

/* ═══ 11. chart index — the pinned chart tags ════════════════════ */
.s110-charts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.s110-pin {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  border-radius: 4px;
  padding: 7px 12px 7px 9px;
  background:
    linear-gradient(180deg, rgba(228, 213, 174, .06), transparent),
    var(--panel);
  border: 1px dashed rgba(228, 213, 174, .4);
}

.s110-pin:active { transform: scale(.97); }

/* the dagger pinning each tag */
.s110-pin-dagger {
  flex: none;
  display: flex;
  justify-content: center;
  width: 10px;
}

.s110-pin-dagger i {
  width: 4px;
  height: 15px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #D8D4C4, var(--brass));
}

.s110-pin-dagger i::after {
  content: '';
  display: block;
  width: 10px;
  height: 3px;
  margin-top: 0;
  border-radius: 2px;
  background: var(--brass-2);
}

.s110-pin-art {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid rgba(176, 141, 74, .45);
}

.s110-pin-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s110-pin-b {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.s110-pin-b em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent2);
}

/* ═══ 12. plunder ledger — the map scroll rows ═══════════════════ */
.s110-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 11px 11px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(228, 213, 174, .03) 0 1px, transparent 1px 26px),
    #16222C;
  box-shadow: inset 0 0 0 2px rgba(176, 141, 74, .35);
}

.s110-leg {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 4px;
  padding: 9px 11px;
  background: var(--parchment);
  box-shadow: 0 3px 9px rgba(0, 0, 0, .4);
}

/* the dashed route trailing behind each row */
.s110-leg::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 50%;
  width: 11px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(138, 43, 34, .5) 0 4px, transparent 4px 8px);
}

.s110-leg:first-child::before { display: none; }

.s110-leg-bear {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 700;
  color: #3A2A18;
  border: 1.5px solid rgba(92, 70, 48, .6);
  border-radius: 50%;
}

.s110-leg-art {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(92, 70, 48, .5);
}

.s110-leg-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.s110-leg-nm {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  color: #3A2A18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s110-leg-ds {
  font-size: 11px;
  color: #6B5A3E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the treasure mark closing each leg */
.s110-leg-x {
  flex: none;
  font-family: var(--fh);
  font-size: 15px;
  font-weight: 700;
  color: #8A2B22;
  text-shadow: 0 0 1px rgba(138, 43, 34, .6);
}

.s110-leg:active { transform: scale(.98); }

/* ═══ 13. boarding papers — the ratline ladder ═══════════════════ */
.s110-rigging {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 4px 14px;
}

/* the two shrouds the rungs hang between */
.s110-rigging::before,
.s110-rigging::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brass-2), rgba(138, 108, 54, .2));
  border-radius: 2px;
}

.s110-rigging::before { left: 4px; }
.s110-rigging::after { right: 4px; }

.s110-rung {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--panel);
  border: 1px solid rgba(76, 232, 75, .22);
  border-top: 3px solid var(--brass-2);
}

.s110-rung-rope {
  display: none;
}

.s110-rung-art {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(176, 141, 74, .5);
}

.s110-rung-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.s110-rung-b b {
  font-family: var(--fh);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s110-rung-b em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .12em;
  color: var(--accent2);
}

.s110-rung:active { transform: scale(.97); }

/* ═══ 14. flag wall — the trophy chests ══════════════════════════ */
.s110-chests {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.s110-chest {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(180deg, var(--wood-2), var(--wood));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .07), 0 4px 10px rgba(0, 0, 0, .4);
  overflow: hidden;
}

/* the slightly open lid */
.s110-chest-lid {
  display: block;
  height: 9px;
  background: linear-gradient(180deg, rgba(240, 232, 212, .16), rgba(240, 232, 212, .03));
  border-bottom: 2px solid var(--brass-2);
}

.s110-chest-lid i {
  display: block;
  height: 100%;
  background:
    radial-gradient(circle, rgba(176, 141, 74, .7) 1.5px, transparent 2px) 6px 4px / 18px 5px repeat-x;
}

.s110-chest-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 10px 4px;
}

.s110-chest-art img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(228, 213, 174, .35);
}

/* the brass lock plate on the front */
.s110-chest-lock {
  position: absolute;
  right: 12%;
  bottom: 2px;
  width: 9px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brass), var(--brass-2));
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.s110-chest-nm {
  display: block;
  padding: 0 7px 7px;
  font-family: var(--fh);
  font-size: 10px;
  font-weight: 700;
  color: #F0E8D4;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.s110-chest:active { transform: scale(.95); }

/* ═══ 15. chart index — the compass rose ═════════════════════════ */
.s110-rose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.s110-point {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--panel);
  border: 1px solid rgba(176, 141, 74, .35);
}

.s110-point:active { transform: scale(.97); }

/* the compass needle on each bearing */
.s110-point-needle {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.s110-point-needle i {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 12px solid var(--accent2);
}

.s110-point-needle i::after {
  content: '';
  position: absolute;
  margin-top: 12px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid rgba(155, 175, 188, .5);
}

.s110-point-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.s110-point-b b {
  font-family: var(--fh);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s110-point-b i {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--soft);
}

.s110-point-arrow {
  flex: none;
  font-size: 13px;
  color: var(--accent);
}

/* ═══ 16. plunder ledger — the captain's log ═════════════════════ */
.s110-log {
  position: relative;
  border-radius: 8px;
  background: #0A1620;
  box-shadow: inset 0 0 0 2px rgba(176, 141, 74, .4);
  padding: 0 11px 11px;
}

.s110-log-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -11px 12px;
  padding: 8px 13px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, var(--wood-2), var(--wood));
  border-bottom: 2px solid rgba(0, 0, 0, .4);
}

.s110-log-top b {
  font-family: var(--fh);
  font-size: 10px;
  letter-spacing: .2em;
  color: #F0E8D4;
}

.s110-log-top span {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: .08em;
  color: rgba(240, 232, 212, .8);
}

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

.arc {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 8px;
  padding: 8px 11px;
  background: linear-gradient(90deg, rgba(76, 232, 75, .05), transparent 50%), var(--panel);
  border: 1px solid rgba(76, 232, 75, .22);
}

/* the log entry stamp */
.s110-entry-no {
  flex: none;
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brass);
  border: 1px solid rgba(176, 141, 74, .5);
  border-radius: 3px;
  padding: 3px 5px;
}

.arc img {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
  border: 1.5px solid rgba(176, 141, 74, .4);
}

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

.arc-nm {
  display: block;
  font-family: var(--fh);
  font-size: 13px;
  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;
}

.arc-arrow {
  flex: none;
  font-size: 13px;
  color: var(--accent);
}

/* ═══ 17. filter view + empty ════════════════════════════════════ */
.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(--text);
  background: var(--panel);
  border: 1.5px solid rgba(176, 141, 74, .5);
  border-radius: 6px;
  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: #0D1B26;
  background: var(--accent);
  border-radius: 4px;
  padding: 3px 8px;
}

.empty-space {
  text-align: center;
  padding: 40px 0 24px;
}

/* the fog bank on empty waters */
.s110-fog {
  font-size: 30px;
  line-height: 1;
  color: var(--soft);
}

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

/* ═══ 18. more ═══════════════════════════════════════════════════ */
.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: var(--panel);
  border: 1.5px solid rgba(76, 232, 75, .4);
  border-radius: 6px;
  padding: 10px 22px;
}

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

/* ═══ 19. footer — the rope coil ═════════════════════════════════ */
.foot {
  position: relative;
  margin-top: 44px;
  padding: 28px 0 30px;
  text-align: center;
  background: linear-gradient(180deg, #132635, #0D1B26);
}

/* the coiled mooring rope on the deck rim */
.s110-rope {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  margin-bottom: 6px;
}

.s110-rope i {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(176, 141, 74, .45);
}

.s110-rope i:nth-child(1) { width: 34px; height: 34px; }
.s110-rope i:nth-child(2) { width: 26px; height: 26px; border-color: rgba(176, 141, 74, .32); }
.s110-rope i:nth-child(3) { width: 18px; height: 18px; border-color: rgba(176, 141, 74, .22); }
.s110-rope i:nth-child(4) {
  width: 8px;
  height: 8px;
  border: none;
  background: rgba(176, 141, 74, .55);
}

/* the rope twist texture */
.s110-rope i:nth-child(1)::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(92, 70, 48, .5);
}

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

.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;
}

/* ═══ 20. back-to-top — the ship's bell ══════════════════════════ */
.totop-btn {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 60;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
  color: #0D1B26;
  background: radial-gradient(circle at 40% 30%, #D8C58A, var(--brass));
  border-radius: 50% 50% 14% 14%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}

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

  .hv8 { padding-left: 0; }

  .hv8-art img { width: 108px; height: 108px; }

  .s110-barrel-art img { width: 76px; height: 76px; }

  .s110-poster { transform: none; }
}

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

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

  .s110-battery,
  .s110-chests { gap: 8px; }

  .s110-hold,
  .s110-rigging,
  .s110-rose { gap: 9px; }

  .s110-leg { gap: 9px; padding: 8px 9px; }

  .s110-rigging { padding: 4px 10px; }

  .s110-rigging::before { left: 2px; }
  .s110-rigging::after { right: 2px; }
}
