/* Orvandel Online - the site (2026-11-27, after the frontend-design skill).
   One family, the logo's own (Alegreya SC Black for titles, Alegreya Sans for words), sentence case everywhere.
   The palette is the realm at night: the teal sky of the night flights, lantern gold for what is played, parchment
   for what is read, ember for the tags of the notice board. The bold thing is the hero (the real night flight);
   everything else stays quiet. */

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

:root {
  --night: #0f2b30;       /* the sky of the realm at night: the ground of the page */
  --lagoon: #16464c;      /* panels, the board */
  --lantern: #f2b541;     /* what is played: the buttons, the focus */
  --parchment: #efe1be;   /* what is read */
  --ember: #c4492c;       /* the tags of the notices */
  --ink: #2b1e12;         /* words written on parchment */
  --mist: #a9bfbd;        /* quiet words on the night */
  --display: "Alegreya SC", Georgia, serif;
  --text: "Alegreya Sans", "Segoe UI", sans-serif;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--parchment); font-family: var(--text); font-size: 1.125rem; line-height: 1.55; }
img, video { display: block; max-width: 100%; }
a { color: var(--lantern); text-underline-offset: 3px; }
a:hover { color: #ffd27a; }
:focus-visible { outline: 3px 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% - 3rem); 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; }

/* buttons: gold is to play; the plain one is to look */
.button { display: inline-block; font-family: var(--text); font-weight: 700; font-size: 1.05rem; padding: 0.8rem 1.4rem; border-radius: 10px; text-decoration: none; border: 2px solid var(--lantern); }
.button.play { background: var(--lantern); color: var(--night); box-shadow: 0 4px 0 #a8741c; }
.button.play:hover { background: #ffc95e; color: var(--night); }
.button.look { color: var(--parchment); border-color: rgba(239, 225, 190, 0.55); }
.button.look:hover { border-color: var(--parchment); color: #fff; }

/* the bar on top */
.top { position: sticky; top: 0; z-index: 30; background: rgba(15, 43, 48, 0.94); border-bottom: 1px solid rgba(239, 225, 190, 0.12); }
.top .wrap { display: flex; align-items: center; gap: 2rem; height: 68px; }
.top .brand img { height: 46px; width: auto; }
.top nav { display: flex; gap: 1.6rem; margin-left: auto; }
.top nav a { color: var(--parchment); text-decoration: none; font-size: 1.05rem; padding: 0.3rem 0; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--lantern); }
.top .button { padding: 0.55rem 1.1rem; font-size: 0.98rem; box-shadow: 0 3px 0 #a8741c; }
.menu { display: none; background: none; border: 1px solid rgba(239, 225, 190, 0.4); color: var(--parchment); border-radius: 8px; padding: 0.35rem 0.7rem; font: inherit; }

/* the hero: the realm flying under the lantern light, the logo and one sentence */
.hero { position: relative; min-height: min(86vh, 820px); display: grid; align-items: end; overflow: hidden; }
.hero video, .hero .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 43, 48, 0.9) 0%, rgba(15, 43, 48, 0.55) 42%, rgba(15, 43, 48, 0) 72%), linear-gradient(0deg, var(--night) 0%, rgba(15, 43, 48, 0) 34%); }
.hero .wrap { position: relative; z-index: 2; padding: 2.5rem 0 4rem; }
.hero .logo { width: min(300px, 64vw); height: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55)); margin-left: -10px; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 0.9rem; max-width: 22ch; hyphens: manual; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6); }
.hero p { font-size: 1.25rem; max-width: 44ch; color: #f6ecd2; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero .status { margin-top: 1.1rem; font-size: 0.98rem; color: var(--mist); }

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

/* places: a strip of the world, each named like on a map */
.places { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 30%); gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-color: var(--lagoon) transparent; }
.place { scroll-snap-align: start; margin: 0; }
.place img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; border: 1px solid rgba(239, 225, 190, 0.18); }
.place figcaption { font-family: var(--display); font-size: 1.3rem; margin-top: 0.6rem; }
.place figcaption small { display: block; font-family: var(--text); font-size: 0.98rem; color: var(--mist); margin-top: 0.15rem; }

/* the notice board: real news pinned on parchment, each as long as it needs */
.board { background: var(--lagoon); border-radius: 14px; padding: 2.4rem 2rem 2rem; columns: 3 300px; column-gap: 1.6rem; box-shadow: inset 0 0 0 1px rgba(239, 225, 190, 0.1); }
.notice { break-inside: avoid; position: relative; background: var(--parchment); color: var(--ink); padding: 1.5rem 1.4rem 1.3rem; margin: 0 0 1.6rem; border-radius: 3px; box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28); transform: rotate(-0.6deg); }
.notice:nth-child(2n) { transform: rotate(0.5deg); }
.notice:nth-child(3n) { transform: rotate(-0.2deg); }
.notice::before { content: ""; position: absolute; top: 0.6rem; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6d47c, #a8741c); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4); }
.notice h3 { color: var(--ink); font-size: 1.35rem; margin-top: 0.5rem; }
.notice p { color: #4a3a26; font-size: 1.02rem; }
.notice .when { font-size: 0.95rem; color: #6d5a3f; }
.notice .tag { display: inline-block; background: var(--ember); color: #fff3e6; font-weight: 700; font-size: 0.85rem; padding: 0.1rem 0.55rem; border-radius: 4px; margin-right: 0.5rem; }

/* the trailer */
.film { max-width: 980px; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid rgba(239, 225, 190, 0.16); }
.film video { width: 100%; }

/* 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 rgba(239, 225, 190, 0.12); }
.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); }

/* the gallery of the media page */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }

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

/* the foot */
.foot { border-top: 1px solid rgba(239, 225, 190, 0.12); padding: 2.4rem 0 3rem; margin-top: 2rem; color: var(--mist); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.foot img { height: 52px; width: auto; }
.foot nav { display: flex; gap: 1.4rem; }
.foot nav a { color: var(--parchment); text-decoration: none; }
.foot small { margin-left: auto; font-size: 0.95rem; }

@media (max-width: 860px) {
  .top nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--night); border-bottom: 1px solid rgba(239, 225, 190, 0.12); padding: 0.5rem 1.5rem 1rem; }
  .top nav.open { display: flex; }
  .top nav a { padding: 0.7rem 0; }
  .menu { display: block; margin-left: auto; }
  .top .button { display: none; }
  .places { grid-auto-columns: 78%; }
  .get { grid-template-columns: 1fr; }
  .foot small { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero video { display: none; }
}

/* ---- 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); }
.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; }
