/* Orvandel Online - the inner pages (news, guide, media, download and the wiki under /game). 2026-11-27: they joined
   the new home (the floating-island layout): the same faces from /fonts (woff2), the same roles of colour as
   src/styles/tokens.css, the pill button of the home, and the bar and the foot of /comum.css. The ground of these
   pages stays the night (the tint of the home), so the lit stages, the danger and the rarity scales of the wiki keep
   reading as they were made. Sentence case everywhere. */

@font-face { font-family: "Alegreya SC"; src: url("/fonts/AlegreyaSC-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/AlegreyaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/AlegreyaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* the roles of the home (src/styles/tokens.css): keep the two in step */
  --cor-papel: #fbf3df;
  --cor-papel-2: #efe1be;
  --cor-tinta: #0f2b30;
  --cor-tinta-2: #2f5357;
  --cor-lanterna: #f2b541;
  --marca: "Alegreya SC", Georgia, "Times New Roman", serif;
  --grotesca: "Alegreya Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --margem: clamp(16px, 2.3vw, 40px);
  --suave: cubic-bezier(0.22, 1, 0.36, 1);

  --night: var(--cor-tinta);      /* the ground of the page */
  --lagoon: #16464c;              /* panels */
  --lantern: var(--cor-lanterna); /* what is played, the focus */
  --parchment: var(--cor-papel-2);/* what is read */
  --ember: #c4492c;
  --ink: #2b1e12;
  --mist: #a9bfbd;                /* quiet words on the night */
  --display: var(--marca);
  --text: var(--grotesca);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--parchment); font-family: var(--text); font-size: 1.125rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: var(--lantern); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.08; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0.6rem 0 0; max-width: var(--measure); }
.wrap { width: min(1180px, 100% - 2 * var(--margem)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--lantern); color: var(--night); padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

/* the pill button of the home (src/styles/base.css) */
.botao { display: inline-flex; align-items: center; gap: 18px; height: 52px; padding: 0 7px 0 26px; border-radius: 999px; background: var(--cor-papel); color: var(--cor-tinta); font-family: var(--grotesca); font-size: 1.12rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
.botao__seta { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--cor-tinta); color: var(--cor-papel); transition: transform 0.45s var(--suave); }
.botao__seta svg { width: 16px; height: 16px; }
.botao--jogar { background: var(--cor-lanterna); }

/* the plain button: to look, not to play */
.button { display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border-radius: 999px; font-family: var(--text); font-weight: 700; font-size: 1.08rem; text-decoration: none; }
.button.look { color: var(--parchment); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cor-papel-2) 45%, transparent); }

/* sections */
.block { padding: 5.5rem 0; }
.block .lead { color: var(--mist); }
.head { margin-bottom: 2.2rem; }

/* the pictures of the places (the gallery of the media page) */
.place { margin: 0; }
.place img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.place figcaption { font-family: var(--text); font-weight: 700; font-size: 1.12rem; margin-top: 0.7rem; }
.place figcaption small { display: block; font-weight: 400; font-size: 0.98rem; color: var(--mist); margin-top: 0.1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem 1.4rem; }

/* the trailer */
.film { max-width: 980px; border-radius: 18px; overflow: hidden; background: #000; }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* get the game */
.get { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.get ul { margin: 0.8rem 0 0; padding-left: 1.2rem; line-height: 1.9; color: var(--parchment); }
.get .note { color: var(--mist); }

/* the guide: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; max-width: 760px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid color-mix(in srgb, var(--cor-papel-2) 14%, transparent); }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2rem; color: var(--lantern); line-height: 1; }
.steps h3 { font-size: 1.3rem; }
.keys { width: 100%; max-width: 760px; border-collapse: collapse; margin-top: 1rem; }
.keys td { padding: 0.75rem 0; border-bottom: 1px solid rgba(239, 225, 190, 0.12); }
.keys td + td { text-align: right; }
kbd { font-family: var(--text); font-weight: 700; background: var(--lagoon); border: 1px solid rgba(239, 225, 190, 0.25); border-bottom-width: 3px; border-radius: 6px; padding: 0.1rem 0.5rem; color: var(--parchment); }

/* page heads */
.page-head { padding: 4.5rem 0 1rem; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
.page-head p { color: var(--mist); font-size: 1.2rem; }

@media (hover: hover) {
  a:hover { color: #ffd27a; }
  .botao:hover .botao__seta { transform: rotate(-45deg); }
  .button.look:hover { box-shadow: inset 0 0 0 1px var(--cor-papel-2); color: var(--cor-papel); }
}

@media (max-width: 860px) {
  .get { grid-template-columns: 1fr; }
  .block { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---- the codex: the wiki of the game (2026-11-27) ----
   The creatures stand on a small lit stage, as in the game's own night; numbers are set in the display face, the
   way a bestiary in a book would print them. Danger and rarity each have one quiet scale of colour. */
.crumbs { font-size: 0.98rem; color: var(--mist); margin: 0 0 0.8rem; }
.crumbs a { color: var(--mist); }
.crumbs a:hover { color: var(--lantern); }
.quiet { color: var(--mist); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the door: one tome open, the others still being written */
.codex { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 1.4rem; }
.codex .tome.live:not(:first-child) h2 { font-size: 1.9rem; }
.tome { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.6rem; border-radius: 14px; background: var(--lagoon); text-decoration: none; color: var(--parchment); box-shadow: inset 0 0 0 1px rgba(239, 225, 190, 0.1); }
.tome h2 { font-size: 1.8rem; }
.tome p { color: var(--mist); font-size: 1.02rem; }
.tome .go { margin-top: auto; padding-top: 0.8rem; font-weight: 700; color: var(--lantern); }
.tome.live { background: radial-gradient(120% 90% at 50% 0%, #1f5a60 0%, var(--lagoon) 60%); transition: transform 0.2s, box-shadow 0.2s; }
.tome.live:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--lantern), 0 14px 30px rgba(0, 0, 0, 0.35); }
.tome.live h2 { font-size: 2.4rem; }
.tome-pics { display: flex; margin: -0.4rem 0 0.4rem -0.6rem; }
.tome-pics img { width: 104px; height: 104px; margin-right: -1.4rem; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }
.tome.soon { opacity: 0.62; }
.tome.soon .go { color: var(--mist); font-weight: 400; }

/* the finder of the bestiary */
.finder { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 1.4rem; margin-bottom: 2rem; }
.finder label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.92rem; color: var(--mist); }
.finder .find { flex: 1 1 280px; }
.finder input, .finder select { font: inherit; font-size: 1.05rem; color: var(--parchment); background: var(--lagoon); border: 1px solid rgba(239, 225, 190, 0.22); border-radius: 10px; padding: 0.65rem 0.9rem; }
.finder input::placeholder { color: rgba(169, 191, 189, 0.7); }
.finder input:focus, .finder select:focus { outline: none; border-color: var(--lantern); box-shadow: 0 0 0 3px rgba(242, 181, 65, 0.25); }
.found { margin: 0 0 0.7rem auto; color: var(--mist); font-size: 0.98rem; }

/* the bestiary: each creature on its own lit stage */
.bestiary { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.1rem; }
.beast a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--parchment); background: var(--lagoon); border-radius: 12px; padding: 0.4rem 0.8rem 1rem; height: 100%; box-shadow: inset 0 0 0 1px rgba(239, 225, 190, 0.08); transition: transform 0.18s, box-shadow 0.18s; }
.beast a:hover, .beast a:focus-visible { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--lantern), 0 12px 24px rgba(0, 0, 0, 0.3); }
.stage { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.stage::before { content: ""; position: absolute; inset: 8% 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 200, 196, 0.22), rgba(120, 200, 196, 0)); }
.stage::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 8%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0)); }
.stage img { position: relative; z-index: 1; width: 92%; height: auto; transition: transform 0.25s; }
.beast a:hover .stage img { transform: scale(1.05); }
.beast-name { font-family: var(--display); font-size: 1.25rem; text-align: center; line-height: 1.1; }
.beast-stats { display: flex; gap: 0.9rem; margin-top: 0.35rem; font-size: 0.95rem; color: var(--mist); }
.beast-stats b { color: var(--parchment); }
.beast .tier { margin-top: 0.55rem; }
.none { color: var(--mist); text-align: center; padding: 2rem 0; }

/* danger: one scale from the mist to the ember */
.tier { display: inline-block; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid currentColor; }
.t-harmless { color: #a9bfbd; }
.t-easy { color: #8fd19a; }
.t-fair { color: var(--lantern); }
.t-hard { color: #f08a5d; }
.t-deadly { color: #ff6b6b; background: rgba(196, 73, 44, 0.18); }

/* a creature's page */
.creature { padding: 3.5rem 0 2rem; }
.creature-top { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 2.5rem 3.5rem; align-items: start; }
.portrait { margin: 0; position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 18px; background: radial-gradient(70% 60% at 50% 42%, #23656b 0%, var(--lagoon) 55%, #0c2428 100%); box-shadow: inset 0 0 0 1px rgba(239, 225, 190, 0.12), 0 20px 40px rgba(0, 0, 0, 0.35); overflow: hidden; }
.portrait::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 7%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); }
.portrait img { position: relative; z-index: 1; width: 90%; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35)); }
.facts h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin-top: 0.6rem; }
.facts .kind { color: var(--mist); font-size: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin: 1.6rem 0 0; }
.stats div { background: var(--lagoon); border-radius: 12px; padding: 0.9rem 1rem; box-shadow: inset 0 0 0 1px rgba(239, 225, 190, 0.08); }
.stats dt { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mist); }
.stats dd { margin: 0.2rem 0 0; font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--parchment); }
.stats div:first-child dd { color: #ff8a7a; }
.stats div:nth-child(2) dd { color: var(--lantern); }
.defence h3 { font-size: 1.05rem; font-family: var(--text); font-weight: 700; color: var(--mist); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1.5rem; }
.chips { list-style: none; padding: 0; margin: 0.55rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { padding: 0.3rem 0.75rem; border-radius: 8px; background: rgba(239, 225, 190, 0.08); border: 1px solid rgba(239, 225, 190, 0.16); font-size: 0.98rem; }
.chips.immune li { border-color: rgba(169, 191, 189, 0.5); }
.chips.good li b { color: #9fd5ff; }
.chips.bad li { border-color: rgba(240, 138, 93, 0.5); }
.chips.bad li b { color: #f6a27c; }

/* what it leaves behind */
.drops { margin-top: 3.5rem; }
.drops h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.loot { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: 1.02rem; }
.loot thead th { text-align: left; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mist); font-weight: 700; padding: 0 0.8rem 0.6rem; border-bottom: 1px solid rgba(239, 225, 190, 0.18); }
.loot td, .loot tbody th { padding: 0.45rem 0.8rem; border-bottom: 1px solid rgba(239, 225, 190, 0.08); text-align: left; vertical-align: middle; }
.loot tbody th { font-weight: 700; }
.loot tbody tr:hover { background: rgba(239, 225, 190, 0.04); }
.loot .pic { width: 56px; padding-right: 0; }
.loot .pic img, .no-icon { width: 40px; height: 40px; display: block; }
.no-icon { border-radius: 8px; border: 1px dashed rgba(239, 225, 190, 0.25); background: rgba(239, 225, 190, 0.04); }
.loot .amount { color: var(--mist); white-space: nowrap; }
.loot .chance { display: flex; align-items: center; gap: 0.7rem; min-width: 170px; white-space: nowrap; }
.bar { flex: 0 0 90px; height: 6px; border-radius: 3px; background: rgba(239, 225, 190, 0.1); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--lantern); border-radius: 3px; }
.rarity { font-size: 0.85rem; font-weight: 700; padding: 0.1rem 0.55rem; border-radius: 6px; white-space: nowrap; }
.r-common { color: #c9d6d4; background: rgba(169, 191, 189, 0.14); }
.r-uncommon { color: #8fd19a; background: rgba(143, 209, 154, 0.12); }
.r-semi-rare { color: #7fc4ff; background: rgba(127, 196, 255, 0.12); }
.r-rare { color: #d3a6ff; background: rgba(211, 166, 255, 0.14); }
.r-very-rare { color: #ffcf6e; background: rgba(242, 181, 65, 0.16); box-shadow: 0 0 12px rgba(242, 181, 65, 0.25); }

.turn { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(239, 225, 190, 0.12); }
.turn a { text-decoration: none; font-family: var(--display); font-size: 1.3rem; color: var(--parchment); }
.turn a span { display: block; font-family: var(--text); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mist); }
.turn a:last-child { text-align: right; }
.turn a:hover { color: var(--lantern); }

@media (max-width: 960px) {
  .codex { grid-template-columns: 1fr 1fr; }
  .tome.live { grid-column: 1 / -1; }
  .creature-top { grid-template-columns: 1fr; }
  .portrait { max-width: 440px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .bestiary { grid-template-columns: repeat(2, 1fr); }
  .loot thead { display: none; }
  .loot .amount { display: none; }
  .loot .chance { min-width: 0; }
  .bar { flex-basis: 50px; }
  .loot td:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .beast a, .tome.live, .stage img { transition: none; }
}

/* ---- the items and the traders (2026-11-27) ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: -0.6rem 0 1.6rem; }
.tab { font: inherit; font-size: 0.98rem; color: var(--parchment); background: var(--lagoon); border: 1px solid rgba(239, 225, 190, 0.16); border-radius: 999px; padding: 0.4rem 0.95rem; cursor: pointer; }
.tab span { color: var(--mist); font-size: 0.85rem; margin-left: 0.2rem; }
.tab:hover { border-color: rgba(242, 181, 65, 0.6); }
.tab[aria-pressed="true"] { background: var(--lantern); color: var(--night); border-color: var(--lantern); font-weight: 700; }
.tab[aria-pressed="true"] span { color: rgba(15, 43, 48, 0.7); }
.wares { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.7rem; }
.ware a { display: flex; align-items: center; gap: 0.9rem; padding: 0.55rem 0.9rem 0.55rem 0.55rem; border-radius: 12px; background: var(--lagoon); text-decoration: none; color: var(--parchment); box-shadow: inset 0 0 0 1px rgba(239, 225, 190, 0.07); transition: box-shadow 0.15s, transform 0.15s; height: 100%; }
.ware a:hover, .ware a:focus-visible { box-shadow: inset 0 0 0 2px var(--lantern); transform: translateY(-2px); }
.ware-pic { flex: 0 0 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(120, 200, 196, 0.2), rgba(120, 200, 196, 0)); }
.ware-pic img { width: 60px; height: 60px; }
.ware-text { display: flex; flex-direction: column; min-width: 0; }
.ware-name { font-weight: 700; font-size: 1.04rem; line-height: 1.2; }
.ware-kind { font-size: 0.85rem; color: var(--mist); }
.ware-stat { font-size: 0.9rem; color: var(--lantern); margin-top: 0.1rem; }
.no-icon { display: block; border-radius: 8px; border: 1px dashed rgba(239, 225, 190, 0.25); background: rgba(239, 225, 190, 0.04); }

.item-portrait img { width: 62%; height: auto; image-rendering: auto; }
.worth { margin-top: 0.9rem; font-size: 1.15rem; color: var(--parchment); }
.worth b { color: var(--lantern); font-family: var(--display); font-size: 1.4rem; }
.chips.gives li.good b { color: #9fd5ff; }
.chips.gives li.bad b { color: #f6a27c; }

.money, .dropped { margin-top: 3.2rem; }
.money h2, .dropped h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.money-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2.4rem; margin-top: 1.2rem; align-items: start; }
.trade { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.trade caption { text-align: left; font-family: var(--display); font-size: 1.35rem; padding-bottom: 0.5rem; }
.trade thead th { text-align: left; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mist); padding: 0 0.6rem 0.5rem; border-bottom: 1px solid rgba(239, 225, 190, 0.18); }
.trade td, .trade tbody th { padding: 0.5rem 0.6rem; border-bottom: 1px solid rgba(239, 225, 190, 0.08); text-align: left; font-weight: 400; }
.trade tbody th a { font-weight: 700; color: var(--parchment); text-decoration: none; }
.trade tbody th a:hover { color: var(--lantern); }
.trade small { color: var(--mist); }
.trade .price { text-align: right; white-space: nowrap; font-weight: 700; }
.trade tr.best { background: rgba(242, 181, 65, 0.08); }
.trade tr.best .price { color: var(--lantern); }

.hunters { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.7rem; }
.hunters a { display: flex; align-items: center; gap: 0.8rem; padding: 0.35rem 0.9rem 0.35rem 0.35rem; border-radius: 12px; background: var(--lagoon); text-decoration: none; color: var(--parchment); box-shadow: inset 0 0 0 1px rgba(239, 225, 190, 0.07); }
.hunters a:hover { box-shadow: inset 0 0 0 2px var(--lantern); }
.hunters img { width: 64px; height: 64px; }
.hunters span:first-of-type { display: flex; flex-direction: column; flex: 1; }
.hunters small { color: var(--mist); }

.town { margin-bottom: 2.4rem; }
.town h2 { font-size: 1.8rem; margin-bottom: 0.9rem; }
.traders { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; }
.traders a { display: flex; flex-direction: column; padding: 0.7rem 1rem; border-radius: 10px; background: var(--lagoon); text-decoration: none; color: var(--parchment); }
.traders a:hover { box-shadow: inset 0 0 0 2px var(--lantern); }
.traders small { color: var(--mist); }
.trader-name { font-size: clamp(2.6rem, 5vw, 4rem); }
.trader-cols { margin-top: 2rem; }
.trader-cols h2 { font-size: 1.9rem; margin-bottom: 0.8rem; }
.goods { list-style: none; padding: 0; margin: 0; }
.goods a { display: flex; align-items: center; gap: 0.8rem; padding: 0.45rem 0.4rem; border-bottom: 1px solid rgba(239, 225, 190, 0.08); text-decoration: none; color: var(--parchment); }
.goods a:hover { background: rgba(239, 225, 190, 0.04); }
.goods img, .goods .no-icon { width: 40px; height: 40px; flex: 0 0 40px; }
.goods .goods-name { flex: 1; }
.goods small { color: var(--mist); }
.goods .price { font-weight: 700; color: var(--lantern); white-space: nowrap; }
.loot tbody th a { color: var(--parchment); text-decoration: none; }
.loot tbody th a:hover { color: var(--lantern); text-decoration: underline; }

@media (max-width: 860px) { .money-cols { grid-template-columns: 1fr; } }

/* the kinds of items: three groups of tiles, and a table for each kind */
.cat-group { margin-top: 1.6rem; }
.cat-group h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.cats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.8rem; }
.cats a { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 0.8rem; align-items: center; padding: 0.7rem 0.9rem 0.7rem 0.7rem; border-radius: 12px; background: var(--lagoon); text-decoration: none; color: var(--parchment); box-shadow: inset 0 0 0 1px rgba(239, 225, 190, 0.07); transition: box-shadow 0.15s, transform 0.15s; }
.cats a:hover, .cats a:focus-visible { box-shadow: inset 0 0 0 2px var(--lantern); transform: translateY(-2px); }
.cat-pic { grid-row: 1 / 3; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(closest-side, rgba(120, 200, 196, 0.22), rgba(120, 200, 196, 0)); }
.cat-pic img { width: 52px; height: 52px; }
.cat-name { font-family: var(--display); font-size: 1.25rem; line-height: 1.1; }
.cat-n { font-size: 0.9rem; color: var(--mist); }
.kind-link { text-decoration: none; }
.kind-link:hover { background: rgba(242, 181, 65, 0.15); }

.table-scroll { overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(239, 225, 190, 0.08); }
table.kind { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 760px; }
.kind thead th { position: sticky; top: 0; background: var(--lagoon); text-align: left; padding: 0; border-bottom: 1px solid rgba(239, 225, 190, 0.2); }
.kind thead button { font: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mist); background: none; border: 0; padding: 0.75rem 0.7rem; width: 100%; text-align: inherit; cursor: pointer; white-space: nowrap; }
.kind thead button:hover { color: var(--parchment); }
.kind thead th[aria-sort] button { color: var(--lantern); }
.kind thead th[aria-sort="ascending"] button::after { content: " \25B2"; font-size: 0.7em; }
.kind thead th[aria-sort="descending"] button::after { content: " \25BC"; font-size: 0.7em; }
.kind .num { text-align: right; }
.kind thead th.num button { text-align: right; }
.kind td, .kind tbody th { padding: 0.35rem 0.7rem; border-bottom: 1px solid rgba(239, 225, 190, 0.07); white-space: nowrap; font-weight: 400; }
.kind tbody th a { display: flex; align-items: center; gap: 0.7rem; color: var(--parchment); text-decoration: none; font-weight: 700; }
.kind tbody th a:hover span { color: var(--lantern); }
.kind tbody th img, .kind tbody th .no-icon { width: 36px; height: 36px; flex: 0 0 36px; }
.kind tbody tr:hover { background: rgba(239, 225, 190, 0.04); }
.kind td.sell { color: var(--lantern); font-weight: 700; }
.table-note { font-size: 0.95rem; margin-top: 0.9rem; }
[hidden] { display: none !important; }
