/* Treasure Spinner landing — "unrolling sea chart" theme.
   All classes use the prefix trs_ and the suffix __b4d9. */

@font-face {
  font-family: "Alfa Slab One";
  src: url("/assets/fonts/AlfaSlabOne-Regular.woff2") format("woff2"),
       url("/assets/fonts/AlfaSlabOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sea: #0E2A47;
  --navy: #16385E;
  --emerald: #1F9E7A;
  --pumpkin: #F07F1E;
  --gold: #D4A33C;
  --gold-hi: #FFD266;
  --parchment: #F2E3C0;
  --parch-light: #F8EED6;
  --parch-dark: #E3CC9A;
  --parch-edge: #B98F4E;
  --ink: #3B2414;
  --ink-soft: #5E4129;
  --ruby: #C8413B;
  --ruby-dark: #9A2D28;
  --ghost: #7FE0D0;
  --wood: #7A4E2A;

  --display: "Alfa Slab One", "Rockwell Extra Bold", "Rockwell", Georgia, serif;
  --body: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;

  --gutter: 52px;   /* left space on the chart reserved for the voyage route */
  --routeX: 24px;   /* centre of the dotted route, measured from the chart's left edge */
  --pin: 48px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--parchment);
  background-color: var(--sea);
  background-image:
    radial-gradient(120% 60% at 50% 0%, rgba(31, 158, 122, 0.18), transparent 60%),
    repeating-radial-gradient(circle at 0 100%, transparent 0 22px, rgba(127, 224, 208, 0.045) 22px 24px);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-underline-offset: 3px; }

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background: rgba(59, 36, 20, 0.08);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--gold-hi);
  border-radius: 6px;
}

.trs_skip__b4d9 {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 50;
  padding: 12px 18px;
  background: var(--gold-hi);
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
}
.trs_skip__b4d9:focus { top: 12px; }

/* ---------- header ---------- */
.trs_header__b4d9 {
  background: var(--navy);
  border-bottom: 6px solid transparent;
  border-image: repeating-linear-gradient(45deg, var(--gold) 0 6px, var(--ink) 6px 9px) 6;
}

.trs_headerInner__b4d9 {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.trs_brand__b4d9 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 48px;
}
.trs_brandMark__b4d9 { width: 44px; height: 44px; }
.trs_brandName__b4d9 {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--gold-hi);
  text-shadow: 0 2px 0 var(--ink);
}

.trs_ageBadge__b4d9 {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--parchment);
  background: var(--ruby);
  border: 2px solid var(--gold-hi);
  border-radius: 999px;
  padding: 2px 9px;
}

.trs_menuBtn__b4d9 {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  font: 700 1rem var(--body);
  color: var(--parchment);
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: 10px;
  cursor: pointer;
}
.trs_menuIcon__b4d9,
.trs_menuIcon__b4d9::before,
.trs_menuIcon__b4d9::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.trs_menuIcon__b4d9 { position: relative; }
.trs_menuIcon__b4d9::before,
.trs_menuIcon__b4d9::after { content: ""; position: absolute; left: 0; }
.trs_menuIcon__b4d9::before { top: -6px; }
.trs_menuIcon__b4d9::after { top: 6px; }

.trs_nav__b4d9 {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}
.trs_nav__b4d9 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--parchment);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
}
.trs_nav__b4d9 a:hover { color: var(--gold-hi); background: rgba(255, 210, 102, 0.08); }
.trs_nav__b4d9 a[aria-current="page"] { color: var(--gold-hi); box-shadow: inset 0 -3px 0 var(--gold-hi); }

@media (max-width: 859px) {
  .trs_js__b4d9 .trs_menuBtn__b4d9 { display: inline-flex; }
  .trs_js__b4d9 .trs_nav__b4d9 { display: none; width: 100%; flex-direction: column; padding: 4px 0 8px; }
  .trs_js__b4d9 .trs_nav__b4d9.trs_navOpen__b4d9 { display: flex; }
  .trs_nav__b4d9 a { border-top: 1px solid rgba(242, 227, 192, 0.12); border-radius: 0; }
}

/* ---------- buttons ---------- */
.trs_btn__b4d9 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 22px;
  font: 400 1.05rem/1.2 var(--display);
  text-decoration: none;
  text-align: center;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  max-width: 100%;
}
.trs_btn__b4d9:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.trs_btnIcon__b4d9 { width: 20px; height: 20px; flex: none; }

.trs_btnPlay__b4d9 { background: var(--pumpkin); color: var(--ink); }
.trs_btnPlay__b4d9:hover { background: #F69440; }

.trs_btnDisabled__b4d9,
.trs_btnDisabled__b4d9:hover {
  background: #D5D0C3;
  color: var(--ink);
  border-style: dashed;
  box-shadow: none;
  cursor: not-allowed;
}
.trs_btnDisabled__b4d9:active { transform: none; }

.trs_btnGhost__b4d9 {
  background: transparent;
  color: var(--parchment);
  border-color: var(--gold);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.trs_btnGhost__b4d9:hover { background: rgba(255, 210, 102, 0.1); }

.trs_btnInk__b4d9 { background: var(--navy); color: var(--parchment); }
.trs_btnInk__b4d9:hover { background: var(--sea); }

/* ---------- hero (the open sea) ---------- */
.trs_hero__b4d9 {
  position: relative;
  padding: 36px 16px 0;
  overflow: hidden;
  isolation: isolate;
}
.trs_hero__b4d9::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 42, 71, 0.55) 0%, rgba(14, 42, 71, 0.82) 60%, var(--sea) 100%),
    url("/assets/images/bg_map.jpg") center 30% / cover no-repeat;
}

.trs_heroInner__b4d9 {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  align-items: center;
}

.trs_eyebrow__b4d9 {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--gold-hi);
  border-radius: 6px;
}

.trs_heroTitle__b4d9 {
  font-size: clamp(2.6rem, 11vw, 5rem);
  color: var(--gold-hi);
  text-shadow: 0 3px 0 var(--ink), 0 6px 0 var(--wood), 0 12px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.3em;
}

.trs_heroLead__b4d9 { font-size: 1.15rem; max-width: 36em; }

.trs_heroActions__b4d9 {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 10px;
}

.trs_heroNote__b4d9 { font-size: 0.92rem; color: #D8E4EE; font-style: italic; }

.trs_heroArt__b4d9 {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 340px;
  padding-bottom: 40px;
}

.trs_heroShip__b4d9 {
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 42%;
  max-width: 150px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
}

@media (prefers-reduced-motion: no-preference) {
  .trs_heroShip__b4d9 { animation: trs_bob__b4d9 5s ease-in-out infinite; }
}
@keyframes trs_bob__b4d9 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@media (min-width: 900px) {
  .trs_hero__b4d9 { padding-top: 56px; }
  .trs_heroInner__b4d9 { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .trs_heroArt__b4d9 { max-width: 360px; }
  .trs_frameHero__b4d9 { transform: rotate(2.5deg); }
}

/* wax-seal notice */
.trs_seal__b4d9 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(14, 42, 71, 0.88);
  border: 2px solid var(--gold);
  border-radius: 12px;
  max-width: 40em;
}
.trs_seal__b4d9 p { margin: 0; font-size: 0.98rem; }
.trs_sealBadge__b4d9 {
  flex: none;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--parchment);
  background: radial-gradient(circle at 35% 30%, #E25C55, var(--ruby) 55%, var(--ruby-dark));
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--ruby-dark), inset 0 0 0 6px rgba(242, 227, 192, 0.55), 0 3px 6px rgba(0, 0, 0, 0.35);
}
.trs_sealLight__b4d9 {
  background: var(--parch-light);
  color: var(--ink);
  border-color: var(--ruby);
  margin: 26px 0 0;
}

/* rolled top edge of the chart */
.trs_scrollRoll__b4d9 {
  position: relative;
  max-width: 1140px;
  height: 34px;
  margin: 28px auto 0;
  border-radius: 17px;
  background: linear-gradient(180deg, #F8EBCB 0%, var(--parchment) 30%, var(--parch-dark) 62%, var(--parch-edge) 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35), inset 0 -3px 0 rgba(59, 36, 20, 0.25);
}

/* ---------- the chart (parchment sheet) ---------- */
.trs_chart__b4d9 {
  position: relative;
  max-width: 1100px;
  margin: -14px 8px 0;
  padding: 18px 14px 40px var(--gutter);
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(130% 80% at 50% 50%, transparent 55%, rgba(185, 143, 78, 0.45) 100%),
    radial-gradient(circle at 15% 20%, rgba(185, 143, 78, 0.12), transparent 30%),
    radial-gradient(circle at 85% 65%, rgba(185, 143, 78, 0.12), transparent 30%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.trs_chart__b4d9::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: -17px;
  height: 34px;
  border-radius: 17px;
  background: linear-gradient(0deg, #F8EBCB 0%, var(--parchment) 30%, var(--parch-dark) 62%, var(--parch-edge) 100%);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.35);
}

@media (min-width: 700px) {
  :root { --gutter: 96px; --routeX: 46px; --pin: 64px; }
  .trs_chart__b4d9 { padding: 28px 36px 56px var(--gutter); margin-left: 16px; margin-right: 16px; }
}
@media (min-width: 1132px) {
  .trs_chart__b4d9 { margin-left: auto; margin-right: auto; }
}

/* dotted voyage route */
.trs_route__b4d9 {
  position: absolute;
  top: 60px;
  bottom: 110px;
  left: calc(var(--routeX) - 6px);
  width: 12px;
  background: radial-gradient(circle, var(--ruby) 0 3px, transparent 3.5px) center top / 12px 18px repeat-y;
}

.trs_port__b4d9 {
  position: relative;
  padding: 44px 0 28px;
}
.trs_port__b4d9 + .trs_port__b4d9 { border-top: 2px dashed rgba(59, 36, 20, 0.18); }

.trs_portPin__b4d9 {
  position: absolute;
  top: 40px;
  left: calc(var(--routeX) - var(--gutter) - var(--pin) / 2);
  display: grid;
  place-items: center;
  width: var(--pin);
  height: var(--pin);
  padding: 6px;
  background: var(--parch-light);
  border: 3px solid var(--ruby);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--parchment), 0 4px 8px rgba(59, 36, 20, 0.3);
}
.trs_portPin__b4d9 img { width: 100%; height: 100%; object-fit: contain; }
.trs_portX__b4d9 {
  font-family: var(--display);
  font-size: calc(var(--pin) * 0.55);
  line-height: 1;
  color: var(--ruby);
}

/* ribbon headings */
.trs_ribbon__b4d9 {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 5vw, 2.1rem);
  filter: drop-shadow(0 4px 0 rgba(59, 36, 20, 0.35));
}
.trs_ribbon__b4d9 > span {
  display: inline-block;
  max-width: 100%;
  padding: 0.42em 1.25em;
  color: var(--parch-light);
  background: linear-gradient(180deg, #D4524B, var(--ruby) 45%, var(--ruby-dark));
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.7em) 50%, 100% 100%, 0 100%, 0.7em 50%);
}

.trs_lead__b4d9 { font-size: 1.12rem; max-width: 46em; }
.trs_small__b4d9 { font-size: 0.9rem; color: var(--ink-soft); }

/* game loop */
.trs_loop__b4d9 {
  list-style: none;
  counter-reset: trsstep;
  margin: 26px 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.trs_loop__b4d9 li {
  counter-increment: trsstep;
  position: relative;
  padding: 18px 16px 14px;
  background: var(--parch-light);
  border: 2px dashed rgba(59, 36, 20, 0.45);
  border-radius: 14px;
}
.trs_loop__b4d9 li::before {
  content: counter(trsstep);
  position: absolute;
  top: -14px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--display);
  color: var(--parch-light);
  background: var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold);
}
.trs_loop__b4d9 img { display: block; height: 62px; width: auto; margin-bottom: 8px; }
.trs_loop__b4d9 h3 { font-size: 1.2rem; color: var(--navy); }
.trs_loop__b4d9 p { margin: 0; }

.trs_shipLine__b4d9 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  margin-top: 8px;
}
.trs_shipLine__b4d9 figure { margin: 0; text-align: center; }
.trs_shipLine__b4d9 img { width: clamp(64px, 20vw, 150px); }
.trs_shipLine__b4d9 figcaption { font-family: var(--display); color: var(--navy); }
.trs_shipArrow__b4d9 {
  width: clamp(16px, 4vw, 40px);
  height: 12px;
  margin-bottom: 40px;
  background: radial-gradient(circle, var(--ruby) 0 2.5px, transparent 3px) left center / 8px 12px repeat-x;
}

/* machines */
.trs_machine__b4d9 {
  display: grid;
  gap: 22px;
  margin: 26px 0 0;
  padding: 20px 16px;
  background: var(--parch-light);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: inset 0 0 0 5px var(--parch-light), inset 0 0 0 7px var(--gold), 0 8px 18px rgba(59, 36, 20, 0.18);
}
.trs_machineHead__b4d9 { display: flex; align-items: center; gap: 12px; }
.trs_machineIsland__b4d9 { width: 64px; flex: none; }
.trs_machineHead__b4d9 h3 { margin: 0; font-size: clamp(1.4rem, 5vw, 1.9rem); color: var(--navy); }
.trs_portNo__b4d9 {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ruby-dark);
}
.trs_machineTopper__b4d9 {
  display: block;
  width: auto;
  max-height: 130px;
  margin: 14px auto;
  filter: drop-shadow(0 6px 8px rgba(59, 36, 20, 0.3));
}

.trs_manifest__b4d9 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}
.trs_manifest__b4d9 > div {
  padding: 8px 10px;
  background: var(--parchment);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
}
.trs_manifest__b4d9 dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.trs_manifest__b4d9 dd { margin: 0; font-family: var(--display); color: var(--ink); }
.trs_manifestWide__b4d9 { grid-column: 1 / -1; }
.trs_manifestWide__b4d9 dd { font-family: var(--body); font-weight: 700; }

.trs_symbolNote__b4d9 { display: flex; align-items: center; gap: 10px; margin: 0; font-style: italic; color: var(--ink-soft); }
.trs_symbolNote__b4d9 img { height: 56px; width: auto; }

.trs_machineShot__b4d9 { align-self: center; }

@media (min-width: 860px) {
  .trs_machine__b4d9 { grid-template-columns: 1.25fr 0.75fr; padding: 28px; gap: 32px; }
  .trs_machineFlip__b4d9 .trs_machineShot__b4d9 { order: -1; }
  .trs_machineFlip__b4d9 { grid-template-columns: 0.75fr 1.25fr; }
}

/* screenshot frames (wood + gold) */
.trs_frame__b4d9 { margin: 0 auto; max-width: 290px; }
.trs_frameWood__b4d9 {
  padding: 10px;
  border-radius: 20px;
  background:
    repeating-linear-gradient(100deg, rgba(0, 0, 0, 0.08) 0 3px, transparent 3px 9px),
    linear-gradient(160deg, #9A6534, var(--wood) 45%, #4E2F17);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 210, 102, 0.25);
}
.trs_frameGold__b4d9 {
  padding: 4px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 35%, #8C6420 60%, var(--gold-hi));
}
.trs_frameGold__b4d9 img { display: block; width: 100%; height: auto; border-radius: 9px; background: var(--sea); }
.trs_frame__b4d9 figcaption {
  margin-top: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.trs_hero__b4d9 .trs_frame__b4d9 figcaption { color: var(--parchment); }
.trs_frameHero__b4d9 { max-width: 100%; }
.trs_frameHero__b4d9 figcaption { display: none; }

.trs_frameEmpty__b4d9 {
  display: grid;
  place-content: center;
  gap: 6px;
  aspect-ratio: 9 / 16;
  padding: 12px;
  text-align: center;
  color: var(--parchment);
  background: var(--navy);
  border: 2px dashed rgba(242, 227, 192, 0.5);
  border-radius: 9px;
}
.trs_frameEmpty__b4d9 code { background: transparent; color: var(--gold-hi); }

/* shipyard */
.trs_hull__b4d9 {
  margin: 10px 0 26px;
  padding: 18px 16px;
  background: var(--parch-light);
  border: 2px solid rgba(59, 36, 20, 0.35);
  border-radius: 14px;
}
.trs_hull__b4d9 h3 { color: var(--navy); font-size: 1.25rem; }
.trs_hullSteps__b4d9 {
  list-style: none;
  margin: 14px 0 6px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}
.trs_hullSteps__b4d9 li { display: grid; justify-items: center; text-align: center; gap: 2px; }
.trs_hullSteps__b4d9 img { width: 84px; }
.trs_hullSteps__b4d9 strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--ruby-dark); }
.trs_hullSteps__b4d9 span { font-size: 0.9rem; color: var(--ink-soft); }
@media (min-width: 640px) {
  .trs_hullSteps__b4d9 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trs_hullSteps__b4d9 img { width: 110px; }
}

.trs_features__b4d9 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.trs_features__b4d9 li {
  padding: 16px;
  background: rgba(248, 238, 214, 0.75);
  border: 2px solid rgba(59, 36, 20, 0.25);
  border-radius: 14px;
}
.trs_features__b4d9 img { display: block; height: 58px; width: auto; margin-bottom: 8px; }
.trs_features__b4d9 h3 { font-size: 1.12rem; color: var(--navy); }
.trs_features__b4d9 p { margin: 0; font-size: 1rem; }

/* ship's log (ruled logbook page) */
.trs_logbook__b4d9 {
  position: relative;
  padding: 16px 16px 12px 44px;
  background-color: #FBF3DD;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(22, 56, 94, 0.2) 31px 32px);
  background-position: 0 14px;
  border: 2px solid rgba(59, 36, 20, 0.35);
  border-radius: 6px 14px 14px 6px;
  box-shadow: inset 10px 0 14px -10px rgba(59, 36, 20, 0.45), 0 8px 16px rgba(59, 36, 20, 0.15);
  line-height: 32px;
}
.trs_logbook__b4d9::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  border-left: 2px solid rgba(200, 65, 59, 0.55);
}
.trs_articles__b4d9 {
  margin: 0 0 16px;
  padding-left: 2.6em;
  list-style: upper-roman;
}
.trs_articles__b4d9 li { padding-left: 4px; }
.trs_articles__b4d9 li::marker { font-family: var(--display); color: var(--ruby-dark); }
.trs_articles__b4d9 strong { color: var(--navy); }

.trs_ledgerWrap__b4d9 { overflow-x: auto; margin: 0 0 6px; }
.trs_ledger__b4d9 {
  width: 100%;
  border-collapse: collapse;
  line-height: 1.35;
  font-size: 0.95rem;
  background: rgba(248, 238, 214, 0.9);
}
.trs_ledger__b4d9 caption {
  text-align: left;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--navy);
  padding: 4px 0 8px;
}
.trs_ledger__b4d9 th,
.trs_ledger__b4d9 td { padding: 9px 8px; text-align: left; border-bottom: 1px solid rgba(59, 36, 20, 0.25); vertical-align: top; }
.trs_ledger__b4d9 thead th { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.trs_ledger__b4d9 tbody th { font-family: var(--display); font-weight: 400; color: var(--ink); }
.trs_ledger__b4d9 td:nth-child(4) { font-family: var(--display); color: var(--ruby-dark); white-space: nowrap; }
@media (max-width: 520px) {
  .trs_ledger__b4d9 th:nth-child(1), .trs_ledger__b4d9 td:nth-child(1),
  .trs_ledger__b4d9 th:nth-child(3), .trs_ledger__b4d9 td:nth-child(3) { display: none; }
  .trs_ledger__b4d9 th, .trs_ledger__b4d9 td { padding: 8px 5px; }
  .trs_logbook__b4d9 { padding: 14px 12px 10px 30px; }
  .trs_logbook__b4d9::before { left: 20px; }
  .trs_articles__b4d9 { padding-left: 2.1em; }
}

/* gallery */
.trs_gallery__b4d9 {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(66%, 230px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 18px;
  scrollbar-color: var(--wood) transparent;
}
.trs_gallery__b4d9 .trs_frame__b4d9 { scroll-snap-align: start; max-width: none; width: 100%; }

.trs_portLast__b4d9 { padding-bottom: 8px; }

/* ---------- inner pages (privacy / support / changelog / 404) ---------- */
.trs_docMain__b4d9 { padding: 26px 8px 44px; }
.trs_doc__b4d9 {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 18px 34px;
  color: var(--ink);
  background-color: var(--parchment);
  background-image: radial-gradient(130% 80% at 50% 50%, transparent 60%, rgba(185, 143, 78, 0.4) 100%);
  border-radius: 6px;
  box-shadow: 0 0 0 6px var(--parch-dark), 0 0 0 9px var(--wood), 0 18px 40px rgba(0, 0, 0, 0.4);
}
@media (min-width: 700px) {
  .trs_docMain__b4d9 { padding: 44px 16px 64px; }
  .trs_doc__b4d9 { padding: 40px 48px 48px; }
}
.trs_docHead__b4d9 { margin-bottom: 22px; }
.trs_doc__b4d9 h2 { font-size: 1.4rem; color: var(--navy); margin-top: 1.4em; }
.trs_doc__b4d9 h3 { font-size: 1.08rem; color: var(--ruby-dark); margin: 1.1em 0 0.35em; }
.trs_doc__b4d9 a { color: var(--navy); font-weight: 700; }
.trs_doc__b4d9 a.trs_btn__b4d9 { color: var(--ink); }
.trs_doc__b4d9 .trs_ribbon__b4d9 { margin-bottom: 10px; }

.trs_summary__b4d9 {
  padding: 16px 18px;
  background: var(--parch-light);
  border: 2px solid var(--emerald);
  border-radius: 12px;
}
.trs_summary__b4d9 h2 { margin-top: 0; }
.trs_summary__b4d9 ul { margin: 0; padding-left: 1.2em; }

/* support */
.trs_supportGrid__b4d9 { display: grid; gap: 26px; }
@media (min-width: 900px) { .trs_supportGrid__b4d9 { grid-template-columns: 1fr 1fr; } }
.trs_formCard__b4d9 h2,
.trs_faq__b4d9 h2 { margin-top: 0; }
.trs_formCard__b4d9 {
  padding: 18px 16px;
  background: var(--parch-light);
  border: 3px solid var(--ink);
  border-radius: 14px;
}
.trs_form__b4d9 { display: grid; gap: 14px; }
.trs_field__b4d9 label { display: block; font-weight: 700; margin-bottom: 4px; }
.trs_optional__b4d9 { font-weight: 400; font-size: 0.9rem; color: var(--ink-soft); }
.trs_field__b4d9 input,
.trs_field__b4d9 textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #FFFBF0;
  border: 2px solid var(--ink-soft);
  border-radius: 8px;
}
.trs_field__b4d9 textarea { resize: vertical; }
.trs_form__b4d9 button { justify-self: start; }
.trs_hp__b4d9 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.trs_contactLine__b4d9 { margin: 16px 0 0; font-size: 0.95rem; }

.trs_alert__b4d9 { padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.trs_alertOk__b4d9 { background: #D7F0E6; border: 2px solid var(--emerald); color: #0C4A39; }
.trs_alertBad__b4d9 { background: #F8DCDA; border: 2px solid var(--ruby); color: #7A1F1B; }

.trs_faq__b4d9 details {
  margin-bottom: 10px;
  background: var(--parch-light);
  border: 2px solid rgba(59, 36, 20, 0.3);
  border-radius: 10px;
}
.trs_faq__b4d9 summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.trs_faq__b4d9 summary::-webkit-details-marker { display: none; }
.trs_faq__b4d9 summary::before {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-family: var(--display);
  color: var(--parch-light);
  background: var(--ruby);
  border-radius: 50%;
}
.trs_faq__b4d9 details[open] summary::before { content: "−"; }
.trs_faq__b4d9 details p { margin: 0; padding: 0 14px 14px 50px; }

/* changelog */
.trs_release__b4d9 {
  padding: 18px 16px;
  background: var(--parch-light);
  border-left: 6px solid var(--gold);
  border-radius: 10px;
  margin-bottom: 18px;
}
.trs_releaseHead__b4d9 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.trs_releaseHead__b4d9 h2 { margin: 0 !important; }
.trs_tag__b4d9 {
  padding: 2px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--parch-light);
  background: #12694F;
  border-radius: 999px;
}
.trs_releaseList__b4d9 { margin: 0; padding-left: 1.2em; }
.trs_releaseList__b4d9 li { margin-bottom: 6px; }

/* 404 */
.trs_lost__b4d9 { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.trs_lost__b4d9 > img { width: 90px; margin: 0 auto; }
.trs_lost__b4d9 > div { flex: 1 1 260px; }

/* ---------- footer ---------- */
.trs_footer__b4d9 {
  margin-top: 40px;
  background: #0A1F35;
  border-top: 6px solid transparent;
  border-image: repeating-linear-gradient(45deg, var(--gold) 0 6px, var(--ink) 6px 9px) 6;
}
.trs_page--home__b4d9 .trs_footer__b4d9 { margin-top: 60px; }
.trs_footerInner__b4d9 {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 16px 36px;
  display: grid;
  gap: 14px;
  font-size: 0.98rem;
}
.trs_footerBrand__b4d9 { display: flex; align-items: center; gap: 12px; }
.trs_footerBrand__b4d9 img { width: 56px; height: 56px; }
.trs_footerBrand__b4d9 strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--gold-hi); }
.trs_footerBrand__b4d9 span { font-size: 0.92rem; color: #C9D6E2; }
.trs_footerDisclaimer__b4d9 {
  margin: 0;
  padding: 12px 14px;
  border: 2px solid var(--ruby);
  border-radius: 10px;
  background: rgba(200, 65, 59, 0.12);
}
.trs_footerNav__b4d9 { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.trs_footerNav__b4d9 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--gold-hi);
  font-weight: 700;
}
.trs_footerContact__b4d9 a,
.trs_footerSmall__b4d9 a { color: var(--gold-hi); }
.trs_footerContact__b4d9 { margin: 0; }
.trs_footerSmall__b4d9 { margin: 0; font-size: 0.88rem; color: #C9D6E2; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Small-screen containment: grid/flex children may shrink below their intrinsic width (360 px phones) */
.trs_machine__b4d9 > *,
.trs_supportGrid__b4d9 > *,
.trs_heroInner__b4d9 > *,
.trs_form__b4d9 > *,
.trs_field__b4d9 { min-width: 0; }
.trs_frame__b4d9 { max-width: min(290px, 100%); }
.trs_field__b4d9 input,
.trs_field__b4d9 textarea { max-width: 100%; }
img { max-width: 100%; height: auto; }
