/* Complete sketchbook: short pages, searchable entries and a named-place index. */
.skip-link { opacity: 0; pointer-events: none; }
.skip-link:focus { opacity: 1; pointer-events: auto; }
.collection-count { text-align: right; color: #746047; font: 13px/1.5 Arial,sans-serif; margin: 22px 0 12px; }
.collection-pager { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 38px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.collection-pager button, [data-reset] { font: 18px/1.4 'Ember Fell',Georgia,serif; color: #61472d; background: transparent; border: 1px solid #a58a60; padding: 9px 18px; min-height: 44px; }
.collection-pager button:hover:not(:disabled), [data-reset]:hover { background: #e3d5b7; }
.collection-pager button:disabled { opacity: .45; cursor: default; }
.collection-pager p { margin: 0; font-size: 16px; }
.collection-empty { text-align: center; padding: 35px 0; }
.collection-empty button { display: block; margin: 18px auto 0; }
.line-artwork[data-category=places] img, .line-artwork[data-category=dungeons] img { aspect-ratio: 1.35; }
.line-artwork[data-category=wildlife] img { aspect-ratio: 1; }
.place-index { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 36px; }
.place-index > h2, .place-index > p { text-align: center; }
.place-index > p { max-width: 650px; margin: 0 auto 28px; }
.place-index details { padding: 14px 0; border-top: 1px solid #c2ae89; }
.place-index summary { font-size: 25px; cursor: pointer; color: #60452b; }
.place-index summary span { font: 12px Arial,sans-serif; color: #746047; padding-left: 9px; }
.place-index ul { list-style: none; padding: 0 0 0 23px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px 24px; margin: 18px 0 10px; }
.place-index li { margin: 0; }
.place-index li a { display: inline-block; padding: 6px 0; font-size: 18px; }
.town-list ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
.dungeon-entry figure { mix-blend-mode: multiply; }
.dungeon-entry img { filter: grayscale(1) contrast(1.06) brightness(1.08); }
.dungeon-entry h2 { font-size: 34px; }
.dungeon-entry .field-note, .field-note { color: #746047; font-size: 16px; }
.map-plate { background: transparent; border: 0; padding: 0; }
.map-plate > a { display: block; filter: grayscale(1) sepia(.22); mix-blend-mode: multiply; }
.sigil { filter: grayscale(1) sepia(.2); }
.news-list .news-card { padding-top: 30px; padding-bottom: 30px; }
.notes-section { font: 27px/1.35 'Ember Fell',Georgia,serif; color: #563a24; margin-top: 26px; margin-bottom: 12px; }
@media(max-width:820px) { .place-index ul { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 .collection-pager { gap: 12px; }
 .collection-pager button { font-size: 17px; padding: 9px 12px; }
 .collection-pager p { font-size: 14px; }
 .place-index ul { grid-template-columns: 1fr; gap: 0; }
 .place-index li a { min-height: 44px; padding: 8px 0; }
 .dungeon-entry h2 { font-size: 31px; }
}

/* polish-site_style (2026-12-01): the game interface theme. The site uses the game's own palette (assets/ui/ac_v37),
   its stone tile, its pixel fonts (Ember Uncial, Ember Book, as web fonts from the game's bitmaps) and frame, ring,
   rod, gem and emblem pieces drawn in Illustrator (art_sources/shared/website_style_v19). Pieces and pixel fonts are
   shown at whole-number scales with image-rendering: pixelated. */
@font-face { font-family: 'Ember Uncial'; src: url('/portal/ui-uncial.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Ember Book'; src: url('/portal/ui-book.ttf') format('truetype'); font-display: swap; }
:root { --ink: #e8dcc0; --muted: #b3a382; --paper: #100d0b; --paper-deep: #16120e; --line: #54402a; --gold: #e4c478; --green: #e4c478; --dark: #0b0908; --red: #d8502a; --well: #0b0908; --rim: #86683a; --bright: #ecca72; --amber: #ffb219; --blue: #1a2a7a; }
body { background: var(--paper) url('/portal/ui-stone.png') repeat; background-size: 128px 128px; color: var(--ink); image-rendering: pixelated; -webkit-font-smoothing: none; }
img { image-rendering: auto; }
img.px, .screen-grid img, .frontispiece img.px { image-rendering: pixelated; }
::selection { background: #86683a; color: #fff7cc; }
h1, h2, h3, .notes-section, .place-index summary, .earlier-studies summary, .school-list dt { font-family: 'Ember Uncial', Georgia, serif; font-weight: 400; color: var(--bright); text-shadow: 2px 2px 0 #110b08; letter-spacing: 0; }
h1, .journal-heading h1 { font-size: 48px; line-height: 1.2; }
h2, .section-top h2, .feature-copy h2, .region h2, .creature-entry h2, .dungeon-entry h2, .viewer-bottom h2 { font-size: 24px; line-height: 1.3; }
h3, .news-card h3, .feature-copy h3, .artwork h3, .notes-section, .place-index summary, .earlier-studies summary, .school-list dt { font-size: 24px; line-height: 1.3; }
a, .news-card h3 a, .site-footer a, .viewer-bottom a, .launcher-shell > a, .quiet, #art-reset { color: var(--amber); }
a:hover, .news-card h3 a:hover, .news-card h3 a:focus-visible, .site-footer a:hover { color: #fff27f; }
.news-card h3 a { color: var(--bright); }
.lede, .news-card p, .news-list .news-card p, .notes-list li, .illustrated-row p, .region p:not(.eyebrow), .feature-copy li, .feature-copy p { color: var(--ink); }
.eyebrow, .news-meta, .news-tag[data-tag=patch-notes], .field-help, .privacy-note, .art-disclosure, .collection-count, #art-count, .news-month, .gallery-filters span, .place-index summary span, .line-artwork p:not(.eyebrow), .frontispiece figcaption, .illustrated-row figcaption, .ink-plate figcaption, .map-plate figcaption, .dungeon-entry .field-note, .field-note, .site-footer p, .site-footer small, .viewer-top, .viewer-bottom p, .news-summary, .art-search, .collection-pager p { color: var(--muted); }
.eyebrow, .news-meta, .news-month, .collection-count, #art-count, .gallery-filters span, .place-index summary span { font: 16px/1.25 'Ember Book', Arial, sans-serif; letter-spacing: 0; }
.news-tag[data-tag=patch-notes] { color: var(--amber); }
.notes-section { text-transform: none; letter-spacing: 0; border-bottom-color: var(--line); }
/* Frames: the window ring with gold corner studs round each page, the plain ring round cards and buttons. */
.site-shell { max-width: var(--page); }
.site-page { border: 14px solid #86683a; border-image: url('/portal/ui-frame.png') 7 / 14px repeat; background: rgba(11, 9, 8, .93); background-clip: padding-box; margin: 28px 16px; }
.news-card, .play-option, .application-status, .sketchbook-callout, .news-rail, .gallery-tools, .place-index details { border: 8px solid #86683a; border-image: url('/portal/ui-ring.png') 4 / 8px repeat; background: #16120e; background-clip: padding-box; }
.news-card, #announcements .news-card, .news-list .news-card { padding: 18px 22px; margin: 0 0 14px; }
.news-list .news-month + .news-card { border-top: 8px solid #86683a; }
.news-rail { padding: 20px 24px; margin-top: 24px; }
.sketchbook-callout { padding: 24px; margin-top: 24px; }
.application-status { border-left: 8px solid #86683a; padding: 16px 20px; }
.play-option { padding: 20px 22px; }
.gallery-tools { padding: 16px; }
.place-index details { padding: 10px 16px; margin-bottom: 8px; }
.news-month { border-bottom: 0; color: var(--bright); }
/* Dividers: the rod with an ember gem, drawn at 2x. */
.journal-heading::after, .page-heading::after, .illustrated-row + .illustrated-row::before { width: min(360px, 80%); height: 30px; background: url('/portal/ui-gem.png') center / 30px 30px no-repeat, url('/portal/ui-rod.png') center / 16px 18px repeat-x; opacity: 1; }
.masthead { background: linear-gradient(#16120e, #0b0908); border-bottom: 18px solid #86683a; border-image: url('/portal/ui-rod.png') 0 0 9 0 / 0 0 18px 0 repeat; }
.site-footer { border-top: 18px solid #86683a; border-image: url('/portal/ui-rod.png') 9 0 0 0 / 18px 0 0 0 repeat; background: #0b0908; color: var(--muted); }
.site-footer small { border-top-color: var(--line); }
.footer-brand { font-family: 'Ember Uncial', Georgia, serif; font-size: 24px; color: var(--bright); }
.news-rail, .region, .gallery-tools, .collection-pager, .place-index, .sketchbook-callout { border-top-color: var(--line); }
/* Plates: navigation, buttons, tabs and filters as the game's ringed plates; the chosen one is the blue plate. */
.primary-nav { border: 0; gap: 8px; padding: 14px 0 16px; }
.primary-nav a, .primary-nav .account-link, .primary-nav .play-link { font: 24px/1 'Ember Uncial', Georgia, serif; color: var(--gold); border: 8px solid #86683a; border-image: url('/portal/ui-ring.png') 4 / 8px repeat; background: #16120e; background-clip: padding-box; padding: 4px 10px 6px; margin: 0; }
.primary-nav a:hover, .primary-nav .account-link:hover, .primary-nav .play-link:hover { background: #2f2420; background-clip: padding-box; color: #fff7cc; border-bottom: 8px solid #86683a; }
.primary-nav [aria-current=page], .primary-nav .account-link[aria-current=page], .primary-nav .play-link[aria-current=page] { color: #fff7cc; background: linear-gradient(#2a40a4 0 2px, #1a2a7a 2px calc(100% - 4px), #101a4e calc(100% - 4px)); background-clip: padding-box; border-bottom: 8px solid #86683a; }
.button, .feature-tabs button, .tabs button, .gallery-filters button, .collection-pager button, [data-reset], #art-viewer button, #admin-panel button { border: 8px solid #86683a; border-image: url('/portal/ui-ring.png') 4 / 8px repeat; border-radius: 0; background: #16120e; background-clip: padding-box; color: var(--gold); }
.button { font: 24px/1 'Ember Uncial', Georgia, serif; padding: 6px 18px 8px; min-height: 52px; }
.primary, .button.primary { background: linear-gradient(#4a66cc 0 2px, #2a40a4 2px 6px, #1a2a7a 6px calc(100% - 6px), #101a4e calc(100% - 6px)); background-clip: padding-box; color: #fff7cc; }
.primary:hover, .button.primary:hover { background: linear-gradient(#8aa4ec 0 2px, #4a66cc 2px 6px, #2a40a4 6px calc(100% - 6px), #1a2a7a calc(100% - 6px)); background-clip: padding-box; }
.secondary, .button.secondary { color: var(--bright); }
.secondary:hover, .button.secondary:hover, .feature-tabs button:hover, .tabs button:hover, .gallery-filters button:hover, .collection-pager button:hover:not(:disabled), [data-reset]:hover, #art-viewer button:hover { background: #2f2420; background-clip: padding-box; color: #fff7cc; }
.feature-tabs, .tabs { border-bottom: 0; gap: 6px; flex-wrap: wrap; }
.feature-tabs button, .tabs button { font: 24px/1 'Ember Uncial', Georgia, serif; padding: 4px 12px 6px; }
.gallery-filters button, .collection-pager button, [data-reset], #art-viewer button, #admin-panel button { font: 16px/1.25 'Ember Book', Arial, sans-serif; padding: 6px 10px; }
.feature-tabs [aria-selected=true], .tabs [aria-selected=true], .gallery-filters button[aria-pressed=true] { color: #fff7cc; background: linear-gradient(#2a40a4 0 2px, #1a2a7a 2px calc(100% - 4px), #101a4e calc(100% - 4px)); background-clip: padding-box; border-bottom: 8px solid #86683a; }
.gallery-filters button[aria-pressed=true] span { color: #e8dcc0; }
.text-link { font-size: 19px; }
/* Fields. */
input, .account-section input, .art-search input, .collection-search input { background: #0b0908; color: var(--ink); border: 2px solid #54402a; border-radius: 0; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #fff27f; outline-offset: 2px; }
/* Drawings sit on vellum inside a ring, without blending into the dark page. */
.frontispiece img, .illustrated-row img, .ink-plate, .ink-plate img, .ink-region > img, .line-artwork img, .dungeon-entry figure, .dungeon-entry img, .map-plate > a, .creature-entry figure img { mix-blend-mode: normal; }
.ink-plate, .line-artwork > a, .dungeon-entry figure, .map-plate > a, .creature-entry figure, .region > img { border: 8px solid #86683a; border-image: url('/portal/ui-ring.png') 4 / 8px repeat; background: #e9dfc8; background-clip: padding-box; }
.line-artwork > a:hover { background: #fff7e6; background-clip: padding-box; }
.ink-plate figcaption, .creature-entry figcaption { background: #16120e; padding: 4px 8px; }
.sigil { filter: sepia(.6) brightness(1.6); }
/* Screens: pictures from the game, scaled by whole numbers. */
.frontispiece.screen img { max-height: none; border: 8px solid #86683a; border-image: url('/portal/ui-ring.png') 4 / 8px repeat; }
.screens { margin: 28px 0 8px; }
.screens h2 { text-align: center; margin-bottom: 14px; }
.screen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.screen-grid figure { margin: 0; border: 8px solid #86683a; border-image: url('/portal/ui-ring.png') 4 / 8px repeat; background: #0b0908; background-clip: padding-box; }
.screen-grid img { display: block; width: 100%; height: auto; }
.screen-grid figcaption, .frontispiece figcaption { font: 16px/1.25 'Ember Book', Arial, sans-serif; color: var(--muted); padding: 6px 8px; text-align: center; font-style: normal; }
/* The picture viewer. */
#art-viewer { color: var(--ink); background: #0b0908; border: 14px solid #86683a; border-image: url('/portal/ui-frame.png') 7 / 14px repeat; box-shadow: 0 12px 70px #000a; }
#art-viewer::backdrop { background: #000c; }
#viewer-image { background: #e9dfc8; }
.viewer-bottom h2, .viewer-bottom a { color: var(--bright); }
.skip-link { background: #1a2a7a; color: #fff7cc; }
@media (max-width: 760px) {
 .site-page, .site-page:not(.home-page), .home-page { margin: 16px 0; padding: 22px 14px 30px; }
 h1, .journal-heading h1 { font-size: 48px; }
 .primary-nav { gap: 6px; }
 .primary-nav a, .primary-nav .account-link, .primary-nav .play-link { font-size: 24px; padding: 2px 6px 4px; }
 .feature-tabs button, .tabs button { padding: 2px 8px 4px; }
 .news-card, #announcements .news-card, .news-list .news-card { padding: 14px 14px; }
}
