/* ===========================================================================
   NUG.lt — THE PUBLIC STYLESHEET (Public Landing + Žinynas UX / Copy V2)

   One stylesheet for the landing page and every page under `viesas.php`.

   THE RULE: the public site is the SAME game a visitor is about to be shown,
   not an advert for it. Every colour is a token from `assets/css/nug-theme.css`
   (loaded before this file), and every surface recipe below is the one the
   authenticated shell uses — restated here rather than imported, because
   `nug-ui.css` is 96 KB gzipped of selectors scoped to the game's own frames:

     * ground        = dark green + green-cloth texture      (`.game-layout`)
     * header/footer = dark-stone texture + gold inset rule  (`.game-header`)
     * panel         = parchment texture + gold-600 frame + the triple shadow
                       (`.ui-panel`)
     * section strip = green-cloth strip with a gold top line (`.ui-panel-head`)
     * loud button   = forged green with a gold rim           (`.ui-btn-primary`)
     * quiet button  = parchment with a bronze bevel          (`.ui-btn-secondary`)

   The textures are the game's generated tiles in `assets/ui/textures/`; the
   `url()`s are written directly in the rules that use them (a `url()` inside a
   custom property resolves against the sheet that DECLARES it — see the note
   in nug-ui.css § arena cosmetics — so nothing here goes through a variable).

   WIDTH. The frame is the game shell's own `--nug-shell` (1200 px). Reading
   text never grows with it: every paragraph is capped at a measure, and the
   Žinynas article page keeps a dedicated reading column beside a navigation
   rail — the same LEFT | MAIN shape the game's activity pages have.

   MOBILE is first-class: every control is 44 px, every grid starts as ONE
   column, no declaration pins a width a 320 px phone cannot hold, and nothing
   depends on a label being short (German copy will be ~30 % longer).
   =========================================================================== */

* {
    box-sizing: border-box;
}

html {
    min-width: 0;
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    padding: 8px;
    background:
        radial-gradient(circle at 50% 0, rgba(51, 91, 68, .62), transparent 44%),
        linear-gradient(160deg, #0b1511 0%, #182a21 52%, #080d0b 100%);
    color: var(--nug-ink);
    font: 15px/1.5 var(--nug-ui-font);
}

h1,
h2,
h3 {
    font-family: var(--nug-heading-font);
}

a {
    color: var(--nug-link);
    text-underline-offset: 2px;
}

a:hover {
    color: #7a5322;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--nug-focus);
    outline-offset: 2px;
}

img {
    max-width: 100%;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 10;
    padding: 10px 14px;
    background: var(--nug-paper);
    color: var(--nug-ink);
}

.skip-link:focus {
    top: 8px;
    left: 8px;
}

/* --- The frame: the game shell's own ground ------------------------------ */
.site-frame {
    width: min(100%, var(--nug-shell));
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--nug-gold-600);
    outline: 1px solid rgba(7, 29, 24, .8);
    background:
        radial-gradient(ellipse at 50% 0, rgba(51, 110, 82, .35), transparent 55%),
        linear-gradient(rgba(7, 29, 24, .35), rgba(4, 18, 14, .6)),
        url("../ui/textures/green-cloth.webp") center / 512px repeat,
        var(--nug-green-950);
    box-shadow: 0 0 0 1px rgba(7, 29, 24, .9), 0 14px 40px rgba(0, 0, 0, .6);
}

/* --- Header bar (brand + public navigation) ------------------------------ */
.hero {
    position: relative;
    color: var(--nug-parchment-50);
}

.hero-nav {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    min-height: 60px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--nug-gold-500);
    background:
        linear-gradient(180deg, rgba(20, 60, 48, .55), rgba(7, 29, 24, .85)),
        url("../ui/textures/dark-stone.webp") center / 384px repeat,
        var(--nug-green-950);
    box-shadow:
        inset 0 3px 0 var(--nug-gold-600),
        inset 0 -1px 0 rgba(0, 0, 0, .6),
        0 2px 6px rgba(0, 0, 0, .5);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--nug-parchment-50);
    text-decoration: none;
}

.brand:hover {
    color: var(--nug-parchment-50);
}

.brand-mark {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #f1d478;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #fff1bd, #dcb45a 38%, #9b6b22 74%, #4a2f0e);
    box-shadow:
        inset 0 0 0 2px rgba(31, 24, 11, .55),
        inset 0 -2px 3px rgba(0, 0, 0, .45),
        0 2px 4px rgba(0, 0, 0, .6);
    color: #3a2508;
    font: 700 24px/1 var(--nug-heading-font);
}

.brand-name {
    display: grid;
    line-height: 1.05;
}

.brand-name strong {
    color: #f7e5b5;
    font: 700 21px/1.05 var(--nug-heading-font);
    letter-spacing: .045em;
    text-shadow: 0 1px 0 #000;
}

.brand-name small {
    color: #c9c8bb;
    font-size: 12px;
    letter-spacing: .02em;
}

.public-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.public-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: var(--nug-radius-xs);
    color: #f3e6c6;
    font: 700 14px var(--nug-ui-font);
    text-decoration: none;
}

.public-nav a:hover,
.public-nav a:focus-visible {
    border-color: rgba(195, 154, 69, .55);
    background: rgba(7, 29, 24, .6);
    color: #fff;
}

.public-nav a.is-current {
    border-color: rgba(195, 154, 69, .55);
    background: var(--nug-green-700);
    color: var(--nug-gold-soft);
}

/* --- Phase 6: the public language switch ("English | Lietuvių") --------- */
.public-lang ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-lang li + li {
    border-left: 1px solid rgba(195, 154, 69, .45);
}

.public-lang a {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    color: #e9dcbc;
    font: 600 13px var(--nug-ui-font);
    text-decoration: none;
}

.public-lang a:hover,
.public-lang a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.public-lang a[aria-current="true"] {
    color: var(--nug-gold-soft);
    font-weight: 700;
}

/* --- Hero copy: the banner (landing) and the page head (article) -------- */
.hero-copy {
    position: relative;
    z-index: 1;
    padding: 16px 16px 18px;
}

.hero-kicker {
    margin: 0 0 4px;
    color: #e1bd6d;
    font: 700 12px/1.3 var(--nug-ui-font);
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* THE PRODUCT NAME IS NEVER SHOUTED (Guilds of Dawn Rebrand R1). The eyebrow
   above is uppercase, which „NUG.lt" survived and „Guilds of Dawn" does not:
   the brand is written „Guilds of Dawn" and never „GUILDS OF DAWN". Only the
   line that IS the product name opts out — the Žinynas crumb, the breadcrumb
   links and the landing page's „Naršyklinis fantasy RPG" descriptor are not
   names and keep the eyebrow. */
.hero-kicker-brand {
    letter-spacing: .04em;
    text-transform: none;
}

.hero-crumb {
    color: #e1bd6d;
    text-decoration: none;
}

.hero-crumb:hover {
    color: #fff;
    text-decoration: underline;
}

.hero h1 {
    margin: 0 0 6px;
    color: #fff8e7;
    font-size: clamp(24px, 5vw, 34px);
    line-height: 1.1;
    letter-spacing: -.01em;
    text-shadow: 0 2px 2px #000, 0 0 14px rgba(213, 177, 102, .12);
    overflow-wrap: anywhere;
}

.hero-lead {
    max-width: 62ch;
    margin: 0;
    color: #e6e0cd;
    font-size: 15px;
}

/* The landing hero sits on the game's own world art. */
.hero-landing .hero-copy {
    min-height: 300px;
    padding: 28px 18px 24px;
    background:
        linear-gradient(90deg, rgba(4, 12, 9, .92) 0, rgba(4, 12, 9, .78) 46%, rgba(4, 12, 9, .35) 100%),
        linear-gradient(0deg, rgba(4, 12, 9, .55), transparent 40%),
        url("../ui/banners/world-lands.webp") center 30% / cover no-repeat,
        var(--nug-green-900);
    border-bottom: 2px solid var(--nug-bronze-700);
}

.hero-landing h1 {
    font-size: clamp(30px, 6vw, 46px);
}

.hero-landing .hero-lead {
    font-size: 16px;
}

.hero-status {
    display: inline-block;
    margin: 12px 0 0;
    padding: 7px 11px;
    border: 1px solid rgba(213, 177, 102, .5);
    border-left-width: 3px;
    background: rgba(4, 10, 7, .55);
    color: #f0dfb4;
    font: 13px/1.35 var(--nug-ui-font);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
}

.hero-actions .button-link {
    margin-top: 0;
}

/* A content page's head: breadcrumb, title, lead — on the dark ground. */
.hero-compact .hero-copy {
    padding: 14px 16px 16px;
}

/* --- Main column ---------------------------------------------------------- */
main {
    padding: 10px;
}

.notice {
    margin: 0 0 9px;
    padding: 8px 10px;
    border: 1px solid currentColor;
    border-left-width: 4px;
    background: #fffaf0;
}

.notice.error {
    color: var(--nug-danger);
}

.notice.success {
    color: var(--nug-success);
}

/* The Žinynas article page: navigation rail + reading column. */
.public-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.public-rail {
    display: none;
}

.public-main {
    min-width: 0;
}

/* --- The framed panel (the game's `.ui-panel`) ---------------------------- */
.rpg-section {
    min-width: 0;
    border: 1px solid var(--nug-gold-600);
    border-radius: var(--nug-radius-xs);
    background:
        linear-gradient(rgba(247, 241, 223, .62), rgba(247, 241, 223, .62)),
        url("../ui/textures/parchment.webp") center / 512px repeat,
        var(--nug-parchment-50);
    box-shadow:
        0 0 0 1px rgba(7, 29, 24, .85),
        0 0 0 2px rgba(195, 154, 69, .28),
        0 6px 18px rgba(0, 0, 0, .5);
}

.rpg-section + .rpg-section,
.rpg-section + .public-art,
.public-art + .rpg-section,
.rpg-section + .entry-grid,
.entry-grid + .rpg-section {
    margin-top: 12px;
}

/* --- The section strip (the game's `.ui-panel-head`) ---------------------- */
.section-title {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    border-top: 1px solid var(--nug-gold-500);
    border-bottom: 1px solid var(--nug-bronze-700);
    background:
        linear-gradient(180deg, rgba(47, 114, 80, .7), rgba(11, 42, 34, .92)),
        url("../ui/textures/green-cloth.webp") center / 384px repeat,
        var(--nug-green-800);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -2px 0 rgba(0, 0, 0, .35);
    color: var(--nug-parchment-50);
}

.section-title h2 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: inherit;
    font: 700 16px/1.2 var(--nug-heading-font);
    letter-spacing: .01em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
    overflow-wrap: anywhere;
}

.section-title .nug-icon,
.section-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 3px;
    border: 1px solid rgba(195, 154, 69, .55);
    border-radius: var(--nug-radius-xs);
    background: radial-gradient(circle at 40% 30%, rgba(60, 120, 90, .55), rgba(4, 18, 14, .95) 75%);
}

.section-title-aside {
    margin-left: auto;
    color: var(--nug-parchment-200);
    font-size: 12px;
}

.section-title-aside a {
    color: var(--nug-gold-soft);
}

.section-body {
    padding: 10px 12px 12px;
}

.section-body > :last-child {
    margin-bottom: 0;
}

.section-body p {
    max-width: 70ch;
    margin: 0 0 10px;
}

.section-body h3 {
    margin: 14px 0 6px;
    color: var(--nug-green-900);
    font-size: 16px;
}

/* --- Lists ---------------------------------------------------------------- */
.public-list,
.public-rules {
    max-width: 70ch;
    margin: 0 0 10px;
    padding-left: 22px;
}

.public-list li,
.public-rules li {
    margin-bottom: 6px;
}

.public-rules li::marker {
    color: #7a5322;
    font-weight: 700;
}

/* Short fact rows (landing „Kuo kitoks", article „Trumpai"). */
.fact-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fact-list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(183, 162, 116, .55);
}

.fact-list li:last-child {
    border-bottom: 0;
}

.fact-list .fact-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(195, 154, 69, .55);
    border-radius: var(--nug-radius-xs);
    background: radial-gradient(circle at 40% 30%, rgba(60, 120, 90, .55), rgba(4, 18, 14, .95) 75%);
}

.fact-list .fact-mark img {
    width: 22px;
    height: 22px;
}

.fact-list strong {
    display: block;
    color: var(--nug-green-900);
    font-family: var(--nug-heading-font);
    font-size: 15px;
}

.fact-list span {
    color: var(--nug-muted);
    font-size: 14px;
}

/* --- Cards: one per public page / one per activity ------------------------ */
.pillar-grid,
.activity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.pillar-card,
.activity-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 2px 10px;
    min-height: 44px;
    padding: 10px 11px;
    border: 1px solid var(--nug-border);
    border-radius: var(--nug-radius-xs);
    background: linear-gradient(180deg, #fbf5e4, var(--nug-parchment-100));
    box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(120, 90, 40, .18), 0 1px 2px rgba(0, 0, 0, .25);
    color: var(--nug-ink);
    text-decoration: none;
}

.pillar-card:hover,
.pillar-card:focus-visible,
.activity-card:hover,
.activity-card:focus-visible {
    border-color: var(--nug-gold-600);
    background: linear-gradient(180deg, #fffaee, #f4ead2);
    color: var(--nug-ink);
}

.pillar-icon,
.activity-icon {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    padding: 4px;
    border: 1px solid rgba(195, 154, 69, .55);
    border-radius: var(--nug-radius-xs);
    background: radial-gradient(circle at 40% 30%, rgba(60, 120, 90, .55), rgba(4, 18, 14, .95) 75%);
}

.pillar-card strong,
.activity-card strong {
    color: var(--nug-green-900);
    font: 700 16px/1.25 var(--nug-heading-font);
    overflow-wrap: anywhere;
}

.pillar-card span,
.activity-card span {
    color: var(--nug-muted);
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.activity-card em {
    display: inline-block;
    margin-top: 6px;
    color: #7a5322;
    font: 700 13px var(--nug-ui-font);
    font-style: normal;
}

.activity-card:hover em {
    text-decoration: underline;
}

/* --- The reading path (Žinynas root) -------------------------------------- */
.read-path {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.read-path a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid var(--nug-border);
    border-radius: var(--nug-radius-xs);
    background: linear-gradient(180deg, #fbf5e4, var(--nug-parchment-100));
    color: var(--nug-ink);
    text-decoration: none;
    counter-increment: step;
}

.read-path a::before {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #f1d478;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #fff1bd, #dcb45a 38%, #9b6b22 74%, #4a2f0e);
    color: #3a2508;
    font: 700 16px/1 var(--nug-heading-font);
    content: counter(step);
}

.read-path a:hover,
.read-path a:focus-visible {
    border-color: var(--nug-gold-600);
    background: linear-gradient(180deg, #fffaee, #f4ead2);
}

.read-path-text {
    display: block;
    min-width: 0;
}

.read-path-landing,
.read-path-landing.read-path {
    grid-template-columns: minmax(0, 1fr);
}

.read-path strong {
    display: block;
    color: var(--nug-green-900);
    font: 700 15px/1.25 var(--nug-heading-font);
}

.read-path span {
    display: block;
    color: var(--nug-muted);
    font-size: 13px;
}

/* --- The game's own place art --------------------------------------------- */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.showcase-tile {
    margin: 0;
    border: 1px solid var(--nug-border);
    border-radius: var(--nug-radius-xs);
    background: var(--nug-parchment-100);
    overflow: hidden;
}

.showcase-tile a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.showcase-tile img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 130px;
    border-bottom: 1px solid var(--nug-bronze-700);
    object-fit: cover;
}

.showcase-tile figcaption {
    display: flex;
    min-height: 40px;
    align-items: center;
    padding: 6px 10px;
    color: var(--nug-green-900);
    font: 700 14px/1.25 var(--nug-heading-font);
}

.showcase-tile a:hover figcaption {
    color: #7a5322;
    text-decoration: underline;
}

.section-note {
    margin: 9px 0 0;
    color: var(--nug-muted);
    font-size: 12px;
}

.section-more {
    margin: 12px 0 0;
}

/* --- Article art ---------------------------------------------------------- */
.public-art {
    margin: 0 0 12px;
    border: 1px solid var(--nug-gold-600);
    border-radius: var(--nug-radius-xs);
    background: var(--nug-green-950);
    box-shadow: 0 0 0 1px rgba(7, 29, 24, .85), 0 4px 12px rgba(0, 0, 0, .5);
    overflow: hidden;
}

.public-art img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

/* --- Related pages -------------------------------------------------------- */
.public-related {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-related li {
    margin: 0;
}

.public-related a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--nug-bronze-700);
    border-radius: var(--nug-radius-sm);
    background: linear-gradient(180deg, #fbf5e4, var(--nug-parchment-100));
    box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(120, 90, 40, .25), 0 1px 2px rgba(0, 0, 0, .3);
    color: var(--nug-green-900);
    font: 700 14px var(--nug-heading-font);
    text-decoration: none;
}

.public-related a:hover,
.public-related a:focus-visible {
    border-color: var(--nug-gold-600);
    background: linear-gradient(180deg, #fffaee, #f4ead2);
    color: #7a5322;
}

.public-related a img {
    width: 22px;
    height: 22px;
}

/* --- The navigation rail (article pages, desktop) ------------------------- */
.public-rail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-rail-list a {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 6px 11px;
    border-bottom: 1px solid rgba(183, 162, 116, .55);
    color: var(--nug-ink);
    font: 700 14px var(--nug-ui-font);
    text-decoration: none;
}

.public-rail-list li:last-child a {
    border-bottom: 0;
}

.public-rail-list a img {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.public-rail-list a::after {
    margin-left: auto;
    color: var(--nug-muted);
    content: "\203A";
}

.public-rail-list a:hover,
.public-rail-list a:focus-visible {
    background: rgba(255, 250, 238, .8);
    color: #7a5322;
}

.public-rail-list a.is-current {
    background: linear-gradient(180deg, #2d5540, #22412f);
    color: var(--nug-gold-soft);
}

.public-rail-list a.is-current::after {
    color: var(--nug-gold-soft);
}

/* --- Contacts ------------------------------------------------------------- */
.public-contacts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px 12px;
    margin: 0;
}

.public-contacts dt {
    color: var(--nug-muted);
    font: 700 12px/1.3 var(--nug-ui-font);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.public-contacts dd {
    margin: 0 0 10px;
    font-size: 16px;
}

.public-contacts dd a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

/* --- Forms and buttons ---------------------------------------------------- */
.entry-grid {
    display: grid;
    gap: 10px;
}

.entry-panel .section-body {
    min-height: 100%;
}

form {
    display: grid;
    gap: 5px;
}

label {
    margin-top: 2px;
    color: #31332b;
    font-weight: 700;
}

input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 9px;
    border: 1px solid #8a806b;
    border-radius: var(--nug-radius-xs);
    background: #faf9f3;
    box-shadow: inset 0 1px 2px rgba(44, 35, 19, .11);
    color: var(--nug-ink);
    font: 16px var(--nug-ui-font);
}

input:hover {
    border-color: #5e705f;
    background: #fdfcf7;
}

input:focus {
    border-color: #9a6e2d;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(44, 35, 19, .08), 0 0 0 2px rgba(213, 177, 102, .22);
}

button,
.button-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 16px;
    border: 1px solid var(--nug-green-950);
    border-radius: var(--nug-radius-sm);
    background: linear-gradient(180deg, var(--nug-green-600), var(--nug-green-800));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(7, 29, 24, .35);
    color: var(--nug-parchment-50);
    font: 700 14px/1.2 var(--nug-ui-font);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

button:hover,
.button-link:hover {
    background: linear-gradient(180deg, #3a8060, #1a4a35);
    color: #fff;
}

/* The loud control: forged green with a gold rim — the game has no gold fill. */
.button-primary,
.entry-panel button {
    border: 1px solid #f1d478;
    background: linear-gradient(180deg, #3d8a62, #1f5a3f 55%, #123d2a);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .28),
        inset 0 0 0 1px rgba(7, 29, 24, .6),
        0 3px 8px rgba(0, 0, 0, .5);
    color: var(--nug-parchment-50);
    font: 700 15px/1.2 var(--nug-heading-font);
    letter-spacing: .02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}

.button-primary:hover,
.entry-panel button:hover {
    background: linear-gradient(180deg, #48a074, #256b4b 55%, #164a33);
    color: #fff;
}

/* The quiet control: parchment with a bronze bevel. */
.button-quiet {
    border: 1px solid var(--nug-bronze-700);
    background: linear-gradient(180deg, #fbf5e4, var(--nug-parchment-100));
    box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(120, 90, 40, .25), 0 1px 2px rgba(0, 0, 0, .3);
    color: var(--nug-green-900);
    font: 700 15px/1.2 var(--nug-heading-font);
}

.button-quiet:hover {
    background: linear-gradient(180deg, #fffaee, #f4ead2);
    color: var(--nug-green-900);
}

.captcha {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--nug-line);
    background: #fff;
}

.entry-solo {
    max-width: 460px;
    margin-right: auto;
    margin-left: auto;
}

.entry-aside {
    margin: 8px 0 0;
    font-size: 13px;
}

.entry-aside a {
    color: #6a4a1d;
    text-decoration: underline;
}

.entry-aside a:hover {
    color: #8f5f1f;
}

.registration-closed {
    padding: 10px 12px;
    border: 1px solid #a89774;
    border-top: 3px solid #9b7138;
    border-radius: var(--nug-radius-xs);
    background:
        linear-gradient(105deg, rgba(168, 116, 50, .07), transparent 55%),
        #f3ead7;
    color: #3e392f;
}

.registration-closed strong {
    display: block;
    margin-bottom: 6px;
    color: #654425;
    font: 700 17px var(--nug-heading-font);
}

.registration-closed p {
    margin: 0 0 10px;
}

.registration-closed > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

/* --- The shared public footer (the game's `.game-footer`) ----------------- */
.public-footer {
    display: block;
    padding: 0;
    border-top: 1px solid var(--nug-gold-600);
    background:
        linear-gradient(180deg, rgba(7, 29, 24, .8), rgba(7, 29, 24, .92)),
        url("../ui/textures/dark-stone.webp") center / 384px repeat,
        var(--nug-green-950);
    color: #b8b4a0;
}

.public-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    padding: 4px 7px;
    border-bottom: 1px solid rgba(195, 154, 69, .3);
}

.public-footer-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 9px;
    color: #eee4cc;
    font: 700 13px var(--nug-ui-font);
    text-decoration: none;
}

.public-footer-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.public-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 9px 11px;
    font: 12px var(--nug-ui-font);
}

.public-footer-meta a {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    color: #d8cfae;
}

/* --- Icons ---------------------------------------------------------------- */
.nug-icon {
    display: inline-block;
    vertical-align: middle;
}

/* ===========================================================================
   BREAKPOINTS. Phones first; the grids widen, nothing else changes shape.
   =========================================================================== */

@media (min-width: 560px) {
    .pillar-grid,
    .activity-grid,
    .showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-contacts {
        grid-template-columns: 160px minmax(0, 1fr);
        align-items: baseline;
    }

    .public-contacts dt {
        text-align: right;
    }

    .fact-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 18px;
    }

    .entry-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .entry-grid.entry-solo {
        grid-template-columns: minmax(0, 1fr);
    }

    .read-path {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .read-path-landing {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 760px) {
    body {
        padding: 14px;
        background:
            linear-gradient(rgba(3, 10, 7, .54), rgba(2, 7, 5, .78)),
            url("../ui/backgrounds/forest.webp") center / cover fixed no-repeat,
            #0b1511;
    }

    main {
        padding: 12px;
    }

    .hero-copy {
        padding: 18px 22px 20px;
    }

    .hero-landing .hero-copy {
        min-height: 340px;
        padding: 40px 32px 32px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .section-body {
        padding: 12px 14px 14px;
    }

    .section-body p,
    .public-list,
    .public-rules {
        font-size: 16px;
        line-height: 1.55;
    }

    .landing-band {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px;
        align-items: stretch;
    }

    .landing-band .rpg-section + .rpg-section {
        margin-top: 0;
    }
}

@media (min-width: 860px) {
    .showcase-grid,
    .activity-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .read-path {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .read-path-landing {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 980px) {
    .public-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 12px;
    }

    .public-rail {
        display: block;
        position: sticky;
        top: 12px;
    }

    .public-main {
        max-width: 860px;
    }

    .pillar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-landing .hero-copy {
        min-height: 380px;
        padding: 52px 40px 40px;
    }
}

@media (max-width: 520px) {
    body {
        padding: 5px;
    }

    .site-frame {
        outline: 0;
    }

    .hero-nav {
        padding: 6px 8px;
    }

    .public-lang {
        order: 1;
        margin-left: auto;
    }

    .public-nav {
        order: 2;
        flex: 1 1 100%;
        justify-content: space-between;
        gap: 0;
        padding-top: 4px;
        border-top: 1px solid rgba(195, 154, 69, .25);
    }

    .public-nav a {
        flex: 1 1 auto;
        justify-content: center;
        padding: 6px 6px;
        font-size: 13px;
    }

    .hero-copy {
        padding: 14px 12px 16px;
    }

    .hero-landing .hero-copy {
        min-height: 0;
        padding: 22px 14px 20px;
    }

    .hero-actions .button-link {
        flex: 1 1 100%;
    }

    main {
        padding: 7px;
    }

    .section-body {
        padding: 10px;
    }

    /* The five footer links wrap on purpose: three on the first row, two on
       the second, every one centred in its cell — never four and an orphan. */
    .public-footer-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        padding: 4px 6px;
    }

    .public-footer-nav a {
        justify-content: center;
        padding: 0 4px;
        text-align: center;
    }

    .public-footer-meta {
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 350px) {
    .brand {
        gap: 6px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 21px;
    }

    .brand-name strong {
        font-size: 19px;
    }

    .hero h1 {
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
