/* EoP.Life pixel realm skin | site-wide additive layer | 22 Oct 2026.
   Loaded after style.css. Art & colours only; no route/auth/DB behaviour changed. */
:root {
  color-scheme: dark;
  --bg-parchment: #0c1d33;
  --bg-parchment-dark: #08182c;
  --ink-dark: #e7f0fc;
  --ink-sepia: #b7cce4;
  --accent-crimson: #f2b84f;
  --accent-emerald: #339a90;
  --border-style: 1px solid #8c6b35;
  --eop-night: #061323;
  --eop-card: #0c223b;
  --eop-edge: #426589;
  --eop-edge-gold: #d6a651;
  --eop-gold: #ffd078;
  --eop-text: #e7f0fc;
  --eop-muted: #b7cce4;
  --eop-panel-bg: linear-gradient(125deg,rgba(9,28,49,.97),rgba(9,29,51,.93)),url('/assets/eop-pixel-stone-v1.png');
  --eop-font-ui: 'Trebuchet MS',Verdana,system-ui,sans-serif;
  --eop-font-rpg: 'Silkscreen','Press Start 2P',ui-monospace,'Courier New',monospace;
}
html { background:#05101e; scroll-padding-top:120px; }
body {
  min-height:100dvh;
  color:var(--eop-text) !important;
  font-family:var(--eop-font-ui);
  background-color:#061323 !important;
  background-image:linear-gradient(180deg,rgba(1,8,19,.25) 0,rgba(2,12,25,.82) 370px,rgba(2,10,21,.97) 740px),url('/assets/eop-pixel-night-v1.png') !important;
  background-position:top center,top center !important;
  background-repeat:no-repeat,no-repeat !important;
  background-size:100% 100%,100% auto !important;
}
body,body * { box-sizing:border-box; }
::selection {background:#ba872e;color:#07131f;}
:focus-visible {outline:3px solid var(--eop-gold)!important;outline-offset:3px;}
a { color:#ffd078; }
a:hover {color:#ffe5aa;}
a:visited { color:#d8b67c; }
header, .site-header, .main-header {
  background:rgba(4,15,31,.97)!important;
  border-color:#416284!important;
  color:var(--eop-text)!important;
  box-shadow:0 3px 0 #07121e,0 7px 17px #0008!important;
}
header {backdrop-filter:blur(7px);}
.nav-container {max-width:none!important;padding-inline:clamp(12px,2vw,36px)!important;}
.primary-navigation {max-width:none!important;}
header nav ul {justify-content:center;gap:clamp(2px,.7vw,15px);}
header nav ul li a {
  color:#d8e6fc!important;
  font-family:var(--eop-font-ui);
  font-weight:700;
  font-size:clamp(.82rem,.85vw,1rem);
  border-bottom:2px solid transparent!important;
  text-shadow:0 1px #000!important;
}
header nav ul li a:is(:hover,:focus-visible,.active) {
  background:linear-gradient(180deg,#122944,#203a58)!important;
  color:#ffd078!important;
  border-bottom:2px solid #ffd078!important;
}
.mobile-menu-toggle {background:#0b2239!important;color:#ffd078!important;border:1px solid #d6a651!important;}
.server-status-banner {background:#06182ce8!important;border-block:1px solid #355678!important;}
.server-status-container {max-width:none!important;padding-inline:clamp(12px,2vw,34px)!important;}
.server-status-list {scrollbar-color:#c39a57 #091b2c;}
.server-status-item {background:#0e2845!important;border:1px solid #406487!important;color:#e7f0fc!important;border-radius:3px;box-shadow:inset 0 1px #ffffff13;}
.server-status-item.is-boosted-server {background:linear-gradient(120deg,#241d18,#76501a,#241d18)!important;background-size:220% 220%!important;border-color:#f6bd56!important;}
.server-status-item.is-test-boost-server {background:linear-gradient(120deg,#172447,#335582,#172447)!important;background-size:220% 220%!important;border-color:#7ab8ef!important;}
.server-name {color:#eaf2fc!important;}
.server-status-close {display:none!important;}
.content-wrapper {width:100%!important;max-width:none!important;display:block!important;padding:clamp(12px,2.2vw,32px)!important;margin-inline:auto!important;}
main {
  width:100%!important;
  max-width:none!important;
  padding:clamp(16px,2.2vw,38px)!important;
  border:1px solid #6f8dab!important;
  border-radius:8px;
  color:var(--eop-text)!important;
  background:linear-gradient(145deg,rgba(6,20,37,.97),rgba(10,30,51,.94) 55%,rgba(4,15,29,.98))!important;
  box-shadow:0 0 0 3px #06101f,0 10px 44px #0008,inset 0 1px #9cc1d022!important;
  animation:none!important;
}
main h1,main h2,main h3,main h4,main h5, .section-title, .section-header, .card-front h3, .tool-card h2 {
  color:#ffe0a0!important;
  font-family:var(--eop-font-rpg);
  font-weight:900;
  letter-spacing:-.035em;
  text-shadow:2px 2px 0 #040c16;
}
main h1 {font-size:clamp(1.65rem,2.6vw,3.15rem);}
main h2 {font-size:clamp(1.27rem,1.9vw,2.2rem);}
main h3 {font-size:clamp(1.05rem,1.45vw,1.62rem);}
main p,main li,main label,main td,main dd,main dt {color:var(--eop-text);}
main small,main .muted,main .subtitle,main .skills-data-note {color:var(--eop-muted)!important;}
.hero {border-color:#6a8aaa!important;gap:clamp(14px,2vw,36px)!important;animation:none!important;}
.hero-text h2,.hero-text p {color:var(--eop-text)!important;}
.drop-cap {color:var(--eop-gold)!important;}
.hero-map img {image-rendering:pixelated;}
.section-header,.section-title {border-color:#d6a651!important;}
/* Shared content cards, data lists, tools, account and market (display only). */
:where(.roster-card,.skill-record,.tool-card,.player-hub-account,.player-hub-quick-find,.player-hub-stat,.player-hub-panel,.market-stat-card,.market-toolbar-card,.market-create-panel,.flip-card,.card-front,.card-back,.item-record-card,.npc-record-card,.selected-item-card,.entry-drawer,.tool-result,.skill-best-option-details,.skill-next-upgrade-details) {
  color:var(--eop-text)!important;
  background:var(--eop-panel-bg)!important;
  border:1px solid #426589!important;
  border-radius:5px!important;
  box-shadow:inset 0 1px #9ec1df1a,0 5px 14px #0003!important;
}
:where(.roster-card,.skill-record,.tool-card,.player-hub-panel,.market-stat-card,.item-record-card,.npc-record-card):hover {
  border-color:#d6a651!important;
  box-shadow:inset 0 1px #ffe6ae22,0 0 0 1px #8c682b44,0 8px 18px #0008!important;
}
:where(.roster-card,.skill-record,.tool-card,.player-hub-panel,.market-stat-card) strong {color:#ffe0a0;}
:where(.player-hub-quick-results,.player-hub-quick-results > a,.player-hub-quick-kind,.hub-status,.player-hub-links a,.tool-stat-grid > div,.market-secondary-btn,.market-create-panel > summary,.market-filter-form select,.market-create-form select,.market-create-form input,.market-bid-form input) {
  color:#e7f0fc!important;
  background:#122b48!important;
  border-color:#4d7398!important;
}
:where(.tool-result,.player-hub-account,.player-hub-stat,.market-stat-card) {background-color:#0c233c!important;}
:where(.badge,.data-badge,.hub-status) {border-radius:3px!important;font-family:var(--eop-font-rpg);}
:where(.badge,.data-badge.confirmed,.hub-status.is-ok) {background-color:#174e4c;color:#c7fff0;}
:where(.top-filter-menu a,.tools-jump-nav a,.skills-jump-menu a,.player-hub-links a,.player-hub-account-actions .button-link) {
  color:#eaf2ff!important;background:#102946!important;border:1px solid #5177a0!important;border-radius:4px!important;text-decoration:none;
}
:where(.top-filter-menu a,.tools-jump-nav a,.skills-jump-menu a,.player-hub-links a,.player-hub-account-actions .button-link):is(:hover,:focus-visible,.active-filter) {background:#1a3b5d!important;border-color:#e4b463!important;color:#ffdc98!important;}
button,.cta-btn,input[type='submit'],input[type='button'],.button-link,.market-secondary-btn {
  font-family:var(--eop-font-ui);
  font-weight:700;
  border-radius:4px;
}
:where(.cta-btn,input[type='submit'],.player-hub-account-actions .button-link.primary) {
  background:linear-gradient(180deg,#ffdc89,#d99a3e)!important;
  color:#101928!important;border:1px solid #fff1b7!important;
  box-shadow:2px 3px 0 #050e1b!important;
  text-decoration:none;
}
:where(.cta-btn,input[type='submit'],.player-hub-account-actions .button-link.primary):hover {background:#ffe3a4!important;color:#06111f!important;}
:where(input:not([type='checkbox']):not([type='radio']):not([type='submit']),select,textarea) {
  max-width:100%;background:#091b31!important;color:#eaf2fc!important;border:1px solid #4c6c8f!important;border-radius:4px!important;font:inherit;
}
:where(input,textarea)::placeholder {color:#9eb5cf;opacity:1;}
:where(input,select,textarea):focus {border-color:#f7c56b!important;box-shadow:0 0 0 2px #ffd07835!important;}
:where(select,option) {color-scheme:dark;}
:where(table,.skill-progression-table,.item-table,.npc-table) {border-collapse:collapse;max-width:100%;color:#eaf2fc;background:#081a2d!important;}
:where(th,.skill-progression-table thead th) {color:#ffe0a0!important;background:#143251!important;border-color:#426589!important;}
:where(td,th) {border-color:#325473!important;}
:where(tr:nth-child(even)) {background:#0b2640;}
:where(tr:hover) {background:#183a59;}
:where(.tool-table-wrap,.item-table-wrapper,.npc-table-wrapper,.skill-progression-wrap) {scrollbar-color:#6d8daa #081a2d;}
:where(.tool-result a,.skill-source a) {color:#ffd078!important;}
/* Keep UI compact enough for rotated phones, without truncating tables. */
@media (orientation:landscape) and (max-height:650px) {
  .content-wrapper{padding:8px 12px!important;}
  main{padding:14px!important;}
  .nav-container{padding-block:4px!important;}
  header nav ul li a{padding:7px 10px!important;}
  .server-status-container{padding-block:4px!important;}
  .server-status-item{padding:3px 7px!important;}
  .grid-container,.roster-grid,.skills-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))!important;}
}
@media (max-width:768px) {
  .nav-container{grid-template-columns:minmax(0,1fr) auto;}
  main{border-radius:3px;}
  .content-wrapper{padding:8px!important;}
  .server-status-list{justify-content:flex-start;}
}
/* Browser pages cannot rotate the physical device; accessible rotate prompt. */
.eop-landscape-gate {display:none;}
@media (orientation:portrait) and (max-width:900px) and (pointer:coarse) {
 html.eop-landscape-active:not(.eop-portrait-allowed) .eop-landscape-gate {
   position:fixed;inset:0;z-index:2147483000;display:flex;justify-content:center;align-items:center;
   padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right));
   background:linear-gradient(160deg,#051323f5,#102d4dfb),url('/assets/eop-pixel-stone-v1.png');
   color:#eaf2fc;text-align:center;
 }
 .eop-landscape-gate__panel {width:min(100%,440px);padding:25px 23px;border:2px solid #e0ad58;background:#0b223b;box-shadow:0 0 0 5px #061223,0 12px 60px #000d;}
 .eop-landscape-gate__symbol {font-size:3.1rem;color:#ffd078;display:block;}
 .eop-landscape-gate__panel h2 {font:900 1.3rem var(--eop-font-rpg);color:#ffd078;margin:12px 0;}
 .eop-landscape-gate__panel p {font:1rem/1.5 var(--eop-font-ui);color:#eaf2fc;}
 .eop-landscape-gate__panel button{margin-top:14px;background:#162f4b;color:#e9f0fc;border:1px solid #6884a4;padding:10px 16px;cursor:pointer;}
 html.eop-landscape-active:not(.eop-portrait-allowed) {overflow:hidden;}
}
@media print {
 body,main{background:#fff!important;color:#000!important;box-shadow:none!important;}
 main *,main h1,main h2,main h3,main td,main th{color:#000!important;}
 .eop-landscape-gate{display:none!important;}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;}}
/* Pixel Realm v3: consistency and readability audit, offline candidate 2026-10-22.
   UI only. Preserve the authentication, marketplace action and form semantics. */
:root {
  --eop-panel-solid:#0b233b;
  --eop-panel-raised:#102c49;
  --eop-panel-border:#537697;
  --eop-good:#8fe4b8;
  --eop-warning:#ffd078;
  --eop-danger:#ff9e9e;
}
/* Ten desktop links must remain reachable between tablet and wide desktop sizes. */
@media (min-width:769px) {
  header nav ul { flex-wrap:wrap!important; row-gap:2px; }
  header nav ul li a { display:inline-flex; align-items:center; min-height:42px; }
}
/* Prevent inherited light-page styling on detailed marketplace views. */
body .market-item-card,body .market-buy-order-card,body .market-listing-table-wrap,
body .market-activity-list li,body .market-empty-state,body .market-view-toggle,
body .market-price-block,body .market-count-badge,body .market-create-panel,
body .market-toolbar-card,body .market-section-controls,body .market-active-transactions,
body .player-hub-market-activity {
  background:var(--eop-panel-bg)!important;
  color:var(--eop-text)!important;
  border-color:var(--eop-panel-border)!important;
  box-shadow:inset 0 1px #c9e7ff16,0 5px 15px #0004!important;
}
body .market-listing-table-wrap {overflow-x:auto;}
body .market-listing-table {background:#0b223a!important;color:var(--eop-text)!important;}
body .market-listing-table thead th {background:#163653!important;color:var(--eop-gold)!important;}
body .market-listing-table tbody tr:nth-child(even) {background:#102b46!important;}
body .market-listing-table tbody tr:hover {background:#214361!important;}
body .market-listing-table th,body .market-listing-table td {border-color:#436486!important;}
body .market-listing-badge,body .market-count-badge,body .market-view-option,
body .market-grid-actions .market-secondary-btn,body .market-secondary-btn,
body .market-buy-order-offer,body .market-quantity,body .market-price-block small,
body .market-meta-grid dt,body .market-meta-grid dd {
  color:var(--eop-text)!important;
}
body .market-view-option,body .market-count-badge {background:#123452!important;border-color:#6487a8!important;}
body .market-view-option.is-active {background:#b58231!important;color:#081525!important;}
body .market-listing-badge {background:#274c71!important;border:1px solid #6990b4;}
body .market-listing-badge.is-auction {background:#533d70!important;}
body .market-listing-badge.is-buy {background:#1d604d!important;}
body .market-bid-form input,body .market-grid-bid-form input[type='number'] {
  color:#eaf2fc!important;background:#091b31!important;border-color:#6487a8!important;
}
/* The old guide stylesheet used more-specific selectors; match them explicitly. */
body .guide-shell,body .guide-shell p,body .guide-shell li,
body .guide-shell .guide-hero h1,body .guide-shell .guide-section h1,
body .guide-shell .guide-section h2,body .guide-shell .guide-card h2 {
  color:var(--eop-text)!important;
}
body .guide-shell .guide-hero,body .guide-shell .guide-section,
body .guide-shell .guide-card,body .guide-shell .guide-grid article {
  background:var(--eop-panel-bg)!important;
  color:var(--eop-text)!important;
  border:1px solid var(--eop-panel-border)!important;
  box-shadow:0 5px 18px #0006!important;
}
body .guide-shell a,body .guide-shell .guide-nav a,body .guide-shell .guide-card a {
  color:var(--eop-gold)!important;background:#133451!important;
  border-color:#6487a8!important;
}
body .guide-shell a:is(:hover,:focus-visible) {background:#244869!important;color:#ffe6ac!important;}
body .guide-shell code {background:#092039!important;color:#e6f1ff!important;border-color:#426589!important;}
/* Dense data views, item/monster artwork and equipment sections. */
body .entity-detail-gallery,body .entity-detail-figure,body .entity-sprite-frame,
body .item-record-card,body .npc-record-card,body .item-record-field,
body .npc-record-field,body .selected-item-card,body .roster-table-wrapper,
body .item-table-wrapper,body .npc-table-wrapper,body .skill-progression-wrap {
  border-color:var(--eop-panel-border)!important;
  color:var(--eop-text)!important;
}
body .entity-detail-gallery {background:#0c233d!important;}
body .entity-thumbnail,body .entity-detail-image,body .entity-sprite-frame,
body .entity-sprite-frame-thumbnail,body .entity-sprite-frame-detail {image-rendering:pixelated;}
body .roster-table,body .item-table,body .npc-table,body .skill-progression-table,
body .tool-table-wrap table {background:#0b223a!important;color:var(--eop-text)!important;}
body .roster-table th,body .item-table th,body .npc-table th,
body .skill-progression-table th,body .tool-table-wrap th {
  background:#163653!important;color:var(--eop-gold)!important;border-color:#426589!important;
}
body .roster-table td,body .item-table td,body .npc-table td,
body .skill-progression-table td,body .tool-table-wrap td {border-color:#426589!important;}
/* Feedback colours must retain their semantic distinction on dark panels. */
body .tool-message.success {background:#113f38!important;color:#c2f7df!important;border:1px solid #32816a;}
body .tool-message.error,body .notice-error {background:#44222d!important;color:#ffd5d5!important;border:1px solid #b66c70!important;}
body .tool-message.error *,body .notice-error a {color:#ffe1db!important;}
body .data-badge.confirmed {background:#145d49!important;color:#d0ffea!important;}
body .data-badge.extrapolated {background:#6e5017!important;color:#fff0bb!important;}
body .data-badge.incomplete {background:#783035!important;color:#ffe0e0!important;}
body .data-badge.rare {background:#573c80!important;color:#f2e2ff!important;}
/* Realistic landscape mobile sizing, without hiding controls or table columns. */
@media (orientation:landscape) and (max-height:540px) {
  body {background-attachment:scroll!important;}
  .content-wrapper {padding:6px!important;}
  main {padding:10px!important;}
  main h1 {font-size:clamp(1.3rem,3.5vw,1.8rem);}
  main h2 {font-size:clamp(1.15rem,3vw,1.5rem);}
  .tool-card,.roster-card,.skill-record,.market-item-card {padding:10px!important;}
  .server-status-list {overscroll-behavior-inline:contain;}
}
/* A landscape preference must not prevent accessible portrait use. */
@media (orientation:portrait) and (max-width:900px) and (pointer:coarse) {
  .eop-landscape-gate__panel button {min-height:48px;min-width:200px;font-size:1rem;}
}
@media (prefers-contrast:more) {
  body .market-item-card,body .market-buy-order-card,body .guide-shell .guide-card,
  body .player-hub-panel {border-width:2px!important;}
  main a:focus-visible,main button:focus-visible {outline:3px solid #ffe5a4!important;outline-offset:3px;}
}
@media print {
  body .market-item-card,body .market-buy-order-card,body .guide-shell .guide-card,
  body .market-listing-table,body .tool-message,body .notice-error {
    background:#fff!important;color:#000!important;box-shadow:none!important;
  }
}


/* Pixel Realm v4: character-first command centre, consistent controls and keyboard
   accessibility. Presentation only; no player, market or account state is modified. */
:root {
  --eop-hub-highlight:#ffcf7b;
  --eop-focus:#ffe3a4;
  --eop-line:#587ca0;
}
/* A claimed character is the most useful landing-page object. Override the old
   inline parchment background without changing the PHP template or its data. */
body .player-hub {display:grid;gap:clamp(12px,1.4vw,22px);min-width:0;}
body .player-hub-account {
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;align-items:center;gap:clamp(14px,2vw,30px);
  padding:clamp(18px,2.4vw,36px)!important;
  background:linear-gradient(110deg,#102d4d,#091e35 60%,#061526)!important;
  border:2px solid #bb914c!important;
  box-shadow:inset 0 1px #fff3b32a,0 6px 22px #0008!important;
}
body .player-hub-account::before {
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:radial-gradient(circle at 85% 16%,#ffe4a92e 0 3px,transparent 4px),
    radial-gradient(circle at 73% 36%,#cce5ff33 0 1px,transparent 2px),
    radial-gradient(circle at 91% 72%,#ffe4a944 0 1px,transparent 2px),
    linear-gradient(120deg,transparent 56%,#52739612 78%,transparent);
}
body .player-hub-account-copy {flex:1 1 450px;min-width:0;}
body .player-hub-account-copy .eyebrow {
  margin:0 0 6px;color:var(--eop-hub-highlight)!important;
  font:800 .77rem/1.4 var(--eop-font-rpg);letter-spacing:.12em;text-transform:uppercase;
}
body .player-hub-account-copy h2 {margin:0 0 10px;overflow-wrap:anywhere;}
body .player-hub-account-copy p {max-width:80ch;}
body .player-hub-account-actions {display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end;}
body .player-hub-account-actions .button-link {min-height:44px;display:inline-flex;align-items:center;justify-content:center;}
body .player-hub-claimed-heroes {
  margin:0!important;padding:clamp(14px,1.7vw,24px)!important;
  background:var(--eop-panel-bg)!important;
  color:var(--eop-text)!important;
  border:1px solid var(--eop-line)!important;
  border-left:4px solid #d8a755!important;
  border-radius:5px!important;
  box-shadow:inset 0 1px #d9eaff12,0 6px 18px #0005;
}
body .player-hub-claimed-heroes h3 {margin:0 0 13px;}
body .player-hub-claimed-heroes h3 small {font-family:var(--eop-font-ui);font-size:.77rem;line-height:1.6;letter-spacing:0;color:#bed1e7!important;}
body .player-hub-claimed-heroes a {display:inline-flex;align-items:center;min-height:40px;overflow-wrap:anywhere;}
body .player-hub-quick-find {margin:0!important;padding:clamp(12px,1.6vw,20px)!important;z-index:30;}
body .player-hub-quick-find__title {color:#ffe0a0;font:800 .9rem var(--eop-font-rpg);}
body .player-hub-quick-find__hint {color:#c3d7ec!important;}
body .player-hub-quick-find input[type='search'] {min-height:48px;padding-right:76px;}
body .player-hub-quick-find__control button {background:#1b4567!important;color:#fff1d5!important;border:1px solid #7498b7!important;}
body .player-hub-quick-results {
  background:#0b233c!important;border:1px solid #d0a35a!important;
  box-shadow:0 10px 28px #000b!important;
}
body .player-hub-quick-results > a {color:#eaf2fc!important;background:#102d49!important;border-bottom:1px solid #395b7a!important;}
body .player-hub-quick-results > a:is(:hover,:focus-visible) {background:#245075!important;color:#ffe0a0!important;}
body .player-hub-quick-kind {background:#1c4668!important;color:#ffdd99!important;}
body .player-hub-quick-empty {color:#d3e3f5!important;}
body .player-hub-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,1.2vw,16px);margin:0;}
body .player-hub-stat {padding:clamp(12px,1.6vw,20px)!important;border-top:3px solid #d2a255!important;min-width:0;}
body .player-hub-stat span {
  font:800 .72rem/1.5 var(--eop-font-rpg);text-transform:uppercase;letter-spacing:.045em;
  color:#bcd4eb!important;white-space:normal;overflow-wrap:anywhere;
}
body .player-hub-stat strong {
  margin-top:7px;color:#ffe1a2!important;font:900 clamp(1.03rem,1.5vw,1.5rem)/1.25 var(--eop-font-ui);
  font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere;
}
body .player-hub-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.4vw,20px);}
body .player-hub-panel {position:relative;min-width:0;padding:clamp(14px,1.7vw,23px)!important;gap:8px;}
body .player-hub-panel::before {content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#e8b96c,#496c91 62%,transparent);}
body .player-hub-panel h3 {margin:0 0 3px;line-height:1.3;}
body .player-hub-panel p {margin:0 0 8px;color:#c6d9ed!important;line-height:1.55;}
body .player-hub-icon {display:inline-grid;place-items:center;width:43px;height:43px;border:1px solid #567ca0;background:#0c2845;border-radius:4px;}
body .player-hub-links {gap:8px;margin-top:auto;}
body .player-hub-links a {border-radius:4px!important;min-height:38px;max-width:100%;white-space:normal;text-align:center;}
body .player-hub-market-activity {margin:0!important;}
/* Roster, progression and planning surfaces should read like the same RPG UI. */
body .roster-selected-profile,body .roster-controls,body .roster-default-actions,
body .default-hero-rank-progress,body .skill-xp-calculator,body .skill-best-option,
body .skill-next-upgrade,body .skill-xp-results,body .skill-next-upgrade-details {
  background:var(--eop-panel-bg)!important;color:var(--eop-text)!important;
  border-color:var(--eop-line)!important;box-shadow:inset 0 1px #d6eaff18!important;
}
body .roster-sort-button,body .hero-default-button,body .roster-back-link {
  color:#ffdc94!important;background:#153854!important;border:1px solid #6b8cad!important;
  border-radius:4px;min-height:38px;
}
body .roster-sort-button:is(:hover,:focus-visible),body .hero-default-button:is(:hover,:focus-visible),body .roster-back-link:is(:hover,:focus-visible) {background:#285574!important;color:#fff1c7!important;}
body .skill-xp-error {color:#ffd5d5!important;background:#4a2530!important;border:1px solid #ba6c76!important;}
body .skill-xp-results strong,body .skill-best-option strong {color:#ffdf9b!important;}
body .skill-xp-fields,body .skill-xp-results {min-width:0;}
/* Disabled actions and validation states remain distinct in the dark palette. */
body :is(button,input,select,textarea):disabled,body a[aria-disabled='true'] {opacity:.62;cursor:not-allowed;}
body :is(input,select,textarea)[aria-invalid='true'] {border:2px solid #ff9e9e!important;box-shadow:0 0 0 2px #b744443d!important;}
body :is(input,select,textarea):focus-visible,body :is(button,a,[role='button']):focus-visible {outline:3px solid var(--eop-focus)!important;outline-offset:3px;}
body .tool-form-grid :is(input,select,textarea),body .market-create-form :is(input,select,textarea) {min-width:0;}
body :is(.tool-table-wrap,.roster-table-wrapper,.market-listing-table-wrap) {max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;}
body :is(.roster-table,.market-listing-table,.item-table,.npc-table) th {position:relative;}
/* Existing site high-contrast and reduced-motion user controls take precedence.
   This opt-in mode must override the pixel skin's many !important declarations. */
.high-contrast body {background:#000!important;background-image:none!important;}
.high-contrast main,.high-contrast main :is(section,article,aside,div,table,thead,tbody,tr,td,th) {
  background:#fff!important;background-image:none!important;color:#000!important;
  border-color:#000!important;box-shadow:none!important;text-shadow:none!important;
}
.high-contrast main :is(h1,h2,h3,h4,h5,p,li,span,small,strong,label,dt,dd) {color:#000!important;text-shadow:none!important;}
.high-contrast main a {color:#0041a5!important;background:#fff!important;text-decoration:underline!important;}
.high-contrast main :is(button,input,select,textarea) {background:#fff!important;color:#000!important;border:2px solid #000!important;}
.high-contrast main :is(a,button,input,select,textarea):focus-visible {outline:3px solid #0041a5!important;outline-offset:3px;}
.high-contrast main .player-hub-panel::before,.high-contrast main .player-hub-account::before {display:none!important;}
@media (max-width:1050px) {
  body .player-hub-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  body .player-hub-stats {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:620px) {
  body .player-hub-account {flex-direction:column;align-items:stretch;}
  body .player-hub-account-actions {justify-content:stretch;}
  body .player-hub-account-actions .button-link {flex:1 1 125px;}
  body .player-hub-grid {grid-template-columns:minmax(0,1fr);}
  body .player-hub-quick-find__hint {display:block;margin-top:4px;}
  body .player-hub-stats {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (orientation:landscape) and (max-height:540px) {
  body .player-hub-account {flex-direction:row;align-items:center;padding:12px!important;}
  body .player-hub-stats {grid-template-columns:repeat(4,minmax(0,1fr));}
  body .player-hub-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  body .player-hub-stat {padding:9px!important;}
  body .player-hub-quick-find {padding:9px!important;}
  body .player-hub-account-actions {justify-content:flex-end;}
}
@media (prefers-contrast:more) {
  body .player-hub-claimed-heroes,body .player-hub-stat,body .player-hub-panel {border-width:2px!important;}
  body .player-hub-quick-results > a:focus-visible {outline:3px solid #ffe5a4!important;}
}
@media print {
  body .player-hub-account,body .player-hub-claimed-heroes,body .player-hub-stat,
  body .player-hub-panel,body .player-hub-quick-find {background:#fff!important;color:#000!important;box-shadow:none!important;}
  body .player-hub-panel::before,body .player-hub-account::before {display:none!important;}
}


/* Pixel Realm v5: world map + skill progression cockpit.
   Based on the canonical Linux map.php and skills.php class/ID selectors.
   Cosmetic-only overrides: preserve canvas, control IDs, form values and JS behavior. */
:root {
  --eop-map-toolbar:#0a2138;
  --eop-map-canvas:#071725;
  --eop-progress-tile:#102d49;
}
/* The map fragment injects its own <style> after the shared header. Important
   declarations intentionally win over its legacy high-specificity parchment UI. */
body #eopMapViewer {
  width:100%!important;
  height:clamp(480px,calc(100dvh - 210px),980px)!important;
  min-height:480px!important;
  color:var(--eop-text)!important;
  background:var(--eop-map-canvas)!important;
  border:2px solid #bd914c!important;
  border-radius:5px!important;
  box-shadow:0 0 0 3px #071727,0 10px 28px #0009!important;
  font-family:var(--eop-font-ui)!important;
}
body #eopMapViewer #map {image-rendering:pixelated;touch-action:none;}
/* Preserve the map's existing fullscreen button: a global !important height
   would otherwise defeat map.php's non-important :fullscreen rule. */
body #eopMapViewer:fullscreen {
  width:100vw!important;height:100dvh!important;min-height:0!important;
  max-height:none!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;
}
body #eopMapViewer .panel {
  background:linear-gradient(150deg,#102b47f5,#071c31f7)!important;
  border:1px solid #d0a258!important;
  border-radius:5px!important;
  box-shadow:0 0 0 2px #051320,0 9px 30px #000b!important;
  color:#e8f1fd!important;
  scrollbar-color:#6787a8 #071b2f;
}
body #eopMapViewer .panel h1 {
  color:#ffe0a0!important;
  font:900 clamp(1.04rem,1.7vw,1.32rem)/1.35 var(--eop-font-rpg)!important;
  text-shadow:2px 2px 0 #030d17!important;
}
body #eopMapViewer :is(p,.locations-note,.object-group,#status) {color:#c7d9ee!important;}
body #eopMapViewer :is(#objectPanel,#mapLocationsPanel)>summary {
  color:#ffdc96!important;
  font-weight:800;
  padding-block:7px;
}
body #eopMapViewer .object-options {scrollbar-color:#6787a8 #071b2f;}
body #eopMapViewer .object-type {border-bottom:1px solid #31516c;padding-block:7px;}
body #eopMapViewer .object-type.is-highlighted {
  background:#56401d99!important;
  box-shadow:inset 0 0 0 1px #d8a958!important;
}
body #eopMapViewer .instance-list {
  background:#071a2d!important;
  color:#d8e9fc!important;
  border-color:#4b7094!important;
}
body #eopMapViewer :is(button,#mapLocationSelect) {
  min-height:42px;
  background:#153957!important;
  color:#f7e4b6!important;
  border:1px solid #7f9bb6!important;
  border-radius:3px!important;
  font-family:var(--eop-font-ui)!important;
  font-weight:700;
}
body #eopMapViewer button:is(:hover,:focus-visible) {
  background:#285879!important;
  color:#fff1cb!important;
  border-color:#f2bd69!important;
}
body #eopMapViewer .overlay-toggle {min-width:44px;min-height:44px;background:#0b2a46!important;}
body #eopMapViewer :is(#coords,#minimap) {
  background:#0a2138ec!important;
  color:#e9f2ff!important;
  border:1px solid #c89c55!important;
  border-radius:3px!important;
  box-shadow:0 4px 12px #0008;
}
body #eopMapViewer :is(input[type='checkbox']) {accent-color:#e3b260;}
/* Compact landscape screens: preserve a usable map, a scrollable tool panel,
   visible zoom controls and a minimap; never transform or cover the canvas. */
@media (orientation:landscape) and (max-height:600px) {
  body #eopMapViewer {height:max(340px,calc(100dvh - 110px))!important;min-height:340px!important;}
  body #eopMapViewer .panel {top:8px;left:8px;max-height:calc(100% - 16px)!important;width:min(340px,49%)!important;padding:11px!important;}
  body #eopMapViewer .panel.is-collapsed {width:auto!important;padding:5px!important;}
  body #eopMapViewer #minimap {width:90px!important;height:90px!important;}
  body #eopMapViewer .map-corner-actions {right:8px;bottom:8px;}
}
@media (orientation:portrait) and (max-width:700px) {
  body #eopMapViewer {height:max(450px,calc(100dvh - 130px))!important;min-height:450px!important;}
  body #eopMapViewer .panel {max-height:min(62%,440px)!important;}
  body #eopMapViewer #minimap {width:100px!important;height:100px!important;}
}
/* Skill XP calculator: card hierarchy, readable training options and metrics. */
body .skill-xp-calculator {
  max-width:none!important;
  width:100%;
  margin:0 0 clamp(18px,2vw,30px)!important;
  padding:clamp(14px,1.9vw,26px)!important;
  background:var(--eop-panel-bg)!important;
  color:var(--eop-text)!important;
  border:1px solid #c69b56!important;
  border-radius:5px!important;
  box-shadow:inset 0 1px #ffffff18,0 6px 24px #0007!important;
}
body .skill-xp-form {gap:clamp(12px,1.5vw,22px)!important;min-width:0;}
body .skill-xp-fields {min-width:0;}
body .skill-xp-fields label>span {color:#eaf3ff!important;}
body .skill-xp-fields small,body .skill-xp-boosts p,
body .skill-next-upgrade-heading p,body .skill-best-option-note {
  color:#bcd2e9!important;
  line-height:1.45;
}
body .skill-xp-boosts {
  min-width:0;
  border:1px solid #4f7294!important;
  border-radius:4px;
  background:#091e34!important;
}
body .skill-xp-boosts legend {color:#ffdc96!important;font-weight:800;}
body .skill-xp-boosts label {color:#eaf3ff!important;white-space:normal;}
body .skill-xp-boosts input {accent-color:#e5b66b!important;}
body .skill-xp-results,
body .skill-next-upgrade-details,
body .skill-best-option-details {
  grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(7px,1vw,14px);
}
body .skill-xp-results>div,
body .skill-next-upgrade-details>div,
body .skill-best-option-details>div,
body .skill-combat-option,
body .skill-combat-option-metrics>div,
body .skill-combat-option-requirements {
  min-width:0;
  background:var(--eop-progress-tile)!important;
  border:1px solid #517599!important;
  border-radius:4px;
  box-shadow:inset 0 1px #ffffff14!important;
}
body .skill-xp-results span,
body .skill-next-upgrade-details span,
body .skill-best-option-details span,
body .skill-combat-option-metrics span,
body .skill-combat-option-requirements span {
  color:#bcd2e9!important;
  font:700 .78rem/1.45 var(--eop-font-ui)!important;
  overflow-wrap:anywhere;
}
body .skill-xp-results strong,
body .skill-next-upgrade-details strong,
body .skill-best-option-details strong,
body .skill-combat-option strong {
  color:#ffe0a0!important;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
body .skill-next-upgrade,body .skill-best-option {
  background:linear-gradient(125deg,#0d2b45,#0b233b)!important;
  border:1px solid #6385a5!important;
  border-left:4px solid #d9a65b!important;
  border-radius:4px;
  min-width:0;
}
body #skillUseNextUpgrade {
  background:#173e5b!important;color:#ffdf9d!important;
  border:1px solid #d6aa61!important;
  border-radius:4px;
}
body #skillUseNextUpgrade:not(:disabled):is(:hover,:focus-visible) {background:#275777!important;}
body .skill-combat-option h5 {color:#ffdf9d!important;}
body .skill-combat-option>p {color:#c4d9ed!important;}
body .skill-next-upgrade-steps {color:#eaf3ff!important;}
@media (max-width:1100px) {
  body .skill-xp-form {grid-template-columns:minmax(0,1fr)!important;}
  body .skill-xp-results,body .skill-next-upgrade-details,body .skill-best-option-details {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media (max-width:640px) {
  body .skill-xp-fields {grid-template-columns:minmax(0,1fr)!important;}
  body .skill-combat-alternatives {grid-template-columns:minmax(0,1fr)!important;}
  body .skill-next-upgrade-heading {flex-direction:column;align-items:stretch;}
  body .skill-xp-results,body .skill-next-upgrade-details,body .skill-best-option-details {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media (orientation:landscape) and (max-height:540px) and (min-width:640px) {
  body .skill-xp-fields {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body .skill-xp-results {grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}
/* Opt-in accessibility controls and OS preferences override decorative skin. */
.high-contrast body #eopMapViewer,
.high-contrast body #eopMapViewer :is(.panel,button,select,#coords,#minimap,.instance-list),
.high-contrast body :is(.skill-xp-calculator,.skill-xp-boosts,.skill-xp-results>div,.skill-next-upgrade,.skill-best-option,.skill-combat-option) {
  background:#fff!important;color:#000!important;border-color:#000!important;box-shadow:none!important;
}
.high-contrast body #eopMapViewer :is(h1,p,summary,label,#status,.locations-note),
.high-contrast body :is(.skill-xp-calculator,.skill-xp-results,.skill-best-option,.skill-next-upgrade) :is(h1,h2,h3,h4,h5,p,span,strong,label,legend) {
  color:#000!important;text-shadow:none!important;
}
@media print {
  body #eopMapViewer,body #eopMapViewer .panel,body .skill-xp-calculator {
    background:#fff!important;color:#000!important;border-color:#333!important;box-shadow:none!important;
  }
}

/* Pixel Realm v6 — account, equipment and personal tools cockpit.
   Source selectors audited against Linux profile.php and includes/tools.php.
   This is a visual layer ONLY: no claim, trust, CSRF, equipment score or
   marketplace transaction logic is changed. */
:root {
  --eop-equipment-edge:#567b9c;
  --eop-account-highlight:#d7a957;
}
/* Account page previously relied on unthemed account-summary and form classes.
   Scope the overrides so public and private form semantics remain untouched. */
body .account-page {
  width:100%!important;
  max-width:none!important;
  min-width:0;
  overflow-wrap:anywhere;
}
body .account-page .account-panel {
  min-width:0;
  padding:clamp(16px,2.4vw,36px)!important;
  background:var(--eop-panel-bg)!important;
  border:1px solid #567a9a!important;
  border-top:3px solid var(--eop-account-highlight)!important;
  border-radius:6px!important;
  color:var(--eop-text)!important;
  box-shadow:inset 0 1px #ffffff18,0 10px 30px #0007!important;
}
body .account-page .eyebrow {
  color:#ffd88b!important;
  font:800 .82rem/1.4 var(--eop-font-ui)!important;
  letter-spacing:.11em;
  text-transform:uppercase;
}
body .account-page .account-panel>h2 {
  margin:clamp(22px,3vw,38px) 0 14px;
  padding:0 0 10px;
  border-bottom:1px solid #587a99;
  overflow-wrap:anywhere;
}
body .account-page .account-summary {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:clamp(12px,2vw,28px);
  min-width:0;
  margin:18px 0 24px;
  padding:clamp(14px,2vw,24px);
  background:linear-gradient(115deg,#153651,#0b223b)!important;
  border:1px solid #b98e4b!important;
  border-radius:5px;
  box-shadow:inset 0 1px #ffffff18,0 5px 20px #0006;
}
body .account-page .account-summary>div {min-width:0;}
body .account-page .account-summary p {margin:5px 0;line-height:1.55;overflow-wrap:anywhere;}
body .account-page .account-summary strong {color:#ffe0a0!important;}
body .account-page .account-avatar {
  display:block;
  width:clamp(72px,8vw,112px);
  height:clamp(72px,8vw,112px);
  object-fit:cover;
  border:3px solid #e3b66c!important;
  border-radius:4px!important;
  background:#071a2d;
  box-shadow:0 0 0 3px #061323,0 4px 14px #0008;
}
body .account-page .market-stat-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(8px,1.3vw,16px);
  margin:12px 0 18px;
}
body .account-page .market-stat-card {
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  padding:clamp(11px,1.4vw,19px)!important;
  background:linear-gradient(145deg,#102e4a,#0a2139)!important;
  border:1px solid #55799a!important;
  border-left:3px solid #d6a651!important;
}
body .account-page .market-stat-card span {color:#bfd3e9!important;font-size:.82rem;line-height:1.35;}
body .account-page .market-stat-card strong {color:#ffe0a0!important;font-size:clamp(1rem,1.35vw,1.48rem);line-height:1.3;white-space:normal;overflow-wrap:anywhere;}
body .account-page .market-notification-preferences,
body .account-page form[action='profile.php']:not(.market-notification-preferences) {
  min-width:0;
  margin:12px 0 18px;
  padding:clamp(12px,1.6vw,20px);
  background:#091f35!important;
  border:1px solid #426589!important;
  border-radius:5px;
}
body .account-page .market-notification-preferences label {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  min-width:0;
  color:#e7f0fc!important;
  line-height:1.5;
}
body .account-page .market-notification-preferences label:has(input[type='text']) {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:7px;
}
body .account-page :is(input[type='text'],input[type='search'],select) {
  min-width:0;
  max-width:100%;
  min-height:44px;
  padding:9px 12px;
  background:#06192b!important;
  color:#f0f6ff!important;
  border:1px solid #6788a7!important;
  border-radius:4px;
}
body .account-page input[type='checkbox'] {accent-color:#e3b260;width:19px;height:19px;}
body .account-page :is(button[type='submit'],.cta-btn) {
  min-height:44px;
  padding:10px 16px;
  border-radius:4px;
  cursor:pointer;
}
body .account-page button[type='submit'] {
  color:#071829!important;
  background:linear-gradient(#ffdb91,#d6a04b)!important;
  border:1px solid #ffe7b1!important;
  box-shadow:2px 3px 0 #04101c;
  font:800 .94rem/1.3 var(--eop-font-ui);
}
body .account-page button[type='submit']:is(:hover,:focus-visible) {
  color:#071829!important;background:#ffe5ac!important;border-color:#fff2ce!important;
}
/* Character cards and equipment editing table, preserving the existing form. */
body .account-page .account-panel>section.content-panel {
  margin:16px 0!important;
  padding:clamp(14px,1.8vw,24px)!important;
  background:linear-gradient(135deg,#102b46,#091d32)!important;
  border:1px solid #557a9b!important;
  border-left:4px solid #d6a651!important;
  border-radius:5px;
  box-shadow:0 6px 20px #0005!important;
}
body .account-page .account-panel>section.content-panel h3 {margin:0 0 10px;}
body .account-page .account-panel>section.content-panel h3 a {color:#ffdf9f!important;}
body .account-page .account-panel>section.content-panel p {line-height:1.55;}
body .account-page .tool-table-wrap {
  width:100%;max-width:100%;min-width:0;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  border:1px solid #567999!important;
  border-radius:4px;
  background:#071b2e!important;
  scrollbar-color:#c89e58 #0a2035;
}
body .account-page .tool-table-wrap table {
  width:100%;min-width:680px;
  border-collapse:collapse;
  background:#0b243c!important;
  color:#eaf2fc!important;
}
body .account-page .tool-table-wrap th {
  padding:11px 13px;
  color:#ffe0a0!important;
  background:#153653!important;
  border-bottom:2px solid #bc904b!important;
  text-align:left;
  white-space:nowrap;
}
body .account-page .tool-table-wrap td {
  padding:10px 13px;
  color:#eaf2fc!important;
  border-bottom:1px solid #365b7b!important;
  vertical-align:middle;
}
body .account-page .tool-table-wrap tr:nth-child(even) {background:#102d48!important;}
body .account-page .tool-table-wrap tr:hover {background:#1b405e!important;}
body .account-page .tool-table-wrap input[type='text'] {width:100%;min-width:190px;}
body .account-page .tool-table-wrap td strong {color:#ffdd95!important;font-variant-numeric:tabular-nums;}
body .account-page .notice {padding:13px 17px;border-radius:4px;line-height:1.5;}
body .account-page .notice-success {background:#113e39!important;color:#d8fff3!important;border:1px solid #3aa18b!important;}
body .account-page .notice-error {background:#48212c!important;color:#ffe5e5!important;border:1px solid #db7887!important;}
body .account-page .notice-error :is(a,strong) {color:#fff3bf!important;}
/* Personal tools: advanced planning, saved loadouts, checklists and actions. */
body :is(#advanced-planning,#portable-profile,#saved-entries) {scroll-margin-top:135px;}
body :is(#advanced-planning,#portable-profile,#saved-entries) .advanced-tool-grid {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));
  gap:clamp(10px,1.5vw,20px);
}
body :is(#advanced-planning,#portable-profile,#saved-entries) .advanced-tool-grid article,
body #portable-profile .tool-result,
body #saved-entries .tool-result {
  min-width:0;
  background:linear-gradient(135deg,#102b45,#0a2037)!important;
  border:1px solid #547898!important;
  border-left:3px solid #c69b56!important;
  border-radius:4px!important;
  color:#eaf2fc!important;
  box-shadow:inset 0 1px #ffffff14!important;
}
body :is(#advanced-planning,#portable-profile,#saved-entries) .advanced-tool-grid article {padding:clamp(13px,1.5vw,20px)!important;}
body :is(#advanced-planning,#portable-profile,#saved-entries) .advanced-tool-grid h3 {margin-top:0;}
body #portable-profile .tool-form-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));}
body #portable-profile :is(input,select,textarea) {min-width:0;min-height:44px;}
body #portable-profile :is(button,.file-button),
body #advanced-planning button,
body #saved-entries button {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;
  margin:6px 5px 6px 0;
  padding:9px 13px;
  background:#153a59!important;
  border:1px solid #9fbcce!important;
  border-radius:4px!important;
  color:#f3e1bb!important;
  font:700 .9rem/1.25 var(--eop-font-ui)!important;
  cursor:pointer;
}
body #portable-profile :is(button,.file-button):is(:hover,:focus-visible),
body #advanced-planning button:is(:hover,:focus-visible),
body #saved-entries button:is(:hover,:focus-visible) {
  background:#285c79!important;
  border-color:#f0c579!important;
  color:#fff3d4!important;
}
body #portable-profile .file-button {position:relative;}
body #portable-profile .checklist-grid {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));
  gap:8px;
}
body #portable-profile .personal-checklist {padding:0;margin:10px 0;list-style:none;}
body #portable-profile .personal-checklist li {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:10px;
  padding:9px 6px;
  color:#eaf2fc!important;
  border-bottom:1px solid #446785!important;
}
body #portable-profile .personal-checklist li :is(button,a) {flex:0 0 auto;}
body #portable-profile .tool-result {overflow-wrap:anywhere;}
body :is(#advanced-planning,#portable-profile,#saved-entries) :is(.data-badge,.tool-message) {line-height:1.5;}
/* Landscape-first without making portrait unusable. */
@media (max-width:1024px) {
  body .account-page .market-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:620px) {
  body .account-page .account-summary {grid-template-columns:minmax(0,1fr);justify-items:start;}
  body .account-page .account-panel {padding:14px!important;}
  body .account-page .market-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  body .account-page .market-stat-card {display:flex;align-items:flex-start;flex-direction:column;}
  body .account-page .account-panel>section.content-panel {padding:12px!important;}
  body .account-page .market-notification-preferences label {align-items:flex-start;}
}
@media (max-width:390px) {
  body .account-page .market-stat-grid {grid-template-columns:minmax(0,1fr);}
}
@media (orientation:landscape) and (max-height:540px) {
  body .account-page .account-summary {grid-template-columns:auto minmax(0,1fr);gap:12px;padding:12px;}
  body .account-page .account-avatar {width:66px;height:66px;}
  body .account-page .market-stat-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
  body .account-page .market-stat-card {padding:9px!important;}
  body #portable-profile .checklist-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* User accessibility modes must remain stronger than decorative !important skin. */
.high-contrast body .account-page :is(.account-panel,.account-summary,.market-stat-card,.market-notification-preferences,.content-panel,.tool-table-wrap,.notice),
.high-contrast body .account-page .tool-table-wrap :is(table,th,td,input),
.high-contrast body :is(#advanced-planning,#portable-profile,#saved-entries) :is(.advanced-tool-grid article,.tool-result,button,.file-button) {
  background:#fff!important;color:#000!important;border-color:#000!important;box-shadow:none!important;
}
.high-contrast body .account-page :is(.eyebrow,.account-summary strong,.market-stat-card span,.market-stat-card strong,.tool-table-wrap td strong,.tool-table-wrap th),
.high-contrast body :is(#advanced-planning,#portable-profile,#saved-entries) :is(h3,p,li,strong) {
  color:#000!important;text-shadow:none!important;
}
@media print {
  body .account-page :is(.account-panel,.account-summary,.market-stat-card,.market-notification-preferences,.content-panel,.tool-table-wrap),
  body :is(#advanced-planning,#portable-profile,#saved-entries) :is(.advanced-tool-grid article,.tool-result) {
    background:#fff!important;color:#000!important;border-color:#666!important;box-shadow:none!important;
  }
  body .account-page .tool-table-wrap {overflow:visible!important;}
}


/* Pixel Realm v7 — Heroes, Items, NPCs and Monsters directory polish.
   Additive presentation only: never alters rankings, searches, sort logic,
   game data, authentication, marketplace actions or visibility semantics. */
:root { --eop-directory-row:#0c2742; --eop-directory-alt:#12304b; --eop-directory-stroke:#496f91; }
/* Hero roster — make the search, filter and ranking controls one coherent bar. */
body .roster-controls, body .item-index-controls, body .npc-grid-controls {
  width:100%;max-width:none!important;min-width:0;
  margin:0 0 clamp(13px,1.6vw,24px)!important;
  padding:clamp(13px,1.7vw,24px)!important;
  color:var(--eop-text)!important;
  background:linear-gradient(140deg,#102b46,#081d32)!important;
  border:1px solid var(--eop-directory-stroke)!important;
  border-left:4px solid #d6a651!important;
  border-radius:5px;
  box-shadow:0 5px 16px #0005!important;
}
body .roster-filter-row {grid-template-columns:repeat(5,minmax(0,1fr)) minmax(110px,auto);gap:10px;}
body .roster-filter-row label, body .item-index-controls>label, body .npc-search-label {
  color:#c9dbec!important;min-width:0;line-height:1.45;
  font:800 .79rem/1.4 var(--eop-font-ui)!important;
}
body :is(#rosterSearch,#itemSearch,#npcSearch),
body .roster-filter-row :is(input,select),
body #itemAcquisitionFilter {
  width:100%;min-width:0;min-height:44px;
  padding:10px 12px!important;
  color:#eff6ff!important;background:#071c30!important;
  border:1px solid #678bab!important;
  border-radius:4px!important;
  font:600 .93rem/1.35 var(--eop-font-ui)!important;
}
body :is(#clearRosterFilters,#clearItemSearch,#clearNpcSearch) {
  min-height:44px;padding:10px 15px!important;
  color:#ffe4a8!important;background:#153b5b!important;
  border:1px solid #a2bad0!important;border-radius:4px!important;
  font:800 .9rem/1.25 var(--eop-font-ui)!important;cursor:pointer;
}
body :is(#clearRosterFilters,#clearItemSearch,#clearNpcSearch):is(:hover,:focus-visible) {
  color:#061729!important;background:#ffe0a0!important;border-color:#fff1c7!important;
}
body :is(#searchCount,#defaultHeroStatus,.item-search-count,.npc-search-count,.npc-grid-summary) {
  color:#c2d5ea!important;line-height:1.5!important;
}
body .default-hero-rank-progress {
  width:100%;max-width:none!important;padding:clamp(12px,1.5vw,22px)!important;
  background:#0a223b!important;border:1px solid #5a7f9e!important;
  border-radius:4px!important;
}
body .default-hero-rank-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;}
body .default-hero-rank-skill {
  min-width:0;padding:11px 13px!important;
  color:#eaf2fc!important;background:#13314d!important;
  border:1px solid #55799a!important;border-left:3px solid #c79c56!important;
  border-radius:3px;
}
body .default-hero-rank-target {color:#ffe0a0!important;font-variant-numeric:tabular-nums;}
body .default-hero-rank-note {color:#bcd2e9!important;}
/* Dense directories retain horizontal scrolling and sticky column headings. */
body :is(.roster-table-wrapper,.item-table-wrapper,.npc-table-wrapper) {
  width:100%;max-width:none!important;min-width:0;
  max-height:min(75dvh,820px);overflow:auto!important;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  border:1px solid #577b9d!important;border-radius:5px;
  background:#081c31!important;scrollbar-color:#d3a55b #081b2d;
}
body :is(.roster-table,.item-table,.npc-table) {
  width:100%;color:#edf5ff!important;background:#0a233b!important;
  font:500 .9rem/1.4 var(--eop-font-ui)!important;
  font-variant-numeric:tabular-nums;
}
body :is(.roster-table,.item-table,.npc-table) thead th {
  position:sticky;top:0;z-index:3;
  color:#ffe0a0!important;background:#153752!important;
  border:1px solid #587b9c!important;border-bottom:2px solid #c79b51!important;
  font:800 .79rem/1.4 var(--eop-font-ui)!important;
}
body :is(.roster-table,.item-table,.npc-table) tbody td {
  color:#e8f2ff!important;border:1px solid #345875!important;
}
body :is(.roster-table,.item-table,.npc-table) tbody tr:nth-child(odd) {background:#0b233b!important;}
body :is(.roster-table,.item-table,.npc-table) tbody tr:nth-child(even) {background:var(--eop-directory-alt)!important;}
body :is(.roster-table,.item-table,.npc-table) tbody tr:hover {background:#1e4461!important;}
body :is(.roster-sort-button,.item-sort-button,.npc-sort-button) {
  min-height:36px;padding:4px 3px!important;
  color:#ffe2a4!important;background:transparent!important;border:0!important;
  font:800 .85rem/1.35 var(--eop-font-ui)!important;
  text-align:left;cursor:pointer;
}
body :is(.roster-sort-button,.item-sort-button,.npc-sort-button):is(:hover,:focus-visible) {color:#fff5d9!important;text-decoration:underline;}
body :is(.roster-table,.item-table,.npc-table) th[aria-sort='ascending'],
body :is(.roster-table,.item-table,.npc-table) th[aria-sort='descending'] {background:#254f6d!important;}
body :is(.roster-player-link,.item-name-link,.npc-name-link,.item-record-back,.npc-record-back) {
  color:#ffdd97!important;text-decoration:underline;text-underline-offset:3px;
  font-weight:800;
}
body :is(.roster-player-link,.item-name-link,.npc-name-link,.item-record-back,.npc-record-back):is(:hover,:focus-visible) {color:#fff1ca!important;}
body .roster-grid {max-width:none!important;}
body .roster-card {background:linear-gradient(140deg,#12304c,#091f34)!important;}
body .roster-card :is(.roster-card-class,.roster-card-heading h3,.roster-card-details h4) {color:#ffe0a0!important;}
body .roster-card :is(.roster-card-heading p,.roster-card-sigil) {color:#c3d8ed!important;}
body .roster-card .stats-list li {border-color:#486985!important;}
/* Item index: long acquisition sources and selected-item details. */
body .item-search-row {grid-template-columns:minmax(0,1fr) minmax(180px,auto) auto;align-items:stretch;}
body .item-source-label {color:#bcd2e9!important;line-height:1.45;}
body .item-source-list {gap:6px 8px;}
body .item-source-list a, body .item-record-card a {color:#ffdd97!important;}
body .item-source-list a:is(:hover,:focus-visible),body .item-record-card a:is(:hover,:focus-visible) {color:#fff0c3!important;}
body :is(.item-muted,.item-load-error) {color:#c1d5e9!important;}
body :is(.item-record-card,.npc-record-card) {width:100%;max-width:none!important;padding:clamp(13px,1.7vw,25px)!important;}
body :is(.item-record-heading,.npc-record-heading) {border-bottom:2px solid #b98d4b!important;}
body :is(.item-record-details,.npc-record-details) {
  min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));
  border-color:#4c6f8e!important;
}
body :is(.item-record-field,.npc-record-field) {
  min-width:0;grid-template-columns:minmax(115px,.7fr) minmax(0,1.3fr);
  border-color:#456988!important;
  background:#0b263f!important;
}
body :is(.item-record-field,.npc-record-field) dt {
  color:#c9d9ed!important;background:#153752!important;
  border-right:1px solid #426688;font-weight:800;
}
body :is(.item-record-field,.npc-record-field) dd {color:#eff5ff!important;}
body :is(.item-record-field,.npc-record-field) :is(dt,dd) {overflow-wrap:anywhere;}
body :is(.item-record-drop-list,.npc-related-relationships) {line-height:1.65;}
/* NPC/monster directory and related drop cards. */
body .npc-search-row {grid-template-columns:minmax(0,1fr) auto;}
body .npc-directory-grid {min-width:0;}
body .npc-grid-title {color:#ffe0a0!important;}
body .npc-related-item-list {grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:12px;}
body .npc-related-item {
  min-width:0;padding:clamp(12px,1.4vw,19px)!important;
  color:#edf5ff!important;background:linear-gradient(145deg,#11304c,#0b233a)!important;
  border:1px solid #53789a!important;border-left:3px solid #c79b51!important;
  border-radius:4px;
}
body .npc-related-item :is(dt,p) {color:#c7d9ed!important;}
body .npc-related-item :is(dd,h5) {color:#ffe1a0!important;}
body .npc-related-item dl {grid-template-columns:minmax(90px,auto) minmax(0,1fr);}
/* Compact but usable landscape mode: never squash data columns to unreadable widths. */
@media (max-width:1100px) {
  body .roster-filter-row {grid-template-columns:repeat(3,minmax(0,1fr));}
  body :is(.roster-table,.item-table,.npc-table) {min-width:760px!important;}
}
@media (max-width:740px) {
  body .roster-filter-row {grid-template-columns:repeat(2,minmax(0,1fr));}
  body .item-search-row,body .npc-search-row {grid-template-columns:minmax(0,1fr);}
  body .item-record-details,body .npc-record-details {grid-template-columns:minmax(0,1fr);}
  body .item-record-field-wide,body .npc-record-field-wide {grid-column:auto;}
  body .roster-controls,body .item-index-controls,body .npc-grid-controls {padding:12px!important;}
}
@media (max-width:440px) {
  body .roster-filter-row {grid-template-columns:minmax(0,1fr);}
  body :is(.item-record-field,.npc-record-field) {grid-template-columns:minmax(0,1fr);}
  body :is(.item-record-field,.npc-record-field) dt {border-right:0;border-bottom:1px solid #426688;}
}
@media (orientation:landscape) and (max-height:540px) {
  body .roster-controls,body .item-index-controls,body .npc-grid-controls {padding:9px 12px!important;margin-bottom:9px!important;}
  body .roster-filter-row {grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
  body :is(.roster-table-wrapper,.item-table-wrapper,.npc-table-wrapper) {max-height:68dvh;}
}
/* Existing accessibility modes override every decorative dark-theme rule. */
.high-contrast body :is(.roster-controls,.item-index-controls,.npc-grid-controls,.default-hero-rank-progress,.default-hero-rank-skill,.roster-card,.item-record-card,.npc-record-card,.item-record-field,.npc-record-field,.npc-related-item,.roster-table-wrapper,.item-table-wrapper,.npc-table-wrapper),
.high-contrast body :is(.roster-table,.item-table,.npc-table,.roster-table th,.item-table th,.npc-table th,.roster-table td,.item-table td,.npc-table td),
.high-contrast body :is(.item-record-field dt,.npc-record-field dt,.roster-table tbody tr,.item-table tbody tr,.npc-table tbody tr) {
  background:#fff!important;background-image:none!important;color:#000!important;border-color:#000!important;box-shadow:none!important;
}
.high-contrast body :is(.roster-player-link,.item-name-link,.npc-name-link,.item-record-back,.npc-record-back,.item-source-list a) {color:#0041a5!important;}
.high-contrast body :is(.roster-sort-button,.item-sort-button,.npc-sort-button) {color:#000!important;}
.high-contrast body :is(.roster-filter-row label,.item-index-controls>label,.npc-search-label,.npc-grid-summary,.item-search-count,.npc-search-count,.default-hero-rank-note) {color:#000!important;}
@media print {
  body :is(.roster-controls,.item-index-controls,.npc-grid-controls,.default-hero-rank-progress,.roster-card,.item-record-card,.npc-record-card,.npc-related-item) {
    background:#fff!important;background-image:none!important;color:#000!important;border:1px solid #777!important;box-shadow:none!important;
  }
  body :is(.roster-table-wrapper,.item-table-wrapper,.npc-table-wrapper) {max-height:none!important;overflow:visible!important;}
}


/* Pixel Realm v8 — archive search, community events and landscape navigation.
   CSS-only extension based on the connected Linux includes/index.php and tools.php.
   Does not alter queries, account state, routes, data, or search functionality. */
:root {
  --eop-search-border:#b68d50;
  --eop-search-panel:#0a233b;
  --eop-search-alt:#12314e;
}
/* Homepage archive search is an existing feature, not a new global endpoint. */
body .home-site-search {
  isolation:isolate;z-index:25;
  width:100%;max-width:min(100%,1240px)!important;
  margin:clamp(12px,1.8vw,24px) auto 24px!important;
  padding:clamp(13px,1.8vw,25px)!important;
  color:#eaf3ff!important;
  border:2px solid var(--eop-search-border)!important;
  border-radius:5px!important;
  background:linear-gradient(130deg,#102f4e,#071a30 75%)!important;
  box-shadow:inset 0 1px #b9d5ed22,0 8px 24px #0008!important;
}
body .home-site-search label {
  display:block;color:#ffe0a0!important;
  font:800 clamp(.95rem,1.15vw,1.2rem)/1.4 var(--eop-font-rpg)!important;
  letter-spacing:.015em;margin:0 0 11px!important;
}
body .home-search-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch;}
body #homeSiteSearch {
  width:100%;min-width:0;min-height:48px;
  padding:11px 15px!important;
  color:#f1f6ff!important;background:#06182c!important;
  border:1px solid #7293b1!important;border-radius:4px!important;
  font:600 1rem/1.45 var(--eop-font-ui)!important;
}
body #homeSiteSearch::placeholder {color:#adc5dd!important;opacity:1;}
body #clearHomeSiteSearch {
  min-width:96px;min-height:48px;padding:9px 16px!important;
  color:#ffe3a4!important;background:#183b59!important;
  border:1px solid #c39956!important;border-radius:4px!important;
  font:800 .95rem/1.3 var(--eop-font-ui)!important;cursor:pointer;
}
body #clearHomeSiteSearch:is(:hover,:focus-visible) {color:#081a2c!important;background:#ffdc92!important;}
body .home-search-results {
  position:absolute;top:calc(100% - 9px);left:clamp(13px,1.8vw,25px)!important;
  right:clamp(13px,1.8vw,25px)!important;z-index:100;
  max-height:min(48dvh,440px)!important;overflow-y:auto;overscroll-behavior:contain;
  background:#081f37!important;border:2px solid #b68d50!important;
  border-radius:0 0 5px 5px!important;
  box-shadow:0 15px 32px #000c!important;scrollbar-color:#d6aa65 #081f37;
}
body .home-search-results[hidden] {display:none!important;}
body .home-search-result-list {margin:0!important;padding:0!important;list-style:none!important;}
body .home-search-result-list li+li {border-top:1px solid #345875!important;}
body .home-search-result-list a {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:48px;padding:11px 14px!important;
  color:#f0f5ff!important;background:#0c2843!important;
  text-decoration:none!important;overflow-wrap:anywhere;
}
body .home-search-result-list li:nth-child(even) a {background:#10304d!important;}
body .home-search-result-list a:is(:hover,:focus-visible) {
  color:#fff1c8!important;background:#1c4767!important;
  box-shadow:inset 4px 0 #ffd078;
}
body .home-search-result-type {
  flex:0 0 auto;padding:4px 7px;color:#ffdc98!important;
  background:#183956!important;border:1px solid #6b86a0;border-radius:3px;
  font:800 .7rem/1.3 var(--eop-font-ui)!important;
}
body .home-search-empty {padding:15px!important;color:#c9dbed!important;background:#0c2843!important;}
/* Existing public events and guild references: no change to event visibility or RSVP. */
body .home-public-events {
  width:100%;margin:18px 0 25px!important;padding:clamp(13px,1.8vw,24px)!important;
  color:#e9f3ff!important;
  border:1px solid #577a9b!important;border-left:4px solid #d4a65e!important;
  border-radius:5px!important;
  background:linear-gradient(135deg,#0d2a46,#081d33)!important;
  box-shadow:0 5px 18px #0005!important;
}
body .home-public-events-heading {display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;}
body .home-public-events-kicker {color:#ffcf7c!important;font:800 .77rem/1.4 var(--eop-font-ui)!important;letter-spacing:.1em;}
body .home-public-events-heading h2 {color:#ffe0a0!important;overflow-wrap:anywhere;}
body .home-public-events-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
body .home-public-event-card {
  min-width:0;padding:clamp(12px,1.3vw,18px)!important;
  border:1px solid #4f7292!important;border-top:3px solid #b58a48!important;
  border-radius:4px!important;background:linear-gradient(145deg,#12314e,#092137)!important;
  box-shadow:inset 0 1px #e4f0ff14,0 3px 10px #0004!important;
}
body .home-public-event-card :is(h3,p) {overflow-wrap:anywhere;}
body .home-public-event-card h3 a {color:#ffe0a0!important;text-decoration:underline;text-underline-offset:3px;}
body .home-public-event-card h3 a:is(:hover,:focus-visible) {color:#fff2ce!important;}
body .home-public-event-guild {color:#b8d8f2!important;font-weight:800;}
body .home-public-event-rsvp {color:#c3e4d6!important;}
body .home-public-events-empty {color:#cadcec!important;padding:10px 0!important;}
/* Tools community guide tiles use their existing links, not new privileges. */
body #discord-guides {scroll-margin-top:105px;}
body #discord-guides .advanced-tool-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
body #discord-guides .advanced-tool-grid article {
  min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:9px;
  padding:clamp(13px,1.5vw,20px)!important;
  border:1px solid #577a9b!important;border-top:3px solid #d3a55b!important;
  border-radius:4px!important;background:linear-gradient(135deg,#143653,#0a2239)!important;
}
body #discord-guides .advanced-tool-grid article :is(h3,p) {margin:0!important;overflow-wrap:anywhere;}
body #discord-guides .advanced-tool-grid article h3 {color:#ffe0a0!important;}
body #discord-guides .advanced-tool-grid article p {color:#d1e1f2!important;line-height:1.5;}
body #discord-guides .advanced-tool-grid article .button-link {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;margin-top:auto;padding:8px 13px!important;
  color:#08182b!important;background:linear-gradient(180deg,#ffe1a1,#d4a258)!important;
  border:1px solid #ffe4aa!important;border-radius:4px!important;
  font-weight:800;text-decoration:none;
}
body #discord-guides .advanced-tool-grid article .button-link:is(:hover,:focus-visible) {background:#fff1c8!important;}
body #discord-guides>p:last-child a {color:#ffdc97!important;}
/* Compact navigation and shortcut rails retain keyboard access and visible focus. */
body .tools-jump-nav {max-width:100%;scrollbar-color:#bd9658 #091e33;scrollbar-width:thin;}
body .tools-jump-nav a {white-space:nowrap;min-height:44px;display:inline-flex;align-items:center;}
@media (max-width:1000px) {
  body .home-public-events-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  body #discord-guides .advanced-tool-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px) {
  body .home-search-row {grid-template-columns:minmax(0,1fr) auto!important;gap:7px;}
  body #clearHomeSiteSearch {min-width:72px;padding-inline:10px!important;}
  body .home-public-events-grid,body #discord-guides .advanced-tool-grid {grid-template-columns:minmax(0,1fr);}
  body .home-public-events-heading {align-items:flex-start;flex-direction:column;}
  body .home-public-events-heading .cta-btn {width:100%!important;max-width:100%;}
  body .home-search-result-list a {align-items:flex-start;flex-direction:column;gap:5px;}
}
@media (orientation:landscape) and (max-height:500px) and (max-width:900px) {
  /* A sticky header consumes too much of a rotated phone's short viewport. */
  body header {position:relative!important;top:auto!important;}
  body .nav-container {padding-block:4px!important;}
  body .primary-navigation {max-height:52dvh;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-color:#d6aa65 #091b30;}
  body header nav ul {
    display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
    justify-content:flex-start!important;gap:3px!important;
    width:max-content!important;min-width:100%;padding:3px 0 7px!important;
  }
  body header nav ul li {flex:0 0 auto!important;width:auto!important;}
  body header nav ul li a {width:auto!important;min-height:44px!important;padding:8px 11px!important;white-space:nowrap;}
  body .server-status-container {padding-block:3px!important;}
  body .home-site-search {margin-block:9px 13px!important;padding:10px!important;}
  body .home-site-search label {margin-bottom:5px!important;font-size:.94rem!important;}
  body .home-search-results {left:10px!important;right:10px!important;max-height:42dvh!important;}
  body .home-public-events {padding:10px!important;margin-block:10px!important;}
  body .home-public-events-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  body #discord-guides .advanced-tool-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* Site accessibility mode must take precedence over pixel decoration. */
.high-contrast body :is(.home-site-search,.home-search-results,.home-search-result-list a,.home-public-events,.home-public-event-card,#discord-guides .advanced-tool-grid article) {
  color:#000!important;background:#fff!important;background-image:none!important;
  border-color:#000!important;box-shadow:none!important;
}
.high-contrast body :is(.home-site-search label,.home-public-events-heading h2,.home-public-events-kicker,.home-public-event-guild,.home-public-event-rsvp,.home-public-events-empty,.home-search-empty,#discord-guides .advanced-tool-grid article h3,#discord-guides .advanced-tool-grid article p) {color:#000!important;}
.high-contrast body :is(.home-search-result-list a,.home-public-event-card h3 a,#discord-guides>p:last-child a) {color:#0041a5!important;}
.high-contrast body :is(#homeSiteSearch,#clearHomeSiteSearch,#discord-guides .advanced-tool-grid article .button-link) {background:#fff!important;color:#000!important;border-color:#000!important;}
@media print {
  body :is(.home-site-search,.home-public-events,.home-public-event-card,#discord-guides .advanced-tool-grid article) {
    background:#fff!important;background-image:none!important;color:#000!important;border:1px solid #777!important;box-shadow:none!important;
  }
  body .home-search-results {display:none!important;}
  body :is(.home-public-event-card h3 a,#discord-guides .advanced-tool-grid article a) {color:#000!important;}
}

/* Pixel Realm v9 — public guild calendar, legal information and sign-in polish.
   Presentation only. Uses selectors verified against connected historical Linux
   includes/events.php, includes/TOS.php, includes/privacy.php and root login.php.
   Source files, routes, queries, authentication and Discord RSVP remain unchanged. */
:root {
  --eop-calendar-border:#55799a;
  --eop-calendar-gold:#f1c77b;
  --eop-calendar-green:#a5edc8;
}
/* Full-width public calendar, including the selected-event deep link. */
body main.events-page {
  width:100%!important;max-width:none!important;
  padding:clamp(15px,2.1vw,36px)!important;
  margin:0 auto!important;
}
body .events-page .events-hero,
body .events-page .event-card,
body .events-page .events-message {
  color:#e8f2ff!important;
  border:1px solid var(--eop-calendar-border)!important;
  border-radius:5px!important;
  background:linear-gradient(145deg,#102f4d,#071d33 88%)!important;
  box-shadow:inset 0 1px #eaf4ff15,0 5px 16px #0006!important;
}
body .events-page .events-hero {
  border-top:3px solid #cfa05a!important;
  padding:clamp(16px,2vw,28px)!important;
  margin-bottom:clamp(14px,2vw,25px)!important;
}
body .events-page .events-hero h1 {margin:.3rem 0 .7rem!important;line-height:1.2;overflow-wrap:anywhere;}
body .events-page .events-kicker {
  color:var(--eop-calendar-gold)!important;
  font:800 .83rem/1.4 var(--eop-font-ui)!important;
  letter-spacing:.09em;text-transform:uppercase;
}
body .events-page .events-hero>p:not(.events-kicker) {max-width:92ch;line-height:1.65;}
body .events-page .events-discord-note {
  margin:14px 0 0!important;padding:12px 15px!important;
  border-left:3px solid #d2a65c!important;
  background:#081c32!important;color:#cde1f4!important;
  overflow-wrap:anywhere;
}
body .events-page :is(.events-discord-note,.event-command) code {
  display:inline-block;max-width:100%;padding:3px 7px;
  color:#ffe0a0!important;background:#061628!important;
  border:1px solid #54728f;border-radius:3px;
  font:.86rem/1.5 ui-monospace,'Courier New',monospace!important;
  overflow-wrap:anywhere;word-break:break-word;white-space:normal;
}
body .events-page .events-grid {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(12px,1.35vw,21px);align-items:stretch;
}
body .events-page .event-card {
  min-width:0;padding:clamp(14px,1.5vw,22px)!important;
  border-top:3px solid #a67d3e!important;
  scroll-margin-top:clamp(12px,5vw,120px);
}
body .events-page .event-card-selected {
  outline:3px solid #f1c77b!important;outline-offset:3px;
  box-shadow:0 0 0 5px #0006,0 0 25px #d9a45255!important;
}
body .events-page .event-card h2 {
  margin:14px 0 10px!important;font-size:clamp(1.15rem,1.45vw,1.65rem)!important;
  line-height:1.35;overflow-wrap:anywhere;
}
body .events-page .event-card-top {gap:9px;align-items:center;}
body .events-page .event-public-badge {
  display:inline-flex;align-items:center;min-height:29px;
  padding:5px 9px!important;color:#caffdf!important;
  background:#155043!important;border:1px solid #4b9d82!important;
  border-radius:3px!important;font:800 .74rem/1.2 var(--eop-font-ui)!important;
  text-transform:uppercase;letter-spacing:.04em;
}
body .events-page .event-id {color:#b9d0e8!important;font-variant-numeric:tabular-nums;}
body .events-page .event-guild {color:#c4d9ed!important;line-height:1.5;overflow-wrap:anywhere;}
body .events-page .event-guild strong {color:#ffe0a0!important;}
body .events-page .event-meta {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
  margin:14px 0!important;
}
body .events-page .event-meta>div {
  min-width:0;padding:10px 12px!important;
  background:#0b2743!important;border:1px solid #3c6082!important;border-radius:4px!important;
}
body .events-page .event-meta dt {
  color:#accbe6!important;font:800 .73rem/1.4 var(--eop-font-ui)!important;
  letter-spacing:.05em;text-transform:uppercase;
}
body .events-page .event-meta dd {
  color:#fff1cc!important;margin:5px 0 0!important;
  font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
body .events-page .event-description {
  line-height:1.65;white-space:normal;overflow-wrap:anywhere;
}
body .events-page .event-series {color:#b8cfe7!important;font-size:.87rem;overflow-wrap:anywhere;}
body .events-page .event-rsvp-counts {
  display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;
  gap:8px!important;margin:14px 0 0!important;padding:12px 0 0!important;
  border-top:1px solid #42698a!important;
}
body .events-page .event-rsvp-counts>span {
  display:inline-flex;gap:7px;align-items:center;
  min-height:30px;padding:5px 8px;
  color:#d6e7f7!important;background:#0a2945!important;
  border:1px solid #385d7c;border-radius:3px;
  font-size:.82rem;line-height:1.3;
}
body .events-page .event-rsvp-counts strong {color:var(--eop-calendar-green)!important;font-variant-numeric:tabular-nums;}
body .events-page .event-command {
  margin:14px 0 0!important;padding:10px 12px!important;
  background:#0b243d!important;border-left:3px solid #bd9250!important;
  line-height:1.65;overflow-wrap:anywhere;
}
body .events-page .events-message {
  padding:18px!important;border-left:4px solid #8aa7c3!important;
  line-height:1.6;
}
body .events-page .events-error {
  color:#ffe6e9!important;background:#44232e!important;
  border-color:#e18c96!important;border-left:4px solid #e18c96!important;
}
/* Login uses a distinct account-panel variant; don't disturb OAuth links or state. */
body .account-page .account-panel:has(> .eyebrow + h1) {
  width:min(100%,880px);margin-inline:auto;
  border-top:3px solid #d3a65e!important;
  padding:clamp(20px,3vw,40px)!important;
}
body .account-page .account-panel>h1 {margin:.25rem 0 14px!important;}
body .account-page .account-panel>p {line-height:1.65;overflow-wrap:anywhere;}
body .account-page .account-panel>.eyebrow {letter-spacing:.11em;}
body .account-page .account-panel .cta-btn {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:11px 22px!important;
  text-align:center;max-width:100%;overflow-wrap:anywhere;
}
body .account-page .account-panel>.muted {color:#c1d3e8!important;}
/* Terms and privacy are long-form documents: reading width and clear hierarchy. */
body main .hero[aria-labelledby='terms-page-title'],
body main .hero[aria-labelledby='privacy-page-title'] {
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr);
  align-items:start;gap:clamp(16px,2vw,35px);
}
body main .hero[aria-labelledby='terms-page-title'] .hero-map,
body main .hero[aria-labelledby='privacy-page-title'] .hero-map {
  width:100%;max-width:none!important;
  padding:clamp(14px,1.7vw,24px);
  background:#102d49!important;border:1px solid #577a9a!important;
  border-left:3px solid #d3a65e!important;border-radius:4px;
  display:block;
}
body main .hero[aria-labelledby='terms-page-title'] .hero-map h3,
body main .hero[aria-labelledby='privacy-page-title'] .hero-map h3 {margin:0 0 12px!important;}
body main .hero[aria-labelledby='terms-page-title'] .hero-map p,
body main .hero[aria-labelledby='privacy-page-title'] .hero-map p {line-height:1.55;color:#d5e5f4!important;}
body main section[aria-labelledby='terms-details-title']>.roster-card,
body main section[aria-labelledby='privacy-details-title']>.roster-card {
  max-width:1100px;margin-inline:auto;
  padding:clamp(18px,2.3vw,36px)!important;
}
body main section[aria-labelledby='terms-details-title'] .roster-card-details,
body main section[aria-labelledby='privacy-details-title'] .roster-card-details {
  max-width:86ch;margin-inline:auto;
}
body main section[aria-labelledby='terms-details-title'] .roster-card-details h3,
body main section[aria-labelledby='privacy-details-title'] .roster-card-details h3 {
  margin:1.7em 0 .6em;padding-bottom:.35em;
  border-bottom:1px solid #416385;
  font-size:clamp(1rem,1.25vw,1.3rem)!important;
  line-height:1.4;
}
body main section[aria-labelledby='terms-details-title'] .roster-card-details h3:first-child,
body main section[aria-labelledby='privacy-details-title'] .roster-card-details h3:first-child {margin-top:0;}
body main section[aria-labelledby='terms-details-title'] .roster-card-details :is(p,li),
body main section[aria-labelledby='privacy-details-title'] .roster-card-details :is(p,li) {
  line-height:1.75;overflow-wrap:anywhere;
}
body main section[aria-labelledby='terms-details-title'] .roster-card-details li+li,
body main section[aria-labelledby='privacy-details-title'] .roster-card-details li+li {margin-top:.55em;}
@media (max-width:1190px) {
  body .events-page .events-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:760px) {
  body .events-page .events-grid {grid-template-columns:minmax(0,1fr);}
  body main .hero[aria-labelledby='terms-page-title'],
  body main .hero[aria-labelledby='privacy-page-title'] {grid-template-columns:minmax(0,1fr);}
  body .events-page .events-hero {padding:16px!important;}
}
@media (max-width:520px) {
  body .events-page .event-meta {grid-template-columns:minmax(0,1fr);}
  body .events-page .event-card {padding:13px!important;}
  body .account-page .account-panel .cta-btn {width:100%;}
}
@media (orientation:landscape) and (max-height:540px) {
  body main.events-page {padding:12px!important;}
  body .events-page .events-hero {padding:13px!important;margin-bottom:12px!important;}
  body .events-page .event-card {padding:12px!important;}
  body .events-page .events-grid {gap:10px;}
  body .events-page .event-rsvp-counts>span {min-height:30px;}
}
/* Accessible high-contrast overrides must beat all pixel decorations. */
.high-contrast body .events-page :is(.events-hero,.event-card,.events-message,.event-meta>div,.event-rsvp-counts>span,.events-discord-note,.event-command,code),
.high-contrast body main .hero[aria-labelledby='terms-page-title'] .hero-map,
.high-contrast body main .hero[aria-labelledby='privacy-page-title'] .hero-map {
  background:#fff!important;background-image:none!important;color:#000!important;
  border-color:#000!important;box-shadow:none!important;text-shadow:none!important;
}
.high-contrast body .events-page :is(.events-kicker,.event-id,.event-guild,.event-guild strong,.event-meta dt,.event-meta dd,.event-series,.event-rsvp-counts strong,.events-discord-note code,.event-command code),
.high-contrast body main .hero[aria-labelledby='terms-page-title'] .hero-map p {color:#000!important;}
.high-contrast body main .hero[aria-labelledby='privacy-page-title'] .hero-map p {color:#000!important;}
.high-contrast body .events-page .event-public-badge {background:#fff!important;color:#000!important;border:2px solid #000!important;}
.high-contrast body .events-page .event-card-selected {outline:4px solid #000!important;}
@media print {
  body .events-page :is(.events-hero,.event-card,.events-message,.event-meta>div,.event-rsvp-counts>span,.events-discord-note,.event-command,code),
  body main .hero[aria-labelledby='terms-page-title'] .hero-map,
  body main .hero[aria-labelledby='privacy-page-title'] .hero-map {
    background:#fff!important;background-image:none!important;color:#000!important;
    border-color:#777!important;box-shadow:none!important;text-shadow:none!important;
  }
  body .events-page .events-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  body .events-page .event-card {break-inside:avoid;}
  body .events-page .event-rsvp-counts>span {color:#000!important;}
}
/* Pixel Realm v10 — shared footer contrast and keyboard usability, 23 Oct 2026.
   The connected includes/footer.php sets sepia text (#5c4a37) inline; after
   the navy theme that text is low contrast. Scope to the shared footer only.
   No PHP, authentication, navigation behavior, or data flow is changed. */
body > footer {
  width:100%;max-width:none;
  margin:clamp(8px,1.2vw,18px) auto 0;
  padding:clamp(18px,2.2vw,30px) max(16px,env(safe-area-inset-right))
          max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))!important;
  background:linear-gradient(180deg,#091c32,#061322)!important;
  color:#e7f0fc!important;
  border-top:2px solid #cda05a;
  box-shadow:inset 0 3px #294967,0 -6px 20px #0005;
  font:normal 500 clamp(.9rem,.85vw + .65rem,1rem)/1.55 var(--eop-font-ui)!important;
  text-align:center;
  overflow-wrap:anywhere;
}
body > footer > div {color:#c3d4e8!important;}
body > footer nav[aria-label='Legal pages'] {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:clamp(8px,1.3vw,16px);margin:10px auto 0!important;
  max-width:100%;
}
body > footer nav[aria-label='Legal pages'] a,
body > footer nav[aria-label='Legal pages'] a:visited {
  color:#ffda91!important;
  font-weight:700;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
  padding:7px 8px;
  min-height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid transparent;
  border-radius:3px;
}
body > footer nav[aria-label='Legal pages'] a:is(:hover,:focus-visible) {
  color:#fff2c9!important;background:#173552!important;
  border-color:#cda05a;
  text-decoration-thickness:2px;
}
body > footer nav[aria-label='Legal pages'] a:focus-visible {
  outline:3px solid #ffe2a3!important;outline-offset:2px;
}
body > footer nav[aria-label='Legal pages'] [aria-hidden='true'] {
  color:#87a4c4!important;
}
/* Anchored panels should not disappear beneath the sticky site navigation. */
body main :is(.tool-card,.skill-record,.event-card,.player-hub-panel)[id] {
  scroll-margin-top:clamp(90px,11vh,160px);
}
@media (orientation:landscape) and (max-height:540px) {
  body > footer {margin-top:8px;padding-block:12px!important;}
  body > footer nav[aria-label='Legal pages'] {margin-top:4px!important;}
}
@media (max-width:420px) {
  body > footer nav[aria-label='Legal pages'] {gap:3px;}
  body > footer nav[aria-label='Legal pages'] a {padding-inline:5px;}
}
.high-contrast body > footer {
  background:#fff!important;background-image:none!important;color:#000!important;
  border:2px solid #000!important;box-shadow:none!important;
}
.high-contrast body > footer > div,
.high-contrast body > footer nav[aria-label='Legal pages'] [aria-hidden='true'] {color:#000!important;}
.high-contrast body > footer nav[aria-label='Legal pages'] a,
.high-contrast body > footer nav[aria-label='Legal pages'] a:visited {
  background:#fff!important;color:#0041a5!important;border-color:#000!important;
}
.high-contrast body > footer nav[aria-label='Legal pages'] a:focus-visible {
  outline:3px solid #0041a5!important;
}
@media (forced-colors:active) {
  body > footer {background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important;}
  body > footer > div,body > footer nav[aria-label='Legal pages'] [aria-hidden='true'] {color:CanvasText!important;}
  body > footer nav[aria-label='Legal pages'] a {color:LinkText!important;border-color:CanvasText!important;forced-color-adjust:auto;}
}
@media print {
  body > footer {background:#fff!important;background-image:none!important;color:#000!important;border-top:1px solid #555!important;box-shadow:none!important;}
  body > footer > div,body > footer nav[aria-label='Legal pages'] [aria-hidden='true'] {color:#000!important;}
  body > footer nav[aria-label='Legal pages'] a,
  body > footer nav[aria-label='Legal pages'] a:visited {color:#000!important;background:none!important;}
}
/* Pixel Realm v11 — server realm ribbon. Source-derived public header UI only.
   The historical header renders .server-status-list and replaces its children
   every 15 seconds; keep all layout rules on persistent parent selectors.
   This changes presentation, not polling, server values, links or privileges. */
body header .server-status-banner {
  width:100%;border-top:2px solid #a67e40!important;
  border-bottom:1px solid #42698a!important;
  background:linear-gradient(180deg,#07172b,#0b2742)!important;
}
body header .server-status-container {
  width:100%;max-width:none!important;min-width:0;
  padding:9px clamp(10px,1.7vw,30px)!important;
  display:flex;align-items:stretch;gap:0!important;
}
body header .server-status-list {
  display:flex;flex:1 1 100%;width:100%;min-width:0;
  align-items:stretch;justify-content:flex-start!important;
  gap:clamp(7px,.75vw,13px);padding:3px 1px 9px;
  overflow-x:auto;overflow-y:hidden;
  scroll-padding-inline:8px;scrollbar-width:thin;
  scrollbar-color:#dfb26b #091a2d;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}
body header .server-status-list:focus-visible {
  outline:3px solid #ffe0a0!important;outline-offset:2px;
}
body header .server-status-item {
  flex:1 0 clamp(158px,11.5vw,205px);
  min-width:clamp(158px,11.5vw,205px)!important;
  max-width:260px;width:auto!important;
  min-height:92px;
  display:grid;grid-template-rows:minmax(25px,auto) auto auto;
  align-content:center;justify-items:center;gap:5px;
  padding:9px 12px!important;
  border:1px solid #51789a!important;
  border-top:3px solid #cda15c!important;
  background:linear-gradient(180deg,#173755,#0a223b)!important;
  color:#ecf4ff!important;white-space:normal!important;
  box-shadow:inset 0 1px #b5d4ed18,0 3px 7px #0005!important;
  font-variant-numeric:tabular-nums;
}
body header .server-status-item.is-boosted-server {
  border-color:#e5ae4f!important;border-top-color:#ffe2a3!important;
  transform:none!important;margin-inline:0!important;
  background:linear-gradient(120deg,#33291b,#79521a,#33291b)!important;
  background-size:220% 220%!important;
}
body header .server-status-item.is-test-boost-server {
  border-color:#83bbef!important;border-top-color:#b7dcff!important;
  background:linear-gradient(120deg,#142c48,#315783,#142c48)!important;
  background-size:220% 220%!important;
}
body header .server-name-row {
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;
  gap:5px;width:100%;min-width:0;white-space:normal!important;
}
body header .server-name {
  max-width:100%;font-size:clamp(.8rem,.8vw + .4rem,.99rem);
  line-height:1.28;overflow-wrap:anywhere;white-space:normal!important;
  color:#f5f7ff!important;
}
body header .subscription-lock {font-size:.9rem;flex:0 0 auto;}
body header .boost-status {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:23px;max-width:100%;padding:3px 9px;
  border:1px solid #52718f;border-radius:3px;
  font-size:.72rem;line-height:1.25;letter-spacing:.03em;
  white-space:normal;overflow-wrap:anywhere;
}
body header .boost-status.is-boosted {
  background:#5b390b!important;color:#ffe6a5!important;
  border-color:#ffd27e!important;
}
body header .boost-status.is-test-boost {
  background:#123b60!important;color:#e2f3ff!important;
  border-color:#a0cfff!important;
}
body header .boost-status.not-boosted {
  background:#1c3349!important;color:#d8e7f5!important;
  border-color:#57718b!important;
}
body header .online-users {
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;
  gap:6px;color:#e4f5ea!important;line-height:1.35;
}
body header .server-user-count {color:#b4f3c6!important;font-weight:800;}
body header .server-latency {color:#e4eaf5!important;}
body header .server-latency-unit {color:#a8d8ff!important;}
body header .server-status-message {
  align-self:center;min-height:48px;display:flex;align-items:center;
  color:#e2edfa!important;font-size:.95rem;font-style:normal;
  padding:10px 12px;overflow-wrap:anywhere;
}
body header .server-status-close {display:none!important;}
@media (max-width:768px) {
  body header .server-status-container {padding:6px 10px!important;}
  body header .server-status-list {gap:8px;scroll-snap-type:x proximity;}
  body header .server-status-item {scroll-snap-align:start;flex-basis:160px;min-width:160px!important;}
}
@media (orientation:landscape) and (max-height:540px) {
  body header .server-status-container {padding-block:3px!important;}
  body header .server-status-list {padding-bottom:5px;gap:7px;}
  body header .server-status-item {
    min-height:66px;flex-basis:190px;min-width:190px!important;
    grid-template-rows:auto auto auto;
    gap:2px;padding:4px 9px!important;
  }
  body header .server-name {font-size:.78rem;line-height:1.12;}
  body header .boost-status {min-height:19px;padding:1px 6px;font-size:.65rem;}
  body header .online-users {font-size:.75rem;line-height:1.15;}
}
@media (prefers-reduced-motion:reduce) {
  body header .server-status-item.is-boosted-server,
  body header .server-status-item.is-test-boost-server {
    animation:none!important;background-size:100% 100%!important;
  }
  body header .server-status-list {scroll-behavior:auto!important;}
}
.high-contrast body header .server-status-banner,
.high-contrast body header .server-status-item,
.high-contrast body header .boost-status {
  background:#fff!important;background-image:none!important;
  color:#000!important;border-color:#000!important;
  box-shadow:none!important;text-shadow:none!important;
}
.high-contrast body header :is(.server-name,.server-user-count,.server-latency,.server-latency-unit,.online-users,.server-status-message) {
  color:#000!important;
}
@media (forced-colors:active) {
  body header .server-status-banner,
  body header .server-status-item,
  body header .boost-status {
    background:Canvas!important;color:CanvasText!important;
    border-color:CanvasText!important;box-shadow:none!important;
  }
  body header :is(.server-name,.server-user-count,.server-latency,.server-latency-unit,.online-users,.server-status-message) {
    color:CanvasText!important;
  }
}

/* Pixel Realm v12 — keyboard wayfinding, tables and compact controls.
   Progressive enhancement only. No authenticated page or game logic changes. */
.eop-skip-link {
  position:fixed;z-index:2147482999;
  inset-block-start:max(8px,env(safe-area-inset-top));
  inset-inline-start:max(8px,env(safe-area-inset-left));
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;max-width:calc(100vw - 16px);
  padding:10px 18px;border:2px solid #ffe6a5;
  border-radius:4px;background:#07182b!important;color:#ffe3a0!important;
  font:800 1rem/1.3 var(--eop-font-ui);text-decoration:none!important;
  box-shadow:0 4px 0 #0009,0 0 0 3px #133a5a;
  transform:translateY(calc(-100% - 28px));
  opacity:0;pointer-events:none;
}
.eop-skip-link:focus,.eop-skip-link:focus-visible {
  transform:none;opacity:1;pointer-events:auto;
  outline:3px solid #ffe6a5!important;outline-offset:3px;
}
body header .primary-navigation a[aria-current='page'] {
  color:#ffe2a0!important;background:#173955!important;
  border-bottom:2px solid #ffd078!important;
  box-shadow:inset 0 -1px 0 #ffcf7838;
}
body .eop-table-scroll-region {
  max-width:100%;min-width:0;
  overflow-x:auto;overscroll-behavior-inline:contain;
  scroll-padding-inline:12px;
  scrollbar-color:#d2a760 #0b243c;
  scrollbar-width:auto;
}
body .eop-table-scroll-region:focus-visible {
  outline:3px solid #ffe1a1!important;outline-offset:2px;
  box-shadow:inset 0 0 0 2px #f7c76a70;
}
body .eop-table-scroll-region[tabindex='0']::after {
  content:'⇆ Scroll to see more columns';
  display:block;position:sticky;inset-inline-start:0;
  width:max-content;max-width:100%;
  margin:5px 2px 3px;padding:2px 7px;
  color:#d4e5f5;background:#153653;
  border:1px solid #4f7494;border-radius:3px;
  font:600 .75rem/1.4 var(--eop-font-ui);
}
body .eop-table-scroll-region :is(table,.roster-table,.item-table,.npc-table) {
  min-width:max-content;
}
body .eop-table-scroll-region :is(th,td) {
  overflow-wrap:normal;white-space:normal;
}
body :is(main,[id='eop-main-content']):focus {scroll-margin-block-start:clamp(10px,4vh,44px);}
@media (orientation:landscape) and (max-height:540px) {
  .eop-skip-link {min-height:40px;padding:6px 14px;}
  body .eop-table-scroll-region[tabindex='0']::after {font-size:.7rem;margin-block:3px;}
}
@media (forced-colors:active) {
  .eop-skip-link,.eop-skip-link:focus {background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important;}
  body .eop-table-scroll-region:focus-visible {outline-color:Highlight!important;box-shadow:none!important;}
  body .eop-table-scroll-region[tabindex='0']::after {background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;}
}
@media print {
  .eop-skip-link,body .eop-table-scroll-region[tabindex='0']::after {display:none!important;}
  body .eop-table-scroll-region {overflow:visible!important;}
}
@media (prefers-reduced-motion:reduce) {
  .eop-skip-link,body .eop-table-scroll-region {scroll-behavior:auto!important;transition:none!important;}
}

/* Pixel Realm v13 — legible public forms and clear input states.
   Presentation only; scoped to known public Heroes, Skills and Tools controls.
   Never changes names, values, validity, submission, hidden fields or CSRF. */
:root {
  --eop-form-ink:#eff6ff;
  --eop-form-label:#ffdfa0;
  --eop-form-help:#c0d7eb;
  --eop-form-field:#071d34;
  --eop-form-edge:#7999b7;
  --eop-form-invalid:#ffb0b9;
}
body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form) {
  min-width:0;
  gap:clamp(10px,1.4vw,18px);
}
/* Only real, visible input labels. In particular do not expose feedback-trap. */
body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form)
  label:not(.tool-check):not(.feedback-trap) {
  min-width:0;
  color:var(--eop-form-label)!important;
  font:700 clamp(.91rem,1vw,1rem)/1.45 var(--eop-font-ui);
  overflow-wrap:anywhere;
}
body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form)
  label:not(.tool-check):not(.feedback-trap) > :is(input:not([type='hidden']):not([type='checkbox']):not([type='file']),select,textarea) {
  display:block;
  width:100%;max-width:100%;min-width:0;
  min-height:46px;
  margin-block-start:6px;
  padding:10px 12px!important;
  background:var(--eop-form-field)!important;
  color:var(--eop-form-ink)!important;
  border:2px solid var(--eop-form-edge)!important;
  border-radius:4px!important;
  font:600 1rem/1.45 var(--eop-font-ui)!important;
  box-shadow:inset 0 2px 4px #0004!important;
}
body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form)
  label:not(.tool-check):not(.feedback-trap) > :is(input:not([type='hidden']):not([type='checkbox']):not([type='file']),select,textarea):where(textarea) {
  min-height:136px;
  resize:vertical;
  line-height:1.55!important;
}
body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form)
  label:not(.tool-check):not(.feedback-trap) > :is(input:not([type='hidden']):not([type='checkbox']):not([type='file']),select,textarea):focus-visible {
  border-color:#ffdf98!important;
  outline:3px solid #ffdf98!important;
  outline-offset:2px;
  box-shadow:0 0 0 5px #112c49!important;
}
body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form)
  label:not(.tool-check):not(.feedback-trap):focus-within {
  color:#fff0c7!important;
}
body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form)
  :is(input,textarea)::placeholder {color:#bed2e8!important;opacity:1;}
body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form)
  input[type='number'] {font-variant-numeric:tabular-nums;}
/* :user-invalid avoids a wall of errors before a user interacts with a form. */
body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form)
  label:not(.tool-check):not(.feedback-trap) > :is(input:not([type='hidden']):not([type='checkbox']):not([type='file']),select,textarea):is(:user-invalid,[aria-invalid='true']) {
  border-color:var(--eop-form-invalid)!important;
  box-shadow:inset 0 0 0 1px #ffb0b9!important;
}
body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form)
  label:not(.tool-check):not(.feedback-trap) > :is(input:not([type='hidden']):not([type='checkbox']):not([type='file']),select,textarea):disabled {
  opacity:1!important;
  color:#c1d2e3!important;
  background:#25394b!important;
  border-color:#687e91!important;
  cursor:not-allowed;
}
body main :is(.tool-form-grid,.skill-xp-boosts) :is(input[type='checkbox'],input[type='radio']) {
  accent-color:#f5c575;
  inline-size:21px;block-size:21px;
  flex:0 0 auto;
}
body main :is(.tool-check,.skill-xp-boosts label) {
  min-height:40px;
  line-height:1.5;
  color:#edf5ff!important;
}
body main :is(.tool-form-grid,.tool-feedback-form,.roster-filter-row,.skill-xp-form)
  button:not([hidden]) {
  min-height:44px;
  padding:9px 15px;
  font:800 .96rem/1.35 var(--eop-font-ui);
}
body main :is(.tool-form-grid,.tool-feedback-form,.roster-filter-row,.skill-xp-form)
  button:disabled {
  opacity:1!important;
  color:#c1d2e3!important;
  background:#293e52!important;
  border:1px solid #657f96!important;
  box-shadow:none!important;
  cursor:not-allowed;
}
/* Distinguish submit, reset/filter, and unavailable actions at a glance. */
body main .tool-feedback-form button[type='submit'] {
  color:#0b1b2d!important;
  background:linear-gradient(180deg,#ffe4a4,#dfaa54)!important;
  border:2px solid #ffe5ac!important;
  box-shadow:2px 3px 0 #03101d!important;
}
body main .tool-feedback-form button[type='submit']:is(:hover,:focus-visible) {
  color:#071422!important;background:#ffedc0!important;
}
body main .roster-filter-row button[type='button'] {
  color:#ffe0a2!important;
  background:#173753!important;
  border:2px solid #b98d50!important;
}
body main #skillUseNextUpgrade:disabled {
  color:#c1d2e3!important;
  background:#293e52!important;
  border:2px solid #657f96!important;
  box-shadow:none!important;
  opacity:1!important;
}
body main .skill-xp-boosts {
  border:1px solid #7294b1!important;
  border-radius:4px;
  padding:clamp(10px,1.2vw,18px)!important;
}
body main .skill-xp-boosts legend {
  color:#ffe2a5!important;
  font:800 1rem/1.45 var(--eop-font-ui);
  padding-inline:8px;
}
body main :is(.tool-form-grid,.skill-xp-fields,.tool-feedback-form) small {
  display:block;
  color:var(--eop-form-help)!important;
  line-height:1.5;
  margin-block-start:5px;
  overflow-wrap:anywhere;
}
body main :is(.tool-message.success,.tool-message.error,.skill-xp-error:not([hidden])) {
  border:2px solid #8babc6!important;
  border-inline-start:5px solid #e9ba66!important;
  border-radius:4px;
  padding:12px 15px;
  color:#f1f7ff!important;
  background:#142c44!important;
  overflow-wrap:anywhere;
}
body main :is(.tool-message.error,.skill-xp-error:not([hidden])) {
  border-inline-start-color:#ff9ea8!important;
  background:#42212d!important;
  color:#fff0f2!important;
}
body main .tool-message.success {border-inline-start-color:#80d7bb!important;}
@media (max-width:600px) {
  body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form) {
    min-width:0;
    column-gap:10px;
  }
  body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form)
    label:not(.tool-check):not(.feedback-trap) > :is(input:not([type='hidden']):not([type='checkbox']):not([type='file']),select,textarea) {
    font-size:16px!important; /* avoid mobile browser text-input zoom */
  }
}
@media (orientation:landscape) and (max-height:440px) {
  body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form)
    label:not(.tool-check):not(.feedback-trap) > :is(input:not([type='hidden']):not([type='checkbox']):not([type='file']),select,textarea) {
    min-height:44px;margin-block-start:4px;padding-block:7px!important;
  }
  body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form) {row-gap:9px;}
}
@media (forced-colors:active) {
  body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form)
    label:not(.tool-check):not(.feedback-trap) > :is(input:not([type='hidden']):not([type='checkbox']):not([type='file']),select,textarea) {
    color:FieldText!important;background:Field!important;border:2px solid FieldText!important;
    box-shadow:none!important;
  }
  body main :is(.tool-form-grid,.roster-filter-row,.skill-xp-fields,.tool-feedback-form)
    label:not(.tool-check):not(.feedback-trap) > :is(input:not([type='hidden']):not([type='checkbox']):not([type='file']),select,textarea):focus-visible {
    outline-color:Highlight!important;border-color:Highlight!important;box-shadow:none!important;
  }
  body main :is(.tool-message.success,.tool-message.error,.skill-xp-error:not([hidden])) {
    background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;
  }
}
@media print {
  body main :is(.tool-message.success,.tool-message.error,.skill-xp-error:not([hidden])) {
    background:#fff!important;color:#000!important;border-color:#333!important;
  }
}

/* EOP_PIXEL_REALM_V6_COMPACT_RIBBON_20261026: BEGIN.
   Source-pinned incremental polish. Existing site-wide Pixel Realm artwork,
   global typography, boost/test effects, login and HCC v1.5 are preserved.
   No new HTML/JS, no externally fetched assets and no CSS rules for protected
   dashboard/account, OAuth, marketplace, or HCC internals. */
.server-status-banner > .server-status-container {
  min-width:0;
  gap:clamp(5px,.85vw,12px);
}
.server-status-banner .server-status-list {
  display:flex;
  flex-wrap:nowrap;
  min-width:0;
  max-width:100%;
  align-items:center;
  gap:clamp(5px,.7vw,10px);
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-inline:contain;
  scrollbar-width:thin;
  scroll-padding-inline:6px;
}
.server-status-banner .server-status-item {
  flex:0 0 auto !important;
  width:max-content !important;
  min-width:max-content;
  max-width:none;
  box-sizing:border-box;
  white-space:nowrap;
  padding-block:clamp(3px,.6vw,6px);
  padding-inline:clamp(7px,.75vw,12px);
  font-variant-numeric:tabular-nums;
  text-wrap:nowrap;
  /* Deliberately no background/animation/transform/flag overrides. */
}
.server-status-banner .server-status-item :is(.server-name-row,.server-name,.online-users,.server-status-message) {
  white-space:nowrap;
  min-width:0;
}
.server-status-banner .server-status-item :is(.server-name,.online-users) {
  line-height:1.25;
}
.server-status-banner .server-status-item :is(.server-name,.server-user-count) {
  text-shadow:0 1px 1px rgba(0,0,0,.58);
}
/* Preserve full card and label visibility when room permits, but don't allow
   centered distribution to hide the first or last server on narrow screens. */
@media (max-width:980px) {
  .server-status-banner .server-status-list { justify-content:flex-start!important; }
}
@media (orientation:landscape) and (max-height:450px) {
  .server-status-banner > .server-status-container { padding-block:4px!important; }
  .server-status-banner .server-status-list { gap:6px; }
  .server-status-banner .server-status-item { padding-block:3px; }
}
/* Existing public-only realm landing section: gentle frame and tabular stats;
   no shared page-wide selectors, no HCC or admin component overrides. */
.eopx-shell .eopx-hero,
.eopx-shell .eopx-aside,
.eopx-shell .eopx-panel {
  border-image:none;
  background-clip:padding-box;
}
.eopx-shell :is(.eopx-stat,.eopx-skill) :is(.value,.detail) {
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
.eopx-shell :is(.eopx-rail-link,.eopx-button):focus-visible {
  outline:3px solid #ffe2a2!important;
  outline-offset:3px;
}
@media(prefers-reduced-motion:reduce) {
  .eopx-shell :is(.eopx-button,.eopx-rail-link) {
    transition:none!important;
  }
}
/* EOP_PIXEL_REALM_V6_COMPACT_RIBBON_20261026: END. */

/* EOP_PIXEL_REALM_V61_LIVE_HEADER_SPECIFICITY_CORRECTION_20261026.
   Only the public server ribbon. Override legacy header !important width
   and wrapping constraints that defeated v6's content-width cards. */
body header .server-status-banner .server-status-item {
  flex:0 0 auto!important;
  width:max-content!important;
  min-width:max-content!important;
  max-width:none!important;
  white-space:nowrap!important;
}
body header .server-status-banner .server-name-row {
  width:max-content!important;
  min-width:max-content!important;
  max-width:none!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
}
body header .server-status-banner :is(.server-name,.online-users) {
  width:max-content;
  max-width:none!important;
  overflow-wrap:normal!important;
  white-space:nowrap!important;
}
/* END EOP_PIXEL_REALM_V61_LIVE_HEADER_SPECIFICITY_CORRECTION_20261026 */
