/* Ramonia template (MyAAC 1.9), look Overlook (revamp 2026-11-21): the citadel as a fixed background, a sticky frosted
   top bar with the knight, boxes and section cards standing on the art, a bevelled header band, gold on
   warm dark brown. Vollkorn for titles, numbers and text, self-hosted. Every colour comes from the tokens on :root.
   Order: fonts / tokens / base / COMPONENT LAYER (card, box, buttons, fields, chips, tables, pager, notes, empty,
   tiles, lists, menu groups, badges) / frame (background, top bar, columns, launch pad, right column,
   countdown, ticker, footer) / pages (batches 2-5 restyle them onto the component layer) / phone / motion / focus. */

/* ---- fonts (templates/ramonia/fonts, OFL; Fontsource's latin and latin-ext subsets with their unicode-range: the
   browser fetches a latin-ext file only when a page has such a letter, e.g. Polish ą ł ż). Used everywhere. Vollkorn
   for everything (--hfont and --bfont stay two tokens, so a later split is one line): variable roman + italic,
   weights 400-900; nothing synthesizes a weight or a slant (body: font-synthesis:none). Vollkorn's default figures are
   old-style: body sets lining figures, and every rule that sets the font through the shorthand (which resets
   font-variant-numeric) sets lining-nums again; numbers in columns (.num, table cells, key-value values) are also
   tabular. ---- */
@font-face{font-family:"Vollkorn";src:url(fonts/vollkorn-var.woff2) format("woff2");font-weight:400 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Vollkorn";src:url(fonts/vollkorn-var-ext.woff2) format("woff2");font-weight:400 900;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Vollkorn";src:url(fonts/vollkorn-var-italic.woff2) format("woff2");font-weight:400 900;font-style:italic;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Vollkorn";src:url(fonts/vollkorn-var-italic-ext.woff2) format("woff2");font-weight:400 900;font-style:italic;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---- tokens. Used everywhere. The second block maps the C1A names that the not-yet-revamped pages still use. ---- */
:root{
  /* surfaces: page (art) < box / card < inset well; nothing darker than --inset */
  --bg:#120e0b;
  --box:#201914; --box-h1:#372b21; --box-h2:#2b2219; --inset:#15100d; --raise:#2a2119;
  --line:#3d3024; --line-soft:#2c231b; --edge:#34291f;
  --zebra:rgba(255,226,170,.022); --hover:rgba(247,207,122,.13);
  /* text and gold */
  --tx:#ece3d3; --tx2:#b9ad99; --tx-h:#f6e7c8; --gold:#e0b057; --gold-hi:#f7cf7a; --link:#f0c674; --link-h:#ffe2a6; --on-gold:#24170a;
  --focus:#ffd27a;
  /* states */
  --ok:#62d185; --ok-wash:rgba(98,209,133,.11); --bad:#f2735e; --bad-text:#ffa597; --bad-wash:rgba(242,115,94,.11);
  --warn:#f1b84a; --warn-wash:rgba(241,184,74,.11); --info:#73b9ea; --info-wash:rgba(115,185,234,.1);
  /* type, shape, layout */
  --hfont:"Vollkorn",Georgia,serif; --bfont:"Vollkorn",Georgia,serif;
  --r:12px; --ri:8px; --gap:16px; --wrap:1400px; --side-l:236px; --side-r:256px; --bar-h:68px;
  --ease:cubic-bezier(.3,.7,.2,1);

  /* C1A names -> the new palette (pages of batches 2-5 until their revamp) */
  --surface:var(--box); --raised:var(--box-h2); --text:var(--tx); --muted:var(--tx2); --title:var(--tx-h); --menu-text:var(--tx);
  --accent:var(--gold-hi); --accent-deep:#8a6a33; --on-accent:var(--on-gold); --accent-wash:rgba(247,207,122,.12);
  --link-hover:var(--link-h); --ok-ring:var(--ok-wash); --bad-bg:#5a2219; --on-bad:#fff1ea;
  --well:var(--inset); --well-line:var(--line); --input-bg:var(--inset); --input-line:var(--line); --hover-bg:var(--hover);
  --brass:linear-gradient(90deg,rgba(224,176,87,.6),rgba(224,176,87,.15)); --stitch:rgba(224,176,87,.3);
  --btn-main:linear-gradient(180deg,#f6cf7c,#d9a344); --btn-main-hover:linear-gradient(180deg,#ffdb8e,#e2ad4f);
  --font-display:var(--hfont); --font-body:var(--bfont); --r-btn:var(--ri); --r-panel:var(--r);
}

/* ---- base: reset, type. Used everywhere. ---- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--tx);font:400 16.5px/1.6 var(--bfont);font-kerning:normal;
  font-variant-numeric:lining-nums;font-synthesis:none}
h1,h2,h3,h4{margin:0;font-family:var(--hfont);font-weight:600;color:var(--tx-h);line-height:1.2}
p,dl,dd{margin:0}
img{max-width:100%}
a{color:var(--link);text-decoration:none;text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{color:var(--link-h)}
:is(.news-body,.rules-body,.lead,.char-comment,.guild-desc,.content p:not([class]),.content li) a:not(.btn){
  text-decoration:underline;text-decoration-color:rgba(240,198,116,.35)}
:is(.news-body,.rules-body,.lead,.char-comment,.guild-desc,.content p:not([class]),.content li) a:not(.btn):hover{text-decoration-color:currentColor}
.ic{width:1em;height:1em;flex:none;vertical-align:-.15em}
/* numbers in columns: lining, tabular figures (body already sets lining figures for the running text) */
.num,time,.tbl td,.kv dd{font-variant-numeric:lining-nums tabular-nums}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:12px;top:-80px;z-index:100;background:var(--gold-hi);color:var(--on-gold);padding:10px 14px;border-radius:var(--ri)}
.skip:focus{top:12px}
.browsehappy{margin:0;padding:8px 16px;background:var(--bad-bg);color:var(--on-bad)}

/* =====================================================================================================================
   COMPONENT LAYER. Every page builds on these; a new page-specific class needs a reason.
   ===================================================================================================================== */

/* ---- box: a raised surface with a header band (lighter, closed by a bevel). Used by: left and right column boxes,
   menu groups, the character search. ---- */
.box{position:relative;min-width:0;border-radius:var(--r);background:var(--box);box-shadow:0 0 0 1px var(--edge),0 14px 34px rgba(0,0,0,.55)}
.bx-h{position:relative;display:flex;align-items:center;gap:10px;margin:0;padding:0 14px;min-height:48px;border-radius:var(--r) var(--r) 0 0;
  font:600 19.5px/1 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h);background:linear-gradient(180deg,var(--box-h1),var(--box-h2));
  box-shadow:inset 0 1px 0 rgba(255,225,170,.16),0 1px 0 #0e0a08,0 2px 0 rgba(255,225,170,.06)}
.bx-h>span{padding-top:3px}
.bx-h .ic{width:18px;height:18px;color:var(--gold)}
.bx-b{padding:12px 12px 14px}
.bx-b>:last-child{margin-bottom:0}

/* ---- card: a section of the centre column; the header band sits inside the card, larger than a box's. Used by: the
   page card around $content, News ticker, news posts, the archive, the season countdown. ---- */
.card-h{display:flex;align-items:center;gap:12px;margin:0;padding:8px 20px;min-height:58px;border-radius:var(--r) var(--r) 0 0;
  background:linear-gradient(180deg,var(--box-h1),var(--box-h2));
  box-shadow:inset 0 1px 0 rgba(255,225,170,.16),0 1px 0 #0e0a08,0 2px 0 rgba(255,225,170,.06)}
.card-h h1,.card-h h2{flex:1;min-width:0;font-size:26px;line-height:1.1;padding-top:4px;overflow-wrap:anywhere}
.card-h>.ic{width:20px;height:20px;color:var(--gold)}
.card-r{color:var(--tx2);font-size:14px;white-space:nowrap}
.card-b{padding:18px 18px 20px}
.card-b>:last-child{margin-bottom:0}

/* ---- sub: a section inside a card = a panel: the heading band (the box header's gradient, a top highlight, a line
   under it) and its content on the raised surface under the band, in the panel's edge. A .sub without a .sub-title stays
   a plain group (no band, no panel). Content wells (.tbl-wrap, .empty, ...) sit inside it as insets. A .sub-title outside
   a .sub (the login's "New to Ramonia?", the wiki search) keeps the quiet band. Used by: account, guild, house,
   character, wiki and other pages of batches 2-5. ---- */
.sub{--sub-pad:16px;margin:0 0 22px;min-width:0}
.sub:last-child{margin-bottom:0}
.sub:has(>.sub-title){padding:0 var(--sub-pad) var(--sub-pad);border-radius:var(--ri);background:var(--raise);
  box-shadow:0 0 0 1px var(--edge),0 4px 10px rgba(0,0,0,.35)} /* within .card-b's padding (14 px on phones): .content scrolls sideways and clips */
.sub-title{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;margin:0 0 12px;padding:9px 14px 8px;border-radius:var(--ri);
  font:600 18px/1.2 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h);background:linear-gradient(180deg,rgba(255,225,170,.06),rgba(255,225,170,.025));
  box-shadow:inset 0 1px 0 rgba(255,225,170,.08),0 1px 0 #0e0a08,0 2px 0 rgba(255,225,170,.05)}
.sub:has(>.sub-title)>.sub-title{--band:linear-gradient(180deg,var(--box-h1),var(--box-h2));margin:0 calc(var(--sub-pad) * -1) 14px;padding:11px var(--sub-pad) 10px;
  border-radius:var(--ri) var(--ri) 0 0;background:var(--band);box-shadow:inset 0 1px 0 rgba(255,225,170,.14),0 1px 0 #0e0a08}
.sub-meta{font:500 14px/1 var(--bfont);font-variant-numeric:lining-nums;color:var(--tx2)}
.sub-body{padding:0}
.sub-body>:last-child{margin-bottom:0}
/* a tinted band: the tint over the band's gradient (.sub.x: as strong as the band rule, after it) */
.sub.sub-ok>.sub-title{background:linear-gradient(180deg,rgba(98,209,133,.15),rgba(98,209,133,.06)),var(--band)}
details.sub>summary{cursor:pointer;list-style:none}
details.sub>summary::-webkit-details-marker{display:none}
details.sub:not([open]){padding-bottom:0}
details.sub:not([open])>summary.sub-title{margin-bottom:0;border-radius:var(--ri)}
details.sub>summary::after{content:"";width:8px;height:8px;margin-left:auto;align-self:center;border-right:2px solid var(--gold);border-bottom:2px solid var(--gold);
  transform:rotate(45deg);transition:transform .2s var(--ease)}
details.sub[open]>summary::after{transform:rotate(-135deg)}
.lead{margin:0 0 14px;color:var(--tx2);max-width:68ch}
.lead b{color:var(--tx)}

/* ---- buttons: primary (gold) / secondary (gold outline) / danger (filled: the final confirm) / --danger (red outline:
   opens a dangerous flow) / --sm; .btn-main, .btn-quiet are the C1A names.
   Used everywhere. ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 18px;border:0;border-radius:999px;
  font:600 15px/1.1 var(--bfont);font-variant-numeric:lining-nums;text-decoration:none;white-space:nowrap;cursor:pointer;transition:filter .15s,background-color .15s,color .15s,box-shadow .15s}
.btn .ic{width:17px;height:17px}
.btn:active{transform:translateY(1px)}
.btn--pri,.btn-main{color:var(--on-gold);background:linear-gradient(180deg,#f6cf7c,#d9a344);box-shadow:inset 0 1px 0 rgba(255,245,210,.8),0 4px 14px rgba(224,160,60,.22)}
.btn--pri:hover,.btn-main:hover{color:var(--on-gold);filter:brightness(1.07);text-decoration:none}
.btn--sec,.btn-quiet{color:var(--gold-hi);background:rgba(255,210,140,.08);box-shadow:inset 0 0 0 1px rgba(240,198,116,.45)}
.btn--sec:hover,.btn-quiet:hover{color:#fff0cc;background:rgba(255,210,140,.15);text-decoration:none}
.btn-danger{color:var(--on-bad);background:var(--bad-bg);box-shadow:inset 0 0 0 1px var(--bad)}
.btn-danger:hover{color:#fff;background:#73291e;text-decoration:none}
.btn--danger{color:var(--bad-text);background:transparent;box-shadow:inset 0 0 0 1px rgba(242,115,94,.6)}
.btn--danger:hover{color:#ffd0c8;background:var(--bad-wash);text-decoration:none}
.btn--sm{min-height:32px;padding:0 12px;font-size:14px}
.btn-block{width:100%}
.btn[disabled],.btn[aria-disabled=true]{opacity:.5;cursor:not-allowed;filter:none}
.icon-btn{width:40px;padding:0}
a.btn-back::before{content:"";width:14px;height:14px;flex:none;background:currentColor;opacity:.8;transform:scaleX(-1);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
.ub-missing{color:var(--bad-text)}

/* ---- form fields: inputs, .field (label + input + message), choices, actions. Used by: every form page, the
   character search. ---- */
input[type=search]{-webkit-appearance:none;appearance:none}
input:not([type]),input[type=text],input[type=search],input[type=password],input[type=email],input[type=number],select,textarea{max-width:100%;min-height:42px;
  padding:0 12px;background:var(--inset);color:var(--tx);border:0;border-radius:var(--ri);font:inherit;box-shadow:inset 0 0 0 1px var(--line)}
textarea{padding:9px 12px}
input[type=file]{max-width:100%;color:var(--tx2);font:inherit;font-size:14px}
input[type=file]::file-selector-button{margin-right:10px;min-height:36px;padding:0 14px;border:0;border-radius:999px;cursor:pointer;
  font:600 14px/1 var(--bfont);font-variant-numeric:lining-nums;color:var(--gold-hi);background:rgba(255,210,140,.08);box-shadow:inset 0 0 0 1px rgba(240,198,116,.45)}
input[type=file]::file-selector-button:hover{background:rgba(255,210,140,.15)}
input:hover,select:hover,textarea:hover{box-shadow:inset 0 0 0 1px #5a4733}
input[type=file]:hover{box-shadow:none}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--gold)}
/* a dropdown's own chevron, off the right edge (the native arrow sits on it); not a list box (multiple / size > 1) */
select:not([multiple]):not([size]),select[size="1"]:not([multiple]){-webkit-appearance:none;appearance:none;padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0b057' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:14px 14px}
input::placeholder,textarea::placeholder{color:#9a8e7c;opacity:1}
.field label,.form .field>label,.choices>legend{display:block;margin-bottom:6px;font-weight:500;font-size:14.5px;color:var(--tx-h)}
.hint{margin-top:5px;font-size:14px;color:var(--tx2)}
.label-opt{font-weight:400;color:var(--tx2)}
.form .field{margin:0 0 14px}
.form .field input:not([type=checkbox]):not([type=radio]),.form .field select,.form .field textarea{width:100%;max-width:440px}
.form .field textarea{max-width:100%;min-height:140px;resize:vertical}
.field-inline{display:flex;align-items:center;gap:10px}
.field-inline img{height:12px;width:auto}
.field-msg{margin:5px 0 0;font-size:14px;color:var(--tx2)}
.field-msg:empty{display:none}
.field.is-invalid input,.field.is-invalid select{box-shadow:inset 0 0 0 2px var(--bad)}
.field.is-invalid .field-msg,.choices.is-invalid .field-msg,.choice.is-invalid+.field-msg{color:var(--bad-text)}
.field.is-valid input{box-shadow:inset 0 0 0 1px var(--ok)}
.field.is-valid .field-msg{color:var(--ok)}
.choices{margin:0 0 14px;padding:0;border:0;min-width:0}
.choices-row>.choice{display:inline-flex;margin-right:22px;vertical-align:top} /* not baseline: a checked control's dot moves it */
.choice{display:flex;align-items:flex-start;gap:10px;min-height:40px;padding:8px 0;cursor:pointer}
/* checkboxes and radios in the site's colours (choices, rank levels, any form) */
input[type=checkbox],input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-grid;place-items:center;flex:none;width:18px;height:18px;margin:0;
  border-radius:5px;background:var(--inset);box-shadow:inset 0 0 0 1.5px #6a5539;cursor:pointer;vertical-align:-3px;transition:background-color .15s,box-shadow .15s}
input[type=radio]{border-radius:50%}
input[type=checkbox]:not(:disabled):hover,input[type=radio]:not(:disabled):hover{box-shadow:inset 0 0 0 1.5px var(--gold)}
input[type=checkbox]:checked{background:linear-gradient(180deg,#f6cf7c,#d9a344);box-shadow:none}
input[type=checkbox]:checked::before{content:"";width:5px;height:10px;margin-top:-2px;border:solid var(--on-gold);border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
input[type=radio]:checked{box-shadow:inset 0 0 0 1.5px var(--gold)}
input[type=radio]:checked::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--gold-hi)}
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.choice input{margin:2px 0 0} /* after the global rule: level with the label's first line */
.choice.is-invalid input{box-shadow:inset 0 0 0 1.5px var(--bad)}
input[type=checkbox]:disabled,input[type=radio]:disabled{opacity:.45;cursor:not-allowed}
/* Windows high contrast drops box-shadows and backgrounds: the browser's own controls there */
@media (forced-colors:active){
  input[type=checkbox],input[type=radio]{-webkit-appearance:auto;appearance:auto}
  input[type=checkbox]::before,input[type=radio]::before{content:none}
  .btn{border:1px solid ButtonText}
}
.choice.is-invalid{color:var(--bad-text)}
.form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0 0}
.sub+.form-actions{margin-top:0}
form.form-actions{margin:16px 0 0}
.search-row{display:flex;gap:8px}
.search-row input{flex:1;width:100%;min-width:0}

/* ---- form sections: one panel per group of fields (a raised surface with the heading band on top), the fields on a
   two-column grid on desktop (.field--full spans both), one column on phones; .form-narrow centres a form. Used by:
   create account; the account forms of batch 4b. ---- */
.form-narrow{max-width:720px;margin-left:auto;margin-right:auto}
.card-b:has(> .form-narrow) > :is(.note,.error,.success,.warning){max-width:720px;margin-left:auto;margin-right:auto}
.fsec{margin:0 0 18px;border-radius:var(--r);background:linear-gradient(180deg,#2a2119,#231b15 120px);
  box-shadow:inset 0 1px 0 rgba(255,225,170,.06),0 0 0 1px var(--edge),0 8px 20px rgba(0,0,0,.3)}
.fsec-h{margin:0;padding:11px 18px 10px;border-radius:var(--r) var(--r) 0 0;font:600 18px/1.2 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h);
  background:linear-gradient(180deg,rgba(255,225,170,.07),rgba(255,225,170,.03));box-shadow:0 1px 0 #0e0a08,0 2px 0 rgba(255,225,170,.05)}
.fsec-b{padding:16px 18px 6px}
.sub:has(>.sub-title) .fsec{background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a} /* in a section panel: a well, not a raised panel in a raised panel */
.fsec-b>.form-actions{margin:4px 0 12px}
.fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;align-items:start}
.fgrid>.field--full{grid-column:1/-1}
.form .fsec .field{margin:0 0 14px}
.form .fsec .field input:not([type=checkbox]):not([type=radio]),.form .fsec .field select{max-width:none}
.fsec .choices{margin:0 0 10px}
@media (max-width:640px){
  .fgrid{grid-template-columns:minmax(0,1fr)}
  .fsec-b{padding:14px 14px 4px}
}

/* ---- filters: a toolbar of labelled selects + a button in an inset well, above a list. Used by: houses, spells. ---- */
.filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px;margin:0 0 22px;padding:12px;border-radius:var(--r);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.filters .field{display:flex;flex-direction:column;gap:4px;flex:1 1 130px;max-width:300px;margin:0;font-size:13px;color:var(--tx2)}
.filters select{width:100%}

/* ---- chips: category filters. Used by: spells, rules, server info. ---- */
.chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 14px}
.chip{display:inline-flex;align-items:center;min-height:34px;padding:0 13px;border-radius:999px;color:var(--tx);font-size:14.5px;
  background:var(--inset);box-shadow:inset 0 0 0 1px #33281e;text-decoration:none}
.chip:hover{color:var(--gold-hi);text-decoration:none}
.chip[aria-current]{color:var(--on-gold);background:var(--gold-hi);box-shadow:none;font-weight:600}

/* ---- tables: .tbl-wrap (inset well, scrolls sideways) + .tbl; zebra rows, hover, numbers right, sortable headers
   (aria-sort), .sub-line (a second line in a cell), .rank (rank numbers; top 3: .medal-N on the row).
   Used by: highscores, online, deaths, bans, houses, guilds, spells, account (batches 2-5). ---- */
.tbl-wrap{overflow-x:auto;border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.tbl{width:100%;border-collapse:collapse;font-size:14.5px}
.tbl th{padding:9px 12px;text-align:left;font-weight:600;font-size:14px;color:var(--tx2);background:#1c1611;border-bottom:1px solid var(--line)}
.tbl td{padding:9px 12px;border-bottom:1px solid #221a14}
.tbl tbody tr:nth-child(even){background:var(--zebra)}
.tbl tbody tr:last-child td{border-bottom:0}
.tbl tbody tr:hover{background:var(--hover)}
.tbl .num{text-align:right;white-space:nowrap}
.tbl time{white-space:nowrap}
.tbl a{color:var(--link);font-weight:500;overflow-wrap:break-word}
.tbl a:hover{color:var(--link-h)}
.tbl th a{color:var(--tx2);font-weight:600}
.tbl th[aria-sort] :is(a,.wiki-sort){color:var(--gold-hi)}
.sub-line{display:block;color:var(--tx2);font-size:13.5px;line-height:1.3}
.rank{display:inline-grid;place-items:center;min-width:28px;font:600 16px/1 var(--hfont);font-variant-numeric:lining-nums tabular-nums;color:var(--tx2)}
.tbl th[aria-sort] :is(a,.wiki-sort)::after{content:"";display:inline-block;margin-left:6px;border:5px solid transparent;vertical-align:middle}
.tbl th[aria-sort=ascending] :is(a,.wiki-sort)::after{border-bottom-color:var(--gold);margin-top:-5px}
.tbl th[aria-sort=descending] :is(a,.wiki-sort)::after{border-top-color:var(--gold);margin-top:5px}

/* ---- pager: page numbers, the current one gold, gaps as an ellipsis; .pager-info "Showing 1-50 of 312" (the only place a
   count is shown). Used by: News ticker, highscores, lists. ---- */
.pager{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:16px}
.pager a,.pager span:not(.pg-gap):not(.num),.pg{display:inline-grid;place-items:center;min-width:38px;height:38px;padding:0 12px;border-radius:999px;
  color:var(--tx);background:var(--inset);box-shadow:inset 0 0 0 1px #33281e;font-weight:500;text-decoration:none}
.pager a:hover{color:var(--gold-hi);box-shadow:inset 0 0 0 1px #5d482f;text-decoration:none}
.pager [aria-current],.pg.is-cur{color:var(--on-gold);background:linear-gradient(180deg,#f6cf7c,#d9a344);box-shadow:none}
.pg-gap{align-self:center;color:var(--tx2);padding:0 2px}
.pager-info{flex-basis:100%;margin:2px 0 0;text-align:center;color:var(--tx2);font-size:14px}

/* ---- notes: MyAAC's .note / .success / .warning / .error (replace tools/css/messages.css). Used everywhere. ---- */
.note,.success,.warning,.error{position:relative;margin:0 0 12px;padding:11px 14px 11px 16px;border:0;border-radius:var(--ri);
  font:400 15px/1.45 var(--bfont);font-variant-numeric:lining-nums;color:var(--tx);background-image:none}
.note{background-color:var(--info-wash);box-shadow:inset 3px 0 0 var(--info),inset 0 0 0 1px rgba(115,185,234,.3)}
.success{background-color:var(--ok-wash);box-shadow:inset 3px 0 0 var(--ok),inset 0 0 0 1px rgba(98,209,133,.3)}
.warning{background-color:var(--warn-wash);box-shadow:inset 3px 0 0 var(--warn),inset 0 0 0 1px rgba(241,184,74,.3)}
.error{background-color:var(--bad-wash);box-shadow:inset 3px 0 0 var(--bad),inset 0 0 0 1px rgba(242,115,94,.3)}
.msg-list{margin:6px 0 0;padding-left:20px}
.msg-list li+li{margin-top:2px}

/* ---- empty state: one sentence, optionally an action. Used by: ticker, news, Top 3, lists of every batch. ---- */
.empty{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:26px 16px;color:var(--tx2);
  border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px var(--line-soft)}
.empty-sm{padding:14px 12px}
.empty p{margin:0}
.empty .form-actions{justify-content:center;margin:4px 0 0}
.empty-url{max-width:100%;font-size:14px;color:var(--tx2);overflow-wrap:anywhere;font-variant-numeric:lining-nums}

/* ---- key-value: .tiles (big value over a label, inset wells; server rates, stats) and .kv (rows of label / value;
   account, character, house). Used by: season countdown, server info, account, character, house pages. ---- */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;margin:0 0 14px}
.tile{display:flex;flex-direction:column;gap:2px;padding:14px 12px;border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.tile dd:not(.tile-sub),.tile b{order:-1;margin:0;font:600 32px/1.1 var(--hfont);color:var(--gold-hi);font-variant-numeric:lining-nums tabular-nums}
.tile dt,.tile span{color:var(--tx);font-size:14.5px}
.tile .x{margin-left:2px;font:600 .66em/1 var(--bfont);font-variant-numeric:lining-nums;color:var(--gold)} /* the rate sign, smaller than the number */
.tile small,.tile .tile-sub{margin:0;color:var(--tx2);font-size:13px}
.kv{display:grid;gap:0;border-radius:var(--ri);overflow:hidden}
.kv div{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:38px;padding:6px 10px}
.kv div:nth-child(even){background:var(--zebra)}
.kv dt{display:flex;align-items:center;gap:8px;color:var(--tx2)}
.kv dd{font-weight:500;color:var(--tx);text-align:right}

/* ---- lists with zebra rows inside an inset well (.list). Used by: Top 3, catch-up stages, archive, latest deaths. ---- */
.list{list-style:none;margin:0;padding:0;border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a;overflow:hidden}
.list>li{padding:8px 10px}
.list>li:nth-child(even){background:var(--zebra)}
.list>li+li{border-top:1px solid #221a14}
/* .events: a dated list (time | text) inside .list. Used by: latest deaths, the character's deaths (batch 3a). */
.events>li{display:grid;grid-template-columns:136px minmax(0,1fr);gap:2px 14px;align-items:baseline;padding:10px 12px}
.events time{color:var(--tx2);font-size:14px;white-space:nowrap}
.events span{overflow-wrap:anywhere}
.content .events a:not(.btn){text-decoration:none}
.events b,.events strong{color:var(--tx-h);font-weight:600}

/* ---- badges: small labels. Used by: account, guilds, server info, the legacy world mark. ---- */
.badge{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;font:600 13px/1.4 var(--bfont);font-variant-numeric:lining-nums;white-space:nowrap;
  color:var(--tx2);box-shadow:inset 0 0 0 1px var(--line)}
.badge-ok{color:var(--ok);background:var(--ok-wash);box-shadow:inset 0 0 0 1px rgba(98,209,133,.45)}
.badge-bad{color:var(--bad-text);background:var(--bad-wash);box-shadow:inset 0 0 0 1px rgba(242,115,94,.45)}
.badge-muted{color:var(--tx2)}
.badge-accent{color:var(--gold-hi);background:var(--accent-wash);box-shadow:inset 0 0 0 1px rgba(224,176,87,.45)}

/* ---- outfit tile (outfit.php image, or the placeholder figure). Used by: boosted, Top lists, character, online. ---- */
.outfit{width:44px;height:44px;flex:none;display:grid;place-items:center}
.outfit svg{width:30px;height:30px;fill:#5a4733}
.outfit-lg{width:64px;height:64px}
.outfit-lg svg{width:44px;height:44px}
.outfit img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}

/* ---- menu groups: a box whose band toggles the list (grid-rows animation; without JS every group stays open);
   links with zebra rows; the hovered, focused and current link lifts (prefers-reduced-motion: no transition, below);
   featured links: a gem that glints on hover + a tag. Used by: the left column. ---- */
.mg-h{font-size:inherit}
.mg-btn{width:100%;border:0;cursor:pointer;text-align:left}
.mg-btn:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.mg-title{flex:1;padding-top:3px}
.mg-chev{width:20px!important;height:20px!important;color:var(--tx2)!important;margin-right:-2px;transition:transform .35s var(--ease)}
.mg-btn:hover .mg-chev,.mg-btn:hover .mg-ic{color:var(--gold-hi)!important}
.mg-body{display:grid;grid-template-rows:1fr;transition:grid-template-rows .4s var(--ease)}
.mg-inner{overflow:hidden;min-height:0;visibility:visible;transition:visibility 0s}
.js .mg.is-closed .mg-inner{visibility:hidden;transition:visibility 0s linear .4s}
.js .mg.is-closed .mg-body{grid-template-rows:0fr}
.mg-noanim .mg,.mg-noanim .mg *{transition:none!important}
.js .mg.is-closed .mg-chev{transform:rotate(-90deg)}
.js .mg.is-closed .mg-btn{border-radius:var(--r);transition:border-radius .2s .2s}
.mg-list{display:flex;flex-direction:column;gap:3px;list-style:none;margin:0;padding:8px 8px 10px} /* the gap: lifted rows never touch */
.mg-list li{position:relative;transition:opacity .3s,transform .3s;transition-delay:calc(var(--i, 0) * 22ms)}
.mg-list li:nth-child(even){background:var(--zebra);border-radius:var(--ri)}
.js .mg.is-closed .mg-list li{opacity:0;transform:translateY(-6px);transition-delay:0s}
.ml{position:relative;z-index:1;display:flex;align-items:center;gap:10px;min-height:38px;padding:8px 10px;border-radius:var(--ri);color:var(--tx);
  text-decoration:none;transition:color .15s,box-shadow .2s,background-color .2s,transform .2s var(--ease)}
.ml-t{flex:1;min-width:0}
/* the hovered / focused / current row rises off the panel: a lighter surface, a top highlight, a shadow below */
.ml:is(:hover,:focus-visible,[aria-current]){color:var(--gold-hi);background:var(--raise);transform:translateY(-1px);text-decoration:none;
  box-shadow:inset 0 1px 0 rgba(255,225,170,.14),0 3px 6px rgba(0,0,0,.55),0 0 0 1px var(--edge)}
.ml[aria-current]{font-weight:600}
/* one row lifted at a time: while another row of the list is hovered, the current page settles flat (its gold text stays) */
.mg-list:hover .ml[aria-current]:not(:hover):not(:focus-visible){transform:none;background:rgba(247,207,122,.06);box-shadow:none}
.ml--feat{font-weight:600;color:var(--tx-h)}
.gem{position:relative;width:10px;height:10px;flex:none;margin:0 2px 0 1px;overflow:hidden;transform:rotate(45deg);
  background:linear-gradient(135deg,#ffe7a8,#d89a35 55%,#8a5a1a);box-shadow:0 0 6px rgba(247,207,122,.45)}
.gem::after{content:"";position:absolute;inset:-4px;background:linear-gradient(90deg,transparent 35%,rgba(255,255,255,.95) 50%,transparent 65%);transform:translateX(-120%)}
.ml--feat:hover .gem::after,.ml--feat:focus-visible .gem::after{transform:translateX(120%);transition:transform .6s ease}
.tag{flex:none;font-size:13px;font-weight:500;color:var(--tx2)}

/* =====================================================================================================================
   FRAME (template.php)
   ===================================================================================================================== */

/* ---- background: the citadel, fixed, darkened toward the bottom ---- */
.art{position:fixed;inset:0;z-index:-1;background:
  linear-gradient(180deg,rgba(18,14,11,.05) 0,rgba(18,14,11,.3) 340px,rgba(18,14,11,.74) 820px,rgba(18,14,11,.86) 100%),
  radial-gradient(70% 50% at 50% 0,rgba(255,170,60,.14),transparent 70%),
  url(img/bg.jpg) center top/cover no-repeat,var(--bg);
  background-image:linear-gradient(180deg,rgba(18,14,11,.05) 0,rgba(18,14,11,.3) 340px,rgba(18,14,11,.74) 820px,rgba(18,14,11,.86) 100%),
  radial-gradient(70% 50% at 50% 0,rgba(255,170,60,.14),transparent 70%),image-set(url(img/bg.webp) type("image/webp"),url(img/bg.jpg) type("image/jpeg"))}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 16px}

/* ---- top bar: knight + wordmark | status | account; sticky, frosted ---- */
.top{position:sticky;top:0;z-index:30;background:rgba(20,15,11,.8);-webkit-backdrop-filter:blur(12px) saturate(1.2);backdrop-filter:blur(12px) saturate(1.2);
  box-shadow:0 1px 0 rgba(255,210,140,.14),0 10px 30px rgba(0,0,0,.45)}
body:has(#ma-admin-bar) .top{top:32px}
.top-in{display:flex;align-items:center;gap:20px;height:var(--bar-h)}
.brand{display:flex;align-items:center;gap:8px;flex:none;text-decoration:none}
.brand picture{display:block;line-height:0}
.brand-k{width:74px;height:auto;margin:16px 0 -24px;filter:drop-shadow(0 6px 10px rgba(0,0,0,.6));transition:transform .35s cubic-bezier(.3,1.5,.5,1)}
.brand:hover .brand-k{transform:translateY(-3px) rotate(-3deg)}
.brand-t{display:flex;flex-direction:column;align-items:center;line-height:1}
.brand-w{width:132px;height:auto;filter:drop-shadow(0 3px 6px rgba(0,0,0,.6))}
.legacy-cap{margin-top:-4px;font:600 12px/1 var(--bfont);font-variant-numeric:lining-nums;letter-spacing:.32em;text-indent:.32em;color:var(--gold-hi);text-transform:uppercase}
.brand:focus-visible{outline-offset:4px}
.seg{display:flex;align-items:center;min-height:36px;padding-left:20px;box-shadow:inset 1px 0 0 rgba(255,210,140,.14)}
.st{flex:none;gap:22px;color:var(--tx2);font-size:14.5px}
.st-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:var(--tx2);text-decoration:none}
a.st-item:hover{color:var(--tx)}
.st-item b{color:var(--tx);font-weight:600}
.st-item .ic{width:16px;height:16px;color:var(--gold)}
.st-on b{color:#80e09c}
.st-off b{color:var(--tx2)}
.st-dot{width:9px;height:9px;border-radius:50%;background:#46c66f;animation:pulse 2.4s ease-out infinite}
.st-off .st-dot{background:#8c4a3c;animation:none}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(70,198,111,.55)}70%{box-shadow:0 0 0 8px rgba(70,198,111,0)}100%{box-shadow:0 0 0 0 rgba(70,198,111,0)}}
.badge-world{color:var(--on-gold);background:linear-gradient(180deg,#f6cf7c,#d9a344);box-shadow:none}
.bar-gap{flex:1}
.acc{display:flex;align-items:center;gap:8px;flex:none}
.acc--user{gap:14px}
.acc-coins,.acc-prem{display:inline-flex;align-items:center;gap:6px;font-size:14.5px;white-space:nowrap}
.acc-coins .ic{width:17px;height:17px;color:var(--gold)}
.acc-coins b{color:var(--tx);font-weight:600}
.acc-prem{color:#90e2a8;font-weight:500}
.acc-prem .ic{width:16px;height:16px}
.acc-prem small{margin-left:2px;color:var(--tx2);font-size:13px}
.dd{position:relative}
.dd-chev{width:16px!important;height:16px!important;transition:transform .25s}
.dd-btn[aria-expanded=true] .dd-chev{transform:rotate(180deg)}
.dd-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:40;min-width:220px;padding:6px;border-radius:var(--r);background:#241c16;
  box-shadow:0 0 0 1px var(--line),0 18px 40px rgba(0,0,0,.6);animation:dd-in .18s var(--ease)}
.dd-menu[hidden]{display:none}
@keyframes dd-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.dd-menu ul{list-style:none;margin:0;padding:0}
.dd-menu a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:6px;color:var(--tx);text-decoration:none}
.dd-menu a .ic{width:17px;height:17px;color:var(--gold)}
.dd-menu a:hover{background:var(--hover);color:var(--gold-hi)}
.dd-who{margin:0 0 4px;padding:6px 10px 9px;color:var(--tx2);font-size:13.5px;border-bottom:1px solid var(--line-soft);overflow-wrap:anywhere}
.dd-who b{color:var(--tx-h)}
.dd-st{display:block;margin-top:2px;color:#90e2a8}
.dd-out{color:var(--tx2)!important}
.dd-nojs{display:none}
.no-js .dd-nojs{display:inline-flex}
.no-js .dd-btn{display:none}
.mob-row,.drawer-top,.scrim{display:none}

/* ---- columns: the boxes and cards stand straight on the background (no rails) ---- */
.page{padding-top:34px}
#main,#ticker{scroll-margin-top:calc(var(--bar-h) + 12px)}
body:has(#ma-admin-bar) :is(#main,#ticker){scroll-margin-top:calc(var(--bar-h) + 44px)}
.cols{display:grid;grid-template-columns:var(--side-l) minmax(0,1fr) var(--side-r);gap:var(--gap);align-items:start}
.col{display:flex;flex-direction:column;gap:var(--gap);min-width:0}
.col--c{gap:22px}

/* ---- launch pad: Download client, Wiki + Map Viewer, socials (left column top) ---- */
.launch{display:flex;flex-direction:column;gap:6px}
.dl{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:var(--r);color:var(--on-gold);text-decoration:none;
  background:linear-gradient(180deg,#f6cf7c,#d39b3c);box-shadow:inset 0 1px 0 rgba(255,245,210,.8),0 10px 26px rgba(224,160,60,.22)}
.dl:hover{color:var(--on-gold);filter:brightness(1.06);text-decoration:none}
.dl-ic{width:30px;height:30px}
.dl span{display:flex;flex-direction:column;min-width:0}
.dl b{font:600 20px/1.1 var(--hfont);font-variant-numeric:lining-nums;padding-top:3px;white-space:nowrap}
.dl small{font-size:13px;color:#4f3410}
.dl.is-off{cursor:not-allowed;filter:saturate(.25) brightness(.62);box-shadow:inset 0 1px 0 rgba(255,245,210,.35)}
.dl.is-off:hover{filter:saturate(.25) brightness(.62)}
.dl.is-off small{color:#2b1d0c;font-weight:600}
.launch-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:6px}
.launch-2 a{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 8px;border-radius:var(--ri);background:var(--box);
  box-shadow:0 0 0 1px var(--edge),0 6px 14px rgba(0,0,0,.35);color:var(--tx-h);font-weight:600;font-size:14.5px;white-space:nowrap;text-decoration:none}
.launch-2 a .ic{width:17px;height:17px;color:var(--gold)}
.launch-2 a:hover{color:var(--gold-hi);box-shadow:0 0 0 1px #6b5233;text-decoration:none}

/* socials: icon tiles; Discord alone = a labelled button with the online count */
.soc{display:flex;gap:4px}
.soc a{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:38px;height:38px;border-radius:999px;color:var(--tx2);text-decoration:none;
  transition:background-color .15s,color .15s}
.soc a .ic{width:20px;height:20px}
.soc a:hover{background:var(--hover);color:var(--gold-hi);text-decoration:none}
.soc--pad{display:grid;grid-template-columns:repeat(auto-fit,minmax(40px,1fr));gap:6px}
/* solid like the Wiki / Map Viewer pair: the pad sits on the bright sky of the background */
.soc--pad a{height:36px;border-radius:var(--ri);background:var(--box);box-shadow:0 0 0 1px var(--edge),0 6px 14px rgba(0,0,0,.35)}
.soc--pad a:hover{background:var(--raise);box-shadow:0 0 0 1px #6b5233,0 6px 14px rgba(0,0,0,.35)}
.soc--solo a{padding:0 14px;color:var(--tx-h);font-weight:600;font-size:14.5px}
.soc--solo a .ic{color:var(--gold)}
.soc-n{display:inline-flex;align-items:center;gap:5px;margin-left:6px;padding-left:10px;box-shadow:inset 1px 0 0 rgba(255,210,140,.18);color:var(--tx2);font-weight:500;font-size:13.5px}
.soc-n i{width:7px;height:7px;border-radius:50%;background:#46c66f}
.soc-n .num{color:var(--tx)}
.soc-badge{position:absolute;top:-6px;right:-4px;min-width:20px;height:18px;padding:0 5px;border-radius:999px;display:grid;place-items:center;
  font:600 11px/1 var(--bfont);font-variant-numeric:lining-nums;color:#0f2a17;background:#6fd892;box-shadow:0 0 0 2px #1c1510}

/* ---- character search (a box; posts to characters) ---- */
.srch label{cursor:text}
.srch-b{display:flex;gap:8px;padding:12px}
.srch-b input{flex:1;min-width:0;width:100%}
.srch-go{width:42px;min-height:42px;padding:0;border-radius:var(--ri)}

/* ---- right column boxes: Shop, Top 3, EXP Catch-Up, Boosted ---- */
.rb-t{margin:0 0 10px;color:var(--tx2);font-size:14.5px}
.rb-btn{margin-top:12px}
.t3>li{display:grid;grid-template-columns:30px 44px minmax(0,1fr) auto;align-items:center;gap:10px}
.t3-who{display:flex;flex-direction:column;min-width:0}
.t3-who a{color:var(--tx);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.t3-who a:hover{color:var(--gold-hi)}
.t3-who small{color:var(--tx2);font-size:13px}
.t3-lv{color:var(--tx-h);font-weight:600}
.xp-top{display:flex;align-items:center;gap:8px;margin:0 0 8px;color:var(--tx)}
.xp-top .ic{color:var(--gold)}
.xp-top b{color:var(--tx-h)}
.xp>li{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.xp-b{font:600 20px/1.1 var(--hfont);font-variant-numeric:lining-nums tabular-nums;color:var(--gold-hi)}
.xp-u{color:var(--tx2);font-size:14px}
.bst{list-style:none;margin:0 0 8px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.bst:last-child{margin-bottom:0}
.bst-c{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 8px;text-align:center;border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.bst-n{color:var(--tx-h);font-weight:600;overflow-wrap:anywhere}
.bst-k{color:#ffb3a8;font-weight:500;font-size:12.5px}
.bst-v{display:inline-flex;align-items:center;gap:5px;color:var(--tx2);font-size:14px}
.bst-v b{color:var(--gold-hi);font-size:16px;font-weight:600}
.bst-v .ic{color:var(--gold)}

/* ---- season countdown (a card at the top of the centre while season_start is in the future) ---- */
.cd{background:radial-gradient(120% 140% at 0 0,rgba(224,176,87,.16),transparent 60%),var(--box)}
.cd-b{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px}
.cd-sub{flex:1 1 260px;color:var(--tx2)}
.cd-nums{display:flex;gap:10px;margin:0}
.cd-nums div{display:flex;flex-direction:column;align-items:center;min-width:70px;padding:10px 8px;border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.cd-nums dd{font:600 32px/1 var(--hfont);font-variant-numeric:lining-nums tabular-nums;color:var(--gold-hi)}
.cd-nums dt{font-size:13px;color:var(--tx2)}

/* ---- News ticker (home, pages/news/ticker.php; rows: ramonia_ticker_list of config.php): compact one-line rows (a
   channel icon, the title cut with an ellipsis, the short date, a chevron); open = the full title, author, channel,
   time, the text, the Discord link. Without JS every row is open. Under it .pager--compact: small page numbers left,
   "All news" right. ---- */
.tk{list-style:none;margin:0;padding:0;border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a;overflow:hidden}
.tk-row+.tk-row{border-top:1px solid #241c15}
.tk-row:nth-child(even){background:var(--zebra)}
.tk-row.is-open{background:rgba(247,207,122,.05)}
.tk-h{font:inherit;color:inherit}
.tk-head{display:flex;align-items:center;gap:10px;width:100%;padding:7px 12px;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.tk-head:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.tk-head:hover .tk-title{color:var(--gold-hi)}
.tk-mark{flex:none;display:grid;place-items:center;width:18px;height:18px;color:var(--tx2)}
.tk-mark .ic{width:16px;height:16px}
.tk-row--hot .tk-mark{color:var(--gold)}
.tk-title{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--tx-h);font-weight:500;font-size:14.5px;line-height:1.5}
.tk-row.is-open .tk-title{white-space:normal;overflow-wrap:anywhere;color:var(--gold-hi)}
.tk-row.is-open .tk-head{align-items:flex-start}
.tk-date{flex:none;color:var(--tx2);font-size:13.5px;white-space:nowrap}
.tk-x{width:14px!important;height:14px!important;flex:none;color:var(--gold);transition:transform .3s}
.tk-row.is-open :is(.tk-mark,.tk-date,.tk-x){margin-top:2px}
.tk-row.is-open .tk-x{transform:rotate(180deg)}
.tk-body{display:grid;grid-template-rows:1fr;transition:grid-template-rows .35s var(--ease)}
.js .tk-row:not(.is-open) .tk-body{grid-template-rows:0fr}
.tk-inner{overflow:hidden;min-height:0;visibility:visible;transition:visibility 0s}
.js .tk-row:not(.is-open) .tk-inner{visibility:hidden;transition:visibility 0s linear .35s}
.tk-text{padding:2px 12px 14px 40px;font-size:15px}
.tk-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin:0 0 10px;color:var(--tx2);font-size:14px}
.tk-author{display:inline-flex;align-items:center;gap:6px;color:var(--tx)}
.tk-av{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:12px;font-weight:600;background:#3b2e22;color:var(--gold-hi)}
.tk-ch{display:inline-flex;align-items:center;gap:5px}
.tk-ch .ic{width:15px;height:15px;color:var(--gold)}
.tk-p{margin:0 0 10px;max-width:72ch;overflow-wrap:anywhere}
.tk-link{font-weight:600}
.pager--compact{justify-content:space-between;align-items:center;gap:8px 12px;margin-top:10px}
.pgs{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.pager--compact .pg{min-width:28px;height:28px;padding:0 8px;font-size:13px}
.pager .pager-all{display:inline-flex;align-items:center;min-width:0;height:auto;min-height:32px;margin-left:auto;padding:0;border-radius:0;
  background:none;box-shadow:none;font-size:14px;font-weight:600;color:var(--link);white-space:nowrap}
.pager .pager-all::after{content:"\2192";content:"\2192"/"";margin-left:.35em}
.pager .pager-all:hover{color:var(--link-h);box-shadow:none;text-decoration:underline}

/* =====================================================================================================================
   PAGES (C1A rules on the new tokens; batches 2-5 move them onto the component layer)
   ===================================================================================================================== */

/* ---- login (account.login): the form beside a "New to Ramonia?" box ---- */
.acc-login{display:grid;grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:16px 32px;align-items:start}
.acc-login-form .form-actions{gap:12px 18px}
.acc-login-new{padding:0 0 4px;border-radius:var(--r);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.acc-login-new .sub-title{border-radius:var(--r) var(--r) 0 0}
.acc-login-new p,.acc-login-new .btn{margin:0 16px 12px}
@media (max-width:760px){.acc-login{grid-template-columns:minmax(0,1fr)}}

/* ---- My account (account.management) ---- */
.acc-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin:0 0 16px}
.acc-id{flex:1 1 240px;min-width:0}
.acc-name{margin:0;font:600 28px/1.15 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h);overflow-wrap:anywhere}
.acc-sub{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 0}
.acc-note{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.acc-note p{flex:1 1 280px;margin:0}
.acc-note form{margin:0}
.acc-tiles{margin:0 0 16px}
.acc-chars td{white-space:nowrap}
.acc-chars td:first-child{white-space:normal;min-width:160px}
.acc-chars .btn--sm{min-height:30px}
.acc-delete{margin-left:auto}
.acc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
.acc-kv dd{overflow-wrap:anywhere}
.acc-kv dd span[style*="green"]{color:var(--ok)!important}
.acc-kv dd span[style*="red"]{color:var(--bad-text)!important}
.acc-logs .tbl td:first-child{min-width:220px}
@media (max-width:1180px){ .acc-grid{grid-template-columns:minmax(0,1fr)} }
@media (max-width:560px){ .acc-delete{margin-left:0} }

/* ---- community lists: event lists (deaths / kills), outfit cells ---- */
.tbl .tbl-outfit{width:60px;padding-top:4px;padding-bottom:4px}

/* ---- character page (characters, characters.form): the head (outfit tile, name, level + vocation, badges), information
   beside the equipment, skills beside quests; the equipment like the game's inventory ---- */
.char-search .search-row input{max-width:360px}
.char-head{display:flex;align-items:center;gap:16px;margin:0 0 18px;flex-wrap:wrap}
.char-id{flex:1 1 240px;min-width:0}
.char-name{margin:0;font:600 28px/1.15 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h);overflow-wrap:anywhere}
.char-sub{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 0;color:var(--tx2)}
.char-old{margin:4px 0 0;color:var(--tx2);font-size:14px}
.char-edit{margin-left:auto}
.char-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"info eq";gap:0 22px;align-items:start}
.char-grid{display:contents}
.char-info{grid-area:info}
.char-eq-box{grid-area:eq}
.char-main>.sub,.char-grid>.sub{margin-bottom:22px}
.char-kv dd{overflow-wrap:anywhere}
.char-comment{margin-top:12px;padding:12px 14px;border-radius:var(--ri);background:var(--inset);box-shadow:inset 3px 0 0 var(--gold);overflow-wrap:anywhere}
/* equipment: 3 columns of 72 px slots (32 px items at 2x), the side columns half a slot (40 px) lower */
.eq{display:grid;grid-template-columns:repeat(3,72px);gap:8px;justify-content:center;padding:6px 0}
.eq-col{display:flex;flex-direction:column;gap:8px}
.eq-side{padding-top:40px}
.eq-slot{display:grid;place-items:center;width:72px;height:72px;border-radius:var(--ri);background:radial-gradient(circle at 50% 40%,#211912,var(--inset) 70%);
  box-shadow:inset 0 0 0 1px #33281e,inset 0 2px 6px rgba(0,0,0,.5)}
.events span[style*="red"]{color:var(--bad-text)!important} /* the page's inline red "(unjustified)" */
.eq-slot img{width:64px;height:64px;image-rendering:pixelated}
.eq-slot img[src*="/no_"]{opacity:.42;filter:grayscale(1)}
.eq-skull{display:flex;align-items:center;justify-content:center;gap:6px;margin:10px 0 0;color:var(--bad-text);font-size:14px}
/* quests: completed first; ramonia.js shows the first 5 and a toggle */
.quest-list li{display:flex;align-items:center;gap:10px}
.quest-list li[hidden]{display:none}
.quest-list .pb-mark{flex:none;width:24px;height:24px}
.quest-list .pb-mark svg{width:15px;height:15px}
.quest-open{color:var(--tx2)}
.list-toggle{margin-top:10px}
.char-sign-img{text-align:center}
.char-sign-img img{max-width:100%}
.char-sign .field input{max-width:100%}
.did-you-mean small{color:var(--tx2)}
@media (max-width:760px){
  .char-main{grid-template-columns:minmax(0,1fr);grid-template-areas:"info" "eq"}
  .char-name{font-size:22px}
}

/* ---- who is online: the skull legend ---- */
.online-skulls{margin-top:10px}
.online-skulls img{vertical-align:middle}

/* ---- houses, houses.view ---- */
.house-name{min-width:200px}
.house-title{margin:0 0 14px;font:600 28px/1.15 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h);overflow-wrap:anywhere}
.house-body{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start;margin:0 0 12px}
.house-body .kv{flex:1 1 260px}
.house-img{max-width:100%;height:auto;border-radius:var(--ri);box-shadow:0 0 0 1px #33281e}

/* ---- guilds: list, view, manager, forms ---- */
.guild-list{margin-bottom:22px}
.guild-list>li{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:center;padding:12px 14px}
.guild-logo{flex:none;width:72px;height:72px;padding:4px;object-fit:contain;border-radius:var(--ri);background:radial-gradient(circle at 50% 40%,#2a2119,var(--inset) 72%);
  box-shadow:inset 0 0 0 1px #33281e}
.guild-logo-lg{width:104px;height:104px;padding:6px}
.guild-card-text{min-width:0}
.guild-card-name{margin:0 0 2px;font:600 20px/1.2 var(--hfont);font-variant-numeric:lining-nums;overflow-wrap:anywhere}
.content .guild-list .guild-card-name a:not(.btn){color:var(--tx-h);text-decoration:none}
.content .guild-list .guild-card-name a:not(.btn):hover{color:var(--gold-hi)}
.guild-card-text p{margin:0;color:var(--tx2);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.guild-admin{color:var(--bad-text);font-size:14px}
.guild-head{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin:0 0 16px}
.guild-head-text{flex:1 1 240px;min-width:0}
.guild-name{margin:0;font:600 28px/1.15 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h);overflow-wrap:anywhere}
.guild-sub{margin:6px 0 0;color:var(--tx2)}
.guild-actions{margin:0 0 22px}
.guild-actions form{margin:0}
.guild-disband{margin-left:auto}
.guild-invited{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
.guild-invited p{margin:0}
.guild-invited form{margin:0}
.guild-motd{white-space:pre-line;margin:0;padding:12px 14px;border-radius:var(--ri);background:var(--inset);box-shadow:inset 3px 0 0 var(--gold);overflow-wrap:anywhere}
.guild-desc{overflow-wrap:anywhere}
.guild-members td{vertical-align:middle}
.guild-rank th{padding:8px 12px;text-align:left;font:600 15px/1.2 var(--hfont);font-variant-numeric:lining-nums;color:var(--gold-hi);background:rgba(255,225,170,.045);
  border-top:1px solid var(--line);border-bottom:1px solid #221a14}
.guild-member{min-width:200px}
.guild-member>a{margin-right:6px}
.guild-nick-form{display:flex;gap:6px;margin-top:6px}
.guild-nick-form input{flex:1;min-width:0;max-width:200px;min-height:36px}
.guild-nick-form .btn{min-height:36px}
.guild-kick,.tbl a.guild-kick{display:inline-flex;align-items:center;min-height:32px;margin-left:8px;color:var(--bad-text);font-size:14px;font-weight:400}
.content .guild-invites>li>a:not(.btn){text-decoration:none}
.guild-invites>li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.danger-zone{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 22px;padding:12px 14px;border-radius:var(--ri);
  background:var(--bad-wash);box-shadow:inset 3px 0 0 var(--bad),inset 0 0 0 1px rgba(242,115,94,.3)}
.danger-zone p{margin:0;flex:1 1 280px}
.danger-zone b{display:block;color:var(--tx-h)}
.guild-ranks td{vertical-align:middle}
.guild-ranks input[type=text]{width:100%;min-width:160px}
.guild-rank-level{text-align:center}
.guild-rank-level input{width:20px;height:20px}
.guild-add-rank{margin-top:16px}
.guild-add-rank .search-row input{max-width:300px}
.guild-help p{max-width:68ch}
.guild-logo-edit{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
.guild-found .sub-body>p{margin:0 0 10px}

@media (max-width:560px){
  .events>li{grid-template-columns:minmax(0,1fr)}
}


/* ---- spells ---- */
.spell-name{font-weight:600;color:var(--tx-h);white-space:nowrap}
.spell-words{font-style:italic;color:var(--gold-hi);white-space:nowrap}
.spell-item{white-space:nowrap}
.spell-item img{vertical-align:middle}
.spell-vocs{display:block;min-width:160px;font-size:13.5px;color:var(--tx2)}

/* ---- Premium Benefits (pages/premium-benefits.php) ---- */
.pb-table tbody th{text-align:left;font-weight:500;font-size:15px;color:var(--tx);padding:10px 12px;background:none;border-bottom:1px solid #221a14}
.pb-table thead th.pb-col{text-align:center}
.pb-table th,.pb-table td{vertical-align:middle}
.pb-col{text-align:center;width:26%}
.tbl .pb-col-premium{background:rgba(247,207,122,.07)}
.tbl thead .pb-col-premium{color:var(--gold-hi)}
.pb-note{display:block;font-weight:400;color:var(--tx2);font-size:13px}
.pb-mark{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%}
.pb-mark svg{width:18px;height:18px;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.pb-yes{background:var(--ok-wash);color:var(--ok)}
.pb-yes svg{stroke:var(--ok)}
.pb-no{background:rgba(255,255,255,.04);color:var(--tx2)}
.pb-no svg{stroke:var(--tx2)}
.pb-value{color:var(--gold-hi);font-weight:600;font-variant-numeric:lining-nums tabular-nums}
.pb-shop{justify-content:center}

@media (max-width:560px){
  .news-archive li{grid-template-columns:16px minmax(0,1fr)}
  .news-archive li a{grid-column:2}
}

/* ---- Game Rules (pages/rules.php) ---- */
.rules-body{max-width:72ch}
.rules-body h3{margin:22px 0 8px;padding-left:12px;font:600 19px/1.2 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h);box-shadow:inset 3px 0 0 var(--gold)}
.rules-body h3:first-child{margin-top:0}
.rules-body h4{margin:12px 0 4px;font-weight:600;font-size:15px;color:var(--tx)}
.rules-list{margin:0 0 10px;padding-left:22px;line-height:1.65}
.rules-list li{margin:5px 0}
.rules-list li::marker{color:var(--gold)}
.rules-list ul{margin:6px 0;padding-left:20px}
.sub.rules-important>.sub-title{background:linear-gradient(180deg,rgba(242,115,94,.17),rgba(242,115,94,.07)),var(--band)}
.rules-severe{color:var(--bad-text);font-weight:600;margin:0 0 8px}

/* ---- Server Info (pages/server-info.php) ---- */
.si-h-first{margin-top:0!important}
.si-h{margin:22px 0 10px;font:600 19px/1.2 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h)}
.si-h4{margin:14px 0 6px;font:600 14px/1.2 var(--bfont);font-variant-numeric:lining-nums;color:var(--tx2)}
.si-note{margin-top:14px}
.tbl .num-l{white-space:nowrap;font-variant-numeric:lining-nums tabular-nums}
.si-rate{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.si-stages .si-rate b{min-width:52px;color:var(--gold-hi);font-weight:600}
.si-bar{flex:0 1 260px;height:8px;border-radius:999px;background:rgba(255,225,170,.06);overflow:hidden}
.si-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#9b7433,var(--gold-hi))}
.si-vocs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 6px}
.si-voc{margin:0;min-width:0}
.si-voc .fsec-b{padding-bottom:14px}
.si-voc p{margin:0 0 6px}
.si-spells{margin:0}
.si-spells div{padding:8px 0;border-top:1px solid #2c231b}
.si-spells div:first-child{border-top:0;padding-top:2px}
.si-spells dt{font-weight:600;color:var(--tx-h)}
.si-spells dt .spell-words{margin-left:6px;font-weight:400}
.si-spells dd{margin:2px 0 0;color:var(--tx2);font-size:14.5px}
.si-keywords code,.si-features code{padding:1px 6px;border-radius:4px;background:rgba(255,225,170,.06);color:var(--gold-hi);white-space:nowrap}
.si-features{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 26px}
.si-features div{padding:12px 0;border-top:1px solid #2c231b}
.si-features div:nth-child(-n+2){border-top:0;padding-top:0}
.si-features dt{margin-bottom:4px;font:600 17px/1.2 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h)}
.si-features dd{margin:0;font-size:14.5px}
.si-more{margin:16px 0 0}
.si-more .btn{max-width:100%;padding-block:8px;white-space:normal;text-align:center} /* the long label wraps on a phone */
.sub[id]{scroll-margin-top:calc(var(--bar-h) + 12px)}
body:has(#ma-admin-bar) .sub[id]{scroll-margin-top:calc(var(--bar-h) + 44px)}
@media (max-width:760px){
  .si-vocs,.si-features{grid-template-columns:minmax(0,1fr)}
  .si-features div:nth-child(2){border-top:1px solid #2c231b;padding-top:12px}
  .si-bar{flex-basis:90px}
}

/* ---- MyAAC's own markup in $content (tables painted by config.ini colours, image buttons, TableContainer).
   Readable now; the pages get their own twigs in Tasks 5-7. :where() keeps these rules weaker than the components. ---- */
.content{position:relative;overflow-x:auto;overflow-wrap:break-word}
:where(.content) h2:not([class]){font:600 22px/1.2 var(--font-display);font-variant-numeric:lining-nums;color:var(--title);margin:4px 0 12px}
:where(.content) h3:not([class]){font:600 19px/1.2 var(--font-display);font-variant-numeric:lining-nums;color:var(--title);margin:4px 0 10px}
:where(.content) p{margin:0 0 12px}
:where(.content) table{border-collapse:collapse;max-width:100%}
:where(.content) td,:where(.content) th{padding:6px 10px;vertical-align:top}
.content [bgcolor="#3a2a1c"],.content [style*="#3a2a1c"]{background:var(--raised)!important;color:var(--title);font-weight:700}
.content [bgcolor="#221a13"],.content [style*="#221a13"]{background:rgba(255,240,215,.02)!important}
.content [bgcolor="#2a2018"],.content [style*="#2a2018"]{background:rgba(255,240,215,.05)!important}
:where(.content) tr[bgcolor] td{border-bottom:1px solid var(--line-soft)}
.content .white,.content .white b{color:var(--title)!important}
.content .TableContainer{margin-bottom:14px;border:1px solid var(--line);border-radius:4px;overflow:hidden}
.content .CaptionContainer{padding:10px 14px;background:var(--raised);border-bottom:2px solid transparent;border-image:var(--brass) 1;
  font:600 18px/1.2 var(--font-display);font-variant-numeric:lining-nums;color:var(--title)}
.content .CaptionContainer span[class^="Caption"],.content .CaptionContainer img{display:none}
.content .Table1 table,.content .Table3 table,.content .TableContent,.content .InnerTableContainer table{width:100%}
:where(.content) input:is([type=submit],[type=button]):not(.btn),:where(.content) button:not([class]){display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;padding:0 16px;background:var(--btn-main);color:var(--on-accent);border:1px solid var(--accent-deep);border-radius:var(--r-btn);
  font:600 16px/1.1 var(--font-display);font-variant-numeric:lining-nums;cursor:pointer}
:where(.content) input:is([type=submit],[type=button]):not(.btn):hover{background:var(--btn-main-hover)}
:where(.content) input[type=image]{max-height:40px}
:where(.content) hr{border:0;border-top:1px solid var(--line);margin:14px 0}
.content .red{color:var(--bad)}

/* ---- news: posts as cards (news.html.twig), the archive (news.archive.html.twig), editor links (admin.links) ---- */
.news-post .card-h h2 a{color:inherit;text-decoration:none}
.news-post .card-h h2 a:hover{color:var(--gold-hi)}
.news-meta{margin:0 0 12px;color:var(--tx2);font-size:14px}
.news-meta b{color:var(--tx);font-weight:500}
.news-body{max-width:72ch;font-size:16px;line-height:1.7;overflow-wrap:break-word}
.news-body>:last-child{margin-bottom:0}
.news-body p{margin:0 0 12px}
.news-body img{max-width:100%;height:auto;border-radius:var(--ri)}
.news-body h3,.news-body h4{margin:18px 0 8px;font-size:21px}
.news-body ul,.news-body ol{padding-left:22px;margin:0 0 12px}
.news-body li+li{margin-top:4px}
.news-body li::marker{color:var(--gold)}
.news-body strong,.news-body b{color:var(--gold-hi);font-weight:600}
.news-body table{border-collapse:collapse;max-width:100%}
.news-body td,.news-body th{padding:6px 10px}
.news-body blockquote{margin:0 0 12px;padding:12px 16px;border-radius:var(--ri);background:var(--accent-wash);box-shadow:inset 3px 0 0 var(--gold)}
.news-archive>li{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:baseline;gap:12px;padding:10px 12px}
.news-archive time{color:var(--tx2);font-size:14px}
.news-archive a{font-weight:500;overflow-wrap:anywhere}
.news-more{margin-top:4px;text-align:center}
.admin-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.news-body br:has(+ br + .admin-links),.news-body br:has(+ .admin-links){display:none}
.admin-links form{margin:0}

/* ---- footer: links, socials, copyright ---- */
.foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;margin:28px 0 30px;padding:16px 22px;border-radius:18px;
  background:rgba(16,12,9,.75);color:var(--tx2);font-size:14px}
.foot-nav{display:flex;flex-wrap:wrap;gap:4px 20px}
.foot-nav a{display:inline-flex;align-items:center;min-height:34px;color:var(--tx)}
.foot-nav a:hover{color:var(--gold-hi)}
.soc--foot a{min-width:34px;height:34px}
.soc--foot a .ic{width:18px;height:18px}
.soc--foot.soc--solo a{padding:0 12px;font-size:14px}
.soc--foot .soc-n,.soc--foot .soc-badge{display:none}
.foot-c{margin:0}

/* ---- medium widths: the bar stays one row (shorter status labels, premium as an icon), the right column moves under
   the centre as a grid of boxes ---- */
@media (max-width:1300px){
  :root{--side-l:224px;--side-r:240px}
  .card-b{padding:16px 16px 18px}
  .top-in{gap:16px}
  .seg{padding-left:16px}
  .st{gap:16px}
}
@media (max-width:1180px){
  .cols{grid-template-columns:224px minmax(0,1fr)}
  .col--r{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));align-items:start}
  .st-w{display:none}
  .acc-prem small{display:none}
  .btn{padding:0 16px}
  .dl b{font-size:18px}
}
@media (max-width:1060px) and (min-width:981px){
  .acc-prem{font-size:0;gap:0}
  .acc-prem .ic{width:18px;height:18px}
}

/* ---- phone (<= 980 px): the bar wraps (logo + account / status / Menu + Download), one column, the left column is a
   drawer from the left ---- */
@media (max-width:980px){
  .top{position:relative}
  .sub[id],#main,#ticker,body:has(#ma-admin-bar) :is(.sub[id],#main,#ticker){scroll-margin-top:12px} /* the bar does not stick on phones */
  body:has(#ma-admin-bar) .top{top:0}
  .top-in{flex-wrap:wrap;height:auto;gap:10px 12px;padding:10px 16px 12px}
  .brand-k{width:50px;margin:0}
  .brand-w{width:116px}
  .bar-gap,.acc-reg,.acc--user .acc-coins,.acc--user .acc-prem{display:none}
  .acc{margin-left:auto}
  .st{order:3;flex-basis:100%;flex-wrap:wrap;gap:6px 14px;padding-left:0;box-shadow:none;min-height:0;font-size:14px}
  .st-w{display:inline}
  .mob-row{order:4;flex-basis:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .mob-row .btn{width:100%}
  .mob-dl.dl{padding:0 14px;gap:8px;border-radius:999px;background:rgba(255,210,140,.08);color:var(--gold-hi);box-shadow:inset 0 0 0 1px rgba(240,198,116,.45);filter:none}
  .mob-dl .dl-ic{width:17px;height:17px}
  .mob-dl span{flex-direction:row;align-items:baseline;gap:6px}
  .mob-dl b{font:600 15px/1.1 var(--bfont);font-variant-numeric:lining-nums;padding:0}
  .mob-dl small,.mob-dl.is-off small{color:var(--tx2);font-size:12.5px;font-weight:500}
  .mob-dl.is-off{opacity:.6}
  .page{padding-top:14px}
  .cols{grid-template-columns:minmax(0,1fr)}
  .col--r{grid-template-columns:minmax(0,1fr)}
  .js .col--l{position:fixed;inset:0 auto 0 0;z-index:50;width:min(340px,88vw);overflow-y:auto;overscroll-behavior:contain;padding:12px 12px 24px;border-radius:0;
    background:#1a1410;box-shadow:8px 0 30px rgba(0,0,0,.6);transform:translateX(-104%);visibility:hidden;
    transition:transform .25s var(--ease),visibility 0s linear .25s}
  body.drawer-open{overflow:hidden}
  body.drawer-open .col--l{transform:none;visibility:visible;transition:transform .25s var(--ease)}
  .js body:has(#ma-admin-bar) .col--l{top:32px}
  .js .drawer-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
  .drawer-name{font:600 24px/1 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h)}
  .js .launch .dl--col{display:none}
  .no-js .mob-row{display:none}
  .js .scrim{display:block;position:fixed;inset:0;z-index:45;background:rgba(0,0,0,.55)}
  .scrim[hidden]{display:none}
  .card-h{padding:8px 14px;min-height:52px} /* a title on two lines keeps off the band's edges */
  .card-h h1,.card-h h2{font-size:23px}
  .card-b{padding:14px}
  .tk-mark{display:none}
  .tk-text{padding-left:12px}
  .foot{flex-direction:column;align-items:flex-start;margin:20px 0 24px}
}
@media (max-width:560px){
  .sub{--sub-pad:12px}
  .news-archive>li{grid-template-columns:minmax(0,1fr);gap:2px}
  .events>li{grid-template-columns:minmax(0,1fr)}
  .cd-nums div{min-width:60px}
}

/* ---- highscores: the filters (icon tabs for the skill, a segmented vocation switch; plain links, scroll sideways on
   phones; .hs-seg, not .seg: that is the top bar's status group). ---- */
.hsf{margin:0 0 16px}
.hs-seg{display:flex;gap:4px;padding:4px;border-radius:12px;background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a;overflow-x:auto;scrollbar-width:thin}
.hs-seg a{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 10px;border-radius:9px;color:var(--tx2);font-size:13px;white-space:nowrap;text-decoration:none}
.hs-seg--skill a{flex:1 1 0;min-width:58px;padding:8px 4px;white-space:normal;text-align:center;line-height:1.2}
.hs-seg a .ic{width:22px;height:22px;color:var(--gold)}
.hs-seg a:hover{color:var(--tx);background:var(--hover);text-decoration:none}
.hs-seg a[aria-current]{color:var(--on-gold);background:linear-gradient(180deg,#f6cf7c,#d9a344)}
.hs-seg a[aria-current] .ic{color:var(--on-gold)}
.hs-seg--voc{display:inline-flex;max-width:100%;margin-top:8px}
.hs-seg--voc a{flex-direction:row;padding:6px 14px;font-size:14px;color:var(--tx)}
@media (max-width:560px){.hs-seg--skill a{min-width:76px}}
/* top 3: in the highscores table a medal edge on the left, a thin medal line below and the disc; the right column's
   Top 3 only a medal-coloured number (owner). .medal, not .top: that is the sticky top bar. Shadows, not borders: collapsed table
   borders between rows lose the line. */
.medal-1{--m:#ffd76e;--mb:rgba(255,215,110,.45)}
.medal-2{--m:#dfe3ea;--mb:rgba(223,227,234,.40)}
.medal-3{--m:#e8a466;--mb:rgba(232,164,102,.45)}
.tbl tr.medal td{border-bottom-color:transparent;box-shadow:inset 0 -1px 0 var(--mb)}
.tbl tr.medal td:first-child{box-shadow:inset 3px 0 0 var(--m),inset 0 -1px 0 var(--mb)}
.tbl tr.medal td a{font-weight:600;color:var(--tx-h)}
.tbl tr.medal td a:hover{color:var(--gold-hi)}
.tbl tr.medal .rank{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--m);color:#1a130c;
  font:700 16px/1 var(--hfont);font-variant-numeric:lining-nums tabular-nums;box-shadow:inset 0 -2px 0 rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.35)}
.t3 .t3-n{text-align:center;font:700 17px/1 var(--hfont);font-variant-numeric:lining-nums tabular-nums;color:var(--m)} /* the right column: a medal-coloured number only */

/* ---- Powergamers / Insomniacs (rankings.html.twig): the day columns signed and coloured, long days marked ---- */
.rank-intro{margin:0 0 12px;color:var(--tx2)}
.rank-tbl .rank-name{min-width:150px}
.rank-tbl td.is-pos{color:var(--ok)}
.rank-tbl td.is-neg{color:var(--bad-text)}
.rank-tbl td.is-zero{color:var(--tx2);opacity:.7}
.rank-tbl td.is-long{color:var(--warn);font-weight:600}
.rank-tbl .rank-total{font-weight:600;color:var(--tx-h)}
.rank-tbl abbr{text-decoration:none}
.rank-note{margin:10px 0 0;color:var(--tx2);font-size:13px}

/* ---- Guild Wars (guild-wars*.html.twig): war cards (two sides, score, frag bars against the limit), the war view ---- */
.gw-cmds code{font-size:13px;color:var(--gold-hi);white-space:normal;overflow-wrap:anywhere}
.gw-cmds dd{font-weight:400;color:var(--tx2)}
.gw-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.gw-card{padding:14px 16px;border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.gw-card.is-active{box-shadow:inset 0 0 0 1px rgba(242,115,94,.35)}
.gw-head{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
.gw-side{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;text-align:center}
.gw-logo{width:56px;height:56px}
.gw-name{font-weight:600;overflow-wrap:anywhere;line-height:1.25}
.gw-side.is-winner .gw-name a,.gw-side.is-winner .gw-name{color:var(--gold-hi)}
.gw-score{display:flex;flex-direction:column;align-items:center;gap:6px}
.gw-frags{display:flex;gap:6px;font:700 26px/1 var(--hfont);font-variant-numeric:lining-nums tabular-nums;color:var(--tx-h)}
.gw-sep{color:var(--tx2)}
.gw-vs{font:700 18px/1 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx2);text-transform:uppercase}
.gw-bars{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:12px 0 0}
.gw-bar{position:relative;height:6px;border-radius:3px;background:#2b221a;overflow:hidden}
.gw-bar::after{content:"";position:absolute;inset:0 auto 0 0;width:var(--p);background:var(--gold);border-radius:3px}
.gw-bar-a{transform:scaleX(-1)} /* both bars grow from the middle */
.gw-meta{display:flex;flex-wrap:wrap;gap:4px 16px;margin:10px 0 0;color:var(--tx2);font-size:13px}
.gw-meta b{color:var(--tx)}
.gw-more{margin-left:auto;font-weight:600}
.gw-closed>summary .sub-meta{margin-left:auto} /* the count beside the chevron of details.sub */
details.gw-closed>summary::after{margin-left:4px}
.gw-kills .gw-time{white-space:nowrap;width:1%}
.gw-one{margin-bottom:22px}
.gw-fraggers{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin-bottom:22px}
.gw-fraggers .sub{margin-bottom:0}
.gw-fh{min-width:0;overflow-wrap:anywhere}
.gw-fraggers .sub-meta{flex:none}
.gw-top{margin:0;padding:0;list-style:none;counter-reset:gw}
.gw-top li{display:flex;justify-content:space-between;gap:12px;padding:6px 10px;border-radius:6px;counter-increment:gw}
.gw-top li:nth-child(even){background:var(--zebra)}
.gw-top li::before{content:counter(gw) ".";min-width:24px;color:var(--tx2)}
.gw-top li a{flex:1;min-width:0;overflow-wrap:anywhere}
@media (max-width:600px){.gw-fraggers{grid-template-columns:1fr;gap:22px}.gw-logo{width:44px;height:44px}.gw-frags{font-size:22px}}

/* ---- Streamers (streamers.html.twig) and the right column's Featured streamer panel (template.php .fs) ---- */
.st-keywords{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.st-hint{margin:0;color:var(--tx2)}
.st-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin:0;padding:0;list-style:none}
.st-card{border-radius:var(--ri);overflow:hidden;background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.st-thumb,.fs-thumb{position:relative;display:block;aspect-ratio:16/9;background:#120d09;overflow:hidden}
.st-thumb img,.fs-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.st-thumb:hover img,.fs-thumb:hover img{opacity:.85}
.st-ph{display:grid;place-items:center;height:100%;font:700 54px/1 var(--hfont);font-variant-numeric:lining-nums;color:#3a2d20;background:radial-gradient(circle at 50% 45%,#2a2119,#120d09 75%)}
.st-live{position:absolute;top:8px;left:8px;padding:1px 7px;border-radius:4px;background:#d63b2f;color:#fff;font:700 11.5px/1.5 var(--bfont);font-variant-numeric:lining-nums;text-transform:uppercase;letter-spacing:.04em}
.st-viewers{position:absolute;right:8px;bottom:8px;padding:1px 7px;border-radius:4px;background:rgba(0,0,0,.72);color:#fff;font-size:12.5px}
.st-info{padding:10px 12px 12px}
.st-title{margin:0 0 6px;font-weight:600;color:var(--tx);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.st-by{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;min-width:0}
.st-by a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fs-thumb{border-radius:var(--ri)}
.fs-name{margin:10px 0 0;font-weight:600;overflow-wrap:anywhere}
.fs-name .sub-line{font-weight:400;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ---- Char Bazaar (bazaar*.html.twig): the page links, the filter tabs over one form (min-max pairs side by side), the
   auction cards, the offer (back link, head, price, bid / buy now forms, the character's tabs: items, outfits), the
   confirmation dialog (the new name of a buy now), the claims. Tabs (ramonia.js [data-tabs]): .bz-tabs, text tabs with a
   gold bar for the filters and the character (unlike the page links' chips); without JS the strip hides, every panel
   shows. ---- */
.bz-nav{margin:0 0 18px}
.bz-back{display:inline-flex;align-items:center;gap:6px;margin:0 0 12px;font-size:14.5px}
.no-js .bz-tabs{display:none}
.bz-panel{margin:0;padding:0;border:0;min-width:0}
.bz-panel[hidden]{display:none}
.bz-legend{padding:0;margin:0 0 8px;font:600 15px/1.2 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h)}
.js .bz-legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bz-filters{margin:0 0 22px;padding:12px 16px 4px;border-radius:var(--r);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.bz-filters-h{margin:0 0 6px;font:600 12.5px/1.3 var(--bfont);font-variant-numeric:lining-nums;letter-spacing:.08em;text-transform:uppercase;color:var(--tx2)}
/* the tabs (the filters, the character, the wiki): real tabs on the line that tops their panel. An inactive tab is a raised
   surface with rounded top corners (--tab-off); the active one has the panel's own background (--tab-bg: the card, a
   section panel, or the filters' well) and its line on the top and sides, so it opens into the panel: its background covers the line under it, the line
   goes on under the others. A gold top edge marks it. The row scrolls sideways if narrow. */
.bz-tabs{--tab-bg:var(--box);--tab-off:var(--raise);display:flex;align-items:flex-end;gap:4px;margin:0 0 14px;padding:0 2px;box-shadow:inset 0 -1px 0 var(--line);
  overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.sub:has(>.sub-title) .bz-tabs{--tab-bg:var(--raise);--tab-off:var(--box)} /* in a section panel: the active tab opens into the raised body */
.bz-filters .bz-tabs,.sub:has(>.sub-title) .bz-filters .bz-tabs{--tab-bg:var(--inset);--tab-off:var(--raise)}
.bz-tabs button{flex:none;padding:8px 14px 8px;border:1px solid var(--line-soft);border-bottom:0;border-radius:var(--ri) var(--ri) 0 0;
  background:var(--tab-off);color:var(--tx2);font:500 15px/1.2 var(--bfont);font-variant-numeric:lining-nums;white-space:nowrap;cursor:pointer;margin-bottom:1px;
  transition:color .15s,background-color .15s}
.bz-tabs button:hover{color:var(--tx);background:#30261c}
.bz-tabs button[aria-selected=true]{position:relative;margin-bottom:0;padding-bottom:9px;color:var(--tx-h);background:var(--tab-bg);
  border-color:var(--line);box-shadow:inset 0 2px 0 var(--gold);cursor:default}
.bz-tabs button:focus-visible{outline-offset:-2px}
.bz-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:0 16px}
.bz-filters .field{margin:0 0 12px;min-width:0}
.bz-filters .field label,.bz-range-l{display:block;margin-bottom:6px;font-weight:500;font-size:14.5px;color:var(--tx-h)}
.bz-filters select,.bz-filters input{width:100%}
.bz-range{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 8px;align-content:start}
.bz-range-l{grid-column:1/-1}
.bz-filter-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:0 16px;padding-top:12px;border-top:1px solid var(--line-soft)}
.bz-filter-bar .field{flex:0 1 220px}
.bz-filter-bar .form-actions{margin:0 0 12px}
.bz-list,.bz-claims{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.bz-list{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.bz-card,.bz-claim{display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px 14px;border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.bz-card:hover{box-shadow:inset 0 0 0 1px #4a3a29}
.bz-card-head,.content li a.bz-card-head:not(.btn){display:flex;align-items:center;gap:12px;min-width:0;color:var(--tx);text-decoration:none}
.bz-card-head:hover{color:var(--tx)}
.bz-card-head:hover .bz-card-name{color:var(--gold-hi)}
.bz-card-id{min-width:0}
.bz-card-name{display:block;font:600 18px/1.2 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h);overflow-wrap:anywhere}
.bz-card-tags{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.bz-card-end{display:inline-flex;align-items:center;gap:6px;color:var(--tx2);font-size:14px}
.bz-card-end .ic{color:var(--gold)}
.bz-price{display:grid;gap:2px;margin:0}
.bz-price div{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.bz-price dt{color:var(--tx2);font-size:14px}
.bz-price dd{font:600 18px/1.3 var(--hfont);font-variant-numeric:lining-nums tabular-nums;color:var(--gold-hi);text-align:right}
.bz-price--lg{margin:0 0 14px}
.bz-price--lg dd{font-size:26px}
.bz-coins{font:500 13.5px/1 var(--bfont);font-variant-numeric:lining-nums;color:var(--tx2)}
.bz-left{white-space:nowrap}
.bz-head{margin-bottom:16px}
.bz-offer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 22px;align-items:start}
.bz-act-note{margin:0 0 12px;color:var(--tx2)}
.bz-buynow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 14px}
.bz-buynow-price{margin:0}
.bz-buynow-price dt{color:var(--tx2);font-size:14px}
.bz-buynow-price dd{font:600 26px/1.2 var(--hfont);font-variant-numeric:lining-nums tabular-nums;color:var(--gold-hi)}
.bz-buynow-form{margin:0}
.bz-buynow-form .btn{min-width:140px}
.bz-or{display:flex;align-items:center;gap:12px;margin:0 0 12px;color:var(--tx2);font-size:12.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.bz-or::before,.bz-or::after{content:"";flex:1;height:1px;background:var(--line)}
.bz-act .btn{max-width:100%}
.bz-form{margin:0 0 6px}
.form .bz-form .field,.bz-form .field{margin:0 0 12px}
.bz-inline{display:flex;flex-wrap:wrap;gap:8px}
.bz-inline input{flex:1 1 150px;min-width:0;width:auto}
.bz-inline .btn{flex:0 1 auto;white-space:normal;text-align:center}
.bz-tabs-wrap{margin-top:6px}
.bz-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 22px;align-items:start}
.bz-cols--items{grid-template-columns:auto minmax(0,1fr)}
.bz-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:6px;margin:0;padding:0;list-style:none}
.bz-items li{position:relative;display:grid;place-items:center;height:54px;border-radius:var(--ri);background:radial-gradient(circle at 50% 40%,#211912,var(--inset) 70%);
  box-shadow:inset 0 0 0 1px #33281e}
.bz-items img{width:32px;height:32px;image-rendering:pixelated}
.bz-count{position:absolute;right:4px;bottom:2px;font-size:12px;font-weight:600;color:var(--tx-h);text-shadow:0 1px 2px #000}
.bz-looks{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px;margin:0;padding:0;list-style:none}
.bz-looks li{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border-radius:var(--ri);background:var(--inset);
  box-shadow:inset 0 0 0 1px #2b221a;text-align:center;font-size:14px;overflow-wrap:anywhere}
.bz-reason{color:var(--tx2);font-size:14px}
.bz-rules li{font-size:14.5px}
.bz-sold{font-weight:600;color:var(--gold-hi)}
.bz-dialog,.card-b>.bz-dialog:last-child{width:min(440px,calc(100vw - 32px));margin:auto;padding:0;border:0;border-radius:var(--r);color:var(--tx);background:linear-gradient(180deg,#2a2119,#231b15 120px);
  box-shadow:inset 0 1px 0 rgba(255,225,170,.06),0 0 0 1px var(--edge),0 18px 40px rgba(0,0,0,.6)}
.bz-dialog::backdrop{background:rgba(8,5,3,.72)}
.bz-dialog form{padding:18px 20px}
.bz-dialog-title{margin:0 0 10px;font:600 20px/1.2 var(--hfont);font-variant-numeric:lining-nums}
.bz-dialog-text{margin:0 0 4px;font-weight:500;color:var(--tx-h);overflow-wrap:anywhere}
.bz-dialog .hint{overflow-wrap:anywhere}
.bz-dialog-name{margin:14px 0 4px}
.bz-dialog-name input{width:100%}
.bz-dialog-name[hidden]{display:none}
.bz-dialog [data-bz-note]:empty{display:none}
@media (max-width:760px){
  .bz-offer,.bz-cols,.bz-cols--items{grid-template-columns:minmax(0,1fr)}
  .bz-buynow-form{flex:1 0 100%}
  .bz-buynow-form .btn{width:100%}
}

/* ---- wiki (wiki/lib.php, pages/wiki.php, pages/wiki/*.php): the hub (search, Start here cards, the categories' lists of
   icon rows), the article head (breadcrumb, lead, On this page chips, At a glance), items, the article index. The
   search filters the page (ramonia.js, section wiki): hidden without JS, every category then shows. ---- */
.wiki [hidden]{display:none}
.content .wiki :is(.wiki-list,.wiki-idx) a:not(.btn){text-decoration:none} /* over the base rule for .content li a (0,3,2) */
.no-js .wiki-find,.no-js .wiki-idx .wiki-search{display:none}
.wiki-search{margin:0}
.wiki-search-label{justify-content:flex-start;cursor:text}
.wiki-search-label .ic{width:18px;height:18px;color:var(--gold)}
.wiki-search input{width:100%}
.wiki-live{margin:6px 0 0;color:var(--tx2);font-size:14px}
.wiki-live:empty{display:none}
.wiki-cat-name{display:inline-flex;align-items:center;gap:9px;min-width:0}
.wiki-cat-name .ic{width:18px;height:18px;color:var(--gold)}
.wiki-ic{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:var(--ri);color:var(--gold);
  background:var(--inset);box-shadow:inset 0 0 0 1px #33281e}
.wiki-ic .ic{width:21px;height:21px}
.wiki-start{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:10px}
.wiki-card,.wiki-list a{display:flex;align-items:center;gap:12px;min-width:0;border-radius:var(--ri);color:var(--tx);text-decoration:none;
  transition:background-color .15s,box-shadow .15s}
.wiki-card{padding:12px;background:var(--raise);box-shadow:0 0 0 1px var(--edge)}
.wiki-card:hover{color:var(--tx);background:#30261c;box-shadow:0 0 0 1px #6b5233;text-decoration:none}
.sub:has(>.sub-title) .wiki-card:not(:hover){background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a} /* in a section panel: a well, not a second raised card */
.wiki-card-text{display:flex;flex-direction:column;gap:1px;min-width:0}
.wiki-name{font-weight:600;color:var(--tx-h);overflow-wrap:anywhere}
.wiki-sum{color:var(--tx2);font-size:14px;line-height:1.35}
.wiki-card:hover .wiki-name,.wiki-list a:hover .wiki-name{color:var(--gold-hi)}
.wiki-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:4px 12px}
.wiki-list a{padding:8px 10px}
.wiki-list a:hover{color:var(--tx);background:var(--hover);text-decoration:none}
.wiki-growing{display:flex;align-items:flex-start;gap:10px;margin:0;padding:12px 14px;border-radius:var(--ri);color:var(--tx2);font-size:14.5px;
  background:var(--inset);box-shadow:inset 0 0 0 1px var(--line-soft)}
.wiki-growing .ic{width:18px;height:18px;margin-top:2px;color:var(--gold)}
/* the hub's Cards / List switch (on the search's row; hidden with the search without JS) and the List view (html: the
   class is-list on .wiki-hub, ramonia.js): the categories in columns, a small heading and the article names only */
.wiki-hub-cats>.sub:last-child{margin-bottom:22px}
.wiki-search-row{display:flex;align-items:stretch;gap:10px}
.wiki-search-row input{flex:1 1 auto;min-width:0;width:auto}
.wiki-view{display:inline-flex;flex:none;gap:4px;padding:3px;border-radius:12px;background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.wiki-view button{min-height:0;padding:0 14px;border:0;border-radius:9px;background:none;color:var(--tx);font:500 14px/1 var(--bfont);font-variant-numeric:lining-nums;cursor:pointer;
  transition:color .15s,background-color .15s}
.wiki-view button:hover{background:var(--hover)}
.wiki-view button[aria-pressed=true]{color:var(--on-gold);background:linear-gradient(180deg,#f6cf7c,#d9a344);cursor:default}
.wiki-view button:focus-visible{outline-offset:1px}
.wiki-hub.is-list .wiki-hub-cats{columns:220px 3;column-gap:28px;margin:0 0 22px}
.wiki-hub.is-list .wiki-hub-cats>.sub{break-inside:avoid;margin:0 0 20px;padding:0;background:none;box-shadow:none} /* a plain group, not a panel */
.wiki-hub.is-list .wiki-hub-cats .sub-title{min-height:0;margin:0 0 6px;padding:0 0 7px;border-radius:0;background:none;box-shadow:inset 0 -1px 0 var(--line);font-size:16px}
.wiki-hub.is-list :is(.wiki-sum,.wiki-ic,.sub-meta){display:none}
.wiki-hub.is-list :is(.wiki-start,.wiki-list){display:block}
.wiki-hub.is-list .wiki-hub-cats :is(.wiki-card,.wiki-list a){margin:0 -6px;padding:4px 6px;background:none;box-shadow:none}
.wiki-hub.is-list .wiki-card:hover{background:var(--hover);box-shadow:none}
.wiki-hub.is-list .wiki-name{font-weight:500}
/* an article's head */
.wiki-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 12px;font-size:14px;color:var(--tx2)}
.wiki-crumb-sep{color:#6a5539}
.wiki-crumbs [aria-current]{color:var(--tx)}
.wiki-intro{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px 20px;margin:0 0 22px}
.wiki-intro-text{flex:1 1 380px;min-width:0}
.wiki-intro-text>p{margin:0 0 12px;max-width:72ch}
.wiki-intro-text>.lead{color:var(--tx)}
.wiki-toc{margin:14px 0 0}
.wiki-glance{flex:1 0 240px;max-width:100%;padding:10px 10px 8px;border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.wiki-glance-h{margin:2px 4px 6px;font-size:16px}
.wiki-glance .kv div{min-height:34px}
@media (min-width:1181px){.wiki-glance{flex-grow:0;width:280px}}
.wiki-item{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
.wiki .tbl .outfit{display:inline-grid;vertical-align:middle;margin:-6px 4px -6px 0}
.wiki-item img{width:32px;height:32px;flex:none;image-rendering:pixelated}
/* an article's index of the wiki */
.wiki-idx{display:flex;flex-direction:column;gap:6px}
.wiki-idx-home{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.wiki-idx-cat>summary{display:flex;align-items:center;gap:8px;min-height:38px;padding:4px 10px;border-radius:var(--ri);list-style:none;cursor:pointer;
  color:var(--tx-h);font-weight:600}
.wiki-idx-cat>summary::-webkit-details-marker{display:none}
.wiki-idx-cat>summary:hover{background:var(--hover)}
.wiki-idx-cat>summary .ic{color:var(--gold)}
.wiki-idx-cat>summary .sub-meta{margin-left:auto}
/* the chevron of details.sub: a category opens and closes */
.wiki-idx-cat>summary::after{content:"";flex:none;width:8px;height:8px;margin:0 2px 0 4px;align-self:center;border-right:2px solid var(--gold);border-bottom:2px solid var(--gold);
  transform:rotate(45deg);transition:transform .35s var(--ease)}
.wiki-idx-cat[open]>summary::after{transform:rotate(-135deg)}
.js .wiki-idx-cat.is-closed>summary::after{transform:rotate(45deg)}
/* opening / closing: the menu groups' mechanism (.mg-body / .mg-inner: grid-template-rows, the same duration and easing);
   ramonia.js keeps <details open> until the close has run. Without JS every category is open (wiki/lib.php). */
.wiki-idx-body{display:grid;grid-template-rows:1fr;transition:grid-template-rows .4s var(--ease)}
.wiki-idx-inner{overflow:hidden;min-height:0;visibility:visible;transition:visibility 0s}
.js .wiki-idx-cat.is-closed .wiki-idx-body{grid-template-rows:0fr}
.js .wiki-idx-cat.is-closed .wiki-idx-inner{visibility:hidden;transition:visibility 0s linear .4s}
/* the links as a tree under their category: a guide line under the icon, a branch tick per link */
.wiki-idx-cat ul{list-style:none;margin:2px 0 6px 18px;padding:0 0 0 14px;border-left:1px solid var(--line)}
.wiki-idx-cat li{position:relative;transition:opacity .3s,transform .3s}
.js .wiki-idx-cat.is-closed li{opacity:0;transform:translateY(-6px)}
.wiki-idx-cat li::before{content:"";position:absolute;left:-14px;top:50%;width:10px;border-top:1px solid var(--line)}
.wiki-idx-cat li:has(>a[aria-current])::before{border-top-color:var(--gold)}
.wiki-idx-cat a{display:block;padding:4px 8px;border-radius:var(--ri)}
.wiki-idx-cat a:hover{background:var(--hover)}
.wiki-idx-cat a:focus-visible{outline-offset:-2px} /* inside .wiki-idx-inner's overflow:hidden */
.wiki-idx-cat a[aria-current]{color:var(--tx-h);font-weight:600}
.wiki-idx-empty{color:var(--tx2);font-size:14px}
/* the search fields' clear button: the theme's cross instead of the browser's blue one */
.wiki input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:16px;height:16px;margin-left:6px;cursor:pointer;
  background:var(--tx2);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
.wiki input[type=search]::-webkit-search-cancel-button:hover{background:var(--gold-hi)}
/* an article: its sections, the filter over a list (ramonia.js data-wiki-filter; hidden without JS), notes, the index at the end */
.wiki-article>.sub,.wiki-article>section{scroll-margin-top:calc(var(--bar-h) + 12px)}
.wiki-article .sub-body>p{max-width:76ch}
.wiki-article h3.wiki-h{margin:18px 0 10px;font:600 17px/1.25 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h)}
.wiki-article h3.wiki-h:first-child{margin-top:0}
.no-js .wiki-filter{display:none}
.wiki-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:0 12px;margin:0 0 12px}
.wiki-filter .field{flex:1 1 200px;margin:0 0 8px;min-width:0}
.wiki-filter .field-q{flex-grow:2}
.wiki-filter input,.wiki-filter select{width:100%}
.wiki-filter .wiki-live{flex-basis:100%;margin:0 0 4px}
.wiki-note{max-width:76ch}
/* a sortable header (ramonia.js wiki_table $sort): a button with the look of the sort links (.tbl th[aria-sort]) */
.tbl th .wiki-sort{padding:0;border:0;background:none;font:inherit;color:inherit;text-align:inherit;cursor:pointer}
.tbl th:not([aria-sort]) .wiki-sort:hover{color:var(--link-h)}
/* every sortable header shows it sorts: a faint up/down mark until it is the sorted one (then the gold arrow above) */
.tbl th:not([aria-sort]) .wiki-sort::after{content:"";display:inline-block;width:7px;height:11px;margin-left:6px;vertical-align:-1px;background:var(--tx2);opacity:.5;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M4 0l4 5H0zM4 12l4-5H0z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M4 0l4 5H0zM4 12l4-5H0z'/%3E%3C/svg%3E") center/contain no-repeat}
.tbl th:not([aria-sort]) .wiki-sort:hover::after{opacity:.9}
.wiki-tbl .wiki-name-cell{font-weight:600;color:var(--tx-h)}
.wiki-tbl .wiki-who{display:inline-flex;align-items:center;gap:8px;min-width:0}
.wiki-ms{white-space:nowrap}
.wiki-ms b{color:var(--gold-hi);font-weight:600}
.wiki-ms span{color:var(--tx2);font-size:13.5px}
/* tiers: badges in the template's state colours, the stars count the tier */
.wiki-tier{gap:5px}
.wiki-tier i{font-style:normal;letter-spacing:1px;font-size:11px}
.wiki-tier-1{color:var(--ok);box-shadow:inset 0 0 0 1px rgba(98,209,133,.45);background:var(--ok-wash)}
.wiki-tier-2{color:var(--gold-hi);box-shadow:inset 0 0 0 1px rgba(224,176,87,.45);background:var(--accent-wash)}
.wiki-tier-3{color:var(--warn);box-shadow:inset 0 0 0 1px rgba(241,184,74,.4);background:var(--warn-wash)}
.wiki-tier-4{color:var(--bad-text);box-shadow:inset 0 0 0 1px rgba(242,115,94,.45);background:var(--bad-wash)}
.wiki-tier-5{color:#d4a6f0;box-shadow:inset 0 0 0 1px rgba(196,140,240,.45);background:rgba(196,140,240,.1)}
.wiki-rewards{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.wiki-rewards img{width:32px;height:32px;image-rendering:pixelated}
.js .wiki-tab-h{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap} /* a panel's own title only without JS (the tabs name it) */
.wiki-more{margin-top:28px}
.wiki-more .wiki-idx{padding:4px 0 0}
/* a detail page (a quest): its facts, monsters, rewards, the walkthrough behind a <details> (spoilers) */
.wiki-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin:0 0 22px}
.wiki-facts>.sub{margin:0}
.wiki-tiles{display:flex;flex-wrap:wrap;gap:10px 8px;margin:0;padding:0;list-style:none}
.wiki-tiles li{display:flex;flex-direction:column;align-items:center;gap:2px;width:76px;text-align:center;font-size:13px;line-height:1.25;color:var(--tx2)}
.wiki-tiles .wiki-item{flex-direction:column;gap:2px}
.wiki-reqs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0;padding:0;list-style:none}
.wiki-spoiler{margin:0 0 22px;border-radius:var(--r);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.wiki-spoiler>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 16px;list-style:none;cursor:pointer;
  font:600 18px/1.2 var(--hfont);font-variant-numeric:lining-nums;color:var(--tx-h);border-radius:var(--r)}
.wiki-spoiler>summary::-webkit-details-marker{display:none}
.wiki-spoiler>summary:hover{background:var(--hover)}
.wiki-spoiler>summary .ic{width:18px;height:18px;color:var(--gold);transform:rotate(-90deg);transition:transform .15s}
.wiki-spoiler[open]>summary .ic{transform:none}
.wiki-spoiler>summary small{font:400 14px/1.2 var(--bfont);font-variant-numeric:lining-nums;color:var(--tx2)}
.wiki-steps-note{padding:0 16px}
.wiki-steps{margin:0;padding:4px 16px 16px;list-style:none}
.wiki-steps>li{padding:12px 0;border-top:1px solid var(--line-soft)}
.wiki-steps>li:first-child{border-top:0}
.wiki-steps p{margin:0 0 8px;max-width:76ch}
.wiki-steps .warning{margin:0 0 8px;max-width:76ch}
.wiki-shots{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}
.wiki-shots a{display:block;max-width:100%}
.wiki-shots img{display:block;max-width:100%;height:auto;border-radius:var(--ri);box-shadow:0 0 0 1px var(--edge)}
/* the FAQ: questions as <details> in their category */
.wiki-qa{display:grid;grid-template-columns:minmax(0,1fr);gap:6px} /* a wide table scrolls in its well instead of widening the list */
.wiki-q{border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.wiki-q>summary{display:flex;align-items:flex-start;gap:10px;padding:11px 14px;list-style:none;cursor:pointer;font-weight:600;color:var(--tx-h);border-radius:var(--ri)}
.wiki-q>summary::-webkit-details-marker{display:none}
.wiki-q>summary:hover{background:var(--hover)}
.wiki-q>summary .ic{flex:none;width:16px;height:16px;margin-top:3px;color:var(--gold);transform:rotate(-90deg);transition:transform .15s}
.wiki-q[open]>summary .ic{transform:none}
.wiki-a{padding:2px 14px 14px 40px;max-width:80ch}
.wiki-a>p{margin:0 0 10px}
.wiki-a>:last-child{margin-bottom:0}
.wiki-a .tbl-wrap{max-width:460px;margin:0 0 10px}
.wiki-a .tbl-wrap.is-wide{max-width:600px}
.wiki-maplink{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.wiki-maplink .ic{width:16px;height:16px}
@media (max-width:620px){.wiki-a{padding-left:14px}}
/* the written articles (Blessings, Stamina & Soul, Client Guide, ...): short tables, two columns, a fact box, colour words, screenshots */
.wiki-narrow .tbl-wrap{max-width:460px;margin-bottom:12px}
.wiki-narrow.is-wide .tbl-wrap{max-width:640px}
.wiki-split{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px 24px}
.wiki-split>div{flex:1 1 360px;min-width:0}
.wiki-split>div>p{max-width:76ch}
.wiki-box{flex:0 1 300px;min-width:min(100%,240px);padding:6px;background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.wiki-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:0 28px}
.wiki-cols ul,.wiki-cols ol{margin-top:0}
.wiki-dl{margin:0}
.wiki-dl dt{font-weight:600;color:var(--tx-h)}
.wiki-dl dd{margin:0 0 10px;color:var(--tx2)}
.wiki-dim{color:var(--tx2);font-weight:400}
.wiki-bad{color:var(--bad-text)}
.wiki-gold{color:var(--gold-hi)}
.wiki-ok{color:var(--ok)}
.badge.wiki-badge-warn{color:var(--warn);box-shadow:inset 0 0 0 1px rgba(241,184,74,.4);background:var(--warn-wash)}
.wiki-dests{display:inline-flex;flex-wrap:wrap;align-items:center;gap:2px 6px}
.wiki-sep{color:#6a5539}
.wiki-guide{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 24px;margin:0 0 14px}
.wiki-guide-text{flex:1 1 380px;min-width:0}
.wiki-guide-text>:is(p,ul){max-width:76ch}
.wiki-guide-text>h3.wiki-h:first-child{margin-top:0}
.wiki-figs{display:flex;flex-wrap:wrap;gap:12px;flex:0 1 auto;max-width:100%}
.wiki-fig{margin:0;max-width:min(100%,340px)}
.wiki-fig a{display:block}
.wiki-fig img{display:block;max-width:100%;height:auto;border-radius:var(--ri);box-shadow:0 0 0 1px var(--edge)}
.wiki-fig figcaption{margin-top:4px;color:var(--tx2);font-size:13px;text-align:center}
/* batch B (Tasks, Task Board, Daily Tasks, Excursions, ...): long text cells, item and outfit tiles, a table that stacks on a phone */
.wiki-tk-reward,.wiki-tk-mons{min-width:190px;color:var(--tx2);font-size:13.5px;line-height:1.4}
.wiki-tk-mons{min-width:160px}
.wiki-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:12px}
.wiki-cards.is-wide{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));margin-bottom:6px}
.wiki-card-box{min-width:0;padding:12px 14px;border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.wiki-card-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 0 10px;font:600 15px/1.3 var(--bfont);font-variant-numeric:lining-nums;color:var(--tx-h)}
.wiki-q-meta{display:block;margin-top:2px;font-weight:400;font-size:13.5px;color:var(--tx2)}
.wiki-a.wiki-stage{max-width:none}
.wiki-tiles-sm li{width:46px}
.wiki-tiles-items{margin-bottom:14px}
.wiki-tiles-items li{width:96px}
.wiki-article .tbl-wrap+.wiki-note{margin-top:12px}
.wiki-ts-msg{min-width:220px;color:var(--tx2);font-size:13.5px}
.wiki-tbl tr.wiki-ts-chain.is-first td,.wiki-tbl tr.wiki-ts-single td{border-top:1px solid var(--line)}
.wiki-tbl tbody tr:first-child td{border-top:0}
.wiki-db-access{min-width:180px;font-size:13.5px;color:var(--tx2)}
.wiki-itemgrid{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.wiki-itemgrid li{display:grid;place-items:center;width:42px;height:42px;border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.wiki-itemgrid img{width:32px;height:32px;image-rendering:pixelated}
.wiki-offers{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:0 0 14px;padding:0;list-style:none}
.wiki-offers li{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 10px;border-radius:var(--ri);text-align:center;font-size:13.5px;
  background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.wiki-offers strong{color:var(--tx-h);font-size:14.5px}
.wiki-lp{color:#c9a7f5;font-weight:600}
.wiki-stage .wiki-split{margin-bottom:6px}
.wiki-stage .wiki-split .tbl-wrap{max-width:460px}
/* the last column moves under the row's other cells below 480px (Sailing Routes: the destinations stay in view) */
@media (max-width:480px){
  .wiki-tbl-stack,.wiki-tbl-stack thead,.wiki-tbl-stack tbody{display:block}
  .wiki-tbl-stack tr{display:grid;grid-template-columns:minmax(0,1fr) auto;border-bottom:1px solid #221a14}
  .wiki-tbl-stack tbody tr:last-child{border-bottom:0}
  .wiki-tbl-stack :is(th,td){border-bottom:0}
  .wiki-tbl-stack :is(th,td):last-child{grid-column:1/-1;padding-top:0}
}
/* batch C (Accesses, Merchants, Items, Crafting, Imbuing, Upgrade System, ...): unlock badges, an access's missions, recipes, chips */
.badge.wiki-unlock{gap:5px}
.badge.wiki-unlock .ic{color:var(--gold)}
.wiki-steps .wiki-mission{margin:0 0 8px;font:600 15px/1.3 var(--bfont);font-variant-numeric:lining-nums;letter-spacing:.04em;text-transform:uppercase;color:var(--gold-hi)}
.wiki-spawns{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 10px}
.wiki-spawns .wiki-card-box{flex:0 1 220px}
.wiki-spawns .wiki-card-h{margin-bottom:6px;color:var(--bad-text)}
.wiki-spawn-pos{margin:0;padding:0;list-style:none;display:grid;gap:4px;font-size:14px}
.wiki-step-reqs{margin:10px 0 0;padding:10px 12px;border-radius:var(--ri);background:var(--raise);box-shadow:0 0 0 1px var(--edge)}
.wiki-steps .wiki-step-reqs-h{margin:0 0 8px;font-weight:600;color:var(--tx-h)}
.wiki-rcp{display:flex;flex-wrap:wrap;gap:4px}
.wiki-rcp>span{position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.wiki-rcp img{width:32px;height:32px;image-rendering:pixelated}
.wiki-rcp b{position:absolute;right:1px;bottom:0;font-size:11.5px;font-weight:600;line-height:1;color:var(--tx-h);text-shadow:0 0 2px #000,0 0 2px #000}
.wiki-chips{display:flex;flex-wrap:wrap;gap:4px}
.wiki-chips>span{padding:2px 7px;border-radius:var(--ri);font-size:13px;line-height:1.4;color:var(--tx2);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.wiki-chips>span.is-req{color:var(--bad-text)}
.wiki-desc{min-width:240px;font-size:13.5px;line-height:1.5;color:var(--tx2)}
.wiki-desc b{color:var(--tx);font-weight:600}
.wiki-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));gap:10px;margin:0;padding:0;list-style:none}
.wiki-cats a{display:flex;flex-direction:column;align-items:flex-start;gap:4px;height:100%;padding:12px;border-radius:var(--ri);color:var(--tx);text-decoration:none;
  background:var(--raise);box-shadow:0 0 0 1px var(--edge);transition:background-color .15s,box-shadow .15s}
.wiki-cats a:hover{color:var(--tx);background:#30261c;box-shadow:0 0 0 1px #6b5233;text-decoration:none}
.sub:has(>.sub-title) .wiki-cats a:not(:hover){background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.wiki-cats a:hover .wiki-name{color:var(--gold-hi)}
.wiki-cats img{width:32px;height:32px;image-rendering:pixelated}
.wiki-imb{display:grid;gap:8px}
.wiki-imb-lvl{display:grid;gap:6px;padding:8px 0 0;border-top:1px solid var(--line-soft)}
.wiki-imb-lvl:first-of-type{padding-top:0;border-top:0}
.wiki-imb-lvl>div:first-child{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px}
.wiki-imb-lvl strong{color:var(--gold-hi);font-weight:600;font-size:14px}
/* a paged table (ramonia.js data-wiki-page): rows off the page, the pager's buttons in the template's .pager look */
.wiki tr.wiki-off-page{display:none}
.wiki-pager button.pg{border:0;font:inherit;cursor:pointer}
.wiki-pager button.pg:not([aria-current]):not(:disabled):hover{color:var(--gold-hi);box-shadow:inset 0 0 0 1px #5d482f}
.wiki-pager button.pg:disabled{opacity:.45;cursor:default}
.wiki-knife{flex:0 0 auto;margin:0;padding:10px 14px;border-radius:var(--ri);background:var(--inset);box-shadow:inset 0 0 0 1px #2b221a}
.wiki-chips .ic{color:var(--bad-text)}

/* ---- motion: only on user action (plus the online dot), off with prefers-reduced-motion ---- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}

/* ---- focus: last, so nothing above hides it ---- */
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.ml:focus-visible{outline-offset:-2px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:0}
