/* Player portal pages (character, world map, drop finder): equipment doll, bag grid, item icons and tooltips, the map viewer
   (js/mapview.js), the world map window and the drop finder (js/drops.js). Uses the tokens of css/site.css. */
.char-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.char-head > img { width: 132px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--glow); }
.char-head h1 { margin: 0 0 4px; font-size: clamp(2rem, 4vw, 3rem); color: var(--gold-bright); }
.char-head h1[data-color="gold"] { color: #f6df91; } .char-head h1[data-color="cyan"] { color: #9be7ff; }
.char-head h1[data-color="green"] { color: #b8efab; } .char-head h1[data-color="pink"] { color: #f0b7db; } .char-head h1[data-color="lavender"] { color: #cbbcff; }
.char-head .sub { margin: 0; color: var(--text-dim); }
.char-head .pill { margin-left: auto; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 20px; margin-bottom: 20px; }
.char-grid .panel + .panel { margin-top: 0; }
@media (min-width: 1100px) { .char-grid.gear { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }   /* room for 64 px bag cells */

/* the character in 3D (js/character3d.js) */
.stage3d-panel { margin-bottom: 20px; padding: 16px; }
.stage3d { position: relative; height: clamp(380px, 62vh, 640px); border-radius: 12px; overflow: hidden; isolation: isolate; border: 1px solid var(--line);
  background: radial-gradient(ellipse 40% 18% at 50% 88%, rgba(141, 107, 255, .3), transparent 70%), radial-gradient(ellipse 60% 50% at 50% 45%, rgba(226, 184, 102, .1), transparent 70%), #07060c; }
.stage3d::before { content: ""; position: absolute; inset: -20px; z-index: -1; background: url("/img/stage-hall.jpg") center 40% / cover; filter: blur(6px) brightness(.32) saturate(1.1); }
.stage3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.stage3d-canvas:active { cursor: grabbing; }
.stage3d-status { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; font-size: .85rem; color: var(--text-dim); background: rgba(0, 0, 0, .55); z-index: 2; }

/* equipment doll (the icons are exported at 64 px per cell: shown at that size) */
.equip-doll { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.doll-col { display: flex; flex-direction: column; gap: 8px; }
.doll-portrait { display: flex; justify-content: center; }
.doll-portrait img { max-width: 170px; width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.equip-slot { position: relative; width: 84px; height: 84px; border: 1px solid var(--line-soft); border-radius: 10px; background: radial-gradient(circle at 50% 40%, rgba(166, 139, 255, .1), rgba(0, 0, 0, .45)); display: flex; align-items: center; justify-content: center; cursor: default; }
.equip-slot.filled { border-color: var(--line-strong); background: radial-gradient(circle at 50% 40%, rgba(226, 184, 102, .16), rgba(0, 0, 0, .5)); }
.equip-slot.filled:hover { box-shadow: var(--glow); }
.equip-slot .slot-label { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-size: .6rem; color: var(--text-faint); letter-spacing: .04em; pointer-events: none; }
.equip-slot.filled .slot-label { display: none; }
.equip-slot .item-icon { width: 76px; height: 76px; }
.equip-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; color: var(--text-faint); font-size: .86rem; }

/* 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; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }
.item-icon.no-art { color: var(--text-dim); font-size: .72rem; text-transform: uppercase; }
.item-tip { position: absolute; z-index: 60; width: max-content; max-width: 280px; padding: 12px 14px; background: rgba(13, 11, 20, .97); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); font-size: .84rem; color: var(--text); pointer-events: none; }
.item-tip .tip-art { display: flex; justify-content: center; align-items: center; margin: -2px auto 10px; padding: 10px; border-radius: 10px; background: radial-gradient(circle at 50% 45%, rgba(226, 184, 102, .18), rgba(0, 0, 0, .4)); }
.item-tip .tip-art img { max-width: 160px; max-height: 192px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .8)); }
.item-tip strong { display: block; margin-bottom: 4px; font-size: .95rem; }

/* bag (cell size from js/character.js: up to the icons' own 64 px) */
.bag-tabs { display: inline-flex; gap: 4px; }
.bag-tab { background: transparent; color: var(--text-dim); border: 1px solid var(--line-soft); border-radius: 6px; padding: 1px 9px; cursor: pointer; font: inherit; font-size: .8rem; }
.bag-tab.active { color: var(--gold-bright); border-color: var(--line-strong); background: rgba(226, 184, 102, .08); }
.bag-scroll { overflow-x: auto; }
.bag-grid { --cell: 48px; position: relative; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); background-color: rgba(0, 0, 0, .35); border: 1px solid var(--line-soft); border-radius: 6px; }
.bag-item { position: absolute; padding: 3px; border-radius: 6px; background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .07), transparent 70%); }
.bag-item:hover { outline: 1px solid var(--gold); background-color: rgba(226, 184, 102, .1); z-index: 2; }
.bag-count { position: absolute; right: 3px; bottom: 2px; padding: 0 4px; border-radius: 4px; font-size: .7rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .65); }
.stat-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.stat-list dt { color: var(--text-dim); } .stat-list dd { margin: 0; font-weight: 600; }

/* legend marks */
.map-legend { display: flex; gap: 8px; align-items: center; color: var(--text-dim); font-size: .8rem; flex-wrap: wrap; }
.map-mark { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 1.5px #1a1206; }
.map-mark.me { background: var(--ok); }
.map-mark.monster { background: rgba(255, 110, 100, .3); box-shadow: 0 0 0 1.5px rgba(255, 130, 120, .9); }

/* ---------- map viewer (js/mapview.js) ---------- */
.mv { position: relative; }
.mv-view { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #05040a; cursor: grab; touch-action: none; user-select: none; }
.mv-view.dragging { cursor: grabbing; }
.mv-view::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 40px rgba(0, 0, 0, .55); border-radius: inherit; }
.mv-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.mv-stage.animate { transition: transform .35s ease; }
.mv-img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: auto; }
.mv-layer { position: absolute; inset: 0; pointer-events: none; }
.mv-label { position: absolute; transform: translate(-50%, -50%) scale(var(--lab, 1)); white-space: nowrap; font: 700 13px/1 var(--font-body); color: #f7e7b4; letter-spacing: .02em;
  text-shadow: 0 0 2px #000, 0 0 3px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.mv-mark { position: absolute; width: 11px; height: 11px; padding: 0; margin: 0; border: 0; border-radius: 50%; transform: translate(-50%, -50%) scale(var(--inv, 1)); pointer-events: auto; cursor: pointer;
  background: var(--gold-bright); box-shadow: 0 0 0 2px rgba(26, 18, 6, .95), 0 0 6px rgba(247, 220, 156, .6); }
.mv-mark.npc:hover, .mv-mark.npc.on { background: #fff; box-shadow: 0 0 0 2px #1a1206, 0 0 0 4px var(--gold), 0 0 12px var(--gold); z-index: 3; }
.mv-mark.me { width: 15px; height: 15px; background: var(--ok); box-shadow: 0 0 0 2px #04150b, 0 0 12px var(--ok); z-index: 4; pointer-events: none; }
.mv-ring { position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold-bright); transform: translate(-50%, -50%) scale(var(--inv, 1)); animation: mv-ring 1.6s ease-out infinite; }
@keyframes mv-ring { from { opacity: 1; width: 16px; height: 16px; } to { opacity: 0; width: 46px; height: 46px; } }
.mv-tag { position: absolute; transform: translate(-50%, -100%) scale(var(--inv, 1)) translateY(-14px); transform-origin: 50% 100%; white-space: nowrap; padding: 4px 9px; border-radius: 7px;
  font: 600 12px/1.2 var(--font-body); color: var(--gold-bright); background: rgba(12, 10, 18, .88); border: 1px solid var(--line-strong); box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.mv-tag.danger { color: #ffc6c0; border-color: rgba(255, 120, 110, .6); }
.mv-area { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255, 90, 80, .22); border: 2px solid rgba(255, 150, 140, .9); box-shadow: 0 0 0 0 rgba(255, 90, 80, .35); animation: mv-area 1.8s ease-in-out infinite; }
.mv-area::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ffd5d0; transform: scale(var(--inv, 1)); }
@keyframes mv-area { 50% { box-shadow: 0 0 0 8px rgba(255, 90, 80, .14); background: rgba(255, 90, 80, .3); } }
.mv-coords { position: absolute; left: 12px; top: 10px; padding: 3px 8px; border-radius: 6px; font: 600 .76rem var(--font-body); color: var(--text-dim); background: rgba(0, 0, 0, .55); pointer-events: none; }
.mv-coords:empty { display: none; }
.mv-plate { position: absolute; transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; padding: 4px 9px; border-radius: 7px; font: 600 12px var(--font-body); color: var(--text); background: rgba(12, 10, 18, .92); border: 1px solid var(--line); pointer-events: none; z-index: 5; }
.mv-tools { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 6; }
.mv-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: rgba(12, 10, 18, .85); color: var(--gold-bright); font: 700 1.05rem/1 var(--font-body); cursor: pointer; }
.mv-btn:hover { border-color: var(--line-strong); background: rgba(40, 30, 60, .9); }
.mv-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--text-faint); }
.mv.compact .mv-label { font-size: 11px; }

/* ---------- world map window ---------- */
.wrap.wide { width: min(1440px, 100% - 32px); }
.page-hero.slim { padding: clamp(48px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); }
.mapwin { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) minmax(260px, 330px); gap: 16px; align-items: start; }
@media (max-width: 1180px) { .mapwin { grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); } .map-areas { grid-column: 1 / -1; max-height: 300px; } }
@media (max-width: 780px) { .mapwin { grid-template-columns: 1fr; } }
.mapwin .panel { padding: 16px; }
.mapwin .panel + .panel { margin-top: 0; }
.mapwin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mapwin-head h2 { margin: 0; font-size: 1.5rem; color: var(--gold-bright); }
.mapwin-head .sub { color: var(--text-faint); font-size: .82rem; letter-spacing: .04em; }
.map-drops { margin-left: 10px; font-size: .82rem; font-weight: 600; }
.map-areas { display: flex; flex-direction: column; gap: 10px; max-height: 860px; }
.map-list-rows { overflow: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 4px; min-height: 0; }
.map-row { display: flex; justify-content: space-between; align-items: center; text-align: left; background: transparent; border: 1px solid transparent; color: var(--text); padding: 7px 10px; border-radius: 8px; cursor: pointer; font: inherit; font-size: .9rem; }
.map-row:hover { background: var(--panel-2); }
.map-row.active { border-color: var(--line-strong); background: var(--panel-2); color: var(--gold-bright); }
.map-row.has-mine::after { content: "\25CF"; color: var(--ok); margin-left: auto; padding-left: 8px; }
.map-count { color: var(--violet-bright); font-size: .8rem; font-weight: 700; }
.map-side { display: flex; flex-direction: column; gap: 10px; max-height: 860px; }
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.side-tabs button { padding: 9px 10px; border-radius: 9px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03); color: var(--text-dim); font: 600 .88rem var(--font-body); cursor: pointer; }
.side-tabs button b { margin-left: 4px; color: var(--text-faint); }
.side-tabs button[aria-selected="true"] { color: var(--gold-bright); border-color: var(--line-strong); background: rgba(226, 184, 102, .1); }
.side-tabs button[aria-selected="true"] b { color: var(--gold); }
.side-list { overflow: auto; display: flex; flex-direction: column; gap: 3px; min-height: 160px; max-height: 470px; padding-right: 4px; }
.side-row { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; background: rgba(255, 255, 255, .025); color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; }
.side-row:hover { background: var(--panel-2); }
.side-row.on { border-color: var(--line-strong); background: rgba(226, 184, 102, .1); color: var(--gold-bright); }
.side-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright); flex: none; box-shadow: 0 0 0 1.5px #1a1206; }
.side-lv { flex: none; min-width: 46px; padding: 2px 6px; border-radius: 5px; text-align: center; font-size: .72rem; font-weight: 700; color: #ffc6c0; background: rgba(255, 110, 100, .14); }
.side-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-card { padding: 14px; border-radius: 10px; background: radial-gradient(300px 120px at 100% 0, rgba(110, 70, 220, .18), transparent 70%), var(--panel-2); border: 1px solid var(--line-soft); }
.info-card strong { display: block; font: 600 1.1rem var(--font-display); color: var(--gold-bright); }
.info-card .info-kind { display: inline-block; margin-top: 2px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-bright); }
.info-card .info-kind.danger { color: #ffb4ab; }
.info-card p { margin: 6px 0 0; color: var(--text-dim); font-size: .86rem; }
.info-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- drop finder (js/drops.js) ---------- */
.df-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.df-search { position: relative; z-index: 6; padding: 20px; }
.df-search-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 240px); gap: 14px; align-items: end; }
@media (max-width: 680px) { .df-search-row { grid-template-columns: 1fr; } }
.df-combo { position: relative; }
.df-combo .input { padding: 15px 16px 15px 48px; font-size: 1.06rem; }
.df-search-icon { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.df-class label { display: block; margin-bottom: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.df-class select { padding: 14px 12px; }
.df-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: min(68vh, 560px); overflow: auto; padding: 6px; border-radius: 12px; background: rgba(13, 11, 20, .98); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.df-group { padding: 9px 10px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.df-opt { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 10px; border-radius: 8px; color: var(--text); }
.df-opt:hover, .df-opt[aria-selected="true"] { color: var(--gold-bright); background: var(--panel-3); }
.df-opt .item-icon { width: 36px; height: 36px; flex: none; }
.df-opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-opt-name mark { background: none; color: var(--gold-bright); font-weight: 700; }
.df-opt-sub { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-faint); font-size: .8rem; }
.df-opt-all { justify-content: center; color: var(--violet-bright); font-weight: 600; }
.df-view { display: grid; gap: 20px; margin-top: 20px; }
.df-view > .panel + .panel, .df-stack > .panel + .panel { margin-top: 0; }
.df-stack { display: grid; gap: 14px; }

/* the item / monster / area head */
.df-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: radial-gradient(600px 220px at 0 0, rgba(110, 70, 220, .2), transparent 70%), var(--panel); border-color: var(--line); }
.df-art { width: 112px; height: 112px; flex: none; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, rgba(226, 184, 102, .18), rgba(0, 0, 0, .45)); }
.df-hero-text { flex: 1; min-width: min(100%, 280px); }
.df-hero-text .eyebrow { margin-bottom: 8px; }
.df-hero h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--gold-bright); overflow-wrap: anywhere; }
.df-hero-sub { margin: 4px 0 0; color: var(--text-dim); }
.df-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.df-place { gap: 8px; }
.df-place small { color: var(--text-faint); font-weight: 500; }
.df-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.df-best { display: grid; gap: 6px; min-width: 210px; padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line-soft); }
.df-best-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
@media (max-width: 680px) { .df-best { flex: 1 1 100%; } .df-art { width: 88px; height: 88px; } }

/* lists of items / monsters / areas */
.df-section .panel-title { margin-bottom: 8px; }
.df-note { margin: 0 0 14px; color: var(--text-dim); font-size: .9rem; }
.df-filter { max-width: 340px; margin: 0 0 12px; padding: 9px 12px; font-size: .9rem; }
.df-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.df-cols, .df-row { display: grid; align-items: center; gap: 16px; padding: 8px 12px; }
.df-cols.c2, .df-list.c2 .df-row { grid-template-columns: minmax(0, 1fr) minmax(170px, 260px); }
.df-cols.c3, .df-list.c3 .df-row { grid-template-columns: minmax(0, 1fr) minmax(70px, 120px) minmax(170px, 260px); }
.df-cols.c4, .df-list.c4 .df-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(56px, 90px) minmax(170px, 260px); }
.df-cols { padding-top: 0; padding-bottom: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.df-cols span:last-child, .df-c-count { text-align: right; }
.df-row { border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, .025); }
.df-row:hover { border-color: var(--line); background: var(--panel-2); }
.df-none { padding: 12px; color: var(--text-faint); }
.df-thing { display: flex; align-items: center; gap: 12px; min-width: 0; }
.df-thing .item-icon { width: 46px; height: 46px; flex: none; padding: 3px; border-radius: 8px; background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .08), rgba(0, 0, 0, .35)); }
.df-thing-text { display: flex; flex-direction: column; min-width: 0; }
.df-name { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-name:hover { color: var(--gold-bright); text-decoration: underline; }
.df-sub { color: var(--text-faint); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-c-where { color: var(--text-dim); font-size: .88rem; min-width: 0; }
.df-c-count { color: var(--text-dim); font-size: .88rem; white-space: nowrap; }
.df-more-maps { color: var(--text-faint); }
.df-link { color: var(--gold-bright); }
.df-link:hover { text-decoration: underline; }
.df-lv { flex: none; min-width: 52px; padding: 3px 6px; border-radius: 6px; text-align: center; font-size: .74rem; font-weight: 700; color: #ffc6c0; background: rgba(255, 110, 100, .14); }
.df-pin { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: .72rem; font-weight: 700; color: var(--violet-bright); background: radial-gradient(circle, rgba(166, 139, 255, .3), rgba(166, 139, 255, .08)); border: 1px solid rgba(166, 139, 255, .35); }
.df-pin:empty::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 2px #1a1206; }
.df-top { display: grid; gap: 4px; min-width: 0; }
.df-top > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.df-more { margin-top: 12px; }

/* the chance: a bar on a log scale, the % and "1 in N" */
.df-chance { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: baseline; gap: 4px 10px; min-width: 0; }
.df-bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.df-bar i { display: block; width: var(--w, 3%); height: 100%; border-radius: inherit; background: currentColor; opacity: .85; }
.df-chance b { font-size: .96rem; color: var(--text); white-space: nowrap; }
.df-chance small { color: var(--text-faint); font-size: .78rem; text-align: right; white-space: nowrap; }
.df-chance.t-common { color: var(--ok); } .df-chance.t-uncommon { color: var(--gold); } .df-chance.t-rare { color: var(--violet); } .df-chance.t-very-rare { color: #ff8f80; }

/* tabs (area / monster views) and the areas to browse */
.df-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.df-tabs button { padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03); color: var(--text-dim); font: 600 .9rem var(--font-body); cursor: pointer; }
.df-tabs button b { margin-left: 6px; color: var(--text-faint); }
.df-tabs button:hover { color: var(--text); border-color: var(--line); }
.df-tabs button[aria-selected="true"] { color: var(--gold-bright); border-color: var(--line-strong); background: rgba(226, 184, 102, .1); }
.df-tabs button[aria-selected="true"] b { color: var(--gold); }
.df-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.df-area { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03); color: var(--text); }
.df-area:hover { color: var(--gold-bright); border-color: var(--line-strong); background: rgba(226, 184, 102, .06); }
.df-area-name { min-width: 0; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.df-area-lv { color: var(--text-faint); font-size: .78rem; }
.df-how .card { padding: 22px; box-shadow: none; }
.df-message.error .panel-title { color: var(--err); }
.df-message p:last-child { margin-bottom: 0; }

/* phones: rows become two lines (the thing + its chance, then where / count) */
@media (max-width: 760px) {
  .df-cols { display: none; }
  .df-list.c2 .df-row, .df-list.c3 .df-row, .df-list.c4 .df-row { grid-template-columns: minmax(0, 1fr) minmax(118px, 40%); gap: 6px 12px; padding: 10px; }
  .df-row .df-c-main { grid-column: 1; grid-row: 1; }
  .df-row .df-c-chance { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .df-row .df-c-where, .df-row .df-c-count { grid-column: 1; text-align: left; font-size: .82rem; }
  .df-row .df-c-where:empty, .df-row .df-c-count:empty { display: none; }
  .df-thing .item-icon { width: 40px; height: 40px; }
  .df-name, .df-sub { white-space: normal; overflow-wrap: anywhere; }
  .df-chance b { font-size: .9rem; }
  .df-search, .df-section, .df-hero { padding: 16px; }
  .df-areas { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .page-hero.hero-drops { padding-bottom: 24px; }
}

/* links into the drop finder from the character page (click an item) */
.equip-slot.df-go, .bag-item.df-go { cursor: pointer; }
.hint .text-link + .text-link { margin-left: 18px; }

/* ---------- skill guide (/skills; js/skills.js) ---------- */
.sk-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sk-class { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03); color: var(--text); text-align: center; text-decoration: none; }
.sk-class:hover { border-color: var(--line-strong); background: rgba(226, 184, 102, .07); color: var(--gold-bright); }
.sk-class img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 2px solid var(--line); background: var(--panel-3); }
.sk-class b { font-family: var(--font-display); font-size: .95rem; letter-spacing: .02em; }
.sk-portrait img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--panel-3); }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sk-cell { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03); color: var(--text); text-decoration: none; }
.sk-cell:hover { border-color: var(--line-strong); background: rgba(226, 184, 102, .07); }
.sk-cell .sk-icon { grid-row: 1 / 3; }
.sk-cell b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-cell:hover b { color: var(--gold-bright); }
.sk-icon { display: inline-flex; align-items: center; justify-content: center; width: var(--size, 44px); height: var(--size, 44px); flex: none; border-radius: 8px; border: 1px solid rgba(226, 184, 102, .3); background-color: #0a0812; background-repeat: no-repeat; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); image-rendering: auto; }
.sk-icon.no-art { color: var(--text-dim); font-size: .72rem; text-transform: uppercase; }
.sk-hero-icon .sk-icon { --size: 96px; border-radius: 14px; border-color: var(--line-strong); box-shadow: var(--glow); }
.sk-desc { margin: 12px 0 0; max-width: 70ch; color: var(--text-dim); }
.sk-how, .sk-steps { margin: 0; padding-left: 22px; color: var(--text-dim); line-height: 1.55; }
.sk-how li + li, .sk-steps li + li { margin-top: 8px; }
.sk-steps li::marker { color: var(--gold); font-weight: 700; }
.sk-related { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.sk-related h3, .sk-book h3, .sk-drops h3 { margin: 0 0 6px; font: 600 .78rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.sk-ref { display: inline-flex; align-items: baseline; gap: 6px; margin-right: 14px; }
.sk-table table { font-size: .9rem; }
.sk-table td, .sk-table th { white-space: nowrap; }
.sk-table td:last-child, .sk-table th:last-child { white-space: normal; min-width: 220px; }
.sk-table tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, .025); }
.sk-books { display: grid; gap: 14px; }
.sk-book { padding: 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .025); }
.sk-book-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sk-book-head .item-icon { width: 44px; height: 44px; flex: none; }
.sk-book h3 { margin-top: 12px; }
.sk-sources { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--text-dim); }
.sk-sources b { color: var(--text); font-weight: 600; }
.sk-drops .btn { margin-top: 10px; }
@media (max-width: 680px) {
  .sk-grid { grid-template-columns: 1fr 1fr; }
  .sk-cell { grid-template-columns: 40px 1fr; }
  .sk-cell .sk-icon { --size: 40px; }
}
