/* Player portal pages (character.html, worldmap.html, the account list): equipment, bag grid, item icons and tooltips,
   map pictures with markers. Uses the site theme variables (css/site.css). */
.panel-title { font-family: var(--font-display); color: var(--gold-bright); font-size: 1.05rem; margin: 0 0 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.panel-title .sub { font-family: var(--font-body); color: var(--text-dim); font-size: .85rem; }
.char-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.char-head h2 { margin: 0; font-family: var(--font-display); }
.char-head h2[data-color="gold"] { color: #f6df91; } .char-head h2[data-color="cyan"] { color: #9be7ff; }
.char-head h2[data-color="green"] { color: #b8efab; } .char-head h2[data-color="pink"] { color: #f0b7db; } .char-head h2[data-color="lavender"] { color: #cbbcff; }
.char-head .sub { margin: 0; color: var(--text-dim); }
.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 18px; margin-bottom: 18px; }

/* equipment paper doll */
.equip-doll { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.doll-col { display: flex; flex-direction: column; gap: 8px; }
.doll-portrait { display: flex; justify-content: center; }
.doll-portrait img { max-width: 160px; width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.equip-slot { position: relative; width: 76px; height: 76px; border: 1px solid var(--border-soft); border-radius: 6px; background: rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; }
.equip-slot.filled { border-color: var(--gold-dim); }
.equip-slot .slot-label { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; font-size: .62rem; color: var(--text-faint); letter-spacing: .04em; pointer-events: none; }
.equip-slot .item-icon { width: 62px; height: 62px; }
.equip-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: var(--text-faint); font-size: .85rem; }

/* item icons + tooltip */
.item-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; }
.item-icon img { max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: auto; }
.item-icon.no-art { color: var(--text-dim); font-size: .75rem; text-transform: uppercase; }
.item-tip { position: absolute; z-index: 50; max-width: 250px; padding: 10px 12px; background: #0e0c09f2; border: 1px solid var(--gold-dim); border-radius: 6px; box-shadow: var(--shadow-gold); font-size: .82rem; color: var(--text); pointer-events: none; }
.item-tip strong { display: block; margin-bottom: 4px; font-size: .9rem; }

/* bag */
.bag-tabs { display: inline-flex; gap: 4px; }
.bag-tab { background: transparent; color: var(--text-dim); border: 1px solid var(--border-soft); border-radius: 4px; padding: 0 8px; cursor: pointer; font: inherit; font-size: .8rem; }
.bag-tab.active { color: var(--gold-bright); border-color: var(--gold-dim); }
.bag-grid { position: relative; max-width: 100%; background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 40px 40px; background-color: rgba(0, 0, 0, .35); border: 1px solid var(--border-soft); border-radius: 4px; }
.bag-item { position: absolute; padding: 2px; }
.bag-item:hover { outline: 1px solid var(--gold); }
.bag-count { position: absolute; right: 3px; bottom: 1px; font-size: .7rem; color: #fff; text-shadow: 0 1px 2px #000; }
.stat-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.stat-list dt { color: var(--text-dim); } .stat-list dd { margin: 0; }

/* maps */
.map-view { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #000; }
.map-view.no-art { display: flex; align-items: center; justify-content: center; color: var(--text-faint); aspect-ratio: auto; padding: 40px 16px; }
.map-view img { width: 100%; height: 100%; display: block; }
.map-mark { position: absolute; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%); background: #f3d878; box-shadow: 0 0 0 1px #000; }
.map-mark.me { width: 14px; height: 14px; background: #59c78a; box-shadow: 0 0 0 2px #000, 0 0 10px #59c78a; z-index: 3; }
.map-mark.monster { background: rgba(224, 87, 74, .28); border: 1px solid rgba(224, 87, 74, .8); min-width: 10px; min-height: 10px; }
.map-mark.player { background: #5aa7ff; }
.map-legend { display: flex; gap: 8px; align-items: center; color: var(--text-dim); font-size: .8rem; margin-bottom: 10px; flex-wrap: wrap; }
.map-legend .map-mark { position: static; transform: none; display: inline-block; }
.worldmap { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 18px; }
@media (max-width: 760px) { .worldmap { grid-template-columns: 1fr; } }
.map-list { max-height: 760px; display: flex; flex-direction: column; gap: 10px; }
.map-list-rows { overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.map-row { display: flex; justify-content: space-between; text-align: left; background: transparent; border: 1px solid transparent; color: var(--text); padding: 6px 8px; border-radius: 4px; cursor: pointer; font: inherit; }
.map-row:hover { background: var(--panel-2); } .map-row.active { border-color: var(--gold-dim); background: var(--panel-2); }
.map-row.has-mine::after { content: '●'; color: #59c78a; margin-left: auto; padding-left: 8px; }
.map-count { color: var(--gold-bright); font-size: .8rem; }
.field-input { width: 100%; padding: 8px 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font: inherit; }
.map-npcs h4 { margin: 14px 0 4px; font-family: var(--font-display); color: var(--gold); font-size: .9rem; }
.map-npcs p { margin: 0; color: var(--text-dim); font-size: .85rem; }
.char-link { color: var(--gold-bright); text-decoration: none; } .char-link:hover { text-decoration: underline; }
