/* Use the game's own font for display text and a readable sans for body copy. */
@font-face {
  font-family: "BlockRok Pixel";
  src: url("../fonts/BlockRokPixel.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root { --display-font: "BlockRok Pixel", "Arial Black", sans-serif; }
body.home-page, body.wiki-page, body.forum-page { font-size: 16px; }
:is(.home-page,.wiki-page,.forum-page) :is(h1,h2,h3) {
  font-family: var(--display-font);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.main-navigation > a, .menu-explore > summary { font-size: 12px; }
.site-header .main-navigation > a > svg, .site-header .menu-explore > summary > svg:first-child { width: 15px; height: 15px; }
.menu-signin span, .menu-profile > summary { font-size: 14px; }
.menu-status { font-size: 11px; }
.menu-dropdown > a { font-size: 14px; }
.menu-dropdown small, .menu-dropdown > span { font-size: 12px; }
.c-button, .account-form label, .account-form input { font-size: 15px; }
.community-dialog h2 { font-family: var(--display-font); font-size: 24px; line-height: 1.5; font-weight: 400; }
.account-note, .form-message { font-size: 13px; }
.community-footer > p, .community-footer a { font-size: 13px; }
/* Icon illustrations always sit on a solid, rounded square. */
.member-avatar[data-portrait="human.png"] { --portrait-background: #49345f; }
.member-avatar[data-portrait="elf.png"] { --portrait-background: #304c4c; }
.member-avatar[data-portrait="dwarf.png"] { --portrait-background: #5b4239; }
.member-avatar[data-portrait="orc.png"] { --portrait-background: #414b31; }
.member-avatar[data-portrait="grumblejaw.png"] { --portrait-background: #4c394c; }
.member-avatar[data-portrait="forge.png"] { --portrait-background: #624331; }
.member-avatar[data-portrait="blade.png"] { --portrait-background: #38475a; }
:is(.home-page,.wiki-page,.forum-page) .member-avatar[data-portrait] {
  background: var(--portrait-background, #423052);
  border: 1px solid #ffffff14;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
}
:is(.home-page,.wiki-page,.forum-page) .member-avatar[data-portrait] > img {
  inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; padding: 3px; filter: none;
}
.wiki-page .wiki-entry-orb { border-radius: 8px; }
.menu-signin > svg { box-sizing: content-box; padding: 8px; background: #2d2438; border: 1px solid #ffffff12; border-radius: 8px; }
body.wiki-page { padding-top: 0; }

/* The home keeps its cinematic composition with larger, calmer text. */
.home-page :is(.section-heading h2,.center-heading h2,.world-heading h2,.atlas-section-label h2) { font-size: 36px; }
.home-page .gallery-copy h2 { font-size: 48px; }
.home-page :is(.guide-world h3,.atlas-panel h3,.dialog-article h2) { font-size: 24px; }
.home-page .news-copy h3 { font-size: 20px; line-height: 1.4; }
.home-page :is(.hero-action p,.guide-world > p,.center-heading > p:last-child,.world-heading > p:last-child,.gallery-copy > p:last-of-type,#atlas-paragraphs p,.dialog-article p) { font-size: 16px; line-height: 1.8; }
.home-page :is(.news-copy p,.atlas-intro) { font-size: 15px; line-height: 1.7; }
.home-page :is(.pill-button,.tab,.text-link) { font-size: 14px; letter-spacing: .04em; }
.home-page :is(.tile-label,.read-story,.eyebrow,.section-footnote,.atlas-facts dt,.atlas-facts dd,.world-controls select,.world-load,.world-load a) { font-size: 13px; }
.home-page :is(.guide-level,.collection-label,.game-facts span,.world-hotspot,.section-nav span) { font-size: 12px; }
.home-page :is(.hero-brand .eyebrow,.hero-subtitle) { position: relative; font-size: 12px; letter-spacing: .2em; }
.home-page .intro-button { width: 96px; font-size: 10px; letter-spacing: .08em; }
.home-page :is(.concept-note,.scroll-cue,.section-index,.gallery-choice-label,.atlas-scene figcaption,.world-label,.world-status,.world-hint) { font-size: 11px; letter-spacing: .07em; }
.home-page .game-facts strong { font: 400 36px var(--display-font); }
.home-page .orbit-selection > span { font: 400 24px var(--display-font); }
.home-page .orbit-selection small { font-size: 11px; }
.home-page .gallery footer p, .home-page .gallery footer p span { font-size: 12px; line-height: 1.7; }
.home-page .news-mosaic { grid-template-rows: repeat(3,minmax(170px,auto)); }
.home-page .news-copy { padding: 20px; }
.home-page .guide-worlds { column-gap: 28px; }
.home-page .world-hint { max-width: calc(100% - 50px); white-space: normal; text-align: center; }
.home-page .world-stage { top: 255px; }
.home-page .world-expanded .world-stage { top: 195px; }

/* Readable editorial text in the forum, with native pixel display headings. */
.forum-page .forum-hero { height: auto; min-height: 188px; }
.forum-page .forum-hero h1 { font-size: 36px; line-height: 1.3; }
.forum-page :is(.compose-panel h1,.forum-rules h1,.topic-heading h1,.profile-heading h1) { font-size: 36px; }
.forum-page :is(.forum-panel h2,.forum-section-heading h2,.forum-rules section h2,.profile-activity-card h3,.forum-empty h3,.forum-signin-note h2) { font-size: 24px; }
.forum-page .discussion-info h2 { font-size: 24px; line-height: 1.25; }
.forum-page .featured-category h2 { font-size: 24px; }
.forum-page :is(.discussion-info > p,.featured-category p,.forum-panel > p,.forum-rules section p,.forum-lead,.profile-activity-card p,.forum-signin-note p,.compose-help ol) { font-size: 16px; line-height: 1.75; }
.forum-page :is(.discussion-byline,.discussion-byline > time,.forum-hero p,.topic-heading > div > p,.forum-breadcrumb,.profile-heading > div > p) { font-size: 13px; }
.forum-page :is(.forum-search > input:not([type="hidden"]),.forum-editor input,.forum-editor textarea,.forum-editor select,.profile-editor input,.profile-editor textarea,.profile-editor select) { font-size: 16px; }
.forum-page .post-body { font-size: 17px; line-height: 1.9; }
.forum-page .forum-category-tag { font-size: 11px; }
.forum-page .discussion-row { min-height: 112px; }

/* Wiki reading follows normal document flow with generous body text. */
.wiki-page .wiki-hero h1 { font-size: 48px; }
.wiki-page :is(.wiki-library-heading h2,.wiki-article-heading h2) { font-size: 36px; }
.wiki-page :is(.wiki-feature-banner h2,.wiki-article section h3,.wiki-quick h2) { font-size: 24px; }
.wiki-page .wiki-entry-title { font: 400 24px/1.4 var(--display-font); }
.wiki-page :is(.wiki-hero > p,.wiki-feature-banner p,.wiki-entry-body > p,.wiki-quick > p,.wiki-article-heading > p,.wiki-article section p,.wiki-article section li) { font-size: 16px; line-height: 1.85; }
.wiki-page .wiki-article section p, .wiki-page .wiki-article section li { font-size: 17px; }
.wiki-page :is(.wiki-navigation > a:not(.wiki-emblem),.wiki-search input,.wiki-top-tabs a,.wiki-feed-tabs button,.wiki-related > a > span:not(.member-avatar),.wiki-quick-card strong,.wiki-journal-callout strong) { font-size: 14px; }
.wiki-page :is(.wiki-library-heading p,.wiki-entry-meta,.wiki-save,.wiki-journal-callout p,.wiki-quick-card > span,.wiki-forum-callout > span,.wiki-related > p,.wiki-back,.wiki-feature-banner a) { font-size: 13px; }
.wiki-page :is(.wiki-nav-label,.wiki-nav-count,.wiki-stat-grid span,.wiki-stat-section > small,.wiki-related small,.wiki-white-button,.wiki-hero-kicker) { font-size: 12px; }
.wiki-page .wiki-topic-panel > h2, .wiki-page .wiki-stat-section h3, .wiki-page .wiki-related h3 { font-size: 20px; }
.wiki-page .wiki-content-grid { grid-template-columns: minmax(0,1fr) 210px; gap: 30px; }
.wiki-page .wiki-quick-card > span { max-width: 175px; }
@media(max-width:1250px) {
  .wiki-page .wiki-content-grid { grid-template-columns: 1fr; }
  .wiki-page .wiki-quick { display: none; }
}
@media(max-width:860px) {
  body.wiki-page { padding-top: 0; }
  .main-navigation > a, .menu-explore > summary { font-size: 14px; }
  .home-page .news-mosaic { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(6,minmax(170px,auto)); }
  .home-page .news-mosaic > .news-art, .home-page .news-mosaic > .news-copy { grid-area: auto !important; }
  .home-page .news-mosaic .feature-tile { display: none; }
  .home-page .news-copy { padding: 16px; }
  .home-page .news-copy h3 { font-size: 20px; }
  .home-page .world-stage { top: 275px; }
  .home-page .world-expanded .world-stage { top: 230px; }
}
@media(min-width:701px) and (max-width:860px) {
  .wiki-page .wiki-navigation { top: 68px; height: calc(100svh - 68px); }
}
@media(max-width:650px) {
  .home-page :is(.section-heading h2,.center-heading h2,.world-heading h2,.atlas-section-label h2) { font-size: 24px; }
  .home-page .gallery-copy h2 { font-size: 36px; }
  .home-page .hero-subtitle { font-size: 10px; letter-spacing: .14em; }
  .home-page .hero-brand .eyebrow { font-size: 10px; letter-spacing: .14em; }
  .home-page .intro-button { width: 64px; font-size: 10px; line-height: 1.6; }
  .home-page :is(.guide-world > p,.center-heading > p:last-child,.world-heading > p:last-child,.gallery-copy > p:last-of-type) { font-size: 15px; }
  .home-page .guide-worlds { grid-template-columns: 1fr; gap: 40px; }
  .home-page .guide-world { max-width: 430px; width: 100%; margin: auto; }
  .home-page .island { height: 220px; }
  .home-page .guide-world h3 { min-height: 0; }
  .home-page .game-facts { gap: 20px; }
  .home-page .game-facts span { font-size: 11px; }
  .home-page .hero-action p { font-size: 15px; letter-spacing: .03em; }
  .home-page .gallery footer p, .home-page .gallery footer p span { font-size: 11px; }
  .forum-page .forum-hero h1 { font-size: 24px; }
  .forum-page :is(.compose-panel h1,.forum-rules h1,.topic-heading h1,.profile-heading h1) { font-size: 24px; }
  .forum-page .discussion-info h2 { font-size: 20px; line-height: 1.4; }
  .forum-page :is(.discussion-info > p,.featured-category p) { font-size: 15px; }
  .forum-page .discussion-byline, .forum-page .discussion-byline > time { font-size: 12px; }
  .forum-page .post-body { font-size: 16px; }
  .forum-page .featured-category h2 { font-size: 20px; }
  .wiki-page .wiki-hero h1 { font-size: 36px; }
  .wiki-page :is(.wiki-library-heading h2,.wiki-article-heading h2) { font-size: 24px; }
  .wiki-page .wiki-entry-title { font-size: 20px; }
  .wiki-page .wiki-entry-body > p { font-size: 15px; }
  .wiki-page .wiki-entry { gap: 11px; }
  .wiki-page .wiki-entry-mark { display: none; }
}
