/* Item pages (/wiki/item/{id}): game data in the Hall of Echoes look. Tooltip itself: gametip.css. */
.gd-page { padding-top: 28px; padding-bottom: 64px; }

.gd-head { display: flex; gap: 18px; align-items: center; margin: 18px 0 26px; }
.gd-icon {
  position: relative;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  border: 1px solid var(--e-line);
  background: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.gd-icon img { position: absolute; inset: 1px; width: 64px; height: 64px; }
.gd-title { font-family: var(--e-serif); font-size: clamp(22px, 3.4vw, 34px); line-height: 1.15; color: var(--e-text); margin: 0; }
.gd-add { color: #ffd969; font-size: 0.7em; margin-left: 8px; font-family: var(--e-sans); }
.gd-grade {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 6px;
  border: 1px solid var(--e-brass);
  border-radius: 3px;
  font: 700 13px/1.3 var(--e-sans);
  color: var(--e-brass);
  vertical-align: middle;
}
.gd-sub { margin: 6px 0 0; color: var(--e-muted); font-size: 14px; }

.gd-grid { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.gd-side, .gd-main { display: grid; gap: 20px; min-width: 0; }
.gd-side .gt-static { max-width: none; }

.gd-card {
  padding: 18px 20px 20px;
  background: var(--e-panel);
  border: 1px solid var(--e-line-soft);
  border-radius: 10px;
}
.gd-card-title {
  margin: 0 0 14px;
  font: 600 13px/1.3 var(--e-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--e-brass);
}
.gd-card-note { margin-left: 8px; letter-spacing: 0.05em; text-transform: none; color: var(--e-ember); font-weight: 700; }
.gd-sub-title { margin: 20px 0 10px; font: 600 14px/1.3 var(--e-sans); color: var(--e-text); }
.gd-muted { color: var(--e-muted); margin: 0; }

/* Ctrl-window section bars (Guaranteed / Bonus / Random) */
.gd-group {
  margin: 14px 0 6px;
  padding: 4px 10px;
  font: 600 12.5px/1.4 Tahoma, var(--e-sans);
  color: #ffcc00;
  background: linear-gradient(90deg, rgba(255, 204, 0, 0.16), transparent 80%);
  border-left: 2px solid #c9a227;
}
.gd-group:first-of-type { margin-top: 0; }

.gd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gd-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--e-body);
  text-decoration: none;
  font: 13px/1.35 Tahoma, var(--e-sans);
}
.gd-row:hover, .gd-row:focus-visible { background: rgba(214, 168, 102, 0.08); outline: none; }
.gd-row-name { min-width: 0; }
.gd-row-name small { display: block; color: var(--e-muted); font-size: 11.5px; }
.gd-ench { color: #aa6ee6; margin-right: 3px; }
.gd-count { color: #b09b79; white-space: nowrap; }
.gd-chance { color: #ffcc00; white-space: nowrap; font-weight: 700; }
.gd-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 10.5px;
  color: #77ff99;
  border: 1px solid rgba(119, 255, 153, 0.4);
  vertical-align: 1px;
}

/* in-game inventory slot */
.gd-slot {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid #3d3a35;
  background: #000;
}
.gd-slot img { position: absolute; inset: 0; width: 32px; height: 32px; }
.gd-slot--sm { flex: 0 0 26px; width: 26px; height: 26px; }
.gd-slot--sm img { width: 24px; height: 24px; }

.gd-table-wrap { overflow-x: auto; }
.gd-table { width: 100%; border-collapse: collapse; font: 13px/1.4 Tahoma, var(--e-sans); }
.gd-table th, .gd-table td { padding: 5px 10px; text-align: left; border-bottom: 1px solid var(--e-line-soft); white-space: nowrap; }
.gd-table th { color: var(--e-brass); font-weight: 600; }
.gd-table td { color: var(--e-body); }
.gd-table td:first-child { color: #aa6ee6; font-weight: 700; }

.gd-rates { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 2px 8px 8px 54px; font-size: 12px; color: var(--e-muted); }
.gd-rates b { color: var(--e-body); font-weight: 600; }

.gd-levels { display: grid; gap: 6px; }
.gd-level { border: 1px solid var(--e-line-soft); border-radius: 6px; padding: 6px 10px; }
.gd-level summary { cursor: pointer; color: #aa6ee6; font-weight: 700; }
.gd-skill { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; color: var(--e-text); font-size: 13px; }
.gd-skill small { color: var(--e-muted); }
.gd-desc { margin: 4px 0 0; color: #b2becf; font: 12.5px/1.45 Tahoma, var(--e-sans); }

.gd-facts { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--e-body); font-size: 13.5px; }
.gd-facts b { color: var(--e-ember); }

@media (max-width: 860px) {
  .gd-grid { grid-template-columns: 1fr; }
  .gd-side .gt-static { max-width: 420px; }
}
@media (max-width: 480px) {
  .gd-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .gd-chance { grid-column: 2 / -1; }
  .gd-rates { padding-left: 8px; }
}

/* ---------- class skill pages (/wiki/skills) ---------- */
.gd-head--plain { margin-bottom: 18px; }
.gd-races { display: grid; gap: 14px; }
.gd-race-title { margin: 0 0 6px; font: 600 12px/1.3 var(--e-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--e-muted); }
.gd-class-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-chip {
  padding: 4px 10px;
  border: 1px solid var(--e-line-soft);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--e-muted);
  text-decoration: none;
}
.gd-chip--final { color: var(--e-text); border-color: var(--e-line); }
.gd-chip:hover, .gd-chip:focus-visible { color: var(--e-text); border-color: var(--e-brass); outline: none; }
.gd-chip.is-active { color: #1a0f0a; background: var(--e-brass); border-color: var(--e-brass); }

.gd-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--e-line-soft); }
.gd-tabs a {
  padding: 9px 16px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--e-muted);
  font-weight: 600;
  text-decoration: none;
}
.gd-tabs a span { margin-left: 4px; font-size: 12px; color: var(--e-dim); }
.gd-tabs a.is-active { color: var(--e-text); border-bottom-color: var(--e-ember); }
.gd-skills { margin-bottom: 20px; }
.gd-skill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gd-skill-row {
  display: grid;
  grid-template-columns: 36px minmax(160px, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
}
.gd-skill-row:hover { background: rgba(214, 168, 102, 0.06); }
.gd-skill-main { min-width: 0; display: flex; flex-direction: column; }
.gd-skill-main b { color: var(--e-text); font: 600 13.5px/1.3 Tahoma, var(--e-sans); cursor: help; }
.gd-skill-main small { color: var(--e-muted); font-size: 11.5px; }
.gd-lv-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.gd-lv {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 30px;
  padding: 1px 4px;
  border: 1px solid #3d3a35;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.45);
  font: 11px/1.15 Tahoma, var(--e-sans);
  cursor: help;
}
.gd-lv b { color: #e6e6e6; }
.gd-lv small { color: #b09b79; font-size: 10px; }
.gd-lv:hover { border-color: var(--e-brass); }
.gd-hint { margin: 12px 0 0; font-size: 12px; color: var(--e-dim); }

.gd-changes { display: grid; gap: 14px; }
.gd-change { border: 1px solid var(--e-line-soft); border-radius: 8px; padding: 10px 12px; }
.gd-change header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--e-text); }
.gd-change header small { color: var(--e-muted); }
.gd-note { flex-basis: 100%; }
.gd-badge { padding: 0 7px; border-radius: 3px; font-size: 11px; font-weight: 700; border: 1px solid currentColor; }
.gd-badge--changed { color: #ffcc00; }
.gd-badge--added { color: #77ff99; }
.gd-badge--removed { color: #ff6b5b; }
.gd-badge--learn { color: #21a4ff; }
.gd-before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gd-ba-label { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--e-muted); }
.gd-before-after .gt-static { max-width: none; }

@media (max-width: 720px) {
  .gd-skill-row { grid-template-columns: 36px minmax(0, 1fr); }
  .gd-lv-chips { grid-column: 1 / -1; }
  .gd-before-after { grid-template-columns: 1fr; }
}

/* ---------- game system visualizers in wiki pages / posts (Widgets.php), drawn with the client's textures ---------- */
.gw-group { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 24px; align-items: flex-start; }
.gw {
  position: relative;
  color: #c8c8c8;
  font: 12.5px/1.4 Tahoma, Verdana, 'Segoe UI', sans-serif;
  text-shadow: 1px 1px 0 #000;
}
.gw-off { padding: 10px 14px; border: 1px dashed var(--e-line-soft); border-radius: 6px; color: var(--e-muted); }
.wiki-prose .gw a { text-decoration: none; }
.gw-s { position: relative; display: inline-block; flex: none; background: #000; }
.gw-s img { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; transform: translate(-50%, -50%); }
.gw-s em { position: absolute; left: 2px; top: 1px; z-index: 1; font: bold 10px/1 Tahoma, sans-serif; font-style: normal; color: #aa6ee6; }
.gw-s b { position: absolute; right: 2px; bottom: 1px; z-index: 1; font: bold 10px/1 Tahoma, sans-serif; color: #fff; }
.gw-add { color: #ffd969; }
.gw-ench { color: #aa6ee6; }
.gw-or { margin: 0 4px; color: var(--e-muted); font-size: 11px; }
.gw-sub { margin: 10px 0 4px; color: #ffcc00; font-weight: bold; }
.gw-limit { margin-top: 6px; color: #b09b79; font-size: 11.5px; }
.gw-note { margin-top: 4px; color: #ff6b5b; font-size: 11.5px; }
/* 42 px slot (L2UI_EPIC.Slot.42Slot1x1, content 46x45) */
.gw-slot42 { width: 46px; height: 45px; background: url('/game-ui/l2ui_epic/slot/42slot1x1.png') 0 0 / 64px 64px no-repeat; }
.gw-mini { width: 22px; height: 22px; background: none; vertical-align: middle; }
.gw-mini img { width: 20px; height: 20px; }

/* window frame (CollectionSystemWnd_Bg2, 9-split 25/40) */
.gw-craft, .gw-compound, .gw-collection {
  padding: 0 12px 12px;
  border: 12px solid transparent;
  border-image: url('/game-ui/l2ui_epic/collectionsystemwnd/collectionsystemwnd_bg2.png') 25 24 24 25 fill / 12px;
}

/* Special Craft (ShopLcoinCraftWnd) */
.gw-craft { width: min(100%, 470px); box-sizing: border-box; }
.gw-craft-top {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 -12px 10px; padding: 8px 12px;
  background: url('/game-ui/l2ui_epic/lcoinshopwnd/specialcrafttopbg.png') 0 0 / 1024px 128px;
  color: #ffcc00; font-weight: bold;
}
.gw-craft-top small { color: #b09b79; font-weight: normal; }
.gw-cards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
/* result card (LCoinShopCraftCard_0N, content 110x138): N = the reward's rank */
.gw-card {
  width: 110px; height: 138px; padding: 39px 6px 0; box-sizing: border-box; text-align: center;
  background: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopcraftcard_00.png') 0 0 / 128px 256px no-repeat;
}
.gw-card--1 { background-image: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopcraftcard_01.png'); }
.gw-card--2 { background-image: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopcraftcard_02.png'); }
.gw-card--3 { background-image: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopcraftcard_03.png'); }
.gw-card--4 { background-image: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopcraftcard_04.png'); }
.gw-card--5 { background-image: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopcraftcard_05.png'); }
.gw-card-slot { width: 36px; height: 36px; background: transparent; }
.gw-card-name { margin-top: 7px; height: 25px; overflow: hidden; font-size: 10.5px; line-height: 1.18; }
.gw-card-count { font-size: 10.5px; line-height: 1.15; color: #b09b79; }
.gw-card-chance { font-size: 11px; line-height: 1.2; color: #ffcc00; font-weight: bold; }
/* success gauge (LCoinShopCraftGaugeBG 9-split + LCoinShopCraftGauge fill) */
.gw-gauge {
  position: relative; height: 24px; margin: 10px 0 2px;
  border: solid transparent; border-width: 0 16px;
  border-image: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopcraftgaugebg.png') 3 31 0 32 fill / 0 16px;
}
.gw-gauge span { position: absolute; left: 0; top: 6px; height: 12px; background: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopcraftgauge.png') 0 0 / 1024px 16px; }
.gw-gauge b { position: relative; display: block; text-align: center; line-height: 24px; font-size: 11px; color: #fff; }
/* material rows (BlessItemListBG, content 300x48) */
.gw-mats { display: grid; gap: 3px; }
.gw-mat {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 48px; padding: 1px 10px 1px 2px;
  background: url('/game-ui/l2ui_epic/lcoinshopwnd/blessitemlistbg.png') 0 0 / 191.04% 133.33% no-repeat;
}
.gw-mat-name small { color: #b09b79; }

/* L-Coin Shop card (LCoinShopWnd_Img_SubItem, 9-split 14/20) */
.gw-lcoin-card {
  width: 210px; min-height: 160px; padding: 14px 12px 12px; box-sizing: border-box; text-align: center;
  border: 10px solid transparent;
  border-image: url('/game-ui/l2ui_ct1/lcoinshopwnd/lcoinshopwnd_img_subitem.png') 14 12 12 14 fill / 10px;
}
.gw-lcoin-card.is-off { opacity: 0.6; }
.gw-lcoin-slot { width: 46px; height: 45px; background: url('/game-ui/l2ui_epic/slot/42slot1x1.png') 0 0 / 64px 64px no-repeat; }
.gw-lcoin-name { margin: 8px 0 6px; min-height: 34px; }
.gw-lcoin-name small { color: #b09b79; }
.gw-lcoin-price { display: flex; justify-content: center; gap: 10px; color: #ffdd66; font-weight: bold; }
.gw-price { display: inline-flex; align-items: center; gap: 4px; }
.gw-lcoin { display: inline-block; width: 30px; height: 30px; margin: -6px -4px; background: url('/game-ui/l2ui_newtex/lcoinshopwnd/bm_lcoin.png') 0 0 / 30px 30px; }
.gw-ribbon {
  position: absolute; top: -4px; right: -4px; padding: 1px 7px; border-radius: 3px;
  background: linear-gradient(180deg, #ff9a52, #b8431b); color: #fff; font-size: 10.5px; font-weight: bold;
}

/* Compound (ItemJewelEnchantWnd) */
.gw-compound { width: min(100%, 560px); box-sizing: border-box; }
.gw-comp-head {
  margin: 0 -12px 8px; padding: 6px 12px; color: #fff; font-weight: bold; text-align: center;
  background: url('/game-ui/l2ui_newtex/itemenchantwnd/textbg_bright.png') 50% 0 / 100% 100% no-repeat;
}
.gw-comp-head span { margin-right: 4px; color: #ffcc00; }
.gw-comp-row { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.gw-comp-head + .gw-comp-row { border-top: 0; }
/* jewel slots (JewelEnchantWndSlotBG, content 3..91) and result slot (PetSystemWnd_Slot_Result, content 3..95) */
.gw-jewel { width: 48px; height: 48px; background: url('/game-ui/l2ui_epic/itemenchantwnd/jewelenchantwndslotbg.png') -2px -2px / 67px 67px no-repeat; }
.gw-result { width: 52px; height: 52px; background: url('/game-ui/l2ui_epic/petsystemwnd/petsystemwnd_slot_result.png') -2px -2px / 70px 70px no-repeat; }
.gw-plus, .gw-arrow { color: #b09b79; font-weight: bold; }
.gw-comp-text { display: flex; flex-direction: column; min-width: 0; margin-left: 6px; }
.gw-comp-text small { color: #b09b79; font-size: 11px; }
.gw-comp-chance { color: #ffcc00; font-weight: bold; }

/* Collection (CollectionSystemPopupDetails) */
.gw-collection { width: min(100%, 420px); box-sizing: border-box; }
.gw-coll-head {
  margin: 0 -2px 10px; padding: 6px 10px; color: #ffdd66; font-weight: bold;
  background: url('/game-ui/l2ui_epic/collectionsystemwnd/collectionsystemwnd_innerheader.png') 0 0 / 100% 100%;
}
.gw-coll-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.gw-coll-slot { display: inline-flex; align-items: center; }
.gw-coll-effect {
  margin-top: 10px; padding: 4px 6px; color: #b2becf;
  border: 8px solid transparent;
  border-image: url('/game-ui/l2ui_epic/collectionsystemwnd/collectionsystemwnd_innerbg.png') 11 14 19 15 fill / 8px;
}
.gw-coll-effect > span { display: block; margin-bottom: 4px; color: #ffcc00; font-weight: bold; }

/* [item 81]: inline name with icon */
.gw-item { display: inline-flex; align-items: center; gap: 4px; vertical-align: -3px; text-decoration: none; }
.gw-item img { background: #000; border: 1px solid #3d3a35; }
.gw-more summary { padding: 6px 0; color: #ffcc00; cursor: pointer; }
.gw-more[open] summary { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

/* ---------- full game windows: Special Craft (ShopLcoinCraftWnd) and L-Coin Shop (ShopLcoinWnd) ---------- */
.gwin {
  width: 100%;
  max-width: 980px;
  margin: 16px 0 26px;
  color: #c8c8c8;
  font: 12.5px/1.4 Tahoma, Verdana, 'Segoe UI', sans-serif;
  text-shadow: 1px 1px 0 #000;
}
/* title bar: Frame_Hor_Left / Center / Right (38 px) */
.gwin-title {
  position: relative;
  height: 38px;
  padding: 0 44px 0 16px;
  display: flex;
  align-items: center;
  color: #e6e6e6;
  font-size: 13.5px;
  font-weight: bold;
  background:
    url('/game-ui/l2ui_newtex/frames/frame_hor_left.png') left top / 32px 64px no-repeat,
    url('/game-ui/l2ui_newtex/frames/frame_hor_right.png') right top / 32px 64px no-repeat,
    url('/game-ui/l2ui_newtex/frames/frame_hor_center.png') 0 0 / 128px 64px repeat-x;
}
.gwin-close {
  position: absolute; right: 8px; top: 8px; width: 18px; height: 17px; opacity: 0.8;
  background: url('/game-ui/l2ui_newtex/frames/frame_closebtn.png') -3px -1px / 32px 32px no-repeat;
}
/* body: WindowsFrame_Bg (9-split X 128/129, Y 11/12) */
.gwin-body {
  padding: 6px 8px 10px;
  border: solid transparent;
  border-width: 0 6px 4px;
  border-image: url('/game-ui/l2ui_newtex/frames/windowsframe_bg.png') 11 127 4 128 fill / 11px 127px 4px 128px;
  background: #121416;
}
/* tabs: LCoinShopWndTabBTN_Left_ / _Middle_ / _RightBasic_ (content 51 high) */
.gwin-tabs { display: flex; overflow-x: auto; margin: 0 -2px 8px; scrollbar-width: thin; }
.gwin-tab {
  flex: 1 1 0;
  min-width: 96px;
  height: 46px;
  padding: 0 10px;
  border: solid transparent;
  border-width: 0 7px 0 8px;
  border-image: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopwndtabbtn_middle_unselected.png') 1 7 13 8 fill / 0 7px 0 8px;
  background: none;
  color: #9a9182;
  font: bold 12.5px/1 Tahoma, Verdana, sans-serif;
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
}
.gwin-tab.is-first { border-image-source: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopwndtabbtn_left_unselected.png'); border-image-slice: 1 6 13 9 fill; border-width: 0 6px 0 9px; }
.gwin-tab.is-last { border-image-source: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopwndtabbtn_rightbasic_unselected.png'); border-image-slice: 1 10 13 5 fill; border-width: 0 10px 0 5px; }
.gwin-tab[data-tab]:hover { border-image-source: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopwndtabbtn_middle_unselected_over.png'); color: #d8cfbf; }
.gwin-tab.is-first[data-tab]:hover { border-image-source: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopwndtabbtn_left_unselected_over.png'); }
.gwin-tab.is-last[data-tab]:hover { border-image-source: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopwndtabbtn_rightbasic_unselected_over.png'); }
.gwin-tab.is-active { border-image-source: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopwndtabbtn_middle_select.png'); color: #ffcc00; }
.gwin-tab.is-first.is-active { border-image-source: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopwndtabbtn_left_select.png'); }
.gwin-tab.is-last.is-active { border-image-source: url('/game-ui/l2ui_epic/lcoinshopwnd/lcoinshopwndtabbtn_rightbasic_select.png'); }
.gwin-tab:disabled { color: #4f4a42; cursor: default; }

/* Special Craft: recipe list (GroupBox_DF + CraftListInHeader) and the recipe (CoverBg) */
.gwin-main { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.gwin-list {
  min-height: 300px;
  border: 4px solid transparent;
  border-image: url('/game-ui/l2ui_ct1/groupbox/groupbox_df.png') 4 2 2 4 fill / 4px;
}
.gwin-list-head {
  height: 40px; margin: -4px -4px 4px; padding: 0 12px;
  display: flex; align-items: center; color: #ffcc00; font-weight: bold;
  background: url('/game-ui/l2ui_epic/lcoinshopwnd/craftlistinheader.png') 0 0 / 256px 64px no-repeat;
  background-size: 100% 128%;
}
.gwin-row {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 3px 6px; cursor: pointer; border-radius: 2px;
}
.gwin-row::before {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: url('/game-ui/l2ui_ct1/listctrl/listctrl_df_highlight.png') 0 0 / 100% 100%;
}
.gwin-row:hover::before { opacity: 0.08; }
.gwin-row.is-active::before { opacity: 0.18; }
.gwin-row:focus-visible { outline: 1px solid #ffcc00; }
.gwin-row > span { position: relative; min-width: 0; font-size: 12px; }
.gwin-row-slot { width: 36px; height: 36px; background: url('/game-ui/l2ui_epic/slot/42slot1x1.png') 0 0 / 51px 51px no-repeat; }
.gwin-detail-wrap {
  min-width: 0;
  background: #0d0e10 url('/game-ui/l2ui_epic/lcoinshopwnd/coverbg.png') 0 0 / 144.4% 102.2% no-repeat;
  border: 1px solid #2c2a26;
}
.gwin .gw-craft { width: auto; padding: 0 14px 14px; border: 0; border-image: none; }
.gwin .gw-craft-top {
  margin: 0 -14px 14px; padding: 9px 14px;
  background: url('/game-ui/l2ui_epic/lcoinshopwnd/shadow_lcointiltle.png') 0 0 / 100% 100%;
  font-size: 13px;
}
.gwin .gw-cards { gap: 14px; padding: 6px 0 4px; }

/* L-Coin Shop: card grid on LCoinShopWnd_Bg (9-split X 7/9, Y 22/25) */
.gwin-shop {
  min-height: 220px;
  padding: 10px;
  border: solid transparent;
  border-width: 8px 7px 7px;
  border-image: url('/game-ui/l2ui_ct1/lcoinshopwnd/lcoinshopwnd_bg.png') 22 7 7 7 fill / 8px 7px 7px;
}
.gwin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 10px; }
.gwin .gw-lcoin-card { width: auto; }
.gwin [hidden] { display: none !important; }

@media (max-width: 720px) {
  .gwin-main { grid-template-columns: 1fr; }
  .gwin-list { min-height: 0; }
  .gwin-tab { min-width: 84px; }
}

/* Collections table (one row per collection, l2wiki-style), game window frame */
.gw-colltable {
  margin: 16px 0 26px;
  max-width: 980px;
  border: 12px solid transparent;
  border-image: url('/game-ui/l2ui_epic/collectionsystemwnd/collectionsystemwnd_bg2.png') 25 24 24 25 fill / 12px;
}
.wiki-prose .gw-colltable table, .gw-colltable table { display: table; overflow: visible; width: 100%; margin: 0; border: 0; border-collapse: collapse; font: inherit; }
.wiki-prose .gw-colltable th, .wiki-prose .gw-colltable td { border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.wiki-prose .gw-colltable td { padding: 8px; }
.wiki-prose .gw-colltable .gw-ct-c { text-align: center; }
.wiki-prose .gw-colltable th { color: #ffcc00; }
.gw-colltable th {
  padding: 6px 8px; text-align: left; color: #ffcc00; font-weight: bold; white-space: nowrap;
  background: url('/game-ui/l2ui_epic/collectionsystemwnd/collectionsystemwnd_innerheader.png') 0 0 / 100% 100%;
}
.gw-colltable th.gw-ct-n { padding-top: 0; color: #b09b79; font-weight: normal; }
.gw-colltable td { padding: 8px; vertical-align: top; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.gw-colltable .gw-ct-c { text-align: center; width: 62px; }
.gw-ct-name { color: #e6e6e6; font-weight: bold; min-width: 130px; }
.gw-ct-effect { color: #b2becf; min-width: 140px; }
.gw-ct-none { color: #4f4a42; }
.gw-ct-count { display: block; margin-top: 2px; font-size: 11px; color: #e6e6e6; }
/* the swap chip under a slot with replacement items; its list shows on hover / focus / tap */
.gw-swap {
  position: relative; display: inline-flex; align-items: center; gap: 3px; margin-top: 3px;
  padding: 1px 6px; border: 1px solid #5a4f3c; border-radius: 3px; background: #1d1a15;
  color: #e6e6e6; font-size: 11px; cursor: help;
}
.gw-swap > i::before { content: '\21C4'; font-style: normal; color: #ffcc00; }
.gw-swap:focus-visible { outline: 1px solid #ffcc00; }
.gw-pop {
  position: absolute; left: 50%; top: calc(100% + 6px); z-index: 30; transform: translateX(-50%);
  display: none; min-width: 240px; padding: 8px 10px; text-align: left;
  background: rgba(10, 9, 9, 0.97); border: 1px solid rgba(150, 128, 94, 0.55); border-radius: 3px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}
.gw-swap:hover .gw-pop, .gw-swap:focus .gw-pop, .gw-swap:focus-within .gw-pop { display: block; }
.gw-pop-t { display: block; margin: 6px 0 4px; color: #a3a3a3; font-size: 11px; }
.gw-pop-t:first-child { margin-top: 0; }
.gw-pop-t + .gw-pop-row ~ .gw-pop-t { padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.gw-pop-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; white-space: nowrap; }
.gw-pop-row img, .gw-pop-noicon { width: 24px; height: 24px; flex: none; background: #000; border: 1px solid #3d3a35; }
.gw-pop-row b { color: #e6e6e6; }
@media (max-width: 720px) { .gw-colltable { overflow-x: auto; } }

/* [enchant id]: enchant table (game window frame, like the collections table) */
.gw-enchant {
  margin: 16px 0 26px; max-width: 980px; padding: 0 12px 12px;
  border: 12px solid transparent;
  border-image: url('/game-ui/l2ui_epic/collectionsystemwnd/collectionsystemwnd_bg2.png') 25 24 24 25 fill / 12px;
}
.gw-enchant .gw-coll-head { margin: 0 -12px 8px; }
.gw-enchant .gw-coll-head small { margin-left: 6px; color: #b09b79; font-weight: normal; }
.wiki-prose .gw-enchant table, .gw-enchant table { display: table; overflow: visible; width: 100%; margin: 0; border: 0; border-collapse: collapse; font: inherit; }
.wiki-prose .gw-enchant th, .gw-enchant th { padding: 6px 8px; border: 0; text-align: left; color: #ffcc00; background: rgba(255, 204, 0, 0.06); white-space: nowrap; }
.wiki-prose .gw-enchant td, .gw-enchant td { padding: 6px 8px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); vertical-align: top; text-align: left; }
.gw-et-lv { color: #aa6ee6; font-weight: bold; width: 48px; }
.gw-et-n { color: #e6e6e6; white-space: nowrap; width: 70px; }
.gw-et-eff { color: #b2becf; font-size: 12px; }
.gw-et-same { color: #6f6a62; font-style: italic; }
.gw-enchant .gw-mats { margin-top: 2px; }
.gw-et-intro { margin: 0 0 8px; color: #b2becf; font-size: 12px; }

.gw-et-item { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 12px; }
.gw-et-item .gt-static { max-width: none; }
.gw-et-side { display: flex; flex-direction: column; gap: 10px; }
.gw-et-intro span { display: block; margin-bottom: 4px; color: #ffcc00; font-weight: bold; }
.wiki-prose .gw-et-link, .gw-et-link { align-self: flex-start; color: #ffcc00; text-decoration: none; font-weight: bold; }
.gw-et-link:hover { text-decoration: underline; }
@media (max-width: 720px) { .gw-et-item { grid-template-columns: 1fr; } }

/* [skill id level]: one skill's in-game tooltip in a post */
.gw-skill { margin: 14px 0 20px; max-width: 420px; }
.gw-skill .gt-static { max-width: none; }

.gw-skill-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.gw-skill-bar button {
  width: 28px; height: 24px; padding: 0; border: 1px solid #5a4f3c; border-radius: 3px; background: #1d1a15;
  color: #ffcc00; font-size: 11px; cursor: pointer;
}
.gw-skill-bar button:disabled { color: #4f4a42; cursor: default; }
.gw-skill-lv { min-width: 74px; text-align: center; color: #e6e6e6; font: bold 12px Tahoma, sans-serif; }
.gw-skill-sub { height: 24px; margin-left: 6px; border: 1px solid #5a4f3c; border-radius: 3px; background: #1d1a15; color: #e6e6e6; font: 12px Tahoma, sans-serif; }

/* ---------- missions / mission level / attendance (Missions.php): plain website style ---------- */
.gm { margin: 16px 0 26px; max-width: 980px; border: 1px solid var(--e-line-soft); border-radius: 10px; background: var(--e-panel); overflow: hidden; }
.gm-tabs { display: flex; gap: 4px; padding: 8px 10px 0; border-bottom: 1px solid var(--e-line-soft); }
.gm .gwin-tab { flex: none; min-width: 0; height: auto; padding: 8px 14px; border: 0; border-image: none; border-bottom: 2px solid transparent; background: none;
  color: var(--e-muted); font: 600 13px/1.2 var(--e-sans); text-shadow: none; cursor: pointer; }
.gm .gwin-tab:hover { color: var(--e-text); border-image: none; }
.gm .gwin-tab.is-active { color: var(--e-text); border-bottom-color: var(--e-ember); border-image: none; }
.gm-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); min-height: 260px; }
.gm-list { max-height: 520px; overflow-y: auto; border-right: 1px solid var(--e-line-soft); }
.gm .gwin-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer;
  border-bottom: 1px solid rgba(214, 168, 102, 0.08); }
.gm .gwin-row::before { display: none; }
.gm .gwin-row:hover { background: rgba(214, 168, 102, 0.06); }
.gm .gwin-row.is-active { background: rgba(255, 122, 61, 0.12); }
.gm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--e-text); font-size: 13.5px; }
.gm-lv { color: var(--e-muted); font-size: 12.5px; }
.gm-badge { padding: 1px 8px; border-radius: 3px; font: 700 10.5px/1.6 var(--e-sans); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.gm-badge--day { background: #e9d978; color: #3a3100; }
.gm-badge--week { background: #e08a8a; color: #3a0f0f; }
.gm-badge--month { background: #7fd9de; color: #0d3436; }
.gm-badge--once { background: #e9d978; color: #3a3100; }
.gm-detail { min-width: 0; }
.gm-head { padding: 9px 14px; text-align: center; font-weight: 700; color: #1a0f0a; background: var(--e-brass); }
.gm-title { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--e-line-soft); }
.gm-title b { display: block; color: var(--e-text); }
.gm-title small { color: var(--e-muted); }
.gm-sec { padding: 10px 14px; border-bottom: 1px solid var(--e-line-soft); }
.gm-sec h4 { margin: 0 0 6px; color: var(--e-ember); font: 600 13px/1.3 var(--e-sans); }
.gm-sec p { margin: 0; color: var(--e-body); font-size: 13.5px; }
.gm-items { display: grid; gap: 2px; }
.gm-item { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.18); font-size: 13px; color: var(--e-text); }
.gm-item b { color: var(--e-muted); font-weight: 600; }
.gm-icon { width: 34px; height: 34px; border: 1px solid #3d3a35; background: #000; }
.gm-icon--big { width: 48px; height: 48px; }
.gm-icon--big img { width: 44px; height: 44px; }

.gml { margin: 16px 0 26px; max-width: 980px; padding: 16px; border: 1px solid var(--e-line-soft); border-radius: 10px; background: var(--e-panel); }
.gml-head { text-align: center; margin-bottom: 14px; }
.gml-head h3 { margin: 0 0 4px; color: var(--e-text); font-family: var(--e-serif); }
.gml-head p { margin: 2px 0; color: var(--e-muted); font-size: 13px; }
.gml-final { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 10px; color: var(--e-text); font-size: 13px; }
.gml-final small { color: var(--e-muted); }
.gml-extra { color: var(--e-body) !important; }
.gml-grid, .gat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.gml-lv, .gat-day {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 10px; border-radius: 8px 8px 40px 40px;
  background: linear-gradient(180deg, #2b2622, #1a1714); border: 1px solid #4a4035; color: var(--e-text); font-size: 12px;
}
.gml-lv small, .gat-day small { color: var(--e-muted); font-size: 11px; }
.gml-lv > b { color: var(--e-brass); font-size: 15px; line-height: 1; }
.gml-key { display: flex; flex-direction: column; align-items: center; margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(214, 168, 102, 0.3); }
.gml-lv.has-key { border-color: #8a6a3a; }
.gat-day { border-radius: 8px; }
.gat-day.is-best { border-color: var(--e-ember); box-shadow: 0 0 0 1px rgba(255, 122, 61, 0.4) inset; }
@media (max-width: 720px) {
  .gm-body { grid-template-columns: 1fr; }
  .gm-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--e-line-soft); }
}
.gm [hidden], .gml [hidden] { display: none !important; }
.gml-grid, .gat-grid { align-items: start; }

/* ---------- event snapshots (Snapshots.php) ---------- */
.gev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px; }
.gev-item { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.18); font-size: 13px; color: var(--e-text); }
.gev-item b { color: var(--e-muted); font-weight: 600; }
.gev-item small { color: var(--e-muted); }
.gev-note { text-align: center; color: var(--e-muted); font-size: 13px; }
.gev-cross { display: grid; grid-template-columns: repeat(5, 54px); gap: 6px; justify-content: center; margin: 10px 0; }
.gev-cc { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border: 1px solid #3d3a35; border-radius: 6px; background: #14110f; }
.gev-cc .gm-icon { width: 40px; height: 40px; }
.gev-rare { border-color: var(--e-ember); background: rgba(255, 122, 61, 0.1); }
.gev-table { width: 100%; border-collapse: collapse; }
.wiki-prose .gev-table { display: table; font-size: 13px; }
.gev-table th, .gev-table td, .wiki-prose .gev-table th, .wiki-prose .gev-table td { padding: 4px 8px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); text-align: left; vertical-align: middle; }
.gev-table th { color: var(--e-brass); background: rgba(255, 204, 0, 0.05); }
.gev-scroll { max-height: 560px; overflow-y: auto; }
.gev-tabs { padding: 0 0 6px; margin-bottom: 8px; }
.gev .gwin-tab { flex: none; min-width: 0; height: auto; padding: 8px 14px; border: 0; border-image: none; border-bottom: 2px solid transparent; background: none;
  color: var(--e-muted); font: 600 13px/1.2 var(--e-sans); text-shadow: none; cursor: pointer; }
.gev .gwin-tab.is-active { color: var(--e-text); border-bottom-color: var(--e-ember); }
.gev [hidden] { display: none !important; }
.gev-rank { padding: 0 6px; border-radius: 3px; font: 700 11px/1.6 var(--e-sans); font-style: normal; color: #1a0f0a; background: #9a9182; }
.gev-rank--ur { background: #ff9a52; }
.gev-rank--sr { background: #c58cff; }
.gev-rank--r { background: #6fb6ff; }
.gev-chance { color: #ffcc00; font-style: normal; }
/* attendance: one week per row */
.gat-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 560px) { .gat-grid { gap: 4px; } .gat-day { padding: 6px 2px 8px; font-size: 10.5px; } .gat-day .gm-icon { width: 28px; height: 28px; } .gat-day .gm-icon img { width: 26px; height: 26px; } }

/* Festival Ranking: podium, rank rows, point track, shop cards */
.gfr-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; margin: 6px 0 16px; }
.gfr-place {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 10px 14px; text-align: center;
  border: 1px solid var(--medal); border-radius: 12px; background: linear-gradient(180deg, var(--glow), rgba(0, 0, 0, 0.15) 70%);
  box-shadow: 0 0 22px var(--glow); font-size: 13px;
}
.gfr-place--1 { --medal: #e9c46a; --glow: rgba(233, 196, 106, 0.18); }
.gfr-place--2 { --medal: #c9ced6; --glow: rgba(201, 206, 214, 0.12); }
.gfr-place--3 { --medal: #cd8a54; --glow: rgba(205, 138, 84, 0.14); }
.gfr-medal {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font: 800 14px/1 var(--e-sans); color: #1a0f0a; background: var(--medal);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.gfr-place .gm-icon--big { width: 54px; height: 54px; box-shadow: 0 0 0 2px var(--medal); }
.gfr-place .gm-icon--big img { width: 50px; height: 50px; }
.gfr-pname { line-height: 1.3; }
.gfr-place small { color: var(--e-muted); }
.gfr-ranks { display: grid; gap: 6px; margin-bottom: 16px; }
.gfr-rank { display: grid; grid-template-columns: 112px 36px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.2); font-size: 13px; }
.gfr-pill { justify-self: start; padding: 3px 10px; border-radius: 999px; white-space: nowrap; font: 700 12px/1.3 var(--e-sans); color: var(--e-text); background: rgba(214, 168, 102, 0.16); border: 1px solid var(--e-line-soft); }
.gfr-rname b { color: var(--e-muted); font-weight: 600; }
.gfr-title { margin: 6px 0 10px; color: var(--e-ember); font: 600 13px/1.3 var(--e-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.gfr-title small { margin-left: 6px; color: var(--e-muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
.gfr-track { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-bottom: 16px; }
.gfr-track::before { content: ''; position: absolute; left: 6%; right: 6%; top: 52px; height: 2px; background: linear-gradient(90deg, transparent, var(--e-line), transparent); }
.gfr-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; font-size: 12px; }
.gfr-pts { padding: 2px 8px; border-radius: 999px; white-space: nowrap; font: 700 11.5px/1.3 var(--e-sans); color: #1a0f0a; background: var(--e-brass); }
.gfr-step .gm-icon { box-shadow: 0 0 0 3px #1c1714; }
.gfr-step small { color: var(--e-muted); }
.gfr-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.gfr-product { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--e-line-soft); border-radius: 10px; background: rgba(0, 0, 0, 0.2); font-size: 13px; }
.gfr-pinfo { display: grid; gap: 4px; min-width: 0; }
.gfr-pinfo b { color: var(--e-muted); font-weight: 600; }
.gfr-price { display: flex; align-items: center; gap: 6px; color: #ffdd66; font-weight: 700; }
.gfr-price small { color: var(--e-muted); font-weight: 400; }
.gm-icon--mini { width: 20px; height: 20px; border: 0; background: none; }
.gm-icon--mini img { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .gfr-podium { gap: 6px; }
  .gfr-place { padding: 22px 4px 10px; font-size: 11.5px; }
  .gfr-rank { grid-template-columns: 1fr 36px; }
  .gfr-rname { grid-column: 1 / -1; }
}

.gw-skill-bar { flex-wrap: wrap; }
.gw-skill-chg { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 4px 2px 8px; border-radius: 999px;
  background: rgba(255, 204, 0, 0.12); border: 1px solid rgba(255, 204, 0, 0.45); }
.gw-skill-chg[hidden] { display: none; }
.gw-skill-chg em { font: 600 11.5px/1 Tahoma, sans-serif; font-style: normal; color: #ffcc00; margin-right: 2px; }
.gw-skill-bar .gw-skill-chg button { width: auto; height: 20px; padding: 0 8px; border-radius: 999px; font: 600 11px/1 Tahoma, sans-serif; color: #c8c8c8; }
.gw-skill-bar .gw-skill-chg button.is-active { color: #1a0f0a; background: #ffcc00; border-color: #ffcc00; }
.gw-skill.is-before .gt-static { border-color: rgba(255, 204, 0, 0.6); box-shadow: 0 0 0 1px rgba(255, 204, 0, 0.25); }

/* verdict chips (Changes.php): changed = gold, buffed = green, nerfed = red */
.gw-chg--buff { background: rgba(119, 255, 153, 0.1); border-color: rgba(119, 255, 153, 0.5); }
.gw-chg--buff em { color: #77ff99; }
.gw-skill-bar .gw-chg--buff button.is-active { background: #77ff99; border-color: #77ff99; }
.gw-chg--nerf { background: rgba(255, 107, 91, 0.1); border-color: rgba(255, 107, 91, 0.5); }
.gw-chg--nerf em { color: #ff6b5b; }
.gw-skill-bar .gw-chg--nerf button.is-active { background: #ff6b5b; border-color: #ff6b5b; color: #1a0f0a; }
.gw-itemchg { max-width: 380px; }
.gw-itemchg .gw-skill-chg { margin-left: 0; }
.gw-itemchg-note { margin: 6px 0 0; color: var(--e-muted); font-size: 12px; }
.gw-skill.is-before .gt-static { border-color: rgba(255, 204, 0, 0.6); }

/* Before / Now side by side (changed skills / items): words that differ, red = before, green = now (gametip.js diff) */
.gw-skill.is-cmp { max-width: 860px; }
.gw-group--cmp { flex-direction: column; }
.gw-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; align-items: start; }
.gw-cmp-col { display: grid; gap: 6px; min-width: 0; }
.gw-cmp-col[hidden], .gw-cmp-h[hidden] { display: none; }
.gw-cmp-h { font: 700 11.5px/1 var(--e-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--e-muted); }
.gw-cmp-col[data-side="prev"] .gt-static, .gw-cmp-col:first-child:not(:last-child) .gt-static { border-color: rgba(255, 107, 91, 0.45); }
.gw-skill.is-cmp .gw-cmp-col:last-child .gt-static { border-color: rgba(119, 255, 153, 0.45); }
.gt-diff { border-radius: 2px; padding: 0 2px; margin: 0 -1px; }
.gt-del { color: #ff8a7a !important; background: rgba(255, 80, 60, 0.18); text-decoration: line-through; text-decoration-color: rgba(255, 138, 122, 0.7); }
.gt-ins { color: #8dffad !important; background: rgba(80, 255, 130, 0.16); }
.gw-itemchg-note { margin: 2px 0 0; color: var(--e-muted); font-size: 12px; }

/* [multisell]: the Special Craft window layout; points (fame, clan reputation...) as a plain round slot */
.gwin-msell .gwin-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; display: inline-block; }
.gwin-msell .gwin-tabs { overflow-x: auto; }
.gwin-more { padding: 8px 10px; color: #8c857a; font: 11px Tahoma, sans-serif; }
.gw-s--points { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #6b5a2a, #2a2210); }
.gw-s--points i { font: 700 15px/1 Tahoma, sans-serif; font-style: normal; color: #ffdd66; }
.gw-kept { color: #77ff99; }
.gwin-msell .gwin-list { max-height: 560px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #5a4f3c transparent; }
.gwin-msell .gwin-list-head { position: sticky; top: 0; z-index: 1; }
.gwin-from { display: block; color: #8c857a; font-size: 11px; }
.gwin-msell .gwin-list { overflow-x: hidden; }

/* Collapsible section inserted from the wiki editor: native <details>/<summary>, our own arrow. */
.wiki-prose details {
  margin: 18px 0;
  border: 1px solid rgba(214, 168, 102, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.wiki-prose details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-weight: 700;
  color: #f3e6d8;
  background: rgba(214, 168, 102, 0.06);
  user-select: none;
  transition: background 0.15s ease;
}
.wiki-prose details > summary::-webkit-details-marker { display: none; }
.wiki-prose details > summary:hover { background: rgba(214, 168, 102, 0.12); }
.wiki-prose details > summary::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid #ff9b66;
  border-bottom: 2px solid #ff9b66;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}
.wiki-prose details[open] > summary::before { transform: rotate(45deg); }
.wiki-prose details > summary + * { margin-top: 14px; }
.wiki-prose details > :not(summary) {
  margin-left: 16px;
  margin-right: 16px;
}
.wiki-prose details > :last-child { margin-bottom: 14px; }
@media (prefers-reduced-motion: reduce) {
  .wiki-prose details > summary::before { transition: none; }
}
