/* =====================================================================
   Tropic War — island theme: warm off-white surfaces, jungle-green and
   lagoon-blue accents, coral reds, flat cards with soft rounded corners.
   All colours are tokens below — change them here.
   ===================================================================== */
:root {
  --bg: #ece9de;             /* warm sand, easy on the eyes */
  --surface: #faf7ee;        /* warm ivory cards, never stark white */
  --surface2: #f4f0e5;
  --surface3: #ebe7da;
  --line: #ddd7c6;           /* soft outlines */
  --line2: #e7e2d4;
  --ink: #22302a;
  --muted: #6c7a72;
  --title: #23704a;          /* jungle green titles */
  --head-a: #f1ecdf;         /* header */
  --head-b: #e9e3d3;
  --box-a: #eef0e2;          /* box header (flat) */
  --box-b: #eef0e2;
  --accent: #2f9461;         /* palm green */
  --accent-a: #3aa86f;
  --accent-d: #25784e;
  --sky: #2f8fd0;            /* lagoon blue */
  --sky-l: #e8f4fb;
  --link: #1f78ad;
  --red: #d24a35;            /* coral red */
  --red-a: #e5634c;
  --blue: #2f7fc4;
  --green: #2e8b46;
  --purple: #7a4fb0;
  --gold: #d8a018;           /* tropical sun */
  --side1: #d24a35;
  --side2: #2f7fc4;
  --radius: 12px;
  --font: "Inter", "Segoe UI", Tahoma, Verdana, sans-serif;
  --font-h: "Roboto Condensed", "Arial Narrow", "Inter", sans-serif;
  --ease: .18s ease;
}
* { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 13.5px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg)  no-repeat; }
a { color: var(--link); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--red); text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-h); font-weight: 700; letter-spacing: .03em; }
h3 { font-size: 14px; text-transform: uppercase; color: var(--title); margin: 18px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line2); }
code { background: var(--surface3); padding: 1px 5px; font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--line2); margin: 12px 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 520px; margin: 0 auto; }
main.wrap { flex: 1; width: 100%; padding-top: 16px; padding-bottom: 28px; }

/* ---------- icons */
.ic { width: 16px; height: 16px; fill: currentColor; flex: none; vertical-align: -3px; }
.ic.red { color: var(--red); }

/* ---------- header */
.top { background: color-mix(in srgb, var(--head-a), var(--head-b)); color: var(--ink); position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: stretch; gap: 20px; min-height: 54px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #254e3b; font: 700 22px/1 var(--font-h); letter-spacing: .08em; text-transform: uppercase; }
.brand:hover { color: #254e3b; text-decoration: none; }
.brand .brand-mark { width: 26px; height: 26px; color: var(--accent); }
.mainnav { display: flex; flex-wrap: wrap; margin-left: auto; }
.mainnav a { display: flex; align-items: center; gap: 7px; color: #2d493c; padding: 0 12px; font-weight: 600; font-size: 13px; border-bottom: 3px solid transparent; border-top: 3px solid transparent; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.mainnav a .ic { width: 15px; height: 15px; color: var(--accent); transition: color var(--ease); }
.mainnav a:hover { background: rgba(255, 255, 255,.55); color: var(--red); text-decoration: none; }
.mainnav a.on { background: #fcfaf8; color: var(--title); border-bottom-color: var(--accent); }
.mainnav a.on .ic { color: var(--red); }
.mainnav a.exit, .mainnav a.exit .ic { color: var(--red); }
.subnav { background: #fbfaf8; border-bottom: 1px solid var(--line2); font-size: 12.5px; }
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 2px 18px; padding-top: 6px; padding-bottom: 6px; }
.subnav a { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 500; }
.subnav a .ic { width: 14px; height: 14px; color: #659b80; }
.badge { background: color-mix(in srgb, var(--red-a), var(--red)); color: #ffffff; padding: 0 6px; font-size: 11px; font-weight: 700; line-height: 16px; display: inline-block; }
.status { color: var(--ink); background: #f6f4f0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.status .wrap { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.st-name { font-weight: 700; }
.st-item { display: inline-flex; align-items: center; gap: 6px; }
.st-item .ic { color: var(--muted); }
.st-item .ic.red { color: var(--red-a); }
.st-money { color: var(--green); font-weight: 700; }
.st-money .ic { color: var(--gold); }
.st-loc { color: var(--muted); }
.hpbar { position: relative; width: 150px; height: 15px; background: #f3dcd8; display: inline-block; overflow: hidden; border: 1px solid #e3bdb6; }
.hpbar i { position: absolute; inset: 0 auto 0 0; background: #d16154; transition: width .8s; }
.hpbar em { position: relative; display: block; text-align: center; font: 700 10.5px/13px var(--font); font-style: normal; color: #472014; text-shadow: 0 0 3px rgba(255, 255, 255,.9), 0 0 1px #ffffff; }
.alert { display: inline-flex; align-items: center; gap: 6px; background: #eaf0e7; border: 1px solid #b3d1c2; color: #194c35; padding: 2px 10px; font-weight: 600; }
.alert:hover { text-decoration: none; color: #194c35; }
.alert.work { background: #f2eee8; border-color: #b3d1c2; color: var(--accent-d); }
.alert.danger { background: color-mix(in srgb, var(--red-a), var(--red)); border-color: var(--red); color: #ffffff; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .75; } }

/* ---------- boxes */
.box { background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.box > h2, .box > summary > h2 { margin: 0; background: color-mix(in srgb, var(--box-a), var(--box-b)); color: #29523f; font-size: 14px; padding: 8px 14px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.box > h2 > .ic, .box > summary > h2 > .ic { color: var(--accent); width: 16px; height: 16px; }
.box > h2 a { color: var(--link); }
.box > h2 .muted { color: var(--muted); }
.h2r { margin-left: auto; font: 400 12.5px var(--font); text-transform: none; letter-spacing: 0; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.h2r a.on { color: var(--title); font-weight: 700; }
.h2r input { padding: 3px 7px; }
.box-in { padding: 14px 16px; }
.card { background: color-mix(in srgb, #fbf9f6, var(--surface2)); border: 1px solid var(--line2); border-left: 3px solid var(--accent-a); padding: 10px 14px; margin: 10px 0; }
.card summary { cursor: pointer; }
.notice { background: #f8f4ea; border: 1px solid #bdd8ca; border-left: 3px solid var(--gold); padding: 9px 14px; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0 16px; }
.cols2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }

/* ---------- flash & forms */
.flash { padding: 10px 14px; margin-bottom: 14px; border: 1px solid; border-left-width: 4px; }
.flash-ok { border-color: #bcd7c9; border-left-color: var(--accent); color: #25553e; background: #f6f4ee; }
.flash-err { border-color: #efc9c3; border-left-color: var(--red); color: #88371f; background: #fef1ee; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.form label.chk { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-items: end; }
input, select, textarea { font: inherit; font-size: 13.5px; padding: 6px 9px; border: 1px solid #b7cdc2; background: #ffffff; color: var(--ink); max-width: 100%; transition: border-color var(--ease), box-shadow var(--ease); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-a); box-shadow: 0 0 0 3px rgba(95, 165, 130,.18); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 15px; height: 15px; }
textarea { width: 100%; resize: vertical; }
input.qty { width: 80px; }
.inline { display: inline; margin: 0; }
.inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 13px var(--font); padding: 7px 16px; border: 1px solid var(--accent-d); background: color-mix(in srgb, var(--accent-a), var(--accent)); color: #ffffff; cursor: pointer; letter-spacing: .02em; transition: filter var(--ease), background var(--ease); text-shadow: 0 1px 0 rgba(0, 0, 0,.12); }
.btn:hover { filter: brightness(1.07); color: #ffffff; text-decoration: none; }
.btn:active { filter: brightness(.95); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { padding: 3px 10px; font-size: 12px; }
.btn.big { padding: 10px 26px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.btn.ghost { background: #faf8f6; color: var(--accent-d); border-color: #b4cbc0; text-shadow: none; }
.btn.danger, .btn.red-btn { background: color-mix(in srgb, var(--red-a), var(--red)); border-color: #944128; }
.btn.blue-btn { background: color-mix(in srgb, #4d82c4, var(--blue)); border-color: #22508a; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; }
.linkbtn:hover { color: var(--red); text-decoration: underline; }
.linkbtn.red, .red { color: var(--red); }
.plus { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; margin-left: 7px; vertical-align: middle; cursor: pointer;
  background: transparent; border: 1.5px solid rgba(73, 134, 104,.45); border-radius: 50%; color: #498668;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.plus svg { width: 12px; height: 12px; display: block; }
.plus:hover { background: rgba(95, 165, 130,.14); border-color: rgba(73, 134, 104,.8); color: #2b644a; transform: scale(1.12); }
.plus:active { transform: scale(.95); }
.plus:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(95, 165, 130,.25); }
.filter { margin: 8px 0 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter.center { justify-content: center; text-align: center; }

/* ---------- tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #4a6055; background: #f2f0ea; padding: 6px 10px; font-weight: 700; border-bottom: 1px solid var(--line); }
.tbl td { padding: 6px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; transition: background var(--ease); }
.tbl tr:hover td { background: #f8f6f3; }
.tbl tr.mine td { background: #faf6eb; }
.r { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.tbl th.r, .tbl td.r { text-align: right; } .tbl th.l, .tbl td.l { text-align: left; }
.num { color: var(--muted); width: 32px; }
.small { font-size: 12px; } .tiny { font-size: 11px; } .muted { color: var(--muted); }
.green { color: var(--green); } .blue { color: var(--blue); } .purple { color: var(--purple); }
.bad { color: var(--red); font-weight: 700; }
.tabs { display: flex; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 7px 14px; color: var(--muted); font-weight: 600; font-size: 13px; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: all var(--ease); }
.tabs a:hover { color: var(--accent-d); background: var(--surface2); text-decoration: none; }
.tabs a.on { color: var(--title); border-bottom-color: var(--accent); background: #f5f2ed; }
.tabs.small a { font-size: 11.5px; padding: 5px 9px; }
.pager { text-align: center; margin: 12px 0; display: flex; justify-content: center; gap: 3px; flex-wrap: wrap; }
.pager a, .pager b { min-width: 30px; padding: 3px 8px; border: 1px solid var(--line); background: #fafaf8; }
.pager b { background: color-mix(in srgb, var(--accent-a), var(--accent)); color: #ffffff; border-color: var(--accent-d); }
.pager a:hover { text-decoration: none; filter: brightness(.97); }
ul.plain { margin: 0; padding-left: 18px; }
ul.dots { margin: 0; padding-left: 0; list-style: none; }
ul.dots li { margin: 2px 0; padding-left: 14px; position: relative; }
ul.dots li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--accent-a); }

/* ---------- players / levels */
.pl { font-weight: 700; color: var(--link); }
.lvl { color: var(--muted); font-size: 12px; margin-left: 1px; font-weight: 400; }
.sbadge { display: inline-grid; place-items: center; min-width: 18px; height: 16px; background: var(--sc, #71543a); color: #ffffff; font-size: 9px; font-weight: 800; padding: 0 3px; vertical-align: -2px; line-height: 1; border-radius: 3px; letter-spacing: .02em; overflow: hidden; }
.sbadge.sb-pf { min-width: 25px; height: 23px; font-size: 10px; border-radius: 4px; vertical-align: middle; }
.sbadge.sb-md { min-width: 26px; height: 26px; font-size: 11px; border-radius: 5px; vertical-align: middle; }
.sbadge.golden { box-shadow: 0 0 0 2px #e2b23a, 0 0 6px rgba(226, 178, 58, .55); margin: 0 3px 0 2px; }
.sbadge img { display: block; image-rendering: auto; filter: none !important; }
.sbadge.sb-lg { min-width: 42px; height: 42px; font-size: 15px; border-radius: 8px; }
.sbadge.sb-xl { width: 96px; min-width: 96px; height: 96px; font-size: 32px; border-radius: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25), inset 0 0 0 3px rgba(255, 255, 255, .18); }
/* logos (up to 60×42) sit in a fixed box per size and are scaled to fit it, never stretched or cut */
.sbadge.has-logo { display: inline-block; background: transparent; padding: 0; width: 26px; min-width: 26px; height: 18px; border-radius: 2px; vertical-align: -4px; }
.wp-name .sbadge, .mp-dom .sbadge { margin-right: 5px; }
.sbadge.has-logo img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.sbadge.has-logo.sb-md { width: 26px; min-width: 26px; height: 26px; vertical-align: middle; }
.sbadge.has-logo.sb-pf { width: 25px; min-width: 25px; height: 23px; vertical-align: middle; }
.sbadge.has-logo.sb-lg { width: 60px; min-width: 60px; height: 42px; }
.sbadge.has-logo:hover { filter: none; transform: scale(1.06); }
.sbadge.sb-xl.has-logo { width: 96px; height: 96px; background: var(--surface); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); border-radius: 16px; }
.sbadge.sb-xl.has-logo img { height: auto; width: auto; max-width: 84px; max-height: 84px; }
.sbadge.sb-xl:hover, .sbadge.sb-lg:hover { filter: none; transform: none; }
.sbadge.golden.sb-xl, .sbadge.golden.sb-lg { box-shadow: 0 0 0 3px #e2b23a, 0 6px 18px rgba(0, 0, 0, .25); }
.sbadge:hover { color: #ffffff; text-decoration: none; filter: brightness(1.12); }
.levels { border-collapse: collapse; }
.levels td { padding: 3px 7px; vertical-align: middle; }
.levels td.k { text-align: right; color: var(--muted); white-space: nowrap; }
.levels td.sep { height: 8px; }
.lv { font-size: 15px; font-weight: 700; }
.lv.red { color: var(--red); } .lv.blue { color: var(--blue); } .lv.green { color: var(--green); } .lv.purple { color: var(--purple); }
.ex { color: var(--ink); }
.rem { color: #8ca196; font-size: 11px; }
.sk-ic { width: 30px; height: 18px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
.skills td.k { text-align: left; color: var(--ink); }
.kv { margin: 3px 0; }
.kv .k { color: var(--muted); font-weight: 600; }
.recovery { color: #b77b72; }
.recovery .k { color: #c08a82; }
.recovery b { color: #a85d53; font-weight: 600; font-variant-numeric: tabular-nums; }
.recovery.done { color: #7c988a; } .recovery.done b { color: var(--green); }
.live-hp { font-variant-numeric: tabular-nums; }
.freepts { background: color-mix(in srgb, #45c183, var(--gold)); color: #ffffff; padding: 2px 8px; font-weight: 700; font-size: 12px; margin-right: 8px; }
.on-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3fbf4f; box-shadow: 0 0 0 2px rgba(63, 191, 79, .22); vertical-align: 1px; }
.on-dot.live { animation: on-pulse 2.2s ease-in-out infinite; }
@keyframes on-pulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(63, 191, 79, .25); } 50% { box-shadow: 0 0 0 5px rgba(63, 191, 79, 0); } }

/* ---------- landing */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; margin: 4px 0 18px; border: 1px solid var(--line); }
.hero-text { background: #1f8a83; color: #f3f7f2; padding: 34px 36px; position: relative; overflow: hidden; }
.hero-text::after { content: ""; position: absolute; right: -20px; bottom: -10px; width: 190px; height: 190px; opacity: .12; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M10.6 23c.4-4.6 1-9.1 1.6-13.3l1.6.2c-.4 4.2-.8 8.6-1 13.1z'/%3E%3Cpath d='M13 9.6C9.4 7 5.6 7.2 3.7 9.9 6.8 9 9.9 9.3 12.8 11zM13 9.6c3.6-2.6 7.4-2.4 9.3.3-3.1-.9-6.2-.6-9.1 1.1zM13 9.6c-1.2-3.6-4.3-5.6-7-5 2.9 1.2 5 3.1 6.2 5.7zM13 9.6c1.6-3.6 4.6-5.4 7.2-4.7-2.9 1-5 2.9-6.4 5.5z'/%3E%3C/svg%3E"); pointer-events: none; }
.hero-text > * { position: relative; z-index: 1; }
.hero h1 { font-size: 56px; margin: 0; color: #ffffff; text-transform: uppercase; letter-spacing: .06em; line-height: 1; text-shadow: 0 2px 0 rgba(0, 0, 0,.12); }
.hero .tag { font-size: 16px; color: #ffd79a; margin: 10px 0 24px; }
.pitch { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.pitch li { display: flex; gap: 10px; font-size: 13px; }
.pitch li .ic { width: 22px; height: 22px; color: #ffd08a; }
.pitch b { color: #ffffff; display: block; }
.counters { display: flex; flex-wrap: wrap; }
.counters span { padding: 6px 18px 6px 0; margin-right: 18px; border-right: 1px solid rgba(255, 255, 255,.2); color: #c6ddd2; }
.counters span:last-child { border: 0; }
.counters b { color: #ffffff; font: 700 24px var(--font-h); display: block; }
.loginbox { margin: 0; border: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.loginbox .box-in { padding: 26px 30px; flex: 1; }
.news { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); }
.news:last-child { border: 0; }
.news p { margin: 4px 0 0; }
.date { color: var(--muted); font-size: 12px; }

/* ---------- home */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; }
.home-main { min-width: 0; }
.char-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.avatar { width: 76px; height: 76px; background: #329c94; color: #fbf5ec; display: grid; place-items: center; font: 700 38px var(--font-h); flex: none; }
.avatar.g1 { background: #864077; }
.char-name { font: 700 22px var(--font-h); letter-spacing: .03em; display: flex; align-items: center; gap: 9px; }
.char-name a { color: var(--ink); }
.synd-line { margin: 10px 0 14px; padding: 7px 12px; background: var(--surface2); border-left: 3px solid var(--accent-a); }
.services .box-in { padding: 6px 0; }
.services .links { display: flex; flex-direction: column; }
.services .links a { display: flex; align-items: center; gap: 10px; padding: 6px 16px; color: var(--ink); font-weight: 500; transition: background var(--ease), color var(--ease), padding var(--ease); }
.services .links a .ic { color: #588e73; }
.services .links a:hover { background: var(--surface3); color: var(--accent-d); text-decoration: none; padding-left: 20px; }
.services .links a.hl { color: var(--red); font-weight: 700; }
.services .links a.hl .ic, .services .links a.exit, .services .links a.exit .ic { color: var(--red); }
.services hr { margin: 4px 16px; }
.eqstrip { display: flex; gap: 6px; flex-wrap: wrap; }
.eqcell { width: 72px; height: 86px; border: 1px solid var(--line); background: #fbfaf8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.eqcell.empty { background: var(--surface2); border-style: dashed; }
.slotname { font-size: 10px; color: var(--muted); text-align: center; padding: 2px; text-transform: uppercase; letter-spacing: .03em; }
.dur { font-size: 11.5px; color: var(--link); font-weight: 600; }
.dur.low { color: var(--red); }

/* item pictures */
.ii { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; width: 54px; height: 54px; background: #fcfaf9; border: 1px solid var(--line); border-bottom: 3px solid #abc0b6; flex: none; transition: border-color var(--ease); }
.ii img { width: 44px; height: 44px; object-fit: contain; }
.ii.t2 { border-bottom-color: #6f98cf; }
.ii.t3 { border-bottom-color: #50c58a; }
.ii.photo { width: 86px; height: 56px; background: #ffffff; }
.ii.photo img { width: 100%; height: 100%; padding: 2px; }
.ii.big { width: 140px; height: 140px; }
.ii.big img { width: 120px; height: 120px; }
.ii-link { display: inline-block; }
.ii-link:hover .ii { border-color: var(--accent-a); }
.eqcell .ii { border: 0; border-bottom: 3px solid #abc0b6; width: 60px; height: 46px; background: transparent; }
.eqcell .ii.t2 { border-bottom-color: #6f98cf; } .eqcell .ii.t3 { border-bottom-color: #50c58a; }
.eqcell .ii img { width: 40px; height: 40px; }
.eqcell .ii.photo img { width: 100%; height: 100%; }
.items td.ic { width: 96px; }
.items td.nm { width: 200px; }
.items .price { color: var(--green); font-weight: 700; }
.items td.buy { width: 130px; text-align: right; white-space: nowrap; }
.items tr.equipped td { background: #f7f4f0; }
.items tr.listed td { opacity: .55; }
.tag-on, .tag-listed { display: inline-block; font-size: 10.5px; color: #ffffff; padding: 1px 6px; margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.tag-on { background: color-mix(in srgb, var(--accent-a), var(--accent)); } .tag-listed { background: var(--gold); }
.tag-admin { font-size: 10.5px; color: var(--red); font-weight: 700; text-transform: uppercase; }
.acts { margin-top: 4px; }
.eqlist { display: flex; flex-wrap: wrap; gap: 8px; }
.eqitem { display: flex; gap: 10px; align-items: center; background: var(--surface2); border: 1px solid var(--line2); padding: 4px 12px 4px 4px; }
.actions { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); }
.bio { background: var(--surface2); padding: 10px 12px; border-left: 3px solid var(--line); }

/* ---------- player profile (GWars layout) */
.pf { background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.pf-head { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #e4ebe4; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pf-emblem { width: 40px; height: 40px; display: grid; place-items: center; color: #ffffff; font: 700 13px var(--font-h); background: color-mix(in srgb, color-mix(in srgb, var(--sc) 75%, #ffffff), var(--sc)); }
.pf-emblem .ic { width: 22px; height: 22px; }
.pf-name { font: 700 19px var(--font-h); color: #223a2e; }
.pf-hp { font: 400 14px var(--font); color: var(--muted); }
.pf-lvl { font: 600 12px var(--font); color: #ffffff; background: color-mix(in srgb, var(--red-a), var(--red)); padding: 1px 6px; vertical-align: 3px; }
.pf-flags { color: var(--muted); font-size: 12px; }
.pf-money { margin-left: auto; font: 700 17px var(--font); color: #202c26; padding-left: 16px; border-left: 1px solid var(--line); }
.pf-sub { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px 0; gap: 10px; flex-wrap: wrap; }
.pf-online { font-weight: 600; color: var(--muted); }
.pf-online.on { color: #202c26; }
.pf-online.on::before { content: ""; display: inline-block; width: 8px; height: 8px; background: #58b084; margin-right: 6px; }
.pf-edit { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pf-info { padding: 8px 16px 14px; line-height: 1.7; border-bottom: 1px solid var(--line2); }
.pf-role { color: var(--title); }
.actions-menu { position: relative; display: inline-block; }
.actions-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--link); border-bottom: 1px dashed var(--link); padding: 2px 0; user-select: none; }
.actions-menu > summary::-webkit-details-marker { display: none; }
.actions-menu > summary .ic { color: var(--accent); }
.actions-menu[open] > summary { color: var(--red); border-color: var(--red); }
.am-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 210px; background: #f8f7f4; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(41, 73, 58,.16); padding: 4px 0; animation: amIn .16s ease; }
@keyframes amIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.am-list a, .am-list button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 7px 14px; color: var(--link); font: 500 13px var(--font); background: none; border: 0; border-bottom: 1px solid var(--line2); cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: rgba(36, 95, 67,.35); transition: background var(--ease); }
.am-list form:last-child button, .am-list a:last-child { border-bottom: 0; }
.am-list a:hover, .am-list button:hover { background: #ede8e0; color: var(--red); }
.am-list button.on { color: var(--title); font-weight: 700; }
.am-list .ic { color: #588e73; }
.am-list form { margin: 0; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pf-sec { border-top: 1px solid var(--line2); }
.pf-sec:nth-child(odd):not(.wide) { border-right: 1px solid var(--line2); }
.pf-sec.wide { grid-column: 1 / -1; border-right: 0 !important; }
.pf-sec > h3 { margin: 0; text-align: center; border: 0; padding: 5px; background: #dfe7de; color: var(--title); font-size: 13.5px; letter-spacing: .05em; }
.pf-body { padding: 10px 16px 12px; }
.pf-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-kv { border-collapse: collapse; margin: 0 auto; }
.pf-kv td { padding: 1px 4px; vertical-align: middle; }
.pf-kv td:first-child { text-align: right; color: #2c3a34; white-space: nowrap; }
.pf-kv.links { margin-right: 0; }
.pf-go { display: inline-block; border: 1px solid #97b9a8; padding: 0 5px; line-height: 14px; font-weight: 700; background: #f8f6f4; }
.pf-go:hover { text-decoration: none; background: #ffffff; }
.pf-eq { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pf-eq-item { display: flex; flex-direction: column; gap: 2px; padding: 6px; background: #fcfaf9; border: 1px solid var(--line2); color: var(--ink); text-align: center; transition: border-color var(--ease), transform var(--ease); }
.pf-eq-item:hover { border-color: var(--accent-a); text-decoration: none; color: var(--ink); }
.pf-eq-item b { color: var(--link); font-size: 12.5px; }
.pf-synd { margin: 4px 0; line-height: 1.8; }
.pf-bio { line-height: 1.6; }

/* item page */
.item-page { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.item-card h2.item-title { background: #eed8d2; color: var(--title); font-size: 16px; text-transform: none; letter-spacing: .02em; }
.item-pic-col { flex: 0 0 auto; max-width: 100%; }
.item-photo { width: 340px; max-width: 100%; aspect-ratio: 340 / 216; background: #ffffff; border: 1px solid var(--line); padding: 8px; }
.item-photo img { width: 100%; height: 100%; object-fit: contain; }
.credit { font-size: 10.5px; color: var(--muted); margin-top: 5px; max-width: 340px; }
.item-info { flex: 1; min-width: 240px; line-height: 1.65; }
.item-info .descr { display: block; margin-top: 2px; color: #37433d; }
.item-info .reqs { margin: 6px 0; }
.item-links { margin: 10px 0 4px; }
.cmp { display: flex; gap: 12px; align-items: center; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.cat-card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; background: #fcfbfa; border: 1px solid var(--line2); color: var(--ink); transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease); }
.cat-card:hover { color: var(--ink); text-decoration: none; border-color: var(--accent-a); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(41, 73, 58,.1); }
.cat-card b { color: var(--link); }
.cat-photo { display: block; aspect-ratio: 320 / 200; background: #ffffff; margin-bottom: 6px; overflow: hidden; }
.cat-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ph-card { background: #ffffff; border: 1px solid var(--line); padding: 10px; font-size: 12px; }
.ph-card .cat-photo { border-bottom: 1px solid var(--line2); }
.ph-card .acts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; align-items: center; }
.ph-card input { padding: 4px 6px; font-size: 12px; }
.ph-card input[type=file] { max-width: 100%; font-size: 11px; border: 0; padding: 0; }
.ph-card.busy { opacity: .5; }

/* ---------- map */
.map-layout { display: grid; grid-template-columns: minmax(300px, 520px) 1fr; gap: 16px; align-items: start; }
.isle { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 3px; padding: 14px; background: #d5e8ec; border: 1px solid #b8d4dc; }
.sec { aspect-ratio: 1.15; background: #e1eae0; border: 1px solid #accdbd; padding: 5px; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; transition: all var(--ease); }
.sec:hover { background: #ffffff; color: var(--ink); text-decoration: none; border-color: var(--accent-a); }
.sec .sn { font-weight: 700; line-height: 1.15; }
.sec .sb { color: var(--muted); font-size: 10px; display: flex; align-items: center; gap: 3px; }
.sec .sb .ic { width: 11px; height: 11px; color: var(--blue); }
.sec.port { border-left: 3px solid #6f98cf; }
.sec.here { background: color-mix(in srgb, var(--accent-a), var(--accent)); color: #ffffff; border-color: var(--accent-d); }
.sec.here .sb, .sec.here .sb .ic { color: #f1ece4; }
.sec.sel { box-shadow: inset 0 0 0 2px var(--gold); }
.sec.dest { background: #e3eade; }

/* ---------- object */
.obj-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.res td.trade { white-space: nowrap; }
.res input.qty { width: 64px; }
.workform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.captcha { border: 1px solid var(--line); display: block; }
.code { width: 76px; }

/* ---------- battle */
.battle-page main.wrap { max-width: 1280px; }
.bt-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; background: #fcf6f4; border: 1px solid #ecd2cd; border-left: 3px solid var(--red-a); padding: 7px 14px; margin-bottom: 10px; }
#bt-timer b { font: 700 18px var(--font-h); }
.bt-grid { display: grid; grid-template-columns: 240px 1fr 240px; gap: 10px; align-items: start; }
.bt-col, .bt-center { background: var(--surface); border: 1px solid var(--line); }
.bt-col h3, .bt-center > h3 { margin: 0; color: #ffffff; text-align: center; padding: 6px; border: 0; font-size: 13px; letter-spacing: .08em; text-shadow: 0 1px 0 rgba(0, 0, 0,.15); }
.bt-center > h3 { background: #4c75a6; }
.friends h3 { background: color-mix(in srgb, var(--accent-a), var(--accent)); } .enemies h3 { background: color-mix(in srgb, var(--red-a), var(--red)); }
h3.side1 { background: color-mix(in srgb, var(--red-a), var(--side1)); } h3.side2 { background: color-mix(in srgb, #5b8fd0, var(--side2)); }
.fc { padding: 8px 10px; border-bottom: 1px solid var(--line2); font-size: 12.5px; color: var(--ink); border-left: 3px solid transparent; }
.fc.s1 { border-left-color: var(--side1); } .fc.s2 { border-left-color: var(--side2); }
.fc.me { background: #fbf8ee; }
.fc.dead { opacity: .4; }
.fc-name { font-weight: 700; }
.fc.s1 .fc-name a, .fc.s1 .fc-name i { color: var(--side1); }
.fc.s2 .fc-name a, .fc.s2 .fc-name i { color: var(--side2); }
.fc-hp { position: relative; height: 12px; background: #f3dcd8; margin: 4px 0; overflow: hidden; }
.fc-hp i { position: absolute; inset: 0 auto 0 0; background: #599878; transition: width .6s ease; }
.fc-hp em { position: relative; font: 700 10px/12px var(--font); color: #ffffff; display: block; text-align: center; font-style: normal; text-shadow: 0 0 2px rgba(0, 0, 0,.5); }
.fc ul { margin: 0; padding-left: 0; list-style: none; }
.fc ul li::before { content: "› "; color: var(--muted); }
.fc ul.gear { color: var(--muted); font-size: 11px; margin-top: 3px; }
.fc ul.gear li::before { content: "· "; }
.dead-tag { background: #555555; color: #ffffff; font-size: 10px; padding: 0 5px; text-transform: uppercase; }
.blind-tag { background: #ddda96; color: #194c35; font-size: 10px; padding: 0 5px; text-transform: uppercase; font-weight: 700; }
.ok-tag { color: var(--green); }
.bt-turn { text-align: center; font: 700 18px var(--font-h); padding: 10px 0 4px; letter-spacing: .04em; color: #2a3a33; }
.bt-form { padding: 4px 16px 12px; }
.weapon-banner { background: color-mix(in srgb, var(--red-a), var(--red)); color: #ffffff; text-align: center; font-weight: 700; margin: 4px -16px 8px; padding: 4px; letter-spacing: .03em; }
.weapon-banner.left { background: #b35a3c; }
.shoot-block { transition: opacity var(--ease), filter var(--ease); }
.bt-form.throwing .shoot-block { opacity: .35; filter: grayscale(1); pointer-events: none; }
.ord { text-align: center; margin: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ord > b { margin-bottom: 3px; font: 700 13px var(--font-h); text-transform: uppercase; letter-spacing: .06em; color: #2f5342; }
.ord label { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ord.gren { background: #fdeeec; border: 1px solid #efcbc4; padding: 6px; }
.ord.gren #gren-info { display: block; color: var(--muted); }
.ord .approach { color: var(--red); font-weight: 600; }
.ord.target { flex-direction: row; justify-content: center; gap: 8px; border-top: 1px solid var(--line2); padding-top: 10px; flex-wrap: wrap; }
.ord.target select { max-width: 100%; font-size: 12.5px; }
.waiting { color: #2f5342; padding: 26px 0; }
.bt-status .result { text-align: center; padding: 14px; font-size: 16px; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.bt-chat { border-top: 1px solid var(--line2); padding: 10px 16px; }
.bt-chat form { display: flex; gap: 6px; }
.bt-chat input { flex: 1; }
#bt-chatlog { max-height: 110px; overflow-y: auto; font-size: 12.5px; margin-top: 6px; }
.cm.s1 b { color: var(--side1); } .cm.s2 b { color: var(--side2); }
.bt-log { padding: 8px 16px; font-size: 12.5px; border-top: 1px solid var(--line2); }
.bt-log.full { padding: 0; border: 0; }
.turnlog { padding: 6px 0; border-bottom: 1px solid var(--line2); line-height: 1.6; }
.turnlog .lt { color: var(--muted); }
.turnlog b.s1, .s1 { color: var(--side1); }
.turnlog b.s2, .s2 { color: var(--side2); }
.fc.s1, .fc.s2 { color: var(--ink); }
.side-th.s1 { color: var(--side1); } .side-th.s2 { color: var(--side2); }
.dmg { color: var(--red); font-weight: 700; }
.kill { font-weight: 700; text-decoration: underline; }
.lg-end { background: #f7f2e4; padding: 8px 10px; border-left: 3px solid var(--gold); }

/* ---------- syndicate */
.synd-head .sh-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: #f2f0ea; border-bottom: 3px solid var(--sc); flex-wrap: wrap; }
.emblem { width: 56px; height: 56px; display: grid; place-items: center; color: #ffffff; font: 700 17px var(--font-h); }
.sh-name { font: 700 24px var(--font-h); }
.sh-nums { margin-left: auto; display: flex; gap: 20px; font-weight: 700; flex-wrap: wrap; }
.sh-nums span { border-left: 3px solid var(--line); padding-left: 10px; }
.strap { display: inline-block; min-width: 36px; text-align: center; background: #806e60; color: #f7e08a; font-size: 11px; padding: 1px 4px; letter-spacing: 1px; }
.strap.r3, .strap.r4, .strap.r5 { background: #5a4434; }
.strap.r6 { background: color-mix(in srgb, var(--red-a), var(--red)); color: #ffffff; }

/* ---------- forum / mail / chat */
.crumbs { margin-bottom: 12px; font-weight: 600; }
.crumbs a { color: var(--red); }
.post { display: grid; grid-template-columns: 180px 1fr; border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px; }
.post-author { background: #f4f1ec; padding: 12px; border-right: 1px solid var(--line2); }
.post-body { padding: 12px 14px; }
.post-date { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.mail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.mail tr.unread td { font-weight: 700; background: #f9f8f5; }
.letter { background: color-mix(in srgb, #fbf9f6, var(--surface2)); border-left: 3px solid var(--accent-a); padding: 12px 14px; margin-bottom: 14px; }
.letter h3 { margin-top: 6px; border: 0; }
.chat-layout { display: grid; grid-template-columns: 1fr 230px; gap: 16px; }
.chatlog { height: 460px; overflow-y: auto; background: #ffffff; border: 1px solid var(--line2); padding: 8px 10px; font-size: 13px; }
.cmsg { padding: 2px 0; }
.cmsg.tome { background: #f9f5e8; }
.ct { color: var(--muted); font-size: 11px; }
.chatform { display: flex; gap: 6px; margin-top: 8px; }
.chatform input { flex: 1; }
.online-list { max-height: 520px; overflow-y: auto; }
.online-list div { padding: 2px 0; }

/* ---------- roulette */
.last-numbers { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.rn { display: inline-grid; place-items: center; min-width: 28px; height: 28px; color: #ffffff; font-weight: 700; font-size: 12px; }
.rn.red { background: #cc463c; } .rn.black { background: #363636; } .rn.green { background: #468064; }
.table-felt { display: flex; gap: 3px; background: #387658; padding: 14px; border: 8px solid #6d4c3d; overflow-x: auto; }
.zeros { display: flex; flex-direction: column; gap: 3px; }
.zeros .cell { flex: 1; }
.numbers { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nrow { display: grid; grid-template-columns: repeat(12, minmax(32px, 1fr)); gap: 3px; }
.cell { position: relative; display: grid; place-items: center; min-height: 38px; border: 1px solid rgba(255, 255, 255,.35); color: #ffffff; font-weight: 700; cursor: pointer; user-select: none; transition: filter var(--ease); }
.cell.red { background: #c33e34; } .cell.black { background: #2e2e2e; } .cell.green { background: #468064; min-width: 46px; color: #ffffff; }
.cell:hover { filter: brightness(1.15); }
.cell input { position: absolute; opacity: 0; }
.cell:has(input:checked) { outline: 3px solid #ffd54a; outline-offset: -3px; }
.cell.w4 { grid-column: span 4; } .cell.w2 { grid-column: span 2; }
.bet-line { margin-top: 14px; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- admin */
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-bottom: 14px; }
.stat { background: #fafaf8; border: 1px solid var(--line2); padding: 12px 14px; }
.stat b { display: block; font: 700 24px var(--font-h); color: #2f5342; }
.stat span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- footer */
.foot { background: #dae3da; color: #485e53; font-size: 12.5px; padding: 11px 0; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: center; }
.foot .wrap span { display: inline-flex; align-items: center; gap: 6px; }
.foot .wrap span:last-child { margin-left: auto; }
.foot .ic { color: var(--accent); }
.foot a { color: var(--link); font-weight: 600; }

/* ---------- responsive */
@media (max-width: 1060px) {
  .mainnav a span { display: none; }
  .mainnav a { padding: 0 11px; }
  .mainnav a .ic { width: 18px; height: 18px; }
  .bt-grid { grid-template-columns: 1fr 1fr; }
  .bt-center { grid-column: 1 / -1; order: -1; }
  .map-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .grid2, .grid3, .cols2, .hero, .home-grid, .obj-head, .mail-grid, .chat-layout, .pitch, .pf-grid, .pf-2col { grid-template-columns: 1fr; }
  .pf-sec:nth-child(odd):not(.wide) { border-right: 0; }
  .pf-money { margin-left: 0; border: 0; padding: 0; }
  .hero-text { padding: 24px 20px; }
  .hero h1 { font-size: 40px; }
  .loginbox { border-left: 0; border-top: 1px solid var(--line); }
  .topbar { gap: 0; }
  .brand { padding: 12px 0; }
  .mainnav { margin-left: 0; width: 100%; justify-content: space-between; }
  .mainnav a { padding: 10px 7px; }
  .items td.nm { width: auto; }
  .tbl { display: block; overflow-x: auto; }
  .post { grid-template-columns: 1fr; }
  .post-author { border-right: 0; border-bottom: 1px solid var(--line2); }
  .bt-grid { grid-template-columns: 1fr; }
  .sec { font-size: 9.5px; }
  .sec .sb { display: none; }
  .foot .wrap span:last-child { margin-left: 0; }
}

/* ---------- public player profile — GWars layout (info.php) */
.gw { max-width: 800px; margin: 0 auto 16px; font: 12.5px/1.45 Verdana, Tahoma, "Segoe UI", sans-serif; color: #0e1d16; }
.gw a { color: #1a4e36; }
.gw .lv { font-size: 13px; }
.gw-head { width: 100%; border-collapse: collapse; background: #dee6dc; border: 1px solid #b2ccbf; }
.gw-head td { padding: 6px 10px; vertical-align: middle; }
.gw-star { width: 40px; text-align: center; border-right: 1px solid #b2ccbf; }
.gw-star .ic { width: 22px; height: 22px; color: #869e92; }
.gw-star { width: 44px; vertical-align: middle; }
.gw-star .sbadge { margin: 0 auto; }
.gw-nm b { font-size: 14px; color: #0d261b; }
.gw-hp { color: #2a3530; margin-left: 4px; }
.gw-icons { color: #555555; margin-left: 8px; }
.gw-icons .ic { width: 13px; height: 13px; color: #b5382c; }
.gw-money { width: 1%; white-space: nowrap; font-weight: 700; font-size: 14px; border-left: 1px solid #b2ccbf; padding: 6px 14px !important; }
.gw-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 2px; gap: 10px; flex-wrap: wrap; background: #fcfaf7; border-left: 1px solid #cee1d8; border-right: 1px solid #cee1d8; }
.gw-bar .actions-menu > summary { font-size: 13px; color: #1a4e36; border-bottom: 1px dashed #1a4e36; }
.gw-edit { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.gw-online { font-size: 12.5px; }
.gw-status { padding: 4px 10px 10px 14px; background: #fcfaf7; border: 1px solid #cee1d8; border-top: 0; line-height: 1.6; }
.gw-titles b { color: #912808; font-weight: 700; }
.gw-red { color: #912808; }
.gw-t { width: 100%; border-collapse: collapse; margin-top: 14px; background: #fcfaf7; border: 1px solid #c0d9cd; table-layout: fixed; }
.gw-t > tbody > tr > th { background: #d0e2d9; color: #912808; font: 700 13px Verdana, Tahoma, sans-serif; text-align: center; padding: 4px 6px; border-top: 1px solid #bbd6c8; border-bottom: 1px solid #bbd6c8; }
.gw-t > tbody > tr > th + th { border-left: 1px solid #fcfaf7; }
.gw-t > tbody > tr > td { padding: 8px 10px 10px; vertical-align: top; }
.gw-t > tbody > tr > td + td { border-left: 1px solid #d8e8e0; }
.gw-kv { border-collapse: collapse; margin: 0 auto; }
.gw-kv td { padding: 0 2px; vertical-align: baseline; }
.gw-kv td:first-child { text-align: right; white-space: nowrap; }
.gw-kv td + td { text-align: left; }
.gw-left { margin-left: 0; }
.gw-links { margin-right: 0; }
.gw-links td:first-child { padding-right: 4px; }
.gw-go { display: inline-block; border: 1px solid #555555; padding: 0 3px; font: 700 11px/12px Verdana, sans-serif; color: #1a4e36 !important; background: #ffffff; text-decoration: none !important; }
.gw-go:hover { background: #f2eee6; }
.gw-eq { display: flex; gap: 14px; align-items: flex-start; }
.gw-eqlist { margin: 0; flex: 0 0 auto; }
.gw-eqlist td:first-child { min-width: 90px; }
.gw-eqlist a b { color: #246d4b; }
.gw-thumbs { display: flex; flex-wrap: wrap; gap: 3px; align-content: flex-start; flex: 1; }
.gw-thumbs a { display: block; width: 52px; height: 52px; border: 1px solid #333333; background: #ffffff; padding: 2px; transition: border-color var(--ease); }
.gw-thumbs a:hover { border-color: #912808; }
.gw-thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gw-synd ul { margin: 8px 0 8px 18px; padding: 0; }
.gw-synd li { line-height: 1.7; }
.gw-skills td:first-child { font-size: 11.5px; }
.gw-bonus td:first-child { font-size: 12px; }
.gw-dot { border-bottom: 1px dotted #455d52; cursor: help; }
.gw-empty { text-align: center; color: #878079; margin: 4px 0; }
.gw-info { overflow: hidden; }
.gw-avatar { float: right; width: 176px; height: 176px; object-fit: cover; margin: 0 0 8px 14px; border: 1px solid #bbd6c8; }
.gw-bio { font-weight: 600; color: #0e1d16; line-height: 1.5; }
@media (max-width: 640px) {
  .gw { font-size: 12px; }
  .gw-t > tbody > tr > td { padding: 6px 4px 8px; }
  .gw-eq { flex-direction: column; }
  .gw-avatar { width: 110px; height: 110px; }
}

/* ---------- armory (items.php) — GWars layout */
.arm { max-width: 800px; margin: 0 auto 16px; font: 12.5px/1.45 Verdana, Tahoma, "Segoe UI", sans-serif; color: #0e1d16; }
.arm a { color: #1a4e36; }
.dotlink { background: none; border: 0; padding: 0; font: inherit; color: #1a4e36; cursor: pointer; border-bottom: 1px dotted #1a4e36; text-decoration: none !important; line-height: 1.2; }
.dotlink:hover { color: #912808; border-bottom-color: #912808; }
.dotlink.red { color: #912808; border-bottom-color: #912808; }
.arm-h th { background: #d0e2d9; color: #912808; font: 700 13px Verdana, Tahoma, sans-serif; padding: 6px 10px; text-align: left; border-bottom: 1px solid #b2ccbf; }
.arm-h th span { display: inline-block; }
.arm-hp { float: right; color: #0e1d16; font-weight: 400; }
.arm-hp b { color: #912808; font-size: 14px; }
.arm-slots { width: 100%; border-collapse: collapse; border: 1px solid #bbd6c8; background: #fcfaf7; }
.arm-slots td { padding: 0 10px; height: 36px; border-bottom: 1px solid #ffffff; vertical-align: middle; }
.arm-slots tr:nth-child(even) td { background: #f3efe8; }
.arm-slots tr:nth-child(odd) td { background: #faf7f2; }
.arm-slots tr.worn td { background: #fde3e1; }
.arm-slot { width: 150px; }
.arm-act { width: 80px; }
.arm-ic { width: 36px; padding: 0 !important; text-align: center; }
.arm-ic img { width: 28px; height: 28px; object-fit: contain; border: 1px solid #888888; background: #ffffff; display: block; margin: auto; }
.arm-item b { color: #0d261b; }
.arm-item select { font: 12.5px Verdana, Tahoma, sans-serif; padding: 2px 4px; max-width: 100%; }
.arm-free { color: #226043; }
.arm-sum { display: grid; grid-template-columns: 1fr 230px; border: 1px solid #bbd6c8; border-top: 2px solid #97b7a7; background: #fcfaf7; }
.arm-sum-l { display: grid; grid-template-columns: 1fr 1fr; border-right: 1px solid #cbe0d5; }
.arm-cell { padding: 6px 10px; border-bottom: 1px solid #ece9e2; text-align: center; }
.arm-cell.wide { grid-column: 1 / -1; border-bottom: 0; }
.arm-sum-r { border-collapse: collapse; margin: 6px 12px; }
.arm-sum-r td { padding: 1px 4px; }
.arm-sum-r td:first-child { text-align: right; }
.arm-items { width: 100%; border-collapse: collapse; margin-top: 14px; border: 1px solid #bbd6c8; background: #fcfaf7; }
.arm-title { width: 40%; text-align: center !important; }
.arm-tabs { padding: 0 !important; }
.arm-tabs a { display: inline-block; width: 24%; text-align: center; padding: 6px 0; color: #1a4e36; font-weight: 400; border-left: 1px solid #bbd6c8; }
.arm-tabs a.on { color: #912808; font-weight: 700; background: #f6f4ee; }
.arm-tabs a:hover { text-decoration: none; background: #f6f2ed; }
.arm-items td { vertical-align: top; border-bottom: 1px solid #ffffff; }
.arm-items tr:nth-child(even) td { background: #f3efe8; }
.arm-items tr:nth-child(odd) td { background: #faf7f2; }
.arm-pic { width: 40%; padding: 6px 10px; overflow: hidden; }
.arm-pic img { float: left; width: 52px; height: 52px; object-fit: contain; border: 1px solid #333333; background: #ffffff; padding: 1px; margin-right: 10px; }
.arm-name { float: right; font-weight: 700; color: #5b1b8f !important; text-decoration: underline; text-align: right; }
.arm-qty { float: right; clear: right; color: #912808; }
.arm-desc { padding: 6px 10px 8px; border-left: 1px solid #cbe0d5; }
.arm-take { margin-bottom: 4px; }
.arm-take b { color: #912808; }
.arm-take .dotlink { color: #6a8376; border-bottom-color: #6a8376; }
.arm-take .dotlink:hover { color: #912808; }
.arm-desc ul.dots li::before { background: #2f493d; width: 4px; height: 4px; border-radius: 50%; top: .65em; }
.arm-links { font-size: 12px; }
.arm-empty { text-align: center; padding: 14px !important; color: #77706a; }
@media (max-width: 640px) {
  .arm-slot { width: auto; }
  .arm-slots td { padding: 0 5px; }
  .arm-sum { grid-template-columns: 1fr; }
  .arm-sum-l { border-right: 0; }
  .arm-pic, .arm-title { width: 38%; }
  .arm-name { float: none; display: block; clear: both; text-align: left; margin-top: 4px; }
}
.search-form { display: flex; gap: 6px; max-width: 520px; }
.search-form input { flex: 1; }
.search-results { list-style: none; padding: 0; margin: 14px 0 0; columns: 3 180px; }
.search-results li { padding: 2px 0; }

/* ---------- health chip in the status bar (GWars style: "171/171 HP") */
.hpchip { position: relative; display: inline-flex; align-items: center; min-width: 118px; height: 24px; padding: 0 12px; overflow: hidden;
  background: #f6efe3; border: 1px solid #e2d6c0; color: #372a22; font: 500 12.5px/1 Verdana, Tahoma, "Segoe UI", sans-serif; white-space: nowrap; }
.hpchip i { position: absolute; inset: 0 auto 0 0; background: #e8d8be; transition: width 1s ease, background .4s ease; }
.hpchip em { position: relative; font-style: normal; font-variant-numeric: tabular-nums; }
.hpchip.mid { background: #fbf4e2; border-color: #ead9ae; }
.hpchip.mid i { background: #efdeae; }
.hpchip.low { background: #fcecea; border-color: #efcbc5; color: #89341a; }
.hpchip.low i { background: #f2c8c1; }

/* stat rows: fixed-width number, then the "+" — all pluses line up in one column */
.stat-row { display: inline-flex; align-items: center; gap: 8px; }
.stat-num { display: inline-block; min-width: 2.6em; text-align: left; font-variant-numeric: tabular-nums; }
.stat-plus { margin: 0; display: inline-flex; }
.stat-plus .plus { margin-left: 0; }

/* ---------- forum index (GWars layout) */
.fx-top { display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 6px; }
.fx-btn { padding: 4px 10px; background: #f4f2ec; border: 1px solid #bbd6c8; color: #20352b !important; font: 12px Verdana, Tahoma, sans-serif; }
.fx-btn:hover { background: #ffffff; text-decoration: none; }
.fx { width: 100%; border-collapse: collapse; font: 12.5px/1.4 Verdana, Tahoma, "Segoe UI", sans-serif; background: #f4f1ed; border: 1px solid #c0d9cd; }
.fx th { background: #dde5dc; color: #912808; font-weight: 700; text-align: center; padding: 6px 8px; border-left: 1px solid #f9f6f2; }
.fx th:first-child { border-left: 0; width: 48%; }
.fx td { padding: 7px 8px; vertical-align: top; border-top: 1px solid #fbfaf7; }
.fx tr:not(.fx-grp):nth-child(even) td { background: #efece6; }
.fx tr:not(.fx-grp):nth-child(odd) td { background: #f4f1ed; }
.fx tr:not(.fx-grp):hover td { background: #faf8f5; }
.fx td + td { border-left: 1px solid #cee1d8; }
.fx-grp td { background: #cce0d6; font-weight: 700; color: #0e1d16; padding: 5px 6px; }
.fx-f { display: flex; gap: 8px; align-items: flex-start; }
.fx-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: #f4f2ee; border: 1px solid #b4d2c3; color: #53806a; }
.fx-ic .ic { width: 20px; height: 20px; }
.fx-title { color: #1a4e36 !important; text-decoration: underline; font-size: 13px; }
.fx-title:hover { color: #912808 !important; }
.fx-lock { width: 11px; height: 11px; color: #36855e; vertical-align: 0; }
.fx-d { font-size: 10.5px; color: #29362f; margin-top: 1px; }
.fx-mods { color: #1a4e36; text-decoration: underline; }
.fx-l a { color: #1a4e36; text-decoration: underline; }
.fx-l { color: #1d2924; }
.fx-n { text-align: center; width: 70px; color: #1d2924; }
.adm-board-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.adm-board-row > .ic { width: 20px; height: 20px; color: var(--accent); }
.adm-board { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; flex: 1; }
.adm-board input { padding: 4px 6px; font-size: 12.5px; }
.adm-board input[name=title] { width: 180px; } .adm-board input[name=descr] { flex: 1; min-width: 160px; }
.adm-board input[name=grp] { width: 120px; } .adm-board input[name=mods] { width: 130px; } .adm-board input[name=sort] { width: 54px; } .adm-board select { width: 82px; }
@media (max-width: 760px) { .fx th:nth-child(2), .fx td.fx-l { display: none; } }

/* ---------- shared GWars-style tables */
.eun { color: #6b3fa0; }

/* ---------- state shop / HighTech store */
.shop-layout { display: grid; grid-template-columns: 1fr 200px; gap: 4px; align-items: start; font: 12.5px/1.45 Verdana, Tahoma, "Segoe UI", sans-serif; }
.shop-head, .sm-head { background: #dde5dc; color: #912808; font-weight: 700; text-align: center; padding: 6px; border: 1px solid #c0d9cd; }
.shop-wallet { padding: 5px 8px; background: #f8f6f2; border: 1px solid #cee1d8; border-top: 0; font-size: 11.5px; color: #29362f; }
.si { margin-top: 4px; border: 1px solid #c0d9cd; background: #f1ece2; }
.si-name { background: #cce0d6; font-weight: 700; padding: 5px 7px; color: #0e1d16; }
.si-body { display: flex; gap: 10px; padding: 8px 6px; }
.si-pic { flex: none; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f5f2ed; border: 1px solid #9bada4; box-shadow: inset 0 0 0 3px #ffffff; padding: 10px; }
.si-pic img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.si-info { flex: 1; min-width: 0; color: #1d2924; }
.si-info b { color: #0e1d16; }
.si-req, .si-req b { color: #912808; }
.si-req.no b { text-decoration: underline dotted; }
.si-list { margin: 2px 0 2px 6px; padding: 0; list-style: none; }
.si-list li::before { content: "• "; }
.si-descr { padding-left: 12px; }
.si-act { margin-top: 10px; }
.si-act a { color: #1a4e36; text-decoration: underline; }
.si-buy { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #0e1d16; cursor: pointer; }
.si-buy:hover:not(:disabled) { color: #912808; text-decoration: underline; }
.si-buy:disabled { color: #928f8c; cursor: default; }
.si-qty { width: 46px; padding: 1px 3px; font-size: 12px; }
.si-no { color: #c0392b; }
/* item the player cannot use yet: whole card goes grey like in GWars */
.si-off { background: #f0ede8; border-color: #d2d2d2; }
.si-off .si-name { background: #dcdcdc; color: #333333; }
.si-off .si-pic { background: #f4f2ee; border-color: #b3b3b3; }
.si-off .si-pic img { filter: grayscale(.6); opacity: .85; }
.shop-menu { border: 1px solid #c0d9cd; background: #f1ece2; position: sticky; top: 8px; }
.sm-grp { text-align: center; font-weight: 700; padding: 6px 4px; background: #d1e4db; border-top: 1px solid #f9f6f2; color: #0e1d16; }
.sm-a { display: block; padding: 4px 6px; border-top: 1px solid #f9f6f2; color: #1a4e36 !important; text-decoration: underline; background: #d8e8e0; }
.sm-a:hover { background: #f8f5f1; }
.sm-a.on { font-weight: 700; }
.sm-a.empty { color: #879c92 !important; }
.sm-store { color: #912808 !important; font-weight: 700; background: #d1e4db; }
@media (max-width: 760px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-menu { position: static; order: -1; display: flex; flex-wrap: wrap; }
  .shop-menu .sm-head, .shop-menu .sm-grp { flex: 1 0 100%; }
  .shop-menu .sm-a { flex: 1 0 48%; }
}

/* ---------- island map */
.mp { display: grid; grid-template-columns: minmax(320px, 620px) 1fr; gap: 6px; align-items: start; font: 12.5px/1.45 Verdana, Tahoma, "Segoe UI", sans-serif; }
.mp-isl { display: flex; background: #cbe0d6; border: 1px solid #c0d9cd; }
.mp-isl a { flex: 1; text-align: center; padding: 5px; color: #20352b; }
.mp-isl a.on { background: #f4f0e8; font-weight: 700; }
.mp-tog { border: 0; border-left: 1px solid #bbd6c8; background: #f4f2ec; color: #20352b; padding: 0 10px; font: 11px Verdana, sans-serif; cursor: pointer; }
.mp-tog.on { background: #53806a; color: #ffffff; }
.mp-stage { position: relative; background: #3d8fb0; border: 1px solid #9fc4cf; overflow: hidden; perspective: 1100px; }
.mp-tilt { transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .7s; transform-origin: 50% 60%; }
.mp-stage.is3d { background: #56a0ba; }
.mp-stage.is3d .mp-tilt { transform: rotateX(48deg) rotateZ(-14deg) scale(1.02) translateY(-1%); filter: drop-shadow(0 26px 18px rgba(0, 30, 50, .45)); }
.mp-stage.is3d .mp-ter { transform-box: fill-box; }
.mp-svg { display: block; width: 100%; height: auto; }
.mp-cell rect { fill: transparent; stroke: rgba(255, 255, 255, .28); stroke-width: 1; stroke-dasharray: 4 4; transition: fill .2s; cursor: pointer; }
.mp-cell:hover rect { fill: rgba(255, 255, 255, .22); stroke: #ffffff; stroke-dasharray: none; }
.mp-cell.sel rect { stroke: #ffd54a; stroke-width: 3; stroke-dasharray: none; fill: rgba(255, 213, 74, .12); }
.mp-name { font: 700 11px Verdana, sans-serif; fill: #ffffff; text-anchor: middle; paint-order: stroke; stroke: rgba(38, 28, 22, .75); stroke-width: 3px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.mp-stage.names .mp-name, .mp-cell:hover .mp-name { opacity: 1; }
.mp-pin, .mp-me { pointer-events: none; }
.mp-np { font: 700 10px Verdana, sans-serif; fill: #ffffff; text-anchor: middle; }
.mp-ring { fill: none; stroke: #2ecc40; stroke-width: 3; animation: mpPulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mpPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.mp-tip { display: none; position: absolute; z-index: 3; background: rgba(16, 32, 24, .9); color: #ffffff; padding: 4px 8px; font-size: 11px; white-space: nowrap; pointer-events: none; }
.mp-under { display: grid; grid-template-columns: 112px 1fr; gap: 4px; margin-top: 4px; }
.mp-move { background: #f1ece2; border: 1px solid #c0d9cd; }
.mp-mh { background: #cbe0d6; text-align: center; font-weight: 700; padding: 4px; }
.mp-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 6px; }
.mp-pad form { margin: 0; }
.mp-arr { width: 100%; aspect-ratio: 1; border: 1px solid #89aa99; background: #6d9a84; color: #ffffff; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; transition: filter .15s; }
.mp-arr:hover:not(:disabled) { filter: brightness(1.12); }
.mp-arr:disabled { background: #d6e6de; border-color: #c3dbcf; color: #aebdb5; cursor: default; }
.mp-sec { display: grid; place-items: center; font-size: 11px; color: #1d2924; }
.mp-info { background: #f8f6f2; border: 1px solid #cee1d8; display: flex; flex-direction: column; }
.mp-row { padding: 6px 8px; border-bottom: 1px solid #ebe7e0; }
.mp-row a, .mp-t a, .mp-dom a { color: #1a4e36; text-decoration: underline; }
.mp-res { margin-top: auto; background: #cbe0d6; text-align: center; font-weight: 700; padding: 5px; }
.mp-chips { display: flex; justify-content: center; gap: 4px; margin-bottom: 4px; flex-wrap: wrap; }
.mp-chip { display: inline-block; padding: 4px 10px; background: #cbe0d6; color: #1a4e36 !important; font-weight: 700; border: 0; font: 700 12.5px Verdana, Tahoma, sans-serif; cursor: pointer; }
.mp-chip.go { background: #53806a; color: #ffffff !important; }
.mp-chip.go:disabled { background: #a5b8ae; cursor: default; }
.mp-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 1px; margin-bottom: 4px; }
.mp-tabs a { padding: 4px 8px; background: #ede9e2; color: #20352b; }
.mp-tabs a.on { background: #c4dcd0; font-weight: 700; color: #912808; }
.mp-dom { padding: 4px 6px; font-size: 11.5px; }
.mp-t { width: 100%; border-collapse: collapse; background: #d4e5dd; border: 1px solid #c0d9cd; }
.mp-t th { background: #f4f0e8; text-align: left; padding: 4px 5px; font-weight: 700; color: #0e1d16; }
.mp-t td { padding: 3px 5px; border-top: 1px solid #f6f2ed; }
.mp-t tr:nth-child(even) td { background: #cee2d8; }
.mp-t tr:hover td { background: #f7f4ee; }
.mp-t .r { text-align: right; }
.mp-c { text-align: center; width: 44px; }
.mp-own { font-weight: 700; }
.mp-full { color: #928f8c; }
@media (max-width: 860px) { .mp { grid-template-columns: 1fr; } }

/* ---------- friends */
.fl { font: 12.5px/1.45 Verdana, Tahoma, "Segoe UI", sans-serif; }
.fl-head { background: #dde5dc; color: #912808; font-weight: 700; text-align: center; padding: 6px; border: 1px solid #c0d9cd; }
.fl-cnt { color: #1d2924; font-weight: 400; margin-left: 8px; font-size: 11.5px; }
.fl-add { display: flex; gap: 6px; padding: 8px; background: #f8f6f2; border: 1px solid #cee1d8; border-top: 0; flex-wrap: wrap; }
.fl-add input[name=login] { width: 200px; } .fl-add input[name=note] { flex: 1; min-width: 180px; }
.fl-t { width: 100%; border-collapse: collapse; background: #f4f1ed; border: 1px solid #c0d9cd; margin-top: 4px; }
.fl-t th { background: #dde5dc; color: #912808; padding: 5px 6px; text-align: left; }
.fl-t td { padding: 4px 6px; border-top: 1px solid #fbfaf7; vertical-align: middle; }
.fl-t tr:nth-child(even) td { background: #efece6; }
.fl-t tr.off td { color: #55675e; }
.fl-t a { color: #1a4e36; }
.fl-n { width: 28px; text-align: center; color: #7a736d; }
.fl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ecc40; box-shadow: 0 0 0 2px rgba(46, 204, 64, .2); margin-right: 6px; vertical-align: 1px; }
.fl-t tr.off .fl-dot { background: #c9c6c3; box-shadow: none; }
.fl-note { display: flex; gap: 4px; align-items: center; margin: 0; }
.fl-note input { flex: 1; min-width: 80px; padding: 2px 5px; font-size: 12px; background: transparent; border: 1px solid transparent; }
.fl-note input:hover, .fl-note input:focus { background: #ffffff; border-color: #c0d9cd; }
.fl-act { width: 84px; white-space: nowrap; text-align: right; }
.fl-act a .ic { width: 15px; height: 15px; color: #53806a; margin-right: 6px; vertical-align: -3px; }
.fl-fans { margin-top: 8px; padding: 6px 8px; background: #f8f6f2; border: 1px solid #cee1d8; font-size: 12px; }
.fon { list-style: none; margin: 0; padding: 0; columns: 2 220px; }
.fon li { padding: 3px 0; break-inside: avoid; }
.fon-m .ic { width: 13px; height: 13px; color: #53806a; vertical-align: -2px; margin-left: 3px; }
@media (max-width: 600px) { .fl-t th:nth-child(4), .fl-t td:nth-child(4) { display: none; } }

/* ---------- store buy bar (under each item) */
.si-buybar { display: flex; border-top: 2px solid #f6f2ed; background: #d1e4db; }
.si-bb-gap { flex: none; width: 216px; border-right: 2px solid #f6f2ed; }
.si-bb { flex: 1; text-align: center; padding: 6px 8px 8px; margin: 0; color: #1d2924; }
.si-bb-row { display: inline-flex; gap: 6px; align-items: center; margin-top: 3px; }
.si-btn { font: 12.5px Verdana, Tahoma, sans-serif; color: #111111; padding: 2px 14px; cursor: pointer;
  background: #f0f0ee; border: 1px solid #9a9a9a; border-radius: 2px; box-shadow: inset 0 1px 0 #ffffff; }
.si-btn:hover { background: #f8f6f4; border-color: #6f6f6f; }
.si-btn:active { background: #e8e8e6; }
.si-off .si-buybar { background: #dedede; }
.si-off .si-buybar, .si-off .si-bb-gap { border-color: #f5f3ef; }
@media (max-width: 760px) { .si-bb-gap { display: none; } }

/* ---------- friends list / black list (GWars layout) */
.fr { max-width: 600px; margin: 0 auto; font: 12.5px/1.45 Verdana, Tahoma, "Segoe UI", sans-serif; background: #f4f0e9; border-bottom: 1px solid #b2ccbf; }
.fr-head { display: flex; justify-content: space-between; align-items: center; background: #cadfd5; padding: 7px 8px; }
.fr-head b { color: #1a4e36; }
.fr-cnt { color: #55675e; font-size: 11.5px; margin-left: 4px; }
.fr-sw { background: #f0ede6; color: #111111 !important; padding: 3px 8px; }
.fr-sw:hover { background: #ffffff; text-decoration: none; }
.fr-add { display: flex; gap: 8px; padding: 7px 8px; margin: 0; background: #f0ebe2; }
.fr-add input { flex: 1; padding: 3px 5px; border: 1px solid #8a8a8a; font: 12.5px Verdana, Tahoma, sans-serif; background: #ffffff; }
.fr-btn { font: 12.5px Verdana, Tahoma, sans-serif; padding: 2px 14px; background: #f0f0ee; border: 1px solid #9a9a9a; border-radius: 2px; cursor: pointer; }
.fr-btn:hover { background: #ffffff; }
.fr-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-top: 2px solid #faf7f3; background: #f2ede3; }
.fr-row:nth-of-type(even) { background: #f6f2eb; }
.fr-ic { width: 22px; flex: none; text-align: center; }
.fr-name { font-weight: 700; color: #123525 !important; text-decoration: underline; }
.fr-lvl { color: #55675e; }
.fr-seen { color: #43795e; font-size: 12px; }
.fr-seen a { color: #1a4e36; }
.s-now .fr-seen { color: #0b7a0b; font-weight: 700; }
.s-now .fr-seen a { font-weight: 400; }
.s-long .fr-name, .s-while .fr-name { color: #578970 !important; }
.s-long .fr-seen { color: #729c87; }
.fr-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.fr-act form { margin: 0; }
.fr-mail .ic { width: 18px; height: 18px; color: #8bac9b; vertical-align: -4px; }
.fr-mail:hover .ic { color: #43795e; }
.fr-x { background: none; border: 0; padding: 0; font-size: 15px; font-weight: 700; color: #8bac9b; cursor: pointer; line-height: 1; }
.fr-x:hover { color: #c0392b; }
.fr-foot { background: #d5e6dd; padding: 6px 8px; color: #1d2924; line-height: 1.6; }
.fr-link { background: none; border: 0; padding: 0; font: inherit; color: #1d2924; text-decoration: underline; cursor: pointer; }
.fr-link:hover { color: #912808; }
.fr-on { color: #0b7a0b; }

/* ---------- group fights lobby (GWars layout) */
.gf-top { display: flex; align-items: center; gap: 4px; margin: 4px 0 14px; }
.gf-b { display: inline-block; padding: 4px 8px; background: #ede9e2; color: #111111 !important; border: 0; font: 13px Verdana, Tahoma, sans-serif; cursor: pointer; }
.gf-b:hover { background: #cde1d7; text-decoration: none; }
.gf-b.big { padding: 6px 10px; margin: 10px 0 4px; }
.gf-title { flex: 1; text-align: center; color: #912808; font-weight: 700; font-size: 13.5px; }
.gf { width: 100%; border-collapse: collapse; font: 12.5px/1.45 Verdana, Tahoma, "Segoe UI", sans-serif; border-top: 1px solid #b2ccbf; border-bottom: 1px solid #b2ccbf; }
.gf th { background: #cee2d8; text-align: left; padding: 5px 6px; color: #0e1d16; border-left: 1px solid #f9f6f2; }
.gf td { background: #d6e6de; padding: 6px; vertical-align: top; border-top: 1px solid #f9f6f2; border-left: 1px solid #f9f6f2; }
.gf tr:nth-child(odd) td { background: #eeebe4; }
.gf tr.mine td { background: #f7f2de; }
.gf-start { width: 52px; }
.gf-cd { font-size: 10.5px; color: #55675e; }
.gf-r { color: #d0021b; } .gf-bl { color: #0033cc; }
.gf-tag { color: #912808; }
.gf-lim { text-align: center; width: 100px; }
.gf-who { width: 34%; }
.gf-who .pl, .gf-who a { color: #226646; }
.gf-side { margin: 1px 0; }
.gf-slots { display: inline-flex; gap: 2px; vertical-align: 1px; margin-right: 5px; }
.gf-slot { width: 8px; height: 8px; border: 1px solid #9bada4; background: #ffffff; }
.gf-slot.s1.on { background: #e0453a; border-color: #b0261d; }
.gf-slot.s2.on { background: #3b6fd8; border-color: #23479b; }
.gf-join { background: none; border: 0; padding: 0; font: inherit; color: #226646; text-decoration: underline; cursor: pointer; }
.gf-join:hover { color: #912808; }
.gf-join.red { color: #b0261d; }
.gf-note { text-align: center; color: #55675e; margin: 8px 0 0; }
.gf-new { max-width: 640px; margin: 6px auto 0; background: #f4f0e9; border: 1px solid #c0d9cd; padding: 10px 12px; font: 12.5px Verdana, Tahoma, sans-serif; }
.gf-row { margin: 6px 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.gf-row > b { width: 86px; }
.gf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.gf-chip span { display: inline-block; padding: 3px 9px; background: #ffffff; border: 1px solid #b2ccbf; cursor: pointer; }
.gf-chip input:checked + span { background: #53806a; color: #ffffff; border-color: #456c59; }
.gf-chip input:focus-visible + span { outline: 2px solid #912808; }
.gf-com { flex: 1; min-width: 160px; }
@media (max-width: 700px) { .gf-lim { display: none; } .gf th:nth-child(3) { display: none; } }

/* ---------- activity log (GWars "protocol") */
.al { font: 12px/1.5 Verdana, Tahoma, "Segoe UI", sans-serif; color: #111111; }
.al-head { background: #cee2d8; text-align: center; padding: 5px; color: #912808; font-weight: 700; }
.al-head .lg-pl { color: #123525 !important; }
.al-ban { background: #c0392b; color: #ffffff; font-size: 10.5px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.al-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; background: #f0ebe2; padding: 6px; border-bottom: 1px solid #c0d9cd; }
.al-search { display: flex; gap: 4px; margin: 0; }
.al-search input { width: 180px; padding: 2px 5px; border: 1px solid #8a8a8a; font: 12px Verdana, sans-serif; }
.al-search button, .al-kinds a { font: 12px Verdana, Tahoma, sans-serif; padding: 2px 12px; background: #f0f0ee; border: 1px solid #9a9a9a; border-radius: 2px; color: #111111 !important; cursor: pointer; }
.al-kinds { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.al-kinds a.on { background: #53806a; border-color: #456c59; color: #ffffff !important; }
.al-kinds a:hover, .al-search button:hover { text-decoration: none; background: #ffffff; }
.al-kinds a.on:hover { background: #53806a; }
.al-pages { display: flex; gap: 2px; }
.al-pages a { min-width: 20px; text-align: center; padding: 3px 6px; background: #d1e4db; color: #1d2924 !important; font-weight: 700; }
.al-pages a.on { background: #ffffff; color: #912808 !important; }
.al-pages a:hover { text-decoration: none; background: #f7f4ee; }
.al-list { padding: 6px 4px; }
.al-r { padding: 1px 2px; }
.al-r:hover { background: #f7f4ee; }
.al-d { display: inline-block; width: 104px; color: #111111; }
.al-r a { color: #1a4e36; text-decoration: underline; }
.al-r .lg-pl { font-weight: 700; color: #123525; }
.al-admin { color: #853720; }
.al-admin .lg-pl { color: #123525; }
.al-amt.pos { color: #226646; } .al-amt.neg { color: #b0261d; }
.al-foot { border-top: 1px solid #c0d9cd; padding: 5px 6px; color: #55675e; }
@media (max-width: 760px) { .al-bar { grid-template-columns: 1fr; } .al-kinds { justify-content: flex-start; } .al-d { width: auto; margin-right: 6px; } }
.gw-blocked { color: #b0261d; }
.ban-now { background: #fdecea; border: 1px solid #f0b8b0; padding: 8px 10px; margin-bottom: 8px; color: #853720; }
.ban-now form { margin-top: 6px; }
.ban-form { background: #fff7f5; border: 1px solid #f0d0c8; padding: 10px 12px; }
.ban-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin: 6px 0; }
.ban-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 12px; margin: 6px 0; max-height: 240px; overflow: auto; }

/* ---------- small additions: spectator refresh, battle status link, refill, IP table */
.bt-topr { display: inline-flex; align-items: center; gap: 12px; }
.bt-refresh { font: 12.5px Verdana, Tahoma, sans-serif; padding: 3px 12px; background: #f0f0ee; border: 1px solid #9a9a9a; border-radius: 2px; color: #111111 !important; }
.bt-refresh:hover { background: #ffffff; text-decoration: none; }
.bt-watch { font-size: 11px; color: #55675e; background: #f4f1ed; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
a.gw-inbattle { color: #b0261d !important; text-decoration: underline; font-weight: 700; }
.refill { color: #1a4e36; text-decoration: underline; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.ip-t tr.ip-banned td { background: #fdecea; }
.ip-reason { width: 110px; padding: 2px 4px; font-size: 11.5px; }

/* ---------- profile: online state, karma voting, clickable statistics rows */
.gw-on { color: #1e8a1e !important; }
.gw-off { color: #c0392b !important; cursor: help; }
.km { width: 18px; height: 18px; line-height: 15px; padding: 0; margin-left: 3px; border: 1px solid #9bada4; background: #ffffff; font: 700 13px Verdana, sans-serif; cursor: pointer; vertical-align: 1px; }
.km-up { color: #1f4fb5; } .km-down { color: #c0392b; }
.km:hover { background: #f7f4ee; border-color: #53806a; }
.km-mine { font-size: 11.5px; color: #55675e; margin-left: 6px; }
.km-list { margin: 6px 0 4px 14px; padding: 6px 10px; background: #ffffff; border: 1px solid #c0d9cd; max-width: 360px; max-height: 260px; overflow: auto; position: relative; }
.km-list > div { padding: 1px 0; }
.km-close { position: absolute; right: 8px; top: 4px; color: #888888 !important; text-decoration: none !important; }
.gw-row td { padding: 0 !important; }
.gw-rowlink { display: inline-flex; align-items: center; gap: 6px; padding: 1px 6px; line-height: 18px; color: #1d2924 !important; text-decoration: none !important; }
a.gw-rowlink:hover { background: #f2eee6; }
a.gw-rowlink:hover span:first-child { text-decoration: underline; color: #1a4e36; }
.gw-row.off .gw-rowlink { color: #928f8c !important; }
.gw-row.off .gw-go { opacity: .45; }

/* ---------- BB codes */
.bb-center { text-align: center; } .bb-right { text-align: right; }
.bb-quote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid #b2ccbf; background: #f8f6f2; color: #29362f; }
.bb-qn { font-size: 11px; color: #55675e; margin-bottom: 2px; }
.bb-img { max-width: 100%; max-height: 400px; vertical-align: middle; }
.bb-list { margin: 4px 0 4px 18px; padding: 0; }
.bb-hr { border: 0; border-top: 1px solid #c0d9cd; margin: 8px 0; }
.bb-bar { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0; }
.bb-bar button { min-width: 28px; padding: 2px 7px; font: 12px Verdana, sans-serif; background: #f4f3ee; border: 1px solid #b0b0b0; border-radius: 2px; cursor: pointer; }
.bb-bar button:hover { background: #ffffff; border-color: #53806a; }
.bb-preview { margin-top: 8px; padding: 8px 10px; border: 1px dashed #c0d9cd; background: #fdfcfa; }

/* ---------- character page: last workplace */
.lastwork { margin: 14px 0 2px; padding: 8px 10px; text-align: center; background: #f7f4f0; color: #29362f; }
.lastwork a { color: #1a4e36; }

/* ---------- island picture map */
.mp-photo { position: relative; width: 100%; background: #1d4f7a; overflow: hidden; }
.mp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.mp-over { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp-over .mp-cell rect { fill: transparent; stroke: rgba(255, 255, 255, .22); stroke-width: calc(var(--u) * 1.6px); stroke-dasharray: calc(var(--u) * 6px) calc(var(--u) * 6px); }
.mp-over .mp-cell:hover rect { fill: rgba(255, 255, 255, .16); stroke: #ffffff; stroke-dasharray: none; }
.mp-over .mp-cell.sel rect { stroke: #ffd54a; stroke-width: calc(var(--u) * 4px); stroke-dasharray: none; fill: rgba(255, 213, 74, .10); }
.mp-over .mp-name { font-size: 15px; stroke: rgba(28, 21, 16, .8); }
.mp-stage.is3d .mp-photo { background: transparent; }
.mapadm { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 14px; align-items: start; margin-bottom: 8px; }
.mapadm .mp-photo { border: 1px solid #cfc5b7; }
.mapadm-acts { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
@media (max-width: 800px) { .mapadm { grid-template-columns: 1fr; } }

/* ---------- object page: resources table and trade box */
.res-t th, .res-t td { text-align: right; white-space: nowrap; }
.res-t th.l, .res-t td.l { text-align: left; }
.res-t td:nth-child(2) { min-width: 110px; }
.trade-t td { vertical-align: middle; }
.trade-t td.trade-f { text-align: right; white-space: nowrap; width: 1%; }
.trade-t form { display: inline-flex; gap: 4px; margin: 0; }
.trade-t .qty { width: 64px; }
.tbl th.c, .tbl td.c { text-align: center; }


/* =====================================================================
   Dust atmosphere: warm haze and fine grain over the page, dusty-toned
   pictures, khaki health bar. Remove this block to get the plain sand theme.
   ===================================================================== */
body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), var(--bg);
  background-attachment: fixed, scroll, scroll, scroll;
}
.top { box-shadow: 0 1px 0 rgba(252, 249, 243, .7) inset, 0 2px 10px rgba(46, 116, 83, .08); }
.box { box-shadow: 0 1px 3px rgba(36, 106, 74, .06); }
/* weapons, gear and characters look sun-bleached and dusty */
.ii img, .item-photo img, .si-pic img, .gw-eq img, .arm img, .eqcell img { filter: none; }
body.no-tint :is(.ii, .item-photo, .si-pic, .gw-eq, .arm, .eqcell, .cat-photo, .gw-thumbs, .ft, .gd-soil) img { filter: none; }
body.no-tint .si-off .si-pic img { filter: grayscale(.6); }
.avatar { border-radius: 14px; box-shadow: 0 2px 8px rgba(30, 80, 60, .18); }
.avatar.g1 { background: #d26b66; }
.mp-photo img { filter: saturate(1.12) brightness(1.03) hue-rotate(4deg); }
/* health stays readable: khaki-olive when healthy, amber when hurt, red when low */
.hpchip i { background: #dddeb4; }
.al-amt.pos, .green { color: var(--green); }
/* item page title: a crisp chevron centred on the text */
.item-title { display: flex; align-items: center; }
.it-arrow { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); margin: 0 9px 0 2px; flex: none; }
.item-title .h2r { margin-left: auto; }
.mp-chip.go.auto { background: #40785d; }
.mp-far { display: inline-block; padding: 4px 10px; background: #d7e7df; color: #63796e; font-size: 12px; }
.mp-far a { color: #245f43; text-decoration: underline; }
.mp-auto { font-size: 12px; }

/* ---------- equipment sets */
.lo { border: 1px solid var(--line); background: var(--surface2); margin-bottom: 10px; }
.lo-h { padding: 6px 10px; background: color-mix(in srgb, var(--box-a), var(--box-b)); }
.lo-body { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; }
.lo-set { display: inline-flex; align-items: stretch; border: 1px solid var(--line); background: var(--surface); }
.lo-eq { border: 0; background: none; padding: 4px 10px; font: 600 12.5px var(--font); color: var(--ink); cursor: pointer; }
.lo-eq:hover { background: var(--surface3); }
.lo-more { position: relative; border-left: 1px solid var(--line); }
.lo-more summary { list-style: none; cursor: pointer; padding: 4px 8px; color: var(--muted); }
.lo-more summary::-webkit-details-marker { display: none; }
.lo-more[open] > form { display: flex; gap: 4px; position: absolute; z-index: 5; top: 100%; right: 0; background: var(--surface); border: 1px solid var(--line); padding: 6px; white-space: nowrap; }
.lo-more[open] > form + form { top: calc(100% + 38px); }
.lo-save { display: inline-flex; gap: 4px; margin-left: auto; }
.lo-save input { width: 170px; padding: 3px 6px; }

/* ---------- guided first hour */
.tut { border: 1px solid #93d9b6; background: #eaf0e7; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(36, 106, 74, .08); }
.tut-h { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid #b8d4c6; color: var(--title); }
.tut-steps { display: inline-flex; gap: 4px; }
.tut-steps i { width: 22px; height: 6px; background: #c1dacd; }
.tut-steps i.done { background: #498668; } .tut-steps i.now { background: #59c891; }
.tut-n { font-size: 12px; color: var(--muted); }
.tut-x { margin-left: auto; }
.tut-b { padding: 10px 14px 12px; }
.tut-t { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.tut-ok { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #c1dacd; font-weight: 700; color: #366b52; }
.tut-ok.yes { background: #6f8f3a; color: #fff; }
.tut-b p { margin: 6px 0 8px 32px; color: #33473d; }
.tut-r { margin-left: 32px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- houses, gardens, cafés and bars */
.alert.buff { background: #e3e9e2; border-color: #92dbb6; color: #246c4a; cursor: help; }
.gd { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.gd-plot { display: flex; gap: 10px; border: 1px solid var(--line); background: var(--surface2); padding: 8px; align-items: center; }
.gd-soil { width: 76px; height: 76px; flex: none; display: grid; place-items: center; border: 1px solid #8a6a46;
  background: #7e5e3e; }
.gd-plot.ready .gd-soil { box-shadow: inset 0 0 0 2px #9bbf4c; }
.gd-plot.withered .gd-soil { filter: grayscale(.9) brightness(.8); }
.gd-pic { width: 58px; height: 58px; object-fit: contain; transform: scale(var(--g, 1)); transform-origin: 50% 90%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); transition: transform .4s; }
.gd-plot.ready .gd-pic { animation: gdsway 2.4s ease-in-out infinite; }
@keyframes gdsway { 50% { transform: rotate(4deg) scale(1.04); } }
.gd-no { color: #e9d9c0; font-size: 11px; text-align: center; }
.gd-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.gd-info select { max-width: 100%; font-size: 12px; }
.gd-f { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 2px 0 0; }
.gd-bar { height: 6px; background: var(--surface3); border: 1px solid var(--line); }
.gd-bar i { display: block; height: 100%; background: #8baf48; }
.tbl.dk td { vertical-align: middle; }
.dk-fx { white-space: nowrap; }
.mp-ruler { border-left: 4px solid var(--sc, var(--accent)); padding-left: 8px; background: var(--surface2); }
.mp-note { margin: 6px 2px 0; }
.mp-ctl { pointer-events: none; }

/* ---------- expeditions */
.ex-track { position: relative; height: 14px; background: #d6ebe1; border: 1px solid #a9d0c2; margin: 10px 0; }
.ex-track > i { position: absolute; inset: 0 auto 0 0; background: #2c947d; }
.ex-mid { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; background: var(--title); }
.ex-me { position: absolute; top: -7px; width: 14px; height: 26px; margin-left: -7px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 26'%3E%3Ccircle cx='7' cy='5' r='4' fill='%2389341a'/%3E%3Cpath d='M3 11h8l-1 8 2 7H9l-2-6-2 6H2l2-7z' fill='%2389341a'/%3E%3C/svg%3E"); }
.ex-event { border: 1px solid #a9d0c2; background: #effaf5; padding: 10px 12px; }
.ex-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-choice .btn { display: flex; flex-direction: column; align-items: flex-start; height: auto; padding: 6px 12px; line-height: 1.3; }
.ex-choice small { font-weight: 400; opacity: .85; font-size: 11px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ex-card { border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.ex-card.off { opacity: .55; }
.ex-card form { margin-top: auto; padding-top: 6px; }
.ex-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--title); font-family: var(--font-h); font-size: 15px; }
.ex-lvl { font-size: 11px; color: var(--muted); font-family: var(--font); }
.ex-art { height: 70px; margin: 4px 0; border: 1px solid #bcd9cf; background: linear-gradient(180deg, #8fd3ea 0, #d8f1f3 44%, #4f9d55 45%, #2f7a3d 100%); position: relative; overflow: hidden; }
/* jungle hills */
.ex-art::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -30px; height: 62px; border-radius: 50% 50% 0 0; background: radial-gradient(circle at 20% 30%, #3f8f46 0 18%, transparent 19%), radial-gradient(circle at 55% 20%, #3a8742 0 16%, transparent 17%), radial-gradient(circle at 85% 35%, #45974b 0 18%, transparent 19%), #2c6e37; }
.ex-art::after { content: ""; position: absolute; left: 66%; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 12px rgba(255, 230, 150, .8); }
/* hidden lagoon: turquoise water between green banks */
.ex-oasis { background: linear-gradient(180deg, #8fd3ea 0, #d8f1f3 44%, #3fb5b8 45%, #67cfc6 62%, #f1e2b8 63%, #e6d29f 100%); }
.ex-oasis::before { left: -20%; right: 55%; height: 52px; }
/* smugglers' trail: a muddy path through the green */
.ex-caravan::before { background: linear-gradient(100deg, transparent 44%, #8b6a45 45%, #7a5b3a 55%, transparent 56%), radial-gradient(circle at 20% 30%, #3f8f46 0 18%, transparent 19%), #2c6e37; }
/* howler jungle: dense canopy */
.ex-dunes { background: linear-gradient(180deg, #a6d9b0 0, #d7efd6 40%, #2f7a3d 41%, #1f5a2c 100%); }
.ex-dunes::before { height: 70px; background: radial-gradient(circle at 10% 40%, #2f7f3a 0 14%, transparent 15%), radial-gradient(circle at 35% 25%, #2a7535 0 14%, transparent 15%), radial-gradient(circle at 60% 35%, #34853f 0 15%, transparent 16%), radial-gradient(circle at 88% 22%, #2a7535 0 14%, transparent 15%), #1f5a2c; }
/* lost jaguar temple: a stepped stone pyramid in the jungle */
.ex-temple::before { left: 30%; right: 30%; bottom: 0; height: 40px; border-radius: 0; background: linear-gradient(180deg, #9aa38d, #6f7a64); clip-path: polygon(0 100%, 10% 75%, 20% 75%, 20% 50%, 32% 50%, 32% 25%, 42% 25%, 42% 0, 58% 0, 58% 25%, 68% 25%, 68% 50%, 80% 50%, 80% 75%, 90% 75%, 100% 100%); }
/* skull reef wreck: deep sea, a sunken mast */
.ex-saltsea { background: linear-gradient(180deg, #8fd3ea 0, #c9ecf2 30%, #2a8fb0 31%, #1b6f92 70%, #11506d 100%); }
.ex-saltsea::before { left: 40%; right: 40%; bottom: 0; height: 46px; border-radius: 0; background: linear-gradient(90deg, transparent 46%, #5b4128 47%, #5b4128 53%, transparent 54%), linear-gradient(180deg, transparent 30%, #6b4a2c 31%, #6b4a2c 36%, transparent 37%); }
.ex-stories p { border-bottom: 1px dashed var(--line); padding-bottom: 8px; }

/* ---------- fishing */
.fish-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; }
.fish-stage { position: relative; border: 1px solid #66b88f; box-shadow: 0 2px 8px rgba(24, 71, 49, .18); user-select: none; }
.fish-stage canvas { display: block; width: 100%; height: auto; cursor: pointer; touch-action: none; }
.fish-hud { position: absolute; left: 0; right: 0; top: 0; padding: 6px 12px; background: rgba(12, 36, 25, 0.55); color: #fff; font-weight: 600; text-shadow: 0 1px 2px #000; }
.fish-hud a { color: #c3dbcf; text-decoration: underline; }
.fish-log { font-size: 12px; margin-top: 6px; min-height: 20px; }
.fish-log div { padding: 2px 0; border-bottom: 1px dotted var(--line); }
.fish-table { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ft { display: flex; gap: 6px; align-items: center; font-size: 12px; line-height: 1.2; }
.ft img { width: 34px; height: 34px; object-fit: contain; }
@media (max-width: 800px) { .fish-wrap { grid-template-columns: 1fr; } }

/* ---------- in-development pages */
.dev-tag { font-size: 11px; font-family: var(--font); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--gold); color: #fff; padding: 1px 7px; margin-left: 8px; vertical-align: middle; }
.dev-hero { display: flex; gap: 16px; align-items: center; padding: 12px; border: 1px dashed #78d2a5; background: #f7f2e6; margin-bottom: 10px; }
.dev-sign { font-size: 44px; color: var(--title); line-height: 1; }
.dev-list li { margin-bottom: 6px; }

/* ---------- 3D battle replay (test) */
.rp-stage { position: relative; border: 1px solid #66b88f; box-shadow: 0 2px 8px rgba(24, 71, 49, .18); }
.rp-stage canvas { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
.rp-stage canvas:active { cursor: grabbing; }
.rp-turn { position: absolute; left: 10px; top: 8px; background: rgba(12, 36, 25, .6); color: #fff; font-weight: 700; padding: 2px 10px; font-family: var(--font-h); }
.rp-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.rp-ctl input[type=range] { flex: 1; min-width: 160px; }
.rp-log { max-height: 220px; overflow: auto; }


/* ================= phones (iPhone & Android, up to 760px wide) ================= */
.m-only, .m-quick, .mtabs, .msheet { display: none; }
@media (max-width: 760px) {
  .m-only { display: block; }
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 14px; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .wrap { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  main.wrap { padding-top: 10px; padding-bottom: 16px; }

  /* top bar: logo + mail + menu, everything else lives in the menu sheet and tab bar */
  .top { position: sticky; top: 0; z-index: 30; }
  .topbar { min-height: 0; flex-wrap: nowrap; align-items: center; padding-top: env(safe-area-inset-top); }
  .brand { padding: 9px 0; font-size: 17px; gap: 8px; }
  .brand .brand-mark { width: 21px; height: 21px; }
  .top .mainnav, .subnav { display: none; }
  body.landing .top .mainnav { display: flex; width: auto; margin-left: auto; }
  body.landing .mainnav a { padding: 8px 6px; }
  body.landing .mainnav a span { display: none; }
  .m-quick { display: flex; gap: 4px; margin-left: auto; }
  .m-qb { position: relative; display: grid; place-items: center; width: 40px; height: 40px; background: transparent; border: 0; color: #2f5845; cursor: pointer; padding: 0; }
  .m-qb .ic { width: 21px; height: 21px; }
  .m-qb:active { background: rgba(255, 255, 255, .6); }
  .m-dot { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #ffffff; font: 700 10.5px/17px var(--font); text-align: center; }

  /* status strip: one tidy line, location + timers underneath */
  .status { font-size: 12.5px; }
  .status .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; padding-top: 5px; padding-bottom: 6px; }
  .st-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
  .status .hpchip { width: auto; min-width: 0; margin: 0; }
  .st-money { justify-self: end; white-space: nowrap; }
  .st-loc { grid-column: 1 / -1; font-size: 12px; min-width: 0; }
  .st-loc .ic { width: 13px; height: 13px; }
  .status .alert { grid-column: 1 / -1; justify-self: start; font-size: 12.5px; padding: 3px 10px; }

  /* boxes and headings: less chrome, more content */
  .box { margin-bottom: 12px; }
  .box > h2, .box > summary > h2 { font-size: 12.5px; padding: 8px 12px; gap: 7px; }
  .box-in { padding: 11px 12px; }
  .h2r { font-size: 12px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; padding: 8px 11px; flex: none; }
  .flash { padding: 9px 12px; margin-bottom: 10px; }
  .btn { min-height: 34px; }
  .btn.small { min-height: 30px; }
  input, select, textarea { font-size: 16px; }   /* stops iOS zooming into fields */
  .si-qty, .tbl input { font-size: 15px; }

  /* tables: scroll inside their box instead of stretching the page */
  .tbl { display: table; overflow: visible; }
  .tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -12px; padding: 0 12px; }
  .tbl th, .tbl td { padding-left: 7px; padding-right: 7px; }
  .hunt th:nth-child(4), .hunt td:nth-child(4), .hunt th:nth-child(5), .hunt td:nth-child(5) { display: none; }
  .hunt td.nowrap { text-align: right; padding-right: 0; }
  .hunt td.nowrap .btn { padding: 0 9px; }
  .hunt td.nowrap .btn.ghost { padding: 0 7px; }
  .bh th:nth-child(3), .bh td:nth-child(3) { display: none; }

  /* home page: the long Services list is the same as the Menu sheet */
  .home-grid > .services { display: none; }
  .eqstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .eqcell { width: auto; height: 80px; }

  /* shop: section dropdown instead of the long list, compact item cards */
  .shop-menu { display: none; }
  .shop-pick { margin: 0 0 8px; }
  .sp-stores { display: flex; border: 1px solid #b0d0c0; margin-bottom: 6px; }
  .sp-stores a { flex: 1; text-align: center; padding: 8px 4px; color: #1a4e36; font-weight: 600; background: #d8e8e0; }
  .sp-stores a + a { border-left: 1px solid #b0d0c0; }
  .sp-stores a.on { background: #fcfaf7; color: #912808; font-weight: 700; }
  .sp-sel { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #1a4e36; }
  .sp-sel select { flex: 1; min-width: 0; padding: 7px 8px; }
  .shop-head { display: none; }
  .si-body { flex-direction: row; gap: 10px; padding: 8px; align-items: flex-start; }
  .si-pic { width: 112px; height: 112px; padding: 6px; }
  .si-list { margin-left: 0; }
  .si-descr { padding-left: 0; }
  .si-act { margin-top: 6px; }
  .si-bb-row { flex-wrap: wrap; justify-content: center; }
  .si-btn { padding: 6px 14px; }

  /* roulette: board turns vertical (3 columns × 12 rows), like a phone casino */
  .table-felt { flex-direction: column; padding: 8px; border-width: 5px; overflow: visible; }
  .zeros { flex-direction: row; }
  .zeros .cell { min-height: 40px; }
  .numbers { display: grid; grid-template-columns: repeat(3, 1fr) 54px 64px; grid-auto-rows: 34px; gap: 3px; }
  .nrow { display: contents; }
  .nrow .cell { min-height: 0; font-size: 13px; }
  .nrow:not(.outside) .cell { grid-row: var(--c); grid-column: var(--r); }
  .nrow.outside .cell.w4 { grid-column: 4; grid-row: span 4; }
  .nrow.outside .cell.w4:nth-child(1) { grid-row: 1 / span 4; }
  .nrow.outside .cell.w4:nth-child(2) { grid-row: 5 / span 4; }
  .nrow.outside .cell.w4:nth-child(3) { grid-row: 9 / span 4; }
  .nrow.outside .cell.w2 { grid-column: 5; font-size: 12px; }
  .nrow.outside .cell.w2:nth-child(1) { grid-row: 1 / span 2; }
  .nrow.outside .cell.w2:nth-child(2) { grid-row: 3 / span 2; }
  .nrow.outside .cell.w2:nth-child(3) { grid-row: 5 / span 2; }
  .nrow.outside .cell.w2:nth-child(4) { grid-row: 7 / span 2; }
  .nrow.outside .cell.w2:nth-child(5) { grid-row: 9 / span 2; }
  .nrow.outside .cell.w2:nth-child(6) { grid-row: 11 / span 2; }
  .nrow.outside .cell.w4 { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12.5px; }

  /* encyclopedia: two cards per row */
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .cat-card { padding: 7px 8px 9px; font-size: 13px; }
  .chatlog { height: 52vh; }

  /* forum: the first column takes the room once "latest topic" is hidden */
  .fx th:first-child { width: auto; }
  .fx th.fx-n, .fx tr:not(.fx-grp) td:last-child { width: 1%; white-space: nowrap; text-align: center; }

  /* expeditions: compact cards, facts in two columns */
  .ex-grid { gap: 8px; }
  .ex-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
  .ex-card > :not(.kv) { grid-column: 1 / -1; }
  .ex-card .kv { margin: 0; font-size: 13px; }
  .ex-card p { margin: 2px 0 4px; }
  .ex-art { height: 42px; margin: 2px 0; }
  .ex-art::after { width: 16px; height: 16px; top: 5px; }

  /* footer: one short line above the tab bar */
  .foot { font-size: 11.5px; padding: 8px 0; }
  .foot .wrap { gap: 4px 14px; justify-content: center; }
  .foot .wrap span:first-child { display: none; }

  /* bottom tab bar */
  .mtabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #e6ede6; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(23, 68, 47, .08); }
  .mtabs a, .mtabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 56px; color: #456a58; font: 600 11px var(--font); background: none; border: 0; border-top: 2px solid transparent; cursor: pointer; padding: 0; }
  .mtabs .ic { width: 21px; height: 21px; color: #51866c; }
  .mtabs a.on { color: var(--title); border-top-color: var(--accent); }
  .mtabs a.on .ic { color: var(--red); }
  .mtabs a:hover { text-decoration: none; }
  .mtabs .m-dot { top: 5px; right: calc(50% - 22px); }
  body.battle-page .mtabs { display: none; }
  .bt-grid { grid-template-columns: minmax(0, 1fr); }
  .bt-grid > * { min-width: 0; }
  .bt-form select, .bt-form .ord { max-width: 100%; min-width: 0; }
  .bt-form select { width: 100%; }
  body.battle-page .status .alert.danger { display: none; }
  body.battle-page { padding-bottom: env(safe-area-inset-bottom); }

  /* menu sheet */
  .msheet:not([hidden]) { display: flex; position: fixed; inset: 0; z-index: 50; background: rgba(15, 39, 27, .45); align-items: flex-end; }
  .msheet-in { width: 100%; max-height: 88vh; overflow-y: auto; background: #f9f6f2; border-top: 3px solid var(--accent); padding: 4px 14px calc(14px + env(safe-area-inset-bottom)); animation: msheet-up .18s ease-out; }
  @keyframes msheet-up { from { transform: translateY(40px); opacity: .4; } }
  .msheet-h { display: flex; align-items: center; justify-content: space-between; position: sticky; top: -4px; background: #f9f6f2; padding: 6px 0; font: 700 15px var(--font-h); letter-spacing: .06em; text-transform: uppercase; color: #29523f; }
  .msheet-g { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 10px 0 5px; }
  .msheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .msheet-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 66px; padding: 7px 2px; background: #ffffff; border: 1px solid #c9dfd4; color: #203b2e; font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.2; }
  .msheet-grid a:active { background: #d8e8e0; }
  .msheet-grid a:hover { text-decoration: none; }
  .msheet-grid .ic { width: 21px; height: 21px; color: var(--accent); }
  .msheet-grid .badge { font-size: 10px; line-height: 14px; padding: 0 4px; }
  .msheet-exit { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 10px; border: 1px solid #efc9c3; color: var(--red); font-weight: 700; background: #fff7f5; }
  html.menu-open, html.menu-open body { overflow: hidden; }
}
@media (max-width: 380px) {
  .msheet-grid { grid-template-columns: repeat(3, 1fr); }
  .si-pic { width: 92px; height: 92px; }
}

/* ================= administration ================= */
.adm { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; align-items: start; }
.adm-nav { background: var(--surface); border: 1px solid var(--line); position: sticky; top: 10px; }
.adm-nav-h { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: color-mix(in srgb, var(--box-a), var(--box-b)); border-bottom: 1px solid var(--line);
  font: 700 13px var(--font-h); text-transform: uppercase; letter-spacing: .06em; color: #29523f; }
.adm-nav-h .ic { color: var(--accent); width: 16px; height: 16px; }
.adm-pick { display: none; }
.adm-links { padding: 4px 0 8px; }
.adm-g { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px 3px; }
.adm-links a { display: flex; align-items: center; gap: 9px; padding: 6px 12px; color: var(--ink); font-weight: 500; border-left: 3px solid transparent; }
.adm-links a .ic { width: 15px; height: 15px; color: #588e73; flex: none; }
.adm-links a:hover { background: var(--surface2); text-decoration: none; color: var(--accent-d); }
.adm-links a.on { border-left-color: var(--accent); background: var(--surface3); color: var(--title); font-weight: 700; }
.adm-links a.on .ic { color: var(--red); }
.adm-in .stats-row { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
.adm-in .stat b { font-size: 21px; }
.adm-in h3 { font: 700 14px var(--font-h); text-transform: uppercase; letter-spacing: .05em; color: var(--title); margin: 20px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line2); }
.adm-in h3:first-child { margin-top: 0; }
.adm-in h3 .small, .adm-in h3 a { text-transform: none; letter-spacing: 0; font: 400 12px var(--font); }
.adm-warn { background: #f8f4ea; border: 1px solid #bdd8ca; border-left: 4px solid var(--gold); padding: 9px 14px; margin-bottom: 16px; }
.adm-warn ul { margin: 4px 0 0; padding-left: 18px; }
.adm-warn li { margin: 3px 0; }
.adm-warn form.inline { margin-left: 6px; }
.adm-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.adm-card { background: color-mix(in srgb, #fefdfa, var(--surface2)); border: 1px solid var(--line2); border-left: 3px solid var(--accent-a); padding: 10px 14px; margin-bottom: 14px; }
.adm-card-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; font-size: 15px; }
.adm-card-r { margin-left: auto; font-size: 12.5px; }
.adm-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 13px; }
.adm-kv > span { color: var(--muted); }
.adm-kv > b { font-weight: 500; }
.adm-kv form.inline { margin-left: 4px; }
.adm-search, .adm-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.adm-search input[name=q] { flex: 1; max-width: 420px; }
.adm-filter .tabs { margin: 0 8px 0 0; border: 0; }
.adm-num { width: 110px; }
.adm-sec { border: 1px solid var(--line2); background: var(--surface); margin: 8px 0; }
.adm-sec > summary { cursor: pointer; padding: 7px 12px; font-weight: 600; color: var(--link); }
.adm-sec[open] > summary { border-bottom: 1px solid var(--line2); }
.adm-sec > form, .adm-sec > p { margin: 10px 12px; }
.atag { display: inline-block; font-size: 10.5px; line-height: 16px; padding: 0 6px; background: var(--surface3); border: 1px solid var(--line); color: var(--accent-d); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; vertical-align: 1px; }
.atag.red { background: #fdecea; border-color: #f0b8b0; color: var(--red); }
.adm-pill { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.adm-pill.on { background: #e9f1dc; color: #4b6a1f; }
.adm-pill.off { background: #fdecea; color: var(--red); }
.adm-late td { background: #fff4ef; }
.adm-story { padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.adm-news { padding: 8px 0; border-bottom: 1px solid var(--line2); }
.adm-det { max-width: 420px; word-break: break-word; }
.adm-thumb { width: 54px; height: 34px; object-fit: contain; background: #ffffff; border: 1px solid var(--line2); display: block; }
.adm-items td { vertical-align: middle; }
/* settings */
.adm-jump { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 6px; font-size: 12.5px; }
.adm-set { border: 1px solid var(--line2); background: var(--surface); padding: 2px 14px 12px; margin: 12px 0; scroll-margin-top: 70px; }
.adm-set h3 { margin-top: 12px !important; }
.adm-set-row { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line2); position: relative; }
.adm-set-row:last-of-type { border-bottom: 0; }
.adm-set-row.changed::before { content: ""; position: absolute; left: -9px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.adm-set-row > input { max-width: 380px; }
.adm-set-row > input.adm-num { width: 140px; }
.adm-set-h { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.adm-set-h:empty { display: none; }
.adm-set-row:has(.adm-switch) { grid-template-columns: 1fr; }
.adm-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.adm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.adm-switch span { width: 38px; height: 21px; border-radius: 11px; background: #b8d4c6; position: relative; transition: background var(--ease); flex: none; }
.adm-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform var(--ease); }
.adm-switch input:checked + span { background: #6f8f3a; }
.adm-switch input:checked + span::after { transform: translateX(17px); }
.adm-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* item editor */
.adm-item { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 12px; }
.adm-item-pic .cat-photo { border: 1px solid var(--line2); }
.adm-item-pic .acts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; align-items: center; }
.adm-item-pic input[type=file] { max-width: 100%; font-size: 11.5px; border: 0; padding: 0; }
.adm-itemform fieldset { border: 1px solid var(--line2); padding: 6px 12px 10px; margin: 0 0 10px; background: var(--surface); }
.adm-itemform legend { font-weight: 700; color: var(--title); padding: 0 6px; }
.adm-itemform label.edited { color: #8a6400; }
.adm-itemform label.edited input, .adm-itemform label.edited select, .adm-itemform label.edited textarea { border-color: #75d1a3; background: #fbf8ee; }
.ph-card.none { background: #fefcf9; border-style: dashed; }
.ph-card select { font-size: 11.5px; padding: 3px 4px; max-width: 150px; }
.ph-card input[type=url] { flex: 1; min-width: 0; }
@media (max-width: 860px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-nav { position: static; }
  .adm-links { display: none; }
  .adm-pick { display: block; padding: 8px 10px; }
  .adm-pick select { width: 100%; }
  .adm-item { grid-template-columns: 1fr; }
  .adm-item-pic { max-width: 320px; }
  .adm-set-row { grid-template-columns: 1fr; }
  .mapadm { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .adm-kv { grid-template-columns: 1fr; gap: 0; }
  .adm-kv > b { margin-bottom: 6px; }
  .adm-card-r { margin-left: 0; width: 100%; }
  .adm-board input[name=title], .adm-board input[name=grp], .adm-board input[name=mods] { width: 100%; }
  .ph-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ph-card { padding: 7px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 8px 10px; }
  .stat b { font-size: 19px; }
}
@media (max-width: 480px) { .ph-grid { grid-template-columns: 1fr; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* ================= map: object list ================= */
.wp-list { border: 1px solid #c0d9cd; background: #fbf8f4; }
.wp-row { display: grid; grid-template-columns: 34px minmax(0, 1.7fr) minmax(0, 1fr) 96px 112px 22px; gap: 0 10px; align-items: center; padding: 7px 10px; border-top: 1px solid #d8e8e0; }
.wp-row:first-child { border-top: 0; }
.wp-row:not(.wp-head):hover { background: #fcf9f4; }
.wp-head { background: #e3eae2; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #456a58; padding: 6px 10px; }
.wp-row .r { text-align: right; } .wp-row .c { text-align: center; }
.wp-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #ffffff; }
.wp-ic .ic { width: 15px; height: 15px; }
.c-factory { background: #4d8469; } .c-farm { background: #6f8f3a; } .c-mine { background: #5e8672; } .c-plant { background: #4f7d96; } .c-venue { background: #b0623a; } .c-house { background: #5fa582; }
.wp-name { min-width: 0; line-height: 1.25; }
.wp-name a { color: #1a3b2b; text-decoration: none; }
.wp-name a:hover b { color: var(--red); text-decoration: underline; }
.wp-name small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-own { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.wp-own a { color: #1a4e36; }
.wp-wage b { font-size: 13.5px; color: #3f5f1f; }
.wp-wage b.mp-full { color: #849a8f; }
.wp-free { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wp-free em { font-style: normal; font-size: 11.5px; color: #456a58; font-variant-numeric: tabular-nums; }
.wp-bar { width: 72px; height: 6px; border-radius: 3px; background: #cde1d7; overflow: hidden; }
.wp-bar i { display: block; height: 100%; background: #6e8d38; }
.wp-bar.full i { background: #a9c7b8; }
.wp-go { font-size: 22px; line-height: 1; color: #5fa582; text-decoration: none !important; text-align: center; }
.wp-go:hover { color: var(--red); }
.wp-none { padding: 12px 10px; }
.mp-fish .mp-chip { display: inline-flex; align-items: center; gap: 6px; }
.mp-fish .mp-chip .ic { width: 14px; height: 14px; }
.mp-fish .ic { width: 13px; height: 13px; vertical-align: -2px; }

/* ================= object: consumes / produces ================= */
.rs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 6px; }
.rs-col { border: 1px solid var(--line2); background: #fefdfa; }
.rs-h { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font: 700 13px var(--font-h); text-transform: uppercase; letter-spacing: .06em; }
.rs-h .ic { width: 15px; height: 15px; }
.rs-h span { margin-left: auto; font: 400 11px var(--font); text-transform: none; letter-spacing: 0; color: var(--muted); }
.rs-in .rs-h { background: #f8e8e0; color: #9b3b22; border-bottom: 2px solid #d9866a; }
.rs-out .rs-h { background: #e9f0db; color: #4b6a1f; border-bottom: 2px solid #8fb05a; }
.rs-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 64px 70px minmax(0, 1fr) 62px; gap: 6px; align-items: center; padding: 6px 12px; border-top: 1px solid var(--line2); font-size: 13px; }
.rs-row > span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.rs-row small { display: block; font-size: 10.5px; color: var(--muted); }
.rs-th { border-top: 0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 7px; padding-bottom: 4px; }
.rs-n { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rs-n small { display: inline; }
.rs-in .rs-rate { color: #b5382c; font-weight: 700; }
.rs-out .rs-rate { color: #4f7d1f; font-weight: 700; }
.rs-empty { padding: 12px; color: var(--muted); font-size: 13px; }
.rs-dot { width: 9px; height: 9px; border-radius: 50%; background: #5fa582; flex: none; }
.ing-power { background-color: #e0b52a; } .ing-uranium { background-color: #5aa33e; } .ing-ore { background-color: #8c6a55; } .ing-steel { background-color: #7d8790; }
.ing-oil { background-color: #2f2a26; } .ing-plastic { background-color: #4f8fc0; } .ing-chem { background-color: #9a5bb5; } .ing-cotton { background-color: #d8d2c4; }
.ing-coffee { background-color: #6b4227; } .ing-fruit { background-color: #e08a2e; } .ing-spirits { background-color: #b0623a; }

/* ================= cafés & bars: ingredients ================= */
.dk-ing { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.dk-ing .ing { font-size: 10.5px; color: #ffffff; padding: 0 6px; border-radius: 8px; line-height: 16px; font-weight: 600; }
.dk-out td { color: #849a8f; }
.dk-out .dk-ing .ing { opacity: .55; }
.dk-sold { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #b5382c; border: 1px solid #efc9c3; padding: 2px 7px; background: #fff5f3; }
.pantry { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 8px; }
.pt-card { border: 1px solid var(--line2); background: #fffdf9; padding: 10px 12px; border-top: 3px solid; background-color: #fffdf9 !important; }
.pt-card.ing-coffee { border-top-color: #6b4227; } .pt-card.ing-fruit { border-top-color: #e08a2e; } .pt-card.ing-spirits { border-top-color: #b0623a; }
.pt-h { display: flex; justify-content: space-between; align-items: baseline; }
.pt-q { font: 700 18px var(--font-h); color: #1a3b2b; } .pt-q small { font: 400 12px var(--font); color: var(--muted); }
.pt-bar { height: 6px; background: #d5e6dd; border-radius: 3px; overflow: hidden; margin: 6px 0 8px; }
.pt-bar i { display: block; height: 100%; background: #8fb05a; }
.pt-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 1px 0; }
.pt-row b { color: var(--ink); }
.pt-f { display: flex; gap: 6px; margin-top: 8px; }
.pt-f .qty { flex: 1; min-width: 0; }

@media (max-width: 860px) { .rs-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .wp-row { grid-template-columns: 30px minmax(0, 1fr) auto 18px; grid-template-areas: "ic name wage go" "ic own free go"; gap: 2px 10px; }
  .wp-head { display: none; }
  .wp-ic { grid-area: ic; width: 28px; height: 28px; }
  .wp-name { grid-area: name; } .wp-own { grid-area: own; font-size: 12px; } .wp-wage { grid-area: wage; } .wp-free { grid-area: free; flex-direction: row; justify-content: flex-end; gap: 6px; }
  .wp-go { grid-area: go; }
  .wp-bar { width: 44px; }
  .rs-row { grid-template-columns: minmax(0, 1.4fr) 52px 56px minmax(0, 1fr) 46px; padding: 6px 8px; font-size: 12.5px; gap: 4px; }
}

/* item page: comparison */
.cmp-t { border: 1px solid var(--line2); max-width: 640px; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.1fr); gap: 10px; align-items: center; padding: 6px 12px; border-top: 1px solid var(--line2); }
.cmp-row:first-child { border-top: 0; }
.cmp-row:nth-child(even):not(.cmp-head) { background: #f9f6f2; }
.cmp-head { background: #f2f0ea; align-items: start; }
.cmp-it { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.cmp-it b { font-size: 13px; line-height: 1.2; }
.cmp-it small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cmp-l { color: var(--muted); font-size: 13px; }
.cmp-v { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cmp-v em { font-style: normal; font-size: 11.5px; margin-left: 6px; padding: 0 5px; border-radius: 8px; }
.cmp-v.up { color: #3f6a12; } .cmp-v.up em { background: #e5f0d3; }
.cmp-v.down { color: #b5382c; } .cmp-v.down em { background: #fbe4df; }
.mp-fish a.mp-chip { text-decoration: none; }
.home-main .eqstrip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.home-main .eqcell { width: auto; }
@media (max-width: 760px) { .home-main .eqstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tbl.dk, .tbl.dk tbody { display: block; }
  .tbl.dk tr:first-child { display: none; }
  .tbl.dk tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "fx lasts" "fx act"; gap: 3px 12px; padding: 10px 2px; border-bottom: 1px solid var(--line2); }
  .tbl.dk td { border: 0; padding: 0; }
  .tbl.dk td:nth-child(1) { grid-area: name; } .tbl.dk td:nth-child(2) { grid-area: fx; font-size: 13px; }
  .tbl.dk td:nth-child(3) { grid-area: lasts; color: var(--muted); font-size: 12.5px; } .tbl.dk td:nth-child(4) { grid-area: price; }
  .tbl.dk td:nth-child(5) { grid-area: act; }
  .pantry { grid-template-columns: 1fr 1fr; gap: 6px; }
}

.back-map { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; padding: 6px 12px 6px 10px; background: #e6ece6; border: 1px solid var(--line); color: #1a4e36; font-weight: 600; font-size: 13px; }
.back-map::before { content: "←"; font-weight: 700; }
.back-map .ic { width: 14px; height: 14px; color: var(--accent); }
.back-map:hover { text-decoration: none; background: #ffffff; color: var(--red); }
.bh-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bh-sum > div { flex: 1 1 110px; border: 1px solid var(--line2); background: #fafaf8; padding: 8px 12px; }
.bh-sum b { display: block; font: 700 22px var(--font-h); color: #2f5342; }
.bh-sum .green b { color: var(--green); } .bh-sum .red b { color: var(--red); }
.bh-sum span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.watch-btn { gap: 7px; white-space: nowrap; background: #ae4232; border-color: #7f2a1e; }
.watch-btn .ic { width: 14px; height: 14px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffd9d0; box-shadow: 0 0 0 0 rgba(255, 220, 210, .9); animation: live-pulse 1.4s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 220, 210, .9); } 70% { box-shadow: 0 0 0 7px rgba(255, 220, 210, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 220, 210, 0); } }
.live-row td { vertical-align: middle; }
/* map: life on the island */
.mp-life { pointer-events: none; }
.mp-smoke { fill: #f4efe6; opacity: 0; animation: mp-smoke 4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mp-smoke { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: .75; } 100% { opacity: 0; transform: translateY(-260%) scale(1.8); } }
.mp-walker { pointer-events: auto; }
.mp-walker circle { fill: #ffd34d; stroke: #3d2a1c; stroke-width: calc(var(--u, 1) * 2px); }
/* home: life on the islands */
.life { list-style: none; margin: 0; padding: 0; }
.life li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line2); font-size: 13px; }
.life li:last-child { border-bottom: 0; }
.life li.new { animation: life-in .6s ease-out; background: #f8f3e4; }
@keyframes life-in { from { opacity: 0; transform: translateX(-10px); } }
.life-ic { width: 24px; height: 24px; border-radius: 50%; background: var(--surface3); display: grid; place-items: center; color: var(--accent); }
.life-ic .ic { width: 13px; height: 13px; }
.life-t a { color: var(--link); }
.life-ago { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.live-dot.dark { display: inline-block; background: #d25a4c; animation: live-pulse-d 1.4s ease-out infinite; vertical-align: 0; }
@keyframes live-pulse-d { 0% { box-shadow: 0 0 0 0 rgba(210, 90, 76, .6); } 70% { box-shadow: 0 0 0 6px rgba(210, 90, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(210, 90, 76, 0); } }

/* ---- Life on the islands: collapsible */
.life-box > summary { list-style: none; cursor: pointer; }
.life-box > summary::-webkit-details-marker { display: none; }
.life-box > summary > h2 { flex-wrap: nowrap; }
.life-box:not([open]) > summary > h2 { border-bottom: 0; }
.life-h { white-space: nowrap; }
.life-teaser { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12.5px; color: #43755c; }
.life-box[open] .life-teaser { visibility: hidden; }
.life-box .h2r { white-space: nowrap; }
.life-tog::after { content: "show ▾"; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--link); margin-left: 6px; }
.life-box[open] .life-tog::after { content: "hide ▴"; }
@media (max-width: 760px) { .life-teaser { display: none; } .life-box > summary > h2 { justify-content: space-between; } }

/* ---- Weather chip */
.wx { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 12px; font-size: 12px; background: #f7f0de; color: #1f5d40; border: 1px solid #b0cfc0; white-space: nowrap; }
.wx .ic { width: 14px; height: 14px; color: #d68a12; }
.wx b { color: #b23a12; }
.wx-dust { background: #cce0d6; border-color: #88d7af; }
.wx-haze { background: #eae7e2; border-color: #b5ccc1; color: #44574e; }
.wx-haze .ic { color: #6a8477; }
.wx-sandstorm { background: #90dab5; border-color: #43c082; color: #153f2b; }
.wx-sandstorm .ic { color: #8a4b10; }
.wx small { display: block; white-space: normal; color: inherit; opacity: .85; margin-left: 6px; }
.wx-note { margin: 0 0 10px; }
.wx-note .wx { display: flex; flex-wrap: wrap; border-radius: 6px; padding: 6px 10px; white-space: normal; }
.wx-line { color: #277550; font-style: italic; }
.wx-line .ic { width: 13px; height: 13px; vertical-align: -2px; }
.status .wx { margin-left: 4px; }
.bt-topr .wx { margin-right: 8px; }

/* ---- State shop stock + store toggle */
.si-oos { display: inline-block; margin-left: 8px; padding: 0 7px; font-size: 11px; font-weight: 700; color: #fff; background: #a3471b; border-radius: 3px; vertical-align: 1px; text-transform: uppercase; letter-spacing: .04em; }
.si-out .si-pic img { opacity: .7; }
.si-fact { display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
.si-fact .ic { width: 14px; height: 14px; }
.sm-toggle { text-align: center; background: #2f3e4e; color: #e8f1ff !important; border-radius: 3px; margin: 6px 0 2px; }
.sm-toggle.ht { background: #c1dace; color: #1c543a !important; }
.sp-stores a.sp-toggle { background: #2f3e4e; color: #e8f1ff; font-weight: 700; }
.sp-stores a.sp-toggle.ht { background: #d1e4db; color: #1c543a; }
/* where to buy (factory finder) */
.stk-head { display: flex; gap: 14px; align-items: flex-start; }
.stk-pic { flex: 0 0 96px; height: 72px; display: flex; align-items: center; justify-content: center; background: var(--surface3); border: 1px solid var(--line); overflow: hidden; }
.stk-pic img { width: 100%; height: 100%; object-fit: contain; }
.stk-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0; font-size: 13px; }
.stk-sum .ok { color: #2f6b1f; font-weight: 600; }
.stk-here td { background: #f8f3e4; }
.stk-tbl td { vertical-align: middle; }
.wx em { font-style: normal; font-weight: 600; color: #2f6b1f; margin-left: 2px; }

/* ---- Dark / light switch (colours of the dark theme are generated into dark.css) */
.theme-tog { margin-left: auto; display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--accent); cursor: pointer; transition: background var(--ease), transform .3s ease; }
.theme-tog:hover { background: var(--surface3); transform: rotate(-18deg); }
.theme-tog .ic { width: 15px; height: 15px; }
.tt-sun { display: none !important; }
html[data-theme="dark"] .tt-sun { display: inline-block !important; }
html[data-theme="dark"] .tt-moon { display: none !important; }
html[data-theme="dark"] .theme-tog { color: #f2c36b; }
.foot-theme { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); color: inherit; font: inherit; padding: 3px 10px; border-radius: 14px; cursor: pointer; }
.foot-theme .ic { width: 13px; height: 13px; }
.m-quick .theme-tog { margin: 0; border: 0; background: none; width: auto; height: auto; border-radius: 0; }
.m-quick .theme-tog:hover { transform: none; background: none; }
@media (max-width: 760px) { .status .theme-tog { display: none; } }
.bank-link b { color: var(--accent); }
/* admin: give items */
.adm-give { display: grid; gap: 8px; max-width: 760px; }
.adm-give-f { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-give-f input { flex: 1 1 260px; }
#gi-list { width: 100%; min-height: 190px; }
#gi-list option { padding: 3px 6px; }
.adm-give-b { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.adm-add { border-color: var(--accent-a); }
.adm-add > summary { color: var(--title); }
.mp-cage { color: var(--red); font-weight: 600; }
.mp-cage .ic { width: 13px; height: 13px; vertical-align: -2px; }
.prison-me { margin: 10px 0; }

/* ---- map: Set Sail */
.mp-sailrow { padding-top: 4px; }
.sail > summary { list-style: none; }
.sail > summary::-webkit-details-marker { display: none; }
.sail-btn { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 6px 14px; font-weight: 700; color: #fff; letter-spacing: .02em;
  background: #357088; border: 1px solid #245468; transition: filter var(--ease); }
.sail-btn:hover { filter: brightness(1.08); }
.sail-btn .ic { width: 15px; height: 15px; color: #e6f4fa; }
.sail[open] .sail-btn { filter: brightness(.95); }
.sail-box { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface2); }
.sail-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sail-form select { max-width: 100%; }
.ff { color: #c0392b; font-style: italic; }

/* ---------- coalitions */
.co-intro { margin-top: 0; }
.co-list { display: grid; gap: 8px; margin: 12px 0 16px; }
.co-card { display: grid; grid-template-columns: 34px 60px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--sc); background: var(--surface); color: var(--ink); transition: transform var(--ease), box-shadow var(--ease), background var(--ease); }
.co-card:hover { text-decoration: none; background: var(--surface2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.co-rank { font: 700 15px var(--font-h); color: var(--muted); }
.co-card-main { min-width: 0; display: flex; flex-direction: column; }
.co-card-main b { font-size: 15px; }
.co-card-main small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-card > .sbadge { justify-self: center; }
.co-card-nums { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.co-stat { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface2); font-size: 11px; color: var(--muted); white-space: nowrap; }
.co-stat .ic { width: 13px; height: 13px; color: var(--sc, var(--accent)); opacity: .9; }
.co-stat b { color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.co-stat small { font-size: 11px; color: var(--muted); }
.co-stat.lvl { gap: 4px; background: var(--sc, var(--accent)); border-color: transparent; color: #ffffff; }
.co-stat.lvl small { color: rgba(255, 255, 255, .8); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.co-stat.lvl b { color: #ffffff; }
.co-card:hover .co-stat { border-color: var(--line); }
.co-tag { display: inline-block; padding: 2px 9px; border-radius: 11px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.co-tag.open { background: #e5f0d6; color: #3f6315; }
.co-tag.closed { background: #f6e1dc; color: #9a2f1f; }
.co-create { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border: 1px dashed var(--accent-a); background: var(--surface2); }
.co-create > div { display: flex; flex-direction: column; margin-right: auto; }
.co-create small { color: var(--muted); }
.co-create input { min-width: 220px; }
.co-hero { position: relative; margin-bottom: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.co-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 96px; background: color-mix(in srgb, var(--sc) 20%, #2a9a8a); opacity: .95; }
.co-hero-top { position: relative; display: flex; gap: 18px; align-items: flex-end; padding: 22px 20px 0; min-height: 96px; }
.co-logo { margin-bottom: -48px; position: relative; z-index: 1; }
.co-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 20px 12px 142px; min-height: 58px; }
.co-lvl { display: inline-block; padding: 2px 10px; border-radius: 11px; background: var(--sc); color: #fff; font-weight: 700; font-size: 12px; }
.co-logo .sbadge { border: 4px solid var(--surface); }
.co-title { flex: 1; min-width: 0; padding-bottom: 12px; }
.co-title h1 { margin: 0; font: 700 30px/1.1 var(--font-h); color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.co-motto { color: #fff; opacity: .92; font-style: italic; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); margin-top: 2px; }
.co-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; color: var(--muted); }
.co-meta .ic { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; color: var(--accent); }
.co-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.co-actions .btn { display: inline-flex; align-items: center; }
.co-actions form { margin: 0; }
.co-actions .btn .ic, .co-join .ic { width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }
.co-note { font-size: 12.5px; color: var(--muted); }
.co-stats { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); background: var(--surface2); }
.co-stats > div { padding: 10px 8px; text-align: center; border-left: 1px solid var(--line2); }
.co-stats > div:first-child { border-left: 0; }
.co-stats b { display: block; font: 700 18px var(--font-h); color: var(--ink); white-space: nowrap; }
.co-stats span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.co-tabs { position: relative; display: flex; gap: 2px; padding: 0 10px; overflow-x: auto; }
.co-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 11px 14px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; transition: color var(--ease), border-color var(--ease); }
.co-tabs a:hover { color: var(--ink); text-decoration: none; }
.co-tabs a.on { color: var(--ink); border-bottom-color: var(--sc); }
.co-tabs .ic { width: 14px; height: 14px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.co-grid > .box { margin: 0; }
.co-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.co-mini li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.co-role { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; background: var(--surface3); color: var(--muted); }
.co-role.leader { background: #c4dcd0; color: #1d573c; }
.co-role.officer { background: #dde7f3; color: #2d5585; }
.co-rel { padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.co-rel.ally { background: #e5f0d6; color: #3f6315; }
.co-rel.enemy { background: #f6e1dc; color: #9a2f1f; }
.co-roster { display: grid; gap: 6px; }
.co-member { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 34px; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line2); background: var(--surface); transition: background var(--ease); }
.co-member:hover { background: var(--surface2); }
.co-m-main small { display: block; color: var(--muted); font-size: 11.5px; }
.co-manage { position: relative; justify-self: end; }
.co-manage > summary { list-style: none; cursor: pointer; width: 30px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface2); font-weight: 700; color: var(--muted); border-radius: 4px; }
.co-manage > summary::-webkit-details-marker { display: none; }
.co-manage[open] > summary { background: var(--surface3); color: var(--ink); }
.co-manage-menu { position: absolute; right: 0; top: 30px; z-index: 20; width: 250px; padding: 10px; display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.co-manage-menu form { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.co-mi { width: 100%; text-align: left; background: none; border: 0; padding: 6px 8px; font: inherit; color: var(--ink); cursor: pointer; border-radius: 3px; }
.co-mi:hover { background: var(--surface3); }
.co-mi.red { color: var(--red); }
.co-secs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.co-sec { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--line); background: var(--surface2); border-radius: 14px; font-size: 12.5px; }
.co-sec .ic { width: 12px; height: 12px; color: var(--accent); }
.co-rels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 8px; }
.co-relcard { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line2); background: var(--surface); }
.co-relcard .co-rel { margin-left: auto; }
.co-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.co-inline input[type=number] { width: 130px; }
.co-bank { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.co-bank > div { padding: 10px; border: 1px solid var(--line2); background: var(--surface2); text-align: center; }
.co-bank b { display: block; font: 700 18px var(--font-h); }
.co-bank span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.co-ranks { display: grid; gap: 6px; }
.co-rank-card { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--line2); background: var(--surface); }
.co-rank-card.mine { border-color: var(--accent-a); background: var(--surface2); }
.co-rank-card small { display: block; font-size: 11.5px; }
.co-req { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line2); margin-bottom: 6px; background: var(--surface); }
.co-req form { margin: 0; }
.co-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.co-logo-edit { display: flex; gap: 14px; align-items: flex-start; }
.co-logo-edit form { margin: 6px 0 0; }
@media (max-width: 900px) { .co-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .co-stats > div:nth-child(5) { border-left: 0; } .co-stats > div:nth-child(n+5) { border-top: 1px solid var(--line2); } .co-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .co-card { grid-template-columns: 26px 60px minmax(0, 1fr) auto; gap: 10px; }
  .co-card-nums { grid-column: 1 / -1; justify-content: flex-start; gap: 5px; }
  .co-stat { height: 26px; padding: 0 8px; }
  .co-stat small { display: none; }
  .co-stat.lvl small { display: inline; }
  .co-card > .co-tag { grid-row: 1; grid-column: 4; }
  .co-hero-top { padding: 18px 14px 0; gap: 12px; min-height: 86px; }
  .co-logo { margin-bottom: -30px; }
  .co-bar { padding: 10px 14px 12px 100px; }
  .co-actions { margin-left: 0; width: 100%; }
  .co-hero::before { height: 86px; }
  .sbadge.sb-xl { width: 72px; min-width: 72px; height: 72px; font-size: 24px; }
  .co-title h1 { font-size: 23px; }
  .co-meta { font-size: 12px; }
  .co-member { grid-template-columns: 40px minmax(0, 1fr) 30px; }
  .co-member .co-role { grid-column: 2; grid-row: 2; justify-self: start; }
  .co-manage { grid-column: 3; grid-row: 1 / span 2; }
  .co-logo-edit { flex-direction: column; }
}

/* coalition levels and perks */
.co-xp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.co-xp-bar { flex: 1; min-width: 140px; height: 10px; background: var(--surface3); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.co-xp-bar i { display: block; height: 100%; background: #a6c678; }
.co-xp span { font-size: 12px; color: var(--muted); }
.co-perks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.co-perks li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 7px 9px; border: 1px solid var(--line2); background: var(--surface); opacity: .72; }
.co-perks li.got { opacity: 1; border-color: #4bc387; background: rgba(232, 193, 90, 0.14); }
.co-perk-l { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--surface3); color: var(--muted); }
.co-perks li.got .co-perk-l { background: #51c58b; color: #0e291c; }
.co-perks form { margin-top: 5px; }
.co-logo-rules { margin: 6px 0 8px; padding-left: 18px; }
.co-logo-rules li { margin: 2px 0; }

/* daily orders */
.dly { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dly li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(80px, 1fr) 80px 88px; gap: 10px; align-items: center; padding: 6px 9px; border: 1px solid var(--line2); background: var(--surface); }
.dly li.ready { border-color: #6aa84f; }
.dly li.got { opacity: .65; }
.dly-bar { height: 8px; background: var(--surface3); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.dly-bar i { display: block; height: 100%; background: #6aa84f; }
.dly-n { font-size: 12px; color: var(--muted); text-align: right; }
.dly-a { text-align: right; }
.dly-a .ic { width: 18px; height: 18px; color: #3fa04f; }
.dly-bonus { margin-top: 10px; }
.qheal { margin: 4px 0 2px; }
.qheal .btn .ic { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.hunt-again { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 10px; border: 1px dashed var(--line); background: var(--surface); }
@media (max-width: 640px) {
  .dly li { grid-template-columns: 1fr auto auto; gap: 6px 10px; }
  .dly-bar { grid-column: 1 / -1; order: 3; }
  .dly-n { text-align: left; }
}
.hunt-btn { margin-top: 8px; }
.hunt-again .btn .ic, .hunt-btn .btn .ic { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }
.co-legend { color: #37a56e; text-shadow: 0 0 8px rgba(232, 193, 90, .35); }

/* broken objects */
.broken-note { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; margin-bottom: 12px; border: 1px solid #5cc992; border-left: 4px solid #38a76f; background: rgba(69, 193, 131, .1); }
.broken-note > .ic { width: 20px; height: 20px; color: #38a76f; flex: none; margin-top: 1px; }
.broken-tag { color: #38a76f; font-size: 11px; font-weight: 700; white-space: nowrap; }
.broken-tag .ic { width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px; }
.eq-none { margin: 4px 0; }
@media (max-width: 640px) {
  .tut-h { flex-wrap: wrap; gap: 6px 10px; }
  .tut-h > b, .tut-n { white-space: nowrap; }
  .tut-steps i { width: 14px; }
  .tut-h form, .tut-h .linkbtn { margin-left: auto; white-space: nowrap; }
}
/* coalition page: a logo gets a frame that hugs it (60×42 at most) instead of the big square used for initials */
.sbadge.sb-xl.has-logo, .co-logo .sbadge.sb-xl.has-logo { box-sizing: content-box; width: 60px; min-width: 60px; height: 42px; padding: 3px; border-radius: 8px; }
.sbadge.sb-xl.has-logo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.co-logo:has(.has-logo) { margin-bottom: -22px; }
.co-hero:has(.co-logo .has-logo) .co-bar { padding-left: 112px; }
@media (max-width: 640px) {
  .co-logo:has(.has-logo) { margin-bottom: -14px; }
  .co-hero:has(.co-logo .has-logo) .co-bar { padding-left: 100px; }
}
.form label.chk.remember { flex-wrap: wrap; gap: 4px 8px; font-size: 13px; }
.form label.chk.remember .small { font-size: 11.5px; }

/* =====================================================================
   Modern flat layer: soft rounded cards, flat headers, smooth buttons.
   ===================================================================== */
body { background: var(--bg); }
.top { background: color-mix(in srgb, var(--head-a), var(--head-b)); border-bottom: 1px solid var(--line); box-shadow: none; }
.top::before { content: ""; display: block; height: 3px; background: #2aa39a; }
.brand { color: var(--title); }
.brand:hover { color: var(--title); }
.mainnav a { color: #34463d; border-radius: 0; }
.mainnav a:hover { background: var(--surface3); color: var(--accent-d); }
.mainnav a.on { background: transparent; color: var(--title); border-bottom-color: var(--accent); }
.mainnav a.on .ic { color: var(--accent); }
.subnav { background: #f3efe3; border-bottom: 1px solid var(--line2); }
.subnav a .ic { color: var(--accent-a); }
.status { background: #e6e1d2; border-bottom: 1px solid var(--line); }
/* cards */
.box { border-radius: var(--radius); border-color: var(--line); box-shadow: 0 1px 2px rgba(25, 55, 40, .04), 0 6px 18px rgba(25, 55, 40, .04); }
.box > h2, .box > summary > h2 { background: var(--box-a); color: var(--title); border-bottom: 1px solid var(--line2); border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; font-size: 13px; letter-spacing: .07em; }
.box > h2 > .ic, .box > summary > h2 > .ic { color: var(--accent); }
details.box:not([open]) > summary > h2 { border-radius: calc(var(--radius) - 1px); }
.card { background: var(--surface2); border: 1px solid var(--line2); border-left: 3px solid var(--accent-a); border-radius: 10px; }
.notice { background: #fff8e6; border: 1px solid #f0e1b4; border-left: 3px solid var(--gold); border-radius: 10px; }
.flash { border-radius: 10px; }
.flash-ok { background: #effaf2; border-color: #cfe9d6; border-left-color: var(--accent); color: #245c3c; }
.flash-err { background: #fff2ef; border-color: #f4d0c8; border-left-color: var(--red); color: #93311f; }
/* buttons: smooth, rounded, flat */
.btn { border: 0; border-radius: 9px; background: var(--accent); color: #ffffff; text-shadow: none; box-shadow: 0 1px 2px rgba(20, 70, 45, .18); padding: 8px 18px;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.btn:hover { background: var(--accent-d); filter: none; }
.btn:active { filter: none; }
.btn.small { padding: 4px 12px; border-radius: 7px; }
.btn.big { padding: 11px 28px; border-radius: 10px; letter-spacing: .05em; }
.btn.ghost { background: var(--surface); color: var(--accent-d); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--surface3); color: var(--accent-d); }
.btn.blue-btn { background: var(--sky); }
.btn.blue-btn:hover { background: #2479b4; }
.btn.danger, .btn.red-btn { background: var(--red); border: 0; }
.btn.danger:hover, .btn.red-btn:hover { background: #b93c29; }
.btn:focus-visible { outline: 3px solid rgba(47, 143, 208, .35); outline-offset: 2px; }
/* fields */
input, select, textarea { border: 1px solid #d6cfbc; border-radius: 8px; background: #fffdf7; }
input:focus, select:focus, textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(47, 143, 208, .16); }
input[type=checkbox], input[type=radio] { border-radius: 4px; }
/* tabs */
.tabs a { border-radius: 8px 8px 0 0; }
.tabs a:hover { background: var(--surface3); }
.tabs a.on { background: transparent; color: var(--title); border-bottom-color: var(--accent); }
/* small pieces */
.alert { border-radius: 14px; }
.hpchip { border-radius: 12px; }
.badge { border-radius: 9px; }
.co-card, .co-hero, .ex-card, .dly li, .co-perks li, .gd-plot, .rs-col, .broken-note, .hunt-again, .tut { border-radius: 10px; }
.rs-h { border-radius: 9px 9px 0 0; }
.ex-art { border-radius: 8px; }
.mp-t, .tbl { border-radius: 10px; }
.back-map { border-radius: 9px; }
.item-page form.inline { margin-left: 10px; display: inline-flex; gap: 6px; align-items: center; vertical-align: middle; }
.item-page form.inline .qty { width: 64px; }
.hero { border-radius: var(--radius); overflow: hidden; border-color: var(--line); box-shadow: 0 6px 18px rgba(25, 55, 40, .06); }
.broken-note { border-color: #f1c4b4; border-left-color: #d9603c; background: #fff4ef; }
.broken-note > .ic, .broken-tag { color: #d0572f; }
/* profile page: the classic layout, in clean cards */
.gw { font-family: var(--font); color: var(--ink); }
.gw a { color: var(--link); }
.gw-head { background: var(--box-a); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.gw-bar { border-top: 0; }
.gw-star, .gw-money { border-color: var(--line2) !important; }
.gw-nm b { color: var(--ink); }
.gw-bar, .gw-status { background: var(--surface); border-color: var(--line); }
.gw-status { border-radius: 0 0 var(--radius) var(--radius); }
.gw-titles b, .gw-red { color: var(--red); }
.gw-t { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; box-shadow: 0 1px 2px rgba(25, 55, 40, .04); }
.gw-t > tbody > tr > th { background: var(--box-a); color: var(--title); font: 700 12px var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 7px 6px; border-top: 1px solid var(--line2); }
.gw-t > tbody > tr:first-child > th { border-top: 0; }
.gw-t > tbody > tr > th + th, .gw-t > tbody > tr > td + td { border-left: 1px solid var(--line2); }
.gw-go { border: 1px solid var(--line); border-radius: 4px; color: var(--accent-d) !important; }
.gw-eqlist a b { color: var(--accent-d); }
/* state shop: item cards */
.shop-layout { gap: 14px; font-family: var(--font); }
.shop-head, .sm-head { background: var(--box-a); color: var(--title); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; padding: 9px; }
.shop-wallet { background: var(--surface); border-color: var(--line); color: var(--muted); border-radius: 0 0 var(--radius) var(--radius); padding: 7px 10px; }
.si { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(25, 55, 40, .04); }
.si-name { background: var(--surface); color: var(--ink); font-size: 14px; padding: 10px 14px 4px; }
.si-body { padding: 8px 14px 12px; gap: 16px; }
.si-pic { background: #f2efe4; border: 1px solid var(--line2); border-radius: 10px; }
.si-info, .si-info b { color: var(--ink); }
.si-req, .si-req b { color: var(--red); }
.si-act a { color: var(--link); }
.si-buybar { background: var(--surface2); border-top: 1px solid var(--line2); }
.si-bb-gap { border-right: 0; }
.si-bb { color: var(--ink); padding: 10px 14px 12px; }
.si-btn { font: 600 12.5px var(--font); color: #ffffff; background: var(--accent); border: 0; border-radius: 8px; padding: 6px 16px; box-shadow: 0 1px 2px rgba(20, 70, 45, .18); transition: background .18s, transform .18s, box-shadow .18s; }
.si-btn:hover { background: var(--accent-d); color: #ffffff; }
.si-btn:active { background: var(--accent-d); transform: none; }
.si-btn.si-fact { background: var(--sky); }
.si-qty { border-radius: 6px; padding: 4px 6px; }
.si-off { background: var(--surface2); border-color: var(--line); }
.si-off .si-name { background: transparent; color: var(--muted); }
.si-off .si-pic { background: #f1f2ef; border-color: var(--line2); }
.si-off .si-buybar { background: #f1f2ef; }
.shop-menu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sm-grp { background: var(--box-a); color: var(--title); border-top: 1px solid var(--line2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.sm-a { background: var(--surface); border-top: 1px solid var(--line2); color: var(--ink) !important; text-decoration: none; padding: 6px 12px; border-left: 3px solid transparent; }
.sm-a:hover { background: var(--surface3); text-decoration: none; }
.sm-a.on { border-left-color: var(--accent); color: var(--accent-d) !important; background: #f0f7f1; }
.sm-a.empty { color: #9aa79f !important; }
.sm-store { color: var(--red) !important; }
.sm-toggle { border-radius: 8px !important; margin: 6px 8px 4px !important; background: #2c81bc; color: #ffffff !important; border: 0 !important; }
.sm-toggle.ht { background: var(--sky-l) !important; color: var(--link) !important; }
.item-card h2.item-title { background: #e9f4f4; color: var(--title); }
.pf-eq-item { background: var(--surface); border-radius: 10px; }
.item-photo, .cat-photo, .stk-pic { background-color: #f3efe4; }
.mainnav a:hover { background: rgba(255, 255, 255, .45); }
/* item artwork is drawn on white: blend it into the warm tiles */
:where(.item-photo, .cat-photo, .stk-pic, .ii, .gw-thumbs a, .arm-ic, .arm-pic, .pf-eq-item) img { mix-blend-mode: multiply; }
.ing-bamboo { background-color: #8fb33a; } .ing-rubber { background-color: #3b3b38; } .ing-carbon { background-color: #4a5560; }
.brand .brand-mark { width: 32px; height: 32px; color: var(--accent); }
/* buttons never move or pop on hover: only the colour changes */
:is(.btn, .si-btn, button, .back-map, .theme-tog, .linkbtn, .co-card, .cat-card, .plus, .sbadge, .mp-arr, .bt-refresh):hover { transform: none !important; }
:is(.co-card, .cat-card):hover { box-shadow: none; }
:is(.btn, .si-btn):hover { box-shadow: 0 1px 2px rgba(20, 70, 45, .18); }
.btn, .si-btn { transition: background .15s ease, color .15s ease; }

/* ---- buttons v3: square, flat, modern ---- */
.btn, .si-btn { border-radius: 3px; border: 1px solid transparent; box-shadow: none; font: 600 13px var(--font); letter-spacing: .01em; text-transform: none;
  min-height: 34px; padding: 0 16px; line-height: 1; background: #23744f; color: #ffffff; }
.btn:hover, .si-btn:hover { background: #1b5f40; color: #ffffff; box-shadow: none; }
.btn:active, .si-btn:active { background: #164e35; }
.btn.small { min-height: 28px; padding: 0 11px; font-size: 12px; border-radius: 3px; }
.btn.big { min-height: 42px; padding: 0 26px; font-size: 14px; letter-spacing: .02em; border-radius: 3px; }
.btn.ghost, .fr-btn, .bt-refresh, .al-search button, .al-kinds a, .bb-bar button, .fx-btn, .mp-tog {
  background: #ffffff; color: #1f3d30 !important; border: 1px solid #c9d3cd; border-radius: 3px; box-shadow: none; }
.btn.ghost:hover, .fr-btn:hover, .bt-refresh:hover, .al-search button:hover, .al-kinds a:hover, .bb-bar button:hover, .fx-btn:hover, .mp-tog:hover {
  background: #f1f4f2; border-color: #aebcb4; color: #1f3d30 !important; }
.btn.blue-btn, .si-btn.si-fact { background: #2a6f9e; } .btn.blue-btn:hover, .si-btn.si-fact:hover { background: #215a80; }
.btn.danger, .btn.red-btn, .watch-btn { background: #c2412d; border-color: transparent; } .btn.danger:hover, .btn.red-btn:hover, .watch-btn:hover { background: #a3361f; }
.btn:focus-visible, .si-btn:focus-visible { outline: 2px solid #2f8fd0; outline-offset: 2px; }
.btn[disabled], .btn.disabled { background: #d9dfdb; color: #7b8a82; cursor: not-allowed; }
.plus { border-radius: 3px; }
.mp-arr { border-radius: 3px; background: #4d7f66; }
.sm-toggle { border-radius: 3px !important; background: #2a6f9e !important; }
.back-map { border-radius: 3px; background: #ffffff; }
/* flat colours, no gradients */
.freepts { background: #23744f; color: #ffffff; border-radius: 3px; }
.top::before { background: #2a8f6a; }
/* profile: the header block and the sections form one continuous card */
.gw-status { border-radius: 0; border-bottom: 0; }
.gw-t { margin-top: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
/* coalition: announcement, journal, contributors */
.co-notice { background: #fff8e6; border: 1px solid #f0e1b4; border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 14px; }
.co-notice-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.co-notice-h .ic { color: #b8860b; }
.co-notice-h a { margin-left: auto; }
.co-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.co-filter a { padding: 3px 10px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; color: var(--ink); background: var(--surface); }
.co-filter a.on { background: #23744f; border-color: #23744f; color: #ffffff; }
.co-filter a:hover { text-decoration: none; border-color: var(--accent-a); }
.co-log { list-style: none; margin: 0; padding: 0; }
.co-log li { display: grid; grid-template-columns: 22px 118px 1fr; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.co-log-ic .ic { width: 15px; height: 15px; color: var(--muted); vertical-align: -2px; }
.co-log li.k-deposit .ic, .co-log li.k-pay .ic { color: #b8860b; }
.co-log li.k-join .ic { color: var(--accent); } .co-log li.k-kick .ic, .co-log li.k-leave .ic { color: var(--red); }
.co-log-t { color: var(--muted); font-size: 12px; white-space: nowrap; }
.co-top { margin: 0; padding-left: 22px; }
.co-top li { padding: 3px 0; } .co-top li span { display: inline-block; min-width: 140px; }
@media (max-width: 560px) { .co-log li { grid-template-columns: 22px 1fr; } .co-log li > span:last-child { grid-column: 2; } }

/* ================================================================ forum (XenForo-style) */
.fcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; margin: 0 0 12px; color: var(--muted); }
.fcrumbs a { display: inline-flex; align-items: center; gap: 5px; }
.fcrumbs .ic { width: 15px; height: 15px; }
.fhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fhead h1 { margin: 0; font-size: 22px; color: var(--title); }
.fhead p { margin: 4px 0 0; }
.fsearch { display: flex; gap: 6px; }
.fsearch input { width: 230px; }
.ftabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ftabs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; font-size: 13px; color: var(--ink); }
.ftabs a:hover { border-color: var(--accent-a); text-decoration: none; }
.ftabs .ic { width: 15px; height: 15px; color: var(--accent); }
.findex { display: block; }
.fcat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.fcat > h2 { margin: 0; padding: 10px 14px; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: #ffffff; background: #2b6e4f; }
.fnode { display: grid; grid-template-columns: 44px minmax(0, 1fr) 150px 240px; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line2); }
.fnode:first-of-type { border-top: 0; }
.fnode-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface3); color: #8a9a91; }
.fnode-ic .ic { width: 20px; height: 20px; }
.fnode.unread .fnode-ic { background: #23744f; color: #ffffff; }
.fnode-t { font-weight: 700; font-size: 15px; color: var(--ink); }
.fnode.unread .fnode-t { color: var(--title); }
.fnode-d { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.fnode-lock { width: 13px; height: 13px; color: var(--muted); }
.fnode-n { display: flex; gap: 14px; margin: 0; }
.fnode-n div { text-align: center; }
.fnode-n dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fnode-n dd { margin: 0; font-weight: 700; }
.fnode-last { display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 12.5px; }
.fnode-last > div { min-width: 0; display: flex; flex-direction: column; }
.fnode-last a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 600; }
.fnode-last > div > span { color: var(--muted); }
/* avatars */
.fa { --ah: 150; flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; color: #ffffff; font-weight: 700; font-size: 15px;
  background: hsl(var(--ah) 45% 42%); }
.fa img { width: 100%; height: 100%; object-fit: cover; }
.fa.sm { width: 28px; height: 28px; font-size: 12px; }
.fa.lg { width: 84px; height: 84px; font-size: 34px; border-radius: 10px; }
.fa.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px #4cc38a; }
/* sidebar */
.fwidget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.fwidget h3 { margin: 0; padding: 9px 12px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--title); background: var(--box-a); border-bottom: 1px solid var(--line2); }
.fw-post { display: flex; gap: 9px; padding: 8px 12px; border-bottom: 1px solid var(--line2); color: var(--ink); }
.fw-post:last-child { border-bottom: 0; }
.fw-post:hover { background: var(--surface2); text-decoration: none; }
.fw-post span { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; }
.fw-post small { color: var(--muted); }
.fw-stats { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0; padding: 10px 12px; font-size: 13px; }
.fw-stats dt { color: var(--muted); } .fw-stats dd { margin: 0; font-weight: 700; text-align: right; }
.fw-top { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 13px; }
.fw-top b { margin-left: auto; color: var(--muted); }
/* prefixes and tags */
.fp-prefix { --pc: #3b7dd8; display: inline-block; padding: 1px 7px; margin-right: 6px; border-radius: 3px; background: var(--pc); color: #ffffff; font-size: 11.5px; font-weight: 700; vertical-align: 1px; line-height: 1.55; }
.ftag { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; margin-left: 6px; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 18px; background: var(--surface3); color: var(--muted); }
.ftag .ic { width: 11px; height: 11px; }
.ftag.pin { background: #fdf0c8; color: #8a6400; } .ftag.lock { background: #f4dcd6; color: #9b3b22; } .ftag.new { background: #23744f; color: #ffffff; }
.fprefix-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fprefix-filter a { --pc: #6c7a72; padding: 3px 10px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--ink); }
.fprefix-filter a.on { background: var(--pc); border-color: var(--pc); color: #ffffff; }
/* thread list */
.flist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.flist-h, .fl-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 80px 150px; gap: 12px; align-items: center; padding: 10px 14px; }
.flist-h { background: var(--box-a); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line2); }
.fl-row { grid-template-columns: 36px minmax(0, 1fr) 80px 80px 150px; border-top: 1px solid var(--line2); }
.flist-h { grid-template-columns: minmax(0, 1fr) 80px 80px 150px; padding-left: 62px; }
.fl-row:first-of-type { border-top: 0; }
.fl-row.sticky { background: #fffbeb; }
.fl-title { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.fl-row.unread .fl-title { font-weight: 800; color: var(--title); }
.fl-meta { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fl-pages { display: inline-flex; gap: 3px; margin-left: 6px; }
.fl-pages a, .fl-pages span { padding: 0 5px; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; line-height: 16px; }
.fl-n { text-align: center; display: flex; flex-direction: column; }
.fl-n small { color: var(--muted); font-size: 11px; display: none; }
.fl-last { display: flex; flex-direction: column; text-align: right; font-size: 12.5px; }
.fl-last span { color: var(--muted); }
.fl-empty { padding: 26px; text-align: center; color: var(--muted); }
.fbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.fbar .pager { margin: 0; }
.fnotice { display: flex; align-items: center; gap: 8px; padding: 12px 14px; margin: 12px 0; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
/* thread view */
.fthead { margin-bottom: 6px; }
.fthead h1 { margin: 0 0 6px; font-size: 22px; color: var(--ink); line-height: 1.3; }
.fthead-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.fthead-m .ic { width: 13px; height: 13px; }
.fposts { display: flex; flex-direction: column; gap: 12px; }
.fpost { display: grid; grid-template-columns: 170px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 70px; }
.fpost.unread { border-color: #8fcfae; box-shadow: inset 3px 0 0 #23744f; }
.fpost:target { border-color: #e2b23a; box-shadow: 0 0 0 2px rgba(226, 178, 58, .35); }
.fpost-user { background: var(--surface2); border-right: 1px solid var(--line2); padding: 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fpost-name { font-weight: 700; font-size: 14.5px; margin-top: 6px; word-break: break-word; display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; }
.fpost-name .sbadge { vertical-align: middle; margin: 0; }
.fpost-title { font-size: 12px; color: var(--muted); line-height: 1.4; }
.fpost-role { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 3px; color: #ffffff; }
.fpost-role.admin { background: #c2412d; } .fpost-role.mod { background: #2a6f9e; }
.fpost-synd { margin-top: 2px; }
.fpost-stats { display: grid; grid-template-columns: auto auto; gap: 1px 8px; margin: 8px 0 0; font-size: 11.5px; width: 100%; }
.fpost-stats dt { color: var(--muted); text-align: left; } .fpost-stats dd { margin: 0; text-align: right; font-weight: 600; }
.fpost-main { display: flex; flex-direction: column; min-width: 0; }
.fpost-h { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--line2); font-size: 12.5px; color: var(--muted); }
.fpost-h a { color: var(--muted); }
.fpost-num { margin-left: auto; }
.fpost-body { padding: 14px 16px; line-height: 1.6; font-size: 14.5px; overflow-wrap: anywhere; flex: 1; }
.fpost-body .bb-quote { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid #2a6f9e; background: var(--surface2); border-radius: 0 3px 3px 0; font-size: 13.5px; }
.fpost-body .bb-qn { font-weight: 700; font-size: 12px; color: #2a6f9e; margin-bottom: 4px; }
.fpost-body img.bb-img { max-width: 100%; height: auto; border-radius: 3px; }
.fpost-edited { padding: 0 16px 8px; font-size: 11.5px; color: var(--muted); font-style: italic; }
.fpost-sig { margin: 0 16px 10px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.fpost-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 16px 10px; }
.fpost-likes { font-size: 12.5px; color: var(--muted); }
.fpost-likes .ic { width: 13px; height: 13px; color: #d0457a; vertical-align: -2px; }
.fpost-acts { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 12.5px; flex-wrap: wrap; }
.fpost-acts > a, .fpost-acts .linkbtn, .fpost-acts summary { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); cursor: pointer; font-size: 12.5px; }
.fpost-acts .ic { width: 13px; height: 13px; }
.fpost-acts > a:hover, .fpost-acts .linkbtn:hover, .fpost-acts summary:hover { color: var(--accent); text-decoration: none; }
.fpost-acts form { display: inline; margin: 0; }
.flike.on { color: #d0457a !important; font-weight: 700; }
.freport { position: relative; }
.freport summary { list-style: none; } .freport summary::-webkit-details-marker { display: none; }
.freport-f { position: absolute; right: 0; bottom: 130%; z-index: 5; display: flex !important; gap: 6px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); width: 320px; }
.freport-f input { flex: 1; }
/* quick reply */
.fquick { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; margin: 16px 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 70px; }
.fe-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
/* editor */
.fe { border: 1px solid var(--line); border-radius: 4px; background: #ffffff; }
.fe-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px; border-bottom: 1px solid var(--line2); background: var(--surface2); border-radius: 4px 4px 0 0; }
.fe-bar button, .fe-menu > summary { min-width: 30px; height: 28px; padding: 0 7px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--ink); font: 13px var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; list-style: none; }
.fe-menu > summary::-webkit-details-marker { display: none; }
.fe-bar button:hover, .fe-menu > summary:hover, .fe-menu[open] > summary { background: #ffffff; border-color: var(--line); }
.fe-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.fe-dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.fe-menu { position: relative; }
.fe-pop { position: absolute; left: 0; top: 32px; z-index: 6; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 22px rgba(0, 0, 0, .14); padding: 6px; display: grid; grid-template-columns: repeat(5, 32px); gap: 2px; }
.fe-pop.fe-list { display: flex; flex-direction: column; min-width: 220px; gap: 0; }
.fe-pop.fe-list button { justify-content: flex-start; width: 100%; height: auto; padding: 6px 8px; text-align: left; }
.fe-empty { padding: 6px 8px; color: var(--muted); font-size: 12.5px; }
.fe-manage { padding: 6px 8px; border-top: 1px solid var(--line2); margin-top: 4px; font-size: 12.5px; }
.fe-prev-btn { margin-left: auto; font-weight: 600 !important; }
.fe textarea { display: block; width: 100%; border: 0; border-radius: 0; background: transparent; padding: 10px 12px; font-size: 14.5px; line-height: 1.55; resize: vertical; min-height: 110px; box-shadow: none; }
.fe textarea:focus { outline: none; }
.fe:focus-within { border-color: #7fb89a; box-shadow: 0 0 0 3px rgba(35, 116, 79, .12); }
.fe-preview { padding: 12px; min-height: 110px; line-height: 1.6; }
.fe-hint { padding: 4px 10px 6px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line2); }
.fe-hint kbd { font: 11px var(--font); padding: 0 4px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface2); }
.fnew-title { display: flex; gap: 8px; margin-bottom: 10px; }
.fnew-title input { flex: 1; font-size: 16px; padding: 9px 12px; }
.fnew-title select { max-width: 170px; }
/* moderator tools */
.fmod .fmod-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.fmod .fmod-row form { margin: 0; }
.fmod label { display: inline-flex; align-items: center; gap: 6px; }
/* search results, macros */
.fres { display: flex; flex-direction: column; gap: 8px; }
.fres-item { display: flex; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.fres-item:hover { border-color: var(--accent-a); text-decoration: none; }
.fres-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fres-t { font-weight: 700; }
.fres-x { font-size: 13px; color: var(--ink); opacity: .85; }
.fres-m { font-size: 12px; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fm-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.fm-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 3px; background: var(--surface2); }
.fm-item > div { flex: 1; min-width: 0; }
.fm-item form { margin: 0; }
/* admin → forums */
.afs-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.afs-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid transparent; border-bottom: 0; border-radius: 3px 3px 0 0; color: var(--muted); font-size: 13px; margin-bottom: -1px; }
.afs-tabs a.on { background: var(--surface); border-color: var(--line); color: var(--title); font-weight: 700; }
.afs-tabs .ic { width: 14px; height: 14px; }
.afs-board-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; padding: 12px; background: var(--surface2); border: 1px solid var(--line2); border-radius: 3px; }
.afs-board-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 600; }
.afs-board-form .wide { grid-column: 1 / -1; }
.afs-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0; }
.afs-checks label, .afs-prefixes label { flex-direction: row !important; font-weight: 400 !important; }
.afs-prefixes { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.afs-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 12px; }
.afs-del { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.afs-filter { display: flex; gap: 6px; margin-bottom: 10px; }
.afs-filter a { padding: 3px 10px; border: 1px solid var(--line); border-radius: 3px; font-size: 12.5px; }
.afs-filter a.on { background: #23744f; border-color: #23744f; color: #ffffff; }
.afs-quote { margin: 6px 0 10px; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--surface2); font-size: 13px; white-space: pre-wrap; }
@media (max-width: 980px) {
  .findex, .fgrid { grid-template-columns: minmax(0, 1fr); }
  .fnode { grid-template-columns: 40px minmax(0, 1fr); }
  .fnode-n { display: none; }
  .fnode-last { grid-column: 2; }
}
@media (max-width: 680px) {
  .flist-h { display: none; }
  .fl-row { grid-template-columns: 36px minmax(0, 1fr); row-gap: 4px; }
  .fl-n, .fl-last { grid-column: 2; flex-direction: row; gap: 4px; text-align: left; justify-content: flex-start; font-size: 12px; }
  .fl-n small { display: inline; }
  .fl-row .fl-n { display: inline-flex; }
  .fpost { grid-template-columns: minmax(0, 1fr); }
  .fpost-user { flex-direction: row; flex-wrap: wrap; text-align: left; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line2); gap: 8px; }
  .fpost-user .fa.lg { width: 40px; height: 40px; font-size: 17px; border-radius: 50%; }
  .fpost-name { margin: 0; }
  .fpost-stats { display: none; }
  .fpost-body { padding: 12px; }
  .fquick { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .fquick > .fa { display: none; }
  .fsearch input { width: 100%; } .fsearch { width: 100%; }
  .freport-f { width: 260px; }
}

/* ================================================================ state shop v2: one set of crisp 1px lines in both themes */
.shop-head { border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; background: var(--box-a); }
.shop-wallet { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); }
.si { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.si-name { background: var(--box-a); color: var(--ink); border-bottom: 1px solid var(--line); padding: 9px 14px; }
.si-body { border: 0; }
.si-buybar { background: var(--surface2); border-top: 1px solid var(--line); border-bottom: 0; }
.si-bb-gap { border-right: 0; }
.si-off, .si-out { border-color: var(--line); }
.si-off .si-name { background: var(--surface2); color: var(--muted); border-bottom-color: var(--line); }
.si-off .si-buybar { background: var(--surface2); border-top-color: var(--line); }
.shop-menu { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.sm-head { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--box-a); }
.sm-grp { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--box-a); }
.sm-head + .sm-grp { border-top: 0; }
.sm-a { border: 0; border-top: 1px solid var(--line2); border-left: 3px solid transparent; background: var(--surface); }
.sm-grp + .sm-a { border-top: 0; }
.sm-a.on { border-left-color: var(--accent); background: var(--surface3); }
.sm-store { color: var(--ink) !important; font-weight: 700; background: var(--surface); }
@media (max-width: 760px) { .shop-wallet { border-top: 1px solid var(--line); border-radius: var(--radius); } }
@media (max-width: 760px) {
  .shop-pick { margin: 10px 0 8px; }
  .sp-stores { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
  .sp-stores a { background: var(--surface); color: var(--ink); }
  .sp-stores a + a { border-left: 1px solid var(--line); }
  .sp-stores a.sp-toggle, .sp-stores a.sp-toggle.ht { background: #2a6f9e; color: #ffffff; }
}

/* ================================================================ map: object tabs */
.mp-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 8px; padding: 0; }
.mp-tabs .mp-tab span { white-space: nowrap; }
.mp-tabs .mp-tab { flex: 0 0 auto; justify-content: center; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  color: var(--ink) !important; font-size: 13px; font-weight: 600; text-decoration: none !important; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.mp-tabs .mp-tab .ic { width: 15px; height: 15px; color: var(--accent); flex: none; }
.mp-tabs .mp-tab em { font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--surface3); color: var(--muted); text-align: center; line-height: 16px; }
.mp-tabs .mp-tab:hover { border-color: var(--accent-a); background: var(--surface2); }
.mp-tabs .mp-tab.on { background: #23744f; border-color: #23744f; color: #ffffff !important; }
.mp-tabs .mp-tab.on .ic { color: #ffffff; }
.mp-tabs .mp-tab.on em { background: rgba(255, 255, 255, .22); color: #ffffff; }
.mp-tabs .mp-tab.t-broken { background: #fdecef; border-color: #f2c1cc; color: #a3324f !important; }
.mp-tabs .mp-tab.t-broken .ic { color: #c2415f; }
.mp-tabs .mp-tab.t-broken em { background: #f8d3dc; color: #a3324f; }
.mp-tabs .mp-tab.t-broken:hover { border-color: #e59aac; background: #fbe1e7; }
.mp-tabs .mp-tab.t-broken.on { background: #c2415f; border-color: #c2415f; color: #ffffff !important; }
.mp-tabs .mp-tab.t-broken.on .ic { color: #ffffff; }
.mp-tabs .mp-tab.t-broken.on em { background: rgba(255, 255, 255, .25); color: #ffffff; }
.mp-broken-note { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 12px; background: #fdecef; border: 1px solid #f2c1cc; border-radius: 6px; color: #8c2a44; font-size: 12.5px; }
.mp-broken-note .ic { width: 15px; height: 15px; flex: none; }
.wp-broken .wp-row:not(.wp-head) { box-shadow: inset 3px 0 0 #e07a93; }
.c-site { background: #fff1d6 !important; color: #b07a12 !important; }
.wp-bar.site i { background: #d99a2b; }
.mp-build { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; padding: 12px 14px; background: var(--surface); border: 1px dashed #c9b27a; border-radius: 8px; flex-wrap: wrap; }
.mp-build > div { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.mp-build small { color: var(--muted); }
.mp-build-ic { width: 38px; height: 38px; border-radius: 50%; background: #fff1d6; color: #b07a12; display: grid; place-items: center; flex: none; }
.mp-build-ic .ic { width: 19px; height: 19px; }
.mp-build-why { max-width: 260px; }
@media (max-width: 680px) {
  .mp-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .mp-tabs .mp-tab { flex: none; }
}

/* ================================================================ building your own house */
.hb-head { display: flex; gap: 18px; align-items: center; padding: 16px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); flex-wrap: wrap; }
.hb-title { flex: 1; min-width: 240px; }
.hb-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #b07a12; font-weight: 700; }
.hb-title h1 { margin: 2px 0 4px; font-size: 22px; color: var(--ink); }
.hb-meta { font-size: 12.5px; color: var(--muted); }
.hb-bar { height: 10px; margin-top: 10px; border-radius: 5px; background: var(--surface3); overflow: hidden; }
.hb-bar i { display: block; height: 100%; background: #d99a2b; border-radius: 5px; transition: width .6s ease; }
.hb-pct { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
/* a little drawing that grows with the stages: every part is centred, sized by the plan (--hw wall width, --hh wall height) */
.hb-art { --hw: 84px; --hh: 36px; position: relative; width: 150px; height: 104px; flex: none; border-radius: 8px; background: #cfe9f2; overflow: hidden; }
.hb-art.hb-shack { --hw: 58px; --hh: 30px; }
.hb-art.hb-villa { --hw: 104px; --hh: 50px; }
.hb-art i { position: absolute; display: block; opacity: 0; transition: opacity .4s ease; left: 50%; }
.hb-art .g { left: 0; right: 0; bottom: 0; height: 20px; background: #8cc06a; opacity: 1; }
.hb-art .f { width: calc(var(--hw) + 16px); margin-left: calc(var(--hw) / -2 - 8px); bottom: 18px; height: 7px; background: #8f8a80; border-radius: 2px; }
.hb-art .w { width: var(--hw); margin-left: calc(var(--hw) / -2); bottom: 25px; height: var(--hh); background: #b65a3c; }
.hb-art .r { width: calc(var(--hw) + 22px); margin-left: calc(var(--hw) / -2 - 11px); bottom: calc(24px + var(--hh)); height: 24px; background: #6b4a2b; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hb-art .d { width: 14px; margin-left: -7px; bottom: 25px; height: 20px; background: #4a3221; border-radius: 3px 3px 0 0; }
.hb-art.has-f .f, .hb-art.has-w .w, .hb-art.has-r .r, .hb-art.done i { opacity: 1; }
/* floors: lit windows show there is an inside now */
.hb-art.has-fl .w { box-shadow: inset 0 -10px 0 rgba(255, 230, 160, .35); }
.hb-art.done .w { box-shadow: none; }
.hb-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.hb-steps li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 10px 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; min-height: 64px; }
.hb-steps small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.hb-dot { position: absolute; left: 10px; top: 11px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface3); color: var(--muted); }
.hb-steps li.done { border-color: #a9d5bd; } .hb-steps li.done .hb-dot { background: #23744f; color: #ffffff; }
.hb-steps li.now { border-color: #d99a2b; box-shadow: 0 0 0 2px rgba(217, 154, 43, .2); } .hb-steps li.now .hb-dot { background: #d99a2b; color: #ffffff; }
.hb-steps li.work { border-color: #2a6f9e; box-shadow: 0 0 0 2px rgba(42, 111, 158, .18); } .hb-steps li.work .hb-dot { background: #2a6f9e; color: #ffffff; }
.hb-steps li.next { opacity: .75; }
.hb-mat td { vertical-align: middle; }
.hb-mat tr.ok td { color: var(--muted); }
.hb-got { font-weight: 700; } .hb-got.ok { color: #23744f; }
.hb-mini { display: inline-block; width: 46px; height: 6px; margin-left: 8px; vertical-align: middle; border-radius: 3px; background: var(--surface3); overflow: hidden; }
.hb-mini i { display: block; height: 100%; background: #d99a2b; }
.hb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.hb-actions form { margin: 0; }
.hb-working { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 8px; background: rgba(42, 111, 158, .08); border: 1px solid rgba(42, 111, 158, .25); }
.hb-working > .ic { width: 22px; height: 22px; color: #2a6f9e; flex: none; margin-top: 2px; }
.hb-src { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.hb-src:last-of-type { border-bottom: 0; }
.hb-settings { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.hb-settings form { margin: 0; }
.hb-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.hb-plan { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hb-plan .hb-art { width: 100%; height: 120px; }
.hb-plan h3 { margin: 4px 0 0; font-size: 18px; color: var(--ink); border: 0; padding: 0; }
.hb-plan p { margin: 0; }
.hb-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 4px 0; font-size: 13px; }
.hb-facts dt { color: var(--muted); } .hb-facts dd { margin: 0; font-weight: 600; text-align: right; }
.hb-mini-steps { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.5; }
.hb-start { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.hb-start input { flex: 1; min-width: 140px; }
.hb-locked { display: flex; align-items: center; gap: 6px; margin-top: auto !important; color: var(--muted); font-size: 13px; }
.hb-locked .ic { width: 14px; height: 14px; }
@media (max-width: 680px) { .hb-head { padding: 12px; } .hb-art { width: 110px; height: 80px; } .hb-plan .hb-art { height: 100px; } }
/* the map column may never be wider than the screen (the tab row scrolls sideways instead) */
.mp > * { min-width: 0; }
@media (max-width: 860px) { .mp { grid-template-columns: minmax(0, 1fr); } }
/* forum avatars: the initial is always white, in both themes and inside links */
.fa, .fa:link, .fa:visited, a .fa, .fres-item .fa { color: #ffffff !important; -webkit-text-fill-color: #ffffff; text-shadow: 0 1px 1px rgba(0, 0, 0, .18); }
.fa.has-img { background: var(--surface3); text-shadow: none; }
.fpost-ctitle { font-size: 12px; font-style: italic; color: var(--accent-d); line-height: 1.35; }
/* my forum profile */
.fprof-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; }
.fprof-av { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.fprof-av .fa.lg { width: 112px; height: 112px; font-size: 46px; border-radius: 14px; }
.fprof-av form { margin: 0; }
.fprof-file { position: relative; overflow: hidden; cursor: pointer; }
.fprof-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fprof-form label { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 680px) { .fprof-grid { grid-template-columns: minmax(0, 1fr); } }
.fprof-form label .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
/* footer: game version */
.foot-ver { margin-left: auto; font-size: 11.5px; color: var(--muted); opacity: .8; letter-spacing: .02em; }
/* uploaded pictures instead of the drawings (expeditions, house building) */
.ex-art.ex-photo, .hb-art.hb-photo { padding: 0; background: var(--surface3); }
.ex-art.ex-photo::before, .ex-art.ex-photo::after { display: none; }
.ex-art.ex-photo img, .hb-art.hb-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ex-card .ex-art { height: 110px; }
/* admin: scene pictures */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sc-cell { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.sc-cell.has { border-color: #8fcfae; }
.sc-prev .ex-art, .sc-prev .hb-art { width: 100%; height: 120px; margin: 0; }
.sc-meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.sc-acts { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.sc-acts form { margin: 0; }
/* ===================================================================== bounty board */
.bty .tabs a .bty-dot { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; margin-left: 4px; border-radius: 8px; background: #c2412d; color: #fff; font-size: 10.5px; text-align: center; }
.bty-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.bty-chips { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.bty-chips a { padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface); border-left: 1px solid var(--line); }
.bty-chips a:first-child { border-left: 0; }
.bty-chips a:hover { color: var(--accent-d); background: var(--surface2); text-decoration: none; }
.bty-chips a.on { background: var(--accent); color: #fff; }
.bty-me { margin-left: auto; }
.bty-wait { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; margin: 0 0 14px; background: #fff2ef; border: 1px solid #f0c9c0; border-left: 3px solid #c2412d; border-radius: 6px; color: #6e2a1c; }
.bty-wait .ic { width: 18px; height: 18px; color: #c2412d; flex: none; margin-top: 1px; }
.bty-wait .cd { font-weight: 700; font-variant-numeric: tabular-nums; }
.bty-empty { text-align: center; padding: 34px 16px; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface2); }
.bty-empty > span { display: block; font-size: 34px; line-height: 1; color: #b9ab8c; margin-bottom: 8px; }
.bty-empty p { margin: 6px 0 0; }
.bty-how { margin: 14px 0 0; }
/* wanted posters */
.wn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); gap: 14px; }
.wn { display: flex; flex-direction: column; min-width: 0; background: #f7eed9; border: 1px solid #d8c69c; border-radius: 6px; color: #3d3220; overflow: hidden; }
.wn-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 12px; background: #8f2a1c; color: #fff4e6; }
.wn-h span { font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.wn-h em { font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.wn-state .wn-h { background: #23476b; }
.wn-body { display: flex; gap: 11px; padding: 12px 12px 8px; align-items: center; min-width: 0; }
.wn-face { flex: none; width: 58px; height: 58px; border: 1px solid #cdb98c; border-radius: 4px; background: #e9dcbc; display: grid; place-items: center; overflow: hidden; }
.wn-face img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.35) contrast(1.05); }
.wn-face b { font-family: 'Roboto Condensed', sans-serif; font-size: 28px; color: #8a7346; }
.wn-who { min-width: 0; }
.wn-name { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14.5px; min-width: 0; }
.wn-name a.pl { color: #3a2a12; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn-name .lvl { color: #8a7346; }
.wn-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.wn-tags span, .wn-surv { display: inline-block; padding: 0 6px; border-radius: 3px; font-size: 10.5px; font-weight: 700; line-height: 17px; text-transform: uppercase; letter-spacing: .04em; }
.wn-on { background: #e6dcc3; color: #7a6a48; }
.wn-on.on { background: #dcefdf; color: #24653e; }
.wn-surv { background: #efe0b4; color: #7a5a10; border: 1px solid #dcc584; line-height: 15px; }
.wn-low { background: #dde6ef; color: #2c4f72; }
.wn-reward { margin: 2px 12px 8px; padding: 6px 8px 7px; border: 1px solid #c9ad74; border-radius: 4px; text-align: center; background: #fbf5e6; }
.wn-reward small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #8a7346; }
.wn-reward b { display: block; font-family: 'Roboto Condensed', sans-serif; font-size: 26px; line-height: 1.1; color: #9a2c1c; font-variant-numeric: tabular-nums; }
.wn-why { margin: 0 12px 8px; padding: 0; font-style: italic; font-size: 13px; color: #5b4a2c; overflow-wrap: anywhere; }
.wn-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0 12px 10px; font-size: 12px; }
.wn-meta dt { color: #8a7346; }
.wn-meta dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn-foot { display: flex; align-items: center; gap: 10px; margin: auto 0 0; padding: 9px 12px; border-top: 1px solid #e0d1ac; font-size: 12px; }
.wn-foot .btn { padding: 6px 14px; }
.wn-no { color: #7a6a48; line-height: 1.35; }
/* stars */
.wstars { display: inline-flex; gap: 1px; vertical-align: 1px; line-height: 1; }
.wstars i { font-style: normal; font-size: 13px; color: #d6c9a8; }
.wstars i.on { color: #c8901a; }
.wn .wstars { margin-top: 4px; }
.wn .wstars i { font-size: 15px; }
.gw-wanted { text-decoration: none !important; margin-left: 4px; }
.gw-surv { margin: 2px 0; }
/* posting */
.bty-post { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 18px; align-items: start; }
.bty-form { display: grid; gap: 10px; }
.bty-form label:not(.chk) { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
.bty-cost { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 9px 12px; background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--muted); }
.bty-cost b { color: var(--ink); margin-left: 3px; font-variant-numeric: tabular-nums; }
.bty-cost .bty-cost-t { margin-left: auto; color: var(--ink); }
.bty-cost .bty-cost-t b { color: #9a2c1c; font-size: 15px; }
.bty-rules { padding: 12px 14px; background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.bty-rules h3 { margin: 0 0 6px; font-size: 13px; }
.bty-rules ul { margin: 0; padding-left: 18px; }
.bty-rules li { margin: 3px 0; }
.bty-starkey { display: grid; gap: 3px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.bty-starkey > span { display: flex; align-items: center; gap: 8px; }
.bty-hint { text-transform: none; letter-spacing: 0; font-weight: 500; }
/* my bounty & hall */
.bty-mine, .bty-hall { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.bty-panel { padding: 12px 14px; background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.bty-panel h3 { margin: 0 0 8px; font-size: 13px; }
.bty-panel h4 { margin: 12px 0 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bty-panel ol { margin: 0; padding-left: 20px; }
.bty-panel ol li { display: flex; align-items: center; gap: 4px; margin: 4px 0; }
.bty-panel ol li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.bty-big { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.bty-big b { font-family: 'Roboto Condensed', sans-serif; font-size: 26px; color: #9a2c1c; }
.bty-big .wstars i { font-size: 17px; }
.bty-state { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; }
.bty-state .ic { width: 15px; height: 15px; }
.bty-old { margin: 0; padding-left: 18px; font-size: 12.5px; }
.bty-h3 { margin: 16px 0 8px; font-size: 13px; }
.bty-res { display: inline-block; padding: 0 7px; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 18px; background: var(--surface3); color: var(--muted); }
.bty-res.win { background: #dcefdf; color: #24653e; }
.bty-res.lose { background: #fbe1dc; color: #93311f; }
/* the warning for the hunted */
.bht-alert { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgba(48, 6, 2, .72); }
.bht-box { width: min(100%, 420px); background: var(--surface); border: 1px solid #c2412d; border-radius: 8px; overflow: hidden; color: var(--ink); text-align: center; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.bht-top { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; background: #a3311f; color: #fff; }
.bht-top b { font-family: 'Roboto Condensed', sans-serif; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.bht-skull { font-size: 22px; line-height: 1; }
.bht-box > p { margin: 14px 18px 0; font-size: 14px; }
.bht-cd { margin: 12px 18px 0; }
.bht-cd .cd { display: block; font-family: 'Roboto Condensed', sans-serif; font-size: 44px; line-height: 1; color: #c2412d; font-variant-numeric: tabular-nums; }
.bht-cd small { color: var(--muted); font-size: 12px; }
.bht-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 18px 0; }
.bht-acts .btn { justify-content: center; padding: 11px 10px; font-size: 14px; }
.bht-note { margin: 12px 18px 16px !important; font-size: 12px !important; color: var(--muted); }
/* badly wounded: below zero HP */
.hpchip.wound { background: #3a0f0a; border-color: #6e1d13; color: #ffd6cc; }
.hpchip.wound i { background: transparent; }
@media (max-width: 720px) {
  .bty-post { grid-template-columns: minmax(0, 1fr); }
  .bty-me { margin-left: 0; width: 100%; }
  .bty-cost .bty-cost-t { margin-left: 0; }
}
/* bounty board phase 2-3 */
.bty .tabs a .bty-dot-g { background: var(--accent); }
.bty-wait-r { margin-left: auto; align-self: center; }
.pl + .wstars, .lvl + .wstars { margin-left: 3px; }
.wstars i { font-size: 12px; }
.bty-hunter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; margin: 0 0 12px; background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; }
.bty-rank { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #c9ad74; border-radius: 4px; background: #f7eed9; color: #8a6a2a; font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: 15px; }
.bty-rank-1 { border-color: #9fbfa9; background: #e8f3ea; color: #2f6b45; }
.bty-rank-2 { border-color: #c9a35a; background: #fbf1d8; color: #8a5d0e; }
.bty-rank-3 { border-color: #a3311f; background: #a3311f; color: #fff4e6; }
.bty-hunter-m { min-width: 0; flex: 1 1 220px; line-height: 1.35; }
.bty-hunter-l { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-left: auto; }
.bty-lic { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid #b9dcc4; border-radius: 4px; background: #e8f5ec; color: #24653e; font-size: 12px; font-weight: 600; }
.bty-lic .ic { width: 14px; height: 14px; }
.wn-here { color: #24653e; }
.wn-intel { display: flex; gap: 6px; align-items: flex-start; margin: 0 12px 10px; padding: 6px 8px; background: #fbf5e6; border: 1px solid #e0d1ac; border-radius: 4px; font-size: 12px; color: #5b4a2c; }
.wn-intel .ic { flex: none; width: 13px; height: 13px; margin-top: 2px; color: #8a7346; }
.wn-foot { flex-direction: column; align-items: stretch; gap: 8px; }
.wn-act { display: flex; align-items: center; gap: 10px; }
.wn-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.wn-btns form { margin: 0; }
.wn-btns .btn { padding: 5px 9px; font-size: 12px; }
/* contracts */
.ct-list { display: grid; gap: 8px; margin-bottom: 6px; }
.ct { display: flex; gap: 14px; align-items: center; padding: 10px 12px; background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.ct-mine { border-left: 3px solid var(--accent); }
.ct-main { flex: 1; min-width: 0; }
.ct-task { margin: 4px 0 3px; font-size: 13.5px; overflow-wrap: anywhere; }
.ct-kind { display: inline-block; padding: 0 7px; border-radius: 3px; font-size: 10.5px; font-weight: 700; line-height: 18px; text-transform: uppercase; letter-spacing: .05em; background: #e6efe9; color: #2f6b45; }
.ct-hunt { background: #fbe7dc; color: #8f3b16; }
.ct-bounty { background: #f6e1dc; color: #8f2a1c; }
.ct-coal { background: #e1e9f4; color: #23476b; }
.ct-by { margin-left: 6px; font-size: 12px; color: var(--muted); }
.ct-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.ct-side form { margin: 0; }
.ct-reward { font-family: 'Roboto Condensed', sans-serif; font-size: 19px; color: #24653e; font-variant-numeric: tabular-nums; }
.ct-prog { height: 6px; margin: 6px 0 4px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.ct-prog i { display: block; height: 100%; background: var(--accent); }
.ct-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; align-items: end; }
.ct-form label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; min-width: 0; }
.ct-form select, .ct-form input { min-width: 0; width: 100%; }
.ct-form-b { display: flex; align-items: center; justify-content: space-between; gap: 10px; grid-column: 1 / -1; }
/* hall of fame */
.bty-week { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 0 0 14px; }
.bty-week > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface2); min-width: 0; }
.bty-week small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.bty-week-w { border-color: #d8c69c !important; background: #f7eed9 !important; color: #3d3220; }
.bty-week-w small { color: #8a7346; }
.bty-week-w b { display: block; font-family: 'Roboto Condensed', sans-serif; font-size: 22px; }
.bty-week-w b a { color: #8f2a1c; }
.bty-week-w span { font-size: 13px; }
.bty-week ol { margin: 0; padding-left: 20px; }
.bty-week ol li { display: flex; align-items: center; gap: 4px; margin: 3px 0; }
.bty-week ol li b { margin-left: auto; font-variant-numeric: tabular-nums; }
/* map: wanted characters in your sector */
.mp-wanted { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0; padding: 8px 10px; background: #fbf1ee; border: 1px solid #efcfc6; border-left: 3px solid #c2412d; border-radius: 6px; font-size: 13px; }
.mp-wanted-h { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #93311f; text-transform: uppercase; font-size: 11.5px; letter-spacing: .06em; }
.mp-wanted-h .ic { width: 14px; height: 14px; }
.mp-wanted-p { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: var(--surface); border: 1px solid #efcfc6; border-radius: 4px; color: var(--ink); }
.mp-wanted-p:hover { text-decoration: none; background: #fff7f5; }
.mp-wanted-p em { font-style: normal; font-weight: 700; color: #9a2c1c; }
.bty .tabs .t-short { display: none; }
@media (max-width: 720px) {
  .bty .tabs .t-long { display: none; }
  .bty .tabs .t-short { display: inline; }
  .bty .tabs a { padding: 8px 9px; }
  .bty-week { grid-template-columns: minmax(0, 1fr); }
  .bty-hunter-l { margin-left: 0; width: 100%; }
  .ct { flex-direction: column; align-items: stretch; }
  .ct-side { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
}
/* Gunsmith's Yard */
.gs-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
.gs-here { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid #b9dcc4; border-radius: 4px; background: #e8f5ec; color: #24653e; font-size: 12px; font-weight: 600; }
.gs-here .ic { width: 14px; height: 14px; }
.gs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.gs-bench { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px; background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); min-width: 0; }
.gs-bench:hover { text-decoration: none; border-color: var(--accent-a); background: var(--surface); }
.gs-bench-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gs-tags { display: grid; gap: 4px; }
.gs-trow { display: flex; align-items: center; gap: 7px; }
.gs-tag { display: inline-block; min-width: 24px; padding: 0 5px; border: 1px solid #a3311f; border-radius: 3px; background: #fbefe9; color: #8f2a1c; font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: 12px; line-height: 18px; text-align: center; }
.gs-mtag { font-style: normal; font-weight: 700; color: #8f2a1c; }
.gs-st { display: inline-block; padding: 0 7px; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 18px; white-space: nowrap; background: var(--surface3); color: var(--muted); }
.gs-st.free { background: #dcefdf; color: #24653e; }
.gs-st.busy { background: #fbe7dc; color: #8f3b16; }
.gs-st.maint { background: #e1e9f4; color: #23476b; }
.gs-st .cd { font-variant-numeric: tabular-nums; }
.gs-bench-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 12px; }
.gs-bench-top h3 { margin: 0; font-size: 15px; }
.gs-work { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.gs-sub { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.gs-items { display: grid; gap: 6px; }
.gs-item { display: flex; gap: 9px; align-items: center; padding: 6px 8px; background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); min-width: 0; }
.gs-item:hover { text-decoration: none; background: var(--surface); }
.gs-item.on { border-color: var(--accent); background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.gs-item.off { opacity: .6; }
.gs-item img, .gs-sel img { flex: none; width: 54px; height: 40px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.gs-item span { min-width: 0; font-size: 13px; line-height: 1.3; }
.gs-item small { color: var(--muted); }
.gs-sel { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin: 0 0 10px; background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; }
.gs-sel img { width: 78px; height: 58px; }
.gs-mod { padding: 10px 12px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.gs-mod.done { background: var(--surface2); }
.gs-mod-h { display: flex; align-items: center; gap: 8px; }
.gs-mod-h .gs-st { margin-left: auto; }
.gs-mod p { margin: 6px 0; }
.gs-diff { margin: 0 0 8px; font-size: 13px; }
.gs-diff s { color: var(--muted); }
.gs-diff b { color: #24653e; }
.gs-mats { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 0 8px; }
.gs-mats td { padding: 4px 6px; border-top: 1px solid var(--line2); }
.gs-mats td:nth-child(1) { width: 110px; }
.gs-mats td:nth-child(2) { width: 80px; }
.gs-mats td:nth-child(3) { width: 120px; }
.gs-mats td:nth-child(4) { text-align: right; }
.gs-mats tr:first-child td { border-top: 0; }
.gs-mats tr.short td:nth-child(3) { color: #b23a26; font-weight: 600; }
.gs-mats tr.ok td:nth-child(3) { color: #24653e; }
.gs-mats .gs-labor td { border-top: 1px solid var(--line); }
.gs-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.gs-go .btn[disabled] { opacity: .5; cursor: not-allowed; }
.gs-fest { padding: 8px 10px; margin: 0 0 8px; border: 1px solid #e0c97a; border-radius: 6px; background: #fbf4dc; color: #6e5410; font-size: 13px; }
.gs-rules { margin: 0; padding-left: 18px; font-size: 13px; }
.gs-rules li { margin: 4px 0; }
.gs-cat td { vertical-align: top; }
.tag-bench { background: #e1e9f4 !important; color: #23476b !important; }
.tag-bound { display: inline-block; padding: 0 6px; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 17px; background: #fbefe9; color: #8f2a1c; }
.mp-gs { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 9px 12px; background: var(--surface2); border: 1px solid var(--line); border-left: 3px solid #a3311f; border-radius: 6px; color: var(--ink); }
.mp-gs:hover { text-decoration: none; background: var(--surface); }
.mp-gs .ic { flex: none; width: 20px; height: 20px; color: #a3311f; }
.mp-gs span { display: flex; flex-direction: column; min-width: 0; }
.mp-gs small { color: var(--muted); font-size: 12px; }
.mp-gs em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--accent-d); white-space: nowrap; }
@media (max-width: 720px) {
  .gs-work { grid-template-columns: minmax(0, 1fr); }
  .gs-order { order: -1; }
  .gs-mats td:nth-child(1) { width: auto; }
  .gs-mats td:nth-child(2) { width: 44px; }
  .gs-mats td:nth-child(3) { width: 70px; white-space: nowrap; }
  .gs-mats td:nth-child(4) { text-align: left; }
}
/* Banco de las Islas */
.bk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.bk > * { min-width: 0; }
.bk-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 20px; background: #1d4d47; border: 1px solid #163d38; border-radius: var(--radius); color: #f4efe2; }
.bk-hero-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bk-seal { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid #d9b45a; border-radius: 50%; color: #e8c66e; background: #173f3a; }
.bk-seal .ic { width: 26px; height: 26px; }
.bk-hero h1 { margin: 0; font-family: 'Roboto Condensed', sans-serif; font-size: 24px; letter-spacing: .04em; color: #fff7e6; }
.bk-hero p { margin: 2px 0 0; font-size: 12.5px; color: #c7d9d3; }
.bk-bal { display: flex; gap: 10px; flex-wrap: wrap; }
.bk-bal > div { min-width: 130px; padding: 8px 12px; border: 1px solid #2f6a62; border-radius: 6px; background: #173f3a; }
.bk-bal small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #a9c6bf; }
.bk-bal b { font-family: 'Roboto Condensed', sans-serif; font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; }
.bk-bal > div:first-child b { color: #f2cf73; }
.bk-box { margin: 0; }
.bk-done { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.bk-done p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.bk-done-i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; background: var(--surface3); color: var(--muted); }
.bk-done.ok { border-color: #b9dcc4; background: #effaf2; }
.bk-done.ok .bk-done-i { background: #2f9461; color: #fff; }
.bk-done.wait { border-color: #ead9ae; background: #fffaeb; }
.bk-test { padding: 8px 12px; margin: 0 0 12px; border: 1px dashed #c9a35a; border-radius: 6px; background: #fbf4dc; color: #6e5410; font-size: 13px; }
.bk-test code { background: #fff; padding: 1px 5px; border-radius: 3px; border: 1px solid #e3cf8d; }
.bk-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.bk-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; text-align: center; transition: border-color .15s ease, background .15s ease; }
.bk-pack:hover { border-color: var(--accent-a); }
.bk-pack input { position: absolute; opacity: 0; pointer-events: none; }
.bk-pack:has(input:checked) { border-color: var(--accent); background: #eef7f1; box-shadow: inset 0 0 0 1px var(--accent); }
.bk-pack:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-ribbon { position: absolute; top: -1px; right: -1px; padding: 2px 8px; border-radius: 0 8px 0 6px; background: #c2412d; color: #fff; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bk-amt { display: flex; align-items: baseline; gap: 5px; }
.bk-amt b { font-family: 'Roboto Condensed', sans-serif; font-size: 34px; line-height: 1; color: var(--title); }
.bk-amt em { font-style: normal; font-weight: 700; color: #b8892a; font-size: 13px; }
.bk-bonus { font-size: 12px; color: var(--muted); min-height: 16px; }
.bk-bonus b { color: #24653e; }
.bk-price { margin-top: 6px; font-size: 18px; font-weight: 700; color: var(--ink); }
.bk-unit { font-size: 11.5px; color: var(--muted); }
.bk-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); }
.bk-pay-l { flex: 1 1 360px; min-width: 0; }
.bk-agree { display: flex !important; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.bk-agree input { margin-top: 2px; flex: none; }
.bk-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.bk-methods > span:first-child { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; font-weight: 600; }
.bk-methods .ic { width: 13px; height: 13px; }
.bk-m { padding: 1px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-weight: 600; color: var(--ink); }
.bk-go { padding: 11px 22px; font-size: 15px; }
.bk-go[disabled] { opacity: .5; cursor: not-allowed; }
.bk-custom { justify-content: center; }
.bk-ctitle { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bk-cin { display: flex; align-items: center; margin-top: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.bk-cin em { padding: 0 2px 0 9px; font-style: normal; font-weight: 700; color: var(--muted); }
.bk-custom .bk-cin input[type=number] { position: static; opacity: 1; pointer-events: auto; width: 80px; border: 0 !important; box-shadow: none !important; outline: 0; background: transparent !important; font-size: 18px; font-weight: 700; padding: 6px 8px 6px 2px; }
.bk-cout { font-size: 14px; color: var(--ink); }
.bk-cout b { font-family: 'Roboto Condensed', sans-serif; font-size: 22px; color: var(--title); }
.bk-cc { font-size: 11.5px; color: var(--muted); min-height: 15px; }
.bk-cin:focus-within { border-color: var(--accent); }
.hunt-left { margin-top: 3px; }
.hunt-wait { display: inline-flex; align-items: center; gap: 4px; }
.hunt-wait .ic { width: 14px; height: 14px; }
.bk-ex { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bk-rate { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); }
.bk-rate small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.bk-rate b { display: block; margin: 4px 0 6px; font-family: 'Roboto Condensed', sans-serif; font-size: 26px; color: var(--title); }
.bk-rate > span { font-size: 13px; color: var(--muted); }
.bk-cap { margin-top: 10px; }
.bk-exf { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.bk-exf label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.bk-num { display: flex; width: max-content; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.bk-num button { width: 40px; border: 0; background: var(--surface2); color: var(--ink); font-size: 18px; cursor: pointer; }
.bk-num button:hover { background: var(--surface3); }
.bk-num input { width: 90px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; font-size: 16px; font-weight: 700; }
.bk-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bk-sum b { font-family: 'Roboto Condensed', sans-serif; font-size: 22px; color: #9a2c1c; }
.bk-st { display: inline-block; padding: 0 7px; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 18px; background: var(--surface3); color: var(--muted); }
.bk-st.ok { background: #dcefdf; color: #24653e; }
.bk-st.wait { background: #fbf1d8; color: #8a5d0e; }
.bk-st.bad { background: #fbe1dc; color: #93311f; }
@media (max-width: 720px) {
  .bk-ex { grid-template-columns: minmax(0, 1fr); }
  .bk-bal > div { min-width: 0; flex: 1; }
  .bk-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-go { width: 100%; justify-content: center; }
  .bk-custom { grid-column: 1 / -1; }
}
/* bank closed */
.bkc { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.bkc-art svg { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto; }
.v-frame { fill: #cfd9d3; stroke: #9db3a8; stroke-width: 2; }
.v-door { fill: #1d4d47; stroke: #163d38; stroke-width: 2; }
.v-ring { fill: none; stroke: #2f6a62; stroke-width: 3; }
.v-bolt { fill: #d9b45a; }
.v-wheel line, .v-wheel circle { stroke: #e8c66e; stroke-width: 7; stroke-linecap: round; }
.v-wheel .v-hub { fill: #e8c66e; stroke: none; }
.v-hinge { fill: #9db3a8; }
.v-string { stroke: #7a6a48; stroke-width: 2.5; }
.v-nail { fill: #7a6a48; }
.v-sign { fill: #c2412d; stroke: #8f2a1c; stroke-width: 2; }
.v-sign-t { fill: #fff4e6; font: 700 21px 'Roboto Condensed', sans-serif; letter-spacing: .18em; }
.bkc-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border: 1px solid #efc6bd; border-radius: 999px; background: #fdf0ec; color: #a3311f; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.bkc-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #c2412d; animation: bkc-pulse 2s ease-in-out infinite; }
@keyframes bkc-pulse { 50% { opacity: .3; } }
.bkc-body h2 { margin: 12px 0 8px; padding: 0; background: none; border: 0; font-family: 'Roboto Condensed', sans-serif; font-size: 30px; line-height: 1.15; letter-spacing: .01em; text-transform: none; color: var(--title); }
.bkc-msg { margin: 0 0 16px; font-size: 15px; color: var(--ink); max-width: 560px; }
.bkc-msg.muted-msg { color: var(--muted); }
.bkc-cd { display: inline-flex; flex-direction: column; gap: 2px; padding: 10px 16px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); }
.bkc-cd small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.bkc-cd .cd { font-family: 'Roboto Condensed', sans-serif; font-size: 34px; line-height: 1.05; color: var(--title); font-variant-numeric: tabular-nums; }
.bkc-soon b { font-size: 16px; color: var(--title); }
.bkc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bkc-tile { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); color: var(--ink); min-width: 0; }
a.bkc-tile:hover { text-decoration: none; border-color: var(--accent-a); background: var(--surface); }
.bkc-tile .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.bkc-tile span { display: flex; flex-direction: column; min-width: 0; }
.bkc-tile b { font-size: 13px; }
.bkc-tile small { font-size: 12px; color: var(--muted); }
.bkc-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.bkc-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 9px 12px; border: 1px dashed #c9a35a; border-radius: 6px; background: #fbf4dc; color: #6e5410; font-size: 13px; }
.bkc-admin .ic { width: 16px; height: 16px; }
.bkc-admin .btn { margin-left: auto; }
.bk-tlock { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; opacity: .7; }
/* admin open/close */
.bkadm { padding: 14px 16px; margin: 0 0 16px; border: 1px solid var(--line); border-left: 4px solid #2f9461; border-radius: 6px; background: var(--surface); }
.bkadm.is-closed { border-left-color: #c2412d; }
.bkadm-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bkadm-h > div { flex: 1 1 260px; display: flex; flex-direction: column; }
.bkadm-h small { color: var(--muted); font-size: 12.5px; }
.bkadm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: #dcefdf; color: #24653e; }
.bkadm-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.is-closed .bkadm-pill { background: #fbe1dc; color: #93311f; }
.bkadm-msg { margin: 10px 0 0; font-style: italic; color: var(--muted); }
.bkadm-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; align-items: end; margin-top: 12px; }
.bkadm-f label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; min-width: 0; }
.bkadm-f select, .bkadm-f input { width: 100%; min-width: 0; }
@media (max-width: 760px) {
  .bkc { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; gap: 16px; text-align: center; }
  .bkc-art svg { max-width: 200px; }
  .bkc-body h2 { font-size: 25px; }
  .bkc-msg { margin-left: auto; margin-right: auto; }
  .bkc-tiles { grid-template-columns: minmax(0, 1fr); text-align: left; }
}

/* ---------------------------------------------------------------- The Islands (lore page) and story characters */
.lore { max-width: 1120px; margin: 0 auto; }
.lore-hero { padding: 34px 32px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.lore-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface2); color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.lore-kicker .ic { width: 14px; height: 14px; color: var(--accent); }
.lore-hero h1 { margin: 12px 0 6px; font-family: 'Roboto Condensed', sans-serif; font-size: 44px; line-height: 1.05; letter-spacing: .01em; color: var(--title); }
.lore-tag { margin: 0; font-size: 16px; font-style: italic; color: var(--muted); }
.lore-pic { margin: 14px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface2); }
.lore-pic img { display: block; width: 100%; height: auto; }
.lore-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; padding: 10px 12px; border: 1px dashed #c9a35a; border-radius: 6px; background: #fbf4dc; color: #6e5410; font-size: 13px; }
.lore-admin .ic { width: 16px; height: 16px; flex: none; }
.lore-admin small { color: inherit; opacity: .8; }
.lore-admin input[type=file] { max-width: 100%; min-width: 0; font-size: 12.5px; }
.lore-admin-del { margin: 6px 0 0; text-align: right; }
.lore-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 16px; margin-top: 16px; align-items: start; }
.lore-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lore-ch { position: relative; padding: 22px 26px 20px 74px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lore-n { position: absolute; left: 22px; top: 22px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface2); color: var(--accent-d); font: 700 15px 'Roboto Condensed', sans-serif; }
.lore-ch h2 { margin: 4px 0 10px; padding: 0; background: none; border: 0; font-family: 'Roboto Condensed', sans-serif; font-size: 23px; line-height: 1.2; letter-spacing: .01em; text-transform: none; color: var(--title); }
.lore-ch p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: var(--ink); }
.lore-ch p:last-child { margin-bottom: 0; }
.lore-you { border-left: 3px solid var(--accent); }
.lore-roads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lore-road { padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); min-width: 0; }
.lore-road .ic { width: 18px; height: 18px; color: var(--accent); display: block; margin-bottom: 6px; }
.lore-road b { display: block; font-size: 14px; color: var(--title); margin-bottom: 4px; }
.lore-road p { font-size: 13px; line-height: 1.5; margin: 0; }
.lore-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lore-card { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lore-card h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--title); }
.lore-card h3 .ic { width: 16px; height: 16px; color: var(--accent); }
.lore-who { display: flex; flex-direction: column; }
.lore-who > div { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-top: 1px solid var(--line2); }
.lore-who > div:first-child { border-top: 0; padding-top: 0; }
.lore-who small, .lore-links small { font-size: 12px; color: var(--muted); }
.lore-places { margin: 0; }
.lore-places dt { font-weight: 700; font-size: 13px; color: var(--title); margin-top: 8px; }
.lore-places dt:first-child { margin-top: 0; }
.lore-places dd { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.lore-links { list-style: none; margin: 0; padding: 0; }
.lore-links li { display: flex; flex-direction: column; padding: 7px 0; border-top: 1px solid var(--line2); }
.lore-links li:first-child { border-top: 0; padding-top: 0; }
.lore-links a { font-weight: 600; }
.lore-end { margin: 16px 0 6px; padding: 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lore-end p { margin: 0 0 14px; font-family: 'Roboto Condensed', sans-serif; font-size: 20px; color: var(--title); }
.role-link { font-weight: 600; }
.role-strip { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); font-size: 13px; }
.role-av { flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--accent-d); font: 700 13px 'Roboto Condensed', sans-serif; }
.bkc-sign { margin: 14px 0 0; font-size: 13px; font-style: italic; color: var(--muted); }
@media (max-width: 860px) {
  .lore-grid { grid-template-columns: minmax(0, 1fr); }
  .lore-roads { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .lore-hero { padding: 24px 16px 20px; }
  .lore-hero h1 { font-size: 34px; }
  .lore-ch { padding: 18px 16px 16px; }
  .lore-n { position: static; margin-bottom: 8px; }
  .lore-ch h2 { font-size: 21px; }
  .lore-admin-del { text-align: left; }
}
.bk-hero a.role-link, .bk-hero a.role-link:visited { color: #f2d48a; text-decoration: underline; text-underline-offset: 2px; }
/* lore page: people of the islands */
.lore-people { margin-top: 16px; }
.lore-sub { margin: 0 0 10px; padding: 0; background: none; border: 0; font-family: 'Roboto Condensed', sans-serif; font-size: 22px; letter-spacing: .01em; text-transform: none; color: var(--title); }
.lore-pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lore-person { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lore-face { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--surface2); border-bottom: 1px solid var(--line); }
.lore-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lore-face span { font: 700 64px 'Roboto Condensed', sans-serif; color: var(--line); }
.lore-pin { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.lore-pin b { font-size: 15px; }
.lore-ttl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.lore-pin p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.lore-pup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: auto 0 0; padding: 9px 12px; border-top: 1px dashed #c9a35a; background: #fbf4dc; }
.lore-pup input[type=file] { flex: 1 1 140px; min-width: 0; max-width: 100%; font-size: 12px; }
.lore-pup-del { padding: 0 12px 9px; background: #fbf4dc; }
.role-av { overflow: hidden; }
.role-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .lore-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .lore-pin { padding: 10px 11px 12px; } .lore-face span { font-size: 48px; } }
/* story characters on game pages */
.role-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.bty-how + .role-pair, .wn-grid + .role-pair, .bty-empty + .role-pair { margin: 14px 0 0; }
.role-card { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); min-width: 0; }
.role-face { flex: none; width: 54px; height: 72px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); color: var(--muted); font: 700 20px 'Roboto Condensed', sans-serif; }
.role-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.role-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13px; line-height: 1.45; color: var(--ink); }
.role-txt b { font-size: 14px; }
.role-txt .lore-ttl { margin-bottom: 3px; }
.role-extra { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
@media (max-width: 700px) { .role-pair { grid-template-columns: minmax(0, 1fr); } }
/* portraits are 3:4 */
.lore-face { aspect-ratio: 3 / 4; }
.lore-face img { object-position: top; }
.role-av img { object-position: top; }
